|
LD2410Async
Asynchronous Arduino ESP32 library for the LD2410 mmWave radar sensor
|
The library includes built-in logic to detect long inactivity of the sensor, i.e. long periods without any data being received.
The most common cause for a "silent" sensor is that configuration mode was enabled but never disabled.
If long silent periods are detected, the library attempts to bring both its internal state and the sensor back to normal operation mode.
Recovery is performed in the following steps (each step is separated by the current async command timeout period):
If none of these recovery steps succeed, the library will retry after the inactivity timeout period has elapsed again.
Inactivity handling can be enabled or disabled using:
By default, inactivity handling is enabled.
The inactivity timeout can be configured with:
The default timeout is 60000 ms (1 minute).
Setting the time out to 00 will disable inactivity handling.
Important:
Always set a value larger than the timeout for async commands, which is controlled by:
If the inactivity timeout is shorter than the async command timeout, inactivity handling could trigger while a command is still pending (usually waiting for an ACK). This would cause premature cancellation of the command.
To avoid this, the library automatically adjusts the inactivity timeout: