Date and time
The sensor stamps everything it produces with its system time, from the point cloud frames to the data it sends to other systems, objects, zone states and events included.
The sensor has no internal battery and no reference clock of its own. It gets its time from a time server over NTP, the default and recommended method, or you set it by hand.
You set the date and time in the WebGUI under Configuration > Network Setup, in the Time synchronization panel on the right. Every selection there changes the sensor right away; there is no apply button. Over the API, the time synchronization is set in Time Synchronization and Service: Time Synchronization.
Select the time zone
-
In the sidebar, click Configuration > Network Setup.
-
In the Time zone list, select the time zone of the site, for example
Europe/Berlin. The default isEtc/UTC.The button
next to the list applies the selected time zone again.
The WebGUI shows all times in the time zone of the sensor, for example in the status bar of the Viewer.
Synchronize with a time server (NTP)
With Method set to NTP, the sensor sets its clock from a time server in the network and keeps it in step.
-
Make sure Method is set to NTP (highlighted in yellow).
-
Enter the hostname or IP address of your time server in the field Add new time server.
-
Click
.
The server is added to Configured time server(s) and the sensor uses it from now on.
-
Repeat for further time servers.
To work with the list of servers:
-
Click
next to a server to remove it.
-
Drag a server up or down to change the order.
-
The server the sensor uses at the moment has a green frame. Hover over it to see its IP address and hostname.
If you do not add a server, the sensor uses the time servers that the DHCP or DHCPv6 server of the network advertises.
The list then shows the server the sensor uses by default, if it reports one. Hover over it to see the tooltip Default time server.
Once you add a server, the sensor ignores the advertised servers, unless the API (from_dhcp) or a VMS over ONVIF switches them on. The API reports the advertised servers in the health of the time synchronization (dhcp_servers).
Set the time by hand
Use Manual only where no time server is available, for example in a small isolated test setup.
-
Click Manual.
The sensor takes the current time of your computer straight away.
-
To set another time, enter it in the Reference timestamp field and click
next to it.
|
A time set by hand has to be set again after every power cycle and at regular intervals. |
In a swarm that uses Manual, the swarm leader serves its time to the other sensors of the swarm. On the leader, the status shows the tile Swarm time server with Active and the number of clients that synchronize with it.
Read the status
Below the settings, the panel shows the current state of the time synchronization. The values update continuously.
| Tile | What it shows | Shown with |
|---|---|---|
Time stamp |
The current time of the sensor, in its time zone. Hover over |
Both methods |
Active server |
The time server the sensor synchronizes with at the moment. |
NTP |
Synchronized |
Yes when the clock of the sensor is synchronized with the time server, No when it is not. |
NTP |
Offset |
The difference between the clock of the sensor and the time server, in milliseconds. |
NTP |
Delay |
The time from the request of the sensor until the answer of the time server arrives, in milliseconds. |
NTP |
Jitter |
How much the measured offset varies between several comparisons with the time server, in milliseconds. |
NTP |
Time zone |
The time zone the sensor uses. |
Both methods |
Troubleshooting
- Synchronized stays No
-
The sensor does not reach a time server. Check that the server address is right, that the sensor has a gateway and a DNS server if the server is outside the local network (see Network settings), and that no firewall blocks NTP.
- All configured time servers disappeared after I clicked NTP
-
Clicking NTP sets the method to NTP with an empty list of time servers, even when NTP was already selected. Add your time servers again.
- The settings are greyed out and the panel says Managed by the Swarm leader
-
The sensor is a follower in a swarm. The swarm leader manages its time synchronization; change the settings on the leader.