Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 24-04-2019, 00:13   #16
Moderator
 
Dockhead's Avatar

Cruisers Forum Supporter

Join Date: Mar 2009
Location: Denmark (Winter), Cruising North Sea and Baltic (Summer)
Boat: Cutter-Rigged Moody 54
Posts: 34,656
Re: Use GPS Time on PC

Quote:
Originally Posted by Moo View Post
Use O's mux capabilities to output to a time setting utility. Input from the COM port and out to whatever via network.

If your time utility is COM port input only you'll have to use a COM port mux such as GPSGate or similar and use virtual ports.

Consider machine latency in your choice but what is a second or so between friends

OK, thanks!


Do you know a time-setting utility which is NOT "COM port input only"?
__________________
"You sea! I resign myself to you also . . . . I guess what you mean,
I behold from the beach your crooked inviting fingers,
I believe you refuse to go back without feeling of me;
We must have a turn together . . . . I undress . . . . hurry me out of sight of the land,
Cushion me soft . . . . rock me in billowy drowse,
Dash me with amorous wet . . . . I can repay you."
Walt Whitman
Dockhead is online now   Reply With Quote
Old 24-04-2019, 05:46   #17
Registered User

Join Date: Oct 2012
Location: Brighton, UK
Boat: Westerly Oceanlord
Posts: 513
Re: Use GPS Time on PC

Some observations which may be obvious to some but not obvious to others...


NMEA gps strings aren't a particularly accurate way of setting your time. If you don't have a functional real time clock they may be ok for setting your time to the nearest second (which is probably good enough for most people) but the NMEA strings alone will be offset and subject to lots of jitter so you *definiteyl* don't want to go anywhere near continually adjusting your time from the nmea strings alone.



To use a GPS receiver as a reference clock to feed ntpd you need a receiver which also outputs a PPS signal to synchronize the nmea strings to exact seconds. As an exercise a couple of years back I built an ntp reference clock from a raspberry pi hooked up to an adafruit ultimate gps receiver (which does output a pps signal). I used kplex to feed the nmea strings to ntpd (for the hell of it) but the "normal" (and easier) way is just to use gpsd. Of course a rasperry pi doesn't have the hardware to be a decent reference clock (not least because of dodgy network performance) but it's a fun project for some.


Of course the easiest thing is valhalla360's suggestion to fix the clock....
muttnik is offline   Reply With Quote
Old 24-04-2019, 06:23   #18
Registered User

Join Date: Nov 2015
Location: Ireland
Posts: 479
Re: Use GPS Time on PC

Quote:
Originally Posted by muttnik View Post

Of course the easiest thing is valhalla360's suggestion to fix the clock....

That's fine if you don't have too much drift. I have a tablet PC for navigation and it's completely disconnected to the internet. It's clock seems to drift like mad, I spotted that it was 4-5 hours out at the end of last summer. I'll definitely have to install something to give it time for this year.
AedanC is offline   Reply With Quote
Old 24-04-2019, 06:59   #19
Registered User

Join Date: Jan 2011
Location: France/UK
Boat: Gib'Sea 402
Posts: 549
Re: Use GPS Time on PC

Quote:
Originally Posted by muttnik View Post
... ...

Of course the easiest thing is valhalla360's suggestion to fix the clock....
But the OP's problem, which is one I share as I have the same type of miniPC, is that the clock stops when the device is unpowered. There's no back-up battery to keep it going so time has to be set each time the PC is turned on.
hoolie is offline   Reply With Quote
Old 24-04-2019, 08:00   #20
Registered User

Join Date: Jun 2010
Location: Caribbean
Boat: Corbin Ketch 39ft
Posts: 301
Re: Use GPS Time on PC

There used to be an utility called GPStime. I think that the author incorporated it into his great utility called GPS Utility. Great little program for transferring GPS info between different GPS, changing file types etc, I have used it for about a dozen years. Easy to set computer time to GPS time/
__________________
Joe Bayne
Jubilee
Jubilee39 is offline   Reply With Quote
Old 24-04-2019, 18:12   #21
Registered User

Join Date: May 2017
Location: Gulf of Finland
Boat: Y40
Posts: 90
Re: Use GPS Time on PC

Quote:
Originally Posted by Jubilee39 View Post
There used to be an utility called GPStime. I think that the author incorporated it into his great utility called GPS Utility. Great little program for transferring GPS info between different GPS, changing file types etc, I have used it for about a dozen years. Easy to set computer time to GPS time/
Looks interesting, but will it work with Windows 10?
ChrisseH is offline   Reply With Quote
Old 24-04-2019, 19:55   #22
Moo
Registered User

Join Date: Mar 2017
Posts: 804
Re: Use GPS Time on PC

Quote:
Originally Posted by ChrisseH View Post
Looks interesting, but will it work with Windows 10?
Yep I use it on W10.
Moo is offline   Reply With Quote
Old 24-04-2019, 22:09   #23
Registered User

Join Date: Apr 2013
Posts: 11,004
Re: Use GPS Time on PC

Quote:
Originally Posted by hoolie View Post
But the OP's problem, which is one I share as I have the same type of miniPC, is that the clock stops when the device is unpowered. There's no back-up battery to keep it going so time has to be set each time the PC is turned on.
Actually, the OP says something failed with the battery backup for time.

But even for your situation, do they make a battery backup for the clock similar to a regular PC? So many computer functions rely on time, I would be surprised if it's not an option.
valhalla360 is offline   Reply With Quote
Old 24-04-2019, 22:11   #24
Registered User

Join Date: Apr 2013
Posts: 11,004
Re: Use GPS Time on PC

Quote:
Originally Posted by AedanC View Post
That's fine if you don't have too much drift. I have a tablet PC for navigation and it's completely disconnected to the internet. It's clock seems to drift like mad, I spotted that it was 4-5 hours out at the end of last summer. I'll definitely have to install something to give it time for this year.
Sounds like a bad clock...no way it should be off by hours unless something is broken.
valhalla360 is offline   Reply With Quote
Old 25-04-2019, 03:38   #25
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Use GPS Time on PC

Dockhead,

Have a look at this web site:

https://www.meinbergglobal.com/english/sw/ntp.htm

I have not studied it in detail. But this might get you started on your way.

Also see: https://www.satsignal.eu/software/net.htm
transmitterdan is offline   Reply With Quote
Old 25-04-2019, 04:49   #26
Moderator
 
Dockhead's Avatar

Cruisers Forum Supporter

Join Date: Mar 2009
Location: Denmark (Winter), Cruising North Sea and Baltic (Summer)
Boat: Cutter-Rigged Moody 54
Posts: 34,656
Re: Use GPS Time on PC

Quote:
Originally Posted by muttnik View Post
Some observations which may be obvious to some but not obvious to others...


NMEA gps strings aren't a particularly accurate way of setting your time. If you don't have a functional real time clock they may be ok for setting your time to the nearest second (which is probably good enough for most people) but the NMEA strings alone will be offset and subject to lots of jitter so you *definiteyl* don't want to go anywhere near continually adjusting your time from the nmea strings alone.



To use a GPS receiver as a reference clock to feed ntpd you need a receiver which also outputs a PPS signal to synchronize the nmea strings to exact seconds. As an exercise a couple of years back I built an ntp reference clock from a raspberry pi hooked up to an adafruit ultimate gps receiver (which does output a pps signal). I used kplex to feed the nmea strings to ntpd (for the hell of it) but the "normal" (and easier) way is just to use gpsd. Of course a rasperry pi doesn't have the hardware to be a decent reference clock (not least because of dodgy network performance) but it's a fun project for some.


Of course the easiest thing is valhalla360's suggestion to fix the clock....

Thanks; really useful information.


Yes, I guess I just need to "fix the clock", which means throwing the computer in the trash and buying and setting up a new one


This is a cheap Atom media server box which I am sure is not worth repairing.


OTOH, maybe I don't care that much. I had trouble with my tracks and my log last summer, and I thought this was from the system clock.


However, I am now hearing that OpenCPN does not use system clock time for this. Can you confirm that? Does OpenCPN use system clock time for anything? If for nothing, then I might just ignore this issue.
__________________
"You sea! I resign myself to you also . . . . I guess what you mean,
I behold from the beach your crooked inviting fingers,
I believe you refuse to go back without feeling of me;
We must have a turn together . . . . I undress . . . . hurry me out of sight of the land,
Cushion me soft . . . . rock me in billowy drowse,
Dash me with amorous wet . . . . I can repay you."
Walt Whitman
Dockhead is online now   Reply With Quote
Old 29-04-2019, 22:51   #27
Moderator
 
Dockhead's Avatar

Cruisers Forum Supporter

Join Date: Mar 2009
Location: Denmark (Winter), Cruising North Sea and Baltic (Summer)
Boat: Cutter-Rigged Moody 54
Posts: 34,656
Re: Use GPS Time on PC

My Log plugin is definitely using system time, not GPS time. Is there some way to choose which time it uses? It is set to use UTC time (not GPS Auto etc.). The version is 1.4006, which I think is the latest.



As an alternative I have a utility which updates the system clock, but I need data for it. I can configure one COM port -- COM1 only (for some reason) as a talker, and I can choose baudrate, priority, etc., but my utility doesn't find it -- gives "The port COM1 initiation failure" when I click "Read Port".


Any tips?
__________________
"You sea! I resign myself to you also . . . . I guess what you mean,
I behold from the beach your crooked inviting fingers,
I believe you refuse to go back without feeling of me;
We must have a turn together . . . . I undress . . . . hurry me out of sight of the land,
Cushion me soft . . . . rock me in billowy drowse,
Dash me with amorous wet . . . . I can repay you."
Walt Whitman
Dockhead is online now   Reply With Quote
Old 30-04-2019, 00:59   #28
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: Use GPS Time on PC

Quote:
Originally Posted by Dockhead View Post
My Log plugin is definitely using system time, not GPS time.
Just did a quick test, looks like if gps time is available from NMEA my logbook uses that, if I turn off all connections the logbook uses system time. Quick glance looks like time is coming in with the RMC & GGA sentences, logbook 1.3007 on win10 >

conachair is offline   Reply With Quote
Old 30-04-2019, 01:45   #29
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,245
Re: Use GPS Time on PC

Quote:
Originally Posted by Dockhead View Post
As an alternative I have a utility which updates the system clock, but I need data for it. I can configure one COM port -- COM1 only (for some reason) as a talker, and I can choose baudrate, priority, etc., but my utility doesn't find it -- gives "The port COM1 initiation failure" when I click "Read Port".


Any tips?
You can not use the same port in two applications at the same time. There are some utilities allowing you to create chains of interconnected virtual serial ports on Windows, like com0com that might let you achieve what you are trying to do.

OpenCPN itself also contain code to do it, I have never used it on Windows, but if you set SetSystemTime to 1 in the configfile, it will get executed.
nohal is offline   Reply With Quote
Old 30-04-2019, 04:34   #30
cruiser

Join Date: Jan 2012
Location: Pangaea
Posts: 10,856
Re: Use GPS Time on PC

Quote:
Originally Posted by Dockhead View Post
OK, I cracked it another way.


Unfortunately it is rather kludgy. Maybe SignalK is better, but I've already wasted half the day on this and I have a long list of boat jobs.


Here it is:


1. I used this app, "GPS Time and Test": https://download.cnet.com/GPS-Time-a...-10446293.html


2. It needs GPS time date via a COM port. Unfortunately that COM port can't be in use for anything else So I can't use the boat network datastream being used by OpenCPN


3. However, I have a USB connection to my AIS black box, which throws off that data. And so if I connect the AIS box and do NOT run ProAIS2, the program which connects to the black box, THEN GPS Time & Test WORKS




Note however that it does not work as it automatically loads upon startup. I have to shut it down, and then "Run As Administrator", in order for it to have authority to change PC clock time.


Et voila! I hope this helps someone with the same problem I had.


Actually I think that system time is a non-trivial issue which must affect MOST offshore users. For proper function of lgbook and VDR, you must have accurate time. When you are connected to Internet, your system can correct the time itself. But offshore without Internet, you will have some time drift at best, and at worst some time breakdown like I have.



I bet the OpenCPN developers could write a small program which would extract GPS time from the datastream running in O, and bomb the system clock with it. I'll add it as a feature request.
I spend zero amount of time fussing with pc navigation, instead we use an Apple MacBook Pro for computer stuff along with a couple of iPads and Raymarine e127 chart plotters. Absolutely zero down time and time wasted fussing with stuff.

We still have the HP pc running Nobeltec Time Zero, but it hardly ever gets used, and I spent more time over a two week period several years ago trying to get that POS working than I've spent on all the Apple stuff combined over the past eight years. Last season, I only turned on the pc once, and I think it was by mistake.

Something to consider... unless you enjoy wasting days messing around with computers.
Kenomac is offline   Reply With Quote
Reply

Tags
gps


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GPS Time for accurate Computer Time rgleason OpenCPN 2 09-03-2016 15:03
Do you use a cheap camp stove to cook on? What kind of fuel does it use? magentawave Cooking and Provisioning: Food & Drink 46 22-12-2013 19:12
Mfgr Says Use Only Silicone! WTH...Everyone Here Says Don't Use Silicone. boatsail Monohull Sailboats 60 01-06-2013 13:18
What GPS System Is Best Suited to Use with OpenCPN ? kegendron OpenCPN 9 24-08-2010 16:28

Advertise Here
  Vendor Spotlight
No Threads to Display.


All times are GMT -7. The time now is 02:10.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.