Specifc Register Value Request Frame; Frame For Updating The Value Of Specific Registers - ADEUNIS ARF8230CA Guide Utilisateur

Masquer les pouces Voir aussi pour ARF8230CA:
Table des Matières

Publicité

Les langues disponibles

Les langues disponibles

LoRaWAN 863-870 PULSE - Guide utilisateur / User guide version V3.0.0
4.2.4

Specifc register value request frame

This frame (0x40) allows to inform the product via the network that it must send the values of specifc
registers in a uplink frame (0x31).
0
Code
FR
0x40
CONF ID1
Description of the frame:
Bytes 1 to N : CONF IDX (8bits): indice of the register to be sent. The corresponding register is
300 + CONF IDX value.
For example, if CONF ID1 =0x14=20 (decimal), the product will send back the value of register num-
ber 320.
EN
The associated uplink frame has the code 0x31 (see paragraphe 4.1.5)
0
Code
0x31
In this example: CONF ID1 is a 2-byte register, CONF ID2 a 1-byte register and CONF ID3 a 2-byte
register.
If an error is detected in the request, the returned 0x31 frame will be empty.
IMPORTANT : The user can specify several CONF IDs in his downlink frame but it is his responsibility
to verify that according to the protocol the size of the data available in a downlink frame will be large
enough to contain all the desired data. Otherwise, the application will only send the frst values.
4.2.5

Frame for updating the value of specific registers

This frame (0x41) allows to change the value of requested registers.
0
Code
0x41
CONF ID1
Description of the frame :
Byte 1: CONF ID1 (8bits) : indice of the first register to change. The corresponding register is 300
+ value of CONF IDX. For example, if CONF ID1= 0x14=20 (decimal), the product will change the
value of register number 320.
Byte 2: value to assign to CONF ID1 : in this example, its value has a size of 1 byte
Byte 3: CONF ID2 (8bits) : indice of the second register to change. The corresponding register is
300 + value of CONF IDX.
Bytes 4 and 5: value to assign to CONF ID2 : in this example, its value has a size of 2 bytes
...
The product does not return any uplink frame following the reception of a downlink frame 0x41. How-
ever, the Config bit of the status byte (see section 4.1.1.2) will be set to 1 in the next scheduled uplink
frame (periodic or alarm or keep alive frame) if all was well done.
IMPORTANT: the value 0xFF for a CONF IDX will stop the reading of the downlink frame. Only the bytes
preceding this value 0xFF will be taken into account. This mechanism can be useful when you need to
work in fixed downlink frame lengths and you do not want to use all available bytes.
1
2
CONF ID2
1
2
Status
VALUE1
1
2
CONF ID1
value
3
4
PAYLOAD
CONF ID3
CONF ID4
3
4
PAYLOAD
VALUE1
VALUE2
3
4
PAYLOAD
CONF ID2
CONF ID2
value
5
...
CONF ID5
...
5
...
VALUE3
VALUE3
5
...
CONF ID2
...
value
N
CONF IDn
N
X
N
CONF IDn
value
Page
90
of 103

Publicité

Table des Matières
loading

Table des Matières