← Back to team overview

igotu2gpx team mailing list archive

[Bug 394297] Re: can only connect once.

 

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 :-).

-- 
can only connect once. 
https://bugs.launchpad.net/bugs/394297
You received this bug notification because you are a member of
MobileAction i-gotU USB GPS travel logger Mac/Linux support developers,
which is subscribed to igotu2gpx.

Status in MobileAction i-gotU USB GPS travel logger Mac/Linux support: New

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#



References