In development. It changes without notice.
The panel's HTTP API
What kleidos-meter serve answers, route by route. This page is written by scripts/
Conventions
The address is http://127.0.0.1:8040/ unless serve was told another (--bind, --http). It is unauthenticated and listens on the loopback only. Every answer is one JSON object but the event stream and an export.
- A change is a POST with X-Kleidos-Meter: 1. A GET never changes the instrument.
- The Host must name the loopback (localhost, 127.0.0.1 or [::1]), and no answer approves another origin.
- A report is an object of its own keys. A canonical integer is a JSON integer in the unit its key names (i_na, vbus_uv, hold_s), - is null, anything else is the instrument's text, and so are an integer beyond 2^53 and the keys cal_date, cal_tag, chip, die, elf, fw, image, mfg, model, rev, serial.
- errors are what the instrument queued for that message, oldest first, each {code, text}. What it queues on its own (a hold's release, 113 to 115, relays a reset released, 116, and a message an overrun discarded, -363) is never a reply's: whichever message drains it, it goes to /api/events as an error of kind device, and to the running capture's meta.json.
- A message is at most 255 bytes with the ;:SYST:ERR:ALL? serve adds to it, printable ASCII, every quote it opens closed (the error query after an open one would be quoted and get no answer).
- While a sequence runs every change answers 409 (sequence_
running) but POST /api/abort, POST /api/sequences/answer and POST /api/sequences/abort. - While a pin map is applied and checked every change answers 409 (pins_changing) but POST /api/abort.
- While another controller holds the line every route that talks to the instrument answers 423; the ones that say so below do not.
A refusal's body holds error, a short word, and detail, a sentence.
| Status | Says |
|---|---|
| 200 | done; the body is what the route answers |
| 400 | the request is malformed, or refused before anything was sent (a value of the wrong form, a message the instrument would discard, a GET that would act); or the instrument queued a command error (-1xx) |
| 403 | a change without X-Kleidos-Meter: 1 (header_ |
| 404 | no such route, relay order, sequence or run |
| 405 | the route does not take the method; a GET never changes the instrument |
| 409 | the instrument refused it (an execution or device error: -2xx, -3xx, 100 and up, in errors), or serve did: a capture or a sequence runs, a window serve did not open is open, a pin map is being applied, a relay is not at rest, there is nothing to stop |
| 411, 413 | the body has no Content-Length, or is longer than 16384 bytes |
| 421 | the Host header does not name the loopback |
| 423 | another controller holds the line: holder names it |
| 500 | a bug of serve's own, in its log |
| 502 | the instrument answered something other than what was asked |
| 503 | 32 requests run already, the queue of messages is full, the line is down (Retry-After says when to come back) or serve is stopping |
| 504 | the answer did not come in time |
Routes
| Route | Changes | Talks to the instrument | Does |
|---|---|---|---|
| GET /api/schema | no | no | this schema |
| GET /api/status | no | no | the line, the executor and the last status poll; sends nothing |
| GET /api/health | no | yes | health, heap, watchdog, identity and calibration reports |
| GET /api/query | no | yes | queries that read without acting, as JSON |
| POST /api/scpi | yes | yes | program messages, one per line, each with its errors |
| GET /api/settings | no | yes | every setting as the instrument answers it, and each range's shunt with its uncertainty |
| POST /api/settings | yes | yes | settings written, then read back from the instrument |
| GET /api/settings/shunt/preview | no | yes | what an override would write, against the registry's figure |
| POST /api/settings/shunt | yes | yes | an override with its uncertainty and confirm: true, written and kept on the host |
| GET /api/calibration | no | yes | the registry's verdict on the instrument |
| POST /api/calibration/restore | yes | yes | the registry's working copy written back (the revert), the host's overrides removed |
| GET /api/sequences | no | no | the sequence running or the last one |
| POST /api/sequences/run | yes | yes | one sequence started, its steps as data, its cleanup always run |
| POST /api/sequences/answer | yes | no | the running sequence's question answered |
| POST /api/sequences/abort | yes | no | the running sequence aborted: its wait ends, its cleanup runs |
| GET /api/relays | no | yes | ROUTe:STATe? and ROUTe:RESult?, the circuit and the last order |
| POST /api/relays/{relay} | yes | yes | one relay order, with only the flags given, its result and the circuit after it |
| GET /api/pins | no | yes | the board's pins, the live pin map, the staged one and the last change's result |
| POST /api/pins/stage | yes | yes | fields of the pin map staged and judged; nothing on the board changes |
| POST /api/pins/apply | yes | yes | the staged map made the live one: proved on the board and kept, or reverted |
| POST /api/pins/defaults | yes | yes | the rig's own pin map back, with the same checks; it needs no INA228 |
| POST /api/abort | yes | yes | ABORt, ahead of the queue under an acquisition; a running sequence is aborted too |
| GET /api/events | no | no | Server-Sent Events: samples, marks, status, errors, sequences and the ring |
| GET /api/capture | no | no | the recorder: the capture serve owns, or the last one |
| POST /api/capture/start | yes | yes | a capture configured, started and recorded into a run |
| POST /api/capture/stop | yes | yes | the capture closed, its statistics and its ring read, its run finished |
| POST /api/capture/mark | yes | yes | a mark in the running capture |
| GET /api/runs | no | no | the recorded runs, newest first |
| GET /api/runs/{run} | no | no | a run's meta.json |
| GET /api/runs/{run}/export | no | no | a run's records as a download |
| GET /api/runs/{run}/decimated | no | no | a run's count, mean, root mean square, minimum and maximum per bucket, for a chart |
GET /api/schema
This schema.
Answers the settings, profiles, relay orders, sequences and routes declared here, mutation_
GET /api/status
The line, the executor and the last status poll; sends nothing.
Answers link, polling, in_flight, queued, held (who holds the line, or null), passthrough (its URL, its client and the last one's outcome), status and health (the last poll's reports), instrument, foreign_
GET /api/health
Health, heap, watchdog, identity and calibration reports.
Answers one report a key (health, heap, watchdog, info, calibration), and local_elf: the local build's elf against the instrument's, matches null when either has none; its path is relative to serve's working directory or the repository, else the build's last two components: never an absolute path.
Sends SYST:HEAL?, DIAG:HEAP?, DIAG:WATC?, SYST:INF?, CAL:DATA?.
GET /api/query
Queries that read without acting, as JSON.
| Takes | In the | Required | What it is |
|---|---|---|---|
| q | query | yes | one message of queries |
Answers message, units (each answer as the instrument wrote it), fields (each report as an object, {} for an answer that is none), errors, elapsed_s.
POST /api/scpi
Program messages, one per line, each with its errors.
| Takes | In the | Required | What it is |
|---|---|---|---|
| body | text body | yes | program messages, one per line, never a ring dump |
Answers replies, one a message: message, units, errors, elapsed_s. It is a transport: 200 whatever the instrument queued. The messages run in order; when one after the first fails (a time-out, a full queue, the line down or handed over), the answer is still 200, with the replies of those that ran, failed (message, error, detail) and unsent, the messages never sent, and no Retry-After: the ones that ran have changed the instrument.
GET /api/settings
Every setting as the instrument answers it, and each range's shunt with its uncertainty.
Answers settings (each as its query answers it, text), and shunt: the registry's verdict, quotable, the banner, and for each of the two ranges the value it converts with, its source, its uncertainty, the registry's figures, the deviation_ppm and the override.
Sends *IDN?, SYST:INF?, CAL:DATA?.
POST /api/settings
Settings written, then read back from the instrument.
| Takes | In the | Required | What it is |
|---|---|---|---|
| <setting> | JSON body | no | a value of the form its setting takes, one or more settings |
Answers written (the units sent, in the settings' order), errors, and settings: what was written, read back (a profile reads its channels and its averaging back too).
GET /api/settings/shunt/preview
What an override would write, against the registry's figure.
| Takes | In the | Required | What it is |
|---|---|---|---|
| range | query | yes | 0 or 1 |
| ohms | query | no | ohms (the value, once: ohms or uohm) |
| uohm | query | no | micro-ohms (the value, once: ohms or uohm) |
| expanded_ppm | query | no | U at k = 2, ppm (its uncertainty, exactly one of the four) |
| expanded_uohm | query | no | U at k = 2, micro-ohms (its uncertainty, exactly one of the four) |
| tolerance_ppm | query | no | a rectangular limit, ppm (its uncertainty, exactly one of the four) |
| tolerance_ | query | no | a rectangular limit, micro-ohms (its uncertainty, exactly one of the four) |
| note | query | no | where the figures come from, printable ASCII, at most 200 |
Answers unit (what would be sent), uncertainty, device_uohm, registry, deviation_ppm, normalized_
Sends *IDN?, SYST:INF?, CAL:DATA?.
POST /api/settings/shunt
An override with its uncertainty and confirm: true, written and kept on the host.
| Takes | In the | Required | What it is |
|---|---|---|---|
| range | JSON body | yes | 0 or 1 |
| ohms | JSON body | no | ohms (the value, once: ohms or uohm) |
| uohm | JSON body | no | micro-ohms (the value, once: ohms or uohm) |
| expanded_ppm | JSON body | no | U at k = 2, ppm (its uncertainty, exactly one of the four) |
| expanded_uohm | JSON body | no | U at k = 2, micro-ohms (its uncertainty, exactly one of the four) |
| tolerance_ppm | JSON body | no | a rectangular limit, ppm (its uncertainty, exactly one of the four) |
| tolerance_ | JSON body | no | a rectangular limit, micro-ohms (its uncertainty, exactly one of the four) |
| note | JSON body | no | where the figures come from, printable ASCII, at most 200 |
| confirm | JSON body | yes | true |
Answers written (the unit sent), the override kept, and shunt after it.
Sends *IDN?, SYST:INF?, CAL:DATA?, SENS:CURR:SHUN:RANG1.
GET /api/calibration
The registry's verdict on the instrument.
Answers verdict: status (applied is the one to measure on), ok, serial (as the registry files it), aliased, event, differences, warnings and its lines; and registry_
Sends *IDN?, SYST:INF?, CAL:DATA?.
POST /api/calibration/restore
The registry's working copy written back (the revert), the host's overrides removed.
Answers the verdicts before and after, whether anything was written, what it said, cleared_
Sends *IDN?, SYST:INF?, CAL:DATA?, SENS:CURR:SHUN, SENS:CURR:SHUN:RANG1, CAL:TAG, CAL:DATE, CAL:VBUS.
GET /api/sequences
The sequence running or the last one.
Answers state (idle, running, prompt, cleanup), sequence, number, params, outcome and detail once it ended, prompt (id, text, choices) while it asks, total and the steps begun, the cleanup's, the results kept, the run of its capture, elapsed_s.
POST /api/sequences/run
One sequence started, its steps as data, its cleanup always run.
| Takes | In the | Required | What it is |
|---|---|---|---|
| name | JSON body | yes | the sequence's name |
| params | JSON body | no | an object of its parameters, each an integer |
Answers the same as GET /api/sequences, as the sequence began.
POST /api/sequences/answer
The running sequence's question answered.
| Takes | In the | Required | What it is |
|---|---|---|---|
| id | JSON body | yes | the question's id |
| answer | JSON body | yes | one of its choices |
Answers the same as GET /api/sequences.
POST /api/sequences/abort
The running sequence aborted: its wait ends, its cleanup runs.
Answers the same as GET /api/sequences; 409 when none runs.
GET /api/relays
ROUTe:STATe? and ROUTe:RESult?, the circuit and the last order.
Answers result and state, the two reports.
Sends ROUT:RES?, ROUT:STAT?.
POST /api/relays/{relay}
One relay order, with only the flags given, its result and the circuit after it.
| Takes | In the | Required | What it is |
|---|---|---|---|
| relay | path | yes | a relay order's name |
| state | JSON body | no | a word of its choices; an order with none takes ms |
| ms | JSON body | no | a duration, milliseconds, for an order with no choices |
| force | JSON body | no | true adds FORCe |
| live | JSON body | no | true adds LIVE |
Answers order (the unit sent), errors, and the result and state after it.
Sends ROUT:RES?, ROUT:STAT?.
GET /api/pins
The board's pins, the live pin map, the staged one and the last change's result.
Answers board (the package's pin table: every terminal, its class and its reason, the roles and the defaults), table (package and instrument, the table's digest on each side, and whether it matches: when it does not, staging and applying are refused), live, pending and result (the instrument's reports) and differs (the fields staged otherwise than they run).
Sends SYST:PINS?, SYST:PINS:PEND?, SYST:PINS:RES?.
POST /api/pins/stage
Fields of the pin map staged and judged; nothing on the board changes.
| Takes | In the | Required | What it is |
|---|---|---|---|
| <field> | JSON body | no | a field of the map, one or more: a role's GPIO or null, a pull (up, off), a relay's active level (high, low), addr (auto or a number), scl_hz |
| clear | JSON body | no | true starts from the live map, the staged one dropped |
Answers sent (the units), errors and pending, the staged map with its verdict (valid, and when 0 the problem and the field it is at).
Sends SYST:PINS?, SYST:PINS:PEND?, SYST:PINS:STAG, SYST:PINS:ADDR, SYST:PINS:CLOC, SYST:PINS:CLE.
POST /api/pins/apply
The staged map made the live one: proved on the board and kept, or reverted.
Answers order (the unit sent), errors, result (the instrument's report of it: ok, or reverted with the last good map back, 409), live and pending after it, and check, null unless a relay moved: the null-path check made on its new pad, passed (the live map then reads verified 1), its errors, its result, the circuit's state and a detail. Refused unsent while a sequence (409 sequence_
Sends SYST:PINS?, SYST:PINS:PEND?, SYST:PINS:RES?, ROUT:RES?, ROUT:STAT?, ROUT:NULL ON, ROUT:NULL OFF, SYST:COMM:I2C:FREQ?, SYST:PINS:APPL.
POST /api/pins/defaults
The rig's own pin map back, with the same checks; it needs no INA228.
Answers order (the unit sent), errors, result (the instrument's report of it: ok, or reverted with the last good map back, 409), live and pending after it, and check, null unless a relay moved: the null-path check made on its new pad, passed (the live map then reads verified 1), its errors, its result, the circuit's state and a detail. Refused unsent while a sequence (409 sequence_
Sends SYST:PINS?, SYST:PINS:PEND?, SYST:PINS:RES?, ROUT:RES?, ROUT:STAT?, ROUT:NULL ON, ROUT:NULL OFF, SYST:COMM:I2C:FREQ?, SYST:PINS:DEF.
POST /api/abort
ABORt, ahead of the queue under an acquisition; a running sequence is aborted too.
Answers sent, the message's reply, and sequence (the one aborted, or null).
Sends ABOR.
GET /api/events
Server-Sent Events: samples, marks, status, errors, sequences and the ring.
Answers an event stream, resumed after the Last-Event-ID header when it is sent; 503 while eight others are open.
| Event | Carries |
|---|---|
| samples | every 100 ms, the samples since the last batch as columns of integers: n0 (the first row's index in the capture), count, t_us, and i_na, v_uv, p_uw, die_mc of the channels it holds, null in a row that lacks one |
| mark | a mark record in its place among the batches: label, n, t_us |
| status | kind: hello (the first event of a stream), poll (the last status poll), link, reboot, capture, passthrough, settings (changed: the settings a message that was written changes, whoever sent it) |
| error | kind: device (errors nobody asked for), overflow (a line too long to hold), recorder (a run's files could not be written) |
| sequence | the sequence's state, as GET /api/sequences answers it, at each change |
| ring | a ring capture's fill (samples, running) and its dump's progress (dump) |
| lost | to one stream only: the events it missed, and the samples among them, null when unknown |
An event's id is <epoch>-<seq>-<rows>. A browser that reconnects with Last-Event-ID goes on right after it, or is told with lost what it missed.
GET /api/capture
The recorder: the capture serve owns, or the last one.
Answers state (idle, starting, running, stopping), run, data_dir (relative to serve's working directory or the repository, else its last two components: never an absolute path), and profile, seconds, elapsed_s, samples, marks and noise_
POST /api/capture/start
A capture configured, started and recorded into a run.
| Takes | In the | Required | What it is |
|---|---|---|---|
| profile | JSON body | yes | a profile's name, long or short |
| channels | JSON body | no | a list of CURR, VOLT, POW, TEMP, or DEFault; the instrument's as they stand when absent |
| seconds | JSON body | no | stop it after so long, at most 604800 (a week); until it is stopped when absent |
| label | JSON body | no | a note kept in the run, printable ASCII, at most 80 |
Answers state (idle, starting, running, stopping), run, data_dir (relative to serve's working directory or the repository, else its last two components: never an absolute path), and profile, seconds, elapsed_s, samples, marks and noise_
Sends SENS:PROF, SENS:FUNC:ON, SENS:FUNC:ON:DEF, INIT, FETC:HEAD?.
POST /api/capture/stop
The capture closed, its statistics and its ring read, its run finished.
Answers run, its summary and its meta (meta.json).
Sends ABOR, FETC:STAT?, FETC:HEAD?, TRAC:POIN?, TRAC:DATA?.
POST /api/capture/mark
A mark in the running capture.
| Takes | In the | Required | What it is |
|---|---|---|---|
| label | JSON body | yes | 1 to 15 printable characters, no space and none of , ; = " ' |
Answers label and the instrument's errors.
Sends TRAC:MARK.
GET /api/runs
The recorded runs, newest first.
| Takes | In the | Required | What it is |
|---|---|---|---|
| limit | query | no | how many, 1 to 1000 (100) |
Answers runs, a summary each: id, state, complete, profile, format, label, started, ended, ended_by, samples, dropped, stream_
GET /api/runs/{run}
A run's meta.json.
| Takes | In the | Required | What it is |
|---|---|---|---|
| run | path | yes | the run's id, as GET /api/runs lists it |
Answers the run's meta.json.
GET /api/runs/{run}/export
A run's records as a download.
| Takes | In the | Required | What it is |
|---|---|---|---|
| run | path | yes | the run's id, as GET /api/runs lists it |
| format | query | no | text, csv or json (csv) |
Answers the file, named <run>.txt, <run>.csv or <run>.json; 409 (recording) while the run is still being written, since an export is made once and kept.
GET /api/runs/{run}/decimated
A run's count, mean, root mean square, minimum and maximum per bucket, for a chart.
| Takes | In the | Required | What it is |
|---|---|---|---|
| run | path | yes | the run's id, as GET /api/runs lists it |
| column | query | no | i_na, v_uv, p_uw or die_mc (i_na) |
| buckets | query | no | how many buckets of equal duration, 1 to 10000 (1000) |
| t0_us | query | no | the first timestamp (the run's) |
| t1_us | query | no | the last timestamp (the run's) |
Answers column, t0_us, t1_us, bucket_us, and the columns t_us (each bucket's start), min, max, n (its samples), mean (their arithmetic mean) and rms (their root mean square) of the buckets that hold samples.
Settings
What GET /api/settings reads and POST /api/settings writes, in the order they are written. A value is checked for its form, never for its range: that is the instrument's to refuse. The flags are the instrument's (the SCPI command set): D needs the INA228, R is refused while a capture or a null window runs, C also until one that ended by itself is closed.
| Setting | Value | Written with | Flags | What it is |
|---|---|---|---|---|
| i2c_hz | an integer, Hz | SYSTem:COMMunicate:I2C:FREQuency | DR | the INA228 bus, 50000..1000000 Hz; BURST needs 1000000 |
| profile | one of TRACe, STATe, SLEep, BURSt | SENSe:PROFile | DRC | the sampling profile; resets the channels to its default |
| channels | a list of CURR, VOLT, POW, TEMP, or DEFault | SENSe:FUNCtion:ON | R | what a capture streams; none on a ring profile |
| range | one of 0, 1 | SENSe:CURRent:RANGe:INDex | DRC | ADCRANGE: 0 is ±163.84 mV (1.6384 A), 1 is ±40.96 mV (0.4096 A) |
| capture | one of DATA, STATistics | SENSe:CAPTure | R | DATA streams or fills the ring; STATistics keeps the statistics only |
| limit | true or false | SENSe:CAPTure:LIMit | R | ON ends a capture by itself after the sample count |
| threshold | a number, or OFF, A | SENSe:CURRent:THReshold | R | a level the next captures count against, or OFF |
| hysteresis | a number, A | SENSe:CURRent:THReshold:HYSTeresis | R | how far below the level the count falls back |
| threshold_ | true or false | SENSe:CURRent:THReshold:MARK | R | ON marks each crossing of the threshold in a streamed capture |
| sample_count | an integer | SAMPle:COUNt | R | samples one acquisition takes, and the limit's count |
| trigger_ | one of IMMediate, LEVel | TRIGger:SOURce | R | what starts a ring capture's record |
| trigger_level | a number, A | TRIGger:LEVel | R | the current a level trigger fires at |
| trigger_slope | one of POSitive, NEGative | TRIGger:SLOPe | R | upwards or downwards through the level |
| pretrigger | an integer | TRIGger:PRETrigger | R | samples kept from before the crossing |
| average_count | one of 1, 4, 16, 64, 128, 256, 512, 1024 | SENSe:AVERage:COUNt | DRC | conversions averaged into one sample of the live profile, with averaging ON |
| average_ | a number, s: one of 0.00005, 0.000084, 0.00015, 0.00028, 0.00054, 0.001052, 0.002074, 0.00412 | SENSe:CURRent:APERture | DRC | the time one conversion of the shunt takes on the live profile, with averaging ON |
| average | true or false | SENSe:AVERage[:STATe] | DRC | changes the live profile's measurement: ON converts with the count and the time above instead of its own; OFF at every boot, refused on BURST |
| format | read only | FORMat[:DATA] | R | the stream record format, shown; serve never changes it |
Profiles
| Profile | A sample every | Goes to | Channels by default |
|---|---|---|---|
| TRACe | 280 µs | the ring | – |
| STATe | 1152 µs | the stream | CURR |
| SLEep | 67520 µs | the stream | CURR, VOLT, TEMP |
| BURSt | 100 µs | the ring | – |
Relay orders
The {relay} of POST /api/relays/{relay}. A flag goes out only when the request sets it.
| Order | Takes | Flags | Sends | What it does |
|---|---|---|---|---|
| lead | state: OPEN, CLOSe | FORCe, LIVE | ROUTe:LEAD | Relay 1, the DUT's battery lead: OPEN leaves the DUT without its battery: FORCe is required |
| lead_cycle | ms | FORCe, LIVE | ROUTe:LEAD:CYCLe | Relay 1 opened and reclosed: Relay 1 held open for 1..60000 ms from path=shunt; FORCe is required |
| bypass | state: ON, OFF | FORCe, LIVE | ROUTe:BYPass | Relay 2, the bypass across the shunt: ON takes the shunt off the DUT's current: FORCe under a capture |
| nullpath | state: ON, OFF | LIVE, FORCe | ROUTe:NULLpath | The null path (Relay 2 then Relay 1): ON closes Relay 2 and opens Relay 1, make-before-break, checking each step |
| relay3 | state: ON, OFF | LIVE | ROUTe:RELay# | Relay 3, spare: not wired on the rig: the instrument refuses the order |
| relay4 | state: ON, OFF | LIVE | ROUTe:RELay# | Relay 4, spare: not wired on the rig: the instrument refuses the order |
Sequences
The name and params of POST /api/sequences/run. What each one moves is in “What each sequence moves” in the panel's guide.
| Sequence | Parameters | What it does | Sends |
|---|---|---|---|
| HEALTH | – | identity, reset reason, stacks, heap counts, watchdog, self-test and bus scan | *IDN?, SYST:INF?, SYST:HEAL?, DIAG:HEAP?, DIAG:WATC?, *TST?, DIAG:I2C:SCAN? |
| NULL_RELAY | seconds: 1 to 600 s (5) | a null with the DUT on the bypass (Relay 2 then Relay 1), the path released after | ROUT:NULL, ROUT:STAT?, CAL:ZERO, SYST:STAT?, ABOR, CAL:ZERO:RES? |
| NULL_LEAD | seconds: 1 to 600 s (5) | a null with Relay 1 open (FORCe: the DUT has no battery), the lead reclosed after | ROUT:LEAD, ROUT:STAT?, CAL:ZERO, SYST:STAT?, ABOR, CAL:ZERO:RES?, ROUT:NULL |
| STATE | seconds: 1 to 3600 s (10) | a streamed capture of a state: bus, shunt and temperature at 1152 us | SENS:PROF, INIT, FETC:HEAD?, ABOR, FETC:STAT? |
| SLEEP | seconds: 1 to 86400 s (60) | a streamed capture of deep sleep, averaged 16 at 67.52 ms | SENS:PROF, INIT, FETC:HEAD?, ABOR, FETC:STAT? |
| TRACE | – | a ring of 1048576 shunt samples at 280 us, then its dump | SENS:PROF, INIT, FETC:HEAD?, ABOR, FETC:STAT?, TRAC:POIN?, TRAC:DATA? |
| BURST | – | a ring at 100 us on a 1 MHz bus, then its dump and the bus's clock back | SYST:COMM:I2C:FREQ?, SYST:COMM:I2C:FREQ, SENS:PROF, INIT, FETC:HEAD?, ABOR, FETC:STAT?, TRAC:POIN?, TRAC:DATA? |
| COLD_BOOT | off_ms: 1 to 60000 ms (2000); seconds: 1 to 600 s (10) | the DUT's boot from power-off: a capture across a lead cycle, its moves marked | SENS:PROF, INIT, FETC:HEAD?, TRAC:MARK, ROUT:LEAD:CYCL, ROUT:STAT?, ABOR, FETC:STAT?, ROUT:NULL |
| CAL_VERIFY | – | the instrument's calibration against the registry's copy | *IDN?, SYST:INF?, CAL:DATA? |
| CAL_RESTORE | – | the registry's copy written back where it differs, then verified | *IDN?, SYST:INF?, CAL:DATA?, SENS:CURR:SHUN, SENS:CURR:SHUN:RANG1, CAL:TAG, CAL:DATE, CAL:VBUS |
What a GET never asks
GET /api/query takes only queries that read without acting. It refuses a command, a query the R flag marks, a header the instrument does not have, and the queries whose reading clears what they read: *ESR?, STATus:OPERation[:EVENt]?, STATus:QUEStionable[:EVENt]?, SYSTem:ERRor:ALL?, SYSTem:ERRor[:NEXT]?. POST /api/scpi takes them all but a ring dump, which the recorder fetches to a file.