RTMaps Toolkits Documentation日本語

Basic Toolkit › Sensor Driver components

Hi_Link_LD2410C

Driver for the Hi-Link HLK-LD2410C 24 GHz mmWave human presence radar connected through a serial port; outputs the decoded target state, distances and energies.

Processing

Usage

Data format

Notes

References

Properties

NameDefaultDescription
port_nameCOM1Serial port name (e.g. COM3 or /dev/ttyUSB0). Must not be empty.
engineering_modetrueIf true, the sensor is put into engineering mode and the per-gate energies, light level and OUT pin state are output.
polling_ratio_in_ms10Period at which the serial port is read, in millisecond (1 to 50; otherwise the component stops with an error). The limit keeps the polling at 20 Hz or faster, twice the report rate of about 10 Hz.
apply_sensor_settingsfalseIf true, the five detection settings below are written to the sensor (only the values that differ). They are stored in the sensor and remain after power-off.
max_moving_gate8Farthest gate (2 to 8) for moving targets. Used only when apply_sensor_settings is true.
max_stationary_gate8Farthest gate (2 to 8) for stationary targets. Used only when apply_sensor_settings is true.
no_one_duration_in_s5Time in second (0 to 65535) after the last detection before the state becomes no target. Used only when apply_sensor_settings is true.
moving_sensitivity50,50,40,30,20,15,15,15,15Motion sensitivity of gates 0 to 8: nine comma-separated integers from 0 to 100. A target is detected when its energy exceeds the value; 100 disables the gate. Used only when apply_sensor_settings is true.
stationary_sensitivity0,0,40,40,30,30,20,20,20Stationary sensitivity of gates 0 to 8 (same format). Gates 0 and 1 cannot be set and are ignored. Used only when apply_sensor_settings is true.

Outputs

NameDescription
target_stateTarget state: 0 none, 1 moving, 2 stationary, 3 both (4 to 6: background noise detection).
Type: Integer32
moving_distance_in_mDistance of the moving target in meter.
Type: Float64
moving_energyEnergy of the moving target (0 to 100).
Type: Integer32
stationary_distance_in_mDistance of the stationary target in meter.
Type: Float64
stationary_energyEnergy of the stationary target (0 to 100).
Type: Integer32
detection_distance_in_mDetection distance in meter.
Type: Float64
moving_gate_energyMotion energy of each distance gate 0 to N (engineering mode only).
Type: Integer32
stationary_gate_energyStationary energy of each distance gate 0 to N (engineering mode only).
Type: Integer32
light_levelValue of the light sensor, 0 to 255 (engineering mode only).
Type: Integer32
out_pinState of the OUT pin, 1 when a person is detected (engineering mode only).
Type: Integer32