×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    15

    6680 and bluetooth service profiles

    Hello,
    i just got a 6680 and i'm trying to play with bluetooth.
    First remark: the 6680 does not advertise any RFCOMM profile ... this is really a shame. ( i've seen other posts about this, why would nokia do something like that ... i'm still wondering ).

    I'm trying to write a simple server using btl2cap. The server runs fine but as far as in understand, the service record should be made plublic ( and therefore should be listed when i send an enquiry to the device ) after the method notifier.acceptAndOpen(); is called ( notifier being an instance of L2CAPConnectionNotifier ).
    The problem is that when i use my linux box ( with the bluez stack ) to list the profiles advertised by my phone, i don't seen my server .
    I only see this (note the errors below, any hint on what they mean ?)

    Browsing 00:xx:xx:xx:xx:xx ...
    Service Name: Dial-Up Networking
    Service RecHandle: 0x10000
    Service Class ID List:
    "Dialup Networking" (0x1103)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    "RFCOMM" (0x0003)
    Channel: 1
    Language Base Attr List:
    code_ISO639: 0x454e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    "Dialup Networking" (0x1103)
    Version: 0x0100

    Service Name: OBEX Object Push
    Service RecHandle: 0x10001
    Service Class ID List:
    "OBEX Object Push" (0x1105)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    "RFCOMM" (0x0003)
    Channel: 9
    "OBEX" (0x0008)
    Language Base Attr List:
    code_ISO639: 0x454e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    "OBEX Object Push" (0x1105)
    Version: 0x0100

    Service Name: Imaging
    Service RecHandle: 0x10002
    Service Class ID List:
    "Imaging Responder" (0x111b)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    "RFCOMM" (0x0003)
    Channel: 15
    "OBEX" (0x0008)
    Language Base Attr List:
    code_ISO639: 0x454e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    "Imaging" (0x111a)
    Version: 0x0100

    Service Name: Hands-Free Audio Gateway
    Service RecHandle: 0x10003
    Service Class ID List:
    "Handfree Audio Gateway" (0x111f)
    "Generic Audio" (0x1203)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    "RFCOMM" (0x0003)
    Channel: 2
    Language Base Attr List:
    code_ISO639: 0x454e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    "Handfree Audio Gateway" (0x111f)
    Version: 0x0101

    Service Name: Headset Audio Gateway
    Service RecHandle: 0x10004
    Service Class ID List:
    "Headset Audio Gateway" (0x1112)
    "Generic Audio" (0x1203)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    "RFCOMM" (0x0003)
    Channel: 3
    Language Base Attr List:
    code_ISO639: 0x454e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    "Headset" (0x1108)
    Version: 0x0100

    Service Description: OBEX File Transfer
    Service RecHandle: 0x10005
    Service Class ID List:
    "OBEX File Transfer" (0x1106)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    "RFCOMM" (0x0003)
    Channel: 10
    "OBEX" (0x0008)
    Language Base Attr List:
    code_ISO639: 0x454e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    "OBEX File Transfer" (0x1106)
    Version: 0x0100

    Service Name: SyncMLClient
    Service RecHandle: 0x10006
    Service Class ID List:
    "Error: This is UUID-128" (0x00000002-0000-1000-8000-0002ee000002)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    "RFCOMM" (0x0003)
    Channel: 11
    "OBEX" (0x0008)
    Language Base Attr List:
    code_ISO639: 0x454e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    "Error: This is UUID-128" (0x00000002-0000-1000-8000-0002ee000002)
    Version: 0x0100

    Service Name: Nokia OBEX PC Suite Services
    Service RecHandle: 0x10007
    Service Class ID List:
    "Error: This is UUID-128" (0x00005005-0000-1000-8000-0002ee000001)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    "RFCOMM" (0x0003)
    Channel: 12
    "OBEX" (0x0008)
    Language Base Attr List:
    code_ISO639: 0x454e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    "Error: This is UUID-128" (0x00005005-0000-1000-8000-0002ee000001)
    Version: 0x0100


    My Java code is the following:


    localDevice = LocalDevice.getLocalDevice();
    if (!localDevice.setDiscoverable(DiscoveryAgent.GIAC)) {
    parent.addDebug("Failed to setDiscoverable....");
    }
    StringBuffer url = new StringBuffer("btl2cap://");
    url.append("localhost:");
    url.append(UUID.toString());
    url.append(";name=btserver;authenticate=false;encrypt=false");
    notifier = (L2CAPConnectionNotifier) Connector.open(url.toString());
    L2CAPConnection conn = null;
    try
    {
    //Service should be visible once this call is made !
    conn = notifier.acceptAndOpen();
    }

    Any hint would be greatly appreciated .... i'm starting to pull my hairs

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2003
    Posts
    4,104
    What do you mean about RFCOMM?
    Anyway works here with a RFCOMM service and NOkia 6680. Make sure to search correctly and for some reason I can't set the device to LIAC or GIAC, if the phone was Bluetooth invisible before. The user has to activate GIAC via the Nokia > Menu > Connectivity > Bluetooth > Visibility.

Similar Threads

  1. No BlueTooth Serial Profile on Nokia 6680 !
    By dajeff69 in forum Mobile Java General
    Replies: 20
    Last Post: 2007-04-27, 10:30
  2. Simultaneous Bluetooth connections on 6680
    By drazvan in forum Bluetooth Technology
    Replies: 2
    Last Post: 2006-04-09, 11:17
  3. Nokia 6680 Java Bluetooth problem, not finding any devices
    By qwercrap in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-09-08, 16:47
  4. Exploring services on 6680
    By dessfred in forum Bluetooth Technology
    Replies: 2
    Last Post: 2005-06-09, 07:17
  5. Nokia 6680 and Bluetooth
    By Neuromancer in forum Mobile Java General
    Replies: 0
    Last Post: 2005-06-01, 15:41

Posting Permissions

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