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 21-04-2019, 05:19   #1
Moderator
 
Dockhead's Avatar

Cruisers Forum Supporter

Join Date: Mar 2009
Location: Denmark (Winter), Helsinki (Summer); Cruising the Baltic Sea this year!
Boat: Cutter-Rigged Moody 54
Posts: 33,870
Use GPS Time on PC

I'm getting O 5.0 in working order on my ship's computer, and am loving it!! Kudos to the team. For some reason, 5.0 runs MUCH smoother and faster on my machine, than the previous version , and the new UI is a great leap forward. O just gets better and better


One problem I have unrelated to the software is my wonky system clock, which plays hell with my logbook. I am running a low power Atom based PC with Win 10, and I guess the system clock battery failed or something.


Does anyone know whether it is possible somehow to make the system clock update with GPS time, or just USE GPS time when it's available?


This would solve a bunch of problems for me.




Mr. Google has turned up a number of network time servers using GPS time, but nothing for a freestanding machine.
__________________
"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 offline   Reply With Quote
Old 21-04-2019, 05:32   #2
Moderator
 
Dockhead's Avatar

Cruisers Forum Supporter

Join Date: Mar 2009
Location: Denmark (Winter), Helsinki (Summer); Cruising the Baltic Sea this year!
Boat: Cutter-Rigged Moody 54
Posts: 33,870
Re: Use GPS Time on PC

This looks like the business, but quite old and probably won't work on Win 10:


GPS Clock PC Time Sync NMEA Receiver Atomic Software Timing Server Utilities System Tools Download
__________________
"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 offline   Reply With Quote
Old 21-04-2019, 05:33   #3
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

Bit the bullet and install the wonderful signalk then in addition to everything it does it will sync system time to gps. (so it says anyway, not tried it)

https://www.npmjs.com/package/@signalk/set-system-time
conachair is offline   Reply With Quote
Old 21-04-2019, 05:37   #4
Moderator
 
Dockhead's Avatar

Cruisers Forum Supporter

Join Date: Mar 2009
Location: Denmark (Winter), Helsinki (Summer); Cruising the Baltic Sea this year!
Boat: Cutter-Rigged Moody 54
Posts: 33,870
Re: Use GPS Time on PC

"Hardware Devices That Are Supported by the Windows Time Service

Hardware-based clocks such as GPS or radio clocks are often used as highly accurate reference clock devices. By default, the Windows Time service NTP time provider does not support the direct connection of a hardware device to a computer, although it is possible to create a software-based independent time provider that supports this type of connection. This type of provider, in conjunction with the Windows Time service, can provide a reliable, stable time reference.
Hardware devices, such as a cesium clock or a Global Positioning System (GPS) receiver, provide accurate current time by following a standard to obtain an accurate definition of time. Cesium clocks are extremely stable and are unaffected by factors such as temperature, pressure, or humidity, but are also very expensive. A GPS receiver is much less expensive to operate and is also an accurate reference clock. GPS receivers obtain their time from satellites that obtain their time from a cesium clock. Without the use of an independent time provider, Windows time servers can acquire their time by connecting to an external NTP server, which is connected to a hardware device by means of a telephone or the Internet. Organizations such as the United States Naval Observatory provide NTP servers that are connected to extremely reliable reference clocks.
Many GPS receivers and other time devices can function as NTP servers on a network. You can configure your AD DS forest to synchronize time from these external hardware devices only if they are also acting as NTP servers on your network. To do so, configure the domain controller functioning as the primary domain controller (PDC) emulator in your forest root to synchronize with the NTP server provided by the GPS device. To do so, see Configure the Windows Time service on the PDC emulator in the Forest Root Domain."


https://docs.microsoft.com/en-us/win...-service-works
__________________
"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 offline   Reply With Quote
Old 21-04-2019, 05:50   #5
Moderator
 
Dockhead's Avatar

Cruisers Forum Supporter

Join Date: Mar 2009
Location: Denmark (Winter), Helsinki (Summer); Cruising the Baltic Sea this year!
Boat: Cutter-Rigged Moody 54
Posts: 33,870
Re: Use GPS Time on PC

Quote:
Originally Posted by conachair View Post
Bit the bullet and install the wonderful signalk then in addition to everything it does it will sync system time to gps. (so it says anyway, not tried it)

https://www.npmjs.com/package/@signalk/set-system-time

OK, maybe worth a try. But is it possible to install the software without the hardware?
__________________
"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 offline   Reply With Quote
Old 21-04-2019, 06:20   #6
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: Use GPS Time on PC

Quote:
Originally Posted by conachair View Post
Bit the bullet and install the wonderful signalk then in addition to everything it does it will sync system time to gps. (so it says anyway, not tried it)

https://www.npmjs.com/package/@signalk/set-system-time
It will sync the time on the Rpi.
It would be a great addition if it provided a timeserver for all onboard devices.
I will suggest that to the developer.
__________________
Cheers,
JM
nahannivatsea.blogspot.ca
NahanniV is offline   Reply With Quote
Old 21-04-2019, 06:46   #7
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
OK, maybe worth a try. But is it possible to install the software without the hardware?
No need for any hardware, it has a little dummy script to play with plus there's a sigK app to create tailored dummy data.

You need to install node-js first then the signalk server >

Can't remember which tutorial I followed but this looks familiar
https://www.guru99.com/download-install-node-js.html

Then Signalk using npm (node package manager)>
https://github.com/SignalK/signalk-server-node

If it looks OK start the server
in a terminal > signalk-server,
Hopefully will be then up and running in a browser at localhost:3000

No doubt there will be some flaming hoops to jump through along the way...
conachair is offline   Reply With Quote
Old 21-04-2019, 07:04   #8
Moderator
 
Dockhead's Avatar

Cruisers Forum Supporter

Join Date: Mar 2009
Location: Denmark (Winter), Helsinki (Summer); Cruising the Baltic Sea this year!
Boat: Cutter-Rigged Moody 54
Posts: 33,870
Re: Use GPS Time on PC

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.
__________________
"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 offline   Reply With Quote
Old 21-04-2019, 07:59   #9
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
Maybe SignalK is better, but I've already wasted half the day on this and I have a long list of boat jobs.
Gave up on the laptop as well, microsoft doinf some wierd stuff conflicting with node.js.

But it really is worth getting signalk up and running, very powerful, if you want to get data from anywhere, send it to anywhere or do anything you want to it like save or make a pretty chart like SOG & AWA ..
conachair is offline   Reply With Quote
Old 21-04-2019, 09:18   #10
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: Use GPS Time on PC

When you have time, you might consider replacing your ATOM Win10 box with a Raspberry Pi running OpenPlotter.

Very easy to set this all up and have SignalK and OpenCPN running.

The software is maturing rapidly. Next Off-Season would probably be a good time to try it.

Bit of a learning curve switching to Linux, but the OpenPlotter distribution makes Linux knowledge mostly unnecessary.
__________________
Cheers,
JM
nahannivatsea.blogspot.ca
NahanniV is offline   Reply With Quote
Old 21-04-2019, 09:58   #11
Moderator
 
Dockhead's Avatar

Cruisers Forum Supporter

Join Date: Mar 2009
Location: Denmark (Winter), Helsinki (Summer); Cruising the Baltic Sea this year!
Boat: Cutter-Rigged Moody 54
Posts: 33,870
Re: Use GPS Time on PC

Quote:
Originally Posted by NahanniV View Post
When you have time, you might consider replacing your ATOM Win10 box with a Raspberry Pi running OpenPlotter.

Very easy to set this all up and have SignalK and OpenCPN running.

The software is maturing rapidly. Next Off-Season would probably be a good time to try it.

Bit of a learning curve switching to Linux, but the OpenPlotter distribution makes Linux knowledge mostly unnecessary.

I'm an old Unix guy, so Linux is noooo problem.


But I'm not going to switch anything, if it's working. I have too many things to do to the boat, to get distracted playing with computers.


I'm very happy with the little Atom box, which I believe has 8 cores, and uses something like 3 watts. Except for the carpy system clock
__________________
"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 offline   Reply With Quote
Old 23-04-2019, 11:55   #12
Moo
Registered User

Join Date: Mar 2017
Posts: 804
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.
Get around the com port issue with a mux, OCPN could do it or I prefer to use GPSGate client. I run all my serial inputs through it, filter as necessary, and run the outputs to virtual com ports and/or TCP UDP network. Takes all the pain out of connecting Com ports
Moo is offline   Reply With Quote
Old 23-04-2019, 12:49   #13
Moderator
 
Dockhead's Avatar

Cruisers Forum Supporter

Join Date: Mar 2009
Location: Denmark (Winter), Helsinki (Summer); Cruising the Baltic Sea this year!
Boat: Cutter-Rigged Moody 54
Posts: 33,870
Re: Use GPS Time on PC

Quote:
Originally Posted by Moo View Post
Get around the com port issue with a mux, OCPN could do it or I prefer to use GPSGate client. I run all my serial inputs through it, filter as necessary, and run the outputs to virtual com ports and/or TCP UDP network. Takes all the pain out of connecting Com ports

How can you do it with O?
__________________
"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 offline   Reply With Quote
Old 23-04-2019, 22:07   #14
Moo
Registered User

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

Quote:
Originally Posted by Dockhead View Post
How can you do it with O?
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
Moo is offline   Reply With Quote
Old 23-04-2019, 23:18   #15
Registered User

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

My first thought is fix the clock... I assume you aren't doing particle physics experiments...no reason it shouldn't keep time accurate to the nearest second for a few weeks at a time and that should be good enough for most navigational purposes. Then when you are connected to the internet, you can update the time off the net.

You could just update it every few days manually. I don't have access at the moment but I have a USB GPS puck and the troubleshooting software would show the GPS time or even use a handheld GPS would achieve the same thing.

We use something similar for traffic signals where we don't have communications...it's actually a standard Garmin mushroom antenna but the signal controller manufacturers actually had to do some programming to take the data in and process it (nothing to difficult as it's standard NEMA data format). Modern controllers are just environmentally hardened PCs, so it shouldn't be hard to do something similar.

I think your problem is finding a canned application to do it because if the clock is functioning correctly, it's not an issue.
valhalla360 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


All times are GMT -7. The time now is 04:17.


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.