From owner-freebsd-bluetooth@FreeBSD.ORG Mon Jul 30 18:36:34 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 11E6716A417 for ; Mon, 30 Jul 2007 18:36:34 +0000 (UTC) (envelope-from rpaulo@fnop.net) Received: from core.fnop.net (mx.fnop.net [82.102.11.82]) by mx1.freebsd.org (Postfix) with ESMTP id C7AF713C45D for ; Mon, 30 Jul 2007 18:36:33 +0000 (UTC) (envelope-from rpaulo@fnop.net) Received: from core.fnop.net (mx.fnop.net [82.102.11.82]) by core.fnop.net (Postfix) with ESMTP id 4D1B1690E20 for ; Mon, 30 Jul 2007 19:29:31 +0100 (WEST) Received: by core.fnop.net (Postfix, from userid 1015) id 0F370690ED7; Mon, 30 Jul 2007 19:29:31 +0100 (WEST) X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on core.fnop.net X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00, DATE_IN_PAST_03_06 autolearn=ham version=3.1.7 Received: from epsilon.local (unknown [83.240.230.125]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by core.fnop.net (Postfix) with ESMTP id 584E8690E20 for ; Mon, 30 Jul 2007 19:29:27 +0100 (WEST) Message-ID: <46ADF081.8040404@fnop.net> Date: Mon, 30 Jul 2007 15:06:57 +0100 From: Rui Paulo User-Agent: Thunderbird 2.0.0.4 (X11/20070704) MIME-Version: 1.0 To: freebsd-bluetooth@freebsd.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: ubthidctl(1) utility 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: Mon, 30 Jul 2007 18:36:34 -0000 Hi, As part of my SoC project, you can find, at the following location, my ubthidctl utility: http://fnop.net/~rpaulo/priv/freebsd/ubthidctl.tgz ubthidctl(1) is a userland utility to switch a Bluetooth controller in HID mode to HCI mode and vice versa. This is needed, for example, in all MacBooks, iMacs and MacMinis (not sure if these ones have bluetooth at all). I also plan to create an rc.d script to run ubthidctl on boot with the distributed table file. This was being discussed on this mailing list with the "HCI - HID proxy" subject. Any comments? This is part of my SoC project. Regards. -- Rui Paulo From owner-freebsd-bluetooth@FreeBSD.ORG Mon Jul 30 19:11:14 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 0F87216A418 for ; Mon, 30 Jul 2007 19:11:14 +0000 (UTC) (envelope-from rpaulo@fnop.net) Received: from core.fnop.net (mx.fnop.net [82.102.11.82]) by mx1.freebsd.org (Postfix) with ESMTP id 822D613C46B for ; Mon, 30 Jul 2007 19:11:13 +0000 (UTC) (envelope-from rpaulo@fnop.net) Received: from core.fnop.net (mx.fnop.net [82.102.11.82]) by core.fnop.net (Postfix) with ESMTP id 8F333690E20; Mon, 30 Jul 2007 20:04:14 +0100 (WEST) Received: by core.fnop.net (Postfix, from userid 1015) id 44721690ED7; Mon, 30 Jul 2007 20:04:14 +0100 (WEST) X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on core.fnop.net X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.7 Received: from epsilon.local (unknown [83.240.230.125]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by core.fnop.net (Postfix) with ESMTP id AE3C3690E20; Mon, 30 Jul 2007 20:04:08 +0100 (WEST) Message-ID: <46AE37B0.6020703@fnop.net> Date: Mon, 30 Jul 2007 20:10:40 +0100 From: Rui Paulo User-Agent: Thunderbird 2.0.0.4 (X11/20070704) MIME-Version: 1.0 To: Marcel Holtmann References: <46ADF081.8040404@fnop.net> <1185822474.5868.147.camel@violet> In-Reply-To: <1185822474.5868.147.camel@violet> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-bluetooth@freebsd.org Subject: Re: ubthidctl(1) utility 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: Mon, 30 Jul 2007 19:11:14 -0000 Marcel Holtmann wrote: > Hi Rui, > >> As part of my SoC project, you can find, at the following location, my >> ubthidctl utility: >> >> http://fnop.net/~rpaulo/priv/freebsd/ubthidctl.tgz >> >> ubthidctl(1) is a userland utility to switch a Bluetooth controller in >> HID mode to HCI mode and vice versa. This is needed, for example, in all >> MacBooks, iMacs and MacMinis (not sure if these ones have bluetooth at all). >> I also plan to create an rc.d script to run ubthidctl on boot with the >> distributed table file. >> >> This was being discussed on this mailing list with the "HCI - HID proxy" >> subject. >> >> Any comments? > > I would appreciate if you note what this utility is based on since you > obviously derived your information from hid2hci. And that code is > written by me. Consider it done. -- Rui Paulo From owner-freebsd-bluetooth@FreeBSD.ORG Mon Jul 30 19:23:25 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 9E0B716A419 for ; Mon, 30 Jul 2007 19:23:25 +0000 (UTC) (envelope-from marcel@holtmann.org) Received: from mail.holtmann.net (coyote.holtmann.net [217.160.111.169]) by mx1.freebsd.org (Postfix) with ESMTP id 26D1413C442 for ; Mon, 30 Jul 2007 19:23:24 +0000 (UTC) (envelope-from marcel@holtmann.org) Received: from [192.168.5.242] (p5487F6A3.dip.t-dialin.net [84.135.246.163]) by mail.holtmann.net (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id l6UJEEw7019051; Mon, 30 Jul 2007 21:14:14 +0200 From: Marcel Holtmann To: Rui Paulo In-Reply-To: <46ADF081.8040404@fnop.net> References: <46ADF081.8040404@fnop.net> Content-Type: text/plain Date: Mon, 30 Jul 2007 21:07:54 +0200 Message-Id: <1185822474.5868.147.camel@violet> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org Subject: Re: ubthidctl(1) utility 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: Mon, 30 Jul 2007 19:23:25 -0000 Hi Rui, > As part of my SoC project, you can find, at the following location, my > ubthidctl utility: > > http://fnop.net/~rpaulo/priv/freebsd/ubthidctl.tgz > > ubthidctl(1) is a userland utility to switch a Bluetooth controller in > HID mode to HCI mode and vice versa. This is needed, for example, in all > MacBooks, iMacs and MacMinis (not sure if these ones have bluetooth at all). > I also plan to create an rc.d script to run ubthidctl on boot with the > distributed table file. > > This was being discussed on this mailing list with the "HCI - HID proxy" > subject. > > Any comments? I would appreciate if you note what this utility is based on since you obviously derived your information from hid2hci. And that code is written by me. Regards Marcel From owner-freebsd-bluetooth@FreeBSD.ORG Mon Jul 30 23:46:05 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 6DBE416A418 for ; Mon, 30 Jul 2007 23:46:05 +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 313DC13C48D for ; Mon, 30 Jul 2007 23:46:04 +0000 (UTC) (envelope-from mihai@duras.ro) Received: from localhost (localhost [127.0.0.1]) by mail.duras.ro (Postfix) with ESMTP id 961B39EF5 for ; Tue, 31 Jul 2007 02:17:12 +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 05146-10 for ; Tue, 31 Jul 2007 02:17:10 +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 B7453CD2 for ; Tue, 31 Jul 2007 02:17:10 +0300 (EEST) Message-ID: <46AE717D.6030409@duras.ro> Date: Tue, 31 Jul 2007 02:17:17 +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 dongle 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: Mon, 30 Jul 2007 23:46:05 -0000 Hello, I've just bought a Bluesoleil bluetooth dongle and I'm having problems with it right from the start. I kldload-ed ng-ubt.ko. After plugging the USB dongle in my computer it says: ubt0: vendor 0x1131 ISSCBTA, rev 1.10/3.73 addr 2 ubt0: vendor 0x1131 ISSCBTA, rev 1.10/3.73 addr 2 ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2 ubt0: Interface1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3; wMaxPacketSize=49; nframes=6, buffer size=294 ubt_request_complete2: ubt0 - Control request failed. STALLED (17) ubt_request_complete2: ubt0 - Control request failed. STALLED (17) ubt_request_complete2: ubt0 - Control request failed. STALLED (17) a couple of times and then everything stops and no bluetooth device appears in /dev. Any ideas on how to solve this and get it to work ? From owner-freebsd-bluetooth@FreeBSD.ORG Tue Jul 31 01:11:26 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 EFD8D16A419 for ; Tue, 31 Jul 2007 01:11:26 +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 813F113C442 for ; Tue, 31 Jul 2007 01:11:26 +0000 (UTC) (envelope-from mihai@duras.ro) Received: from localhost (localhost [127.0.0.1]) by mail.duras.ro (Postfix) with ESMTP id 01D918C50B; Tue, 31 Jul 2007 04:11:26 +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 07451-06; Tue, 31 Jul 2007 04:11:24 +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 429248FE9; Tue, 31 Jul 2007 04:11:24 +0300 (EEST) Message-ID: <46AE8C42.5030107@duras.ro> Date: Tue, 31 Jul 2007 04:11:30 +0300 From: Mihai Tanasescu User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: Maksim Yevmenkin References: <46AE717D.6030409@duras.ro> In-Reply-To: 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 Cc: freebsd-bluetooth@freebsd.org Subject: Re: Bluesoleil dongle 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: Tue, 31 Jul 2007 01:11:27 -0000 Maksim Yevmenkin wrote: > Hello, > > >> I've just bought a Bluesoleil bluetooth dongle and I'm having problems >> with it right from the start. >> >> >> I kldload-ed ng-ubt.ko. >> >> After plugging the USB dongle in my computer it says: >> >> ubt0: vendor 0x1131 ISSCBTA, rev 1.10/3.73 addr 2 >> ubt0: vendor 0x1131 ISSCBTA, rev 1.10/3.73 addr 2 >> ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2 >> ubt0: Interface1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3; >> wMaxPacketSize=49; nframes=6, buffer size=294 >> ubt_request_complete2: ubt0 - Control request failed. STALLED (17) >> ubt_request_complete2: ubt0 - Control request failed. STALLED (17) >> ubt_request_complete2: ubt0 - Control request failed. STALLED (17) >> > > well, this points to usb and/or device itself, not bluetooth. > basically the driver is trying to send control request to the device > and it stalled. try different usb port and/or try to disable ehci usb > and revert back to uhci (or ohci). > > >> a couple of times and then everything stops and no bluetooth device >> appears in /dev. >> > > there won't be any entires in /dev for bluetooth devices. only netgraph nodes. > > thanks, > max > I was using UHCI already. The error still appears...but I don't quite get it...if I issue: hccontrol -n ubt0hci inquiry (like the handbook says) I can very easily see my mobile phone and my keyboards' bluetooth hub. I can also use: hccontrol -n ubt0hci remote_name_request and it works..but the error appears 1 or 2 times for each command I issue. What could be causing this ? Do I need to set(increase) some sort of a timeout ? From owner-freebsd-bluetooth@FreeBSD.ORG Tue Jul 31 01:14:41 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 061FA16A418 for ; Tue, 31 Jul 2007 01:14:41 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.191]) by mx1.freebsd.org (Postfix) with ESMTP id 9298F13C46C for ; Tue, 31 Jul 2007 01:14:40 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by mu-out-0910.google.com with SMTP id w9so1841006mue for ; Mon, 30 Jul 2007 18:14:39 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NVmp2aGycDlVtbsrcrhrWCj+pXRTiBLdh92PFYJvMhlNSxFzflGAJ0GlgZeXWKKHPNaTpYihYZgXhibURR3xsiEJRz//OnhAJug6NjgZpbpjgWm4CfHPCRZu7cscDB4zsKRJRkTBCqQ3MlQhn4YlfyxUapFLbm8L9QsDEce4lOE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Zre09wrj4lyKjMpG8eb6XmX+x68nAqTcVGOKZBlJz/R8TYZWniTfIMIg4jsTqU5JlQVBhT72JwNGDDDgD0LCjQIkJ+PM5tt3//1Dk4p2HbBuB8JdnE1WmedaOT7YImRadeYbkQsHU083iR/eTmVJwOxHC7/MqtttbsirCA4HCsU= Received: by 10.86.59.3 with SMTP id h3mr1082218fga.1185842776804; Mon, 30 Jul 2007 17:46:16 -0700 (PDT) Received: by 10.86.63.16 with HTTP; Mon, 30 Jul 2007 17:46:16 -0700 (PDT) Message-ID: Date: Mon, 30 Jul 2007 17:46:16 -0700 From: "Maksim Yevmenkin" To: "Mihai Tanasescu" In-Reply-To: <46AE717D.6030409@duras.ro> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46AE717D.6030409@duras.ro> Cc: freebsd-bluetooth@freebsd.org Subject: Re: Bluesoleil dongle 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: Tue, 31 Jul 2007 01:14:41 -0000 Hello, > I've just bought a Bluesoleil bluetooth dongle and I'm having problems > with it right from the start. > > > I kldload-ed ng-ubt.ko. > > After plugging the USB dongle in my computer it says: > > ubt0: vendor 0x1131 ISSCBTA, rev 1.10/3.73 addr 2 > ubt0: vendor 0x1131 ISSCBTA, rev 1.10/3.73 addr 2 > ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2 > ubt0: Interface1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3; > wMaxPacketSize=49; nframes=6, buffer size=294 > ubt_request_complete2: ubt0 - Control request failed. STALLED (17) > ubt_request_complete2: ubt0 - Control request failed. STALLED (17) > ubt_request_complete2: ubt0 - Control request failed. STALLED (17) well, this points to usb and/or device itself, not bluetooth. basically the driver is trying to send control request to the device and it stalled. try different usb port and/or try to disable ehci usb and revert back to uhci (or ohci). > a couple of times and then everything stops and no bluetooth device > appears in /dev. there won't be any entires in /dev for bluetooth devices. only netgraph nodes. thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Tue Jul 31 17:14:35 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 2C00316A417 for ; Tue, 31 Jul 2007 17:14:35 +0000 (UTC) (envelope-from rpaulo@fnop.net) Received: from core.fnop.net (mx.fnop.net [82.102.11.82]) by mx1.freebsd.org (Postfix) with ESMTP id 920F413C474 for ; Tue, 31 Jul 2007 17:14:34 +0000 (UTC) (envelope-from rpaulo@fnop.net) Received: from core.fnop.net (mx.fnop.net [82.102.11.82]) by core.fnop.net (Postfix) with ESMTP id 32BA3690EC4; Tue, 31 Jul 2007 18:07:24 +0100 (WEST) Received: by core.fnop.net (Postfix, from userid 1015) id E5CA9690F0C; Tue, 31 Jul 2007 18:07:23 +0100 (WEST) X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on core.fnop.net X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=AWL,BAYES_00, DATE_IN_PAST_12_24,RCVD_IN_SORBS_DUL,RCVD_IN_SORBS_WEB autolearn=no version=3.1.7 Received: from epsilon.local (unknown [83.144.140.90]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by core.fnop.net (Postfix) with ESMTP id 74883690EC4; Tue, 31 Jul 2007 18:07:20 +0100 (WEST) Message-ID: <46AE39C8.8080604@fnop.net> Date: Mon, 30 Jul 2007 20:19:36 +0100 From: Rui Paulo User-Agent: Thunderbird 2.0.0.4 (X11/20070704) MIME-Version: 1.0 To: Marcel Holtmann References: <46ADF081.8040404@fnop.net> <1185822474.5868.147.camel@violet> In-Reply-To: <1185822474.5868.147.camel@violet> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-bluetooth@freebsd.org Subject: Re: ubthidctl(1) utility 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: Tue, 31 Jul 2007 17:14:35 -0000 Marcel Holtmann wrote: > Hi Rui, > >> As part of my SoC project, you can find, at the following location, my >> ubthidctl utility: >> >> http://fnop.net/~rpaulo/priv/freebsd/ubthidctl.tgz >> >> ubthidctl(1) is a userland utility to switch a Bluetooth controller in >> HID mode to HCI mode and vice versa. This is needed, for example, in all >> MacBooks, iMacs and MacMinis (not sure if these ones have bluetooth at all). >> I also plan to create an rc.d script to run ubthidctl on boot with the >> distributed table file. >> >> This was being discussed on this mailing list with the "HCI - HID proxy" >> subject. >> >> Any comments? > > I would appreciate if you note what this utility is based on since you > obviously derived your information from hid2hci. And that code is > written by me. Sorry for being terse on the last message, but I had to run away and, since I'm on vacation, my Internet connection is pretty limited. The reason you didn't see a mention to hid2hci was not that I wanted to take full credit or anything else mean, it was just that this utility is still in development phase and I didn't worry (yet) about adding proper comments in the code. But as you can see now, the C source file already mentions your name. Regards. -- Rui Paulo From owner-freebsd-bluetooth@FreeBSD.ORG Tue Jul 31 17:20:33 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 6C0FE16A476 for ; Tue, 31 Jul 2007 17:20:33 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.freebsd.org (Postfix) with ESMTP id D298513C4CA for ; Tue, 31 Jul 2007 17:20:32 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so251541nfb for ; Tue, 31 Jul 2007 10:20:32 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hx4MJPRibNXTZW3do0BrX21ip/oPjF4ZuFluUYNqsnlMFNMySuzl/rPsGvPJYKazHeV52KxlwYGdraDkboOyZ+Ilco2vUcTMGr2GYMhlkpk1TofoO4rQ8XjStHrRi/RTg9ZM6B/vxlChAVpYKSAcx2XjDmFGRGZWY0I6J1pW8oM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bLBptqnYtQwNZJzRfz/5wnN0f3dmH9nv55azS4xXRn781/l+VipogUxfIka5olW2RWxvRncw+blPNnHpSL0DREyuKtn2sVqdejxtiftgZb6j/UBBjgmZBafj0Xeh3xYheI6xRSMOKPeKJFXy4GPiW2i6UozVR9HLyZLqxO60+OE= Received: by 10.86.89.4 with SMTP id m4mr4856790fgb.1185902432369; Tue, 31 Jul 2007 10:20:32 -0700 (PDT) Received: by 10.86.63.16 with HTTP; Tue, 31 Jul 2007 10:20:32 -0700 (PDT) Message-ID: Date: Tue, 31 Jul 2007 10:20:32 -0700 From: "Maksim Yevmenkin" To: "Mihai Tanasescu" In-Reply-To: <46AE8C42.5030107@duras.ro> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46AE717D.6030409@duras.ro> <46AE8C42.5030107@duras.ro> Cc: freebsd-bluetooth@freebsd.org Subject: Re: Bluesoleil dongle 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: Tue, 31 Jul 2007 17:20:33 -0000 On 7/30/07, Mihai Tanasescu wrote: > Maksim Yevmenkin wrote: > > Hello, > > > > > >> I've just bought a Bluesoleil bluetooth dongle and I'm having problems > >> with it right from the start. > >> > >> > >> I kldload-ed ng-ubt.ko. > >> > >> After plugging the USB dongle in my computer it says: > >> > >> ubt0: vendor 0x1131 ISSCBTA, rev 1.10/3.73 addr 2 > >> ubt0: vendor 0x1131 ISSCBTA, rev 1.10/3.73 addr 2 > >> ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2 > >> ubt0: Interface1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3; > >> wMaxPacketSize=49; nframes=6, buffer size=294 > >> ubt_request_complete2: ubt0 - Control request failed. STALLED (17) > >> ubt_request_complete2: ubt0 - Control request failed. STALLED (17) > >> ubt_request_complete2: ubt0 - Control request failed. STALLED (17) > >> > > > > well, this points to usb and/or device itself, not bluetooth. > > basically the driver is trying to send control request to the device > > and it stalled. try different usb port and/or try to disable ehci usb > > and revert back to uhci (or ohci). > > > > > >> a couple of times and then everything stops and no bluetooth device > >> appears in /dev. > >> > > > > there won't be any entires in /dev for bluetooth devices. only netgraph nodes. > > I was using UHCI already. > The error still appears...but I don't quite get it...if I issue: i see > hccontrol -n ubt0hci inquiry > > (like the handbook says) > > I can very easily see my mobile phone and my keyboards' bluetooth hub. > > I can also use: > hccontrol -n ubt0hci remote_name_request > > and it works..but the error appears 1 or 2 times for each command I issue. that tells me that bluetooth part works fine, *when* communication between host (pc) and bluetooth dongle works > What could be causing this ? > Do I need to set(increase) some sort of a timeout ? all i can say at this point is that there is seems to be something wrong with usb part. for whatever reason communication (via usb bus) between host (pc) and bluetooth dongle is flaky. it is clearly not a timeout issue, so you can not fix it by changing timeout. can you please send 1) uname -a 2) dmesg output 3) usbdevs -dv output with bluetooth dongle attached you can also try to use different usb port (if available). if you use usb hub, try without it. if your dongle has extension usb cable, try shorter (or no) extension cable. finally, if possible try another dongle (preferably different brand). thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Tue Jul 31 21:59:45 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 DECE216A41B for ; Tue, 31 Jul 2007 21:59:45 +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 6262C13C442 for ; Tue, 31 Jul 2007 21:59:45 +0000 (UTC) (envelope-from mihai@duras.ro) Received: from localhost (localhost [127.0.0.1]) by mail.duras.ro (Postfix) with ESMTP id 7A67D28CDF; Wed, 1 Aug 2007 00:59:43 +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 01164-06; Wed, 1 Aug 2007 00:59:38 +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 9F6739EF5; Wed, 1 Aug 2007 00:59:38 +0300 (EEST) Message-ID: <46AFB0D2.1010302@duras.ro> Date: Wed, 01 Aug 2007 00:59:46 +0300 From: Mihai Tanasescu User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: Maksim Yevmenkin References: <46AE717D.6030409@duras.ro> <46AE8C42.5030107@duras.ro> In-Reply-To: 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 Cc: freebsd-bluetooth@freebsd.org Subject: Re: Bluesoleil dongle 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: Tue, 31 Jul 2007 21:59:46 -0000 Maksim Yevmenkin wrote: > On 7/30/07, Mihai Tanasescu wrote: > >> Maksim Yevmenkin wrote: >> >>> Hello, >>> >>> >>> >>>> I've just bought a Bluesoleil bluetooth dongle and I'm having problems >>>> with it right from the start. >>>> >>>> >>>> I kldload-ed ng-ubt.ko. >>>> >>>> After plugging the USB dongle in my computer it says: >>>> >>>> ubt0: vendor 0x1131 ISSCBTA, rev 1.10/3.73 addr 2 >>>> ubt0: vendor 0x1131 ISSCBTA, rev 1.10/3.73 addr 2 >>>> ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2 >>>> ubt0: Interface1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3; >>>> wMaxPacketSize=49; nframes=6, buffer size=294 >>>> ubt_request_complete2: ubt0 - Control request failed. STALLED (17) >>>> ubt_request_complete2: ubt0 - Control request failed. STALLED (17) >>>> ubt_request_complete2: ubt0 - Control request failed. STALLED (17) >>>> >>>> >>> well, this points to usb and/or device itself, not bluetooth. >>> basically the driver is trying to send control request to the device >>> and it stalled. try different usb port and/or try to disable ehci usb >>> and revert back to uhci (or ohci). >>> >>> >>> >>>> a couple of times and then everything stops and no bluetooth device >>>> appears in /dev. >>>> >>>> >>> there won't be any entires in /dev for bluetooth devices. only netgraph nodes. >>> >> I was using UHCI already. >> The error still appears...but I don't quite get it...if I issue: >> > > i see > > >> hccontrol -n ubt0hci inquiry >> >> (like the handbook says) >> >> I can very easily see my mobile phone and my keyboards' bluetooth hub. >> >> I can also use: >> hccontrol -n ubt0hci remote_name_request >> >> and it works..but the error appears 1 or 2 times for each command I issue. >> > > that tells me that bluetooth part works fine, *when* communication > between host (pc) and bluetooth dongle works > > >> What could be causing this ? >> Do I need to set(increase) some sort of a timeout ? >> > > all i can say at this point is that there is seems to be something > wrong with usb part. for whatever reason communication (via usb bus) > between host (pc) and bluetooth dongle is flaky. it is clearly not a > timeout issue, so you can not fix it by changing timeout. > > can you please send > > 1) uname -a > > 2) dmesg output > > 3) usbdevs -dv output with bluetooth dongle attached > > you can also try to use different usb port (if available). if you use > usb hub, try without it. if your dongle has extension usb cable, try > shorter (or no) extension cable. finally, if possible try another > dongle (preferably different brand). > > thanks, > max > Don't shoot but I had some errors in hcsecd.conf and that's why I was getting those control request failures. Now everything works fine and it connects with my phone. I've just spent a couple of hours getting gnokii to work with it, but after disabling the rfcomm option and specifying AT mode everything went on smoothly. Sorry for the trouble and thanks for the help. From owner-freebsd-bluetooth@FreeBSD.ORG Wed Aug 1 00:12:59 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 1D46C16A41F for ; Wed, 1 Aug 2007 00:12:59 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.187]) by mx1.freebsd.org (Postfix) with ESMTP id A441B13C465 for ; Wed, 1 Aug 2007 00:12:58 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so36499fka for ; Tue, 31 Jul 2007 17:12:57 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=b+aRQh3eoKJ0SkMC404cACyYowCap0IhOKL0zSPzuAhdAKuR+rHs5Au9zi6Cc5DufTyr6cIvGGSdPEWQjdbwXJBXY1GMqqyWF82ku+GYU58jKkDjGpS+yie/lf7P9k8aMFels8P3fVDXxHGoZVVYPo2VL4q+1M5tfs5ntX+cxmk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UByDoVXQMQsD7Qjk7TChrZ0Ig62i66hcRkxWNOQEOL0opmsxxc84ltOqPiGK/fTe1BLpJhDyf3zZbMMpNoBa/ztaty9QflWKmwJ2n6KjASTn1U7ddebD3oOyyMsrnmwW3ShEsKyI9fzgdjKf9ZPfftcZCyf4SviSrE6XcZPvuuU= Received: by 10.86.51.2 with SMTP id y2mr116353fgy.1185926766784; Tue, 31 Jul 2007 17:06:06 -0700 (PDT) Received: by 10.86.63.16 with HTTP; Tue, 31 Jul 2007 17:06:06 -0700 (PDT) Message-ID: Date: Tue, 31 Jul 2007 17:06:06 -0700 From: "Maksim Yevmenkin" To: "Mihai Tanasescu" In-Reply-To: <46AFB0D2.1010302@duras.ro> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46AE717D.6030409@duras.ro> <46AE8C42.5030107@duras.ro> <46AFB0D2.1010302@duras.ro> Cc: freebsd-bluetooth@freebsd.org Subject: Re: Bluesoleil dongle 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 00:12:59 -0000 [...] > Don't shoot but I had some errors in hcsecd.conf and that's why I was > getting those control request failures. please tell me what kind of mistakes did you have in your hcsecd.conf. mistakes in hcsecd.conf should not produce errors like yours. if it happens - then it is a problem and should be fixed. thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Wed Aug 1 11:07:55 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 7767316A418 for ; Wed, 1 Aug 2007 11:07:55 +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 3127D13C428 for ; Wed, 1 Aug 2007 11:07:55 +0000 (UTC) (envelope-from mihai@duras.ro) Received: from localhost (localhost [127.0.0.1]) by mail.duras.ro (Postfix) with ESMTP id 725118CDCE; Wed, 1 Aug 2007 14:07:56 +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 16716-09; Wed, 1 Aug 2007 14:07: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 8A885A0E2; Wed, 1 Aug 2007 14:07:54 +0300 (EEST) Message-ID: <46B06990.8050007@duras.ro> Date: Wed, 01 Aug 2007 14:08:00 +0300 From: Mihai Tanasescu User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: Maksim Yevmenkin References: <46AE717D.6030409@duras.ro> <46AE8C42.5030107@duras.ro> <46AFB0D2.1010302@duras.ro> In-Reply-To: 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 Cc: freebsd-bluetooth@freebsd.org Subject: Re: Bluesoleil dongle 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:07:55 -0000 Maksim Yevmenkin wrote: > [...] > > >> Don't shoot but I had some errors in hcsecd.conf and that's why I was >> getting those control request failures. >> > > please tell me what kind of mistakes did you have in your hcsecd.conf. > mistakes in hcsecd.conf should not produce errors like yours. if it > happens - then it is a problem and should be fixed. > > thanks, > max > Well I was using WMware from a Windows machine and running FreeBSD inside it. I tried to reproduce the error thinking that it might have been related to the hcsecd.conf but it seems it was not. Thinking of what I tried (even reinstalling Vmware) maybe the problem was related to its USB emulation. Now everything works fine on it...but I'm having problems after moving the USB bluetooth dongle to the real machine it was meant to (a pure FreeBSD one this time). I've started a new thread on this...maybe if you have the time you could give me some points as to what is not going right with it. 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 ? From owner-freebsd-bluetooth@FreeBSD.ORG Wed Aug 1 21:58:54 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 3009816A469 for ; Wed, 1 Aug 2007 21:58:54 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.freebsd.org (Postfix) with ESMTP id B856613C4A3 for ; Wed, 1 Aug 2007 21:58:53 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so90039nfb for ; Wed, 01 Aug 2007 14:58:52 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=t1QyquVREC0FFErkPe7EpqJlBqEbiwqhsn+l4WZXVUByJR7deusMPAqvie/fOrLiEjucBcaML87d3whDSnlQxvzzmNLOXRNWYX91v+8j01CeLfpF/J9L0vL031fO9W0EMNFvdujrZr3wN9M8+THSlpHzGCIDqHW9yAgqsvCFfsg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZjPKkxVJs66p3gs83NVzrWdU1DuNm5vyHJTBFy9tgT5T1y9J/UW9xFJMQ5LgoukBZ3t9uN+K6z24BEbGMhdX4e3yI70OqzFMwYC//oTD2sdfnaOsAS7OBe0a32w2XOS5AA6LpskGhSClrJ0S8MgZrpilO6and/FoBgKUGbNKbUs= Received: by 10.86.51.2 with SMTP id y2mr876509fgy.1186005532085; Wed, 01 Aug 2007 14:58:52 -0700 (PDT) Received: by 10.86.63.16 with HTTP; Wed, 1 Aug 2007 14:58:52 -0700 (PDT) Message-ID: Date: Wed, 1 Aug 2007 14:58:52 -0700 From: "Maksim Yevmenkin" To: "Mihai Tanasescu" In-Reply-To: <46B07278.4000908@duras.ro> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46B07278.4000908@duras.ro> Cc: freebsd-bluetooth@freebsd.org Subject: Re: 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 21:58:54 -0000 On 8/1/07, Mihai Tanasescu wrote: > 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 try to search for 'ISSCBTA reset'. you will find that someone else was having similar problems with the same dongle, i.e. http://lists.freebsd.org/pipermail/freebsd-bluetooth/2006-December/000818.html i suspect this particular dongle does not react very well to 'reset' command or, perhaps, there is an issue related to short usb transfers on ehci controllers. so, 1) try to comment out 'reset' command in /etc/rc.d/bluetooth (see link above) and/or 2) try to recompile your kernel without 'device ehci' thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Thu Aug 2 07:45:06 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 A4FC216A417 for ; Thu, 2 Aug 2007 07:45:06 +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 2DFF713C481 for ; Thu, 2 Aug 2007 07:45:06 +0000 (UTC) (envelope-from mihai@duras.ro) Received: from localhost (localhost [127.0.0.1]) by mail.duras.ro (Postfix) with ESMTP id C4E222FA5; Thu, 2 Aug 2007 10:45:06 +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 09421-08; Thu, 2 Aug 2007 10:45:03 +0300 (EEST) Received: from www.duras.ro (www.duras.ro [86.105.56.135]) by mail.duras.ro (Postfix) with ESMTP id 996F8A0E2; Thu, 2 Aug 2007 10:45:03 +0300 (EEST) Received: from 86.105.56.142 (SquirrelMail authenticated user mihai@duras.ro) by www.duras.ro with HTTP; Thu, 2 Aug 2007 10:45:04 +0300 (EEST) Message-ID: <63857.86.105.56.142.1186040704.squirrel@www.duras.ro> In-Reply-To: References: <46B07278.4000908@duras.ro> Date: Thu, 2 Aug 2007 10:45:04 +0300 (EEST) From: mihai@duras.ro To: "Maksim Yevmenkin" User-Agent: SquirrelMail/1.5.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new-20030616-p10 (RedHat) at duras.ro Cc: freebsd-bluetooth@freebsd.org Subject: Re: 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: Thu, 02 Aug 2007 07:45:06 -0000 On Thu, August 2, 2007 12:58 am, Maksim Yevmenkin wrote: > > try to search for 'ISSCBTA reset'. you will find that someone else was > having similar problems with the same dongle, i.e. > > http://lists.freebsd.org/pipermail/freebsd-bluetooth/2006-December/000818 > .html > > > i suspect this particular dongle does not react very well to 'reset' > command or, perhaps, there is an issue related to short usb transfers on > ehci controllers. > > so, > > 1) try to comment out 'reset' command in /etc/rc.d/bluetooth (see link > above) > > and/or > > 2) try to recompile your kernel without 'device ehci' > > > thanks, max > I disabled USB 2.0 from Bios. I've recompiled the kernel without device ehci. I commented out the reset in /etc/rc.d/bluetooth I've read about the NetBSD ehci problems and from what I saw their patch was made after one that was already included in FreeBSD. I've even upgraded the world to the latest RELENG_6_2. Now I'm getting: ubt0: vendor 0x1131 ISSCBTA, rev 1.10/3.73, addr 2 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=0x4, OCF=0x9. Timeout 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 The only notable difference I see between my current system and the VMWare one under which the dongle was working is that: - this system has: uhci0: port 0xd400-0xd41f irq 21 at device 16.0 on pci0 usb0: on uhci0 - the vmware one had emulated an Intel USB controller but on the other hand I tried the dongle yesterday on a system with: and the same problems appeared Is there anything else I might be missing... ? From owner-freebsd-bluetooth@FreeBSD.ORG Sat Aug 4 00:34:46 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 3C3E716A418 for ; Sat, 4 Aug 2007 00:34:46 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.190]) by mx1.freebsd.org (Postfix) with ESMTP id B781513C442 for ; Sat, 4 Aug 2007 00:34:45 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so910858fka for ; Fri, 03 Aug 2007 17:34:43 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oW09fOSPVxcXQcZ9a3QQFPUPZ8wotnR96puWpSnviI5LiYhvT29IFKA1cFzR/uNLDrBFom8LkLOolqiHN0dBu35oZvHmCM56gOWlZSseWegkJyoyrhaIq7hjGSJ81cyPQ2dJzSkW6blG58CvL//GD+uBwGILpWEL2OqNL1ksKoE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Q6/h3LGWUV8EfR0GPN3kEJHrvcJvvgNQL25ZOW12ZSsUkMNtporOgTpoNZWjgQJBNRc8weRJkOSOILwyWP7bztJkS+HEIXCrqBxnRR1qh2wlqnhKNLtcUkNpNzo+jNnX7zMLbHWCXrUC/RGi143mQxNDP/in1F98vHz+TV5Ia58= Received: by 10.86.93.17 with SMTP id q17mr2632731fgb.1186187683774; Fri, 03 Aug 2007 17:34:43 -0700 (PDT) Received: by 10.86.63.16 with HTTP; Fri, 3 Aug 2007 17:34:43 -0700 (PDT) Message-ID: Date: Fri, 3 Aug 2007 17:34:43 -0700 From: "Maksim Yevmenkin" To: "mihai@duras.ro" In-Reply-To: <63857.86.105.56.142.1186040704.squirrel@www.duras.ro> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46B07278.4000908@duras.ro> <63857.86.105.56.142.1186040704.squirrel@www.duras.ro> Cc: freebsd-bluetooth@freebsd.org Subject: Re: 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: Sat, 04 Aug 2007 00:34:46 -0000 On 8/2/07, mihai@duras.ro wrote: [...] > > I disabled USB 2.0 from Bios. > > I've recompiled the kernel without device ehci. > > I commented out the reset in /etc/rc.d/bluetooth > > I've read about the NetBSD ehci problems and from what I saw their patch > was made after one that was already included in FreeBSD. > > I've even upgraded the world to the latest RELENG_6_2. > > Now I'm getting: > > ubt0: vendor 0x1131 ISSCBTA, rev 1.10/3.73, addr 2 > 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=0x4, OCF=0x9. Timeout > 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 > > The only notable difference I see between my current system and the VMWare > one under which the dongle was working is that: > - this system has: > > uhci0: port 0xd400-0xd41f irq 21 at device > 16.0 on pci0 > usb0: on uhci0 > > - the vmware one had emulated an Intel USB controller > > but on the other hand I tried the dongle yesterday on a system with: > and the same problems appeared > > Is there anything else I might be missing... ? > > could you please provide the output of 1) uname -a 2) usbdevs -dv 3) dmesg output - better if system was booted with -v it would be nice if you can provide the outputs for both cases, i.e. when freebsd runs inside vmware and on real hardware. just from the look of it - its not a bluetooth problem. for whatever reason, the system can not communicate with your bluetooth dongle. thanks, max