From: fAu on 19 Dec 2008 01:42 > I have tried enabling every USB option that I could > think might affect the problem, but no. > > Any ideas? last summer i had similar problem about gpsbabel + garmin edge 205 and i tried garmin option in kernel, usbserial with correct product vendor, udev rules but the only way was: su -c "gpsbabel -t -i garmin -f usb: -o gpx -F tracks.gpx" (thanks to marco aka negher) -- --- bye, fAu maaa ..... ringhamboni si nasce o si diventa ?
From: root on 19 Dec 2008 10:24 Beej Jorgensen <beej(a)beej.us> wrote: > root <NoEMail(a)home.org> wrote: >>> gpsbabel -i garmin -f /dev/ttyUSB0 -o gpx -F outfile.gpx >> > > These are the default waypoints that come on Garmin GPSen. Do you have > waypoints on your GPS besides those? Or are you just recording tracks? I don't have any waypoints recorded. I just run on the street with the timer started and mark laps at various times. > > gpsbabel -t -i garmin -f /dev/ttyUSB0 -o gpx -F outfile.gpx > ^^ > Add the -t switch to tell gpsbabel to get tracks. (You can use -w and > -t to get both waypoints and tracks; -w is the default.) > I still have the data from my last run in the Forerunner. I ran your gpsbabel command and got this message to the console: [ERROR] GPS_Packet_Read: Timeout. No data received. [ERROR] A301_Get: Non-Pid_Trk_Data The outfile.gpx was shorter than before: <?xml version="1.0" encoding="UTF-8"?> <gpx version="1.0" creator="GPSBabel - http://www.gpsbabel.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topografix.com/GPX/1/0" xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd"> <time>2008-12-19T15:17:36Z</time> </gpx> It is clear that gpsbabel is trying to talk to the device.
From: root on 19 Dec 2008 10:29 fAu <abcde(a)fghi.xyz> wrote: >> I have tried enabling every USB option that I could >> think might affect the problem, but no. >> >> Any ideas? > > last summer i had similar problem about gpsbabel + garmin edge 205 and i > tried garmin option in kernel, usbserial with correct product vendor, udev > rules but the only way was: > > su -c "gpsbabel -t -i garmin -f usb: -o gpx -F tracks.gpx" > > (thanks to marco aka negher) > Thanks for responding. I am using the 305, but I suppose the two should be identical as far as downloading is concerned. When I ran your command I got: Found no Garmin USB devices. Whereas with the -f /dev/ttyUSB0 gpsbabel tried to access the device.
From: root on 19 Dec 2008 10:47 Beej Jorgensen <beej(a)beej.us> wrote: > root <NoEMail(a)home.org> wrote: >>> gpsbabel -i garmin -f /dev/ttyUSB0 -o gpx -F outfile.gpx >> >>I had just erased my history when I read your note. I ran >>gpsbabel and got this output: >> <name>GARMIN</name> >> <name>GRMEUR</name> >> <name>GRMTWN</name> > > These are the default waypoints that come on Garmin GPSen. Do you have > waypoints on your GPS besides those? Or are you just recording tracks? > > gpsbabel -t -i garmin -f /dev/ttyUSB0 -o gpx -F outfile.gpx > ^^ > Add the -t switch to tell gpsbabel to get tracks. (You can use -w and > -t to get both waypoints and tracks; -w is the default.) > >>A very good sign is that if I cat </dev/ttyUSB0 I don't get >>the missing device message, but I don't get anything else >>either. > > That's not going to do anything since cat isn't speaking the garmin > protocol. But it's good that you didn't get the error. > > -Beej > Follow up to my last follow up: As I look at the face of the device it says:"Transfer complete" and beeps at me when I run the gpsbabel command. I was able to look at the stored data with my wife's Windows machine so there is valid data in there. Thanks again. I think we are very close.
From: Beej Jorgensen on 19 Dec 2008 13:07
root <NoEMail(a)home.org> wrote: >I don't have any waypoints recorded. I just run on the street >with the timer started and mark laps at various times. For the sake of experimentation, drop a waypoint or two and then see if you can recover them with gpsbabel. >I still have the data from my last run in the Forerunner. I ran >your gpsbabel command and got this message to the console: > >[ERROR] GPS_Packet_Read: Timeout. No data received. >[ERROR] A301_Get: Non-Pid_Trk_Data Dang--I was hoping that would solve it. What version of the kernel are you running? The garmin serial driver used to be broken, I've just remembered. Also see this: http://www.gpsbabel.org/os/Linux_Hotplug.html You could try: rmmod garmin_gps gpsbabel -t -r -w -i garmin -f usb: -o gpx -F blah.gpx Never used that method myself, though. I'd been compiling my own kernels with the driver patched. (Now I have 2.6.26.5 and the stock garmin_gps driver works.) -Beej |