×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    1

    SPP Service - send data problem

    Hi,

    I am developing a simple chat application where the PC (bluetooth dongle) is the server and the client is the Nokia 6280 (BT Address : 00:15:DE:E8:B4:2E)

    I am using the BlueSoleil SDK for the Server application.
    The SPP service is started with the SDk and following details are obtained :

    BT_StartSPPExService returned 1: Succeeded.
    SPPEx Service Info:
    SDAP Record Handle: 65547
    Service Name: MyCutomerService
    Service Channel: 08
    COM Port: 5

    3. When the client application (J2ME) is started, the device is discovered, the service is also discovered and connection is established. A popup message "Allow Application to use connectivity applications?" also appears.

    The following is indicated by BlueSoleil

    BSOL_CLIENT>Error Code: 0xc Command Disallowed.
    Incoming Connection Connect Indication!
    Remote Address: 00:15:DE:E8:B4:2E
    SPPEx Service Info:
    SDAP Record Handle: 65547
    Service Name: MyCutomerService
    Service Channel: 08
    COM Port: 5
    SPPEX Server Received data [0]:
    SPPEX Server Received data [0]:
    SPPEX Server Received data [0]:

    4. The service URL reported by J2ME is
    btspp://111111111111:8;authenticate=true;encrypt=false;master=false

    The dongle address is 11:11:11:11:11:11. Also the service name "MyCutomerService" is identified.

    The problem is that no data is being received by the server. Following is the j2me code listing

    String serviceURL = ServiceRecord.getConnectionURL(ServiceRecord.NOAUTHENTICATE_NO ENCRYPT, false);

    conn = (StreamConnection)Connector.open(serviceURL);
    out = conn.openOutputStream();
    in = conn.openInputStream();

    String strCMD = "Test";
    out.write(strCMD.getBytes());

    Is the error code "Error Code: 0xc Command Disallowed." a cause for this problem. What does this error code indicate.

    Please let me know if you have any suggestions/solution for this problem. Thank you for your help.

  2. #2
    Registered User
    Join Date
    Dec 2005
    Posts
    10

    Unhappy Re: SPP Service - send data problem

    Hi!, i'm making a similar application (I'm using the BlueSoleil's SDK too) and I get similar errors when I try to receive data from the phones. Any help about this issue will be appreciated!!

    Regards!
    Kabuby

  3. #3
    Registered User
    Join Date
    Dec 2006
    Posts
    8

    Re: SPP Service - send data problem

    I am also developing the server side. I can register the service record and get the data. Here i user StreamConnecton notifier and connected the URL and called acceptAndOpen(). It is working fine in SE K750. but not in Nokia 6600. I think the request is going on default channel.

    Can you tell me how to register a channel in ServiceRecord?

    Regards.

  4. #4
    Registered User
    Join Date
    Dec 2009
    Posts
    3

    Re: SPP Service - send data problem

    Hi,
    in my case, the sample codes run without errors on my PC running HYperterminal and my phone running the device client software.


    The problem comes when I modify the device client code to add in a list of text so that I can choose what to send. Sometime Hyperterminal receive what I send and sometime it does not.

    HELP !

    regards

  5. #5
    Registered User
    Join Date
    Mar 2003
    Posts
    4,105
    Please, let us continue there …
    Quote Originally Posted by tpstore View Post
    HELP !
    Please, do not post in several sections as it makes it difficult where place an answer. Furthermore, here we are in the general Bluetooth section. Problems related to one programming language should be ask in the appropriate section. Additionally, do not hijack threads just because your problem might be similar; it has to be equal to be posted here. Threads which have other posts already, might be not touched by anyone. Finally, Nokia offers paid technical support for everyone …

Similar Threads

  1. Replies: 9
    Last Post: 2010-06-10, 12:39
  2. Nokia SDK Bluetooth service re-discovery problem, Help Me!:(
    By tomsonxu in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2005-11-08, 07:44
  3. Data Call Problem !!
    By ahmed_baghdad in forum General Development Questions
    Replies: 0
    Last Post: 2005-07-03, 11:07
  4. problem to send a service loading message push for 8310
    By alinesimon in forum General Messaging
    Replies: 1
    Last Post: 2002-05-06, 12:39

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×