Kleidos API Search

In development. It changes without notice.

The bench meter's documentation

The bench meter measures what each Kleidos board draws: an ESP32-S3 reading a TI INA228 across a 0.1 Ω shunt in the board's battery lead, with a relay pair that takes the offset null without hands. It speaks SCPI over its serial line and nothing else, and a host package on the PC (kleidos-meter) gives it a command line, a Python interface and a panel in the browser. These pages are its documentation, the usage and the firmware's reference together, in English. Each is a Markdown file of the repository, and reads the same there.

Reading order

  1. Start: what the instrument is and the quick start on the simulated instrument, in the repository's README; then a measuring session in order, in the usage guide.
  2. The panel: the panel, kleidos-meter serve, every view with its image.
  3. The command line: every command of kleidos-meter, what it takes and exits with.
  4. The HTTP API: the panel's routes, for a script that drives the panel.
  5. SCPI: the protocol, every command, report key, error number and stream record.
  6. The rig and its wiring: the schematic, normative for the wiring, then the wiring guide, the carrier board, the Relay 2 Click and the parts.
  7. Calibration: what the calibration is, the null and the shunt's two points.
  8. Troubleshooting: what a wrong answer, a refusal or an error number usually means.
  9. Testing: every test, the report and its gates, and the bench suite.
  10. The firmware's reference: the firmware, its boot, its two tasks and every symbol by topic, with its design.
  11. The Python host package: its public interface, class by class, and how the package is made.

The rest, by what you are doing:

Use the meter

Document What it answers
The usage guide How a measuring session goes: the port, the line, the calibration, the null, a measurement, a capture, its export, the relays, the end state
The panel's guide The panel (kleidos-meter serve): starting it, every view with its image, the chart (the mean line, the band, smoothing, the readout, the view's exports), the pin view (what each mark means, how a change is applied, proved and undone from the console), the INA228's noise reduction, what each sequence moves, exports, the passthrough, and what happens when something dies
The command line's reference Every command of kleidos-meter: what it takes, what it exits with, an example. Generated
The Python API's reference The host package from Python: every public class, method and function. Generated
The HTTP API's reference The panel's HTTP API, route by route: what each takes, answers and sends. Generated
The troubleshooting guide What a wrong answer, a refusal or an error number usually means, the panel's chart, its noise reduction and a reverted pin map included: the query that checks it, the fix, and where it is defined
The SCPI command set What each command, report key, error number and stream record is, and a quick reference of the ones a session sends. The protocol, normative
The calibration guide What the calibration is, what each verdict asks of you, the normative null, the two-point shunt calibration, its uncertainty, and how the QA harness's pin follows it
The host package's README The host package and how it is made: the Python client, the panel's process, its recordings, the simulated instrument
The changelog What each version changed on the wire, and what the Kleidos QA harness must know of it

The panel's images, every view dark and light at a desktop's width and dark at a phone's, are in images/panel/, taken from kleidos-meter serve --sim by scripts/take_panel_shots.py; tests/firmware/test_panel_images.py names the one to take again when its view changes. Under images/panel/bench/, the panel over the cable to the meter, each image with its date and the image's elf= (“On the bench” in the panel's guide), filed by scripts/file_bench_shots.py.

Build the rig

Document What it answers
The wiring guide What to measure before wiring, every wire as a row, the checks before power, the first test
The carrier board's guide Which terminal of the ESP32-S3 carrier is which pin, which to use, and which USB port is which
The Relay 2 Click guide How the Relay 2 Click is fitted as the shunt bypass
The schematic's page The schematic, normative for the wiring, and how it is generated
The bill of materials The parts, and which are on hand
The repository's README What the instrument is, and how it is built and flashed

Develop the firmware

Document What it answers
The firmware's architecture The design as it is: the sensor, what is measured and how, the tasks, the hot path, the relays
The INA228 reference The INA228's registers and scaling, as this instrument uses them
The testing guide Every test, the report and its gates, and the bench suite
The MISRA record What the firmware holds of MISRA C++:2023, where it departs, and what allocates before app_main()
The relay timings How long the relays' contacts take, as measured, against the settle waits
The repository's rules The rules of this repository, for a person or an agent changing it

This site (mkdir -p build && doxygen Doxyfile, into build/doxygen/html) is these pages and the firmware's reference, which documents every symbol of firmware/src; the reference opens on its front page (docs/firmware.dox) and lists its topics (docs/groups.dox). As it is published, in the Kleidos design, it is built by python3 scripts/build_reference.py --out <dir> (“The documentation site” in the testing guide).

History

Records of their date, kept as they were written: nothing here describes the instrument as it is now.

Document What it records
The first design The design of firmware 0.1.0, frozen on 2026-11-22
The record of 2026-11-19, the record of 2026-11-20 The calibrations before the registry
The radio A/B's record, the radio A/B's addendum The radio test that failed and made the meter serial-only, and its addendum