Data Sheet
Copyright © Terabee 2018
5.2.2 Output format
Text
mode
Data output:
TH\txxxx\txxxx\txxxx\txxxx\txxxx\txxxx\txxxx\txxxx\r\n
- Header (two characters): T (84 decimal / 0x54 hex) and H (72 decimal /
0x48 hex)
- Tabulation: \t (9 decimal / 0x09 hex)
- Distance reading in millimeters** (maximum 5 bytes per sensor): xxxx
- Carriage return character: \r (13 decimal / 0x0D hex)
- New line character: \n (10 decimal / 0x0A hex)
**if a sensor is not connected or the TeraRanger Hub Evo is unable to obtain the
distance measurement from the TeraRanger Evo sensor, the associated distance
value is replaced by the hexadecimal value “-1”.
If the target is too close to the TeraRanger Evo sensor (below the minimum
distance), the associated distance value is replaced by “-Inf”.
If the target is too far from the TeraRanger Evo sensor (above the maximum
distance), the associated distance value is replaced by “+Inf”.
Binary
mode
Data output (20 bytes message):
TH XXXXXXXXXXXXXXXX M CRC8
- Header (two characters): T (84 decimal / 0x54 hex) and H (72 decimal /
0x48 hex)
- Distance reading in millimeters** (2 bytes per sensor): XX
- Mask (1 byte) Each bit of this byte correspond to one sensor connected to
the hub.It gives an indication if the distance corresponding to the sensor is
new (bit at 1) or old (bit at 0):M
- Checksum (1 byte) of previous 19 bytes: CRC8
**if a sensor is not connected or the TeraRanger Hub Evo is unable to obtain the
distance measurement from the TeraRanger Evo sensor, the associated distance
value is replaced by the hexadecimal value 0x0001.
Terabee Website:
90 Rue Henri Fabre Technical support:
01630, Saint-Genis-Pouilly Commercial:
www.teraranger.com
support@teraranger.com
teraranger@terabee.com
18/27