🦊

TW10S-UART laser distance meter commands

2023/10/21に公開

The commands for TW10S-UART laser distance meter

Command Code Response
Single measurement 01 03 00 0F 00 02 F4 08 01 03 04 xx xx xx xx yy yy
xx:distance data
yy:CRC code
Continuous measurement 01 03 00 01 00 02 95 CB 01 03 04 xx xx xx xx yy yy
xx:distance data
yy:CRC code
Stop continuous measurement 01 03 00 0A 00 02 E4 09
Laser ON/OFF 01 10 00 03 00 01 02 00 01 67 A3 OK:
01 10 00 03 00 01 F1 C9
Change UART baud late
(default:9600bps)
9600bps:
01 10 00 00 00 02 04 00 00 25 80 E8 9F
38400bps:
01 10 00 00 00 02 04 00 00 96 00 9C 0F
115200bps:
01 10 00 00 00 02 04 00 01 C2 00 F3 0F
OK:
01 10 00 00 00 02 41 C8
Read offset length 01 03 00 02 00 01 25 CA 0mm:
01 03 02 00 00 B8 44
Set offset length
(default 0mm)
0mm:
01 10 00 04 00 01 02 00 00 A7 D4
10mm:
01 10 00 04 00 01 02 00 0A 27 D3
-
Read origin point 01 03 00 0A 00 02 E4 09 Front:
01 03 02 00 01 79 84
Back:
01 03 02 00 00 B8 44
Set origin point
(default:front)
Front:
01 10 00 0B 00 01 02 00 01 66 EB
Back:
01 10 00 0B 00 01 02 00 00 A7 2B
Read slave address 01 03 00 0C 00 01 44 09 address 01:
01 03 02 00 01 79 84
Set slave address
(default:01)
address 00:
01 10 00 0D 00 01 02 00 00 A7 4D
address 01:
01 10 00 0D 00 01 02 00 01 66 8D
address 10:
01 10 00 0D 00 01 02 00 0A 27 4A

More detail(Japanese)
https://zenn.dev/inufox/articles/4c106032164f20

TW10S-UART
https://ja.aliexpress.com/item/33035807395.html

Discussion