![TeraBee TeraRanger Neo ES User Manual Download Page 14](http://html1.mh-extra.com/html/terabee/teraranger-neo-es/teraranger-neo-es_user-manual_1088202014.webp)
3.6. Distance error cases
Error cases output
BINARY
Detection below sensors minimum range
0X0000
Detection beyond sensors maximum range
0XFFFF
Invalid reading:
-
out of range
-
ambient light too high
-
invalid reading
0x0001
Note that in some cases, the sensor might not distinguish properly between errors
i.e. if below minimum range but then a reading comes with very poor quality, the
error will change to “Invalid reading”
3.7. Sample Python script to read data
This sample code is a goodwill gesture to our customers. It is made to help our
customers speed up their applications. This sample code is not made to be copy
and paste as each customer has a different setup.
#!/usr/bin/env python3
#---------------------------------------------------------------------------
-
# Created By : TERABEE
# Created Date: 01-03-2022
# version ='1.0'
#
---------------------------------------------------------------------------
import
serial, time
import
serial.tools.list_ports
quality_factor_mask =
224
status_mask =
28
(
'Searching Ports...'
)
Copyright © Terabee 2022
Terabee, 90 rue Henri Fabre
01630 Saint-Genis-Pouilly, France (next to CERN)
14 / 17