From owner-freebsd-bluetooth@FreeBSD.ORG Wed Aug 1 11:46:00 2007 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 42CAB16A417 for ; Wed, 1 Aug 2007 11:46:00 +0000 (UTC) (envelope-from mihai@duras.ro) Received: from mail.duras.ro (mail.duras.ro [86.105.56.133]) by mx1.freebsd.org (Postfix) with ESMTP id C20BB13C4D3 for ; Wed, 1 Aug 2007 11:45:59 +0000 (UTC) (envelope-from mihai@duras.ro) Received: from localhost (localhost [127.0.0.1]) by mail.duras.ro (Postfix) with ESMTP id 02C5D8C50B for ; Wed, 1 Aug 2007 14:46:01 +0300 (EEST) Received: from mail.duras.ro ([127.0.0.1]) by localhost (mail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17971-06 for ; Wed, 1 Aug 2007 14:45:54 +0300 (EEST) Received: from [86.105.56.194] (ma.plimb.cu.barca.prin.padure.ro [86.105.56.194]) by mail.duras.ro (Postfix) with ESMTP id 9F3FAA0E2 for ; Wed, 1 Aug 2007 14:45:54 +0300 (EEST) Message-ID: <46B07278.4000908@duras.ro> Date: Wed, 01 Aug 2007 14:46:00 +0300 From: Mihai Tanasescu User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: freebsd-bluetooth@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (RedHat) at duras.ro Subject: Bluesoleil bluetooth problems X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Aug 2007 11:46:00 -0000 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: 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 ?