SPD1200N0 / N2 / N4 — the 35-row source protocol table

Transcribed from the manufacturer's own manuals · byte strings verified against the source PDF · no reverse-engineered guesses

These three manuals print the same 35-row table, row for row. Where a row prints only `55` for the LD constant-on reply, the source does not give the full frame — do not invent bytes.

Frame layout

8 字节帧:Frame Header (H) | Frame Header (L) | Function Code | D1 | D2 | D3 | D4 | Checksum;UART-TTL,默认 115200 bps,8 data bits;发送帧校验 SUM(Function Code + DATA1 + … + DATA4)(原文 SUM[3:7]),应答帧校验 SUM(Frame Header (H)+Frame Header (L)+…+DATA4)(原文 SUM[1:7]),取累加和低 8 位;原文单列 Notes 强调命令帧与应答帧校验范围不同。

Command set

CodeFunctionSendReplyNotes / page
0x88单次测距 Single-Shot Ranging55 AA 88 FF FF FF FF SUM[3:7]55 AA 88 STA FF DIS_H DIS_L SUM[1:7]STA = 1: Measurement successful; any other STA value: Measurement failed。DIS_H/DIS_L 为距离高/低字节,原始输出 = 测量值 × 10 · p6
0x89连续测距 Continuous Ranging55 AA 89 FF FF FF FF SUM[3:7]55 AA 89 STA FF DIS_H DIS_L SUM[1:7]STA = 1 成功,其他值失败;原始输出 = 测量值 × 10 · p6
0x8E停止连续测距 Stop Ranging55 AA 8E FF FF FF FF SUM[3:7]55 AA 8E STA FF FF FF SUM[1:7]STA = 0: Failed to stop continuous ranging; STA = 1: 停止成功 · p6
0x8A角度测量 Angle Measurement55 AA 8A FF FF FF FF SUM[3:7]55 AA 8A STA FF ANG_H ANG_L SUM[1:7]STA = 0 失败 / 1 成功;ANG_H/ANG_L 为角度高/低字节,原始输出 = 测量值 × 10;仅带角度传感器的型号可用 · p6
0x80上电自检 Power-On Self-Test(模块主动上报)—55 AA 80 STA 00 00 ErrCode SUM[1:7]STA = 0: Power-on initialization failed, ErrCode 为错误码;STA = 1: 初始化成功
TYPE波特率设置 Baud Rate55 AA TYPE FF FF FF FF SUM[3:7]55 AA TYPE STA FF FF FF SUM[1:7]TYPE = 01: 9600 / 02: 14400 / 03: 19200 / 04: 38400 / 05: 56000 / 06: 57600 / 07: 115200 / 08: 128000 / 09: 230400 bps;STA = 0 失败 / 1 成功;重启后生效 · p7
0x86LD 常亮模式 LD Constant-On Mode55 AA 86 FF FF FF STA SUM[3:7]55(原文应答行只印出 55,未给出完整应答帧)发送侧 STA = 0: Disable LD constant-on mode / 1: Enable;应答侧 STA = 0 已开 / 1 已关 / FF 操作失败;原文强调不得长时间常亮 · p7

Timing and rates

p2 · nm. It measures distances from 3 to 1000 m at an update rate of 2.5–15 Hz, customizable to customer p2 · accuracy and a high measurement update rate. p2 · 7 Measurement update rate 2.5–15 Hz p2 · 11 Baud rate 115200 bps default p2 · 13 Startup time ≤200 ms p2 · 14 Instantaneous startup current ≈200 mA p3 · update rate varies with distance; the typical range is 2.5–15 Hz. p6 · Baud rate: 115200 bps (default) p6 · Power On Self Test p6 · STA=0:initializationfailed;ErrCodecontainstheerrorcode.

Status codes and errors

p2 · 9 False alarm rate ≤1% p6 · STA=1:measurementsuccessful;anyothervalue:measurement failed. p6 · STA=0:failedtostopcontinuousmeasurement;STA=1:continuousmeasurementstoppedsuccessfully. p6 · STA=0:measurement failed;STA=1:measurementsuccessful. p6 · 55 AA 80 STA 00 00 ErrCode SUM[1:7] p6 · STA=0:initializationfailed;ErrCodecontainstheerrorcode. p6 · STA=1:initializationsuccessful. p7 · STA=0:configurationfailed;STA= 1:configurationsuccessful. p7 · STA=0:disableLDcontinuousonmode;STA=1:enableLDcontinuousonmode. p7 · STA=0:enabled;STA=1:disabled;STA=FF:operationfailed.

What the source does not state

Where a manual prints an incomplete reply (for example only 55 for the LD constant-on acknowledgement), this page reproduces that and stops — it does not pad the frame. Anything not printed in the manual is absent here on purpose.

Models covered by this page

Source documents

Full transcription method: byte strings are asserted to exist in the extracted PDF text at build time, and re-checked against the page citation. If a string is not in the PDF, the page is not published.

Frequently asked questions

The same answers are published below as visible text and as FAQPage structured data, so the page and the markup cannot drift apart.

What baud rate does the SPD1200N0 family use?
115200 bps, 8 data bits, factory default; 9600 bps is selectable.
How is the checksum computed?
Command frames sum bytes 3–7; replies sum bytes 1–7, taking the low 8 bits. The manual states the two ranges separately.

Related