×

Discussion Board

Results 1 to 2 of 2

Thread: Service search

  1. #1
    Registered User
    Join Date
    Mar 2007
    Posts
    130

    Service search

    I am trying to search services of RFID reader which supports SPP.

    ......
    UUID[] uuids = new UUID[1];
    uuids[0] = new UUID(0x1101);
    agent.searchServices(null,uuids,device,this);
    .....


    But it responds with code Device not found.

    ......
    case DiscoveryListener.SERVICE_SEARCH_DEVICE_NOT_REACHABLE:
    .....

    Before that it asks
    "Do you want to pair" -> I press yes. While I am trying to enter password, alert pop up with message "Pairing failed".

    Could you help me to solve this.

  2. #2
    Registered User
    Join Date
    Mar 2007
    Posts
    130

    Re: Service search

    Ok. I did connected Nokia 6131 NFC to RFID reader and discovered service, but if I try to open connection it throws me exception:

    javax.bluetooth master /slave role switch not supported


    Service url discovered is:

    btspp://000780803xxx:1;authenticate=false;encrypt=false;master=true

    StreamConnection conn = (StreamConnection) Connector.open(myServerUrl);

    And if I put

    btspp://000780803xxx:1;authenticate=false;encrypt=false;master=false

    it gave me Permission denied exception.
    Last edited by Alex_Polt; 2008-09-04 at 08:27.

Similar Threads

  1. Cannot find where the issue is, Bluetooth service discovery
    By newbietoprofessional in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2008-07-14, 16:39
  2. Possible to do service search without device search?
    By ed_welch in forum Mobile Java Networking & Messaging & Security
    Replies: 8
    Last Post: 2008-02-11, 11:35
  3. 6630 Hangs up on Service Search :(
    By nuno.rodrigues in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2007-10-24, 16:15
  4. Replies: 4
    Last Post: 2006-09-05, 15:15
  5. 6680 and bluetooth service profiles
    By ceruault in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-10-08, 22:24

Posting Permissions

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