Frame For Updating The Value Of Specific Registers - ADEUNIS LoRaWAN AS-923 Pulse Guide Utilisateur

Table des Matières

Publicité

Les langues disponibles

Les langues disponibles

LoRaWAN AS-923 Pulse - Guide utilisateur / User guide version V1.0.0
Description of the frame:
Bytes 1 to N : CONFIDX (8bits): indice of the register to be sent. The corresponding register is 300 + CONFIDX value.
For example, if CONFID1 = 20, the product will send back the value of register number 320.
The associated uplink frame has the code 0x31 (see paragraphe 4.1.5)
0
1
Code
0x31
Status
In this example: CONFID1 is a 2-byte register, CONFID2 a 1-byte register and CONFID3 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 CONFIDs 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
1
Code
0x41
CONFID1
Description of the frame :
Byte 1: CONFID1 (8bits) : indice of the first register to change. The corresponding register is 300 + value of CONFIDX. For example, if
CONFID1 = 20, the product will change the value of register number 320.
Byte 2: value to assign to CONFID1 : in this example, its value has a size of 1 byte
Byte 3: CONFID2 (8bits) : indice of the second register to change. The corresponding register is 300 + value of CONFIDX.
Bytes 4 and 5: value to assign to CONFID2 : 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. However, 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 CONFIDX 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.
2
3
VALUE1
VALUE1
2
3
CONFID1 value
CONFID2
4
5
PAYLOAD
VALUE2
VALUE3
4
5
PAYLOAD
CONFID2 value CONFID2 value
...
N
VALUE3
X
...
N
...
CONFIDn value
Page
87
of 99
FR
EN

Publicité

Table des Matières
loading

Ce manuel est également adapté pour:

Lorawan pulse

Table des Matières