![TeraBee TeraRanger Neo ES Скачать руководство пользователя страница 12](http://html1.mh-extra.com/html/terabee/teraranger-neo-es/teraranger-neo-es_user-manual_1088202012.webp)
low power mode
DEVICE RESET
Performs a soft reset
0x02 0x05 0x31
The device performs a software reset.
Normal startup logic follows (200ms
delay until data starts streaming).
Table 5 - Valid sensor commands
Please refer to
Connecting the TeraRanger Neo ES to a Host Computer
for instructions
on how to send commands to the sensor using a host computer and the HTerm
emulation software
3.4. Sensor payload
This mode provides users with measured distances displayed in the form of binary
messages using 5 bytes:
TXXSCRC8
.
The Payload will contain 3 bytes of data (2 for
distance in mm
, 1 status byte), and 2
metadata bytes (header and checksum).
Status byte: Two bits to indicate overtemperature (>50°C) and critical temperature
(>60°C) , three bits to indicate the status of distance measurement and three bits to
indicate the quality factor of the distance measurement.
The checksum byte is calculated out of the first 4 bytes of the message (header byte,
distance reading bytes, and status code byte)
Header (1 byte)
:
T (84 decimal / 0x54 hex)
Distance reading in mm (2 bytes) :
XX (MSB, LSB)
Status Code Byte (1 Byte)
:
S (One byte to indicate code status of distance
measurement. See the Status Codes section below)
.
Checksum (1 byte)
:
CRC8
Byte 1
“T”
FRAME HEADER
Byte 2
MSB
DISTANCE
Byte 3
LSB
DISTANCE
Byte 4
STATUS CODE
Byte 5
CRC-8
3.5. Status codes
Certain status codes will be detected and reported by the firmware using the 4th byte of
the payload. Each bit in the byte represents a status flag as described below.
High nibble
Low nibble
Copyright © Terabee 2022
Terabee, 90 rue Henri Fabre
01630 Saint-Genis-Pouilly, France (next to CERN)
12 / 17