Kona LoRa IoT Home Sensor TRM
T0005370_TRM
Version 1.2
TEKTELIC Communications Inc.
Confidential
Page 11 of 35
3
DL Command Format
All DL messages follow the same format. Each configuration option has a 1-
byte “register”
address that is used to access various configuration parameters. These addresses are bound
between 0x00 and 0x7F.
A single DL message can contain multiple command blocks, with a mix of read and write
commands. Each block is formatted as shown in Figure 3-1. A big-endian format (MSB first) is
always followed.
Figure 3-1: Format of a DL message.
All configuration commands (i.e. in the DL), as well as all responses to those commands (i.e. in
the UL), are sent through LoRaWAN Port 100.
3.1
Read and Write Access
Bit 7 of the Command Field determines whether a read or write action is being performed. To
write to a register, the R/W Access bit must be set to 1 (one). All read commands are one-byte
long. Data following a read access command will be interpreted as a new command block.
To read a register, the R/W Access bit must be set to 0 (zero). Read commands are processed
last. For example, in a single DL message, if there is a read command from a register and a write
command to the same register, the write command is executed first.
Examples:
In the following examples, the Command Field is boldfaced:
•
Read Registers 0x00, 0x01, and 0x02:
o
DL command: { 0x
00
01
02
}
•
Read Register 0x05 and Write value 0x8000 to Register 0x10:
o
DL command: { 0x
05
90
80 00 }
When a write command is sent to the Sensor, the Sensor will immediately respond with a
CRC32 of the entire DL payload as the first 4 bytes of the UL frame.
Note:
Undefined bits/addresses are RFU and ignored.