
Date: 02/12/2019
Page 11 / 15
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
Each sample is coded on 2 bytes:
•
1 for presence: 8 unsigned bits. Represents occupancy rate (in %) during the concerned period.
Example: 50% = a presence detected half the time.
•
1 for brightness: 8 bits unsigned in %. Example: 50 => 50% brightness
Maximum number of samples per frame:
•
LoRaWAN 868: 24 samples
•
Sigfox 868:
4 samples
Offset
(in byte) Data
Description
0
0x5C
Frame code
1
Status
Status byte
2
Presence state
Presence state when sending the frame:
•
0: no presence detected
•
1: presence detected
3-4
Pr luminosity
(t0)
Measured at t=0
5-6
Pr luminosity
(t-1)
Measured at t=-1
6-7
Pr luminosity
(t-2)
Measured at t=-2
…
…
Decoding example:
Offset
(in byte)
Data
Description
0
0x5C
Frame code
1
0x80
Frame counter: 4
Bit1@0: LowBat not detected
2
0x01
A presence is currently detected
3-4
0x1E32
0x1E = 30 => a presence has been detected 30%
of the time during the concerned period (t-1 to t0)
0x32 = 50 => luminosity measured: 50%
5-6
0x0020
0x00 = 0 => No presence detected during the
concerned period (t-2 to t-1)
0x20 = 32 => luminosity measured: 32%
2.2.6 Presence Alarm (0x5D)
If the presence alarm is activated, this frame is sent when the presence detection begins, or ends.
Offset
(in byte) Data
Description
0
0x5D
Frame code
1
Status
Status byte
2
Alarm state
0: inactive alarm (end of presence)
1: active alarm (beginning of presence)
3
Luminosity
Measured luminosity when alarm has occurred
Decoding example:
Offset
Data
Description
0
0x5D
Frame code
1
0x80
Frame counter: 4
Bit1@0: LowBat not detected
2
0x01
Presence detected
3
0x32
50 => luminosity at 50%