![Cyndar Electronic Technology XD-TOF-25 Скачать руководство пользователя страница 35](http://html1.mh-extra.com/html/cyndar-electronic-technology/xd-tof-25/xd-tof-25_operating-instructions-manual_2704637035.webp)
Sensing the world
·
Leading the change
34
20
XX XX XX XX
20
XX XX XX XX
20
XX
……
XX
20
XX XX XX XX
XX XX XX XX
为数据的
16
进制
ASCII
码,
对应
16
进制数据范围为
0000h
(
30 30 30 30
)到
61A8h(36 31 41 38)
20
30
20
30
20
30
20
30
20
30
20
30
<ETX>
03
0
0h
30
25000
61A 8h
36 31 41 38
byte[]get1data={ 0x02, 0x73, 0x52, 0x4E, 0x20, 0x4C, 0x4D, 0x44, 0x73, 0x63, 0x61, 0x6E, 0x64,
0x61, 0x74, 0x61, 0x03 }
;
//Single access command
clientStream.Write(get1data, 0, get1data)
;
//Send login instruction to radar
if (clientStream.CanRead)
byte[] scandata = new byte[8000];
/ /
Open up the cache area, the demand is greater when the data
StringBuilder myCompleteMessage = new StringBuilder(); //
Receive result variable
int numberOfBytesRead = 0;
do
{
numberofBytesRead = clientStream.Read(scandata, 0, scandata.Length);
Space
(
SPC
)
811 data total
811×4=3244 bytes
All in ASCII code form,
to convert it to real
data, first convert the
ASCII code to hexa-
decimal number, and
then convert the
hexadecimal number
to decimal number,
which is the final
distance, the unit is
mm
Data content
Space
(
SPC
)
Default status bit V
Footer
Actual distance
XD-TOF-25
Minimum 0mm
Maximum 25000mm
Decimal
Hex
Hexadecimal ASCII code
Note: When there are actual objects in the space, the minimum value of the radar output is tested to be 3mm
(33), and the radar output is 0 means that the radar does not detect any objects in one direction
(Routine) single access
is fetched once
XD-TOF-25