• Make the decoded unit part of a rangefinder test record

    tommy • 09/19/2026 at 15:26 • 0 comments

    Disclosure: this driver project is maintained for ERDI TECH LTD. This log is a documentation review for civil and industrial distance measurement, not a new hardware test result.

    A serial parser can return a plausible number with the wrong physical unit. The LRF50H and LRF50VB documents make a useful concrete comparison: the example distance bytes `02 11` represent the little-endian integer 4354, but the LRF50H document says 4354 cm and the LRF50VB document says 4354 mm. Those correspond to 43.54 m and 4.354 m. A shared frame header is not enough to choose the scale.

    A small, model-specific acceptance record should therefore contain:

    1. The full model name and the manual revision used to choose the parser.

    2. The unmodified received bytes and receive timestamp.

    3. The decoded integer, physical unit and converted distance.

    4. A separate valid/out-of-range state.

    5. An independently measured reference distance and the observed difference.

    For LRF50H and LRF600H, the documented out-of-range value is 65535 cm. LRF50VB instead documents 50000 in its millimetre output format. These are sentinels to handle explicitly; an application should not silently present one as a measured object distance.

    The wiring record belongs beside the parser record. LRF50H and LRF600H specify a 9–36 V DC supply; LRF50VB specifies 3.3–5 V DC. The H-model supply value does not specify its TX/RX signal voltage, which is absent from those source documents. Confirm the delivered interface before connecting it to a host.

    There is an unresolved limitation in the LRF50VB V3.0 source: some page headers name a different model, and the documented checksum function does not reproduce the command-table checksum examples. This log does not resolve either discrepancy. Keep the exact source and obtain confirmation of the delivered configuration before relying on those commands.

    The proposed record is useful even before automation: it separates a documented protocol assumption from a measured bench result. No new accuracy, timing or hardware-compatibility claim is being made here.

    Project source: https://github.com/ErdiTech/erdi-lrf-drivers

    ERDI TECH LTD · 905 nm laser rangefinder modules · tommy@erdimail.com · WhatsApp +86 133 0819 5790 · erdilrf.com

    Email ERDI · WhatsApp · Product enquiries