can only connect once.

Bug #394297 reported by rew
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
igotu2gpx
New
Undecided
Unassigned

Bug Description

The whole system seems unreliable. Now just one "info" request causes the i-gotU to misbehave.

getafix:/home/wolff/i-gotu/igotu2gpx-0.2.2# igotu2gpx -v info
usb_set_debug: Setting debugging level to 255 (on)
usb_os_find_busses: Found 001
usb_os_find_devices: Found 027 on 001
usb_os_find_devices: Found 003 on 001
usb_os_find_devices: Found 006 on 001
usb_os_find_devices: Found 004 on 001
usb_os_find_devices: Found 005 on 001
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
USB error: could not get bound driver: No data available
Retrieving info...
Command: 930101030000000000000000000000
Result size: 0x0000
Result data:
Command: 930a00000000000000000000000000
Result size: 0x000a
Result data: 7fc50300030500011100
Command: 9305040003019f0000000000000000
Result size: 0x0003
Result data: c22015
Command: 930b03001d00000000000000000000
Result size: 0x0003
Result data: 000e25
Command: 930507100004030000000000000000
Result size: 0x1000
Result data: 010d8d20ff0fff3c00f1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000003c3c0009011502c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f01010101280000000000000000000000003c3c0005000000c80c012c3205140101010202050a0a186a0c3504e200bb01171e000108080404020202020000200f0101010128000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0a2001980ffd27beb004bc862002892af00017700013a188405a70c880924b0b3000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003211a0a2000997000000c8000000c80227b0b3000000000000000000000000003217a0a2000fa7000003e8002dc6c00000070800010319b0b30000000000000032000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000102030405060708090a0b0c0d0e0f
Command: 930101000000000000000000000000
Failed protocol (ignored): Response too short: expected 3, got 0 bytes
S/N: 247167
Firmware version: 3.05
Model: GT-120
Number of trackpoints: 3621
Schedule date: Tuesday, June 30, 2009
Schedule date offset: 0 days
Schedule table: disabled
Log interval: 10 s
Interval change: above 10 km/h, use 3 s
LEDs: enabled
Button: enabled
Security version: 0
Password: disabled, []

getafix:/home/wolff/i-gotu/igotu2gpx-0.2.2# igotu2gpx -v info
Retrieving info...
usb_set_debug: Setting debugging level to 255 (on)
usb_os_find_busses: Found 001
usb_os_find_devices: Found 003 on 001
usb_os_find_devices: Found 006 on 001
usb_os_find_devices: Found 004 on 001
usb_os_find_devices: Found 005 on 001
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
Unable to obtain info from GPS tracker: Unable to find device 0df7:0900
getafix:/home/wolff/i-gotu/igotu2gpx-0.2.2#

Revision history for this message
rew (r-e-wolff) wrote :

Probably similar to bug 394618

Revision history for this message
rew (r-e-wolff) wrote :

This may be Kernel related.

My home system:
Linux version 2.6.28-13-generic (buildd@palmer) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #44-Ubuntu SMP Tue Jun 2 07:57:31 UTC 2009

works fine (just downloaded a 49-block track). The one at work had problems.

Linux version 2.6.18-6-k7 (Debian 2.6.18.dfsg.1-24etch2) (<email address hidden>) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Tue May 5 01:21:08 UTC 2009

Another difference might be the hardware....

Revision history for this message
Michael Hofmann (mh21) wrote :

It may be very well hardware related. The current use of libusb is a hack for the interrupt transfers of the gps tracker. Normally, an asynchronous usb interrupt read must be started first, and a command may be sent *afterwards*. Because libusb (version 0.1) supports only synchronous reads and writes, the interrupt read is started right after the command is sent at the moment, which works good enough on most hardware, but may screw up the wire protocol of the gps tracker so that only a disconnect helps.

This could be fixed with a kernel driver or the use of libusb 1.0 (which only works on Linux at the moment, not Mac OS X), but I don't have enough time to implement it at the moment. If you want to have a go at it, take a look at libusbconnection.cpp/h and see whether it can be adopted for libusb 1.0 :-).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.