Industrial
Electronic Devices
ADFweb.com S.r.l.
User Manual
LoRaWAN / S7comm Client
Document code: MN67D39_ENG Revision 1.000 Page 26 of 30
LORAWAN PAYLOAD
The LoRAWAN messages in Uplink and Downlink are structured into a defined format in order to recognize them from LoRaWAN gateway
side and to understand to which bytes of the internal memory array they are associated.
The payload of the LoRaWAN messages is defined in Hex format:
The first byte refers to the row of the tables defined into “LoRaWAN Access” section of SW67D39: it can have a value between 0 and
255 (0xFF);
The following bytes will contain the data to be linked to the internal memory arrays of the converter (using “Start Byte” and “Num.
Byte” of “LoRaWAN Access” section of SW67D39);
Example 1:
the converter is sending a LoRaWAN message related to row 4 of “LoRaWAN Access
LoRaWAN Uplink” table of “LoRaWAN Access” section
of SW67D39 with a “Num. Byte” set of ‘4’. The data from these 4 bytes is “01 02 03 04” (hex).
The payload of the LoRaWAN message will look like “04 01 02 03 04” where:
04: index of the row of “LoRaWAN Access
LoRaWAN Uplink” table;
01 02 03 04: data taken from internal memory array of the converter.
Example 2:
The external LoRaWAN gateway needs to send a LoRaWAN message to the converter and link it to row 3 of “LoRaWAN Access
LoRaWAN
Downlink” table of “LoRaWAN Access” section of SW67D39. The “Num. Byte” set is ‘4’ and the data to be written is “55 66 77 88” (hex).
The payload of the LoRaWAN message will look like “03 55 66 77 88” where:
03: index of the row of “LoRaWAN Access
LoRaWAN Downlink” table;
55 66 77 88: data to be written to the internal memory array of the converter.