GPS tracks. iPhone. NMEA Data. Yes, you can
Why would you want NMEA logs from your iPhone? Well... it's a GPS. And you have it. And sometimes NMEA logs are handy...
I need raw NMEA logs from a GPS. Doesn't matter why. Ok, you dragged it out of me.... working with Qt Mobility on a desktop, you can use a canned GPS NMEA log to test your app without needing an actual GPS, or needing to move.
I have an iPhone 4. It has a pretty decent GPS in it. Should be easy, right? Well, not exactly, since the GPS is abstracted away behind the location apis. No worries though, because there's an app for that...
Just follow these simple 127 steps:
- Install GPSed (the free one is fine) from the App store, and sign up for a free account on GPSed.com
- Install gpsbable from http://www.gpsbabel.org/
- Fire up GPSed on your iPhone, and log into your GPSed.com account
- Start a new Track
- Drive/Walk about.
- Finish the Track, and upload it to GPSed.com from the app.
- Back at the desktop, login to GPSed.com, find your new track, and export it to GPX
- Run the magic gpsbable command:
gpsbabel -i gpx -f infile.gpx -x track,fix=3d -o nmea -F nmeaout.log
There you go... nmea data. The -x track,fix=3d bit munges the data up to better look like a real GPS raw data dump.
Not my discovery, I just cobbled it togeather from teh internets.