
Pagina 6 of 12 1-11-2016
LoRaWAN mini gatewa
Data B tes in Hex Data send from mote or
gatewa
Table 3: Messa e information
The MAC Header specifies the message t pe and the version of the LoRaWAN protocol used.
Bits 7 – 5 4 – 2 1 – 0
Field Message t pe Reserved LoRaWAN protocol
Table 4: MAC Header fields
The LoRaWAN protocol field will alwa s be 00.
The reserved field bits will alwa s be 0.
The message t pe filed can have several values, in Table 5 the different values for the MAC header
are listed.
MAC Header value Hex Messa e type
00 Join request
20 Join Accept
40 Unconfirmed data up
60 Unconfirmed data down
80 Confirmed data up
A0 Confirmed data down
Table 5: Messa e types
The frame control field consists of different bits, the most important is bit 5 containing the ACK.
Most of the times the other bits will be 0, so the frame control field can have the following values:
00 – No ACK
20 – ACK
For a full description of the frame control field see the LoRaWAN specification.
8 Commands
This chapter describes the commands that can be used to communicate with the mini gatewa
using a terminal program. All commands and data is sent as ASCII characters. All data is one or
more b tes of hexadecimal numbers represented b 2 ASCII characters. So all data exist of 2 ASCII
characters that can be 0 – F. All other characters will be set to 0.
All commands have a set and request operation. The set operation starts with a # and a request
operation starts with a ?.
The answer of set operation will start with a * and the answer of a request operation starts with =.
8.1 ADDR – Transmit address
The transmit address is used b the mini gatewa for transmitting messages. Also this address is used
when ‘send ack’ is switched on, see 8.8.
To set the address, use the #ADDR command. Using command will delete an pending command,
and will reset also the transmit frame counter.
To use this command the following needs to be send: