sdptool failes with bluetooth dongle

Bug #424225 reported by Matthias Blaicher
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
bluez (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: bluez

USB dongle is discovered and pairing works, so does "hcitool scan", however

#sdptool browse 00:1B:AF:xx:xx:xx
Failed to connect to SDP server on 00:1B:AF:xx:xx:xx: File descriptor in bad state

Also searching for devices with gnome-bluez doesn't turn up any device (it does however when trying OBEX Push, which fails when transmitting thoug)

This problem has existed at least since Jaunty. Today there was a version bump in the karmic bluez stack but this didn't help. On my Asus EEE where bluetooth is integrated it does work though with the integrated bluetooth.

I suppose it is not a kernel bug as pairing with PIN works...

$ dmesg
[10672.488560] Bluetooth: Generic Bluetooth USB driver ver 0.5
[10672.488702] usbcore: registered new interface driver btusb
[10672.594900] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[10672.594904] Bluetooth: BNEP filters: protocol multicast
[10672.681922] Bridge firewalling registered

$ uname -a
Linux miraculix 2.6.31-9-generic #29-Ubuntu SMP Sun Aug 30 17:39:26 UTC 2009 x86_64 GNU/Linux

Bluetooth dongle:
Bus 004 Device 002: ID 1caa:0001

$ hcitool dev
Devices:
 hci0 00:1F:81:00:00:01

$hciconfig
hci0: Type: USB
 BD Address: 00:1F:81:00:00:01 ACL MTU: 339:6 SCO MTU: 180:1
 UP RUNNING PSCAN ISCAN
 RX bytes:3330 acl:13 sco:0 events:109 errors:0
 TX bytes:924 acl:15 sco:0 commands:56 errors:0

$hcitool inq
Inquiring ...
 00:1B:AF:xx:xx:xxE clock offset: 0x38a5 class: 0x5a020c

$ sudo hcitool info 00:1B:AF:xx:xx:xx
[sudo] password for mabl:
Requesting information ...
 BD Address: 00:1B:AF:xx:xx:xx
 Device Name: Nokia 6110 Navigator
 LMP Version: 2.0 (0x3) LMP Subversion: 0x2222
 Manufacturer: Broadcom Corporation (15)
 Features: 0xbf 0xee 0x0f 0x4e 0x98 0x19 0x00 0x00
  <3-slot packets> <5-slot packets> <encryption> <slot offset>
  <timing accuracy> <role switch> <sniff mode> <RSSI>
  <channel quality> <SCO link> <HV3 packets> <u-law log>
  <A-law log> <CVSD> <paging scheme> <power control>
  <transparent SCO> <EDR ACL 2 Mbps> <EDR ACL 3 Mbps>
  <enhanced iscan> <inquiry with RSSI> <AFH cap. slave>
  <AFH class. slave> <3-slot EDR ACL> <5-slot EDR ACL>
  <AFH cap. master> <AFH class. master>

$ sudo lsusb -v -d 1caa:0001
Bus 004 Device 002: ID 1caa:0001
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.00
  bDeviceClass 224 Wireless
  bDeviceSubClass 1 Radio Frequency
  bDeviceProtocol 1 Bluetooth
  bMaxPacketSize0 64
  idVendor 0x1caa
  idProduct 0x0001
  bcdDevice 19.15
  iManufacturer 0
  iProduct 0
  iSerial 0
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 193
    bNumInterfaces 3
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xc0
      Self Powered
    MaxPower 0mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 3
      bInterfaceClass 224 Wireless
      bInterfaceSubClass 1 Radio Frequency
      bInterfaceProtocol 1 Bluetooth
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0010 1x 16 bytes
        bInterval 1
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x82 EP 2 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0040 1x 64 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x02 EP 2 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0040 1x 64 bytes
        bInterval 0
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 1
      bAlternateSetting 0
      bNumEndpoints 2
      bInterfaceClass 224 Wireless
      bInterfaceSubClass 1 Radio Frequency
      bInterfaceProtocol 1 Bluetooth
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x83 EP 3 IN
        bmAttributes 1
          Transfer Type Isochronous
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0020 1x 32 bytes
        bInterval 1
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x03 EP 3 OUT
        bmAttributes 1
          Transfer Type Isochronous
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0020 1x 32 bytes
        bInterval 1
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 1
      bAlternateSetting 1
      bNumEndpoints 2
      bInterfaceClass 224 Wireless
      bInterfaceSubClass 1 Radio Frequency
      bInterfaceProtocol 1 Bluetooth
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x83 EP 3 IN
        bmAttributes 1
          Transfer Type Isochronous
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0009 1x 9 bytes
        bInterval 1
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x03 EP 3 OUT
        bmAttributes 1
          Transfer Type Isochronous
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0009 1x 9 bytes
        bInterval 1
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 1
      bAlternateSetting 2
      bNumEndpoints 2
      bInterfaceClass 224 Wireless
      bInterfaceSubClass 1 Radio Frequency
      bInterfaceProtocol 1 Bluetooth
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x83 EP 3 IN
        bmAttributes 1
          Transfer Type Isochronous
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0011 1x 17 bytes
        bInterval 1
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x03 EP 3 OUT
        bmAttributes 1
          Transfer Type Isochronous
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0011 1x 17 bytes
        bInterval 1
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 1
      bAlternateSetting 3
      bNumEndpoints 2
      bInterfaceClass 224 Wireless
      bInterfaceSubClass 1 Radio Frequency
      bInterfaceProtocol 1 Bluetooth
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x83 EP 3 IN
        bmAttributes 1
          Transfer Type Isochronous
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0019 1x 25 bytes
        bInterval 1
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x03 EP 3 OUT
        bmAttributes 1
          Transfer Type Isochronous
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0019 1x 25 bytes
        bInterval 1
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 1
      bAlternateSetting 4
      bNumEndpoints 2
      bInterfaceClass 224 Wireless
      bInterfaceSubClass 1 Radio Frequency
      bInterfaceProtocol 1 Bluetooth
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x83 EP 3 IN
        bmAttributes 1
          Transfer Type Isochronous
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0021 1x 33 bytes
        bInterval 1
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x03 EP 3 OUT
        bmAttributes 1
          Transfer Type Isochronous
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0021 1x 33 bytes
        bInterval 1
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 1
      bAlternateSetting 5
      bNumEndpoints 2
      bInterfaceClass 224 Wireless
      bInterfaceSubClass 1 Radio Frequency
      bInterfaceProtocol 1 Bluetooth
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x83 EP 3 IN
        bmAttributes 1
          Transfer Type Isochronous
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0031 1x 49 bytes
        bInterval 1
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x03 EP 3 OUT
        bmAttributes 1
          Transfer Type Isochronous
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0031 1x 49 bytes
        bInterval 1
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 2
      bAlternateSetting 0
      bNumEndpoints 0
      bInterfaceClass 254 Application Specific Interface
      bInterfaceSubClass 1 Device Firmware Update
      bInterfaceProtocol 0
      iInterface 0
      Device Firmware Upgrade Interface Descriptor:
        bLength 7
        bDescriptorType 33
        bmAttributes 7
          Will Not Detach
          Manifestation Tolerant
          Upload Supported
          Download Supported
        wDetachTimeout 5000 milliseconds
        wTransferSize 1023 bytes
Device Status: 0x0000
  (Bus Powered)

Tags: karmic
Revision history for this message
papukaija (papukaija) wrote :

This bug is affecting 2 people.

summary: - [karmic] sdptool failes with bluetooth dongle
+ sdptool failes with bluetooth dongle
Changed in bluez (Ubuntu):
status: New → Confirmed
tags: added: karmic
description: updated
Revision history for this message
Konstantin Baranovskiy (baranovskiykonstantin) wrote :

System - Ubuntu 12.04
Notebook - Lenovo G550

uname -a
Linux Lenovo-G550 3.2.0-31-generic #50-Ubuntu SMP Fri Sep 7 16:17:36 UTC 2012 i686 i686 i386 GNU/Linux

lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 5986:0145 Acer, Inc
Bus 002 Device 004: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
Bus 006 Device 005: ID 1caa:0001

usb-devices
T: Bus=06 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 5 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1caa ProdID=0001 Rev=19.15
C: #Ifs= 3 Cfg#= 1 Atr=c0 MxPwr=0mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
I: If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
I: If#= 2 Alt= 0 #EPs= 0 Cls=fe(app. ) Sub=01 Prot=00 Driver=(none)

When plug on in syslog shows:

Sep 28 10:50:14 Lenovo-G550 kernel: [ 3289.344044] usb 6-1: new full-speed USB device number 7 using uhci_hcd
Sep 28 10:50:15 Lenovo-G550 bluetoothd[613]: HCI dev 0 registered
Sep 28 10:50:15 Lenovo-G550 bluetoothd[613]: Listening for HCI events on hci0
Sep 28 10:50:15 Lenovo-G550 bluetoothd[613]: HCI dev 0 up
Sep 28 10:50:15 Lenovo-G550 bluetoothd[613]: Adapter /org/bluez/613/hci0 has been enabled
Sep 28 10:50:15 Lenovo-G550 bluetoothd[613]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/HFPAG
Sep 28 10:50:15 Lenovo-G550 bluetoothd[613]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSource
Sep 28 10:50:15 Lenovo-G550 bluetoothd[613]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSink

Revision history for this message
Konrad Zapałowicz (kzapalowicz) wrote :

This is reported against an old version of Ubuntu and many things has changed since then. Because of that we won't fix this issue however if this behavior repeats on a modern version please fill a bug report against it and we will take it from there.

Changed in bluez (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.