![Adeunis RF MOTION V2 Скачать руководство пользователя страница 15](http://html1.mh-extra.com/html/adeunis-rf/motion-v2/motion-v2_technical-reference-manual_2850724015.webp)
Date: 02/12/2019
Page 15 / 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
Offset
(in byte) Data
Description
0
0x40
Frame code
1
CONFID1 Index of the register to be sent. The corresponding register is
300 + CONFIDX value.
2
CONFID2
3
CONFID3
IMPORTANT: the user can specify several CONF IDs in the downlink frame but it is up to the user’s responsibility to
verify that according to the protocol, the size of the data available in a downlink will be large enough to contain all the
desired data. Otherwise, the application will send only the first values.
In Sigfox mode: backend may request to send 8 bytes in a downlink. All unused bytes should set to 0xFF to ask the
product to stop the downlink frame parsing.
Coding example:
Offset
(in byte) Data
Description
0
0x40
Frame code
1
0x00
Get register S300
2
0x14
Get register S320
3
0x20
Get register S332
4-7
0xFFFFFFFF In SFX : ignored by product
2.3.2 Set registers (0x41)
This frame (0x41) allows you to change the value of requested S3XX registers.
Offset
(in byte) Data
Description
0
0x41
Frame code
1
CONFID1 Index of the register to be changed.
The corresponding register is “300 + CONFID1“
2
Value of
CONF ID 1
Value to set
In this example, its value is contained in 1 byte
3
CONFID2 Index of the register to be changed.
The corresponding register is “300 + CONFID2”
4-5
Value of
CONF ID 2
Value to set
In this example, its value is contained in 2 bytes
…
Following the sending of the downlink 0x41, the associated uplink 0x33 is immediately returned. If the update of the
register(s) went well, the device will perform a backup and begin its restart procedure automatically. In addition, the
Config bit of the status byte will be set to 1 in the next scheduled uplink frame (periodic or alarm or keep alive frame) if
everything went well.
Coding example:
Offset
(in byte) Data
Description
0
0x41
Frame code
1
0x14
Register to modify is S320
2-3
0x00AA Value to set in S320 is 170 (S320 is a 2-byte register)
4
0x1E
Register to modify is S330
5
0x02
Value to set in S330 is 2(S330 is a 1-byte register)
…