LoRaWAN SENSORS- Mode d'emploi / User guide version V2.0
4. RADIO FRAMES
The LoRaWAN SENSORS transmits raw information from sensors, using the LoRaWAN networks.
•
A periodic data frame for the analog measure
•
A event data frame for the digital input
•
A keep-alive data frame (only in dry contact using)
This section contains information you can use to decode the frame as well as the location in the frame of information concerning the sensors
associated with the LoRaWAN SENSORS.
Note: this chapter describes the elements dedicated to the LoRaWAN SENSORS
4.1. Frame format
•
LORA Europe
•
Uplink payload : up to 12 bytes (Little endian, low signifiant byte first)
•
Downlink payload : up to 8 bytes (Little endian, low signifiant byte first)
4.1.1 Uplink - Analog Input
Data Frame timing for a analog product
UPLINK
Periodicity
0x03
0x01
Product start
(with magnet)
Starting Frame
•
Code 0x01 : Sensor measure data
•
Code 0x03 : Device configuration
Payload uplink up to 12 bytes, data format : Little endian, low significant byte first.
Unsignificant bytes are not transmitted (X)
0
1
2
Code
Status
Channel 1
0x01
Cf Status
Type
Device
0x03
Cf Status
Type
Numerical value conversion
For a 4-20mA sensor :
Value = NumericalValue * 2.048/(2^20*99.8)
For a 0-10V sensor :
Value = NumericalValue * (2.048*337,3)/(2^20*67.3)
Example NumericalValue :
Read value : 32 2A 00 00
Hexadecimal value : 00 00 2A 32
NumericalValue = 10 802
0x01
0x01
Data Frame
3
4
5
Measure sensor 1 (LSB First)
Channel
Transmit period
On/Off
0x03
New JOIN demand
(with magnet)
6
7
8
PAYLOAD
Channel 2
Measure sensor 2 (LSB first)
Type
Channel 1
Channel
NA
Type
2 Type
(0x00)
0x01
0x01
9
10
11
X
X
Switch
X
X
Value
Page
42
of 45
GB