Hello there, i am new to usb, so maybe its just a simple error. Im am trying to communicate with a garmin gps receiver using java/jUSB and the /proc/bus/usb interface on a linux box running gentoo linux with a 2.6.5er kernel.
The device is recognized by linux (vendor id 0x091e, product id 3 in the /proc/bus/usb/devices listing below). In my java code i do the following: - search for the device - claim the devices interface (3 endpoints, interrupt in, bulk in/out) - writing some data to bulk-out to start a new session according to garmins usb-protocol spec. Then i receive an error code 71 (protocol error) from the usb subsystem and in the syslog i find (after enabling debug output in the kernel modul): Stalled CRC/Timeo Length=3f MaxLen=3f DT0 EndPt=2 Dev=3, PID=e1(OUT) (buf=14 c094c0) Any idea what i am doing wrong ? By the way, the usb system works fine with a scanner, a digital camera or a smart card reader. Also if i boot xp the garmin receiver works fine, so i don't think, its a hardware problem. Here comes some system information: syslog adding the garmin receiver: Apr 17 07:36:50 gotham ehci_hcd 0000:00:1d.7: GetStatus port 2 status 003002 POWER OWNER sig=se0 CSC Apr 17 07:36:50 gotham hub 1-0:1.0: port 2, status 0, change 1, 12 Mb/s Apr 17 07:36:50 gotham ehci_hcd 0000:00:1d.7: GetStatus port 3 status 001803 POWER sig=j CSC CONNECT Apr 17 07:36:50 gotham hub 1-0:1.0: port 3, status 501, change 1, 480 Mb/s Apr 17 07:36:50 gotham hub 1-0:1.0: debounce: port 3: delay 100ms stable 4 status 0x501 Apr 17 07:36:50 gotham ehci_hcd 0000:00:1d.7: port 3 full speed --> companion Apr 17 07:36:50 gotham ehci_hcd 0000:00:1d.7: GetStatus port 3 status 003801 POWER OWNER sig=j CONNECT Apr 17 07:36:50 gotham uhci_hcd 0000:00:1d.1: wakeup_hc Apr 17 07:36:50 gotham uhci_hcd 0000:00:1d.1: port 1 portsc 0083 Apr 17 07:36:50 gotham hub 3-0:1.0: port 1, status 101, change 1, 12 Mb/s Apr 17 07:36:51 gotham hub 3-0:1.0: debounce: port 1: delay 100ms stable 4 status 0x101 Apr 17 07:36:51 gotham usb 3-1: new full speed USB device using address 3 Apr 17 07:36:51 gotham usb 3-1: new device strings: Mfr=0, Product=0, SerialNumber=0 Apr 17 07:36:51 gotham drivers/usb/core/usb.c: usb_hotplug Apr 17 07:36:51 gotham usb 3-1: adding 3-1:1.0 (config #1, interface 0) Apr 17 07:36:51 gotham drivers/usb/core/usb.c: usb_hotplug Apr 17 07:36:51 gotham usbserial 3-1:1.0: usb_probe_interface Apr 17 07:36:51 gotham usbserial 3-1:1.0: usb_probe_interface - got id Apr 17 07:36:51 gotham usb.agent[5975]: ... no modules for USB product 91e/3/1 /proc/bus/usb/devices: T: Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.5-gentoo uhci_hcd S: Product=Intel Corp. 82801DB USB (Hub #3) S: SerialNumber=0000:00:1d.2 C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.5-gentoo uhci_hcd S: Product=Intel Corp. 82801DB USB (Hub #2) S: SerialNumber=0000:00:1d.1 C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=ff(vend.) Sub=ff Prot=ff MxPS= 8 #Cfgs= 1 P: Vendor=091e ProdID=0003 Rev= 0.01 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none) E: Ad=81(I) Atr=03(Int.) MxPS= 64 Ivl=1ms E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=83(I) Atr=02(Bulk) MxPS= 8 Ivl=0ms T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.5-gentoo uhci_hcd S: Product=Intel Corp. 82801DB USB (Hub #1) S: SerialNumber=0000:00:1d.0 C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=ff MxPS= 8 #Cfgs= 1 P: Vendor=04a9 ProdID=220d Rev= 1.00 S: Manufacturer=Canon S: Product=CanoScan C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=500mA I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=ff Driver=(none) E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=16ms E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 6 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS= 8 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.5-gentoo ehci_hcd S: Product=Intel Corp. 82801DB USB2 S: SerialNumber=0000:00:1d.7 C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=256ms /proc/driver/uhci/0000\:00\:1d.1: HC status usbcmd = 00c1 Maxp64 CF RS usbstat = 0000 usbint = 000f usbfrnum = (0)044 flbaseadd = 1c020044 sof = 40 stat1 = 0095 Enabled Connected stat2 = 0080 Frame List Skeleton QH's syslog after writing to bulk.out endpoint: Apr 17 07:42:11 gotham uhci_hcd 0000:00:1d.1: uhci_result_common: failed with status 440000 Apr 17 07:42:11 gotham [dbc8b240] link (1bc8b212) element (1bcb5040) Apr 17 07:42:11 gotham 0: [dbcb5040] link (00000001) e0 SPD IOC Stalled CRC/Timeo Length=3f MaxLen=3f DT0 EndPt=2 Dev=3, PID=e1(OUT) (buf=14c094c0) Apr 17 07:42:11 gotham Apr 17 07:42:11 gotham usbfs: USBDEVFS_BULK failed dev 3 ep 0x2 len 64 ret -71 thabks for your help, hermann ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
