Hello,
I am currently using a CR310 datalogger with a GPS module connected via RS232 for accurate time synchronization. According to the CRBasic documentation, the NetworkTimeProtocol("", offset, max_msec) function allows the CR310 to act as an NTP server when the first parameter is an empty string ("").
I’ve implemented the following simplified program to enable NTP server functionality:
BeginProg
SerialOpen (COMRS232,9600,0,0,80)
Scan (5,Sec,0,0)
If IfTime (0,5,Sec) Then
TimeOffset = NetworkTimeProtocol("", 28800, 1000) ' Taiwan UTC+8
EndIf
NextScan
EndProg
The CR310 is assigned a static IP on the local network (tested and reachable via ping). I have configured multiple external devices (including Windows and embedded devices) to use the CR310’s IP as their NTP server, but none of them are able to receive time synchronization. Tools like ntpdate or w32tm return timeouts or failure to sync.
My questions are:
Does the CR310 fully support acting as an NTP server via the NetworkTimeProtocol function with a null string?
Are there any firmware limitations or model-specific restrictions (i.e., is this only supported on CR1000X or CR6)?
Are there any additional configuration requirements (e.g., firewall rules, port settings, DNS options) to enable proper NTP server functionality on the CR310?
Any insights or official confirmation on NTP server support for the CR310 would be highly appreciated.
Thank you!