![Adeunis RF MOTION V2 Скачать руководство пользователя страница 13](http://html1.mh-extra.com/html/adeunis-rf/motion-v2/motion-v2_technical-reference-manual_2850724013.webp)
Date: 02/12/2019
Page 13 / 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
2.2.9 Response to Get register request (0x31)
Following reception of a downlink frame with the code 0x40, the frame 0x31 is transmitted. It contains all the values of
the registers requested in the downlink frame 0x40.
Offset
(in byte) Data
Description
0
0x31
Frame code
1
Status
Status byte
2-3
Value 1 If value 1 is a 2-byte register
4
Value 2 If value 2 is a 1-byte register
5-8
Value 3 If value 3 is a 4-byte register
…
If an error is detected in the request, the returned 0x31 frame will be empty.
Note: the size of the data registers is variable depending on the register number. Refer to the list of registers to
determine the size of each one and to deduce the total size of the data returned by the 0x31 frame.
Decoding example:
Offset
(in byte) Data
Description
0
0x31
Frame code
1
0x80
Frame counter: 4
Bit1@0: LowBat not detected
2-3
0x1234
4660 (considering that value 1 is a 2-byte register)
4
0xFF
255 (considering that value 2 is a 1-byte register)
5-8
0x00000000 0 (considering that value 3 is a 4-byte register)
…
2.2.10 Response to Set register request (0x33)
Following reception of a downlink frame with the code 0x41, the frame 0x33 is transmitted. It shows whether the
downlink frame (0x41) has been received and gives information on the support status of the latter.
Offset
(in byte) Data
Description
0
0x33
Frame code
1
Status
2
Request status
-
0x00: N/A
-
0x01: success
-
0x02: success – no update (value to set is the current register value)
-
0x03: error – coherency
-
0x04: error – invalid register
-
0x05: error – invalid value
-
0x06: error – truncated value
-
0x07: error – access not allowed
-
0x08: error – other reason
3-4
Register Id
Indicates to the user the register that caused the error (only if “Request Status” is
different from 0x01).
CAUTION: if the request 0x41 concerns several registers, the device will stop the analysis of the Downlink request at
the first error and will send the Status frame with the reason and the identifier of the register concerned.
In the event of an error, if a partial reconfiguration has taken place before the error was detected, the device restarts
and returns to its last valid configuration. As a result, you will have to configure the device again with the new data.