×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    4

    Unhappy (Help) Can not find RFComm channel number from server ...

    Please check my code bellow. I have a problem on discover service from server deployed on nokia 3230 (J2ME) by client run on PC using Widcomm SDK. I try to build an RFComm bluetooth client server application.

    Server (JSR82) :
    private static final UUID APP_UUID = new UUID("F0E0D0C0B0A000908070605040302010", false);
    private static final String URL = "btspp://localhost:"+APP_UUID+";name=My App;authorize=false";
    private static final String APP_ID = "My App";
    private static final int ATTR_ID = 0x1234;

    try {
    localDevice = LocalDevice.getLocalDevice();
    localDevice.setDiscoverable(DiscoveryAgent.GIAC);
    notifier = (StreamConnectionNotifier)Connector.open(URL);

    DataElement base = new DataElement(DataElement.STRING, APP_ID);
    record = localDevice.getRecord(notifier);
    record.setAttributeValue(ATTR_ID, base);

    connection = notifier.acceptAndOpen();
    }
    catch(Exception e) {
    System.err.println(e.getMessage());
    }
    Client (Widcomm SDK) :
    StartDiscovery(m_BdAddr, m_pServiceGuid)

    CSdpDiscoveryRec Sdp_Record;

    if ( ReadDiscoveryRecords(m_BdAddr, 1, &Sdp_Record, m_pServiceGuid) )
    {
    UINT8 scn;
    SDP_DISC_ATTTR_VAL *pVal;

    if ( Sdp_Record.FindRFCommScn(&scn) )
    //if(Sdp_Record.FindAttribute(0x1234, pVal))
    Any advice about this ???
    Thanks a lot for your attention...
    Last edited by Arch_Cancer; 2008-06-20 at 08:12.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,734

    Re: (Help) Can not find RFComm channel number from server ...

    Hi, I received your mail.
    Unfortunately I have no idea about the JavaME part.
    On the PC-side Sandeep's suggestion (http://discussion.forum.nokia.com/fo...ad.php?t=87906) immediately fixed the problem (when the PC was the server), so I am not aware of any other necessary modifications (PC as client already worked in its original form).
    Re-check your JavaME code, that ATTR_ID does not seem to be a standard one, though I really do not know the details.

Similar Threads

  1. SPP Service - send data problem
    By sudhirbaliga in forum Bluetooth Technology
    Replies: 4
    Last Post: 2009-12-02, 10:55
  2. Deployment tool of NDS 2.2 could not find service layer
    By goutamm in forum Mobile Java General
    Replies: 1
    Last Post: 2005-03-30, 15:25
  3. Can't find service a second time
    By Leicester22 in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2005-03-28, 12:46
  4. Replies: 0
    Last Post: 2004-04-08, 15:20
  5. where to find Nokia Mobile Server Services API and Library 1.0
    By ssabado76 in forum General Messaging
    Replies: 1
    Last Post: 2003-06-07, 04:36

Posting Permissions

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