JL
Jim Lux
Wed, Sep 4, 2013 12:35 AM
I'm looking for an easy way to get current lat lon, when you've got a
GPS-18 hooked up for NTP. That is, the GPS receiver is there doing it's
NTP thing, so presumably it knows where it is.
If NTP is decoding the GPRMC message, it has the lat/lon in it, so how
can I get that info out (in a command line utility, into a file, or some
such)
I don't need millisecond time accuracy.. For now the GPS is just to make
sure that the time is "right".
The GPGGA sentence would also do.
And, I only need the GPS position once within a 30 second interval (it's
not moving, I just want to know where it is).
It's not like ntpd or ntpq have some handy switch that says "display
current lat/lon" (which makes sense, because NTP is fundamentally time
source agnostic).
All of this with Windows 7.
Jim
I'm looking for an easy way to get current lat lon, when you've got a
GPS-18 hooked up for NTP. That is, the GPS receiver is there doing it's
NTP thing, so presumably it knows where it is.
If NTP is decoding the GPRMC message, it has the lat/lon in it, so how
can I get that info out (in a command line utility, into a file, or some
such)
I don't need millisecond time accuracy.. For now the GPS is just to make
sure that the time is "right".
The GPGGA sentence would also do.
And, I only need the GPS position once within a 30 second interval (it's
not moving, I just want to know where it is).
It's not like ntpd or ntpq have some handy switch that says "display
current lat/lon" (which makes sense, because NTP is fundamentally time
source agnostic).
All of this with Windows 7.
Jim
JL
Jim Lux
Wed, Sep 4, 2013 12:42 AM
On 9/3/13 5:35 PM, Jim Lux wrote:
I'm looking for an easy way to get current lat lon, when you've got a
GPS-18 hooked up for NTP. That is, the GPS receiver is there doing it's
NTP thing, so presumably it knows where it is.
If NTP is decoding the GPRMC message, it has the lat/lon in it, so how
can I get that info out (in a command line utility, into a file, or some
such)
I don't need millisecond time accuracy.. For now the GPS is just to make
sure that the time is "right".
The GPGGA sentence would also do.
And, I only need the GPS position once within a 30 second interval (it's
not moving, I just want to know where it is).
It's not like ntpd or ntpq have some handy switch that says "display
current lat/lon" (which makes sense, because NTP is fundamentally time
source agnostic).
All of this with Windows 7.
I suppose one way is to turn off NTP (releasing the com port), grab some
data from the com port, parse it, then turn NTP back on.
But that seems mighty clunky...
I was hoping for some log file/debug feature that says "give me the last
sentence from the GPS".
On 9/3/13 5:35 PM, Jim Lux wrote:
> I'm looking for an easy way to get current lat lon, when you've got a
> GPS-18 hooked up for NTP. That is, the GPS receiver is there doing it's
> NTP thing, so presumably it knows where it is.
>
>
> If NTP is decoding the GPRMC message, it has the lat/lon in it, so how
> can I get that info out (in a command line utility, into a file, or some
> such)
>
> I don't need millisecond time accuracy.. For now the GPS is just to make
> sure that the time is "right".
>
>
> The GPGGA sentence would also do.
>
> And, I only need the GPS position once within a 30 second interval (it's
> not moving, I just want to know where it is).
>
> It's not like ntpd or ntpq have some handy switch that says "display
> current lat/lon" (which makes sense, because NTP is fundamentally time
> source agnostic).
>
> All of this with Windows 7.
>
I suppose one way is to turn off NTP (releasing the com port), grab some
data from the com port, parse it, then turn NTP back on.
But that seems mighty clunky...
I was hoping for some log file/debug feature that says "give me the last
sentence from the GPS".
SG
Sanjeev Gupta
Wed, Sep 4, 2013 1:23 AM
I'm looking for an easy way to get current lat lon, when you've got a
GPS-18 hooked up for NTP. That is, the GPS receiver is there doing it's
NTP thing, so presumably it knows where it is.
If NTP is decoding the GPRMC message, it has the lat/lon in it, so how can
I get that info out (in a command line utility, into a file, or some such)
I don't need millisecond time accuracy.. For now the GPS is just to make
sure that the time is "right".
The GPGGA sentence would also do.
And, I only need the GPS position once within a 30 second interval (it's
not moving, I just want to know where it is).
I would strongly suggest GPSd. It will open the COM port, to
auto-detection of speed and model of device, and you can use the builtin
utilities to spit out Lat/Lon, Time, number of satellites, etc. A full
screen monitor is available: gpsmon.
GPSd is: http://catb.org/gpsd/
All of this with Windows 7.
On Wed, Sep 4, 2013 at 8:35 AM, Jim Lux <jimlux@earthlink.net> wrote:
> I'm looking for an easy way to get current lat lon, when you've got a
> GPS-18 hooked up for NTP. That is, the GPS receiver is there doing it's
> NTP thing, so presumably it knows where it is.
>
>
> If NTP is decoding the GPRMC message, it has the lat/lon in it, so how can
> I get that info out (in a command line utility, into a file, or some such)
>
> I don't need millisecond time accuracy.. For now the GPS is just to make
> sure that the time is "right".
>
>
> The GPGGA sentence would also do.
>
> And, I only need the GPS position once within a 30 second interval (it's
> not moving, I just want to know where it is).
>
I would strongly suggest GPSd. It will open the COM port, to
auto-detection of speed and model of device, and you can use the builtin
utilities to spit out Lat/Lon, Time, number of satellites, etc. A full
screen monitor is available: gpsmon.
GPSd is: http://catb.org/gpsd/
> All of this with Windows 7.
>
This is an old port, but should still work:
- http://code.google.com/p/gpsd-4-win/
- See also:
http://sourceforge.net/apps/mediawiki/travelingsales/index.php?title=Howto/gpsd_on_windows
--
Sanjeev Gupta
+65 98551208 http://www.linkedin.com/in/ghane
BS
Bob Stewart
Wed, Sep 4, 2013 1:30 AM
One very direct way is to find some software to sniff the com port where the GPS receiver is. I'm a Linux guy, so I can't help you on that one.
Bob - AE6RV
From: Jim Lux jimlux@earthlink.net
To: Discussion of precise time and frequency measurement time-nuts@febo.com
Sent: Tuesday, September 3, 2013 7:35 PM
Subject: [time-nuts] GPS-18, Windows, NTP & Lat Lon
I'm looking for an easy way to get current lat lon, when you've got a GPS-18 hooked up for NTP. That is, the GPS receiver is there doing it's NTP thing, so presumably it knows where it is.
If NTP is decoding the GPRMC message, it has the lat/lon in it, so how can I get that info out (in a command line utility, into a file, or some such)
I don't need millisecond time accuracy.. For now the GPS is just to make sure that the time is "right".
The GPGGA sentence would also do.
And, I only need the GPS position once within a 30 second interval (it's not moving, I just want to know where it is).
It's not like ntpd or ntpq have some handy switch that says "display current lat/lon" (which makes sense, because NTP is fundamentally time source agnostic).
All of this with Windows 7.
Jim
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.
One very direct way is to find some software to sniff the com port where the GPS receiver is. I'm a Linux guy, so I can't help you on that one.
Bob - AE6RV
>________________________________
> From: Jim Lux <jimlux@earthlink.net>
>To: Discussion of precise time and frequency measurement <time-nuts@febo.com>
>Sent: Tuesday, September 3, 2013 7:35 PM
>Subject: [time-nuts] GPS-18, Windows, NTP & Lat Lon
>
>
>I'm looking for an easy way to get current lat lon, when you've got a GPS-18 hooked up for NTP. That is, the GPS receiver is there doing it's NTP thing, so presumably it knows where it is.
>
>
>If NTP is decoding the GPRMC message, it has the lat/lon in it, so how can I get that info out (in a command line utility, into a file, or some such)
>
>I don't need millisecond time accuracy.. For now the GPS is just to make sure that the time is "right".
>
>
>The GPGGA sentence would also do.
>
>And, I only need the GPS position once within a 30 second interval (it's not moving, I just want to know where it is).
>
>It's not like ntpd or ntpq have some handy switch that says "display current lat/lon" (which makes sense, because NTP is fundamentally time source agnostic).
>
>All of this with Windows 7.
>
>Jim
>_______________________________________________
>time-nuts mailing list -- time-nuts@febo.com
>To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
>and follow the instructions there.
>
>
>
BA
Brian Alsop
Wed, Sep 4, 2013 1:45 AM
One very direct way is to find some software to sniff the com port where the GPS receiver is. I'm a Linux guy, so I can't help you on that one.
Bob - AE6RV
From: Jim Lux jimlux@earthlink.net
To: Discussion of precise time and frequency measurement time-nuts@febo.com
Sent: Tuesday, September 3, 2013 7:35 PM
Subject: [time-nuts] GPS-18, Windows, NTP & Lat Lon
I'm looking for an easy way to get current lat lon, when you've got a GPS-18 hooked up for NTP. That is, the GPS receiver is there doing it's NTP thing, so presumably it knows where it is.
If NTP is decoding the GPRMC message, it has the lat/lon in it, so how can I get that info out (in a command line utility, into a file, or some such)
I don't need millisecond time accuracy.. For now the GPS is just to make sure that the time is "right".
The GPGGA sentence would also do.
And, I only need the GPS position once within a 30 second interval (it's not moving, I just want to know where it is).
It's not like ntpd or ntpq have some handy switch that says "display current lat/lon" (which makes sense, because NTP is fundamentally time source agnostic).
All of this with Windows 7.
Jim
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2242 / Virus Database: 3222/6134 - Release Date: 09/03/13
How about a serial port spy/monitor program. There are some free ones like:
http://www.serial-port-monitor.com/
Brian
On 9/4/2013 01:30, Bob Stewart wrote:
> One very direct way is to find some software to sniff the com port where the GPS receiver is. I'm a Linux guy, so I can't help you on that one.
>
> Bob - AE6RV
>
>
>
>
>
>> ________________________________
>> From: Jim Lux <jimlux@earthlink.net>
>> To: Discussion of precise time and frequency measurement <time-nuts@febo.com>
>> Sent: Tuesday, September 3, 2013 7:35 PM
>> Subject: [time-nuts] GPS-18, Windows, NTP & Lat Lon
>>
>>
>> I'm looking for an easy way to get current lat lon, when you've got a GPS-18 hooked up for NTP. That is, the GPS receiver is there doing it's NTP thing, so presumably it knows where it is.
>>
>>
>> If NTP is decoding the GPRMC message, it has the lat/lon in it, so how can I get that info out (in a command line utility, into a file, or some such)
>>
>> I don't need millisecond time accuracy.. For now the GPS is just to make sure that the time is "right".
>>
>>
>> The GPGGA sentence would also do.
>>
>> And, I only need the GPS position once within a 30 second interval (it's not moving, I just want to know where it is).
>>
>> It's not like ntpd or ntpq have some handy switch that says "display current lat/lon" (which makes sense, because NTP is fundamentally time source agnostic).
>>
>> All of this with Windows 7.
>>
>> Jim
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2242 / Virus Database: 3222/6134 - Release Date: 09/03/13
BE
brent evers
Wed, Sep 4, 2013 1:47 AM
Wouldn't turning off ntp drive it nuts?
At the risk of throwing out the bone head answer and assuming this isn't
going on your next space craft, you could just split the GPS serial (my
quick google showed the 18 to be the serial unit vs usb) signal and run a
copy to another comm port..
Yeah - I'm pretty sure you had already thrown that idea out..
Brent
On Tue, Sep 3, 2013 at 8:42 PM, Jim Lux jimlux@earthlink.net wrote:
On 9/3/13 5:35 PM, Jim Lux wrote:
I'm looking for an easy way to get current lat lon, when you've got a
GPS-18 hooked up for NTP. That is, the GPS receiver is there doing it's
NTP thing, so presumably it knows where it is.
If NTP is decoding the GPRMC message, it has the lat/lon in it, so how
can I get that info out (in a command line utility, into a file, or some
such)
I don't need millisecond time accuracy.. For now the GPS is just to make
sure that the time is "right".
The GPGGA sentence would also do.
And, I only need the GPS position once within a 30 second interval (it's
not moving, I just want to know where it is).
It's not like ntpd or ntpq have some handy switch that says "display
current lat/lon" (which makes sense, because NTP is fundamentally time
source agnostic).
All of this with Windows 7.
Wouldn't turning off ntp drive it nuts?
At the risk of throwing out the bone head answer and assuming this isn't
going on your next space craft, you could just split the GPS serial (my
quick google showed the 18 to be the serial unit vs usb) signal and run a
copy to another comm port..
Yeah - I'm pretty sure you had already thrown that idea out..
Brent
On Tue, Sep 3, 2013 at 8:42 PM, Jim Lux <jimlux@earthlink.net> wrote:
> On 9/3/13 5:35 PM, Jim Lux wrote:
>
>> I'm looking for an easy way to get current lat lon, when you've got a
>> GPS-18 hooked up for NTP. That is, the GPS receiver is there doing it's
>> NTP thing, so presumably it knows where it is.
>>
>>
>> If NTP is decoding the GPRMC message, it has the lat/lon in it, so how
>> can I get that info out (in a command line utility, into a file, or some
>> such)
>>
>> I don't need millisecond time accuracy.. For now the GPS is just to make
>> sure that the time is "right".
>>
>>
>> The GPGGA sentence would also do.
>>
>> And, I only need the GPS position once within a 30 second interval (it's
>> not moving, I just want to know where it is).
>>
>> It's not like ntpd or ntpq have some handy switch that says "display
>> current lat/lon" (which makes sense, because NTP is fundamentally time
>> source agnostic).
>>
>> All of this with Windows 7.
>>
>>
>
> I suppose one way is to turn off NTP (releasing the com port), grab some
> data from the com port, parse it, then turn NTP back on.
>
> But that seems mighty clunky...
>
> I was hoping for some log file/debug feature that says "give me the last
> sentence from the GPS".
>
>
>
> ______________________________**_________________
> time-nuts mailing list -- time-nuts@febo.com
> To unsubscribe, go to https://www.febo.com/cgi-bin/**
> mailman/listinfo/time-nuts<https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts>
> and follow the instructions there.
>
JL
Jim Lux
Wed, Sep 4, 2013 3:33 AM
On 9/3/13 6:47 PM, brent evers wrote:
Wouldn't turning off ntp drive it nuts?
At the risk of throwing out the bone head answer and assuming this isn't
going on your next space craft, you could just split the GPS serial (my
quick google showed the 18 to be the serial unit vs usb) signal and run a
copy to another comm port..
Yeah - I'm pretty sure you had already thrown that idea out..
No.. that's a great idea.. I've got plenty of hardware serial ports..
Doh.. here I was trying to figure out if COM0COM or some similar com
port emulator/"tee" program would work, etc.
Excellent Idea.
(and no, you don't have to worry about crashing into Europa because of
this...)
On 9/3/13 6:47 PM, brent evers wrote:
> Wouldn't turning off ntp drive it nuts?
>
> At the risk of throwing out the bone head answer and assuming this isn't
> going on your next space craft, you could just split the GPS serial (my
> quick google showed the 18 to be the serial unit vs usb) signal and run a
> copy to another comm port..
>
> Yeah - I'm pretty sure you had already thrown that idea out..
>
No.. that's a great idea.. I've got plenty of hardware serial ports..
Doh.. here I was trying to figure out if COM0COM or some similar com
port emulator/"tee" program would work, etc.
Excellent Idea.
(and no, you don't have to worry about crashing into Europa because of
this...)
BI
Brian Inglis
Wed, Sep 4, 2013 4:34 AM
This question might be more appropriate for the NTP list at
questions@lists.ntp.org.
Assuming you are using GPS 18 NMEA output and NMEA driver 20, set the statsdir
either using the startup command line option -s or the conf command statsdir, as
shown below, and enable clockstats: appends the $GPRMC message every poll
interval e.g. minpoll 4 maxpoll 4 => 16s ~ 5400 lines/day.
For example:
ntpd ... -s c:/etc/ntp/stats -c c:/etc/ntp.conf ...
OR in c:/etc/ntp.conf
statsdir "c:/etc/ntp/stats"
AND
enable stats
statistics clockstats loopstats peerstats
ref-clock drivers
server 127.127.20.n prefer minpoll 4 maxpoll 4 ...
On 2013-09-03 18:42, Jim Lux wrote:
On 9/3/13 5:35 PM, Jim Lux wrote:
I'm looking for an easy way to get current lat lon, when you've got a
GPS-18 hooked up for NTP. That is, the GPS receiver is there doing it's
NTP thing, so presumably it knows where it is.
If NTP is decoding the GPRMC message, it has the lat/lon in it, so how
can I get that info out (in a command line utility, into a file, or some
such)
I don't need millisecond time accuracy.. For now the GPS is just to make
sure that the time is "right".
The GPGGA sentence would also do.
And, I only need the GPS position once within a 30 second interval (it's
not moving, I just want to know where it is).
It's not like ntpd or ntpq have some handy switch that says "display
current lat/lon" (which makes sense, because NTP is fundamentally time
source agnostic).
All of this with Windows 7.
I suppose one way is to turn off NTP (releasing the com port), grab some data
from the com port, parse it, then turn NTP back on.
But that seems mighty clunky...
I was hoping for some log file/debug feature that says "give me the last
sentence from the GPS".
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.
This question might be more appropriate for the NTP list at
questions@lists.ntp.org.
Assuming you are using GPS 18 NMEA output and NMEA driver 20, set the statsdir
either using the startup command line option -s or the conf command statsdir, as
shown below, and enable clockstats: appends the $GPRMC message every poll
interval e.g. minpoll 4 maxpoll 4 => 16s ~ 5400 lines/day.
For example:
ntpd ... -s c:/etc/ntp/stats -c c:/etc/ntp.conf ...
OR in c:/etc/ntp.conf
statsdir "c:/etc/ntp/stats"
AND
enable stats
statistics clockstats loopstats peerstats
# ref-clock drivers
server 127.127.20.n prefer minpoll 4 maxpoll 4 ...
On 2013-09-03 18:42, Jim Lux wrote:
> On 9/3/13 5:35 PM, Jim Lux wrote:
>> I'm looking for an easy way to get current lat lon, when you've got a
>> GPS-18 hooked up for NTP. That is, the GPS receiver is there doing it's
>> NTP thing, so presumably it knows where it is.
>>
>>
>> If NTP is decoding the GPRMC message, it has the lat/lon in it, so how
>> can I get that info out (in a command line utility, into a file, or some
>> such)
>>
>> I don't need millisecond time accuracy.. For now the GPS is just to make
>> sure that the time is "right".
>>
>>
>> The GPGGA sentence would also do.
>>
>> And, I only need the GPS position once within a 30 second interval (it's
>> not moving, I just want to know where it is).
>>
>> It's not like ntpd or ntpq have some handy switch that says "display
>> current lat/lon" (which makes sense, because NTP is fundamentally time
>> source agnostic).
>>
>> All of this with Windows 7.
>>
>
>
> I suppose one way is to turn off NTP (releasing the com port), grab some data
> from the com port, parse it, then turn NTP back on.
>
> But that seems mighty clunky...
>
> I was hoping for some log file/debug feature that says "give me the last
> sentence from the GPS".
>
>
> _______________________________________________
> time-nuts mailing list -- time-nuts@febo.com
> To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
> and follow the instructions there.
>
DJ
David J Taylor
Wed, Sep 4, 2013 6:11 AM
From: Jim Lux
I'm looking for an easy way to get current lat lon, when you've got a
GPS-18 hooked up for NTP. That is, the GPS receiver is there doing it's
NTP thing, so presumably it knows where it is.
[]
It's not like ntpd or ntpq have some handy switch that says "display
current lat/lon" (which makes sense, because NTP is fundamentally time
source agnostic).
All of this with Windows 7.
Jim
---========
IIRC, enabling clockstats will echo the GPS sentences received by NTP in the
stats file. Or, parallel up the RS-232 TX & ground lines (i.e. PC RX line),
and use a second COM port running VisualGPS (free) to read the data:
http://www.visualgps.net/VisualGPS/default.htm
Cheers,
David
SatSignal Software - Quality software written to your requirements
Web: http://www.satsignal.eu
Email: david-taylor@blueyonder.co.uk
From: Jim Lux
I'm looking for an easy way to get current lat lon, when you've got a
GPS-18 hooked up for NTP. That is, the GPS receiver is there doing it's
NTP thing, so presumably it knows where it is.
[]
It's not like ntpd or ntpq have some handy switch that says "display
current lat/lon" (which makes sense, because NTP is fundamentally time
source agnostic).
All of this with Windows 7.
Jim
=========================================
IIRC, enabling clockstats will echo the GPS sentences received by NTP in the
stats file. Or, parallel up the RS-232 TX & ground lines (i.e. PC RX line),
and use a second COM port running VisualGPS (free) to read the data:
http://www.visualgps.net/VisualGPS/default.htm
Cheers,
David
--
SatSignal Software - Quality software written to your requirements
Web: http://www.satsignal.eu
Email: david-taylor@blueyonder.co.uk
DJ
Didier Juges
Wed, Sep 4, 2013 2:35 PM
Jim,
You should be able to piggyback a second serial port in parallel with the one used by NTP (just the Rx line and ground) and use any NMEA decoder.
It does not even have to be the same computer.
I have a quick NMEA decoder for Windows I wrote some time ago somewhere.
Didier KO4BB
Jim Lux jimlux@earthlink.net wrote:
I'm looking for an easy way to get current lat lon, when you've got a
GPS-18 hooked up for NTP. That is, the GPS receiver is there doing
it's
NTP thing, so presumably it knows where it is.
If NTP is decoding the GPRMC message, it has the lat/lon in it, so how
can I get that info out (in a command line utility, into a file, or
some
such)
I don't need millisecond time accuracy.. For now the GPS is just to
make
sure that the time is "right".
The GPGGA sentence would also do.
And, I only need the GPS position once within a 30 second interval
(it's
not moving, I just want to know where it is).
It's not like ntpd or ntpq have some handy switch that says "display
current lat/lon" (which makes sense, because NTP is fundamentally time
source agnostic).
All of this with Windows 7.
Jim
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to
https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.
--
Sent from my Motorola Droid Razr 4G LTE wireless tracker while I do other things.
Jim,
You should be able to piggyback a second serial port in parallel with the one used by NTP (just the Rx line and ground) and use any NMEA decoder.
It does not even have to be the same computer.
I have a quick NMEA decoder for Windows I wrote some time ago somewhere.
Didier KO4BB
Jim Lux <jimlux@earthlink.net> wrote:
>I'm looking for an easy way to get current lat lon, when you've got a
>GPS-18 hooked up for NTP. That is, the GPS receiver is there doing
>it's
>NTP thing, so presumably it knows where it is.
>
>
>If NTP is decoding the GPRMC message, it has the lat/lon in it, so how
>can I get that info out (in a command line utility, into a file, or
>some
>such)
>
>I don't need millisecond time accuracy.. For now the GPS is just to
>make
>sure that the time is "right".
>
>
>The GPGGA sentence would also do.
>
>And, I only need the GPS position once within a 30 second interval
>(it's
>not moving, I just want to know where it is).
>
>It's not like ntpd or ntpq have some handy switch that says "display
>current lat/lon" (which makes sense, because NTP is fundamentally time
>
>source agnostic).
>
>All of this with Windows 7.
>
>Jim
>_______________________________________________
>time-nuts mailing list -- time-nuts@febo.com
>To unsubscribe, go to
>https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
>and follow the instructions there.
--
Sent from my Motorola Droid Razr 4G LTE wireless tracker while I do other things.
JL
Jim Lux
Wed, Sep 4, 2013 3:16 PM
On 9/4/13 7:35 AM, Didier Juges wrote:
Jim,
You should be able to piggyback a second serial port in parallel with the one used by NTP (just the Rx line and ground) and use any NMEA decoder.
It does not even have to be the same computer.
I have a quick NMEA decoder for Windows I wrote some time ago somewhere.
Heck, for my application it could be as simple as QBASIC
REM Open serial port
OPEN #1, "COM1:"
REM Read next three messages
FOR I=1, 3
LINE INPUT #1, A$
B$ = B$+A$
NEXT I
REM Close Serial port
CLOSE #1
REM Look for $GPRMC message and parse
k = INSTR(B$, "GPRMC")
if k = 0 then
die a miserable death with an error message
else
finish parsing..
end if
On 9/4/13 7:35 AM, Didier Juges wrote:
> Jim,
>
> You should be able to piggyback a second serial port in parallel with the one used by NTP (just the Rx line and ground) and use any NMEA decoder.
> It does not even have to be the same computer.
>
> I have a quick NMEA decoder for Windows I wrote some time ago somewhere.
>
Heck, for my application it could be as simple as QBASIC
REM Open serial port
OPEN #1, "COM1:"
REM Read next three messages
FOR I=1, 3
LINE INPUT #1, A$
B$ = B$+A$
NEXT I
REM Close Serial port
CLOSE #1
REM Look for $GPRMC message and parse
k = INSTR(B$, "GPRMC")
if k = 0 then
die a miserable death with an error message
else
finish parsing..
end if