GPS logfile data format

 
Post new topic   Reply to topic    Bug Labs Forum Index -> BUG SDK
View previous topic :: View next topic  
Author Message
koolatron



Joined: 25 Sep 2007
Posts: 52
Location: Cary, NC

PostPosted: Wed Sep 26, 2007 4:01 pm    Post subject: GPS logfile data format Reply with quote

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?
Back to top
View user's profile Send private message Send e-mail AIM Address
aroman



Joined: 25 Sep 2007
Posts: 21

PostPosted: Wed Sep 26, 2007 5:20 pm    Post subject: Reply with quote

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
_________________
Bug Labs
Back to top
View user's profile Send private message
aroman



Joined: 25 Sep 2007
Posts: 21

PostPosted: Fri Sep 28, 2007 10:42 am    Post subject: Reply with quote

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_GPS_log_file

Regards,
Angel
_________________
Bug Labs
Back to top
View user's profile Send private message
finsprings



Joined: 25 Sep 2007
Posts: 267
Location: Pittsburgh, PA

PostPosted: Mon Oct 08, 2007 9:37 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Bug Labs Forum Index -> BUG SDK All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

FAQ   |   Search   |   Memberlist   |   Usergroups   |   Register   |   Profile

Email forums administrator

Bannersmonster.Com © 2007
Powered by phpBB © 2001, 2002 phpBB Group
Designed by:linux hostingHotel