
Page 10 / 21
adeunis
®
Manage & optimize your assets & services
283, rue louis Néel 38920 CROLLES, France
Tél : +33 (0)4 76 92 07 77 E-mail : [email protected]
www.adeunis.com
2. R
ADIO PROTOCOL
Data with size greater than 1 byte will be transmitted MSB first.
In LoRaWAN, frames are sent on port 1.
1.4 Status byte
All frames sent by the product contain a status byte. Its format is identical for all IoT Adeunis products.
Alarm Status
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Frame Counter
AppFlag2 AppFlag1
HW
Low Bat
Config
No Error
0x00 to 0x07
0
0
0
0
0
Configuration
done
0
0
0
0
1
Low bat
0
0
0
1
0
HW Error
0
0
1
0
0
AppFlag1
0
1
0
0
0
AppFlag2
1
0
0
0
0
The status byte provides two bits reserved for a specific use of each product (AppFlag1 and AppFlag2).
For this product:
-
AppFlag1: configuration inconsistency
o
Samples
lost in periodic data frame because the payload is not enough
.
1.5 Uplink Frame format
1.5.1 Product configuration (0x10)
1.5.1.1 LoRaWAN EU868
This frame is sent following the reception of a frame with code 0x01, or at the start of the product.
Offset
(in byte)
Data
Description
0
0x10
Frame code
1
Status
Status byte
2
S306
Product mode
3 – 4
S301
Transmit period, expressed in number of
historizations
5
S320
Input configuration (Channels A et B)
6 - 7
S321
Historization period (x2 seconds)
8
S322
Debounce durations (channels A and B)
9 – 10
S325
Flow calculation period (minute)
11 – 12
S326
Flow threshold (channel A)
13 – 14
S327
Flow threshold (channel B)
15 – 16
S328
Leak threshold (channel A)
17 – 18
S329
Leak threshold (channel B)
19 – 20
S330
Number of daily periods under leak threshold
(channel A)
21 – 22
S331
Number of daily periods under leak threshold
(channel B)
23
S332
Sampling period for tamper 1
24
S333
Number of sampling necessary before sending
the tamper alarm for tamper 1
25
S334
Sampling period for tamper 2
26
S335
Number of sampling necessary before sending
the tamper alarm for tamper 2
27
S340
Number of redundant samples per frame