From owner-freebsd-usb@FreeBSD.ORG Sun Apr 26 19:05:27 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AFA5F106564A for ; Sun, 26 Apr 2009 19:05:27 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from violet.upc.es (violet.upc.es [147.83.2.51]) by mx1.freebsd.org (Postfix) with ESMTP id 3FC058FC08 for ; Sun, 26 Apr 2009 19:05:27 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from hamilton.upcnetadm.upcnet.es (hamilton.upcnetadm.upcnet.es [147.83.2.240]) by violet.upc.es (8.14.1/8.13.1) with ESMTP id n3QJ5GbG010849 for ; Sun, 26 Apr 2009 21:05:16 +0200 Received: from [192.168.100.184] ([88.15.98.27]) by hamilton.upcnetadm.upcnet.es (Lotus Domino Release 5.0.12) with ESMTP id 2009042621052344:118430 ; Sun, 26 Apr 2009 21:05:23 +0200 Message-ID: <49F4B018.1000703@entel.upc.edu> Date: Sun, 26 Apr 2009 21:03:52 +0200 From: Gustau Perez User-Agent: Thunderbird 2.0.0.21 (X11/20090409) MIME-Version: 1.0 To: freebsd-usb@freebsd.org X-MIMETrack: Itemize by SMTP Server on hamilton/UPC(Release 5.0.12 |February 13, 2003) at 26/04/2009 21:05:23, Serialize by Router on hamilton/UPC(Release 5.0.12 |February 13, 2003) at 26/04/2009 21:05:25, Serialize complete at 26/04/2009 21:05:25 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (violet.upc.es [147.83.2.51]); Sun, 26 Apr 2009 21:05:16 +0200 (CEST) Subject: Signal sensitivity problem with if_rum 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, 26 Apr 2009 19:05:27 -0000 Hi, I think this is right place to post, if it is not, please let me know. I'm experiencing problems with two different devices using if_rum. One is a Hercules Guillemot and the other is a Linksys Cisco WUSB54GC The first one is about sensitivity, which is very low: for example, I'm detecting just two or three networks around me (with windows them detect around 14 or 15 networks) and the reported signal is very low. Placing the sensor very near to my wireless network AP (which is a FreeBSD machine with atheros card placing the txpower to 20) reports a signal quality of 50% or 60%. Linux presents the same problem (my wife's laptop with ubuntu shows the same figures, more or less). Instead with windows it works just fine. The other one is that having such a low sensitivity makes those dongles unusable when making large transfers, mostly when using scp/sftp or sshfs (samba seems to make it work better for longer transfer, but finally the problem appears). At some given point, the dongles seem to lose contact with the AP (making ifconfig shows that wlan0 is still associated), waiting for a period of time (usually one or two minutes) the transfer continues. Probably both problems are related. In order to debug the problem I tried looking dmesg in both my AP and my laptop (no trace). Tried looking at the ssh logs (when making large transfers, no clue). In the only place I found something was in the samba logs, only saying that there was a problem with the transfer (broken pipe, the socket is closed). In the linux world, I found that the register which controls the sensitivity is bbp17. Tried looking in /usr/src/sys/dev/usb/wlan/if_rum.c, but I get lost. Tried with sysctl -a | grep rum or grep wlan0, but no MiB related to sensitivity appeared. Is there anything I can try ? Regards, Gus From owner-freebsd-usb@FreeBSD.ORG Mon Apr 27 11:07:04 2009 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 975671065675 for ; Mon, 27 Apr 2009 11:07:04 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8329E8FC1A for ; Mon, 27 Apr 2009 11:07:04 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3RB74qX002468 for ; Mon, 27 Apr 2009 11:07:04 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3RB73es002464 for freebsd-usb@FreeBSD.org; Mon, 27 Apr 2009 11:07:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 27 Apr 2009 11:07:03 GMT Message-Id: <200904271107.n3RB73es002464@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org 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, 27 Apr 2009 11:07:05 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/133989 usb USB keyboard dead at mountroot> prompt o usb/133896 usb [cdce] [newusb] panic when disconnecting cdce device j o usb/133817 usb [newusb] broken umass compile f usb/133545 usb [usb] [panic] Kernel crash in usb2_intr_schedule_adjus o usb/133390 usb umass crashes system in 7.1 when Olympus D-540 attache o usb/133296 usb rum driver not working properly in hostap mode p usb/132799 usb [usb][patch]GENESYS USB2IDE requires NO_SYNCHRONIZE_CA o usb/132785 usb [usb] [patch] Gemtech remote powersocket is classed as o usb/132594 usb USB subsystem causes page fault and crashes o usb/132312 usb Xorg 7.4 halts USB controller o usb/132080 usb [patch] [usb] Kernel panic after NOMEM caused by rum c o usb/132066 usb [ukbd] Keyboard failure USB keyboard DELL 760 o usb/132036 usb [panic] page fault when connecting Olympus C740 camera o usb/131912 usb [uslcom] [patch] New devices using Silicon Labs chips o usb/131900 usb [usbdevs] [patch] Additional product identification co o usb/131583 usb [umass] Failure when detaching umass Device o usb/131576 usb [aue] ADMtek USB To LAN Converter can't send data o usb/131521 usb Registering Belkin UPS to usb_quirks.c f usb/131123 usb [patch] re-add UQ_ASSUME_CM_OVER_DATA USB quirk o usb/131074 usb no run-time detection of usb devices plugged into exte o usb/130736 usb Page fault unplugging USB stick o usb/130325 usb [usb] [patch] fix tools/tools/usb/print-usb-if-vids.sh o usb/130230 usb Samsung Electronics YP-U3 does not attach in 7.1-RELEA o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [newusb] DVD drive detects as 'da' device o docs/129962 usb [newusb] usbconfig(8) refers to non-existant usb2_core o usb/129945 usb [usbdevs] [patch] add u3g support for Longcheer WM66 U o usb/129766 usb [usb] plugging in usb modem HUAWEI E226 panics system o usb/129758 usb [uftdi] [patch] add Pyramid LCD usb support o usb/129673 usb [uhci] uhci (uhub) confused on replugging USB 1.1 scan o usb/129522 usb [ubsa] [patch] add support for ZTE AC8700 modem o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader o usb/129251 usb [usbdevs] [patch] Liebert UPS being assigned uhid and o usb/129173 usb [uplcom] [patch] Add support for Corega CG-USBRS232R a s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb] [patch] uaudio is not full duplex o usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive f usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/128324 usb [uplcom] [patch] remove baud rate restriction for PL23 o usb/127980 usb [umass] [patch] Fix Samsung YP U2 MP3 player on 7.x an o usb/127926 usb [boot] USB Timeout during bootup o usb/127549 usb [umass] [patch] Meizu MiniPlayer M6 (SL) requires some s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should o usb/127423 usb [boot] BTX halted on Gigabyte GA-MA69VM-S2 / AMD Sempr o usb/127342 usb [boot] cannot enable usb keyboard and mouse support in o usb/127248 usb [ucom] panic while uplcom devices attaach and detach o kern/127222 usb [ohci]: Regression in 7.0 usb storage generic driver o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c f usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125736 usb [ukbd] [hang] system hangs after AT keyboard detect if o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125264 usb [patch] sysctl for set usb mouse rate (very useful for o usb/125238 usb [ums] Habu Mouse turns off in X o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/123509 usb [umass] continuous reset Samsung SGH-G600 phone o usb/123352 usb [usbdevs] [patch] Add Option GTMAX3.6/7.2 and Quallcom o usb/123351 usb [usbdevs] [patch] Add Reiner SCT cyberJack, Omnikey [2 o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122956 usb [ubsa] [patch] add support for Novatel Wireless XU870 o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122819 usb [usb] [patch] Patch to provide dynamic additions to th o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122621 usb [patch] [request] New driver for Sierra Wireless 3G US o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/122025 usb [uscanner] [patch] uscanner does not attach to Epson R o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121426 usb [patch] [uscanner] add HP ScanJet 3570C o usb/121275 usb [boot] FreeBSD fails to boot with usb legacy support e o usb/121232 usb [usb] [panic] USB CardBus card removal causes reboot s p usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS o usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/119981 usb [axe] [patch] add support for LOGITEC LAN-GTJ/U2 gigab o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/118686 usb [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei o usb/118485 usb [usbdevs] [patch] Logitech Headset Workaround o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [uaudio] [patch] Not possible to record with Plantroni o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [umass] [patch] Problems with connection of the umass o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff s usb/113977 usb [request] Need a way to set mode of USB disk's write c o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 s usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113432 usb [ucom] WARNING: attempt to net_add_domain(netgraph) af a usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/112944 usb [ulpt] [patch] Bi-directional access to HP LaserJet 10 o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/112631 usb [panic] Problem with SONY DSC-S80 camera on umount s usb/112568 usb [umass] [request] USB mode may wrong when mounting Pla o usb/112463 usb [umass] problem with Samsung USB DVD writer, libscg an o usb/112461 usb [ehci] [request] ehci USB 2.0 doesn't work on nforce4 o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID o usb/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC o usb/109397 usb [panic] on boot from USB flash o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE [regr s usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108056 usb [ohci] Mouse gets powered off during device probe when o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/107924 usb [patch] usbd(8) does not call detach o usb/107848 usb [umass] [request] cannot access Samsung flash disk o usb/107827 usb [ohci] [panic] ohci_add_done addr not found o usb/107496 usb [uhub] USB device problem on RELENG_6_2 (SHORT_XFER) [ o usb/107388 usb [patch] [request] new driver: add utoppy device from N o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107243 usb [cam] [patch] Apacer USB Flash Drive quirk o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze s usb/106832 usb [usb] USB HP printer is not detected by kernel when AC o usb/106648 usb [umass] [hang] USB Floppy on D1950 10 min Hang on Inse o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106041 usb [usb] [request] FreeBSD does not recognise Mustek Bear o usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/105186 usb [ehci] [panic] USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 c o usb/105065 usb [ata] [usb] SATA - USB Bridge o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/104645 usb [umass] [request] Rave C-201 MP3 player does not commu o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104292 usb [umass] [hang] system lockup on forced umount of usb-s o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/103917 usb [uhub] USB driver reports "Addr 0 should never happen" o usb/103418 usb usbhidctl(1): [patch] [request] usbhidctl: add ability o usb/103289 usb [request] USB 2.0 problems on AMD LX-800 CPU and CS-55 o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103025 usb [uhub] [panic] wrong detection of USB device for FreeB o usb/102976 usb [panic] Casio Exilim Digital Camera causes panic on in o usb/102678 usb [keyboard] Dell PowerEdge DRAC5 USB Keyboard does not o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/101761 usb [usb] [patch] [request] usb.h: increase maximal size o o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101096 usb [ural] [panic] USB WLAN occasionally causes kernel-pan o usb/100746 usb [keyboard] system does not boot due to USB keyboard pr o usb/99538 usb [keyboard] while using USB keyboard default params of o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o kern/99200 usb [bluetooth] SMP-Kernel crashes reliably when Bluetooth o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg o usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91629 usb [usb] usbd_abort_pipe() may result in infinite loop o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device f usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82660 usb [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me o usb/80829 usb [modules] [panic] possible panic when loading USB-modu s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/79722 usb [ehci] wrong alignments in ehci.h a usb/79656 usb [ehci] RHSC interrupts lost o usb/79524 usb [ulpt] printing to Minolta PagePro 1[23]xxW via USB fa o usb/79287 usb [uhci] [hang] UHCI hang after interrupt transfer o usb/79269 usb [ohci] USB ohci da0 plug/unplug causes crashes and loc o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/77184 usb [umass] [panic] kernel panic on USB device disconnect, o usb/76732 usb [ums] Mouse problems with USB KVM Switch o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75797 usb [sound] 5.3-STABLE(2005 1/4) detect USB headset, But c o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) o usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/71455 usb [umass] Slow USB umass performance of 5.3 o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 309 problems total. From owner-freebsd-usb@FreeBSD.ORG Wed Apr 29 09:40:01 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F7C91065677 for ; Wed, 29 Apr 2009 09:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 001A28FC23 for ; Wed, 29 Apr 2009 09:40:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3T9e0vE039326 for ; Wed, 29 Apr 2009 09:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3T9e0t2039325; Wed, 29 Apr 2009 09:40:00 GMT (envelope-from gnats) Resent-Date: Wed, 29 Apr 2009 09:40:00 GMT Resent-Message-Id: <200904290940.n3T9e0t2039325@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Yoshihide Sonoda Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00BCB1065670 for ; Wed, 29 Apr 2009 09:33:54 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id D9CF48FC08 for ; Wed, 29 Apr 2009 09:33:53 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n3T9Xrkt080536 for ; Wed, 29 Apr 2009 09:33:53 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n3T9XrgB080535; Wed, 29 Apr 2009 09:33:53 GMT (envelope-from nobody) Message-Id: <200904290933.n3T9XrgB080535@www.freebsd.org> Date: Wed, 29 Apr 2009 09:33:53 GMT From: Yoshihide Sonoda To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/134085: [umass] Adding usb quirk for Sony USB flash drive 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: Wed, 29 Apr 2009 09:40:02 -0000 >Number: 134085 >Category: usb >Synopsis: [umass] Adding usb quirk for Sony USB flash drive >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 29 09:40:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Yoshihide Sonoda >Release: 8.0-CURRENT >Organization: >Environment: FreeBSD eagle.ys.sokohiki.org 8.0-CURRENT FreeBSD 8.0-CURRENT #35: Wed Apr 29 02:11:05 JST 2009 root@eagle.ys.sokohiki.org:/usr/obj/usr/src/sys/eagle amd64 >Description: When I used Sony's USB flash drive(*) with zfs, the following messages was displayed many times. kernel: (da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error kernel: (da0:umass-sim0:0:0:0): SCSI Status: Check Condition kernel: (da0:umass-sim0:0:0:0): ILLEGAL REQUEST asc:24,0 kernel: (da0:umass-sim0:0:0:0): Invalid field in CDB kernel: (da0:umass-sim0:0:0:0): Unretryable error (*) The Web site of the USB flash drive(Japanese): http://www.sony.jp/pocketbit/products/USM_LX_SERIES/ # usbconfig -u 7 -a 2 dump_device_desc ugen7.2: at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x054c idProduct = 0x0243 bcdDevice = 0x0200 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0003 <6A0904020005022> bNumConfigurations = 0x0001 >How-To-Repeat: 1) Connect Sony's USB flash drive. kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000 kernel: umass0:1:0:-1: Attached to scbus1 kernel: da0 at umass-sim0 bus 0 target 0 lun 0 kernel: da0: Removable Direct Access SCSI-2 device kernel: da0: 40.000MB/s transfers kernel: da0: 7648MB (15663104 512 byte sectors: 255H 63S/T 974C) 2) Make a zfs pool on the drive. # zpool create usbpool /dev/da0s1 >Fix: Please add the following code. --- usbdevs.orig 2009-04-21 22:40:58.203008000 +0900 +++ usbdevs 2009-04-29 01:56:14.545345677 +0900 @@ -2278,6 +2278,7 @@ product SONY CLIE_TH55 0x0144 Sony Clie th55 product SONY CLIE_TJ37 0x0169 Sony Clie tj37 product SONY RF_RECEIVER 0x01db Sony RF mouse/kbd Receiver VGP-WRC1 +product SONY USBM_PBIT 0x0243 Sony USB Memory POCKETBIT /* Sony Ericsson products */ product SONYERICSSON DCU10 0x0528 USB Cable --- umass.c.orig 2009-04-07 01:12:41.477295000 +0900 +++ umass.c 2009-04-29 02:02:28.802546498 +0900 @@ -848,6 +848,10 @@ static const struct umass_devdescr umass UMASS_PROTO_SCSI | UMASS_PROTO_BBB, NO_QUIRKS }, + {USB_VENDOR_SONY, USB_PRODUCT_SONY_USBM_PBIT, RID_WILDCARD, + UMASS_PROTO_SCSI | UMASS_PROTO_BBB, + NO_SYNCHRONIZE_CACHE + }, {USB_VENDOR_SUPERTOP, USB_PRODUCT_SUPERTOP_IDE, RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_BBB, IGNORE_RESIDUE | NO_SYNCHRONIZE_CACHE >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Wed Apr 29 15:18:39 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AFD9F10656B6 for ; Wed, 29 Apr 2009 15:18:39 +0000 (UTC) (envelope-from ee@athyriogames.com) Received: from caprica.sslcatacombnetworking.com (caprica.sslcatacombnetworking.com [70.86.206.218]) by mx1.freebsd.org (Postfix) with ESMTP id 7B6C28FC1C for ; Wed, 29 Apr 2009 15:18:39 +0000 (UTC) (envelope-from ee@athyriogames.com) Received: from c-71-201-27-66.hsd1.in.comcast.net ([71.201.27.66] helo=laptopv) by caprica.sslcatacombnetworking.com with esmtpa (Exim 4.69) (envelope-from ) id 1LzBYR-0001ct-6X; Wed, 29 Apr 2009 10:18:36 -0500 From: "Engineering" To: References: <200903010045.44904.man@email.com.ua> <200903031516.02744.hselasky@c2i.net> <200903032006.54451.man@email.com.ua> <200903032243.31914.hselasky@c2i.net> In-Reply-To: <200903032243.31914.hselasky@c2i.net> Date: Wed, 29 Apr 2009 10:18:33 -0500 Message-ID: <000f01c9c8dd$c4fdba20$4ef92e60$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcmcSO3rsx4coY1oRzqYjCTzpIsCPgsh3xJw Content-Language: en-us X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - caprica.sslcatacombnetworking.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - athyriogames.com X-Source: X-Source-Args: X-Source-Dir: Cc: Subject: Isochronous transfer missing frames on USB4? 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: Wed, 29 Apr 2009 15:18:40 -0000 Hello all. I am having an odd problem getting a UVC webcam to work on FreeBSD Little background: This is for an arcade game - needs to be able to run for weeks unattended at a bar Running of Intel D945PLNM board, nVidia 9500GT series video card. Storage is compact flash, with a CF-IDE adapter Webcam is no-name Chinese, which is supposed to conform to UVC spec - no other documentation 'Driver' is modified ugen with Hans Petter's newest stack. Running high-speed isochronous transfers. We've been running for months with no problems, but now that production motherboards and cameras are coming in, something is cropping up. The webcam is locked at 160x120, 30fps At this rate, it always gives me 39 frames of data per video frame 37 frames of 1024, 1 frame of 968, 1 frame of 12 Minus the 12 bytes of header on each packet, that is 37*1012+956 = 38400 bytes, which is exactly correct The last 12 byte header contains no data, but contains the end of frame bit Cannot confirm, but it only seems to happen when webcam is plugged into the USB port directly underneath the etherNet jack. Timing issue? Priority? Any suggestions on where to look? Thanks, Sam I have _tons_ of logs and source, but I'll snip what seems relevant for now... Apr 28 17:09:04 kernel: FreeBSD 7.0-RELEASE #9: Wed Mar 18 08:04:55 CDT 2009 Apr 28 17:09:04 kernel: usb4: EHCI version 1.0 Apr 28 17:09:04 kernel: usb4: on ehci0 Apr 28 17:09:04 kernel: usb0: 12Mbps Full Speed USB v1.0 Apr 28 17:09:04 kernel: uhub0: on usb0 Apr 28 17:09:04 kernel: uhub0: 2 ports with 2 removable, self powered Apr 28 17:09:04 kernel: usb1: 12Mbps Full Speed USB v1.0 Apr 28 17:09:04 kernel: uhub1: on usb1 Apr 28 17:09:04 kernel: uhub1: 2 ports with 2 removable, self powered Apr 28 17:09:04 kernel: usb2: 12Mbps Full Speed USB v1.0 Apr 28 17:09:04 kernel: uhub2: on usb2 Apr 28 17:09:04 kernel: uhub2: 2 ports with 2 removable, self powered Apr 28 17:09:04 kernel: usb3: 12Mbps Full Speed USB v1.0 Apr 28 17:09:04 kernel: uhub3: on usb3 Apr 28 17:09:04 kernel: uhub3: 2 ports with 2 removable, self powered Apr 28 17:09:04 kernel: usb4: 480Mbps High Speed USB v2.0 Apr 28 17:09:04 kernel: uhub4: on usb4 Apr 28 17:09:04 kernel: uhub4: 8 ports with 8 removable, self powered Apr 28 17:09:04 kernel: ugen0: on usb4 Apr 28 17:09:04 kernel: make_dev uvc.1 // My debug messages follow Apr 28 17:09:19 kernel: set config 0 Apr 28 17:09:19 kernel: make_dev uvc.1 Apr 28 17:09:19 kernel: set config 1 Apr 28 17:09:19 kernel: make_dev uvc.1 Apr 28 17:09:19 kernel: make_dev uvc.2 Apr 28 17:09:19 kernel: ugen_get_cdesc -1 Apr 28 17:09:19 kernel: usbd_find_idesc 0 0 Apr 28 17:09:19 kernel: UVC Start read uvc returned 0 Apr 28 17:09:19 kernel: High speed 64 frames Apr 28 17:09:19 kernel: ugen_open_pipe_read: isoc open done // Megabytes of this stuff... Shows the raw byte count of each of the 64 frames coming back on iso_read_callback Apr 28 17:09:19 kernel: 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 968 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 Apr 28 17:09:19 kernel: 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 Apr 28 17:09:19 kernel: 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 Apr 28 17:09:19 kernel: 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 0 Apr 28 17:09:19 kernel: 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 968 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 37 frames of 1024, 1 frame of 968, 1 frame of 12 Minus the 12 bytes of header on each packet, that is 37*1012+956 = 38400 bytes, which is exactly correct The last 12 byte header contains no data, but contains the end of frame bit After time - problems cropping up - a complete packet goes missing - easiest to see if the 968 or 12 goes, but it happens to the 1024s too When missing, the packet is completely gone - 0 bytes Apr 29 13:40:25 kernel: 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 968 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 Apr 29 13:40:25 kernel: 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 Apr 29 13:40:25 kernel: 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 Apr 29 13:40:25 kernel: 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 NOTE HERE THE '12' PACKET IS GONE: Apr 29 13:40:25 kernel: 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 968 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Apr 29 13:40:25 kernel: 0 0 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 Apr 29 13:40:25 kernel: 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 0 1024 Apr 29 13:40:25 kernel: 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 Apr 29 13:40:25 kernel: 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 968 12 0 0 0 From owner-freebsd-usb@FreeBSD.ORG Wed Apr 29 18:22:44 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93EF710656B5 for ; Wed, 29 Apr 2009 18:22:44 +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 008388FC17 for ; Wed, 29 Apr 2009 18:22:43 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=0KeK9zG_KNwA:10 a=wKeEBa3Tp9AA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=SNd9_cp8ltrImEGesQ4A:9 a=u_Qu1_smQl3e1OAg6okA:7 a=CqOgY0VxND_bRUgIOhOLH8Dy85gA:4 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1233348539; Wed, 29 Apr 2009 20:22:42 +0200 From: Hans Petter Selasky To: "Engineering" Date: Wed, 29 Apr 2009 20:25:14 +0200 User-Agent: KMail/1.9.7 References: <200903010045.44904.man@email.com.ua> <200903032243.31914.hselasky@c2i.net> <000f01c9c8dd$c4fdba20$4ef92e60$@com> In-Reply-To: <000f01c9c8dd$c4fdba20$4ef92e60$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904292025.15728.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: Isochronous transfer missing frames on USB4? 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: Wed, 29 Apr 2009 18:22:44 -0000 On Wednesday 29 April 2009, Engineering wrote: > Hello all. I am having an odd problem getting a UVC webcam to work on > FreeBSD > > Little background: > This is for an arcade game - needs to be able to run for weeks unattended > at a bar > Running of Intel D945PLNM board, nVidia 9500GT series video card. Storage > is compact flash, with a CF-IDE adapter > Webcam is no-name Chinese, which is supposed to conform to UVC spec - no > other documentation > > 'Driver' is modified ugen with Hans Petter's newest stack. Are you running stock -current code without any patches? And from which date? Do you have more than 4GB of RAM? > Running > high-speed isochronous transfers. > > We've been running for months with no problems, but now that production > motherboards and cameras are coming in, something is cropping up. > > The webcam is locked at 160x120, 30fps > > At this rate, it always gives me 39 frames of data per video frame > 37 frames of 1024, 1 frame of 968, 1 frame of 12 > Minus the 12 bytes of header on each packet, that is 37*1012+956 = 38400 > bytes, which is exactly correct > The last 12 byte header contains no data, but contains the end of frame bit > > Cannot confirm, but it only seems to happen when webcam is plugged into the > USB port directly underneath the etherNet jack. > > Timing issue? Priority? Any suggestions on where to look? Maybe an USB analyser (for example the Beagle Ones will give you an answer). The same software works on one hardware but not the other? Could you use the usbconfig tool to dump the descriptors of the USB webcam? > 37 frames of 1024, 1 frame of 968, 1 frame of 12 > Minus the 12 bytes of header on each packet, that is 37*1012+956 = 38400 > bytes, which is exactly correct > The last 12 byte header contains no data, but contains the end of frame bit > > After time - problems cropping up - a complete packet goes missing - > easiest to see if the 968 or 12 goes, but it happens to the 1024s too > When missing, the packet is completely gone - 0 bytes > The new USB stack provides you with timing information about isochronous transfers, see "xfer->isoc_time_complete". This field is a 16-bit millisecond counter which tells exactly at which timeslot the isochronous transfer ended. You can use this field to figure out if you missed any frames when the frame rate is constant. You might be aware about it: Isochronous transfers do not have any retransmission. --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Apr 29 18:31:18 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DFC92106568A for ; Wed, 29 Apr 2009 18:31:18 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by mx1.freebsd.org (Postfix) with ESMTP id 753EE8FC13 for ; Wed, 29 Apr 2009 18:31:18 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=0KeK9zG_KNwA:10 a=wKeEBa3Tp9AA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=9t5oNrSczUR53mD4zAEA:9 a=u3ujwFEO0bWvv0jnifPPjUqpSMYA:4 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1238137556; Wed, 29 Apr 2009 20:31:17 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Wed, 29 Apr 2009 20:33:48 +0200 User-Agent: KMail/1.9.7 References: <200903010045.44904.man@email.com.ua> <000f01c9c8dd$c4fdba20$4ef92e60$@com> <200904292025.15728.hselasky@c2i.net> In-Reply-To: <200904292025.15728.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904292033.49695.hselasky@c2i.net> Cc: Subject: Re: Isochronous transfer missing frames on USB4? 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: Wed, 29 Apr 2009 18:31:19 -0000 Another idea: Have you checked that the number of isochronous frames you setup is a multiple of 8 ? --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Apr 30 06:34:18 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D926B106567A for ; Thu, 30 Apr 2009 06:34:18 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from violet.upc.es (violet.upc.es [147.83.2.51]) by mx1.freebsd.org (Postfix) with ESMTP id 48D008FC14 for ; Thu, 30 Apr 2009 06:34:17 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from hamilton.upcnetadm.upcnet.es (hamilton.upcnetadm.upcnet.es [147.83.2.240]) by violet.upc.es (8.14.1/8.13.1) with ESMTP id n3U6Y6ZL009989 for ; Thu, 30 Apr 2009 08:34:07 +0200 Received: from [147.83.40.234] ([147.83.40.234]) by hamilton.upcnetadm.upcnet.es (Lotus Domino Release 5.0.12) with ESMTP id 2009043008341517:152671 ; Thu, 30 Apr 2009 08:34:15 +0200 Message-ID: <49F94604.2030306@entel.upc.edu> Date: Thu, 30 Apr 2009 08:32:36 +0200 From: =?ISO-8859-1?Q?Gustau_P=E9rez?= User-Agent: Thunderbird 2.0.0.21 (X11/20090409) MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <49F4B018.1000703@entel.upc.edu> In-Reply-To: <49F4B018.1000703@entel.upc.edu> X-MIMETrack: Itemize by SMTP Server on hamilton/UPC(Release 5.0.12 |February 13, 2003) at 30/04/2009 08:34:15, Serialize by Router on hamilton/UPC(Release 5.0.12 |February 13, 2003) at 30/04/2009 08:34:15, Serialize complete at 30/04/2009 08:34:15 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (violet.upc.es [147.83.2.51]); Thu, 30 Apr 2009 08:34:07 +0200 (CEST) Subject: Re: Signal sensitivity problem with if_rum 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: Thu, 30 Apr 2009 06:34:19 -0000 > I think this is right place to post, if it is not, please let me know. > > I'm experiencing problems with two different devices using if_rum. > One is a Hercules Guillemot and the other is a Linksys Cisco WUSB54GC > > The first one is about sensitivity, which is very low: for example, > I'm detecting just two or three networks around me (with windows them > detect around 14 or 15 networks) and the reported signal is very low. > Placing the sensor very near to my wireless network AP (which is a > FreeBSD machine with atheros card placing the txpower to 20) reports a > signal quality of 50% or 60%. > Hi again, Any clue ? Can anyone point me where to start looking ? I've been looking in /usr/src/sys/dev/usb/wlan/if_rum.c (and friends) ... Regards, Gus From owner-freebsd-usb@FreeBSD.ORG Thu Apr 30 09:56:22 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C2E7106564A for ; Thu, 30 Apr 2009 09:56:22 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-fx0-f162.google.com (mail-fx0-f162.google.com [209.85.220.162]) by mx1.freebsd.org (Postfix) with ESMTP id 62A1D8FC27 for ; Thu, 30 Apr 2009 09:56:20 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by fxm6 with SMTP id 6so1702422fxm.43 for ; Thu, 30 Apr 2009 02:56:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=s/2q7coKtvn1PIEBmqF5x5DDQfxHsPrueFceXvXIlvs=; b=D636zAfYiDe/GsSMNXzM50RBXxAIGPDN/aDEKmgxF/gAJYdlu4LHzR1VhoXv6CsSmu Ul8nEShm21Urvs5kviCnoODm8tDZC3oFmZihHlfMpoIxv7CgSlJiEHAL0W22SChQjxRx 3lAHvepJHjasuZK3l+uNpTp8hTeruyFaawYWY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=WB9QNxHnyVI0lkj0L5D0Eu09+1BLDJtRPNLwdT7tx5W9914V2wGiU9pqZNphfFmbAH l4A9UujSqvjCAj/ep4PrX+6ZzHuPIErgqXKArLpjR15eGmg0+nJDyn6F70DArm7NdhyJ eyWxrh2zRhyhIM/B48npvfLTeJWWZn/pu7P3E= MIME-Version: 1.0 Received: by 10.239.171.143 with SMTP id w15mr67524hbe.119.1241085380137; Thu, 30 Apr 2009 02:56:20 -0700 (PDT) In-Reply-To: <49F4B018.1000703@entel.upc.edu> References: <49F4B018.1000703@entel.upc.edu> Date: Thu, 30 Apr 2009 11:56:20 +0200 Message-ID: <3a142e750904300256w4218f71bwfee97cdd1eb8252f@mail.gmail.com> From: "Paul B. Mahol" To: Gustau Perez Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: Signal sensitivity problem with if_rum 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: Thu, 30 Apr 2009 09:56:22 -0000 On 4/26/09, Gustau Perez wrote: > > Hi, > > I think this is right place to post, if it is not, please let me know. It is not usb fault, it is driver side fault. > I'm experiencing problems with two different devices using if_rum. > One is a Hercules Guillemot and the other is a Linksys Cisco WUSB54GC > > The first one is about sensitivity, which is very low: for example, > I'm detecting just two or three networks around me (with windows them > detect around 14 or 15 networks) and the reported signal is very low. > Placing the sensor very near to my wireless network AP (which is a > FreeBSD machine with atheros card placing the txpower to 20) reports a > signal quality of 50% or 60%. > > Linux presents the same problem (my wife's laptop with ubuntu shows > the same figures, more or less). Instead with windows it works just fine. That contradicts with mine findings, linux rt73 driver works fine. > > The other one is that having such a low sensitivity makes those > dongles unusable when making large transfers, mostly when using scp/sftp > or sshfs (samba seems to make it work better for longer transfer, but > finally the problem appears). At some given point, the dongles seem to > lose contact with the AP (making ifconfig shows that wlan0 is still > associated), waiting for a period of time (usually one or two minutes) > the transfer continues. Probably both problems are related. > > In order to debug the problem I tried looking dmesg in both my AP and > my laptop (no trace). Tried looking at the ssh logs (when making large > transfers, no clue). In the only place I found something was in the > samba logs, only saying that there was a problem with the transfer > (broken pipe, the socket is closed). > > In the linux world, I found that the register which controls the > sensitivity is bbp17. Tried looking in > /usr/src/sys/dev/usb/wlan/if_rum.c, but I get lost. Tried with sysctl -a > | grep rum or grep wlan0, but no MiB related to sensitivity appeared. > > Is there anything I can try ? I use ndisgen(8) in such case(...), note that only CURRENT now have usb support for ndisulator. -- Paul From owner-freebsd-usb@FreeBSD.ORG Thu Apr 30 10:14:26 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A887E106564A for ; Thu, 30 Apr 2009 10:14:26 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from violet.upc.es (violet.upc.es [147.83.2.51]) by mx1.freebsd.org (Postfix) with ESMTP id 15F598FC0C for ; Thu, 30 Apr 2009 10:14:25 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from hamilton.upcnetadm.upcnet.es (hamilton.upcnetadm.upcnet.es [147.83.2.240]) by violet.upc.es (8.14.1/8.13.1) with ESMTP id n3UAEFN6032614; Thu, 30 Apr 2009 12:14:15 +0200 Received: from [147.83.40.234] ([147.83.40.234]) by hamilton.upcnetadm.upcnet.es (Lotus Domino Release 5.0.12) with ESMTP id 2009043012142403:155960 ; Thu, 30 Apr 2009 12:14:24 +0200 Message-ID: <49F9799F.7090601@entel.upc.edu> Date: Thu, 30 Apr 2009 12:12:47 +0200 From: =?ISO-8859-1?Q?Gustau_P=E9rez?= User-Agent: Thunderbird 2.0.0.21 (X11/20090409) MIME-Version: 1.0 To: "Paul B. Mahol" , freebsd-usb@freebsd.org References: <49F4B018.1000703@entel.upc.edu> <3a142e750904300256w4218f71bwfee97cdd1eb8252f@mail.gmail.com> In-Reply-To: <3a142e750904300256w4218f71bwfee97cdd1eb8252f@mail.gmail.com> X-MIMETrack: Itemize by SMTP Server on hamilton/UPC(Release 5.0.12 |February 13, 2003) at 30/04/2009 12:14:24, Serialize by Router on hamilton/UPC(Release 5.0.12 |February 13, 2003) at 30/04/2009 12:14:24, Serialize complete at 30/04/2009 12:14:24 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (violet.upc.es [147.83.2.51]); Thu, 30 Apr 2009 12:14:15 +0200 (CEST) Cc: Subject: Re: Signal sensitivity problem with if_rum 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: Thu, 30 Apr 2009 10:14:26 -0000 >> I think this is right place to post, if it is not, please let me know. >> > It is not usb fault, it is driver side fault. > > Thank you. I thought it was not an usb fault, because with stable (old usb stack) it shows the same behaviour. I posted here because I saw some posts this April related to rum and because it was not current's fault. Perharps freebsd-net would be a better place to post. > I use ndisgen(8) in such case(...), note that only CURRENT now have > usb support for ndisulator. > > Well, already tried (current csup'ed this week). No luck (no AP's available, nothing), and removing the modules gave a nice panic :) Greets, Gus From owner-freebsd-usb@FreeBSD.ORG Thu Apr 30 10:24:05 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E908E106564A for ; Thu, 30 Apr 2009 10:24:05 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-fx0-f162.google.com (mail-fx0-f162.google.com [209.85.220.162]) by mx1.freebsd.org (Postfix) with ESMTP id 7BAB08FC21 for ; Thu, 30 Apr 2009 10:24:05 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by fxm6 with SMTP id 6so1716007fxm.43 for ; Thu, 30 Apr 2009 03:24:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=bQkNt6ERd8MYICA0Hxn67JsWRLkvgmLzKOXupIiHJsE=; b=Ch7kEGwAXljn32qsygYQuZ1fYR9U+xVAUG007RxQJTW76kFu7JbHQ5uFsRsBaEn7aK vUCtHzsO9NPZPC0yTX6RvHDYrHoywV+9gI9TPeMjm1QsuCv5lxYf9MpwyxAwACnk6RPv 8rFPBq7k/aunIG8xsmrRBpl1Hs81Nn6Yol8qE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=PR0tu/BAX75UtK0S3acasq1eDjUuL7QYT5QRv+9SCLeF2gHapvtddaWcOmcFVdLXgg kPVbE2VoLTqDWcdfNSd7zp9HCzk/9ZSKsKwmraKKhW1AECiKi5msAZflCvryAVH+B8yE YZ72iUJY2JB31CjTvtwvuRiMLBjbtxxL0JXr4= MIME-Version: 1.0 Received: by 10.239.179.141 with SMTP id d13mr77517hbg.124.1241087044448; Thu, 30 Apr 2009 03:24:04 -0700 (PDT) In-Reply-To: <49F9799F.7090601@entel.upc.edu> References: <49F4B018.1000703@entel.upc.edu> <3a142e750904300256w4218f71bwfee97cdd1eb8252f@mail.gmail.com> <49F9799F.7090601@entel.upc.edu> Date: Thu, 30 Apr 2009 12:24:04 +0200 Message-ID: <3a142e750904300324n11458adaic8e656694ae95f24@mail.gmail.com> From: "Paul B. Mahol" To: =?ISO-8859-1?Q?Gustau_P=E9rez?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-usb@freebsd.org Subject: Re: Signal sensitivity problem with if_rum 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: Thu, 30 Apr 2009 10:24:06 -0000 On 4/30/09, Gustau P=E9rez wrote: > >>> I think this is right place to post, if it is not, please let me know= . >>> >> It is not usb fault, it is driver side fault. >> >> > Thank you. I thought it was not an usb fault, because with stable > (old usb stack) it shows the same behaviour. > > I posted here because I saw some posts this April related to rum and > because it was not current's fault. Perharps freebsd-net would be a > better place to post. > >> I use ndisgen(8) in such case(...), note that only CURRENT now have >> usb support for ndisulator. >> >> > Well, already tried (current csup'ed this week). No luck (no AP's > available, nothing), and removing the modules gave a nice panic :) Please explain that in detail as much as possible and send bt from panic. On i386 ndisulator with usb works fine last time I tested it, I am aware of= bugs on amd64 ... --=20 Paul From owner-freebsd-usb@FreeBSD.ORG Thu Apr 30 10:32:35 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D43E106566B for ; Thu, 30 Apr 2009 10:32:35 +0000 (UTC) (envelope-from freebsd-usb@dino.sk) Received: from loki.netlab.sk (loki.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id AB43B8FC1A for ; Thu, 30 Apr 2009 10:32:34 +0000 (UTC) (envelope-from freebsd-usb@dino.sk) Received: from via.dino.sk (home.dino.sk [84.245.95.252]) (AUTH: PLAIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by loki.netlab.sk with esmtp; Thu, 30 Apr 2009 12:19:30 +0200 id 0002E010.49F97B32.00000A0B From: Milan Obuch To: freebsd-usb@freebsd.org Date: Thu, 30 Apr 2009 12:21:43 +0200 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904301221.44674.freebsd-usb@dino.sk> Subject: u3g serial device name query 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: Thu, 30 Apr 2009 10:32:35 -0000 Hi, I have HUAWEI 3g usb modem. It works with u3g from current. There is however one thing I did not get working yet. When device attaches, it is added into tree as u3gN, devd event is sent. It is easily matched with 'device-name "u3g[0-9]"' clause in devd.conf. I can start ppp automatically and it works well, given no other USB serial device is present. If another USB serial device such as uplcom is present, u3g serial ports does not have the same name. I found no way to relate serial device name to this event and looking in source I see no place where it is created. I would like to put a devctl notify call there. This way I could start ppp with correct device name even if there is some other USB serial device. Could someone point me in the right direction? Regards, Milan From owner-freebsd-usb@FreeBSD.ORG Thu Apr 30 10:56:07 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A45C4106566C for ; Thu, 30 Apr 2009 10:56:07 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id 3AA118FC21 for ; Thu, 30 Apr 2009 10:56:06 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=Jzsl1yNs9nhZ_ztdLI4A:9 a=NFp9i1XdSfhF8rZE1uBMwg8eULAA:4 a=w7sdYeiVPvCFO1fe:21 a=sWPM6NUFhF7KduEE:21 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1232047067; Thu, 30 Apr 2009 12:56:05 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 30 Apr 2009 12:58:36 +0200 User-Agent: KMail/1.9.7 References: <200904301221.44674.freebsd-usb@dino.sk> In-Reply-To: <200904301221.44674.freebsd-usb@dino.sk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904301258.37784.hselasky@c2i.net> Cc: Subject: Re: u3g serial device name query 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: Thu, 30 Apr 2009 10:56:08 -0000 On Thursday 30 April 2009, Milan Obuch wrote: > Hi, > > I have HUAWEI 3g usb modem. It works with u3g from current. There is > however one thing I did not get working yet. > > When device attaches, it is added into tree as u3gN, devd event is sent. It > is easily matched with 'device-name "u3g[0-9]"' clause in devd.conf. I can > start ppp automatically and it works well, given no other USB serial device > is present. > > If another USB serial device such as uplcom is present, u3g serial ports > does not have the same name. I found no way to relate serial device name to > this event and looking in source I see no place where it is created. I > would like to put a devctl notify call there. This way I could start ppp > with correct device name even if there is some other USB serial device. > > Could someone point me in the right direction? USB serial devices have their own unit management. There is however a way to override the unit number through the "usb2_com_tty_name" callback, which requires some code changes to the u3g driver. All USB modems and serial adapters end up with the same naming prefix: /dev/cuaU%d.%d, so the assigned numbers must be serialised. What we could do is to have a separate naming prefix for 3G modems, and use the device_get_unit() for unit number. See: src/sys/dev/usb/serial and usb_serial.c --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Apr 30 12:13:21 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44BEB1065674 for ; Thu, 30 Apr 2009 12:13:21 +0000 (UTC) (envelope-from freebsd-usb@dino.sk) Received: from loki.netlab.sk (loki.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id C94B98FC18 for ; Thu, 30 Apr 2009 12:13:20 +0000 (UTC) (envelope-from freebsd-usb@dino.sk) Received: from via.dino.sk (home.dino.sk [84.245.95.252]) (AUTH: PLAIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by loki.netlab.sk with esmtp; Thu, 30 Apr 2009 14:10:24 +0200 id 0002E010.49F99530.00000F7E From: Milan Obuch To: Hans Petter Selasky Date: Thu, 30 Apr 2009 14:12:37 +0200 User-Agent: KMail/1.9.10 References: <200904301221.44674.freebsd-usb@dino.sk> <200904301258.37784.hselasky@c2i.net> In-Reply-To: <200904301258.37784.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904301412.38313.freebsd-usb@dino.sk> Cc: freebsd-usb@freebsd.org Subject: Re: u3g serial device name query 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: Thu, 30 Apr 2009 12:13:21 -0000 On Thursday 30 April 2009 12:58:36 Hans Petter Selasky wrote: > On Thursday 30 April 2009, Milan Obuch wrote: > > Hi, > > > > I have HUAWEI 3g usb modem. It works with u3g from current. There is > > however one thing I did not get working yet. > > > > When device attaches, it is added into tree as u3gN, devd event is sent. > > It is easily matched with 'device-name "u3g[0-9]"' clause in devd.conf. I > > can start ppp automatically and it works well, given no other USB serial > > device is present. > > > > If another USB serial device such as uplcom is present, u3g serial ports > > does not have the same name. I found no way to relate serial device name > > to this event and looking in source I see no place where it is created. I > > would like to put a devctl notify call there. This way I could start ppp > > with correct device name even if there is some other USB serial device. > > > > Could someone point me in the right direction? > > USB serial devices have their own unit management. There is however a way > to override the unit number through the "usb2_com_tty_name" callback, which > requires some code changes to the u3g driver. > > All USB modems and serial adapters end up with the same naming > prefix: /dev/cuaU%d.%d, so the assigned numbers must be serialised. > > What we could do is to have a separate naming prefix for 3G modems, and use > the device_get_unit() for unit number. > > See: src/sys/dev/usb/serial and usb_serial.c > I looked over usb2_com_attach_tty function in usb_serial.c, and somewhere after call to tty_makedev (where a DPRINT is too) I could put a devctl call. All I need for it would be device name. In /var/log/message file I see a line telling 'u3g0 : Found 2 ports' just after usb2_com_attach_tty function is called. If you could tell me how I can get 'u3g0' name via sc argument in usb2_com_attach_tty function, I can solve this with no other change. Regards, Milan From owner-freebsd-usb@FreeBSD.ORG Thu Apr 30 12:42:12 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C396106564A for ; Thu, 30 Apr 2009 12:42:12 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe12.swipnet.se [212.247.155.97]) by mx1.freebsd.org (Postfix) with ESMTP id 7CB3A8FC12 for ; Thu, 30 Apr 2009 12:42:11 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=L9CR0MtUK664j7V6LHMA:9 a=DQcfRvILXqVzv-iH2Cr4Z7HFVTAA:4 a=N1DfUnNy2_waTfcz:21 a=28fObjYVIF7KoU-N:21 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop) by mailfe12.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1061651522; Thu, 30 Apr 2009 14:42:09 +0200 From: Hans Petter Selasky To: Milan Obuch Date: Thu, 30 Apr 2009 14:44:31 +0200 User-Agent: KMail/1.9.7 References: <200904301221.44674.freebsd-usb@dino.sk> <200904301258.37784.hselasky@c2i.net> <200904301412.38313.freebsd-usb@dino.sk> In-Reply-To: <200904301412.38313.freebsd-usb@dino.sk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904301444.32024.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: u3g serial device name query 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: Thu, 30 Apr 2009 12:42:12 -0000 On Thursday 30 April 2009, Milan Obuch wrote: > On Thursday 30 April 2009 12:58:36 Hans Petter Selasky wrote: > > On Thursday 30 April 2009, Milan Obuch wrote: > > > Hi, > > > > > > I have HUAWEI 3g usb modem. It works with u3g from current. There is > > > however one thing I did not get working yet. > > > > > > When device attaches, it is added into tree as u3gN, devd event is > > > sent. It is easily matched with 'device-name "u3g[0-9]"' clause in > > > devd.conf. I can start ppp automatically and it works well, given no > > > other USB serial device is present. > > > > > > If another USB serial device such as uplcom is present, u3g serial > > > ports does not have the same name. I found no way to relate serial > > > device name to this event and looking in source I see no place where it > > > is created. I would like to put a devctl notify call there. This way I > > > could start ppp with correct device name even if there is some other > > > USB serial device. > > > > > > Could someone point me in the right direction? > > > > USB serial devices have their own unit management. There is however a way > > to override the unit number through the "usb2_com_tty_name" callback, > > which requires some code changes to the u3g driver. > > > > All USB modems and serial adapters end up with the same naming > > prefix: /dev/cuaU%d.%d, so the assigned numbers must be serialised. > > > > What we could do is to have a separate naming prefix for 3G modems, and > > use the device_get_unit() for unit number. > > > > See: src/sys/dev/usb/serial and usb_serial.c > > I looked over usb2_com_attach_tty function in usb_serial.c, and somewhere > after call to tty_makedev (where a DPRINT is too) I could put a devctl > call. > > All I need for it would be device name. In /var/log/message file I see a > line telling 'u3g0 : Found 2 ports' just after usb2_com_attach_tty function > is called. If you could tell me how I can get 'u3g0' name via sc argument > in usb2_com_attach_tty function, I can solve this with no other change. > You have to cast the parent softc pointer back into "struct u3g_softc", which is stored in the ucom softc. In the u3g_softc you should find sc_dev, which you can use "device_get_nameunit()" on. You can do this in the "usb2_com_tty_name" callback function. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Apr 30 12:50:19 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83445106564A for ; Thu, 30 Apr 2009 12:50:19 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from violet.upc.es (violet.upc.es [147.83.2.51]) by mx1.freebsd.org (Postfix) with ESMTP id 0A4188FC16 for ; Thu, 30 Apr 2009 12:50:18 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from hamilton.upcnetadm.upcnet.es (hamilton.upcnetadm.upcnet.es [147.83.2.240]) by violet.upc.es (8.14.1/8.13.1) with ESMTP id n3UCo8YJ002450; Thu, 30 Apr 2009 14:50:08 +0200 Received: from [147.83.40.234] ([147.83.40.234]) by hamilton.upcnetadm.upcnet.es (Lotus Domino Release 5.0.12) with ESMTP id 2009043014501683:158369 ; Thu, 30 Apr 2009 14:50:16 +0200 Message-ID: <49F99E24.80406@entel.upc.edu> Date: Thu, 30 Apr 2009 14:48:36 +0200 From: =?ISO-8859-1?Q?Gustau_P=E9rez?= User-Agent: Thunderbird 2.0.0.21 (X11/20090409) MIME-Version: 1.0 To: "Paul B. Mahol" , freebsd-usb@freebsd.org References: <49F4B018.1000703@entel.upc.edu> <3a142e750904300256w4218f71bwfee97cdd1eb8252f@mail.gmail.com> <49F9799F.7090601@entel.upc.edu> <3a142e750904300324n11458adaic8e656694ae95f24@mail.gmail.com> In-Reply-To: <3a142e750904300324n11458adaic8e656694ae95f24@mail.gmail.com> X-MIMETrack: Itemize by SMTP Server on hamilton/UPC(Release 5.0.12 |February 13, 2003) at 30/04/2009 14:50:17, Serialize by Router on hamilton/UPC(Release 5.0.12 |February 13, 2003) at 30/04/2009 14:50:17, Serialize complete at 30/04/2009 14:50:17 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (violet.upc.es [147.83.2.51]); Thu, 30 Apr 2009 14:50:08 +0200 (CEST) Cc: Subject: Re: Signal sensitivity problem with if_rum 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: Thu, 30 Apr 2009 12:50:19 -0000 > > Please explain that in detail as much as possible and send bt from panic. > > On i386 ndisulator with usb works fine last time I tested it, I am aware of bugs > on amd64 ... > > I tested it as fast as I could with current/i386. You were right. I don't know what I did, but it seems to work fine with ndisulator (sorry for the the alarm :) ). But I think it should work more or less the same with the native driver. For example, with ndisulator right now at work I get : SSID BSSID CHAN RATE S:N INT CAPS ASF-TSC 00:0f:66:ed:ea:d0 1 54M -86:-96 100 EP ASF-TSC 00:0f:66:ed:f0:ba 5 54M -86:-96 100 EP w1 00:1e:e5:7a:1a:12 6 54M -64:-96 100 EP w2 00:0e:d7:78:c3:60 6 54M -65:-96 100 E w3 00:0f:66:ed:e9:5c 9 54M -81:-96 100 EP eduroam-web 00:11:5c:6d:c5:60 11 54M -70:-96 100 E ASF-TSC 00:1c:c5:a6:4d:42 1 54M -84:-96 100 EP ASF-TSC-MERIT 00:1c:c5:a6:4d:44 1 54M -84:-96 100 EP ASF-TSC-SALES 00:1c:c5:a6:4d:46 1 54M -84:-96 100 EP But with native driver : SSID BSSID CHAN RATE S:N INT CAPS w1 00:1e:e5:7a:1a:12 6 54M -83:-95 100 EP RSN HTCAP WPS WPA WME w2 00:11:5c:6d:c5:60 11 54M -87:-95 100 E WME w3 00:0f:66:ed:e9:5c 9 54M -93:-95 100 EP WPA If necessary I can test it with current/amd64. Perharps I'd be better to post all of this at freebsd-net. Gus From owner-freebsd-usb@FreeBSD.ORG Thu Apr 30 14:46:21 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE6171065677 for ; Thu, 30 Apr 2009 14:46:21 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 879908FC1B for ; Thu, 30 Apr 2009 14:46:21 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id n3UEfhug017032; Thu, 30 Apr 2009 08:41:48 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 30 Apr 2009 08:41:46 -0600 (MDT) Message-Id: <20090430.084146.-1784899405.imp@bsdimp.com> To: freebsd-usb@dino.sk From: "M. Warner Losh" In-Reply-To: <200904301412.38313.freebsd-usb@dino.sk> References: <200904301221.44674.freebsd-usb@dino.sk> <200904301258.37784.hselasky@c2i.net> <200904301412.38313.freebsd-usb@dino.sk> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: u3g serial device name query 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: Thu, 30 Apr 2009 14:46:22 -0000 In message: <200904301412.38313.freebsd-usb@dino.sk> Milan Obuch writes: : On Thursday 30 April 2009 12:58:36 Hans Petter Selasky wrote: : > On Thursday 30 April 2009, Milan Obuch wrote: : > > Hi, : > > : > > I have HUAWEI 3g usb modem. It works with u3g from current. There is : > > however one thing I did not get working yet. : > > : > > When device attaches, it is added into tree as u3gN, devd event is sent. : > > It is easily matched with 'device-name "u3g[0-9]"' clause in devd.conf. I : > > can start ppp automatically and it works well, given no other USB serial : > > device is present. : > > : > > If another USB serial device such as uplcom is present, u3g serial ports : > > does not have the same name. I found no way to relate serial device name : > > to this event and looking in source I see no place where it is created. I : > > would like to put a devctl notify call there. This way I could start ppp : > > with correct device name even if there is some other USB serial device. : > > : > > Could someone point me in the right direction? : > : > USB serial devices have their own unit management. There is however a way : > to override the unit number through the "usb2_com_tty_name" callback, which : > requires some code changes to the u3g driver. : > : > All USB modems and serial adapters end up with the same naming : > prefix: /dev/cuaU%d.%d, so the assigned numbers must be serialised. : > : > What we could do is to have a separate naming prefix for 3G modems, and use : > the device_get_unit() for unit number. : > : > See: src/sys/dev/usb/serial and usb_serial.c : > : : I looked over usb2_com_attach_tty function in usb_serial.c, and somewhere : after call to tty_makedev (where a DPRINT is too) I could put a devctl call. : : All I need for it would be device name. In /var/log/message file I see a line : telling 'u3g0 : Found 2 ports' just after usb2_com_attach_tty function is : called. If you could tell me how I can get 'u3g0' name via sc argument in : usb2_com_attach_tty function, I can solve this with no other change. While I have issues with the names of the new ttys, since they are gratuitously different than the past, it isn't the fundamental problem. What we really need in devd is the ability to tie events to /dev entries appearing rather than at device attach time, since the two can be different... What you really need to do is to take the u3g0 attach, find out what its children are and use that to figure out things... Warner From owner-freebsd-usb@FreeBSD.ORG Thu Apr 30 19:36:20 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67C6C106564A for ; Thu, 30 Apr 2009 19:36:20 +0000 (UTC) (envelope-from freebsd-usb@dino.sk) Received: from loki.netlab.sk (loki.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id 07DCE8FC16 for ; Thu, 30 Apr 2009 19:36:19 +0000 (UTC) (envelope-from freebsd-usb@dino.sk) Received: from via.dino.sk (home.dino.sk [84.245.95.252]) (AUTH: PLAIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by loki.netlab.sk with esmtp; Thu, 30 Apr 2009 21:33:21 +0200 id 0002E010.49F9FD01.0000238F From: Milan Obuch To: "M. Warner Losh" Date: Thu, 30 Apr 2009 21:35:35 +0200 User-Agent: KMail/1.9.10 References: <200904301221.44674.freebsd-usb@dino.sk> <200904301412.38313.freebsd-usb@dino.sk> <20090430.084146.-1784899405.imp@bsdimp.com> In-Reply-To: <20090430.084146.-1784899405.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904302135.36565.freebsd-usb@dino.sk> Cc: freebsd-usb@freebsd.org Subject: Re: u3g serial device name query 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: Thu, 30 Apr 2009 19:36:20 -0000 On Thursday 30 April 2009 16:41:46 M. Warner Losh wrote: > In message: <200904301412.38313.freebsd-usb@dino.sk> [ snip ] > : > USB serial devices have their own unit management. There is however a > : > way to override the unit number through the "usb2_com_tty_name" > : > callback, which requires some code changes to the u3g driver. > : > > : > All USB modems and serial adapters end up with the same naming > : > prefix: /dev/cuaU%d.%d, so the assigned numbers must be serialised. > : > > : > What we could do is to have a separate naming prefix for 3G modems, and > : > use the device_get_unit() for unit number. > : > > : > See: src/sys/dev/usb/serial and usb_serial.c > : > : I looked over usb2_com_attach_tty function in usb_serial.c, and somewhere > : after call to tty_makedev (where a DPRINT is too) I could put a devctl > : call. > : > : All I need for it would be device name. In /var/log/message file I see a > : line telling 'u3g0 : Found 2 ports' just after usb2_com_attach_tty > : function is called. If you could tell me how I can get 'u3g0' name via sc > : argument in usb2_com_attach_tty function, I can solve this with no other > : change. > > While I have issues with the names of the new ttys, since they are > gratuitously different than the past, it isn't the fundamental > problem. > > What we really need in devd is the ability to tie events to /dev > entries appearing rather than at device attach time, since the two can > be different... > > What you really need to do is to take the u3g0 attach, find out what > its children are and use that to figure out things... > > Warner First I tried simple patch --- usb_serial.c.orig 2009-04-07 11:15:03.000000000 +0200 +++ usb_serial.c 2009-04-30 14:41:38.000000000 +0200 @@ -328,6 +328,7 @@ sc->sc_tty = tp; DPRINTF("ttycreate: %s\n", buf); + devctl_notify("UCOM",buf,"ATTACH",NULL); usb2_cv_init(&sc->sc_cv, "usb2_com"); done: It shows me 'U0.0', 'U0.1' or 'U0' etc, but no parent class like u3g0 or uplcom. I tried to find to way how to get it, but it was not easy and universal. My second try is --- u3g.c.orig 2009-04-07 11:15:03.000000000 +0200 +++ u3g.c 2009-04-30 21:15:53.000000000 +0200 @@ -50,6 +50,8 @@ #include +#include + #if USB_DEBUG static int u3g_debug = 0; @@ -529,6 +531,10 @@ device_printf(dev, "Found %u ports.\n", (unsigned int)sc->sc_numports); } + + for (i = 0; i < sc->sc_numports; i++) + device_printf(dev, "%d %s\n", i, sc->sc_ucom[i].sc_tty->t_dev->si_name); + return (0); detach: which does almost what I want, just shows 'u3g0: 0 ttyU0.0', but... You need cuaU0.0 in ppp.conf :( I can replace device_printf with devctl_notify and change it a little, simplest would be to use 'si_name + 3' so the 'tty' part would be stripped, but this is not so nice. And, again, it is not universal. If I like to do something similar with uplcom, uark or other serial USB device, their drivers need to be modified too... In any case I would like to get some more opinion on this problem and my simple test patches, too. Regards, Milan From owner-freebsd-usb@FreeBSD.ORG Thu Apr 30 20:30:06 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C62A1065678 for ; Thu, 30 Apr 2009 20:30:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6755B8FC22 for ; Thu, 30 Apr 2009 20:30:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3UKU6Is093164 for ; Thu, 30 Apr 2009 20:30:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3UKU6du093159; Thu, 30 Apr 2009 20:30:06 GMT (envelope-from gnats) Resent-Date: Thu, 30 Apr 2009 20:30:06 GMT Resent-Message-Id: <200904302030.n3UKU6du093159@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Flemming Jacobsen Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6CB9106564A for ; Thu, 30 Apr 2009 20:26:42 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id A8E8D8FC1F for ; Thu, 30 Apr 2009 20:26:42 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n3UKQgU1035293 for ; Thu, 30 Apr 2009 20:26:42 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n3UKQgdA035292; Thu, 30 Apr 2009 20:26:42 GMT (envelope-from nobody) Message-Id: <200904302026.n3UKQgdA035292@www.freebsd.org> Date: Thu, 30 Apr 2009 20:26:42 GMT From: Flemming Jacobsen To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/134117: [Patch] Add support for 'Option GlobeTrotter HSDPA Modem' to dev/usb/serial/u3g.c 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: Thu, 30 Apr 2009 20:30:06 -0000 >Number: 134117 >Category: usb >Synopsis: [Patch] Add support for 'Option GlobeTrotter HSDPA Modem' to dev/usb/serial/u3g.c >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Apr 30 20:30:06 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Flemming Jacobsen >Release: 8.0-CURRENT >Organization: >Environment: FreeBSD heartofgold.batmule.dk 8.0-CURRENT FreeBSD 8.0-CURRENT #2: Thu Apr 30 21:50:09 CEST 2009 fj@heartofgold.batmule.dk:/usr/obj/usr/src/sys/GENERIC i386 >Description: The attached +2 line patch adds support for the 'Option GlobeTrotter HSDPA Modem'. This 3G modem is used by Sonofon in Denmark. After patching: The system sees 3 serial devices. I have no idea what the first two are used for. I use /dev/cuaU0.2 for ppp. Apart from this, the ppp.conf goes just like PHKs example. heartofgold ~ 4> tip u3g2 can't open log file /var/log/aculog. connected at OK ati Manufacturer: Option N.V. Model: GlobeTrotter HSDPA Modem Revision: 2.4.6Hd (Date: Oct 04 2007, Time: 14:11:38) OK The USB dongle says: 0682 FCC ID: NCMOGI0225 Model: GI0225 >How-To-Repeat: Insert USB dongle, observe that it isn't recognized ;-) >Fix: Apply attached patch in /usr/src/sys. Patch attached with submission follows: Index: dev/usb/usbdevs =================================================================== RCS file: /home/ncvs/src/sys/dev/usb/usbdevs,v retrieving revision 1.409 diff -u -r1.409 usbdevs --- dev/usb/usbdevs 21 Apr 2009 05:06:31 -0000 1.409 +++ dev/usb/usbdevs 30 Apr 2009 19:47:53 -0000 @@ -1911,6 +1911,7 @@ product OPTION GTICON322 0xd033 GlobeTrotter Icon322 storage product OPTION GTMAX36 0x6701 GlobeTrotter Max 3.6 Modem product OPTION GTMAXHSUPA 0x7001 GlobeTrotter HSUPA +product OPTION GTHSDPA 0x6971 GlobeTrotter HSDPA Modem /* OQO */ product OQO WIFI01 0x0002 model 01 WiFi interface Index: dev/usb/serial/u3g.c =================================================================== RCS file: /home/ncvs/src/sys/dev/usb/serial/u3g.c,v retrieving revision 1.7 diff -u -r1.7 u3g.c --- dev/usb/serial/u3g.c 5 Apr 2009 18:20:38 -0000 1.7 +++ dev/usb/serial/u3g.c 30 Apr 2009 19:49:10 -0000 @@ -165,6 +165,7 @@ {USB_VPI(USB_VENDOR_OPTION, USB_PRODUCT_OPTION_GTMAX36, U3GFL_NONE)}, {USB_VPI(USB_VENDOR_OPTION, USB_PRODUCT_OPTION_GTMAXHSUPA, U3GFL_NONE)}, {USB_VPI(USB_VENDOR_OPTION, USB_PRODUCT_OPTION_VODAFONEMC3G, U3GFL_NONE)}, + {USB_VPI(USB_VENDOR_OPTION, USB_PRODUCT_OPTION_GTHSDPA, U3GFL_NONE)}, /* OEM: Qualcomm, Inc. */ {USB_VPI(USB_VENDOR_QUALCOMMINC, USB_PRODUCT_QUALCOMMINC_ZTE_STOR, U3GFL_SCSI_EJECT)}, {USB_VPI(USB_VENDOR_QUALCOMMINC, USB_PRODUCT_QUALCOMMINC_CDMA_MSM, U3GFL_SCSI_EJECT)}, >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Fri May 1 02:04:51 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9592C1065675 for ; Fri, 1 May 2009 02:04:51 +0000 (UTC) (envelope-from ee@athyriogames.com) Received: from caprica.sslcatacombnetworking.com (caprica.sslcatacombnetworking.com [70.86.206.218]) by mx1.freebsd.org (Postfix) with ESMTP id 6F3D68FC14 for ; Fri, 1 May 2009 02:04:51 +0000 (UTC) (envelope-from ee@athyriogames.com) Received: from c-71-201-27-66.hsd1.in.comcast.net ([71.201.27.66] helo=laptopv) by caprica.sslcatacombnetworking.com with esmtpa (Exim 4.69) (envelope-from ) id 1Lzi7L-0008MV-5Y for freebsd-usb@freebsd.org; Thu, 30 Apr 2009 21:04:47 -0500 From: "Engineering" To: References: <200903010045.44904.man@email.com.ua> <200903031516.02744.hselasky@c2i.net> <200903032006.54451.man@email.com.ua> <200903032243.31914.hselasky@c2i.net> <000f01c9c8dd$c4fdba20$4ef92e60$@com> In-Reply-To: <000f01c9c8dd$c4fdba20$4ef92e60$@com> Date: Thu, 30 Apr 2009 21:04:46 -0500 Message-ID: <009e01c9ca01$356cca70$a0465f50$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcmcSO3rsx4coY1oRzqYjCTzpIsCPgsh3xJwAEv5FfA= Content-Language: en-us X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - caprica.sslcatacombnetworking.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - athyriogames.com X-Source: X-Source-Args: X-Source-Dir: Subject: Bad USB port explanation? 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, 01 May 2009 02:04:51 -0000 Hi all. Hans Petter has been very generous with his time helping me with this, but I'm now seeing some strange behavior, which maybe someone has seen something similar or has an opinion Still having problems running USB webcam on FreeBSD. Running of Intel D945PLNM board, nVidia 9500GT series video card. Storage is compact flash, with a CF-IDE adapter. Webcam is no-name Chinese, which is supposed to conform to UVC spec - no other documentation The application can display the video and framerate in realtime, and also reconnect the camera on error. Only on one USB port is it going haywire. I can disconnect the camera while the app is running, move it to another port, and it pops up at 30fps. Move it back to the top left port, and it goes bad again. >From my point of view (driver and application) there is no difference in ports - I'm just talking to /dev/ugen Also - If I plug the cam into a USB2.0 hub, and into the problem port, the webcam works fine. (?!?) Power issue? I would call it just a bad port, but then why would it work with a hub into the port? We have a couple hundred of these boards in stock, and would like to use them. Thanks, Sam From owner-freebsd-usb@FreeBSD.ORG Fri May 1 02:44:51 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CBA1106564A for ; Fri, 1 May 2009 02:44:51 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 1458D8FC16 for ; Fri, 1 May 2009 02:44:50 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id n412g9lo028107; Thu, 30 Apr 2009 20:42:09 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 30 Apr 2009 20:42:12 -0600 (MDT) Message-Id: <20090430.204212.-859615870.imp@bsdimp.com> To: ee@athyriogames.com From: "M. Warner Losh" In-Reply-To: <009e01c9ca01$356cca70$a0465f50$@com> References: <200903032243.31914.hselasky@c2i.net> <000f01c9c8dd$c4fdba20$4ef92e60$@com> <009e01c9ca01$356cca70$a0465f50$@com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: Bad USB port explanation? 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, 01 May 2009 02:44:51 -0000 In message: <009e01c9ca01$356cca70$a0465f50$@com> "Engineering" writes: : Only on one USB port is it going haywire. I can disconnect the camera while : the app is running, move it to another port, and it pops up at 30fps. Move : it back to the top left port, and it goes bad again. I've seen three things cause this. 1: static damage. 2: improper balancing of the inputs and 3: overloaded hub for other ports... Warner