time_status_np (object) – Result of the PMC GET TIME_STATUS_NP command. This is a linuxptp
non-portable command.
StatusCodes
200OK –No error
Fieldsof interest:
→
Current_data_set.offset_from_master Offset from master time source in nanoseconds as calculated
duringthe lastupdate frommaster.
Parent_data_set.grandmaster_identity Thisshould matchthelocal grandmasterclock. Ifthisdisplays
the sensor’s clock identity (derived from Ethernet hardware address) then this indicates the sensor
isnot properlysynchronizedtoa grandmaster.
Parent_data_set Variousinformationabout theselectedmaster clock.
Port_data_set.port_state This value will be SLAVE when a remote master clock is selected. See par-
ent_data_set forselectedmaster clock.
Port_data_set Local sensor PTP configuration values. Grandmaster clock needs to match these for
propertimesynchronization.
Time_properties_data_set PTPpropertiesas givenby masterclock.
Time_status_np.gm_identity Selectedgrandmasterclockidentity.
Time_status_np.gm_present True when grandmaster has been detected. This may stay true even if
grandmaster goes off-line. Use port_data_set.port_state to determine up-to-date synchronization
status. When thisis falsethen the local clock isselected.
Time_status_np.ingress_time Indicates when last PTP message was received. Units are in nanosec-
onds.
Time_status_np LinuxPTPspecificdiagnosticvalues. TheRedHatmanualprovidessomemoreinforma-
tionon thesefields
GET system/time/sensor
Getthelidar sensortime status. Thesevaluesrelatetothehardwaretimestampingmechanism
ofthe sensor.
GET /api/v1/system/time/sensor HTTP/1.1
Host: 192.0.2.123
HTTP/1.1 200 OK
content-type: application/json; charset=UTF-8
{
"nmea": {
"baud_rate": "BAUD_9600",
"diagnostics": {
"decoding": {
"date_decoded_count": 0,
"last_read_message": "",
"not_valid_count": 0,
"utc_decoded_count": 0
},
"io_checks": {
"bit_count": 1,
"bit_count_unfiltered": 0,
"char_count": 0,
"start_char_count": 0
}
},
(continuesonnext page)
38