The LRF0610C has a minimum range of 15 m or less, and command 0x04 lets the host set the nearest distance the module will report (the blind zone). The value is in metres, high byte first.
Request frame: 55 04 02 DATAH DATAL CHK, where 02 is the data length.
- 100 m:
55 04 02 00 64 37 (this is the example printed in the datasheet).
- 300 m (0x012C), computed with the same rule:
55 04 02 01 2C 7E.
The check byte for request frames is the XOR of every other byte including the leading 0x55: 0x55 xor 0x04 = 0x51, xor 0x02 = 0x53, xor 0x01 = 0x52, xor 0x2C = 0x7E.
The reply repeats the nearest-distance value in two bytes (high first) in a 6-byte frame. For the receive frame the datasheet only says all bytes except the parity byte are covered and does not name the algorithm, so verify it on your own capture rather than assuming XOR.
def chk(frame_without_chk):
c = 0
for b in frame_without_chk:
c ^= b
return c
def set_nearest(metres):
body = [0x55, 0x04, 0x02, (metres >> 8) & 0xFF, metres & 0xFF]
return bytes(body + [chk(body)])
Two cautions. The setting is a software gate: it will not fix reflections from your own housing or window, so keep the beam path clear (see https://erdilrf.com/docs/guides/blind-zone-and-minimum-range/). Other commands you may use while testing: self-test 55 03 02 00 00 54, single shot 55 01 02 00 00 56, and a reply code 0xED means the laser is in its protection state and cannot range.
Sources:
ERDI Verified Answer — checked against the datasheet by ERDI Engineering.