Read NMEA stream from a GPS and save position in <extrava

Questions? Suggestions? Need help? Talk about anything related to Yawcam...
Post Reply
Lars H.
Posts: 12
Joined: Mon Oct 17, 2011 5:48 pm

Read NMEA stream from a GPS and save position in <extrava

Post by Lars H. »

I would like to present the position of my webcam as a text overlay to the picture. Any who know a usable program/script to read the NMEA stream from a GPS-receiver connected to a USB (com-port) every 5th. 10th. second or so, and save the position in a {position}.txt file? A format like Lat: N59 58.3060 Lon: 010 59.600 would be fine.

Lars H.
Bonzo
Posts: 13
Joined: Mon Feb 28, 2011 8:26 pm

Post by Bonzo »

Are you sure your format is as you desire it?

I can probably have this ready in a day or two.
It's already working with hard-coded COM port info...
Bonzo
Posts: 13
Joined: Mon Feb 28, 2011 8:26 pm

Post by Bonzo »

Well THAT was faster than I expected...

http://dl.dropbox.com/u/24159011/GPSlogger.exe

I don't have a GPS device here at the moment, so it's only tested with old log data.
It's a command line application that lets you specify the port config and interval.

The software does nothing bad, but it does make a single file request from my server at startup, then deletes that file again.
It's an empty file, so it won't hurt your dataplan or anything like that.
I included it because of my own curiosity about how often my app is used.
You can confirm this for yourself using Wireshark or similar software, if you want.

My email is in the app, so send me an email if there's any problem.


I guess it's a "Take it or leave it" situation.
Lars H.
Posts: 12
Joined: Mon Oct 17, 2011 5:48 pm

Post by Lars H. »

Hi.

The app started up quite OK, see my print screen, and the setup was written to a gpslogger.cfg file with the correct com-port, baud rate, parity and stop bits. But then nothing happens, and I can't find any location.txt file.

Image

At the next startup. the app reads the config file, but still no positions are read.

Image

Lars H.
Bonzo
Posts: 13
Joined: Mon Feb 28, 2011 8:26 pm

Post by Bonzo »

Hmmm....

It was a case of "this SHOULD work, but I can't test it" and I guess something failed.
I'll have to look at this when I get home, and find a GPS device.
I don't think it's a HUGE problem to fix...

I'll get back to you.
Lars H.
Posts: 12
Joined: Mon Oct 17, 2011 5:48 pm

Post by Lars H. »

Great, its no hurry. And the output could as well be exactly as retrieved from the $GPRMC sentence like 5958.3602,N,01059.6005,E
By the way, my GPS-receiver is a Globelsat BU-353 unit for USB connection.
For more info you may also contact me by e-mail (in Norwegian!/English) at siddisen<@>gmail.com (Discard the <>)

Lars H.
my webcam when online:
trudelutt.zapto.org:8888
(position overlay hard coded)
Lars H.
Posts: 12
Joined: Mon Oct 17, 2011 5:48 pm

Post by Lars H. »

Some more information:
The GPS-receiver is realy sendig NMEA. I have installed Fransons GpsGate, and at the same time as GPSlogger is running, I do receive data to both GPSinfo, VisualGPS and a Haicom wiever.

Lars H.
Bonzo
Posts: 13
Joined: Mon Feb 28, 2011 8:26 pm

Post by Bonzo »

Ok, I've finally been able to test it with my own Holux GPSlim240 Bluetooth GSP, and it works for me.
The current version: 1.0.0.2 can be found here: http://dl.dropbox.com/u/24159011/GPSlogger.exe

There are a few options and features I'd like to include, but that will have to be at a later time.
Anyway, the application will notify you (discretely) if there's a newer version available...

Good luck!
Bonzo
Posts: 13
Joined: Mon Feb 28, 2011 8:26 pm

Post by Bonzo »

Version 1.0.0.5 is released.
I can't find anything wrong with it, but if you do; my email is in the app.

New URL: http://harald.geving.no/files/gpslogger.exe

It requires .NET framework 3.5, but I assume most of you already have that installed.
Have a nice day!
Lars H.
Posts: 12
Joined: Mon Oct 17, 2011 5:48 pm

Post by Lars H. »

Thanks a lot Bonzo, your last revision 1.0.0.6 works 100%!

Lars H.
Post Reply