Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Sync GPS time over ethernet between loggers


Rasmus Jensen Apr 10, 2019 07:06 AM

I am logging meteorological data on a CR3000. The logger clock is synchronised via GPS. Furthermore, I have several CR1000X loggers connected to the same local network (ethernet). Is it possible to sync the clock from the CR3000 to the CR1000X's over the ethernet?


smile Apr 10, 2019 10:17 PM

Hi

I think, since I've never used it on an ethernet connection, you have to use the "ClockReport" and "PakBusClock" instructions and create a "socket" to run the pakbus packets on the ethernet network.

Read more on CRBASIC help

Regards

Smile


nsw Apr 11, 2019 11:00 AM

An alternative to using PakBus over the TCP/IP network, is NetworkTimeProtocol.

Have a look at the "NetworkTimeProtocol" in CRBasic Help. The NTP can be used to set the datalogger clock or get the datalogger to act as an NTP server.

If you setup the CR3000 as an NTP server, the other loggers can set their clocks from it using the "NetworkTimeProtocol" instruction in each logger.


Rasmus Jensen May 9, 2019 08:40 AM

Thank you for your answer. I am trying to use the NetworkTimeProtocol solution.

So on logger i am synchronizing the clock with a GPS, and then I want to broadcast this precise time to the other loggers on the local network.

How do I setup the NTP server on a logger? From the CRBasic Help it is written: "If the IP address of the NTPServer parameter is a null string, "", it will act an an NTP server rather than a client." What should the NTPOffset and NTPMaxMSec parametes be on the server?

Should the NTP function be places in the initialization of the program (after BeginProg), should it be in the main scan loop, or is it sufficient to place it in a SlowSequence? And does this choice matter for, where in the revieving loggers' progams the in struction is placed?

Kind regards,

Rasmus

Log in or register to post/reply in the forum.