Posted: 11/7/2007 3:18:15 AM EDT
|
I've been in IT for 12 years now and have only played with Linux on a limited basis. The other day I pulled 2003 Server off of my home server and XP Pro off of my Laptop and replaced them with Ubuntu Distributions. This has really renewed my interest in computers again. I'm actually excited to be in IT again! So I've been in the process of trying to replicated what I did have on the laptop. I had Iguidance for GPS Navigation and found that the Linux equivalent is going to be gpsdrive, openstreetmap project and gpsbabel. I have gpsdrive working for the most part but I am unable to get the software to download a local map. So there I may need to just download a JPG or something along that line. I would like to be a part of the openstreetmap project so that there will be better maps out there. The openstreetmap project requires uploads in a GPX format and from what I read the best way to do that is using gpsbabel. I've played around with it a bit and was able to get output into a kml file for live tracking in Google Earth but I am unable to get the GPX output file that I desire. Here is the command that I am using gpsbabel -i nmea -f /dev/ttyUSB0 -o gpx -F test.gpx However, when I enter that command it jumps to the next line and just sits there. It also does that with the KML output for Google Earth but it also creates the KML file and is constantly refreshing it. When I look in the directory with the GPX output there is not file. I hit CTRL-C at the command line to stop and still see no test.gpx file. Does anyone here use gpsbabel and if so do you have any ideas? |
|
# gpsbabel -i nmea -f /dev/ttyUSB0 -o gpx -F test.gpx I've never used this or anything related to GPS before so I can't say what's going wrong for sure. The stalling sounds like the program is waiting for something from stdin. My guess is that your input file is wrong; your input file is a device driver file (/dev/ttyUSB0). From my experience, /dev/ttyUSB0 is usually used for a serial connection (RS232) over a serial-to-USB adapter such as the PL203 (I forget the exact designation of this common adapter). Are you using this to connect directly to your GPS unit? Assuming that nmea is a filetype of an actual file and not a pointer to a device, I suggest using an actual file instead of a device driver. Another thing is try not designating an output file and some kind of default output file name should come out, but that's probably not the problem. Goodluck. ETA: Sorry, I should have read more carefully the first time. If it's possible to convert a KML file to gpx it might work if you use that for an input file. Sorry I can't be of more help. |
|
Thanks for the advice guys. I got a bit more info while playing on my way to work today. The command gpsbabel -i nmea -f /dev/ttyUSB0 -o kml -F test.kml continuously updates the test.kml file which is then readable in Google Earth (That would be sweet if I could get Google Earth to auto refresh that KML file for tracking it would be sweet). So converting the kml file to gpx is no big deal using gpsbabel. Basically what I am doing is directly connecting to the GPS device and collecting data as I drive. My area is not mapped at all so I have a lot of driving around to do :) --Scott |