sigfox DRY CONTACTS- Guide utilisateur / User guide version V1.2.0
4. DESCRIPTION OF THE FRAMES
4.1. Uplink frames
All of the uplink frames of the product to the network (uplink) always have a size of 11 bytes.
4.1.1 Fixed bytes
The first two bytes of the frame are systematically dedicated to indicate the frame code and the status as presented below:
0
1
Code
Status
4.1.1.01
Byte code
This byte contains the code associated with the frame to facilitate its decoding by the data system.
4.1.1.02
Status Byte
The status byte is broken down in the following way:
Alarm Status
Bit 7
No Error
Configuration
done
Low bat
HW Error
Command
Output Done
Details of the fields:
•
Frame counter: Frame counter, it increments at each transmission and allows the user to see quickly if a frame has been lost. It counts
from 0 to 7 before looping back.
•
Command Output Done: bit at 1 if at least one output has been properly controlled.
•
HW: This bit is set to 1 when a hardware error has occurred, for example a writing problem in the EEPROM, a reading problem on the
ADC, etc. The product must be returned in to the service dept.
•
Low Bat: bit at 1 if the battery voltage is less than 2.5V (defined in register S522), otherwise 0. This information remains permanent.
•
Config: bit at 1 if a configuration was carried out during the last downlink frame, otherwise 0. This bit returns to 0 as from the next
frame.
E.g.:
A value of the status byte equal to 0xAB (= 10101011 in binary) gives:
•
Bit 7 at 5 = 101 = 0x05 i.e. a frame counter at 5
•
Bit 4 at 0 = 01011 in binary is the validation of the configuration, a low battery alarm and a successful exit command.
2
3
4
Bit 6
Bit 5
Frame Counter
0x00 to 0x07
5
6
7
PAYLOAD
Bit 4
Bit 3
Réservé
Command
Output
X
0
X
0
X
0
X
0
X
1
8
9
Bit 2
Bit 1
HW
Low Bat
Config
0
0
0
0
0
1
1
0
0
0
Page
10
EN
Bit 0
0
1
0
0
0
63
of 80