HomeSoftware


GPS Software to Save Latitude, Longitude, and Location Name to CSV
Lars H.
Interesting tread, and I have a simple question to MrUmbra. I have a Globalsat BU-353 GPS connected to one USB port at my laptop (running Win7 64bit). I want a small program to start the GPS, read the position and write the position to a text file named {position}.txt every 5th., 10th. second or so, preferably in the form: Lat: N59 58.361 Lon: E010 59.600.

I think this would be 'A piece of Cake' for you MrUmbra?

I need this text file content to be used as a variable to be displayed as an overlay text in the picture from my webcam I have in my leisure boat.

Lars H.
(Norway)
SpadesFlush
While I am not MrUmbra, I might suggest that Streets and Trips or its European sister AutoRoute can GPS data and save it. This would come if you select the "Create a GPS trail" feature. It captures the data once per second but once it is imported into Excel, you can write a macro that isolates only the data you want.
MrUmbra
Lars,

Some time ago, I wrote a simple logging utility and provided it here:

http://www.laptopgpsworld.com/attachments/1658d1267126249-loggps.zip

Maybe you can use it as is.

--- CHAS
Lars H.
Thanks a lot, that program runs perfect, but I don't know how to extract just the position from the continuous updating log file, and write it to another file to be used as a variable to my webcam program. It's now more than 20 years since I did some reall programming. The only programming I do nowadays is in PHP for my home pages.

Lars H.
MrUmbra
Attached is the software requested by LarsH.

--- CHAS
Attached Files
File Type: zip Lars.zip (256.9 KB)
Lars H.
Thanks, the zip-file arrived OK I think. I'll test it tomorrow, it's midnight now here in Norway.

Lars H.
Lars H.
Sorry, but the program does not work, only showing "S 0 00.00 W 0 00.00" in the browser window and in the text file.

Lars H.
MrUmbra
That's so disappointing. I downloaded lars.zip and tried it here. Attached is a screen shot of how it looks with my iBlue GM2 on COM10, 115200 baud.

The LED lights green when the fix is valid otherwise it's red. But, whats puzzling is the text file doesn't get written if the fix isn't valid. Perhaps there's a something about the NMEA GPRMC sentence that my parsing code isn't handling properly. That's still kind of odd if you were able to run the .csv software .. all my GPS apps use the same engine.

Maybe someone else here can run it. I'll try it with another GPS receiver tomorrow.

--- CHAS
Attached Images
lars.png  
tcassidy
Runs fine here with a BU-353 @ 4800 on COM 7. Windows 7 64 bit.

Terry
Attached Images
bu-353.jpg  
tcassidy
I also tried it with a Garmin BT 10x on COM 46 probably at 4800bps on a Win XP computer.

Terry
Attached Images
10x.jpg  
Lars H.
Hi.

My first test was with a PC running Win XP Pro, but no position showed up, just: S 0.00.00 W 0.00.00

With another laptop (and that's the PC I'm going to use) running Win7 Home premium 64bit it's OK, see the screen dump together with a sky plot.

But if it is possible, I would like to have 4 decimals to comply with other programs?
Attached Images
gpspos.gif  
MrUmbra
Bizarre .. I compiled and tested the software on my Thinkpad running XP Pro.

Thanks to those who helped by running it. I was thinking it might be an eastern hemisphere thing but I'm sure I tested the GPS engine with simulated data many years ago when I wrote its code.

I'll look into more precision .. two decimal places is rather stingy.

--- CHAS
scotangerine
Dear Sir,

I just came across your excellent software today and it is extremely helpful in my fleet tracking project!!!

Is it possible to have your source code for this program so that I can try to modify according to the needs of my project without troubling you to modify for me?

Thanks in advance!

Cheers~

Edward
MrUmbra
The software is written in Borland Delphi 5 (Object Pascal) so I doubt you will have the facilities to modify and compile it to fit your needs. Then there would be an issue with third party components that implement part of the visual interfaces.

I wrote the GPS Com component many years ago. You can download it here:

Delphi GPS Component 1.0

That will provide some insight into Object Pascal.

Surprisingly, the Delphi 5 code still runs on Windows 7.

--- CHAS
MrUmbra
For Lars H. Four digits of precision.

--- CHAS
Attached Files
File Type: zip Lars(2).zip (260.3 KB)
laptopgpsworld.com About