BUG Community

Welcome! Log In

Forums BUG SDK GPS logfile data format

Subscribe to GPS logfile data format  4 posts, 3 voices

Log in to reply to this topic
 
Sep 26, 2007 5:01pm
Img_missing_medium koolatron 52 posts

Playing around with the new BUGWeather (and LatLonConverter and FlickrUppr) application, I realized it was necessary to give the virtual BUG a GPS logfile to pull its location data from. What format does this file have to be in? I’m guessing NMEA, but a quick look around didn’t turn up any obvious answers.

For those of us without real GPS devices, would it be possible for someone to post an appropriate logfile for testing?

Sep 26, 2007 6:20pm
Img_missing_medium aroman 21 posts

Hi Koolatron,

You are correct; the emulator expects a NMEA 0813 v2.2 compatible log file. Currently, you can get away with just providing RMC sentences in your own log files. If you do not specify a log file, the emulator will use it’s own.

The embedded log file was generated at BugLab’s head quarters (that’s why everything points to New York, NY 10010).

You can generate your own GPS log by:

Real method:
1) Having your own gps attached to your computer and use "cat /dev/ttyUSB0 > gps.log" or save the log file from a terminal emulator program like minicom, hyperterminal, puttytel, etc.

or

Virtual method:
1) Use Google Earth to draw a route
2) Save the route into a kml file to an nmea file
3) Use gpsbabel (http://www.gpsbabel.org/) to translate the kml file to nmea.

The gps log file should contain sentences like (At the moment we only pay attention to GPRMC sentences):
$GPRMC,181225.5,V,4044.29967,N,07359.38777,W,,,130907,,,N*63

I’m sure you can figure out the virtual method yourself, however, stay tune for a howto on the wiki.

Let me know if this answered your question.

Regards,
Angel

Sep 28, 2007 11:42am
Img_missing_medium aroman 21 posts

Below you will find a link explaining how to generate your own gps log file using GoogleEarth and gpsbabel. It’s really helpful since you don’t have to drive/ride/walk around with a gps and pda/notebook strapped on you to capture a log file.

http://bugbeta.com/wiki/index.php/Generating_a_…

Regards,
Angel

Oct 8, 2007 10:37pm
Medium Bug Labs team finsprings 268 posts

I might have missed it on the Wiki, but it wasn't immediately obvious to me where to specify the log file. In case anyone else has the same problem, here's what you need to do (once you've got a file with NMEA data in it).

1) In Eclipse select Run/Open Run Dialog from the main.
2) You should see a dialog like this:



3) Select the Normal Mode entry under Virtual BUG is selected in the left-hand pane.
4) Right-click on it and select Duplicate. (Skip this step if you want to just edit the Normal Mode entry).
4) Fill in the GPS Log field in the right-hand pane.
5) Press Apply to save your changes.

Next time you run it should use your GPS data instead of the default.
Log in to reply to this topic
Forums BUG SDK GPS logfile data format

Powered by Community Engine

Top
Login
Close
Bottom