www.dragino.com
LSN50 LoRa Sensor Node User Manual
21
/
60
2.4
Payload Explanation and Sensor Interface
2.4.1
Battery Info
Check the battery voltage for LSN50.
Ex1: 0x0B45 = 2885mV
Ex2: 0x0B49 = 2889mV
2.4.2
Temperature (DS18B20)
If there is a DS18B20 connected to PB3 pin. The temperature will be uploaded in the payload.
More DS18B20 can check the
Connection
Example
:
If payload is: 0105H: (0105 & FC00 == 0), temp = 0105H /10 = 26.1 degree
If payload is: FF3FH : (FF3F & FC00 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.
2.4.3
Digital Input
The digital input for pin PA12,
●
When PA12 is high, the bit2 of payload byte 6 is 1.
●
When PA12 is low, the bit2 of payload byte 6 is 0.