Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Aug 2007 14:46:00 +0300
From:      Mihai Tanasescu <mihai@duras.ro>
To:        freebsd-bluetooth@freebsd.org
Subject:   Bluesoleil bluetooth problems
Message-ID:  <46B07278.4000908@duras.ro>

next in thread | raw e-mail | index | archive | help
Hello,


I have the following setup:

FreeBSD 6.2-RELEASE-p6

I have kldloaded ng_ubt.

I used both the original usb/bluetooth drivers and the i4b ones from 
turbocat.

With the original driver:

On system boot I get:

Trying to mount root from ufs:/dev/ad0s1a
ubt_request_complete2: ubt0 - Control request failed. TIMEOUT (15)
ubt_request_complete2: ubt0 - Control request failed. TIMEOUT (15)
ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command 
OGF=0x4, OCF=0x5. Timeout
complete_command: ubt0hci - no pending command, state=0x1
ubt_request_complete2: ubt0 - Control request failed. TIMEOUT (15)
ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command 
OGF=0x3, OCF=0x1a. Timeout
complete_command: ubt0hci - no pending command, state=0x1

and this repeats a couple of times.

After unplugging/plugging the USB dongle I get:

ubt0: vendor 0x1131 ISSCBTA, rev 1.10/3.73, addr 3
ubt0: vendor 0x1131 ISSCBTA, rev 1.10/3.73, addr 3
ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2
ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3; 
wMaxPacketSize=49; nframes=6, buffer size=294
ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command 
OGF=0x3, OCF=0x3. Timeout

I have increased (from 5):

net.bluetooth.hci.command_timeout: 30
net.bluetooth.hci.sockets.raw.ioctl_timeout: 30

In BIOS I have:

- enabled USB 1.1
- enabled USB 2.0 (I tried rebooting with this one disabled and the 
result was the same)
- support for USB keyboard/mouse

I used hcidump -t:

- /etc/rc.d/bluetooth stop ubt0 and start

1185968443.486255 < HCI Command: Read BD ADDR(0x04|0x0009) plen 0
1185968443.488401 > HCI Event: Command Complete(0x0e) plen 10
1185968443.490854 < HCI Command: Read Local Supported 
Features(0x04|0x0003) plen 0
1185968448.491681 > HCI Event: Command Complete(0x0e) plen 12
1185968448.494280 < HCI Command: Read Buffer Size(0x04|0x0005) plen 0
1185968453.494811 > HCI Event: Command Complete(0x0e) plen 11
1185968453.497259 < HCI Command: Write Scan Enable(0x03|0x001a) plen 1
1185968458.497931 > HCI Event: Command Complete(0x0e) plen 4
1185968458.500482 < HCI Command: Write Class of Device(0x03|0x0024) plen 3
1185968463.501063 > HCI Event: Command Complete(0x0e) plen 4
1185968463.503634 < HCI Command: Write Authentication 
Enable(0x03|0x0020) plen 1
1185968468.504201 > HCI Event: Command Complete(0x0e) plen 4
1185968468.506736 < HCI Command: Write Encryption Mode(0x03|0x0022) plen 1
1185968473.506331 > HCI Event: Command Complete(0x0e) plen 4
1185968473.510844 < HCI Command: Change Local Name(0x03|0x0013) plen 248
1185968478.515451 > HCI Event: Command Complete(0x0e) plen 4

and after hccontrol -n ubt0hci inquiry:

1185968524.786809 < HCI Command: Inquiry(0x01|0x0001) plen 5
1185968524.789218 > HCI Event: Command Status(0x0f) plen 4

With the turbocat i4b driver:

Upon system boot-up:

ubt0: at uhub0 port 2 (addr 126) disconnected
ubt0: detached
usbd_fill_iface_data: invalid wMaxPacketSize=0x0000, addr=126!
usbd_fill_iface_data: invalid wMaxPacketSize=0x0000, addr=126!
ubt0: <Integrated System Solution Corp. ISSCBTA, class 224/1, rev 
1.10/3.73, addr 126>
ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command 
OGF=0x4, OCF=0x9. Timeout

(at least the chipset appeared to be more than the generic one with the 
default driver)

hcidump -t:

1185967369.522102 < HCI Command: Read BD ADDR(0x04|0x0009) plen 0
1185967369.566564 > HCI Event: Command Complete(0x0e) plen 10
1185967369.569344 < HCI Command: Read Local Supported 
Features(0x04|0x0003) plen 0
1185967369.574575 > HCI Event: Command Complete(0x0e) plen 12
1185967369.577089 < HCI Command: Read Buffer Size(0x04|0x0005) plen 0
1185967369.582559 > HCI Event: Command Complete(0x0e) plen 11
1185967369.585367 < HCI Command: Write Scan Enable(0x03|0x001a) plen 1
1185967369.590547 > HCI Event: Command Complete(0x0e) plen 4
1185967369.593138 < HCI Command: Write Class of Device(0x03|0x0024) plen 3
1185967369.598551 > HCI Event: Command Complete(0x0e) plen 4
1185967369.601213 < HCI Command: Write Authentication 
Enable(0x03|0x0020) plen 1
1185967369.606543 > HCI Event: Command Complete(0x0e) plen 4
1185967369.609164 < HCI Command: Write Encryption Mode(0x03|0x0022) plen 1
1185967369.614552 > HCI Event: Command Complete(0x0e) plen 4
1185967369.619209 < HCI Command: Change Local Name(0x03|0x0013) plen 248
1185967369.639555 > HCI Event: Command Complete(0x0e) plen 4
1185967377.300451 < HCI Command: Inquiry(0x01|0x0001) plen 5
1185967377.305197 > HCI Event: Command Status(0x0f) plen 4


The error with wMaxPacketSize persisted and upon trying to discover 
bluetooth devices, the operation timed out (and still no command would 
work).

hccontrol -n ubt0hci inquiry
Could not execute command "inquiry". Operation timed out

I've also changed the dongle to another USB port, same thing.
I've also moved it to another PC running the same FreeBSD 6.2 and 
kldloaded ng_ubt but the result was the same.

What bothers me the most is that this bluetooth dongle worked with a 
FreeBSD 6.2 system inside a Windows VMWare system.
What could be different this time so that it would lead to this lack of 
communication ?

Can you help me solve this ?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46B07278.4000908>