Skip to main content

Serial monitor (browser)

Connect a module through a USB-TTL adapter, pick the model, and read distances live. The page runs entirely in your browser: bytes from the serial port are decoded locally and nothing is uploaded.

  • Works in Chrome and Edge on desktop (Web Serial API, HTTPS). It does not work in Firefox, Safari or on phones.
  • Covers the 22 models with a published protocol. For the others, ask us.
  • Wire the module first: wiring and power. Use the right supply for the model.
Loading the serial monitor...

How it decodes​

The frame logic is a JavaScript port of the erdi-lrf Python package. The unit, frame length and out-of-range marker come from the per-model table, not from the protocol family: see units and out-of-range. A frame with a bad checksum is dropped and counted under Rejected, and the parser resynchronises on the next valid header.

Family A modules (LR, SPD1200N, LRF1200A1, LRF3000A1) are polled: the monitor sends the single-shot request 55 AA 88 FF FF FF FF 84 at the poll rate you choose. Family B modules stream by themselves. LRF10VB, LRF22VB and LRF50VB also have start and stop commands, shown as buttons while connected.

Tests​

The decoder is tested against golden frames generated from the Python package for all 22 models, against frames rebuilt from two real factory capture logs, and against noisy and chunked streams. Run them from the repository: npm test.

Run it without hardware​

Run demo feeds simulated frames for the selected model through the same parser, so you can see the chart and CSV export.