Commands; Addr - Transmit Address - IDEETRON LoRaWAN Manual

Mini gateway
Table of Contents

Advertisement

Data
The MAC Header specifies the message type and the version of the LoRaWAN protocol used.
The LoRaWAN protocol field will always be 00.
The reserved field bits will always be 0.
The message type filed can have several values, in Table 5 the different values for the MAC header
are listed.
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 gateway
using a terminal program. All commands and data is sent as ASCII characters. All data is one or
more bytes of hexadecimal numbers represented by 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 by the mini gateway 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 any pending command,
and will reset also the transmit frame counter.
To use this command the following needs to be send:
Bytes in Hex
Table 3: Message information
Bits
7 – 5
Field
Message type
Table 4: MAC Header fields
MAC Header value Hex
00
20
40
60
80
A0
Table 5: Message types
Pagina 6 of 12
LoRaWAN mini gateway
4 – 2
1 – 0
Reserved
LoRaWAN protocol
Message type
Join request
Join Accept
Unconfirmed data up
Unconfirmed data down
Confirmed data up
Confirmed data down
Data send from mote or
gateway
1-11-2016

Advertisement

Table of Contents
loading

Table of Contents