Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User liuvictor2005's Avatar
    Join Date
    Feb 2008
    Posts
    27
    Hi All,
    I'm writting a bluetooth server application. When I tried to send data using RSocket::Write function, the RunL will not be called. And the client device also not received the data. Here is my code:

    iAcceptedSocket.Write(aMessage, iStatus);
    SetActive();

    But if I use the following code to receive data, it's successful.
    iAcceptedSocket.RecvOneOrMore(iMessage, 0, iStatus, iLen);
    SetActive();

    So why I can't send data out? Any body has ever meet this problem?

    Thanks!

  2. #2
    Registered User liuvictor2005's Avatar
    Join Date
    Feb 2008
    Posts
    27
    I did a further test, using the source code of BluetoothChat. I change the service class to be 0x1101(Spp Profile), and then connect from the other device. I select the send option in menu, but found that the other side not receive the data and the RunL is also not called.
    Why?? It's a demo application. Why it not work???

  3. #3
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    Try first with the original, and have another phone running it to be a server side and run it first, then run the second phone as client and do the connection, and most likely you get the data flowing in both directions after the phones have connected succesfully.

  4. #4
    Registered User liuvictor2005's Avatar
    Join Date
    Feb 2008
    Posts
    27
    Quote Originally Posted by symbianyucca View Post
    Try first with the original, and have another phone running it to be a server side and run it first, then run the second phone as client and do the connection, and most likely you get the data flowing in both directions after the phones have connected succesfully.

    Thanks for your reply.
    I do the test as you said, it's ok.

    But if I used the same server side, and write a application running on the other device which using CSR's bluetooth protocol stack as client, the server can receive data from client but also can't send data to client. I check the log of the server and found the RunL still not called after Write() is called.

    I wonder if there is some problem between two different protocal stack?

  5. #5
    Registered User liuvictor2005's Avatar
    Join Date
    Feb 2008
    Posts
    27
    I think maybe someone has meet the same question as me:

    http://discussion.forum.nokia.com/fo...d.php?t=106483

Similar Threads

  1. exe - destructor not being called
    By nubiah in forum Symbian C++
    Replies: 4
    Last Post: 2007-07-27, 10:25
  2. ActiveObject RunL is called just once
    By lskmao in forum Symbian C++
    Replies: 3
    Last Post: 2007-01-18, 15:15
  3. Errors building project in VS.2003
    By jensesaat in forum Symbian C++
    Replies: 11
    Last Post: 2006-11-13, 16:54
  4. write text into file *.pho for MBROLA
    By jend_rommel in forum Symbian C++
    Replies: 1
    Last Post: 2005-11-14, 10:47
  5. Application crashes when CEikAppUi::Exit() is called
    By Leicester22 in forum Symbian C++
    Replies: 2
    Last Post: 2004-08-24, 20:04

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved