Re: [Gpsbabel-misc] Real-Time with CSV to show only most current point
Brought to you by:
robertl
From: Robert L. <rob...@gp...> - 2011-12-21 17:26:27
|
Looks like I might need to focus on piping the real-time strings directly > to my program so that I can capture the satellite and accuracy > information. My folks dig that sort of thing. > Your folks are then likely to be disappointed in GPSBabel for this sort of thing. It really is an oddity to us. It was funded by Google for realtime tracking in Earth for the sole purpose of putting a car and a breadcrumb on a map. (That model made some sense in 2006, but with smart phones it really doesn't now.) We really don't try to be a full Garmin PVT->NMEA converter or Delorme->PVT converter, for example. We use the minimum to put a picture on a moving map. Things like VTG, GSA, and GSV data just aren't something we try to preserve. It sounds like tools like gpsd or gpsgate are closer to what you're looking for. > ** One more thing, if I have a garmin unit in garmin mode and do > something like this: > > gpsbabel –T –i garmin –f com1 –o nmea –F d:\gistemp\nmea.txt**** > > What is happening? It appears to be spitting out NMEA strings so is it > putting my GPS into NMEA mode? > No. It's reading Garmin's PVT protocol. We don't decode it all, only the part we care about (lat, lon, alt, course, speed, time, fix) and then we store that in an internal format. We then write NMEA from that format. We don't process almanac, constellation, strength of relative SV or other things that it sounds like you care about. Since all the serial Garmins will do NMEA (which isn't true with the USB models) and you want NMEA, why involve GPSBabel in this at all? > ** > > ** GPS Babel is invaluable to me and I greatly appreciate your work. > Thanx. Even if we're not the tool you're looking for, please send people to http://www.gpsbabel.org/contribute.html :-) > ** ** > > Thanks!**** > > ** ** > > Chris**** > > ** ** > > *From:* rob...@gm... [mailto:rob...@gm...] *On Behalf Of *Robert > Lipe > *Sent:* Wednesday, December 21, 2011 10:04 AM > > *To:* Pouliot, Christopher (DNR) > *Cc:* GPSBabel-misc > *Subject:* Re: [Gpsbabel-misc] Real-Time with CSV to show only most > current point**** > > ** ** > > ** ** > > On Wed, Dec 21, 2011 at 9:36 AM, Pouliot, Christopher (DNR) < > Chr...@st...> wrote:**** > > I’m reading through the Real-time documentation:**** > > *gpsbabel -T -i garmin -f usb: -o kml -F xxx.kml***** > > *Will read the USB-connected Garmin and rewrite 'xxx.kml' atomically, > suitable for a self-refreshing network link in Google Earth. ***** > > I run this: gpsbabel –T –I nmea –f com1 –o kml –F d:\gistemp\test.kml*** > * > > **** > > When running this from a command prompt it appends to the KML file. > Shouldn’t it be overwriting the KML with only the most current point?**** > > ** ** > > Actually, that command should be giving you a syntax error.**** > > ** ** > > I won't have time to confirm what you're describing until after the > holidays, but if it's true, that's a bug. **** > > ** ** > > ** ** > > **** > > Also, If doing NMEA real-time to a KML file, does the KML output > contain all NMEA information by default? I see that there is a table in > the KML with a few things – Lat, Long, Alt, Speed, Heading, Time. Or is > the only way to get all NMEA information by setting my output to be NMEA > format?**** > > ** ** > > No, it doesn't make sense to present satellite position and all the other > stuff in NMEA.**** > > ** ** > > RJL**** > > **** > > **** > > Chris**** > > **** > > *From:* Pouliot, Christopher (DNR) [mailto:Chr...@st...] > > *Sent:* Tuesday, December 20, 2011 1:32 PM > *To:* Robert Lipe**** > > > *Cc:* GPSBabel-misc > *Subject:* Re: [Gpsbabel-misc] Real-Time with CSV to show only most > current point**** > > **** > > Gpsbabel appears in my Task Manager processes as running and I don’t think > it is writing a file anywhere so I’m thinking that it is doing what it is > suppose to do but I’m missing one step of the process to grab that info > that’s being piped. Thanks for the advice and I’ll hold out to see if > anyone else out there has any further clues.**** > > **** > > Chris **** > > **** > > *From:* rob...@gm... [mailto:rob...@gm...] *On Behalf Of *Robert > Lipe > *Sent:* Tuesday, December 20, 2011 1:11 PM > *To:* Pouliot, Christopher (DNR) > *Cc:* GPSBabel-misc > *Subject:* Re: [Gpsbabel-misc] Real-Time with CSV to show only most > current point**** > > **** > > **** > > On Tue, Dec 20, 2011 at 12:54 PM, Pouliot, Christopher (DNR) < > Chr...@st...> wrote:**** > > Robert,**** > > **** > > I’m not sure how to do that. This is the command I’m sending to GPSBabel > from my C# application (It works when I have an output file specified):*** > * > > **** > > "-T -i nmea -f com1 -o csv -F -"**** > > **** > > That's correct from our side. There's definitely code in xcsv.c to make > this work, but it's worth disclaiming that this is probably not well > exercised as it's not really what we do.**** > > **** > > From what I’ve Googled I think I need to do a ReadToEnd on the Process > object that I’m using to run GPSBabel but that just returns a blank > string. Any hints? Or is there any example code out there?**** > > **** > > I don't program in C#. Perhaps someone else out there can help you with > that. Based solely on the name of the method, that's probably wrong; you > don't want to read until the pipe is closed; you want to read individual > lines as they become available. But that's better answered by someone > that actually knows C#.**** > > **** > > RJL**** > > **** > > **** > > **** > > **** > > Your help is greatly appreciated!**** > > **** > > Chris**** > > **** > > *From:* rob...@gm... [mailto:rob...@gm...] *On Behalf Of *Robert > Lipe > *Sent:* Tuesday, December 20, 2011 11:31 AM > *To:* Pouliot, Christopher (DNR) > *Cc:* GPSBabel-misc > *Subject:* Re: [Gpsbabel-misc] Real-Time with CSV to show only most > current point**** > > **** > > **** > > On Tue, Dec 20, 2011 at 11:03 AM, Pouliot, Christopher (DNR) < > Chr...@st...> wrote:**** > > Hello all, **** > > **** > > I’m trying to do real-time tracking to a csv file. I’m able to get it to > work but what I’d like is for the most current location to overwrite the > previous so that my file contains only the most recent point (similar to > what is done with real-time to a KML file). Is there an option I can set > to do this?**** > > **** > > Not really. To get a similar effect, let GPSBabel output to a piple (-F > -) and let your program read from the pipe. **** > > **** > > ** ** > |