From owner-freebsd-usb@FreeBSD.ORG Sun Jul 16 15:54:55 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B15BD16A4DA for ; Sun, 16 Jul 2006 15:54:55 +0000 (UTC) (envelope-from Alex.Kovalenko@verizon.net) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65D5F43D46 for ; Sun, 16 Jul 2006 15:54:55 +0000 (GMT) (envelope-from Alex.Kovalenko@verizon.net) Received: from RabbitsDen ([70.21.160.49]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J2I003IS6VDI40D@vms040.mailsrvcs.net> for freebsd-usb@freebsd.org; Sun, 16 Jul 2006 10:54:50 -0500 (CDT) Date: Sun, 16 Jul 2006 11:54:27 -0400 From: "Alexandre \"Sunny\" Kovalenko" In-reply-to: <200607151747.21167.hselasky@c2i.net> To: Hans Petter Selasky Message-id: <1153065269.903.18.camel@RabbitsDen> MIME-version: 1.0 X-Mailer: Evolution 2.6.1 FreeBSD GNOME Team Port Content-type: text/plain; charset=iso-8859-5 Content-transfer-encoding: 8BIT References: <200607132025.09316.hselasky@c2i.net> <200607151012.52836.hselasky@c2i.net> <1152968057.922.5.camel@RabbitsDen> <200607151747.21167.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB bluetooth dongles X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Jul 2006 15:54:55 -0000 On Sat, 2006-07-15 at 17:47 +0200, Hans Petter Selasky wrote: > On Saturday 15 July 2006 14:54, Alexandre "Sunny" Kovalenko wrote: > > > > > > > > > On Thursday 13 July 2006 14:25, Hans Petter Selasky wrote: > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > Is there anyone on this list using USB Bluetooth dongles, > > > > > > > > > > that can test my new USB system and the USB Bluetooth > > > > > > > > > > driver? > > > At least on my system (-CURRENT as of July 9) sys/dev/usb/usb_port.h > > merely includes sys/dev/usb2/usb_port.h, > > Right, it should be "usb2/usb_port.h", sorry. > > > so I have patched that instead. > > Kernel build was successfull, but attempt to load ng_ubt module results > > in > > > > link_elf: symbol usbd_driver_load undefined > > That should not happen. Did you load "usb" first, and then "ng_ubt" ? I am using wrapper script which loads slew of USB related modules, including ng_ubt. I have assumed that your stack did not change module names. If names remained the same, then I have loaded USB module prior to ng_ubt. > > > This is the system built with configuration AVERATEC from my previous > > posts. > > > > I will try to build kernel with USB inside and see if that fares any > > better. Might not be until later today or tomorrow though... > > Ok. > > --HPS I have built kernel and is booted up successfully. Here is what I get upon insertion of the dongle #1 (D-Link DBT-120): usbd_fill_iface_data: invalid wMaxPacketSize, addr=126! usbd_fill_iface_data: invalid wMaxPacketSize, addr=126! >>>>>> ubt0: >>>>>> WARNING: attempt to net_add_domain(netgraph) after domainfinalize() ubt0:ubt_intr_read_complete:881: Invalid HCI event frame size, length=0, pktlen=7 ubt0:ubt_intr_read_complete:881: Invalid HCI event frame size, length=1, pktlen=7 ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command OGF=0x3, OCF=0x3. Timeout lines, offset with >>>>>> were present before I installed your USB stack and driver and did not seem to prevent dongle from working. Here is what I get upon insertion of the dongle #2 (3Com 3CREB96): usbd_fill_iface_data: invalid wMaxPacketSize, addr=126! usbd_fill_iface_data: invalid wMaxPacketSize, addr=126! ubt0: <3Com Bluetooth dongle, class 224/1, rev 1.10/1.15, addr 126> ubt0:ubt_intr_read_complete:881: Invalid HCI event frame size, length=0, pktlen=7 ubt0:ubt_intr_read_complete:881: Invalid HCI event frame size, length=0, pktlen=7 ubt0:ubt_intr_read_complete:881: Invalid HCI event frame size, length=0, pktlen=7 ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command OGF=0x3, OCF=0x3. Timeout Unfortunately, I have not used this dongle on this machine, so I have no dmesg for comparison. l2ping claims that network is down in both cases, which is, probably expected, given error messages above. -- Alexandre Kovalenko (Олександр Коваленко) From owner-freebsd-usb@FreeBSD.ORG Sun Jul 16 21:36:13 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CACB516A4E0 for ; Sun, 16 Jul 2006 21:36:13 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3619243D45 for ; Sun, 16 Jul 2006 21:36:12 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: gvlK0tOCzrqh9CPROFOFPw== X-Cloudmark-Score: 0.000000 [] Received: from [193.216.91.167] (HELO [10.0.0.249]) by mailfe04.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 234451899; Sun, 16 Jul 2006 23:36:06 +0200 From: Hans Petter Selasky To: "Alexandre \"Sunny\" Kovalenko" Date: Sun, 16 Jul 2006 23:36:13 +0200 User-Agent: KMail/1.7 References: <200607132025.09316.hselasky@c2i.net> <200607151747.21167.hselasky@c2i.net> <1153065269.903.18.camel@RabbitsDen> In-Reply-To: <1153065269.903.18.camel@RabbitsDen> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-5" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607162336.14619.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB bluetooth dongles X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Jul 2006 21:36:13 -0000 On Sunday 16 July 2006 17:54, Alexandre "Sunny" Kovalenko wrote: > On Sat, 2006-07-15 at 17:47 +0200, Hans Petter Selasky wrote: > > On Saturday 15 July 2006 14:54, Alexandre "Sunny" Kovalenko wrote: > > > > > > > > > > On Thursday 13 July 2006 14:25, Hans Petter Selasky wrote: > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > > Is there anyone on this list using USB Bluetooth > > > > > > > > > > > dongles, that can test my new USB system and the USB > > > > > > > > > > > Bluetooth driver? > > > Here is what I get upon insertion of the dongle #2 (3Com 3CREB96): > > usbd_fill_iface_data: invalid wMaxPacketSize, addr=126! > usbd_fill_iface_data: invalid wMaxPacketSize, addr=126! ^^^ this means that wMaxPacketsSize is zero - strange > ubt0: <3Com Bluetooth dongle, class 224/1, rev 1.10/1.15, addr 126> > ubt0:ubt_intr_read_complete:881: Invalid HCI event frame size, length=0, > pktlen=7 > ubt0:ubt_intr_read_complete:881: Invalid HCI event frame size, length=0, > pktlen=7 > ubt0:ubt_intr_read_complete:881: Invalid HCI event frame size, length=0, > pktlen=7 > ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command > OGF=0x3, OCF=0x3. Timeout I found a bug in the code. Could you try to do a "svn update". Then copy the following files to "/usr/src/sys/netgraph/bluetooth/drivers/ubt/" (for example) i4b/trunk/i4b/src/sys/netgraph/bluetooth/drivers/ubt/TODO i4b/trunk/i4b/src/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c i4b/trunk/i4b/src/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_var.h Then rebuild your kernel, and try again. --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Jul 17 01:48:45 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E62E916A4DD for ; Mon, 17 Jul 2006 01:48:45 +0000 (UTC) (envelope-from Alex.Kovalenko@verizon.net) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id A11EB43D49 for ; Mon, 17 Jul 2006 01:48:45 +0000 (GMT) (envelope-from Alex.Kovalenko@verizon.net) Received: from RabbitsDen ([70.21.160.49]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J2I00K7BYCK7QA1@vms040.mailsrvcs.net> for freebsd-usb@freebsd.org; Sun, 16 Jul 2006 20:48:21 -0500 (CDT) Date: Sun, 16 Jul 2006 21:47:59 -0400 From: "Alexandre \"Sunny\" Kovalenko" In-reply-to: <200607162336.14619.hselasky@c2i.net> To: Hans Petter Selasky Message-id: <1153100879.929.9.camel@RabbitsDen> MIME-version: 1.0 X-Mailer: Evolution 2.6.1 FreeBSD GNOME Team Port Content-type: text/plain; charset=iso-8859-5 Content-transfer-encoding: 8BIT References: <200607132025.09316.hselasky@c2i.net> <200607151747.21167.hselasky@c2i.net> <1153065269.903.18.camel@RabbitsDen> <200607162336.14619.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB bluetooth dongles X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2006 01:48:46 -0000 On Sun, 2006-07-16 at 23:36 +0200, Hans Petter Selasky wrote: > I found a bug in the code. Could you try to do a "svn update". Then copy the > following files to > "/usr/src/sys/netgraph/bluetooth/drivers/ubt/" (for example) > > i4b/trunk/i4b/src/sys/netgraph/bluetooth/drivers/ubt/TODO > i4b/trunk/i4b/src/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c > i4b/trunk/i4b/src/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_var.h > > Then rebuild your kernel, and try again. > > --HPS This worked with DBT-120 (I should be able to test with 3Com tomorrow). Bluetooth peripherals tested were Apple keyboard and Palm Tungsten E2. I still get following messages usbd_fill_iface_data: invalid wMaxPacketSize, addr=126! usbd_fill_iface_data: invalid wMaxPacketSize, addr=126! ubt0: upon insertion of the dongle, but they do not seem to prevent dongle from operating. All of this was done with the USB/Bluetooth stuff built into the kernel. I will go back to the modular kernel and see if I can figure out why did it complain. -- Alexandre Kovalenko (Олександр Коваленко) From owner-freebsd-usb@FreeBSD.ORG Mon Jul 17 11:03:14 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B747816A53B for ; Mon, 17 Jul 2006 11:03:14 +0000 (UTC) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5AF8943D55 for ; Mon, 17 Jul 2006 11:03:14 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k6HB3ERw071717 for ; Mon, 17 Jul 2006 11:03:14 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k6HB3C1U071713 for freebsd-usb@freebsd.org; Mon, 17 Jul 2006 11:03:12 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 17 Jul 2006 11:03:12 GMT Message-Id: <200607171103.k6HB3C1U071713@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2006 11:03:14 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2005/08/10] usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_ o [2006/01/11] usb/91629 usb usbd_abort_pipe() may result in infinite 2 problems total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2002/07/19] usb/40792 usb signals lead to data loss on device ugen o [2002/12/10] usb/46176 usb [panic] umass causes kernel panic if devi o [2002/12/19] i386/46371 usb USB controller cannot be initialized on I f [2003/08/13] usb/55555 usb [ums] system freezes with access to /dev/ o [2003/09/26] bin/57255 usb usbd and multi-function devices o [2004/01/30] usb/62088 usb [usb] Logitech Cordless/Optical Mouse not o [2004/02/03] usb/62309 usb [ugen] [panic] panic: ugen(4) driver o [2004/03/01] usb/63621 usb [usb] USB MemoryStick Reader stalls/crash o [2004/07/13] usb/69006 usb [patch] Apple Cinema Display hangs USB po o [2004/08/30] usb/71155 usb [usb] misbehaving usb-printer hangs proce o [2004/10/30] usb/73307 usb [panic] Kernel panics on USB disconnect o [2004/12/06] usb/74771 usb [umass] mounting write-protected umass de o [2005/01/01] usb/75705 usb [panic] da0 attach / Optio S4 (with backt o [2005/01/04] usb/75797 usb 5.3-STABLE(2005 1/4) detect USB headset, f [2005/01/13] usb/76204 usb panic while using usb attached modem o [2005/01/18] usb/76395 usb USB printer does not work, usbdevs says " f [2005/01/25] usb/76684 usb [hang] Toshiba PDR-M4 camera connected vi o [2005/02/06] usb/77184 usb kernel panic on USB device disconnect o [2005/02/09] usb/77294 usb ucom + ulpcom panic o [2005/02/23] usb/77940 usb [patch] [panic] insertion of usb keyboard f [2005/03/01] i386/78218 usb [kue] kue not detected on Sony PCG-F370 V o [2005/03/18] usb/78989 usb please add USB keyboard support to instal o [2005/03/22] usb/79140 usb WD Firewire/USB Combo hangs under load on o [2005/03/27] usb/79269 usb USB ohci da0 plug/unplug causes crashes a o [2005/03/27] usb/79287 usb UHCI hang after interrupt transfer o [2005/04/04] usb/79524 usb printing to Minolta PagePro 1[23]xxW via f [2005/04/07] usb/79656 usb [usb] RHSC interrupts lost o [2005/04/09] usb/79722 usb [usb] wrong alignments in ehci.h o [2005/04/17] usb/80040 usb [hang] Use of sound mixer causes system f f [2005/04/22] usb/80260 usb Travan USB tape drive fails to write o [2005/04/26] usb/80361 usb mounting of usb-stick fails o [2005/04/26] usb/80373 usb usb keyboard does not respond o [2005/05/09] usb/80829 usb possible panic when loading USB-modules o [2005/05/10] usb/80862 usb [patch] USB locking issues: missing some o [2005/05/20] usb/81308 usb [ugen] [patch] polling a ugen(4) control f [2005/06/13] usb/82198 usb Panic on attaching of ONKI N-338 USB MP3 f [2005/06/15] usb/82272 usb Can not recognize Casio camera EX-Z40 as o [2005/06/17] usb/82350 usb [usb] null pointer dereference in USB sta o [2005/06/22] usb/82520 usb Reboot when USL101 connected o [2005/06/23] usb/82569 usb [usb] USB mass storage plug/unplug causes o [2005/06/26] usb/82660 usb EHCI: I/O stuck in state 'physrd'/panic o [2005/07/15] usb/83504 usb [usb] SpeedTouch USB stop working on rece o [2005/07/16] usb/83563 usb [panic] Page Fault while detaching Mpman o [2005/07/18] usb/83677 usb [usb] usb controller often not detected ( o [2005/07/19] usb/83756 usb Microsoft Intellimouse Explorer 4.0A does o [2005/07/24] usb/83977 usb [ucom] [panic] ucom1: open bulk out error o [2005/07/30] usb/84326 usb [umass] Panic trying to connect SCSI tape o [2005/07/30] usb/84336 usb [usb] [reboot] instant system reboot when o [2005/08/15] usb/84936 usb install - usb keyboard not recognized o [2005/09/12] usb/86031 usb need support usb nic rt2500 in my 5.4 STA o [2005/09/30] usb/86767 usb [usb] bogus "slice starts beyond end of t o [2005/10/08] usb/87099 usb panic: ohci_add_done: addr 0x000d1bf0 not o [2005/10/16] usb/87519 usb [kbd] cannot install on USB-only system o [2005/10/17] usb/87565 usb [PATCH] Support for Vodaphone 3G/UMTS car o [2005/11/09] usb/88743 usb [hang] USB makes kernel hang at boot (reg o [2005/11/14] usb/88966 usb kldunload ucom.ko returns "Device busy" e o [2005/11/14] usb/89003 usb LaCie Firewire drive not properly support o [2005/11/18] usb/89218 usb flash disk o [2005/12/05] usb/89954 usb [usb] USB Disk driver race condition? f [2005/12/05] usb/89997 usb [umass] [panic] panic on iPod mini detach o [2005/12/09] usb/90162 usb [usb] [patch] Add support for the MS Wire o [2005/12/20] usb/90700 usb Kernel panic on connect/mount/use umass d o [2006/01/02] usb/91238 usb USB tape unit fails to write a second tap o [2006/01/03] usb/91263 usb [patch] USB quirk needed for Logitec USB o [2006/01/03] usb/91283 usb booting very slow with usb devices connec o [2006/01/09] usb/91538 usb Unable to print to EPSON CX3500 o [2006/01/17] usb/91906 usb FreeBSD hangs while booting with USB lega o [2006/01/20] usb/92052 usb usbd causes defunct process with busy fil o [2006/01/22] usb/92142 usb SET_ADDR_FAILED and SHORT_XFER errors fro o [2006/01/22] usb/92171 usb [panic] panic unplugging Vodafone Mobile o [2006/02/10] usb/93155 usb /dev/ulpt0: device busy USB printer doe o [2006/02/15] usb/93408 usb hw.acpi.cpu.cx_lowest=C3 on AMD Turion ca f [2006/02/17] usb/93496 usb USB2.0 umass stalls on VIA o [2006/02/21] usb/93640 usb device ehci causes interrupt storm on thi o [2006/02/25] usb/93828 usb ohci causes panic on boot (HP Pavillion d o [2006/02/28] usb/93949 usb ugen(4)-related repeatable kernel panic i o [2006/03/07] usb/94166 usb btx halted with a flashcard plugged o [2006/03/12] usb/94384 usb kernel panic with usb2 hardware o [2006/03/20] usb/94717 usb Reading from /dev/ulpt can break work of o [2006/03/20] usb/94742 usb [umass] [patch] umass driver does not rec o [2006/03/21] usb/94813 usb mounting write-protected umass device fre o [2006/03/24] usb/94897 usb Kernel Panic when cleanly unmounting USB o [2006/03/30] usb/95131 usb Boot/setup process does not accept key st o [2006/04/05] usb/95348 usb USB keyboard unplug causes noise on scree o [2006/04/10] usb/95562 usb Write Stress in USB Mass drive cause: [v o [2006/04/11] usb/95636 usb [boot] 5 minute delay at boot when using o [2006/04/20] usb/96120 usb USB mouse not always detected o [2006/04/23] usb/96224 usb [usb] mount_msdosfs cause page fault in s o [2006/04/28] usb/96457 usb fatback on umass = reboot o [2006/05/15] usb/97286 usb MS Wireless Intellimouse Explorer 2.0 doe o [2006/06/24] usb/99431 usb FreeBSD on MSI 6566E (Intel 845E motherbo 91 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2001/09/30] conf/30929 usb [usb] [patch] use usbd to initialize USB s [2001/12/09] usb/32653 usb Added patches to improve USB scanner supp o [2002/07/24] usb/40948 usb [usb] USB HP CDW8200 does not work f [2002/08/07] usb/41415 usb [usb] [patch] Some USB scanners cannot ta o [2003/02/16] usb/48342 usb [PATCH] usbd dynamic device list. o [2003/05/08] kern/51958 usb [usb] [patch] update for urio driver o [2003/05/10] kern/52026 usb [usb] feature request: umass driver suppo o [2003/06/08] usb/53025 usb [ugen] [patch] ugen does not allow O_NONB o [2003/08/28] usb/56095 usb [usb] [patch] QUIRK: Apacer Pen Drive fai o [2003/11/26] kern/59698 usb [kbd] [patch] Rework of ukbd HID to AT co f [2003/12/15] usb/60248 usb [patch] Problem with USB printer HP Laser o [2004/01/12] usb/61234 usb [usb] [patch] usbhidaction(1) doesn't sup o [2004/03/06] usb/63837 usb [uhid] [patch] USB: hid_is_collection() o o [2004/04/19] kern/65769 usb [usb] Call to tcflush(x, TCIFLUSH) stops o [2004/05/11] kern/66547 usb [usb] Palm Tungsten T USB does not initia o [2004/06/23] usb/68232 usb [ugen] [patch] ugen(4) isochronous handli o [2004/06/27] usb/68412 usb [usb] [patch] QUIRK: Philips KEY013 USB M o [2004/08/16] usb/70523 usb [usb] [patch] umct sending/receiving wron o [2004/08/25] usb/70942 usb [usb] Genius Wireless USB mouse: moused d o [2004/09/06] usb/71416 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/06] usb/71417 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/07] usb/71455 usb [usb] Slow USB umass performance of 5.3 o [2004/09/11] usb/71605 usb [umass] [patch] umass doesn't recognize m o [2004/10/06] usb/72380 usb [usb] USB does not work [dual Celeron Abi o [2004/10/15] usb/72732 usb [patch] Kyocera 7135 quirk. o [2004/10/15] usb/72733 usb Kyocera 7135 Palm OS connection problem. o [2004/10/23] usb/73056 usb [usb] Sun Microsystems Type 6 USB mouse n f [2004/11/05] usb/73553 usb [usb] Microsoft USB Internet Keyboard not o [2004/11/21] usb/74211 usb USB flash drive causes CAM status 0x4 on f [2004/11/25] usb/74358 usb [umass] unplugging at boot time an umass o [2004/11/27] usb/74453 usb Q-lity CD-RW USB ECW-043 (ScanLogic SL11R o [2004/11/30] usb/74557 usb imation 500mb usb key can only be written o [2004/12/02] usb/74609 usb [usb] [patch] allowing cdma modems to wor o [2004/12/08] usb/74849 usb [usb] [patch] Samsung SPH-i500 does not a o [2004/12/09] usb/74880 usb [usb] [patch] Samsung N400 cellphone/acm o [2005/01/04] usb/75800 usb ucom1: init failed STALLED error in time o [2005/01/07] usb/75928 usb Cytronix SmartMedia card (SMC) reader has o [2005/01/19] usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4 o [2005/01/27] usb/76732 usb Mouse problems with USB KVM Switch f [2005/03/03] usb/78371 usb Philips Wearable Audio Player (128) fails f [2005/03/18] usb/78984 usb Creative MUVO umass failure o [2005/04/09] usb/79723 usb [usb] prepare for high speed isochronous o [2005/04/09] usb/79725 usb [usb] [patch] USB device speed is not dou o [2005/04/14] usb/79893 usb [umass] [patch] new usbdevs/umass quirks o [2005/04/16] usb/80010 usb [aue] [patch] add support for the AEI USB f [2005/04/27] usb/80420 usb atapicam stops iPod functionality f [2005/05/08] usb/80773 usb "usbd_get_string()" could have taken a le o [2005/05/08] usb/80774 usb have "usbd_find_desc" in line with the ot o [2005/05/08] usb/80776 usb [udav] UDAV device driver shouldn't use u o [2005/05/08] usb/80777 usb usb_rem_task() should wait for callback t o [2005/05/10] usb/80854 usb suggestion for new iface-no-probe mechani o [2005/05/12] usb/80935 usb uvisor.c is not work with CLIE TH55. o [2005/05/15] usb/81073 usb [umass] [patch] fix umass NO_GETMAXLUN qu o [2005/05/18] usb/81191 usb Support for Curitel HX-550C USB modem to f [2005/05/29] usb/81621 usb external hd hangs under load on ehci o [2005/06/20] usb/82436 usb [patch] USL101 Host-to-Host bridge suppor o [2005/07/05] usb/83022 usb ALI USB 2.0 EHCI Controller is not detect o [2005/07/21] usb/83863 usb Communication problem between opensc/open o [2005/08/18] usb/85067 usb Cannot attach ScanJet 4300C to usb device o [2005/09/11] usb/85992 usb [uhid] [patch] USB stops working when try o [2005/09/16] usb/86195 usb [patch] allow USB Ethernet Adaptor "ELECO o [2005/09/18] usb/86298 usb Known good USB mouse won't work with corr o [2005/09/21] usb/86438 usb Fix for non-working iPod over USB is in N o [2005/10/10] usb/87224 usb Cannot mount USB Zip750 o [2005/10/19] usb/87648 usb [mouse] Logitech USB-optical mouse proble o [2005/11/02] usb/88408 usb axe0 read PHY failed o [2005/11/13] usb/88939 usb Fix cheapy Myson USB-IDE adapter f [2005/11/15] usb/89087 usb usb external harddrive hangs with BBB res f [2006/01/01] usb/91191 usb HP LaserJet 1020 (USB printer) not recogn f [2006/01/08] usb/91516 usb [umass] umass0 problems, with Freecom Cla o [2006/01/09] usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone o [2006/01/15] usb/91811 usb Compact Flash in HP Photosmart 2610 retur o [2006/01/17] usb/91896 usb Serial Number of USB Memory Sticks is not o [2006/01/25] usb/92306 usb [quirk] [patch] Support for iRiver U10 US o [2006/01/27] usb/92403 usb [uplcom] uplcom.c needs new entry for 4.0 f [2006/01/28] usb/92462 usb [patch] Add support for Epson CX3500/3600 o [2006/02/05] usb/92852 usb Vertical scroll not working properly on A f [2006/02/08] usb/93011 usb HP ScanJet 6200C & uscanner problem o [2006/02/15] usb/93389 usb Digital Camera Pentax S60 don't work o [2006/02/17] usb/93484 usb [umass] [patch] QUIRK: Toshiba TransMemor o [2006/02/26] usb/93872 usb [patch] SCSI quirk required for ELTA 8061 o [2006/03/06] usb/94132 usb USB QUIRK for CENTURY EX35QUAT disk enclo f [2006/03/06] usb/94147 usb doesn't recognise my USB keyboard o [2006/03/06] usb/94148 usb Make if_cdce work with ARM linux handheld o [2006/03/11] usb/94311 usb [ugen][PATCH] allow interrupt IN transact o [2006/03/14] usb/94439 usb [patch] Add support for JNC MP3 Player o [2006/03/26] usb/94946 usb [uhub][patch] code dynamic status size fo o [2006/03/28] usb/95037 usb USB disk didnt recognized on hot-plug. o [2006/03/31] usb/95173 usb [usb] cannot mount external usb harddisk o [2006/04/02] usb/95241 usb Patch to add USB ID for OEM Pharos 360 GP p [2006/04/11] usb/95616 usb [patch] Add support for USB Acer 640BT sc o [2006/04/15] usb/95803 usb Add support for AnyData ADU-E100H o [2006/04/15] usb/95805 usb Add Support for Siemens ES75 modem o [2006/04/26] usb/96381 usb [patch] add a quirk table entry for a fla o [2006/04/30] usb/96546 usb [usb] [patch] Add support (quirk) for Eas o [2006/05/01] usb/96599 usb [patch] [usb] Sony Handycam DCR-HC32E mem o [2006/05/03] usb/96714 usb Update uvisor to support the Fossil Abacu o [2006/05/07] usb/96901 usb [patch] Add support for X-Micro Flash Dis o [2006/05/12] usb/97175 usb USB cardreader hangs system o [2006/05/18] usb/97472 usb [patch] add support for Olympus C150,D390 o [2006/05/20] usb/97512 usb add Motorola A41x/V32x USB phone support o [2006/05/26] usb/97948 usb [patch] CMOTECH CDMA USB modem support o [2006/06/02] usb/98343 usb BBB reset failed errors with Creative Muv o [2006/06/02] usb/98385 usb [patch] add support for libretto DVD Dock o [2006/06/08] usb/98713 usb QUIRK: Rekam USB Camera o [2006/06/24] usb/99419 usb external usb harddrive slow to accept o [2006/06/27] usb/99538 usb [kbd] while using USB keyboard default pa o [2006/07/07] usb/99887 usb Archos Multimedia Jukebox doesn't work 108 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Jul 17 18:08:03 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A01116A4E5 for ; Mon, 17 Jul 2006 18:08:03 +0000 (UTC) (envelope-from niki@totalterror.net) Received: from mail.interbgc.com (mx03.cablebg.net [217.9.224.230]) by mx1.FreeBSD.org (Postfix) with SMTP id BB82B43D4C for ; Mon, 17 Jul 2006 18:07:58 +0000 (GMT) (envelope-from niki@totalterror.net) Received: (qmail 933 invoked from network); 17 Jul 2006 18:07:56 -0000 Received: from niki@totalterror.net by keeper.interbgc.com by uid 1002 with qmail-scanner-1.14 (uvscan: v4.2.40/v4374. spamassassin: 2.63. Clear:SA:0(0.1/8.0):. Processed in 1.275535 secs); 17 Jul 2006 18:07:56 -0000 X-Spam-Status: No, hits=0.1 required=8.0 Received: from niked.ddns.cablebg.net (HELO tormentor.totalterror.net) (85.130.14.211) by mx03.interbgc.com with SMTP; 17 Jul 2006 18:07:54 -0000 Received: (qmail 86977 invoked from network); 17 Jul 2006 18:07:54 -0000 Received: from unknown (HELO ?10.0.0.3?) (10.0.0.3) by tormentor.totalterror.net with SMTP; 17 Jul 2006 18:07:54 -0000 Message-ID: <44BBD1F9.5000804@totalterror.net> Date: Mon, 17 Jul 2006 21:07:53 +0300 From: Niki Denev User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: USB bluetooth dongles X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2006 18:08:03 -0000 Hello, i've installed the ubt driver from the subversion repo at turbocat.com, and now my BT dongle seems to work, but with some strange side effects. For example i can connect to my GPS receiver properly, and get output (rfcomm_spp -a gps -c 1) but when i'm trying to issue a inquiry command with discoverable devices nearby i get : vaio# hccontrol -n ubt0hci Inquiry ubt0:ubt_intr_read_complete:883: Invalid HCI event frame size, length=15, pktlen=17 and nothing is discovered. Also when exiting from rfcomm_spp with ctrl-c i get this : ng_btsocket_rfcomm_receive_uih: Got UIH for dlci=2 in invalid state=5, flags=0x3 This is FreeBSD 6.1-STABLE running on Sony VAIO PCG-U3. P.S.: I have also working ural(4) device with the new usb stack. It seems more reliable, because before often after a few insers/removals i was getting instant reboots. The only thing is the many "ural_newstate: cannot call usb_rem_task...." messages. P.S.2: Also i seem to get strange output from usbdevs with the new usb stack. I get "I/O Error" message for every possible USB address. I think the problem is that the usb subsystem returns EINVAL where it can return ENXIO to inform the caller that there is no such device. I tried this patch that seems to work ok for me, but i'm not sure if it is completely correct. The patch : --- sys/dev/usb2/_usb.c Wed Jun 21 18:06:23 2006 +++ /usr/src/sys/dev/usb2/_usb.c Mon Jul 17 20:17:11 2006 @@ -858,11 +858,15 @@ struct usb_device_info *di = (void *)data; int addr = di->udi_addr; - if((addr < 1) || - (addr >= USB_MAX_DEVICES) || - (bus->devices[addr] == 0)) + if((addr < 1) || (addr >= USB_MAX_DEVICES)) { error = EINVAL; + goto done; + } + + if(bus->devices[addr] == 0) + { + error = ENXIO; goto done; } or : http://bg.freebsd.org/~ndenev/usb2patch.txt Regards, Niki Denev From owner-freebsd-usb@FreeBSD.ORG Mon Jul 17 19:07:14 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FD6916A4E0 for ; Mon, 17 Jul 2006 19:07:14 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe09.swip.net [212.247.155.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 742B643D46 for ; Mon, 17 Jul 2006 19:07:13 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: gvlK0tOCzrqh9CPROFOFPw== X-Cloudmark-Score: 0.000000 [] Received: from [193.216.121.190] (HELO [10.0.0.249]) by mailfe09.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 67494764; Mon, 17 Jul 2006 21:07:10 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 17 Jul 2006 21:07:14 +0200 User-Agent: KMail/1.7 References: <44BBD1F9.5000804@totalterror.net> In-Reply-To: <44BBD1F9.5000804@totalterror.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607172107.18141.hselasky@c2i.net> Cc: Subject: Re: USB bluetooth dongles X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2006 19:07:14 -0000 Hi Niki, On Monday 17 July 2006 20:07, Niki Denev wrote: > Hello, > > i've installed the ubt driver from the subversion repo at turbocat.com, > and now my BT dongle seems to work, but with some strange side effects. > > For example i can connect to my GPS receiver properly, and get output > (rfcomm_spp -a gps -c 1) but when i'm trying to issue a inquiry command > with discoverable devices nearby i get : > > vaio# hccontrol -n ubt0hci Inquiry > ubt0:ubt_intr_read_complete:883: Invalid HCI event frame size, length=15, > pktlen=17 Looks like there is one byte missing in the packet. Could you try the following: Edit "/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c" and change ".bufsize = 0," to ".bufsize = 256 + 16,", in the following piece of code: [2] = { .type = UE_INTERRUPT, .endpoint = -1, /* any */ .direction = UE_DIR_IN, .flags = USBD_SHORT_XFER_OK, .bufsize = 0, /* use wMaxPacketSize */ .callback = &ubt_intr_read_callback, }, > > and nothing is discovered. > Also when exiting from rfcomm_spp with ctrl-c i get this : > > ng_btsocket_rfcomm_receive_uih: Got UIH for dlci=2 in invalid state=5, > flags=0x3 > > This is FreeBSD 6.1-STABLE running on Sony VAIO PCG-U3. > > P.S.: I have also working ural(4) device with the new usb stack. > It seems more reliable, because before often after a few insers/removals > i was getting instant reboots. The only thing is the many "ural_newstate: > cannot call usb_rem_task...." messages. > I haven't got to the point of rewriting the ural driver yet. You can expect some improvements coming. > P.S.2: Also i seem to get strange output from usbdevs with the new usb > stack. I get "I/O Error" message for every possible USB address. I think > the problem is that the usb subsystem returns EINVAL where it can return > ENXIO to inform the caller that there is no such device. > I tried this patch that seems to work ok for me, but i'm not sure if it is > completely correct. I have commited your patch to SVN and p4. --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Jul 17 19:47:11 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3694A16A4E2 for ; Mon, 17 Jul 2006 19:47:11 +0000 (UTC) (envelope-from niki@totalterror.net) Received: from mail.interbgc.com (mx04.cablebg.net [217.9.224.232]) by mx1.FreeBSD.org (Postfix) with SMTP id 3364543D46 for ; Mon, 17 Jul 2006 19:47:09 +0000 (GMT) (envelope-from niki@totalterror.net) Received: (qmail 38851 invoked from network); 17 Jul 2006 19:47:07 -0000 Received: from niki@totalterror.net by keeper.interbgc.com by uid 1002 with qmail-scanner-1.14 (uvscan: v4.2.40/v4374. spamassassin: 2.63. Clear:SA:0(0.1/8.0):. Processed in 0.571033 secs); 17 Jul 2006 19:47:07 -0000 X-Spam-Status: No, hits=0.1 required=8.0 Received: from niked.ddns.cablebg.net (HELO tormentor.totalterror.net) (85.130.14.211) by mx04.interbgc.com with SMTP; 17 Jul 2006 19:47:06 -0000 Received: (qmail 98860 invoked from network); 17 Jul 2006 19:47:03 -0000 Received: from unknown (HELO ?10.0.0.3?) (10.0.0.3) by tormentor.totalterror.net with SMTP; 17 Jul 2006 19:47:03 -0000 Message-ID: <44BBE936.4050801@totalterror.net> Date: Mon, 17 Jul 2006 22:47:02 +0300 From: Niki Denev User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Hans Petter Selasky References: <44BBD1F9.5000804@totalterror.net> <200607172107.18141.hselasky@c2i.net> In-Reply-To: <200607172107.18141.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: USB bluetooth dongles X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2006 19:47:11 -0000 Hans Petter Selasky wrote: > Looks like there is one byte missing in the packet. Could you try the > following: Edit "/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c" and change > ".bufsize = 0," to ".bufsize = 256 + 16,", in the following piece of code: [...] Now i can issue inquiry command properly, and all devices are discovered. The only thing that looks different to me compared to the old stack is the "usbd_fill_iface_data: invalid wMaxPacketSize" message, that others have also reported, but i think it's safe to ignore them for now? I think the check that generates the message does not exist in the code of the old stack. > I haven't got to the point of rewriting the ural driver yet. You can expect > some improvements coming. That's great, i'll be happy to help. I have ural(4) hardware and can do tests if needed. > I have commited your patch to SVN and p4. > > --HPS Thanks! Regards, Niki Denev From owner-freebsd-usb@FreeBSD.ORG Mon Jul 17 20:23:03 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 29B1B16A4DF for ; Mon, 17 Jul 2006 20:23:03 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81BDA43D46 for ; Mon, 17 Jul 2006 20:23:02 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: gvlK0tOCzrqh9CPROFOFPw== X-Cloudmark-Score: 0.000000 [] Received: from [193.216.90.86] (HELO [10.0.0.249]) by mailfe02.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 238793534; Mon, 17 Jul 2006 22:22:59 +0200 From: Hans Petter Selasky To: Niki Denev Date: Mon, 17 Jul 2006 22:23:06 +0200 User-Agent: KMail/1.7 References: <44BBD1F9.5000804@totalterror.net> <200607172107.18141.hselasky@c2i.net> <44BBE936.4050801@totalterror.net> In-Reply-To: <44BBE936.4050801@totalterror.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607172223.07324.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB bluetooth dongles X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2006 20:23:03 -0000 On Monday 17 July 2006 21:47, Niki Denev wrote: > Hans Petter Selasky wrote: > > Looks like there is one byte missing in the packet. Could you try the > > following: Edit "/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c" and change > > ".bufsize = 0," to ".bufsize = 256 + 16,", in the following piece of > > code: > > [...] > > Now i can issue inquiry command properly, and all devices are discovered. Thanks for testing. > > The only thing that looks different to me compared to the old stack > is the "usbd_fill_iface_data: invalid wMaxPacketSize" message, that others > have also reported, but i think it's safe to ignore them for now? Yes, there is no danger in the message, but apparently some descriptors are invalid. Could you have made your device attach as "ugen", by not loading "ng_ubt". Then install the port at "/usr/ports/sysutils/udesc_dump", run "udesc_dump" on your device, and post the output? > I think the check that generates the message does not exist in > the code of the old stack. Right. > > > I haven't got to the point of rewriting the ural driver yet. You can > > expect some improvements coming. > > That's great, i'll be happy to help. I have ural(4) hardware and can do > tests if needed. > I'll post some messages to this list when the rewrite is ready for testing. --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Jul 17 20:38:50 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 98BA816A4DA for ; Mon, 17 Jul 2006 20:38:50 +0000 (UTC) (envelope-from niki@totalterror.net) Received: from mail.interbgc.com (mx04.cablebg.net [217.9.224.232]) by mx1.FreeBSD.org (Postfix) with SMTP id 8D9E043D45 for ; Mon, 17 Jul 2006 20:38:48 +0000 (GMT) (envelope-from niki@totalterror.net) Received: (qmail 69962 invoked from network); 17 Jul 2006 20:38:47 -0000 Received: from niki@totalterror.net by keeper.interbgc.com by uid 1002 with qmail-scanner-1.14 (uvscan: v4.2.40/v4374. spamassassin: 2.63. Clear:SA:0(0.1/8.0):. Processed in 1.119336 secs); 17 Jul 2006 20:38:47 -0000 X-Spam-Status: No, hits=0.1 required=8.0 Received: from niked.ddns.cablebg.net (HELO tormentor.totalterror.net) (85.130.14.211) by mx04.interbgc.com with SMTP; 17 Jul 2006 20:38:46 -0000 Received: (qmail 5448 invoked from network); 17 Jul 2006 20:38:42 -0000 Received: from unknown (HELO ?10.0.0.3?) (10.0.0.3) by tormentor.totalterror.net with SMTP; 17 Jul 2006 20:38:42 -0000 Message-ID: <44BBF552.3070207@totalterror.net> Date: Mon, 17 Jul 2006 23:38:42 +0300 From: Niki Denev User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Hans Petter Selasky References: <44BBD1F9.5000804@totalterror.net> <200607172107.18141.hselasky@c2i.net> <44BBE936.4050801@totalterror.net> <200607172223.07324.hselasky@c2i.net> In-Reply-To: <200607172223.07324.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: USB bluetooth dongles X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2006 20:38:50 -0000 Hans Petter Selasky wrote: > Yes, there is no danger in the message, but apparently some descriptors are > invalid. Could you have made your device attach as "ugen", by not loading > "ng_ubt". Then install the port at "/usr/ports/sysutils/udesc_dump", run > "udesc_dump" on your device, and post the output? Here it is : http://bg.freebsd.org/~ndenev/udescdump-bt.txt Regards, Niki Denev From owner-freebsd-usb@FreeBSD.ORG Tue Jul 18 07:53:18 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D94B16A4DE for ; Tue, 18 Jul 2006 07:53:18 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.tele2.se [212.247.155.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 772F843D45 for ; Tue, 18 Jul 2006 07:53:16 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: gvlK0tOCzrqh9CPROFOFPw== X-Cloudmark-Score: 0.000000 [] Received: from [193.216.91.141] (HELO [10.0.0.249]) by mailfe11.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 67815230; Tue, 18 Jul 2006 09:53:15 +0200 From: Hans Petter Selasky To: Niki Denev Date: Tue, 18 Jul 2006 09:53:21 +0200 User-Agent: KMail/1.7 References: <44BBD1F9.5000804@totalterror.net> <200607172223.07324.hselasky@c2i.net> <44BBF552.3070207@totalterror.net> In-Reply-To: <44BBF552.3070207@totalterror.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607180953.22561.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB bluetooth dongles X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jul 2006 07:53:18 -0000 On Monday 17 July 2006 22:38, Niki Denev wrote: > Hans Petter Selasky wrote: > > Yes, there is no danger in the message, but apparently some descriptors > > are invalid. Could you have made your device attach as "ugen", by not > > loading "ng_ubt". Then install the port at > > "/usr/ports/sysutils/udesc_dump", run "udesc_dump" on your device, and > > post the output? > > Here it is : http://bg.freebsd.org/~ndenev/udescdump-bt.txt > Thanks. I now see that the first isochronous descriptor is not usable. I have updated the "ng_ubt" code to search for the isochronous descriptor with the largest "wMaxPacketSize". --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Jul 21 19:46:28 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B471D16A4DE for ; Fri, 21 Jul 2006 19:46:28 +0000 (UTC) (envelope-from lists@nabble.com) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CB9E43D46 for ; Fri, 21 Jul 2006 19:46:28 +0000 (GMT) (envelope-from lists@nabble.com) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1G40xA-0000Gz-7c for freebsd-usb@freebsd.org; Fri, 21 Jul 2006 12:46:28 -0700 Message-ID: <5439254.post@talk.nabble.com> Date: Fri, 21 Jul 2006 12:46:28 -0700 (PDT) From: rnilsson To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: robert@nilssonstudios.com X-Nabble-From: rnilsson Subject: libusb/ugen interrupt read question X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jul 2006 19:46:28 -0000 I am working on porting owfs over to FreeBSD, and I've run into a strange issue when I'm trying to read the status of a device (DS2490 http://pdfserv.maxim-ic.com/en/ds/DS2490.pdf) on EP 1, an interrupt IN endpoint. One of the routines (a data request) writes data to ep 2, sends a control message that indicates a read from bus operation, and then gets status on EP 1, waiting for a register to reflect the proper number of bytes available for read. EP 1 can return up to 32 bytes of data, but will only provide 16 bytes unless there is an error condition. On Linux this works correctly. Each call to read EP1 will return when there is new data available from the device. On the FreeBSD side, from the time a control message is issued, status messages on EP1 start queuing up. Each read will return 32 bytes of data (or more if I make the buffer larger) until I exhaust the buffer - the only way I can get only the 16 expected. This can take anywhere from 5 to 50 loops reading EP1 to clear out the data, depending on the time between the control command and the read. I thought the USB device (INTERRUPT mode endpoint) was supposed to wait until data was requested to send it's information. This is running through libusb, and I've turned on debug in the ugen driver to make sure it really is interrupt driven. Is there some setting that causes this type of queing of interrupt data? I've seen other messages about the timeout not working with interrupt reads, so is this device related? Where can I go from here? Rob. -- View this message in context: http://www.nabble.com/libusb-ugen-interrupt-read-question-tf1981915.html#a5439254 Sent from the freebsd-usb forum at Nabble.com. From owner-freebsd-usb@FreeBSD.ORG Sat Jul 22 04:52:34 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6331C16A4DA for ; Sat, 22 Jul 2006 04:52:34 +0000 (UTC) (envelope-from robert@nilssonstudios.com) Received: from smtp102.sbc.mail.mud.yahoo.com (smtp102.sbc.mail.mud.yahoo.com [68.142.198.201]) by mx1.FreeBSD.org (Postfix) with SMTP id BF76F43D68 for ; Sat, 22 Jul 2006 04:52:27 +0000 (GMT) (envelope-from robert@nilssonstudios.com) Received: (qmail 97097 invoked from network); 22 Jul 2006 04:52:27 -0000 Received: from unknown (HELO ?10.0.1.150?) (rnilsson@sbcglobal.net@68.88.194.47 with plain) by smtp102.sbc.mail.mud.yahoo.com with SMTP; 22 Jul 2006 04:52:26 -0000 Mime-Version: 1.0 (Apple Message framework v752.2) To: freebsd-usb@freebsd.org Message-Id: <61566738-B90E-4C80-B596-50912DC9872B@nilssonstudios.com> From: Robert Nilsson Date: Fri, 21 Jul 2006 23:52:04 -0500 X-Mailer: Apple Mail (2.752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: [PATCH] libusb usb_clear_halt implementation X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jul 2006 04:52:34 -0000 In order to get a device working correctly after a program restart I had to use this function. It's a pretty simple change. --- libusb-0.1.12/bsd.c Fri Mar 3 20:52:46 2006 +++ libusb-0.1.12.rob/bsd.c Fri Jul 21 22:47:55 2006 @@ -623,9 +623,21 @@ int usb_clear_halt(usb_dev_handle *dev, unsigned int ep) { - /* Not yet done, because I haven't needed it. */ + int ret; + struct usb_ctl_request ctl_req; - USB_ERROR_STR(-ENOSYS, "usb_clear_halt called, unimplemented on BSD"); + ctl_req.ucr_addr = 0; // Not used for this type of request + ctl_req.ucr_request.bmRequestType = UT_WRITE_ENDPOINT; + ctl_req.ucr_request.bRequest = UR_CLEAR_FEATURE; + USETW(ctl_req.ucr_request.wValue, UF_ENDPOINT_HALT); + USETW(ctl_req.ucr_request.wIndex, ep); + USETW(ctl_req.ucr_request.wLength, 0); + ctl_req.ucr_flags = 0; + + if ((ret = ioctl(dev->fd, USB_DO_REQUEST, &ctl_req)) < 0) + USB_ERROR_STR(-errno, "clear_halt: failed for %d", ep); + + return ret; } int usb_reset(usb_dev_handle *dev) Rob. From owner-freebsd-usb@FreeBSD.ORG Sat Jul 22 07:08:45 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9018316A4DA for ; Sat, 22 Jul 2006 07:08:45 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe13.swip.net [212.247.155.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BBA543D46 for ; Sat, 22 Jul 2006 07:08:39 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: gvlK0tOCzrqh9CPROFOFPw== X-Cloudmark-Score: 0.000000 [] Received: from [193.217.36.161] (HELO [10.0.0.249]) by mailfe13.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 70516951; Sat, 22 Jul 2006 09:08:37 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sat, 22 Jul 2006 09:08:44 +0200 User-Agent: KMail/1.7 References: <5439254.post@talk.nabble.com> In-Reply-To: <5439254.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607220908.45131.hselasky@c2i.net> Cc: Subject: Re: libusb/ugen interrupt read question X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jul 2006 07:08:45 -0000 On Friday 21 July 2006 21:46, rnilsson wrote: > I am working on porting owfs over to FreeBSD, and I've run into a strange > issue when I'm trying to read the status of a device (DS2490 > http://pdfserv.maxim-ic.com/en/ds/DS2490.pdf) on EP 1, an interrupt IN > endpoint. > > One of the routines (a data request) writes data to ep 2, sends a control > message that indicates a read from bus operation, and then gets status on > EP 1, waiting for a register to reflect the proper number of bytes > available for read. EP 1 can return up to 32 bytes of data, but will only > provide 16 bytes unless there is an error condition. > > On Linux this works correctly. Each call to read EP1 will return when > there is new data available from the device. On the FreeBSD side, from the > time a control message is issued, status messages on EP1 start queuing up. > Each read will return 32 bytes of data (or more if I make the buffer > larger) until I exhaust the buffer - the only way I can get only the 16 > expected. This can take anywhere from 5 to 50 loops reading EP1 to clear > out the data, depending on the time between the control command and the > read. > > I thought the USB device (INTERRUPT mode endpoint) was supposed to wait > until data was requested to send it's information. This is running through > libusb, and I've turned on debug in the ugen driver to make sure it really > is interrupt driven. > > Is there some setting that causes this type of queing of interrupt data? > I've seen other messages about the timeout not working with interrupt > reads, so is this device related? > Where can I go from here? The buffer you allocate should be 32 bytes long. Then you must use the flag USBD_SHORT_XFER_OK. Then you check the "xfer->actlen" after that the transfer has happened. Isn't this 16 bytes ? --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Jul 22 08:02:09 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6041916A4DF for ; Sat, 22 Jul 2006 08:02:09 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail05.syd.optusnet.com.au (mail05.syd.optusnet.com.au [211.29.132.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAD8843D55 for ; Sat, 22 Jul 2006 08:02:08 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail05.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k6M826kR002946 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 22 Jul 2006 18:02:06 +1000 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.6/8.13.6) with ESMTP id k6M825sq011285; Sat, 22 Jul 2006 18:02:05 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.6/8.13.6/Submit) id k6M8243l011284; Sat, 22 Jul 2006 18:02:05 +1000 (EST) (envelope-from peter) Date: Sat, 22 Jul 2006 18:02:04 +1000 From: Peter Jeremy To: Robert Nilsson Message-ID: <20060722080204.GF728@turion.vk2pj.dyndns.org> References: <61566738-B90E-4C80-B596-50912DC9872B@nilssonstudios.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QWpDgw58+k1mSFBj" Content-Disposition: inline In-Reply-To: <61566738-B90E-4C80-B596-50912DC9872B@nilssonstudios.com> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.11 Cc: freebsd-usb@freebsd.org Subject: Re: [PATCH] libusb usb_clear_halt implementation X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jul 2006 08:02:09 -0000 --QWpDgw58+k1mSFBj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, 2006-Jul-21 23:52:04 -0500, Robert Nilsson wrote: >In order to get a device working correctly after a program restart I =20 >had to use this function. It's a pretty simple change. You might like to send-pr this change so it doesn't get mislaid. --=20 Peter Jeremy --QWpDgw58+k1mSFBj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFEwdt8/opHv/APuIcRAjX9AJwPVbNH+ov9ddiiuTE39jLkxrhbHACgjh6i nMuO06h07ukUTLIXlRiPwSQ= =q2vt -----END PGP SIGNATURE----- --QWpDgw58+k1mSFBj-- From owner-freebsd-usb@FreeBSD.ORG Sat Jul 22 15:31:30 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D7D916A4DD for ; Sat, 22 Jul 2006 15:31:30 +0000 (UTC) (envelope-from robert@nilssonstudios.com) Received: from smtp104.sbc.mail.mud.yahoo.com (smtp104.sbc.mail.mud.yahoo.com [68.142.198.203]) by mx1.FreeBSD.org (Postfix) with SMTP id 1053A43D45 for ; Sat, 22 Jul 2006 15:31:29 +0000 (GMT) (envelope-from robert@nilssonstudios.com) Received: (qmail 11777 invoked from network); 22 Jul 2006 15:31:29 -0000 Received: from unknown (HELO ?10.0.1.150?) (rnilsson@sbcglobal.net@68.88.194.47 with plain) by smtp104.sbc.mail.mud.yahoo.com with SMTP; 22 Jul 2006 15:31:29 -0000 In-Reply-To: <200607220908.45131.hselasky@c2i.net> References: <5439254.post@talk.nabble.com> <200607220908.45131.hselasky@c2i.net> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <5AD64714-BC00-4870-9B39-96FBF078FEBC@nilssonstudios.com> Content-Transfer-Encoding: 7bit From: Robert Nilsson Date: Sat, 22 Jul 2006 10:31:05 -0500 To: Hans Petter Selasky X-Mailer: Apple Mail (2.752.2) Cc: freebsd-usb@freebsd.org Subject: Re: libusb/ugen interrupt read question X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jul 2006 15:31:30 -0000 USBD_SHORT_XFER_OK is being set by libusb. The problem is that input data is queuing up in the background (from what I can tell). I have a buffer full of status messages. What I need is a way to stop the polling in the background from queuing the messages. With debugging on, ugen shows that it gets 32 characters and is in sync with my app until finally there is a 16 byte read. With usb debugging on I can see a constant stream of 16 byte reads on EP1 (see below), per the polling interval. For a mouse or keyboard this would be ideal, but in my case I only want the current reading. Rob. Jul 22 09:05:31 bsdtest kernel: usb_transfer_complete: pipe=0xc3c97900 xfer=0xc3c19400 status=0 actlen=16 Jul 22 09:05:31 bsdtest kernel: usb_transfer_complete: repeat=1 new head=0xc3c19400 Jul 22 09:05:31 bsdtest kernel: usb_transfer_complete: pipe=0xc3c97900 xfer=0xc3c19400 status=0 actlen=16 Jul 22 09:05:31 bsdtest kernel: usb_transfer_complete: repeat=1 new head=0xc3c19400 Jul 22 09:05:31 bsdtest kernel: usb_transfer_complete: pipe=0xc3c97900 xfer=0xc3c19400 status=0 actlen=16 Jul 22 09:05:31 bsdtest kernel: usb_transfer_complete: repeat=1 new head=0xc3c19400 Rob. On Jul 22, 2006, at 2:08 AM, Hans Petter Selasky wrote: > On Friday 21 July 2006 21:46, rnilsson wrote: >> I am working on porting owfs over to FreeBSD, and I've run into a >> strange >> issue when I'm trying to read the status of a device (DS2490 >> http://pdfserv.maxim-ic.com/en/ds/DS2490.pdf) on EP 1, an >> interrupt IN >> endpoint. >> >> One of the routines (a data request) writes data to ep 2, sends a >> control >> message that indicates a read from bus operation, and then gets >> status on >> EP 1, waiting for a register to reflect the proper number of bytes >> available for read. EP 1 can return up to 32 bytes of data, but >> will only >> provide 16 bytes unless there is an error condition. >> >> On Linux this works correctly. Each call to read EP1 will return >> when >> there is new data available from the device. On the FreeBSD side, >> from the >> time a control message is issued, status messages on EP1 start >> queuing up. >> Each read will return 32 bytes of data (or more if I make the buffer >> larger) until I exhaust the buffer - the only way I can get only >> the 16 >> expected. This can take anywhere from 5 to 50 loops reading EP1 to >> clear >> out the data, depending on the time between the control command >> and the >> read. >> >> I thought the USB device (INTERRUPT mode endpoint) was supposed to >> wait >> until data was requested to send it's information. This is >> running through >> libusb, and I've turned on debug in the ugen driver to make sure >> it really >> is interrupt driven. >> >> Is there some setting that causes this type of queing of interrupt >> data? >> I've seen other messages about the timeout not working with interrupt >> reads, so is this device related? >> Where can I go from here? > > The buffer you allocate should be 32 bytes long. Then you must use > the flag > USBD_SHORT_XFER_OK. Then you check the "xfer->actlen" after that > the transfer > has happened. Isn't this 16 bytes ? > > --HPS