Forums Technical Articles Developer Docs 中文区 UART Decoder Module Database Models Quotes & Orders EN · 中文 · 日本語 · DE · ES

LRF3000A1 continuous ranging: reply function byte is 88, not 89. Bug or expected?

Viewed 0

Frequently asked by integrators; answered by ERDI Engineering.

I send the continuous ranging command 55 AA 89 FF FF FF FF 85 to an LRF3000A1, but every reply starts with 55 AA 88. My parser matches the reply function byte against the request and drops everything. Is something wrong with my unit?

1 Answers

Nothing is wrong with your unit. This is a known inconsistency in the datasheet itself: the continuous-ranging request carries function byte 0x89, while the reply is printed with 0x88, and the manual flags this on the page with a "PROTOCOL HOLD" note (the request and reply function bytes differ). The LRF1200A1 manual has the same entry. Engineering confirmation is pending, so please do not build a parser that depends on either value.

Write the reply parser to accept both:

def parse_a1(f):
    if len(f) != 8 or f[0] != 0x55 or f[1] != 0xAA:
        return None
    if f[2] not in (0x88, 0x89):       # single-shot and continuous replies
        return None
    if sum(f[0:7]) & 0xFF != f[7]:     # reply checksum covers bytes 1-7
        return None
    return ((f[5] << 8) | f[6]) / 10.0 if f[3] == 1 else None

Other points that matter when you wire it up:

  • Replies carry the actual value x 10, high byte first, and STA = 1 means success.
  • Request checksum = sum of function code plus the four data bytes; reply checksum = sum from the first header byte. They are deliberately different.
  • The LRF3000A1 has an Enable pin that is power-on at low level; its UART is TTL 3.3 V at 115200 baud (9600 also listed), supply 3.3-5 V.
  • Response time is stated as 160 ms or less plus 100-517 ms for start-up and first ranging, so do not time out the first command too early.
  • The manual says the power-on self-test message is not sent when initialization succeeds by default, so do not wait for a 55 AA 80 frame.
  • On the LRF1200A1 the supply is printed as 3.3 V +/- 0.1 V in the table but 3.3-5 V in the body text. Datasheet inconsistent; we confirm the correct value in writing for your unit, so do not run it from 5 V until then.

Sources:

ERDI Verified Answer — checked against the datasheet by ERDI Engineering.

ERDI Engineering Community is run by ERDI TECH LTD (Chengdu, China) · erdilrf.com · GitHub · Civil applications only · Questions about modules from any brand are welcome.