From owner-freebsd-bluetooth@FreeBSD.ORG Sun Aug 5 18:10:10 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 51B4016A418 for ; Sun, 5 Aug 2007 18:10:10 +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 DBA5013C457 for ; Sun, 5 Aug 2007 18:10:09 +0000 (UTC) (envelope-from mihai@duras.ro) Received: from localhost (localhost [127.0.0.1]) by mail.duras.ro (Postfix) with ESMTP id B9A1C35753; Sun, 5 Aug 2007 21:10:11 +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 06523-04; Sun, 5 Aug 2007 21:10:07 +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 1D06D2FA5; Sun, 5 Aug 2007 21:10:07 +0300 (EEST) Message-ID: <46B61286.4080807@duras.ro> Date: Sun, 05 Aug 2007 21:10:14 +0300 From: Mihai Tanasescu User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: Maksim Yevmenkin References: <46B07278.4000908@duras.ro> <63857.86.105.56.142.1186040704.squirrel@www.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 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: Sun, 05 Aug 2007 18:10:10 -0000 Maksim Yevmenkin wrote: > 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 > FreeBSD machine: 1. uname -a: FreeBSD 6.2-RELEASE-p6 FreeBSD 6.2-RELEASE-p6 #5: Thu Aug 2 08:21:31 EEST 2007 /usr/obj/usr/src/sys/NEW i386 2. usbdevs -dv (freezes for about 1-2 seconds while displaying the first device): Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00 uhub0 port 1 addr 2: full speed, self powered, config 1, ISSCBTA(0x1001), vendor 0x1131(0x1131), rev 3.73 ubt0 port 2 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00 uhub1 port 1 powered port 2 powered Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00 uhub2 port 1 powered port 2 powered 3. dmesg with verbose enabled: http://pastebin.com/m1d00e5c9 VMWare Windows machine + FreeBSD: 1. uname -a FreeBSD test 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 2. usbdevs -dv (still the same freeze here as the FreeBSD machine) [root@test ~]# usbdevs -dv Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 uhub0 port 1 addr 2: full speed, self powered, config 1, product 0x1001(0x1001), vendor 0x1131(0x1131), rev 3.73 ubt0 port 2 addr 3: full speed, self powered, config 1, VMware Virtual USB Hub(0x0002), vendor 0x0e0f(0x0e0f), rev 1.00 uhub1 port 1 powered port 2 powered port 3 powered port 4 powered port 5 powered port 6 powered port 7 powered 3. dmesg with verbose enabled: http://pastebin.com/m789b6c58 From owner-freebsd-bluetooth@FreeBSD.ORG Thu Aug 9 16:58:27 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 580E116A419 for ; Thu, 9 Aug 2007 16:58:27 +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 C504A13C4DE for ; Thu, 9 Aug 2007 16:58:26 +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 4B32D690F56; Thu, 9 Aug 2007 17:50:36 +0100 (WEST) Received: by core.fnop.net (Postfix, from userid 1015) id 0A4C3690FBD; Thu, 9 Aug 2007 17:50:36 +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.1 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.7 Received: from epsilon.local (62.169.117.143.rev.optimus.pt [62.169.117.143]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by core.fnop.net (Postfix) with ESMTP id D3065690F56; Thu, 9 Aug 2007 17:50:31 +0100 (WEST) Message-ID: <46BB3998.3010609@fnop.net> Date: Thu, 09 Aug 2007 16:58:16 +0100 From: Rui Paulo User-Agent: Thunderbird 2.0.0.5 (X11/20070801) MIME-Version: 1.0 To: Iain Hibbert References: <46ADF081.8040404@fnop.net> <1185868992.989440.664.nullmailer@galant.ukfsn.org> In-Reply-To: <1185868992.989440.664.nullmailer@galant.ukfsn.org> Content-Type: text/plain; charset=ISO-8859-1; 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: Thu, 09 Aug 2007 16:58:27 -0000 Iain Hibbert wrote: > On Mon, 30 Jul 2007, Rui Paulo wrote: > >> Any comments? >> >> This is part of my SoC project. > > will this also work on NetBSD and OpenBSD? It compiles on NetBSD at least > (except for __FBSDID() being undefined - do you aim to import this to > FreeBSD codebase?), and the USB stack is similar enough that it should, I > guess.. I added a #ifdef __FreeBSD__. It should work on all BSDs and I used __FBSDID() because I was expecting to make this application available in the base system. > the manpage should probably say more clearly what is HCI mode? > > I guess the device will detach from the usb bus and reattach as ubt? > > "responsibility" > > also I think "his responsibility" is wrong. who is "he"? Better you should > say 'the system administrator' or 'the user' > > cool! All done, thanks! Regards. -- Rui Paulo