31
INSTRUCTION BULLETIN—Reference Guide
CyTime
TM
Sequence of Events Recorder
IB-SER32e-02
Jan-2022
© 2010-2022 Cyber Sciences, Inc. All rights reserved.
The response values for each HTTP GET request are described below. Response
strings are in JSON format, i.e. {“key1”:”value1”, “key2”:”value2”}.
“/channels/status“
This reports the channels’ current states and other setup data.
1) Response parameters
a) Status
This is a bitmask with left most bit channel 1, right most bit channel 32.
A bit value of 1 indicates the channel is in on.
b) Inverted
A bitmask indicating each channel’s inverted setting. Left most bit is
channel
1.
c) Forced_off / Forced_on
A bitmask indicating each channel’s forced off/on state (which only
occurs during test mode). Left most bit is channel 1.
2) Example response:
{“status”: 8,”inverted”: 8,”forced_off”: 0,”forced_on”: 0,”device_diagnostics”: 0}
“/events/last”
This reports the event record pointers.
1) Response parameters
a) NumberOfEvents
This is the total number of events captured, from 1 to 8192.
b) FirstRecord
This is the location from 0 to 8191 of the first record location.
c) LastRecord
This is the location from 0 to 8191 of the last record location.
d) LastSequenceNumber
This is the sequence number of the last record.
2) Example response
{“NumberOfEvents”: 8192, “FirstRecord”: 0, “LastRecord”: 10, “LastSequence
Number”: 10340819}
“/events” (top 100, 8 register format with local 1984 epoch timestamp)
1) Example response:
{“events”: [{“r”: “0221-828A-C46B-3FD5-0001-0000-0000-0000},xxx,{“r”:
“021A-838A-C46E-3FD5-0064-0000-0000-0000”}]}
*See page 21, “Table 3-2 – Event Log Registers” for format.
“/events?record=0&count=3” (8 register format with local 1984 epoch timestamp)
1) Example response:
{“events”: [{“r”: “0641-8013-C420-3FD5-0001-0000-0000-
0000”},{“r”: “0261-8013-C420-3FD5-0002-0000-0000-0000”},{“r”:
“021A-810D-C420-3FD5-0003-0000-0000-0000”}]}
*See page 21, “Table 3-2 – Event Log Registers” for format.
HTTP GET - Command Descriptions