Help Understanding the Conversion of Sensor Data

In the example provided for the Long Range IoT Wireless Temperature Humidity Sensor I am having trouble understanding the conversions of the data sent from the sensor. The following contains the sensor data of the API packet sent to the computer.

Sensor Data: 7F 01 01 03 AB 01 00 01 00 56 66 67 09.

The last two parts of this data are said to be MSB and LSB for temperature in HEX. When converted to decimal and run through the formula the results are outside the range of the sensor.

67 in hex = 103 in decimal
09 in hex = 9 in decimal

((103 x 256) + 9) / 100 = 263.7

image

Can someone help me understand what I am doing wrong?

Thanks

Hi,
can you share the complete API packet?

Thanks

Full API packet below

7E 00 19 90 00 13 A2 00 41 5B 75 C3 FF FE C2 7F 01 01 03 AB 01 00 01 00 56 66 67 09 CA

Hi,
Thats for the firmware version 1 ( its a vary old format). it needed some further calculation to convert into temp humidity.
The new document can be found here


The new sample packet looks like this
7E 00 19 90 00 13 A2 00 41 A2 70 EA FF FE C2 7F 00 05 03 FF 01 00 01 00 0D 7A 0A 56 4F
Payload
7F 00 05 03 FF 01 00 01 00 0D 7A 0A 56
7F – header
00 – node id
05 – firmware version
03,FF – Battery voltage
01 – transmission counter
00,01 – Sensor type
00 – reserve
0D, 7A – Humidity == 0D256 + 7A == 3450( in DEC)/100 = 34.50 ( humidity)
0A, 56 – Temperature == 0A
256 + 56 == 2646 ( in DEC) / 100 = 26.46 'C

Thanks

1 Like