SPD1200ZG — 8-byte command frame and 12-byte angle reply
Transcribed from the manufacturer's own manuals · byte strings verified against the source PDF · no reverse-engineered guesses
Accessories differ from the N-series: commands are 8 bytes and angle replies are 12 bytes with a checksum taken over bytes 1–11.
Frame layout
命令帧 8 字节:55 AA | Function | D1 | D2 | D3 | D4 | Checksum;角度类应答 12 字节,Checksum = 第 1–11 字节之和,应答首字节写作 0x55 0xAA;默认 115200 bps UART-TTL。
Command set
| Code | Function | Send | Reply | Notes / page |
|---|---|---|---|---|
0x01 | 波特率设置 | 55 AA 01 FF FF FF Type SUM[3:7] | 55 AA 01 STA FF FF Type SUM[1:7] | Type 01=9600 / 02=14400 / 03=19200 / 04=38400 / 05=56000 / 06=115200(默认) / 07=128000 / 08=230400;STA=0x00 失败 / 0x01 成功 |
0x90 04 | 角度归零 | 55 AA 90 04 FF FF FF 91 | 0x55 0xAA 0x97 0xFF 0xFF Roll_h Roll_l Yaw_h Yaw_l Pitch_h Pitch_l Checksum | 12 字节应答;Checksum = 第 1–11 字节之和 |
0x90 07 | 两点测距(第一次点击) | 55 AA 90 07 FF FF FF 94 | 0x55 0xAA 0x97 0xFF 0xFF D_h D_l Yaw_h Yaw_l Pitch_h Pitch_l Checksum | D_h/D_l 为距离高/低字节 |
0x90 07(第二次) | 两点测距(第二次点击) | — | 0x55 0xAA 0x96 D1_h D1_l D0_h D0_l Yaw_h Yaw_l Pitch_h Pitch_l Checksum | D1 = 两点间三维距离,D0 = 斜距;Checksum = 第 1–11 字节之和 |
0x90 0A | 读取角度 | 55 AA 90 0A FF FF FF 97 | 0x55 0xAA 0x97 0xFF 0xFF Roll_h Roll_l Yaw_h Yaw_l Pitch_h Pitch_l Checksum | |
0x89 | 连续测量 | 55 AA 89 FF FF FF FF SUM[3:7] | 55 AA 89 STA FF DATA_H DATA_L SUM[1:7] | STA=0x00 失败 / 0x01 数据上报成功;原始输出 = 测量值 × 10 |
0x88 | 单次测量 | 55 AA 88 FF FF FF FF SUM[3:7] | 8 字节距离应答(见原文 6.6) | 原文 6.6 定义 8 字节距离应答;12 字节角度应答的字段标度与校验溢出约定,原文明示需实现前确认 |
Timing and rates
p2 · measurementupdaterateis2–10Hz.Customconfigurationsareavailabletomeetcustomer p3 · 7 Measurementupdaterate 2–10Hz p3 · 13 Startuptime ≤200ms p3 · 14 Peakstartupcurrent ≤200mA p4 · updaterateof2–10Hz. p6 · 01 9600bps p6 · 02 14400bps p6 · 03 19200bps p6 · 04 38400bps p6 · 05 56000bps
Status codes and errors
p6 · STA=0x00:configurationfailed;STA=0x01:configurationsuccessful. p8 · STA=0x00:configurationfailed;STA=0x01:successfuldatareport. p8 · STA=0x00:configurationfailed;STA=0x01:configurationsuccessful,withdatareported.
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
- SPD1200ZG · SPD1200ZG_User_Manual_EN_20260906.pdf (9 pages)
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 SPD1200ZG 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.