Serial frames and configuration commands on radar modules

Vendors publish protocol documents, PC tools and firmware images, not one universal frame layout. Pin the parser to your board revision.

This chapter explains how to approach the serial side without inventing a frame format. No physical device has been bench tested here, and no byte-level frame layout is quoted because the product pages do not publish one.

There is no shared frame layout across the six modules

The official material for each module is different, and the interface you can rely on is the one that vendor documents.

Module Published serial material Configuration path
HLK-LD2410 product pages and an engineering report BLE on the AA variant, vendor tooling
HLK-LD2450 vendor PC tool, BLE and OTA configuration path firmware and PC tool
Ai-Thinker Rd-03D serial protocol, manuals, firmware images, test reports documented firmware 2307, V1.0.0
DFRobot C1001 wiki and Arduino or ESP32 library material vendor library
Seeed MR60 kits Tiny Frame manual, firmware images, upgrade tool ESPHome on the XIAO ESP32C6 host

Fetch the frame header, length field, payload order and checksum rule from the protocol document for the exact revision you ordered. A parser written against another module in the same band will misinterpret the payload even when the baud rate happens to match.

Structure the parser so it can recover

The following is general parser hygiene, not a description of any vendor frame. Map each step onto the fields your protocol document actually defines.

  1. Search for the documented start marker and ignore bytes before it.
  2. Read the documented length field, then wait for exactly that many payload and trailer bytes.
  3. Apply the documented checksum or CRC and discard the frame if it fails.
  4. On a bad frame or a timeout, return to step 1 rather than trying to resynchronise mid-payload.
  5. Count consecutive rejected frames separately. A rising count points at wiring, level or baud rate before it points at the radar algorithm.

A 10 frames per second stream and a 100 ms reporting cycle both leave the host enough time to do this cleanly. Blocking reads with no timeout are the usual reason a host appears to freeze after one malformed frame.

Basic reports and engineering reports are different contracts

On the LD2410, the engineering report exposes the moving and still energy of each distance gate. The basic report does not. If the host needs to know which slice of range produced a trigger, it has to enable the engineering report first.

The LD2450 reports a target count and per-target x and y values for moving targets, up to three targets, with a published 0.75 m distance resolution. The coordinates are not room coordinates and the tracker does not report a stationary person as a new moving target.

Sensitivity, per-gate thresholds and the no-person delay are three separate controls. Changing one does not retune the others.

Firmware openness sets the ceiling

Two of the six modules are documented as configurable and four are vendor-locked. Seeed states that the raw radar data and algorithms in its mmWave sensors are non-open source, so the ESPHome host entities are configurable while the signal processing is not. Seeed also offers 3D point-cloud and interference-region settings as a customisation service rather than a public API.

Ai-Thinker publishes firmware images and a serial protocol but does not state that the tracking algorithm is open source. Hi-Link publishes a BLE and OTA configuration path and a PC tool for the LD2450 without stating that the tracking algorithm is open source either. Plan around the documented frames, not around modifying the front end.

Archive what you validated

Keep the firmware image, protocol revision, PC tool version and module part marking together with the parser. The Rd-03D page publishes a standard tracking firmware image and Hi-Link publishes an OTA path, so a reflash is a realistic event in a project's life, not a hypothetical one. Re-run the frame checks after any firmware change.