057c:3800 BlueFRITZ! Bluetooth Stick broken since 2.6.something
Subsystems (2)
Hi list,
don´t know if it is wrong to post under the same topic which is more than one year old. Ref to it is here.
http://www.spinics.net/lists/linux-bluetooth/msg18763.html
There was never an answer to the latest question from Michael if there will be a solution.
I also tried to get this to run with my latest kernel 3.10 under debian 7 without success. Will there be a solution or should I open my real trashbin?(other sticks are working so far for me) :)
Let me know if you need more info´s on that.
Thx,
Joerg
My syslog says:
Jul 18 15:11:10 debian-capi kernel: [ 64.808373] usb 1-3: new full-speed USB device number 5 using ohci_hcd Jul 18 15:11:10 debian-capi kernel: [ 65.277828] usb 1-3: New USB device found, idVendor=057c, idProduct=3800 Jul 18 15:11:10 debian-capi kernel: [ 65.277834] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Jul 18 15:11:10 debian-capi kernel: [ 65.277838] usb 1-3: Product: Bluetooth Device Jul 18 15:11:10 debian-capi kernel: [ 65.277841] usb 1-3: Manufacturer: Bluetooth Device Jul 18 15:11:10 debian-capi kernel: [ 65.277844] usb 1-3: SerialNumber: CC1C8D0E0400 Jul 18 15:11:10 debian-capi bluetoothd[2199]: HCI dev 0 registered Jul 18 15:11:10 debian-capi bluetoothd[2199]: Listening for HCI events on hci0 Jul 18 15:11:11 debian-capi bluetoothd[2894]: Can't init device hci0: Invalid request code (56)
debian-capi:~# lsusb -v -d 057c:3800
Bus 001 Device 005: ID 057c:3800 AVM GmbH BlueFRITZ! Bluetooth Stick Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 255 Vendor Specific Class
bDeviceSubClass 255 Vendor Specific Subclass bDeviceProtocol 255 Vendor Specific Protocol bMaxPacketSize0 64
idVendor 0x057c AVM GmbH
idProduct 0x3800 BlueFRITZ! Bluetooth Stick
bcdDevice 15.00
iManufacturer 1 Bluetooth Device
iProduct 2 Bluetooth Device
iSerial 3 CC1C8D0E0400
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 177
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 200mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol 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 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol 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 0x0000 1x 0 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 0x0000 1x 0 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 1
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol 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 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol 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 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol 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 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol 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 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol 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
Device Status: 0x0000
(Bus Powered)
debian-capi:~#
Marcel Holtmann
maintainerHi Joerg,
Quoted 14 lines
don´t know if it is wrong to post under the same topic which is more than one year old. Ref to it is here.
http://www.spinics.net/lists/linux-bluetooth/msg18763.html
There was never an answer to the latest question from Michael if there will be a solution.I also tried to get this to run with my latest kernel 3.10 under debian 7 without success. Will there be a solution or should I open my real trashbin?(other sticks are working so far for me) :)
Let me know if you need more info´s on that.
Thx,
JoergMy syslog says:
Quoted 9 lines
Jul 18 15:11:10 debian-capi kernel: [ 64.808373] usb 1-3: new full-speed USB device number 5 using ohci_hcd Jul 18 15:11:10 debian-capi kernel: [ 65.277828] usb 1-3: New USB device found, idVendor=057c, idProduct=3800 Jul 18 15:11:10 debian-capi kernel: [ 65.277834] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Jul 18 15:11:10 debian-capi kernel: [ 65.277838] usb 1-3: Product: Bluetooth Device Jul 18 15:11:10 debian-capi kernel: [ 65.277841] usb 1-3: Manufacturer: Bluetooth Device Jul 18 15:11:10 debian-capi kernel: [ 65.277844] usb 1-3: SerialNumber: CC1C8D0E0400 Jul 18 15:11:10 debian-capi bluetoothd[2199]: HCI dev 0 registered Jul 18 15:11:10 debian-capi bluetoothd[2199]: Listening for HCI events on hci0 Jul 18 15:11:11 debian-capi bluetoothd[2894]: Can't init device hci0: Invalid request code (56)
any chance you can run btmon and see if we have failing HCI commands during the setup phase.
Quoted 1 line
debian-capi:~# lsusb -v -d 057c:3800
Can you include /sys/kernel/debug/usb/devices from this device.
Regards
Marcel
Quoted 25 lines · Marcel Holtmann
Hi Joerg,
Quoted 14 lines
don´t know if it is wrong to post under the same topic which is more than one year old. Ref to it is here.
http://www.spinics.net/lists/linux-bluetooth/msg18763.html
There was never an answer to the latest question from Michael if there will be a solution.I also tried to get this to run with my latest kernel 3.10 under debian 7 without success. Will there be a solution or should I open my real trashbin?(other sticks are working so far for me) :)
Let me know if you need more info´s on that.
Thx,
JoergMy syslog says:
Quoted 9 lines
Jul 18 15:11:10 debian-capi kernel: [ 64.808373] usb 1-3: new full-speed USB device number 5 using ohci_hcd Jul 18 15:11:10 debian-capi kernel: [ 65.277828] usb 1-3: New USB device found, idVendor=057c, idProduct=3800 Jul 18 15:11:10 debian-capi kernel: [ 65.277834] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Jul 18 15:11:10 debian-capi kernel: [ 65.277838] usb 1-3: Product: Bluetooth Device Jul 18 15:11:10 debian-capi kernel: [ 65.277841] usb 1-3: Manufacturer: Bluetooth Device Jul 18 15:11:10 debian-capi kernel: [ 65.277844] usb 1-3: SerialNumber: CC1C8D0E0400 Jul 18 15:11:10 debian-capi bluetoothd[2199]: HCI dev 0 registered Jul 18 15:11:10 debian-capi bluetoothd[2199]: Listening for HCI events on hci0 Jul 18 15:11:11 debian-capi bluetoothd[2894]: Can't init device hci0: Invalid request code (56)
Quoted 1 line
any chance you can run btmon and see if we have failing HCI commands during the setup phase.
Sure! Here you are:
debian-capi:~# btmon Bluetooth monitor ver 5.7 = New Index: 00:00:00:00:00:00 (BR/EDR,USB,hci0) [hci0] 0.025804 < HCI Command: Reset (0x03|0x0003) plen 0 [hci0] 0.031045
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.037000
Reset (0x03|0x0003) ncmd 1
Status: Success (0x00)< HCI Command: Read Local Supported Feat.. (0x04|0x0003) plen 0 [hci0] 0.037209
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 0.040740
Read Local Supported Features (0x04|0x0003) ncmd 1
Status: Success (0x00)
Features: 0xff 0xff 0x05 0x00 0x18 0x18 0x00 0x00
3 slot packets
5 slot packets
Encryption
Slot offset
Timing accuracy
Role switch
Hold mode
Sniff mode
Park state
Power control requests
Channel quality driven data rate (CQDDR)
SCO link
HV2 packets
HV3 packets
u-law log synchronous data
A-law log synchronous data
CVSD synchronous data
Power control
AFH capable slave
AFH classification slave
AFH capable master
AFH classification master
< HCI Command: Read Local Version Inform.. (0x04|0x0001) plen 0 [hci0] 0.041025
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 0.043811
Read Local Version Information (0x04|0x0001) ncmd 1
Status: Success (0x00)
HCI version: 2 - 0x2006
LMP version: 2 - 0x1806
Manufacturer: AVM Berlin (31)< HCI Command: Read BD ADDR (0x04|0x0009) plen 0 [hci0] 0.044100
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 10 [hci0] 0.046722
Read BD ADDR (0x04|0x0009) ncmd 1
Status: Success (0x00)
Address: 00:04:0E:8D:1C:CC (OUI 00-04-0E)< HCI Command: Read Buffer Size (0x04|0x0005) plen 0 [hci0] 0.046988
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 11 [hci0] 0.050948
Read Buffer Size (0x04|0x0005) ncmd 1
Status: Success (0x00)
ACL MTU: 120 ACL max packet: 20
SCO MTU: 24 SCO max packet: 5
< HCI Command: Read Class of Device (0x03|0x0023) plen 0 [hci0] 0.051235
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 7 [hci0] 0.055000
Read Class of Device (0x03|0x0023) ncmd 1
Status: Success (0x00)
Class: 0x000000
Major class: Miscellaneous
Minor class: 0x00< HCI Command: Read Local Name (0x03|0x0014) plen 0 [hci0] 0.055261
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 252 [hci0] 0.092918
Read Local Name (0x03|0x0014) ncmd 1
Status: Success (0x00)
Name:< HCI Command: Read Voice Setting (0x03|0x0025) plen 0 [hci0] 0.093212
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 6 [hci0] 0.096713
Read Voice Setting (0x03|0x0025) ncmd 1
Status: Success (0x00)
Setting: 0x0060
< HCI Command: Set Event Filter (0x03|0x0005) plen 1 [hci0] 0.096974
Type: 0x00Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.101024
Set Event Filter (0x03|0x0005) ncmd 1
Status: Success (0x00)
< HCI Command: Write Connection Accept T.. (0x03|0x0016) plen 2 [hci0] 0.101262
Timeout: 20000.000 msec (0x7d00)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.105011
Write Connection Accept Timeout (0x03|0x0016) ncmd 1
Status: Success (0x00)< HCI Command: Read Page Scan Activity (0x03|0x001b) plen 0 [hci0] 0.105254
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 8 [hci0] 0.108002
Read Page Scan Activity (0x03|0x001b) ncmd 1
Status: Success (0x00)
Interval: 1280.000 msec (0x0800)
Window: 11.250 msec (0x0012)< HCI Command: Read Page Scan Type (0x03|0x0046) plen 0 [hci0] 0.108255
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 5 [hci0] 0.111710
Read Page Scan Type (0x03|0x0046) ncmd 1
Status: Success (0x00)
Type: Standard Scan (0x00)< HCI Command: Set Event Mask (0x03|0x0001) plen 8 [hci0] 0.111960
Mask: 0x00001807fffbffff
Inquiry Complete
Inquiry Result
Connection Complete
Connection Request
Disconnection Complete
Authentication Complete
Remote Name Request Complete
Encryption Change
Change Connection Link Key Complete
Master Link Key Complete
Read Remote Supported Features Complete
Read Remote Version Information Complete
QoS Setup Complete
Command Complete
Command Status
Hardware Error
Flush Occurred
Role Change
Mode Change
Return Link Keys
PIN Code Request
Link Key Request
Link Key Notification
Loopback Command
Data Buffer Overflow
Max Slots Change
Read Clock Offset Complete
Connection Packet Type Changed
QoS Violation
Page Scan Mode Change
Page Scan Repetition Mode Change
Flow Specification Complete
Inquiry Result with RSSI
Read Remote Extended Features Complete Synchronous Connection Complete
Synchronous Connection Changed
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.114810
Set Event Mask (0x03|0x0001) ncmd 1
Status: Success (0x00)< HCI Command: Read Local Supported Comm.. (0x04|0x0002) plen 0 [hci0] 0.114948
Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4 [hci0] 0.117791
Read Local Supported Commands (0x04|0x0002) ncmd 1
Status: Unknown HCI Command (0x01)< HCI Command: Reset (0x03|0x0003) plen 0 [hci0] 0.121133
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.131017
Reset (0x03|0x0003) ncmd 1
Status: Success (0x00)< HCI Command: Read Local Supported Feat.. (0x04|0x0003) plen 0 [hci0] 0.131157
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 0.134997
Read Local Supported Features (0x04|0x0003) ncmd 1
Status: Success (0x00)
Features: 0xff 0xff 0x05 0x00 0x18 0x18 0x00 0x00
3 slot packets
5 slot packets
Encryption
Slot offset
Timing accuracy
Role switch
Hold mode
Sniff mode
Park state
Power control requests
Channel quality driven data rate (CQDDR)
SCO link
HV2 packets
HV3 packets
u-law log synchronous data
A-law log synchronous data
CVSD synchronous data
Power control
AFH capable slave
AFH classification slave
AFH capable master
AFH classification master
< HCI Command: Read Local Version Inform.. (0x04|0x0001) plen 0 [hci0] 0.135164
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 0.138030
Read Local Version Information (0x04|0x0001) ncmd 1
Status: Success (0x00)
HCI version: 2 - 0x2006
LMP version: 2 - 0x1806
Manufacturer: AVM Berlin (31)< HCI Command: Read BD ADDR (0x04|0x0009) plen 0 [hci0] 0.138178
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 10 [hci0] 0.141784
Read BD ADDR (0x04|0x0009) ncmd 1
Status: Success (0x00)
Address: 00:04:0E:8D:1C:CC (OUI 00-04-0E)< HCI Command: Read Buffer Size (0x04|0x0005) plen 0 [hci0] 0.141965
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 11 [hci0] 0.144741
Read Buffer Size (0x04|0x0005) ncmd 1
Status: Success (0x00)
ACL MTU: 120 ACL max packet: 20
SCO MTU: 24 SCO max packet: 5
< HCI Command: Read Class of Device (0x03|0x0023) plen 0 [hci0] 0.144831
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 7 [hci0] 0.148377
Read Class of Device (0x03|0x0023) ncmd 1
Status: Success (0x00)
Class: 0x000000
Major class: Miscellaneous
Minor class: 0x00< HCI Command: Read Local Name (0x03|0x0014) plen 0 [hci0] 0.148518
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 252 [hci0] 0.187913
Read Local Name (0x03|0x0014) ncmd 1
Status: Success (0x00)
Name:< HCI Command: Read Voice Setting (0x03|0x0025) plen 0 [hci0] 0.188103
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 6 [hci0] 0.191659
Read Voice Setting (0x03|0x0025) ncmd 1
Status: Success (0x00)
Setting: 0x0060
< HCI Command: Set Event Filter (0x03|0x0005) plen 1 [hci0] 0.191790
Type: 0x00Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.195844
Set Event Filter (0x03|0x0005) ncmd 1
Status: Success (0x00)
< HCI Command: Write Connection Accept T.. (0x03|0x0016) plen 2 [hci0] 0.195971
Timeout: 20000.000 msec (0x7d00)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.198667
Write Connection Accept Timeout (0x03|0x0016) ncmd 1
Status: Success (0x00)< HCI Command: Read Page Scan Activity (0x03|0x001b) plen 0 [hci0] 0.198911
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 8 [hci0] 0.202899
Read Page Scan Activity (0x03|0x001b) ncmd 1
Status: Success (0x00)
Interval: 1280.000 msec (0x0800)
Window: 11.250 msec (0x0012)< HCI Command: Read Page Scan Type (0x03|0x0046) plen 0 [hci0] 0.203040
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 5 [hci0] 0.206659
Read Page Scan Type (0x03|0x0046) ncmd 1
Status: Success (0x00)
Type: Standard Scan (0x00)< HCI Command: Set Event Mask (0x03|0x0001) plen 8 [hci0] 0.206842
Mask: 0x00001807fffbffff
Inquiry Complete
Inquiry Result
Connection Complete
Connection Request
Disconnection Complete
Authentication Complete
Remote Name Request Complete
Encryption Change
Change Connection Link Key Complete
Master Link Key Complete
Read Remote Supported Features Complete
Read Remote Version Information Complete
QoS Setup Complete
Command Complete
Command Status
Hardware Error
Flush Occurred
Role Change
Mode Change
Return Link Keys
PIN Code Request
Link Key Request
Link Key Notification
Loopback Command
Data Buffer Overflow
Max Slots Change
Read Clock Offset Complete
Connection Packet Type Changed
QoS Violation
Page Scan Mode Change
Page Scan Repetition Mode Change
Flow Specification Complete
Inquiry Result with RSSI
Read Remote Extended Features Complete Synchronous Connection Complete
Synchronous Connection Changed
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.209839
Set Event Mask (0x03|0x0001) ncmd 1
Status: Success (0x00)< HCI Command: Read Local Supported Comm.. (0x04|0x0002) plen 0 [hci0] 0.210014
Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4 [hci0] 0.217361
Read Local Supported Commands (0x04|0x0002) ncmd 1
Status: Unknown HCI Command (0x01)Quoted 3 lines
Quoted 2 lines
debian-capi:~# lsusb -v -d 057c:3800Can you include
/sys/kernel/debug/usb/devicesfrom this device.
After mounting debugfs with
*mount -t debugfs none /sys/kernel/debug*
I got this:
debian-capi:~# cat /sys/kernel/debug/usb/devices
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 8 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=1d6b ProdID=0002 Rev= 3.10 S: Manufacturer=Linux 3.10.1 ehci_hcd S: Product=EHCI Host Controller S: SerialNumber=0000:00:0b.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 8 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=1d6b ProdID=0001 Rev= 3.10 S: Manufacturer=Linux 3.10.1 ohci_hcd S: Product=OHCI Host Controller S: SerialNumber=0000:00:06.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=80ee ProdID=0021 Rev= 1.00 S: Manufacturer=VirtualBox S: Product=USB Tablet
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 6 Ivl=10ms
T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 3 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=02(comm.) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0675 ProdID=1688 Rev= 1.00 S: Manufacturer=USB ISDN TA S: Product=USB ISDN TA S: SerialNumber=USB ISDN TA
C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr= 64mA
I:* If#= 0 Alt= 0 #EPs= 0 Cls=02(comm.) Sub=80 Prot=ff Driver=(none)
I: If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=ff Driver=HFC-S_USB I:* If#= 1 Alt= 1 #EPs= 8 Cls=0a(data ) Sub=00 Prot=ff Driver=HFC-S_USB
E: Ad=05(O) Atr=01(Isoc) MxPS= 16 Ivl=1ms E: Ad=85(I) Atr=01(Isoc) MxPS= 16 Ivl=1ms E: Ad=06(O) Atr=01(Isoc) MxPS= 16 Ivl=1ms E: Ad=86(I) Atr=01(Isoc) MxPS= 16 Ivl=1ms E: Ad=07(O) Atr=01(Isoc) MxPS= 16 Ivl=1ms E: Ad=87(I) Atr=01(Isoc) MxPS= 16 Ivl=1ms E: Ad=08(O) Atr=01(Isoc) MxPS= 16 Ivl=1ms E: Ad=88(I) Atr=01(Isoc) MxPS= 16 Ivl=1ms I: If#= 1 Alt= 2 #EPs= 7 Cls=0a(data ) Sub=00 Prot=ff Driver=HFC-S_USB E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=81(I) Atr=03(Int.) MxPS= 64 Ivl=4ms E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=82(I) Atr=03(Int.) MxPS= 64 Ivl=4ms E: Ad=03(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=83(I) Atr=03(Int.) MxPS= 64 Ivl=16ms E: Ad=84(I) Atr=03(Int.) MxPS= 64 Ivl=4ms I: If#= 1 Alt= 3 #EPs= 8 Cls=0a(data ) Sub=00 Prot=ff Driver=HFC-S_USB E: Ad=03(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=83(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=84(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=05(O) Atr=01(Isoc) MxPS= 16 Ivl=1ms E: Ad=85(I) Atr=01(Isoc) MxPS= 16 Ivl=1ms E: Ad=06(O) Atr=01(Isoc) MxPS= 16 Ivl=1ms E: Ad=86(I) Atr=01(Isoc) MxPS= 16 Ivl=1ms
T: Bus=01 Lev=01 Prnt=01 Port=02 Cnt=03 Dev#= 8 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=ff(vend.) Sub=ff Prot=ff MxPS=64 #Cfgs= 1 P: Vendor=057c ProdID=3800 Rev=15.00 S: Manufacturer=Bluetooth Device S: Product=Bluetooth Device S: SerialNumber=CC1C8D0E0400 C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=200mA I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=btusb E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=1ms E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=btusb E: Ad=83(I) Atr=01(Isoc) MxPS= 0 Ivl=1ms E: Ad=03(O) Atr=01(Isoc) MxPS= 0 Ivl=1ms I: If#= 1 Alt= 1 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=btusb E: Ad=83(I) Atr=01(Isoc) MxPS= 9 Ivl=1ms E: Ad=03(O) Atr=01(Isoc) MxPS= 9 Ivl=1ms I: If#= 1 Alt= 2 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=btusb E: Ad=83(I) Atr=01(Isoc) MxPS= 17 Ivl=1ms E: Ad=03(O) Atr=01(Isoc) MxPS= 17 Ivl=1ms I: If#= 1 Alt= 3 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=btusb E: Ad=83(I) Atr=01(Isoc) MxPS= 25 Ivl=1ms E: Ad=03(O) Atr=01(Isoc) MxPS= 25 Ivl=1ms I: If#= 1 Alt= 4 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=btusb E: Ad=83(I) Atr=01(Isoc) MxPS= 33 Ivl=1ms E: Ad=03(O) Atr=01(Isoc) MxPS= 33 Ivl=1ms I: If#= 1 Alt= 5 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=btusb E: Ad=83(I) Atr=01(Isoc) MxPS= 49 Ivl=1ms E: Ad=03(O) Atr=01(Isoc) MxPS= 49 Ivl=1ms
debian-capi:~#
Oh i forgot to mention that I run this under Virtualbox 4.2.16 with Windows7 64bit host. I hope that i still get support?
If not I also can put this into some real hardware with latest kernel.
Signature · 1 line
Gruss, Joerg
Marcel Holtmann
maintainerHi Joerg,
Quoted 61 lines
Quoted 23 lines
Quoted 14 lines
don´t know if it is wrong to post under the same topic which is more than one year old. Ref to it is here.
http://www.spinics.net/lists/linux-bluetooth/msg18763.html
There was never an answer to the latest question from Michael if there will be a solution.I also tried to get this to run with my latest kernel 3.10 under debian 7 without success. Will there be a solution or should I open my real trashbin?(other sticks are working so far for me) :)
Let me know if you need more info´s on that.
Thx,
JoergMy syslog says:
Quoted 9 lines
Jul 18 15:11:10 debian-capi kernel: [ 64.808373] usb 1-3: new full-speed USB device number 5 using ohci_hcd Jul 18 15:11:10 debian-capi kernel: [ 65.277828] usb 1-3: New USB device found, idVendor=057c, idProduct=3800 Jul 18 15:11:10 debian-capi kernel: [ 65.277834] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Jul 18 15:11:10 debian-capi kernel: [ 65.277838] usb 1-3: Product: Bluetooth Device Jul 18 15:11:10 debian-capi kernel: [ 65.277841] usb 1-3: Manufacturer: Bluetooth Device Jul 18 15:11:10 debian-capi kernel: [ 65.277844] usb 1-3: SerialNumber: CC1C8D0E0400 Jul 18 15:11:10 debian-capi bluetoothd[2199]: HCI dev 0 registered Jul 18 15:11:10 debian-capi bluetoothd[2199]: Listening for HCI events on hci0 Jul 18 15:11:11 debian-capi bluetoothd[2894]: Can't init device hci0: Invalid request code (56)Quoted 1 line
any chance you can run btmon and see if we have failing HCI commands during the setup phase.
Sure! Here you are:
debian-capi:~# btmon Bluetooth monitor ver 5.7 = New Index: 00:00:00:00:00:00 (BR/EDR,USB,hci0) [hci0] 0.025804 < HCI Command: Reset (0x03|0x0003) plen 0 [hci0] 0.031045Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.037000Reset (0x03|0x0003) ncmd 1 Status: Success (0x00)< HCI Command: Read Local Supported Feat.. (0x04|0x0003) plen 0 [hci0] 0.037209
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 0.040740Read Local Supported Features (0x04|0x0003) ncmd 1
Status: Success (0x00)
Features:0xff0xff0x050x000x180x180x000x00
3 slot packets
5 slot packets
Encryption
Slot offset
Timing accuracy
Role switch
Hold mode
Sniff mode
Park state
Power control requests
Channel quality driven data rate (CQDDR)
SCO link
HV2 packets
HV3 packets
u-law log synchronous data
A-law log synchronous data
CVSD synchronous data
Power control
AFH capable slave
AFH classification slave
AFH capable master
AFH classification master
< HCI Command: Read Local Version Inform.. (0x04|0x0001) plen 0 [hci0] 0.041025
Quoted 6 lines
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 0.043811Read Local Version Information (0x04|0x0001) ncmd 1 Status: Success (0x00) HCI version: 2 - 0x2006 LMP version: 2 - 0x1806 Manufacturer: AVM Berlin (31)
it declares itself here as Bluetooth 1.2 device. Which means it is the second generation of BlueFritz! USB device.
<snip>
Quoted 4 lines
< HCI Command: Read Local Supported Comm.. (0x04|0x0002) plen 0 [hci0] 0.210014
Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4 [hci0] 0.217361Read Local Supported Commands (0x04|0x0002) ncmd 1 Status: Unknown HCI Command (0x01)
And here is your failing command. Newer kernels have been strict with failing commands and will just abort the setup if anything goes wrong.
Johan, we need to figure out on how to work around this one. Might just match for the manufacturer before sending the command.
Quoted 10 lines
Quoted 2 lines
Quoted 1 line
debian-capi:~# lsusb -v -d 057c:3800Can you include
/sys/kernel/debug/usb/devicesfrom this device.After mounting debugfs with
*mount -t debugfs none
/sys/kernel/debug*I got this:
debian-capi:~# cat /sys/kernel/debug/usb/devices
<snip>
Quoted 21 lines
T: Bus=01 Lev=01 Prnt=01 Port=02 Cnt=03 Dev#= 8 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=ff(vend.) Sub=ff Prot=ff MxPS=64 #Cfgs= 1 P: Vendor=057c ProdID=3800 Rev=15.00 S: Manufacturer=Bluetooth Device S: Product=Bluetooth Device S: SerialNumber=CC1C8D0E0400 C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=200mA I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=btusb E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=1ms E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=btusb E: Ad=83(I) Atr=01(Isoc) MxPS= 0 Ivl=1ms E: Ad=03(O) Atr=01(Isoc) MxPS= 0 Ivl=1ms I: If#= 1 Alt= 1 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=btusb E: Ad=83(I) Atr=01(Isoc) MxPS= 9 Ivl=1ms E: Ad=03(O) Atr=01(Isoc) MxPS= 9 Ivl=1ms I: If#= 1 Alt= 2 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=btusb E: Ad=83(I) Atr=01(Isoc) MxPS= 17 Ivl=1ms E: Ad=03(O) Atr=01(Isoc) MxPS= 17 Ivl=1ms I: If#= 1 Alt= 3 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=btusb
Quoted 8 lines
E: Ad=83(I) Atr=01(Isoc) MxPS= 25 Ivl=1ms E: Ad=03(O) Atr=01(Isoc) MxPS= 25 Ivl=1ms I: If#= 1 Alt= 4 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=btusb E: Ad=83(I) Atr=01(Isoc) MxPS= 33 Ivl=1ms E: Ad=03(O) Atr=01(Isoc) MxPS= 33 Ivl=1ms I: If#= 1 Alt= 5 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=btusb E: Ad=83(I) Atr=01(Isoc) MxPS= 49 Ivl=1ms E: Ad=03(O) Atr=01(Isoc) MxPS= 49 Ivl=1ms
Sorry to make you jump through this hoop, but I needed to know which version of the dongle it is. The first version has its own driver.
Quoted 5 lines
debian-capi:~#
Oh i forgot to mention that I run this under Virtualbox 4.2.16 with Windows7 64bit host. I hope that i still get support?
If not I also can put this into some real hardware with latest kernel.
I think the issue is pretty clear.
Regards
Marcel
Hi Marcel,
Quoted 14 lines · Marcel Holtmann
Quoted 6 lines
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 0.043811Read Local Version Information (0x04|0x0001) ncmd 1 Status: Success (0x00) HCI version: 2 - 0x2006 LMP version: 2 - 0x1806 Manufacturer: AVM Berlin (31)it declares itself here as Bluetooth 1.2 device. Which means it is the second generation of BlueFritz! USB device.
<snip>
Quoted 2 lines
< HCI Command: Read Local Supported Comm.. (0x04|0x0002) plen 0 [hci0] 0.210014
Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4 [hci0] 0.217361
Quoted 8 lines
Quoted 2 lines
Read Local Supported Commands (0x04|0x0002) ncmd 1 Status: Unknown HCI Command (0x01)And here is your failing command. Newer kernels have been strict with failing commands and will just abort the setup if anything goes wrong.
Johan, we need to figure out on how to work around this one. Might just match for the manufacturer before sending the command.
Either that or a quirk based on the USB id. Wouldn't matching just the manufacturer be a bit problematic for any newer chips from this company, or they stopped doing Bluetooth dongles after this one?
Johan
Quoted 18 lines · Johan Hedberg
Hi Marcel,
Quoted 15 lines · Marcel Holtmann
Quoted 6 lines
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 0.043811Read Local Version Information (0x04|0x0001) ncmd 1 Status: Success (0x00) HCI version: 2 - 0x2006 LMP version: 2 - 0x1806 Manufacturer: AVM Berlin (31)it declares itself here as Bluetooth 1.2 device. Which means it is the second generation of BlueFritz! USB device.
<snip>
Quoted 4 lines
< HCI Command: Read Local Supported Comm.. (0x04|0x0002) plen 0 [hci0] 0.210014
Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4 [hci0] 0.217361Read Local Supported Commands (0x04|0x0002) ncmd 1 Status: Unknown HCI Command (0x01)
Quoted 8 lines
Quoted 5 lines
And here is your failing command. Newer kernels have been strict with failing commands and will just abort the setup if anything goes wrong.
Johan, we need to figure out on how to work around this one. Might just match for the manufacturer before sending the command.
Either that or a quirk based on the USB id. Wouldn't matching just the manufacturer be a bit problematic for any newer chips from this company, or they stopped doing Bluetooth dongles after this one?
They stopped doing Bluetooth dongles after this one. I found no more Product with bluetooth on their website. The support from AVM endet on 01.12.2009.
As I read here http://www.wehavemorefun.de/fritzbox/BlueFRITZ!_USB
Should I open my trashbin?
Signature · 1 line
Gruss, Joerg
Marcel Holtmann
maintainerHi Johan,
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Quoted 6 lines
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 0.043811Read Local Version Information (0x04|0x0001) ncmd 1 Status: Success (0x00) HCI version: 2 - 0x2006 LMP version: 2 - 0x1806 Manufacturer: AVM Berlin (31)it declares itself here as Bluetooth 1.2 device. Which means it is the second generation of BlueFritz! USB device.
<snip>
Quoted 4 lines
< HCI Command: Read Local Supported Comm.. (0x04|0x0002) plen 0 [hci0] 0.210014
Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4 [hci0] 0.217361Read Local Supported Commands (0x04|0x0002) ncmd 1 Status: Unknown HCI Command (0x01)And here is your failing command. Newer kernels have been strict with failing commands and will just abort the setup if anything goes wrong.
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Johan, we need to figure out on how to work around this one. Might just match for the manufacturer before sending the command.
Either that or a quirk based on the USB id. Wouldn't matching just the manufacturer be a bit problematic for any newer chips from this company, or they stopped doing Bluetooth dongles after this one?
They stopped doing Bluetooth dongles after this one. I found no more Product with bluetooth on their website. The support from AVM endet on 01.12.2009.
As I read here http://www.wehavemorefun.de/fritzbox/BlueFRITZ!_USB
yes, they ever only made two products. And their baseband was based on Silicon Wave which actually got bought by Qualcomm if I remember this correctly. So going by the manufacturer id and adding a good comment into the code might make this work nicely again.
Johan, if you prefer a quirk, then go for that one.
Quoted 1 line
Should I open my trash bin?
It is nice to have these old-timers around. And we do want to make them work. Knowing where they fail is actually pretty good. Then again, it is a Bluetooth 1.2 dongle and your are missing features like Secure Simple Pairing or Low Energy.
Regards
Marcel
Hi Marcel,
Quoted 28 lines · Marcel Holtmann
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 6 lines
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 0.043811Read Local Version Information (0x04|0x0001) ncmd 1 Status: Success (0x00) HCI version: 2 - 0x2006 LMP version: 2 - 0x1806 Manufacturer: AVM Berlin (31)it declares itself here as Bluetooth 1.2 device. Which means it is the second generation of BlueFritz! USB device.
<snip>
Quoted 4 lines
< HCI Command: Read Local Supported Comm.. (0x04|0x0002) plen 0 [hci0] 0.210014
Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4 [hci0] 0.217361Read Local Supported Commands (0x04|0x0002) ncmd 1 Status: Unknown HCI Command (0x01)And here is your failing command. Newer kernels have been strict with failing commands and will just abort the setup if anything goes wrong.
Johan, we need to figure out on how to work around this one. Might just match for the manufacturer before sending the command.
Quoted 7 lines
Quoted 3 lines
Either that or a quirk based on the USB id. Wouldn't matching just the manufacturer be a bit problematic for any newer chips from this company, or they stopped doing Bluetooth dongles after this one?
They stopped doing Bluetooth dongles after this one. I found no more Product with bluetooth on their website.
The support from AVM endet on 01.12.2009.
As I read here http://www.wehavemorefun.de/fritzbox/BlueFRITZ!_USB
Quoted 6 lines
yes, they ever only made two products. And their baseband was based on Silicon Wave which actually got bought by Qualcomm if I remember this correctly. So going by the manufacturer id and adding a good comment into the code might make this work nicely again.
Johan, if you prefer a quirk, then go for that one.
Since we know that these are the only pieces of hardware that exist with this manufacturer id I think it's simplest to just use that instead of creating more code for this.
Attached is a patch that still needs to be tested. It might e.g. reveal other commands that also fail with this hardware.
Johan
Quoted 1 line
From
6c95ba1014b1949543fb16d3999fa3ed58e0f0d5Mon Sep 17 00:00:00 2001
From: Johan Hedberg <[email protected]>
Date: Wed, 24 Jul 2013 02:32:46 +0300
Subject: [PATCH] Bluetooth: Fix HCI init for BlueFRITZ! devices
None of the BlueFRITZ! devices with manufacurer ID 31 (AVM Berlin) support HCI_Read_Local_Supported_Commands. It is safe to use the manufacturer ID (instead of e.g. a USB ID specific quirk) because the company never created any newer controllers.
--- net/bluetooth/hci_core.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
net/bluetooth/hci_core.c +4 -1
@@ -513,7 +513,10 @@ static void hci_init2_req(struct hci_request *req, unsigned long opt)hci_setup_event_mask (req); -if (hdev->hci_ver >BLUETOOTH_VER_1_1 ) +/* AVM Berlin (31), aka "BlueFRITZ!", doesn't support the read +* local supported commands HCI command. +*/ +if (hdev->manufacturer !=31 && hdev->hci_ver >BLUETOOTH_VER_1_1 )hci_req_add (req,HCI_OP_READ_LOCAL_COMMANDS ,0 ,NULL );if (lmp_ssp_capable (hdev)) {
Signature · 1 line
1.8.3.2
Quoted 36 lines · Johan Hedberg
Hi Marcel,
Quoted 27 lines · Marcel Holtmann
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 6 lines
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 0.043811Read Local Version Information (0x04|0x0001) ncmd 1 Status: Success (0x00) HCI version: 2 - 0x2006 LMP version: 2 - 0x1806 Manufacturer: AVM Berlin (31)it declares itself here as Bluetooth 1.2 device. Which means it is the second generation of BlueFritz! USB device.
<snip>
Quoted 4 lines
< HCI Command: Read Local Supported Comm.. (0x04|0x0002) plen 0 [hci0] 0.210014
Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4 [hci0] 0.217361Read Local Supported Commands (0x04|0x0002) ncmd 1 Status: Unknown HCI Command (0x01)And here is your failing command. Newer kernels have been strict with failing commands and will just abort the setup if anything goes wrong.
Johan, we need to figure out on how to work around this one. Might just match for the manufacturer before sending the command.
Quoted 7 lines
Quoted 3 lines
Either that or a quirk based on the USB id. Wouldn't matching just the manufacturer be a bit problematic for any newer chips from this company, or they stopped doing Bluetooth dongles after this one?
They stopped doing Bluetooth dongles after this one. I found no more Product with bluetooth on their website.
The support from AVM endet on 01.12.2009.
As I read herehttp://www.wehavemorefun.de/fritzbox/BlueFRITZ!_USBQuoted 6 lines
yes, they ever only made two products. And their baseband was based on Silicon Wave which actually got bought by Qualcomm if I remember this correctly. So going by the manufacturer id and adding a good comment into the code might make this work nicely again.
Johan, if you prefer a quirk, then go for that one.
Quoted 8 lines
Since we know that these are the only pieces of hardware that exist with this manufacturer id I think it's simplest to just use that instead of creating more code for this.
Attached is a patch that still needs to be tested. It might e.g. reveal other commands that also fail with this hardware.
Johan
After appling your patch I can use the adapter.
syslog says:
Jul 24 16:21:31 debian-capi kernel: [ 153.864308] usb 1-3: new full-speed USB device number 4 using ohci_hcd Jul 24 16:21:31 debian-capi kernel: [ 154.120244] usb 1-3: New USB device found, idVendor=057c, idProduct=3800 Jul 24 16:21:31 debian-capi kernel: [ 154.120251] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Jul 24 16:21:31 debian-capi kernel: [ 154.120254] usb 1-3: Product: Bluetooth Device Jul 24 16:21:31 debian-capi kernel: [ 154.120257] usb 1-3: Manufacturer: Bluetooth Device Jul 24 16:21:31 debian-capi kernel: [ 154.120260] usb 1-3: SerialNumber: CC1C8D0E0400 Jul 24 16:21:31 debian-capi bluetoothd[2203]: HCI dev 0 registered Jul 24 16:21:31 debian-capi bluetoothd[2203]: Listening for HCI events on hci0 Jul 24 16:21:31 debian-capi kernel: [ 154.149949] usbcore: registered new interface driver btusb Jul 24 16:21:31 debian-capi bluetoothd[2203]: HCI dev 0 up Jul 24 16:21:31 debian-capi bluetoothd[2203]: Proximity GATT Reporter Driver: Operation not permitted (1) Jul 24 16:21:31 debian-capi bluetoothd[2203]: Unable to load keys to adapter_ops: Function not implemented (38) Jul 24 16:21:31 debian-capi bluetoothd[2203]: Adapter /org/bluez/2203/hci0 has been enabled
after scanning with hcitool scan, it finds my BT Speaker btmon says:
btmon
Bluetooth monitor ver 5.7
= New Index: 00:00:00:00:00:00 (BR/EDR,USB,hci0) [hci0] 0.767719 < HCI Command: Reset (0x03|0x0003) plen 0 [hci0] 0.773725
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.781039
Reset (0x03|0x0003) ncmd 1
Status: Success (0x00)< HCI Command: Read Local Supported Fea.. (0x04|0x0003) plen 0 [hci0] 0.781774
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 0.785505
Read Local Supported Features (0x04|0x0003) ncmd 1
Status: Success (0x00)
Features: 0xff 0xff 0x05 0x00 0x18 0x18 0x00 0x00
3 slot packets
5 slot packets
Encryption
Slot offset
Timing accuracy
Role switch
Hold mode
Sniff mode
Park state
Power control requests
Channel quality driven data rate (CQDDR)
SCO link
HV2 packets
HV3 packets
u-law log synchronous data
A-law log synchronous data
CVSD synchronous data
Power control
AFH capable slave
AFH classification slave
AFH capable master
AFH classification master
< HCI Command: Read Local Version Infor.. (0x04|0x0001) plen 0 [hci0] 0.785575
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 0.788286
Read Local Version Information (0x04|0x0001) ncmd 1
Status: Success (0x00)
HCI version: 2 - 0x2006
LMP version: 2 - 0x1806
Manufacturer: AVM Berlin (31)< HCI Command: Read BD ADDR (0x04|0x0009) plen 0 [hci0] 0.788360
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 10 [hci0] 0.791218
Read BD ADDR (0x04|0x0009) ncmd 1
Status: Success (0x00)
Address: 00:04:0E:8D:1C:CC (OUI 00-04-0E)< HCI Command: Read Buffer Size (0x04|0x0005) plen 0 [hci0] 0.791858
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 11 [hci0] 0.794638
Read Buffer Size (0x04|0x0005) ncmd 1
Status: Success (0x00)
ACL MTU: 120 ACL max packet: 20
SCO MTU: 24 SCO max packet: 5
< HCI Command: Read Class of Device (0x03|0x0023) plen 0 [hci0] 0.794704
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 7 [hci0] 0.798330
Read Class of Device (0x03|0x0023) ncmd 1
Status: Success (0x00)
Class: 0x000000
Major class: Miscellaneous
Minor class: 0x00< HCI Command: Read Local Name (0x03|0x0014) plen 0 [hci0] 0.798394
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 252 [hci0] 0.836309
Read Local Name (0x03|0x0014) ncmd 1
Status: Success (0x00)
Name:< HCI Command: Read Voice Setting (0x03|0x0025) plen 0 [hci0] 0.836479
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 6 [hci0] 0.839240
Read Voice Setting (0x03|0x0025) ncmd 1
Status: Success (0x00)
Setting: 0x0060
< HCI Command: Set Event Filter (0x03|0x0005) plen 1 [hci0] 0.839409
Type: 0x00Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.842197
Set Event Filter (0x03|0x0005) ncmd 1
Status: Success (0x00)
< HCI Command: Write Connection Accept... (0x03|0x0016) plen 2 [hci0] 0.842365
Timeout: 20000.000 msec (0x7d00)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.845015
Write Connection Accept Timeout (0x03|0x0016) ncmd 1
Status: Success (0x00)< HCI Command: Read Page Scan Activity (0x03|0x001b) plen 0 [hci0] 0.845182
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 8 [hci0] 0.849023
Read Page Scan Activity (0x03|0x001b) ncmd 1
Status: Success (0x00)
Interval: 1280.000 msec (0x0800)
Window: 11.250 msec (0x0012)< HCI Command: Read Page Scan Type (0x03|0x0046) plen 0 [hci0] 0.849185
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 5 [hci0] 0.853008
Read Page Scan Type (0x03|0x0046) ncmd 1
Status: Success (0x00)
Type: Standard Scan (0x00)< HCI Command: Set Event Mask (0x03|0x0001) plen 8 [hci0] 0.853166
Mask: 0x00001807fffbffff
Inquiry Complete
Inquiry Result
Connection Complete
Connection Request
Disconnection Complete
Authentication Complete
Remote Name Request Complete
Encryption Change
Change Connection Link Key Complete
Master Link Key Complete
Read Remote Supported Features Complete
Read Remote Version Information Complete
QoS Setup Complete
Command Complete
Command Status
Hardware Error
Flush Occurred
Role Change
Mode Change
Return Link Keys
PIN Code Request
Link Key Request
Link Key Notification
Loopback Command
Data Buffer Overflow
Max Slots Change
Read Clock Offset Complete
Connection Packet Type Changed
QoS Violation
Page Scan Mode Change
Page Scan Repetition Mode Change
Flow Specification Complete
Inquiry Result with RSSI
Read Remote Extended Features Complete Synchronous Connection Complete
Synchronous Connection Changed
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.857379
Set Event Mask (0x03|0x0001) ncmd 1
Status: Success (0x00)
< HCI Command: Write Page Timeout (0x03|0x0018) plen 2 [hci0] 0.858038
Timeout: 5120.000 msec (0x2000)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.859862
Write Page Timeout (0x03|0x0018) ncmd 1
Status: Success (0x00)
< HCI Command: Read Stored Link Key (0x03|0x000d) plen 7 [hci0] 0.859932
Address: 00:00:00:00:00:00 (OUI 00-00-00)
Read all: 0x01Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 8 [hci0] 0.863627
Read Stored Link Key (0x03|0x000d) ncmd 1
Status: Success (0x00)
Max num keys: 8
Num keys: 0
< HCI Command: Write Local Name (0x03|0x0013) plen 248 [hci0] 0.882030
Name: debian-capi-0
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.885847
Write Local Name (0x03|0x0013) ncmd 1
Status: Success (0x00)< HCI Command: Set Event Mask (0x03|0x0001) plen 8 [hci0] 0.917369
Mask: 0x00001807fffbffff
Inquiry Complete
Inquiry Result
Connection Complete
Connection Request
Disconnection Complete
Authentication Complete
Remote Name Request Complete
Encryption Change
Change Connection Link Key Complete
Master Link Key Complete
Read Remote Supported Features Complete
Read Remote Version Information Complete
QoS Setup Complete
Command Complete
Command Status
Hardware Error
Flush Occurred
Role Change
Mode Change
Return Link Keys
PIN Code Request
Link Key Request
Link Key Notification
Loopback Command
Data Buffer Overflow
Max Slots Change
Read Clock Offset Complete
Connection Packet Type Changed
QoS Violation
Page Scan Mode Change
Page Scan Repetition Mode Change
Flow Specification Complete
Inquiry Result with RSSI
Read Remote Extended Features Complete Synchronous Connection Complete
Synchronous Connection Changed
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.924343
Set Event Mask (0x03|0x0001) ncmd 1
Status: Success (0x00)
< HCI Command: Write Default Link Polic.. (0x02|0x000f) plen 2 [hci0] 0.924523
Link policy: 0x000fQuoted 1 line
HCI Event: Command Status (
0x0f) plen 4 [hci0] 0.928050
Write Default Link Policy Settings (0x02|0x000f) ncmd 1
Status: Unknown HCI Command (0x01)< HCI Command: Write Class of Device (0x03|0x0024) plen 3 [hci0] 0.928289
Class: 0x6e0100
Major class: Computer (desktop, notebook, PDA, organizers) Minor class: Uncategorized, code for device not assigned Networking (LAN, Ad hoc)
Rendering (Printing, Speaker)
Capturing (Scanner, Microphone)
Audio (Speaker, Microphone, Headset)
Telephony (Cordless telephony, Modem, Headset)
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.931044
Write Class of Device (0x03|0x0024) ncmd 1
Status: Success (0x00)
< HCI Command: Write Scan Enable (0x03|0x001a) plen 1 [hci0] 0.931274
Scan enable: Page Scan (0x02)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.934042
Write Scan Enable (0x03|0x001a) ncmd 1
Status: Success (0x00)< HCI Command: Read Local Name (0x03|0x0014) plen 0 [hci0] 0.934286 @ New Settings: 0x0093
powered connectable pairable br/edr
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 252 [hci0] 0.974894
Read Local Name (0x03|0x0014) ncmd 1
Status: Success (0x00)
Name: debian-capi-0< HCI Command: Read Scan Enable (0x03|0x0019) plen 0 [hci0] 0.975018
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 5 [hci0] 0.978549
Read Scan Enable (0x03|0x0019) ncmd 1
Status: Success (0x00)
Scan enable: Page Scan (0x02)
< HCI Command: Inquiry (0x01|0x0001) plen 5 [hci0] 159.025599
Access code: 0x9e8b33 (General Inquiry)
Length: 10.24s (0x08)
Num responses: 0Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4 [hci0] 159.033290
Inquiry (0x01|0x0001) ncmd 1
Status: Success (0x00)@ Discovering: 0x01 (0)
Quoted 1 line
HCI Event: Inquiry Result (
0x02) plen 15 [hci0] 165.868687
Num responses: 1
Address: A0:E9:DB:00:B5:BB (OUI A0-E9-DB)
Page scan repetition mode: R1 (0x01)
Page period mode: P2 (0x02)
Page scan mode: Mandatory (0x00)
Class: 0x240404
Major class: Audio/Video (headset, speaker, stereo, video, vcr)
Minor class: 0x01
Rendering (Printing, Speaker)
Audio (Speaker, Microphone, Headset)
Clock offset: 0x14a9
@ Device Found: A0:E9:DB:00:B5:BB (0) rssi 0 flags 0x0003
04 0d 04 04 24 ....$Quoted 1 line
HCI Event: Inquiry Complete (
0x01) plen 1 [hci0] 169.281636
Status: Success (0x00)
< HCI Command: Remote Name Request (0x01|0x0019) plen 10 [hci0] 169.282228
Address: A0:E9:DB:00:B5:BB (OUI A0-E9-DB)
Page scan repetition mode: R1 (0x01)
Page scan mode: Mandatory (0x00)
Clock offset: 0x94a9Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4 [hci0] 169.288567
Remote Name Request (0x01|0x0019) ncmd 1
Status: Success (0x00)Quoted 1 line
HCI Event: Remote Name Req Complete (
0x07) plen 255 [hci0] 169.877365
Status: Success (0x00)
Address: A0:E9:DB:00:B5:BB (OUI A0-E9-DB)
Name: RAIKKO BT SpeakerPlaying Audio with
mplayer -ao alsa:device=btheadset 05N\ The\ Race\ -\ .mp3
Also works nicely. Let me know if I should test anything else.
Thx for this good and fast support.
Signature · 1 line
Gruss, Joerg
Hi,
Quoted 341 lines · Jörg Esser
Quoted 36 lines · Johan Hedberg
Hi Marcel,
Quoted 27 lines · Marcel Holtmann
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 6 lines
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 0.043811Read Local Version Information (0x04|0x0001) ncmd 1 Status: Success (0x00) HCI version: 2 - 0x2006 LMP version: 2 - 0x1806 Manufacturer: AVM Berlin (31)it declares itself here as Bluetooth 1.2 device. Which means it is the second generation of BlueFritz! USB device.
<snip>
Quoted 4 lines
< HCI Command: Read Local Supported Comm.. (0x04|0x0002) plen 0 [hci0] 0.210014
Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4 [hci0] 0.217361Read Local Supported Commands (0x04|0x0002) ncmd 1 Status: Unknown HCI Command (0x01)And here is your failing command. Newer kernels have been strict with failing commands and will just abort the setup if anything goes wrong.
Johan, we need to figure out on how to work around this one. Might just match for the manufacturer before sending the command.
Quoted 7 lines
Quoted 3 lines
Either that or a quirk based on the USB id. Wouldn't matching just the manufacturer be a bit problematic for any newer chips from this company, or they stopped doing Bluetooth dongles after this one?
They stopped doing Bluetooth dongles after this one. I found no more Product with bluetooth on their website.
The support from AVM endet on 01.12.2009.
As I read herehttp://www.wehavemorefun.de/fritzbox/BlueFRITZ!_USBQuoted 6 lines
yes, they ever only made two products. And their baseband was based on Silicon Wave which actually got bought by Qualcomm if I remember this correctly. So going by the manufacturer id and adding a good comment into the code might make this work nicely again.
Johan, if you prefer a quirk, then go for that one.
Quoted 8 lines
Since we know that these are the only pieces of hardware that exist with this manufacturer id I think it's simplest to just use that instead of creating more code for this.
Attached is a patch that still needs to be tested. It might e.g. reveal other commands that also fail with this hardware.
Johan
After appling your patch I can use the adapter.
syslog says:Jul 24 16:21:31 debian-capi kernel: [ 153.864308] usb 1-3: new full-speed USB device number 4 using ohci_hcd Jul 24 16:21:31 debian-capi kernel: [ 154.120244] usb 1-3: New USB device found, idVendor=057c, idProduct=3800 Jul 24 16:21:31 debian-capi kernel: [ 154.120251] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Jul 24 16:21:31 debian-capi kernel: [ 154.120254] usb 1-3: Product: Bluetooth Device Jul 24 16:21:31 debian-capi kernel: [ 154.120257] usb 1-3: Manufacturer: Bluetooth Device Jul 24 16:21:31 debian-capi kernel: [ 154.120260] usb 1-3: SerialNumber: CC1C8D0E0400 Jul 24 16:21:31 debian-capi bluetoothd[2203]: HCI dev 0 registered Jul 24 16:21:31 debian-capi bluetoothd[2203]: Listening for HCI events on hci0 Jul 24 16:21:31 debian-capi kernel: [ 154.149949] usbcore: registered new interface driver btusb Jul 24 16:21:31 debian-capi bluetoothd[2203]: HCI dev 0 up Jul 24 16:21:31 debian-capi bluetoothd[2203]: Proximity GATT Reporter Driver: Operation not permitted (1) Jul 24 16:21:31 debian-capi bluetoothd[2203]: Unable to load keys to adapter_ops: Function not implemented (38) Jul 24 16:21:31 debian-capi bluetoothd[2203]: Adapter/org/bluez/2203/hci0 has been enabled
after scanning with hcitool scan, it finds my BT Speaker btmon says:
btmon
Bluetooth monitor ver 5.7
= New Index: 00:00:00:00:00:00 (BR/EDR,USB,hci0) [hci0] 0.767719 < HCI Command: Reset (0x03|0x0003) plen 0 [hci0] 0.773725Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.781039Reset (0x03|0x0003) ncmd 1 Status: Success (0x00)< HCI Command: Read Local Supported Fea.. (0x04|0x0003) plen 0 [hci0] 0.781774
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 0.785505Read Local Supported Features (0x04|0x0003) ncmd 1
Status: Success (0x00)
Features:0xff0xff0x050x000x180x180x000x00
3 slot packets
5 slot packets
Encryption
Slot offset
Timing accuracy
Role switch
Hold mode
Sniff mode
Park state
Power control requests
Channel quality driven data rate (CQDDR) SCO link
HV2 packets
HV3 packets
u-law log synchronous data
A-law log synchronous data
CVSD synchronous data
Power control
AFH capable slave
AFH classification slave
AFH capable master
AFH classification master
< HCI Command: Read Local Version Infor.. (0x04|0x0001) plen 0 [hci0] 0.785575Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 0.788286Read Local Version Information (0x04|0x0001) ncmd 1 Status: Success (0x00) HCI version: 2 - 0x2006 LMP version: 2 - 0x1806 Manufacturer: AVM Berlin (31)< HCI Command: Read BD ADDR (0x04|0x0009) plen 0 [hci0] 0.788360
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 10 [hci0] 0.791218Read BD ADDR (0x04|0x0009) ncmd 1 Status: Success (0x00) Address: 00:04:0E:8D:1C:CC (OUI 00-04-0E)< HCI Command: Read Buffer Size (0x04|0x0005) plen 0 [hci0] 0.791858
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 11 [hci0] 0.794638Read Buffer Size (0x04|0x0005) ncmd 1
Status: Success (0x00)
ACL MTU: 120 ACL max packet: 20
SCO MTU: 24 SCO max packet: 5
< HCI Command: Read Class of Device (0x03|0x0023) plen 0 [hci0] 0.794704Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 7 [hci0] 0.798330Read Class of Device (0x03|0x0023) ncmd 1 Status: Success (0x00) Class: 0x000000 Major class: Miscellaneous Minor class: 0x00< HCI Command: Read Local Name (0x03|0x0014) plen 0 [hci0] 0.798394
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 252 [hci0] 0.836309Read Local Name (0x03|0x0014) ncmd 1 Status: Success (0x00) Name:< HCI Command: Read Voice Setting (0x03|0x0025) plen 0 [hci0] 0.836479
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 6 [hci0] 0.839240Read Voice Setting (0x03|0x0025) ncmd 1 Status: Success (0x00) Setting: 0x0060 < HCI Command: Set Event Filter (0x03|0x0005) plen 1 [hci0] 0.839409 Type: 0x00Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.842197Set Event Filter (0x03|0x0005) ncmd 1 Status: Success (0x00) < HCI Command: Write Connection Accept... (0x03|0x0016) plen 2 [hci0] 0.842365 Timeout: 20000.000 msec (0x7d00)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.845015Write Connection Accept Timeout (0x03|0x0016) ncmd 1 Status: Success (0x00)< HCI Command: Read Page Scan Activity (0x03|0x001b) plen 0 [hci0] 0.845182
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 8 [hci0] 0.849023Read Page Scan Activity (0x03|0x001b) ncmd 1 Status: Success (0x00) Interval: 1280.000 msec (0x0800) Window: 11.250 msec (0x0012)< HCI Command: Read Page Scan Type (0x03|0x0046) plen 0 [hci0] 0.849185
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 5 [hci0] 0.853008Read Page Scan Type (0x03|0x0046) ncmd 1 Status: Success (0x00) Type: Standard Scan (0x00)< HCI Command: Set Event Mask (0x03|0x0001) plen 8 [hci0] 0.853166
Mask:0x00001807fffbffff
Inquiry Complete
Inquiry Result
Connection Complete
Connection Request
Disconnection Complete
Authentication Complete
Remote Name Request Complete
Encryption Change
Change Connection Link Key Complete
Master Link Key Complete
Read Remote Supported Features Complete
Read Remote Version Information Complete
QoS Setup Complete
Command Complete
Command Status
Hardware Error
Flush Occurred
Role Change
Mode Change
Return Link Keys
PIN Code Request
Link Key Request
Link Key Notification
Loopback Command
Data Buffer Overflow
Max Slots Change
Read Clock Offset Complete
Connection Packet Type Changed
QoS Violation
Page Scan Mode Change
Page Scan Repetition Mode Change
Flow Specification Complete
Inquiry Result with RSSI
Read Remote Extended Features Complete Synchronous Connection Complete
Synchronous Connection ChangedQuoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.857379Set Event Mask (0x03|0x0001) ncmd 1 Status: Success (0x00) < HCI Command: Write Page Timeout (0x03|0x0018) plen 2 [hci0] 0.858038 Timeout: 5120.000 msec (0x2000)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.859862Write Page Timeout (0x03|0x0018) ncmd 1 Status: Success (0x00) < HCI Command: Read Stored Link Key (0x03|0x000d) plen 7 [hci0] 0.859932 Address: 00:00:00:00:00:00 (OUI 00-00-00) Read all: 0x01Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 8 [hci0] 0.863627Read Stored Link Key (0x03|0x000d) ncmd 1
Status: Success (0x00)
Max num keys: 8
Num keys: 0
< HCI Command: Write Local Name (0x03|0x0013) plen 248 [hci0] 0.882030
Name: debian-capi-0Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.885847Write Local Name (0x03|0x0013) ncmd 1 Status: Success (0x00)< HCI Command: Set Event Mask (0x03|0x0001) plen 8 [hci0] 0.917369
Mask:0x00001807fffbffff
Inquiry Complete
Inquiry Result
Connection Complete
Connection Request
Disconnection Complete
Authentication Complete
Remote Name Request Complete
Encryption Change
Change Connection Link Key Complete
Master Link Key Complete
Read Remote Supported Features Complete
Read Remote Version Information Complete
QoS Setup Complete
Command Complete
Command Status
Hardware Error
Flush Occurred
Role Change
Mode Change
Return Link Keys
PIN Code Request
Link Key Request
Link Key Notification
Loopback Command
Data Buffer Overflow
Max Slots Change
Read Clock Offset Complete
Connection Packet Type Changed
QoS Violation
Page Scan Mode Change
Page Scan Repetition Mode Change
Flow Specification Complete
Inquiry Result with RSSI
Read Remote Extended Features Complete Synchronous Connection Complete
Synchronous Connection ChangedQuoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.924343Set Event Mask (0x03|0x0001) ncmd 1 Status: Success (0x00) < HCI Command: Write Default Link Polic.. (0x02|0x000f) plen 2 [hci0] 0.924523 Link policy: 0x000fQuoted 1 line
HCI Event: Command Status (
0x0f) plen 4 [hci0] 0.928050Write Default Link Policy Settings (0x02|0x000f) ncmd 1 Status: Unknown HCI Command (0x01)< HCI Command: Write Class of Device (0x03|0x0024) plen 3 [hci0] 0.928289
Class:0x6e0100
Major class: Computer (desktop, notebook, PDA, organizers) Minor class: Uncategorized, code for device not assigned Networking (LAN, Ad hoc)
Rendering (Printing, Speaker)
Capturing (Scanner, Microphone)
Audio (Speaker, Microphone, Headset)
Telephony (Cordless telephony, Modem, Headset)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.931044Write Class of Device (0x03|0x0024) ncmd 1 Status: Success (0x00) < HCI Command: Write Scan Enable (0x03|0x001a) plen 1 [hci0] 0.931274 Scan enable: Page Scan (0x02)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.934042Write Scan Enable (0x03|0x001a) ncmd 1 Status: Success (0x00)< HCI Command: Read Local Name (0x03|0x0014) plen 0 [hci0] 0.934286 @ New Settings:
0x0093
powered connectable pairable br/edrQuoted 1 line
HCI Event: Command Complete (
0x0e) plen 252 [hci0] 0.974894Read Local Name (0x03|0x0014) ncmd 1 Status: Success (0x00) Name: debian-capi-0< HCI Command: Read Scan Enable (0x03|0x0019) plen 0 [hci0] 0.975018
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 5 [hci0] 0.978549Read Scan Enable (0x03|0x0019) ncmd 1 Status: Success (0x00) Scan enable: Page Scan (0x02) < HCI Command: Inquiry (0x01|0x0001) plen 5 [hci0] 159.025599 Access code: 0x9e8b33 (General Inquiry) Length: 10.24s (0x08) Num responses: 0Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4 [hci0] 159.033290Inquiry (0x01|0x0001) ncmd 1 Status: Success (0x00)@ Discovering:
0x01(0)Quoted 1 line
HCI Event: Inquiry Result (
0x02) plen 15 [hci0] 165.868687Num responses: 1 Address: A0:E9:DB:00:B5:BB (OUI A0-E9-DB) Page scan repetition mode: R1 (0x01) Page period mode: P2 (0x02) Page scan mode: Mandatory (0x00) Class: 0x240404 Major class: Audio/Video (headset, speaker, stereo, video, vcr) Minor class: 0x01 Rendering (Printing, Speaker) Audio (Speaker, Microphone, Headset) Clock offset: 0x14a9 @ Device Found: A0:E9:DB:00:B5:BB (0) rssi 0 flags 0x0003 04 0d 04 04 24 ....$Quoted 1 line
HCI Event: Inquiry Complete (
0x01) plen 1 [hci0] 169.281636Status: Success (0x00) < HCI Command: Remote Name Request (0x01|0x0019) plen 10 [hci0] 169.282228 Address: A0:E9:DB:00:B5:BB (OUI A0-E9-DB) Page scan repetition mode: R1 (0x01) Page scan mode: Mandatory (0x00) Clock offset: 0x94a9Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4 [hci0] 169.288567Remote Name Request (0x01|0x0019) ncmd 1 Status: Success (0x00)Quoted 1 line
HCI Event: Remote Name Req Complete (
0x07) plen 255 [hci0] 169.877365Status: Success (0x00) Address: A0:E9:DB:00:B5:BB (OUI A0-E9-DB) Name: RAIKKO BT Speaker
Quoted 6 lines
Playing Audio with
mplayer -ao alsa:device=btheadset 05N\ The\ Race\ -\ .mp3Also works nicely. Let me know if I should test anything else.
Thx for this good and fast support.
Patch has been applied to bluetooth.git. Thanks everyone.
Gustavo
Marcel Holtmann
maintainerHi Gustavo,
Quoted 337 lines
Quoted 337 lines
Quoted 33 lines
Quoted 27 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 6 lines
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 0.043811Read Local Version Information (0x04|0x0001) ncmd 1 Status: Success (0x00) HCI version: 2 - 0x2006 LMP version: 2 - 0x1806 Manufacturer: AVM Berlin (31)it declares itself here as Bluetooth 1.2 device. Which means it is the second generation of BlueFritz! USB device.
<snip>
Quoted 4 lines
< HCI Command: Read Local Supported Comm.. (0x04|0x0002) plen 0 [hci0] 0.210014
Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4 [hci0] 0.217361Read Local Supported Commands (0x04|0x0002) ncmd 1 Status: Unknown HCI Command (0x01)And here is your failing command. Newer kernels have been strict with failing commands and will just abort the setup if anything goes wrong.
Johan, we need to figure out on how to work around this one. Might just match for the manufacturer before sending the command.
Quoted 7 lines
Quoted 3 lines
Either that or a quirk based on the USB id. Wouldn't matching just the manufacturer be a bit problematic for any newer chips from this company, or they stopped doing Bluetooth dongles after this one?
They stopped doing Bluetooth dongles after this one. I found no more Product with bluetooth on their website.
The support from AVM endet on 01.12.2009.
As I read herehttp://www.wehavemorefun.de/fritzbox/BlueFRITZ!_USBQuoted 6 lines
yes, they ever only made two products. And their baseband was based on Silicon Wave which actually got bought by Qualcomm if I remember this correctly. So going by the manufacturer id and adding a good comment into the code might make this work nicely again.
Johan, if you prefer a quirk, then go for that one.
Quoted 8 lines
Since we know that these are the only pieces of hardware that exist with this manufacturer id I think it's simplest to just use that instead of creating more code for this.
Attached is a patch that still needs to be tested. It might e.g. reveal other commands that also fail with this hardware.
Johan
After appling your patch I can use the adapter.
syslog says:Jul 24 16:21:31 debian-capi kernel: [ 153.864308] usb 1-3: new full-speed USB device number 4 using ohci_hcd Jul 24 16:21:31 debian-capi kernel: [ 154.120244] usb 1-3: New USB device found, idVendor=057c, idProduct=3800 Jul 24 16:21:31 debian-capi kernel: [ 154.120251] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Jul 24 16:21:31 debian-capi kernel: [ 154.120254] usb 1-3: Product: Bluetooth Device Jul 24 16:21:31 debian-capi kernel: [ 154.120257] usb 1-3: Manufacturer: Bluetooth Device Jul 24 16:21:31 debian-capi kernel: [ 154.120260] usb 1-3: SerialNumber: CC1C8D0E0400 Jul 24 16:21:31 debian-capi bluetoothd[2203]: HCI dev 0 registered Jul 24 16:21:31 debian-capi bluetoothd[2203]: Listening for HCI events on hci0 Jul 24 16:21:31 debian-capi kernel: [ 154.149949] usbcore: registered new interface driver btusb Jul 24 16:21:31 debian-capi bluetoothd[2203]: HCI dev 0 up Jul 24 16:21:31 debian-capi bluetoothd[2203]: Proximity GATT Reporter Driver: Operation not permitted (1) Jul 24 16:21:31 debian-capi bluetoothd[2203]: Unable to load keys to adapter_ops: Function not implemented (38) Jul 24 16:21:31 debian-capi bluetoothd[2203]: Adapter/org/bluez/2203/hci0 has been enabled
after scanning with hcitool scan, it finds my BT Speaker btmon says:
btmon
Bluetooth monitor ver 5.7
= New Index: 00:00:00:00:00:00 (BR/EDR,USB,hci0) [hci0] 0.767719 < HCI Command: Reset (0x03|0x0003) plen 0 [hci0] 0.773725Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.781039Reset (0x03|0x0003) ncmd 1 Status: Success (0x00)< HCI Command: Read Local Supported Fea.. (0x04|0x0003) plen 0 [hci0] 0.781774
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 0.785505Read Local Supported Features (0x04|0x0003) ncmd 1
Status: Success (0x00)
Features:0xff0xff0x050x000x180x180x000x00
3 slot packets
5 slot packets
Encryption
Slot offset
Timing accuracy
Role switch
Hold mode
Sniff mode
Park state
Power control requests
Channel quality driven data rate (CQDDR) SCO link
HV2 packets
HV3 packets
u-law log synchronous data
A-law log synchronous data
CVSD synchronous data
Power control
AFH capable slave
AFH classification slave
AFH capable master
AFH classification master
< HCI Command: Read Local Version Infor.. (0x04|0x0001) plen 0 [hci0] 0.785575Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 0.788286Read Local Version Information (0x04|0x0001) ncmd 1 Status: Success (0x00) HCI version: 2 - 0x2006 LMP version: 2 - 0x1806 Manufacturer: AVM Berlin (31)< HCI Command: Read BD ADDR (0x04|0x0009) plen 0 [hci0] 0.788360
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 10 [hci0] 0.791218Read BD ADDR (0x04|0x0009) ncmd 1 Status: Success (0x00) Address: 00:04:0E:8D:1C:CC (OUI 00-04-0E)< HCI Command: Read Buffer Size (0x04|0x0005) plen 0 [hci0] 0.791858
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 11 [hci0] 0.794638Read Buffer Size (0x04|0x0005) ncmd 1
Status: Success (0x00)
ACL MTU: 120 ACL max packet: 20
SCO MTU: 24 SCO max packet: 5
< HCI Command: Read Class of Device (0x03|0x0023) plen 0 [hci0] 0.794704Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 7 [hci0] 0.798330Read Class of Device (0x03|0x0023) ncmd 1 Status: Success (0x00) Class: 0x000000 Major class: Miscellaneous Minor class: 0x00< HCI Command: Read Local Name (0x03|0x0014) plen 0 [hci0] 0.798394
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 252 [hci0] 0.836309Read Local Name (0x03|0x0014) ncmd 1 Status: Success (0x00) Name:< HCI Command: Read Voice Setting (0x03|0x0025) plen 0 [hci0] 0.836479
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 6 [hci0] 0.839240Read Voice Setting (0x03|0x0025) ncmd 1 Status: Success (0x00) Setting: 0x0060 < HCI Command: Set Event Filter (0x03|0x0005) plen 1 [hci0] 0.839409 Type: 0x00Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.842197Set Event Filter (0x03|0x0005) ncmd 1 Status: Success (0x00) < HCI Command: Write Connection Accept... (0x03|0x0016) plen 2 [hci0] 0.842365 Timeout: 20000.000 msec (0x7d00)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.845015Write Connection Accept Timeout (0x03|0x0016) ncmd 1 Status: Success (0x00)< HCI Command: Read Page Scan Activity (0x03|0x001b) plen 0 [hci0] 0.845182
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 8 [hci0] 0.849023Read Page Scan Activity (0x03|0x001b) ncmd 1 Status: Success (0x00) Interval: 1280.000 msec (0x0800) Window: 11.250 msec (0x0012)< HCI Command: Read Page Scan Type (0x03|0x0046) plen 0 [hci0] 0.849185
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 5 [hci0] 0.853008Read Page Scan Type (0x03|0x0046) ncmd 1 Status: Success (0x00) Type: Standard Scan (0x00)< HCI Command: Set Event Mask (0x03|0x0001) plen 8 [hci0] 0.853166
Mask:0x00001807fffbffff
Inquiry Complete
Inquiry Result
Connection Complete
Connection Request
Disconnection Complete
Authentication Complete
Remote Name Request Complete
Encryption Change
Change Connection Link Key Complete
Master Link Key Complete
Read Remote Supported Features Complete
Read Remote Version Information Complete
QoS Setup Complete
Command Complete
Command Status
Hardware Error
Flush Occurred
Role Change
Mode Change
Return Link Keys
PIN Code Request
Link Key Request
Link Key Notification
Loopback Command
Data Buffer Overflow
Max Slots Change
Read Clock Offset Complete
Connection Packet Type Changed
QoS Violation
Page Scan Mode Change
Page Scan Repetition Mode Change
Flow Specification Complete
Inquiry Result with RSSI
Read Remote Extended Features Complete Synchronous Connection Complete
Synchronous Connection ChangedQuoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.857379Set Event Mask (0x03|0x0001) ncmd 1 Status: Success (0x00) < HCI Command: Write Page Timeout (0x03|0x0018) plen 2 [hci0] 0.858038 Timeout: 5120.000 msec (0x2000)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.859862Write Page Timeout (0x03|0x0018) ncmd 1 Status: Success (0x00) < HCI Command: Read Stored Link Key (0x03|0x000d) plen 7 [hci0] 0.859932 Address: 00:00:00:00:00:00 (OUI 00-00-00) Read all: 0x01Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 8 [hci0] 0.863627Read Stored Link Key (0x03|0x000d) ncmd 1
Status: Success (0x00)
Max num keys: 8
Num keys: 0
< HCI Command: Write Local Name (0x03|0x0013) plen 248 [hci0] 0.882030
Name: debian-capi-0Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.885847Write Local Name (0x03|0x0013) ncmd 1 Status: Success (0x00)< HCI Command: Set Event Mask (0x03|0x0001) plen 8 [hci0] 0.917369
Mask:0x00001807fffbffff
Inquiry Complete
Inquiry Result
Connection Complete
Connection Request
Disconnection Complete
Authentication Complete
Remote Name Request Complete
Encryption Change
Change Connection Link Key Complete
Master Link Key Complete
Read Remote Supported Features Complete
Read Remote Version Information Complete
QoS Setup Complete
Command Complete
Command Status
Hardware Error
Flush Occurred
Role Change
Mode Change
Return Link Keys
PIN Code Request
Link Key Request
Link Key Notification
Loopback Command
Data Buffer Overflow
Max Slots Change
Read Clock Offset Complete
Connection Packet Type Changed
QoS Violation
Page Scan Mode Change
Page Scan Repetition Mode Change
Flow Specification Complete
Inquiry Result with RSSI
Read Remote Extended Features Complete Synchronous Connection Complete
Synchronous Connection ChangedQuoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.924343Set Event Mask (0x03|0x0001) ncmd 1 Status: Success (0x00) < HCI Command: Write Default Link Polic.. (0x02|0x000f) plen 2 [hci0] 0.924523 Link policy: 0x000fQuoted 1 line
HCI Event: Command Status (
0x0f) plen 4 [hci0] 0.928050Write Default Link Policy Settings (0x02|0x000f) ncmd 1 Status: Unknown HCI Command (0x01)< HCI Command: Write Class of Device (0x03|0x0024) plen 3 [hci0] 0.928289
Class:0x6e0100
Major class: Computer (desktop, notebook, PDA, organizers) Minor class: Uncategorized, code for device not assigned Networking (LAN, Ad hoc)
Rendering (Printing, Speaker)
Capturing (Scanner, Microphone)
Audio (Speaker, Microphone, Headset)
Telephony (Cordless telephony, Modem, Headset)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.931044Write Class of Device (0x03|0x0024) ncmd 1 Status: Success (0x00) < HCI Command: Write Scan Enable (0x03|0x001a) plen 1 [hci0] 0.931274 Scan enable: Page Scan (0x02)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.934042Write Scan Enable (0x03|0x001a) ncmd 1 Status: Success (0x00)< HCI Command: Read Local Name (0x03|0x0014) plen 0 [hci0] 0.934286 @ New Settings:
0x0093
powered connectable pairable br/edrQuoted 1 line
HCI Event: Command Complete (
0x0e) plen 252 [hci0] 0.974894Read Local Name (0x03|0x0014) ncmd 1 Status: Success (0x00) Name: debian-capi-0< HCI Command: Read Scan Enable (0x03|0x0019) plen 0 [hci0] 0.975018
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 5 [hci0] 0.978549Read Scan Enable (0x03|0x0019) ncmd 1 Status: Success (0x00) Scan enable: Page Scan (0x02) < HCI Command: Inquiry (0x01|0x0001) plen 5 [hci0] 159.025599 Access code: 0x9e8b33 (General Inquiry) Length: 10.24s (0x08) Num responses: 0Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4 [hci0] 159.033290Inquiry (0x01|0x0001) ncmd 1 Status: Success (0x00)@ Discovering:
0x01(0)Quoted 1 line
HCI Event: Inquiry Result (
0x02) plen 15 [hci0] 165.868687Num responses: 1 Address: A0:E9:DB:00:B5:BB (OUI A0-E9-DB) Page scan repetition mode: R1 (0x01) Page period mode: P2 (0x02) Page scan mode: Mandatory (0x00) Class: 0x240404 Major class: Audio/Video (headset, speaker, stereo, video, vcr) Minor class: 0x01 Rendering (Printing, Speaker) Audio (Speaker, Microphone, Headset) Clock offset: 0x14a9 @ Device Found: A0:E9:DB:00:B5:BB (0) rssi 0 flags 0x0003 04 0d 04 04 24 ....$Quoted 1 line
HCI Event: Inquiry Complete (
0x01) plen 1 [hci0] 169.281636Status: Success (0x00) < HCI Command: Remote Name Request (0x01|0x0019) plen 10 [hci0] 169.282228 Address: A0:E9:DB:00:B5:BB (OUI A0-E9-DB) Page scan repetition mode: R1 (0x01) Page scan mode: Mandatory (0x00) Clock offset: 0x94a9Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4 [hci0] 169.288567Remote Name Request (0x01|0x0019) ncmd 1 Status: Success (0x00)Quoted 1 line
HCI Event: Remote Name Req Complete (
0x07) plen 255 [hci0] 169.877365Status: Success (0x00) Address: A0:E9:DB:00:B5:BB (OUI A0-E9-DB) Name: RAIKKO BT Speaker
Quoted 8 lines
Quoted 6 lines
Playing Audio with
mplayer -ao alsa:device=btheadset 05N\ The\ Race\ -\ .mp3Also works nicely. Let me know if I should test anything else.
Thx for this good and fast support.
Patch has been applied to bluetooth.git. Thanks everyone.
can you please explain to me why the important part of the btmon trace is not part of the commit message. I mentioned this before that patches that go in after the merge window closes especially are suppose to have as much information as possible and we should record as much information about the bug as possible.
If I ever want to figure out with what error code the BlueFritz! failed this command, I have to dig into the mailing list archive to hopefully find it. This is all silly. We can be plenty verbose in the commit messages. And you as maintainer need to enforce this.
Since Johan send this as a test patch, this is a bit premature to just apply it. You could have at least waited until he send a dedicated patch and me complaining that the btmon trace was missing in the commit message. I am so not happy about just applying this patch and sending out a pull request minutes later.
Regards
Marcel
Marcel Holtmann
maintainerHi Johan,
Quoted 239 lines
Quoted 33 lines
Quoted 27 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 6 lines
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 0.043811Read Local Version Information (0x04|0x0001) ncmd 1 Status: Success (0x00) HCI version: 2 - 0x2006 LMP version: 2 - 0x1806 Manufacturer: AVM Berlin (31)it declares itself here as Bluetooth 1.2 device. Which means it is the second generation of BlueFritz! USB device.
<snip>
Quoted 4 lines
< HCI Command: Read Local Supported Comm.. (0x04|0x0002) plen 0 [hci0] 0.210014
Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4 [hci0] 0.217361Read Local Supported Commands (0x04|0x0002) ncmd 1 Status: Unknown HCI Command (0x01)And here is your failing command. Newer kernels have been strict with failing commands and will just abort the setup if anything goes wrong.
Johan, we need to figure out on how to work around this one. Might just match for the manufacturer before sending the command.
Quoted 7 lines
Quoted 3 lines
Either that or a quirk based on the USB id. Wouldn't matching just the manufacturer be a bit problematic for any newer chips from this company, or they stopped doing Bluetooth dongles after this one?
They stopped doing Bluetooth dongles after this one. I found no more Product with bluetooth on their website.
The support from AVM endet on 01.12.2009.
As I read herehttp://www.wehavemorefun.de/fritzbox/BlueFRITZ!_USBQuoted 6 lines
yes, they ever only made two products. And their baseband was based on Silicon Wave which actually got bought by Qualcomm if I remember this correctly. So going by the manufacturer id and adding a good comment into the code might make this work nicely again.
Johan, if you prefer a quirk, then go for that one.
Quoted 8 lines
Since we know that these are the only pieces of hardware that exist with this manufacturer id I think it's simplest to just use that instead of creating more code for this.
Attached is a patch that still needs to be tested. It might e.g. reveal other commands that also fail with this hardware.
Johan
After appling your patch I can use the adapter.
syslog says:Jul 24 16:21:31 debian-capi kernel: [ 153.864308] usb 1-3: new full-speed USB device number 4 using ohci_hcd Jul 24 16:21:31 debian-capi kernel: [ 154.120244] usb 1-3: New USB device found, idVendor=057c, idProduct=3800 Jul 24 16:21:31 debian-capi kernel: [ 154.120251] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Jul 24 16:21:31 debian-capi kernel: [ 154.120254] usb 1-3: Product: Bluetooth Device Jul 24 16:21:31 debian-capi kernel: [ 154.120257] usb 1-3: Manufacturer: Bluetooth Device Jul 24 16:21:31 debian-capi kernel: [ 154.120260] usb 1-3: SerialNumber: CC1C8D0E0400 Jul 24 16:21:31 debian-capi bluetoothd[2203]: HCI dev 0 registered Jul 24 16:21:31 debian-capi bluetoothd[2203]: Listening for HCI events on hci0 Jul 24 16:21:31 debian-capi kernel: [ 154.149949] usbcore: registered new interface driver btusb Jul 24 16:21:31 debian-capi bluetoothd[2203]: HCI dev 0 up Jul 24 16:21:31 debian-capi bluetoothd[2203]: Proximity GATT Reporter Driver: Operation not permitted (1) Jul 24 16:21:31 debian-capi bluetoothd[2203]: Unable to load keys to adapter_ops: Function not implemented (38) Jul 24 16:21:31 debian-capi bluetoothd[2203]: Adapter /org/bluez/2203/hci0 has been enabledafter scanning with hcitool scan, it finds my BT Speaker btmon says:
btmon
Bluetooth monitor ver 5.7
= New Index: 00:00:00:00:00:00 (BR/EDR,USB,hci0) [hci0] 0.767719 < HCI Command: Reset (0x03|0x0003) plen 0 [hci0] 0.773725Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.781039Reset (0x03|0x0003) ncmd 1 Status: Success (0x00)< HCI Command: Read Local Supported Fea.. (0x04|0x0003) plen 0 [hci0] 0.781774
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 0.785505Read Local Supported Features (0x04|0x0003) ncmd 1
Status: Success (0x00)
Features:0xff0xff0x050x000x180x180x000x00
3 slot packets
5 slot packets
Encryption
Slot offset
Timing accuracy
Role switch
Hold mode
Sniff mode
Park state
Power control requests
Channel quality driven data rate (CQDDR)
SCO link
HV2 packets
HV3 packets
u-law log synchronous data
A-law log synchronous data
CVSD synchronous data
Power control
AFH capable slave
AFH classification slave
AFH capable master
AFH classification master
< HCI Command: Read Local Version Infor.. (0x04|0x0001) plen 0 [hci0] 0.785575Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 0.788286Read Local Version Information (0x04|0x0001) ncmd 1 Status: Success (0x00) HCI version: 2 - 0x2006 LMP version: 2 - 0x1806 Manufacturer: AVM Berlin (31)< HCI Command: Read BD ADDR (0x04|0x0009) plen 0 [hci0] 0.788360
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 10 [hci0] 0.791218Read BD ADDR (0x04|0x0009) ncmd 1 Status: Success (0x00) Address: 00:04:0E:8D:1C:CC (OUI 00-04-0E)< HCI Command: Read Buffer Size (0x04|0x0005) plen 0 [hci0] 0.791858
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 11 [hci0] 0.794638Read Buffer Size (0x04|0x0005) ncmd 1
Status: Success (0x00)
ACL MTU: 120 ACL max packet: 20
SCO MTU: 24 SCO max packet: 5
< HCI Command: Read Class of Device (0x03|0x0023) plen 0 [hci0] 0.794704Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 7 [hci0] 0.798330Read Class of Device (0x03|0x0023) ncmd 1 Status: Success (0x00) Class: 0x000000 Major class: Miscellaneous Minor class: 0x00< HCI Command: Read Local Name (0x03|0x0014) plen 0 [hci0] 0.798394
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 252 [hci0] 0.836309Read Local Name (0x03|0x0014) ncmd 1 Status: Success (0x00) Name:< HCI Command: Read Voice Setting (0x03|0x0025) plen 0 [hci0] 0.836479
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 6 [hci0] 0.839240Read Voice Setting (0x03|0x0025) ncmd 1 Status: Success (0x00) Setting: 0x0060 < HCI Command: Set Event Filter (0x03|0x0005) plen 1 [hci0] 0.839409 Type: 0x00Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.842197Set Event Filter (0x03|0x0005) ncmd 1 Status: Success (0x00) < HCI Command: Write Connection Accept... (0x03|0x0016) plen 2 [hci0] 0.842365 Timeout: 20000.000 msec (0x7d00)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.845015Write Connection Accept Timeout (0x03|0x0016) ncmd 1 Status: Success (0x00)< HCI Command: Read Page Scan Activity (0x03|0x001b) plen 0 [hci0] 0.845182
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 8 [hci0] 0.849023Read Page Scan Activity (0x03|0x001b) ncmd 1 Status: Success (0x00) Interval: 1280.000 msec (0x0800) Window: 11.250 msec (0x0012)< HCI Command: Read Page Scan Type (0x03|0x0046) plen 0 [hci0] 0.849185
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 5 [hci0] 0.853008Read Page Scan Type (0x03|0x0046) ncmd 1 Status: Success (0x00) Type: Standard Scan (0x00)< HCI Command: Set Event Mask (0x03|0x0001) plen 8 [hci0] 0.853166
Mask:0x00001807fffbffff
Inquiry Complete
Inquiry Result
Connection Complete
Connection Request
Disconnection Complete
Authentication Complete
Remote Name Request Complete
Encryption Change
Change Connection Link Key Complete
Master Link Key Complete
Read Remote Supported Features Complete
Read Remote Version Information Complete
QoS Setup Complete
Command Complete
Command Status
Hardware Error
Flush Occurred
Role Change
Mode Change
Return Link Keys
PIN Code Request
Link Key Request
Link Key Notification
Loopback Command
Data Buffer Overflow
Max Slots Change
Read Clock Offset Complete
Connection Packet Type Changed
QoS Violation
Page Scan Mode Change
Page Scan Repetition Mode Change
Flow Specification Complete
Inquiry Result with RSSI
Read Remote Extended Features Complete Synchronous Connection Complete
Synchronous Connection ChangedQuoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.857379Set Event Mask (0x03|0x0001) ncmd 1 Status: Success (0x00) < HCI Command: Write Page Timeout (0x03|0x0018) plen 2 [hci0] 0.858038 Timeout: 5120.000 msec (0x2000)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.859862Write Page Timeout (0x03|0x0018) ncmd 1 Status: Success (0x00) < HCI Command: Read Stored Link Key (0x03|0x000d) plen 7 [hci0] 0.859932 Address: 00:00:00:00:00:00 (OUI 00-00-00) Read all: 0x01Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 8 [hci0] 0.863627Read Stored Link Key (0x03|0x000d) ncmd 1
Status: Success (0x00)
Max num keys: 8
Num keys: 0
< HCI Command: Write Local Name (0x03|0x0013) plen 248 [hci0] 0.882030
Name: debian-capi-0Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 0.885847Write Local Name (0x03|0x0013) ncmd 1 Status: Success (0x00)< HCI Command: Set Event Mask (0x03|0x0001) plen 8 [hci0] 0.917369
Mask:0x00001807fffbffff
Inquiry Complete
Inquiry Result
Connection Complete
Connection Request
Disconnection Complete
Authentication Complete
Remote Name Request Complete
Encryption Change
Change Connection Link Key Complete
Master Link Key Complete
Read Remote Supported Features Complete
Read Remote Version Information Complete
QoS Setup Complete
Command Complete
Command Status
Hardware Error
Flush Occurred
Role Change
Mode Change
Return Link Keys
PIN Code Request
Link Key Request
Link Key Notification
Loopback Command
Data Buffer Overflow
Max Slots Change
Read Clock Offset Complete
Connection Packet Type Changed
Quoted 8 lines
QoS Violation
Page Scan Mode Change
Page Scan Repetition Mode Change
Flow Specification Complete
Inquiry Result with RSSI
Read Remote Extended Features Complete
Synchronous Connection Complete
Synchronous Connection Changed
any idea why we are sending Set Event Mask twice.
Regards
Marcel