LoRa - Module - AT Command Reference Guide
LoRa - Module - AT Command Reference Guide
Legal Notices:
AT Command Reference Guide for Ethertronics LoRa modules ETH-M-LORA-AX
Copyright © 2016 – 2017 by Ethertronics Inc. All rights reserved.
The information presented in this document does not form part of any contract and may be changed
without notice. No liability will be accepted by Ethertronics for any consequence of its use, and
Ethertronics assumes no responsibility or liability whatsoever for any failure or unexpected operation
resulting from using the information in this document.
Table of Contents
Preface............................................................................... 1 AT+LORA@IM#RESET................................................... 24
Definitions........................................................................ 1 AT+LORA@IM#RUNDEBUG............................................. 25
AT Command Line Syntax...................................................... 1 AT+LORA@IM%THR...................................................... 25
AT command prefix......................................................... 1 AT+LORA@IM%RESULT.................................................. 26
Prefix extension............................................................. 1 AT+LORA@IM%VERSION................................................ 26
AT command body.......................................................... 1 AT+LORA@IM%CTRLFLAG.............................................. 27
Module name................................................................ 1 IM Control Flags table.................................................... 27
Sub-module name.......................................................... 1 AT+LORA@IM%STATUS................................................. 28
Command name............................................................ 2 AT+LORA@IM%ACTIVATE............................................... 28
The trailing................................................................... 2 Steering Antenna Related commands...................................... 29
The termination characters............................................... 2 AT+LORA@MCD#INIT.................................................... 29
AT response...................................................................... 2 AT+LORA@MCD#RESET................................................ 30
Result codes table.......................................................... 2 AT+LORA@MCD#RUNDEBUG.......................................... 30
AT commands of ETH-M-LORA-AX ........................................ 3 AT+LORA@MCD%RFMAPCODE........................................ 31
Generic commands.............................................................. 3 AT+LORA@MCD%PROTECTMODE.................................... 31
AT - Attention................................................................ 3 AT+LORA@MCD%CTRLFLAG........................................... 32
A/ - Repeat the previous command...................................... 4 MCD Control Flags Table................................................ 32
+++ - Escape Sequence.................................................... 5 AT+LORA@MCD%STATUS.............................................. 33
AT+LORA#E or ATE - Echo................................................. 6 AT+LORA@MCD%MODE................................................. 33
AT+LORA#I or ATI - Module Information................................ 7 AT+LORA@MCD%VERSION............................................. 34
AT+LORA#Q or ATQ – Quiet result codes .............................. 8 AT+LORA@MCD%MCDTYPE............................................ 34
AT+LORA#V or ATV – Response format ............................... 9 AT+LORA@MCD%FLUCT................................................ 35
AT+LORA#Z or ATZ - Reset ............................................. 10 AT+LORA@MCD%ACTIVATE............................................ 35
AT+LORA&F or AT&F ..................................................... 11 LoRaWAN related commands............................................... 36
AT+LORA&W or AT&W ................................................... 12 AT+LORA@MAC%PN..................................................... 36
AT+LORA&T or AT&T ..................................................... 13 AT+LORA@MAC%NJM................................................... 36
AT+LORA#ABORT ........................................................ 13 AT+LORA@MAC%DI...................................................... 37
System Command............................................................. 14 AT+LORA@MAC%DC..................................................... 37
AT+LORA@SYS%REG.................................................... 14 AT+LORA@MAC%AP..................................................... 38
AT+LORA@SYS%SN...................................................... 14 AT+LORA@MAC%NA..................................................... 38
AT+LORA@SYS#SOFTRESET.......................................... 15 AT+LORA@MAC%NI...................................................... 39
AT+LORA@SYS%FWVERSION.......................................... 15 AT+LORA@MAC%NK..................................................... 40
AT+LORA@SYS%FWDATE............................................... 16 AT+LORA@MAC%NSK................................................... 40
AT+LORA@SYS%HOSTIFTYPE......................................... 16 AT+LORA@MAC%DSK................................................... 41
AT+LORA@SYS%HOSTIFCONFIG...................................... 17 AT+LORA@MAC%DTC................................................... 41
AT+LORA@SYS%SPILORAIF............................................ 18 AT+LORA@MAC%JRX1D................................................ 42
AT+LORA@SYS%LPMODE.............................................. 19 AT+LORA@MAC%JRX2D................................................ 42
AT+LORA@SYS%LPDELAY.............................................. 20 AT+LORA@MAC%RX1D.................................................. 43
AT+LORA@SYS%DATE................................................... 20 AT+LORA@MAC%RX2D.................................................. 43
AT+LORA@SYS%TIME................................................... 21 AT+LORA@MAC%RXD................................................... 44
AT+LORA@SYS%STATUS............................................... 21 AT+LORA@MAC#JOIN................................................... 44
AT+LORA@SYS%LED..................................................... 22 AT+LORA@MAC#SEND.................................................. 45
AT+LORA@SYS%ALGOMETRIC........................................ 22 AT+LORA@MAC#DUMP................................................. 46
AT+LORA@SYS%ALGOAVG............................................. 23 AT+LORA@MAC%RFSB (Available only for US915)................. 46
Impedance Matching related commands.................................. 24 AT+LORA@MAC%CHN (Available only for US915).................. 47
AT+LORA@IM#INIT....................................................... 24 AT+LORA@MAC%RX1DROFS (Available only for US915).......... 47
Table of Contents
LoRa Radio commands....................................................... 48
AT+LORA@SX127X#INIT................................................ 48
AT+LORA@SX127X%STATUS........................................... 48
AT+LORA@SX127X%MODEM........................................... 49
AT+LORA@SX127X%Channel........................................... 49
AT+LORA@SX127X#IS_CHN_FREE................................... 50
AT+LORA@SX127X#IS_CHN_FREE................................... 50
AT+LORA@SX127X#RX_CONFIG...................................... 51
AT+LORA@SX127X#TX_CONFIG...................................... 53
AT+LORA@SX127X#RF_FREQ.......................................... 55
AT+LORA@SX127X#TIME_OA.......................................... 55
AT+LORA@SX127X#SEND.............................................. 56
AT+LORA@SX127X#SLEEP............................................. 56
AT+LORA@SX127X#STANDBY......................................... 57
AT+LORA@SX127X#RX.................................................. 57
AT+LORA@SX127X#TX.................................................. 58
AT+LORA@SX127X#RX_TST........................................... 59
AT+LORA@SX127X#TX_TST........................................... 61
AT+LORA@SX127X#START_CAD...................................... 63
AT+LORA@SX127X%RSSI............................................... 63
AT+LORA@SX127X%REG................................................ 64
AT+LORA@SX127X%MAX_PAYLOAD................................. 64
AT Command Reference Guide
PREFACE
This document describes the AT commands of Ethertronics LoRa module series ETH-M-LORA-AX.
DEFINITIONS
For the purposes of the present document, the following syntactical definitions are applied:
<CR> “Carriage Return” character, its value is 0x0D.
<LF> Linefeed character, its value is 0x0A.
<...> Name enclosed in angle brackets is a syntactical element.
Brackets themselves do not appear in the command line.
[...] Optional sub-parameter of a command or a response is enclosed in square brackets. Brackets themselves do not appear in the command line.
When sub-parameter is not given in parameter type commands, new value equals to its previous value. In action type commands, action should be
done on the basis of the recommended default setting of the sub-parameter.
AT COMMAND PREFIX
The AT command line prefix consists of the characters “AT” or “at” or, to repeat the execution of the previous command line, the characters “A/” or “a/”.
PREFIX EXTENSION
"AT+" is firmly known as the AT prefix extension.
AT COMMAND BODY
The body is composed of three elements:
Module name
Sub-module name
Command name
MODULE NAME
“LORA” is the AT command module’s name of ETH-M-LORA-AX.
SUB-MODULE NAME
Sub-module name is used to clearly identify ETH-M-LORA-AX’s section, and is prefixed with a @ symbol.
1
092419
AT Command Reference Guide
COMMAND NAME
There are two types of command:
The executable commands
ᴑᴑ Function command is used to identify the execution action and is prefixed with a # symbol.
The variable commands
ᴑᴑ Variable command is used to identify the write/read operation and is prefixed with a % symbol.
THE TRAILING
Three trailing types are supported:
Read operation ( ? )
Write operation of Variable command or parameters of Function command ( = )
Syntax information request ( =? )
NOTE: Please be aware that some commands can support all the three trailing types and some don’t support any trailing type.
AT RESPONSE
The responses and process results of an AT Commands are under below format:
Examples:
<CR><LF>OK<CR><LF>
<CR><LF>ERROR_NO_SUBMODULE<CR><LF>
<CR><LF>ERROR<CR><LF>
2
092419
AT Command Reference Guide
AT COMMANDS OF ETH-M-LORA-AX
Historically, the AT commands are used to control MODEMs. AT is the abbreviation for Attention. These commands come from Hayes commands that were
used by the Hayes smart modems. The Hayes commands started with AT to indicate the attention from the Analog MODEM.
Now a day AT commands are the convenient way to address to any kind of Hardware modules to avoid deep intrusion and issues during integration process
such source code merge operation, library linkage, ...
GENERIC COMMANDS
AT - ATTENTION
Attention.
Syntax:
None
Return:
Status Comments
<CR><LF>OK<CR><LF> If the module is running and is ready to receive the AT commands.
Examples:
at
OK
3
092419
AT Command Reference Guide
A/ - REPEAT THE PREVIOUS COMMAND
Repeat the execution of the previous AT command.
Syntax:
None
Return:
Status Comments
... Depend on the previous AT command.
Examples:
at+lora@mac#send HelloWorld
HelloWorld
OK
a/
HelloWorld
OK
4
092419
AT Command Reference Guide
+++ - ESCAPE SEQUENCE
Escape Sequence to return to the command line prompt during a pending AT command.
Usually the escape sequence is used to abort a pending AT command (see AT+LORA#ABORT and AT+LORA#RESUME commands).
Syntax:
None
Return:
Status Comments
<CR><LF>OK<CR><LF> Ready for new AT command.
Examples:
at+lora@mac#join
+++
OK
at+lora#abort
OK
5
092419
AT Command Reference Guide
AT+LORA#E OR ATE - ECHO
Enable or disable the command echo.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
Examples:
at+lora#e
0
OK
at+lora#e1
OK
at+lora#e
1
OK
6
092419
AT Command Reference Guide
AT+LORA#I OR ATI - MODULE INFORMATION
Read the module Information
Syntax:
Return:
Status Comments
<CR><LF>Ethertronics LoRa Module v.1.0.0<CR><LF> Flag = None (1.0.0 is the current version).
Copyright (c) 2016, 2017 Ethertronics Inc<CR><LF>
All rights reserved<CR><LF>
<CR><LF>1.0.0<CR><LF> Flag = 0.
Examples:
at+lora#i1
1.0.0
OK
at+lora#i
OK
7
092419
AT Command Reference Guide
AT+LORA#Q OR ATQ – QUIET RESULT CODES
Enable or disable the quiet result codes.
Syntax:
Note: After issuing either ATQ1 or ATQ2 every information text transmitted in
response to commands is not affected. If parameter is omitted, the command
has the same behavior as ATQ0.
Examples:
at+lora#q0
OK
at+lora#i
OK
at+lora#q1
<CR>
at+lora#i
<CR>
Ethertronics LoRa Module v.1.0.0
Copyright (c) 2016, 2017 Ethertronics Inc
All rights reserved
<CR>
at+lora#q2
at+lora#i
Ethertronics LoRa Module v.1.0.0
Copyright (c) 2016, 2017 Ethertronics Inc
All rights reserved
8
092419
AT Command Reference Guide
AT+LORA#V OR ATV – RESPONSE FORMAT
Determines the contents of the header and trailer transmitted with result codes and information responses. It also determines if result codes are transmitted
in a numeric form or an alphanumeric form.
Syntax:
1 Full headers and trailers and verbose format of result codes (factory default).
Examples:
at+lora#v1
OK
at+lora#i1
1.0.0
OK
at+lora#v0
0
at+lora#i1
1.0.0
9
092419
AT Command Reference Guide
AT+LORA#Z OR ATZ - RESET
Reset the LoRa module and loads the default profile.
Syntax:
None
Example:
at
OK
at+lora#v0
0
at
0
at+lora#z
OK
10
092419
AT Command Reference Guide
AT+LORA&F OR AT&F
This command is used to configure the module to:
Boot from the factory FW (AT&F0)
Boot from the upgrade FW (AT&F1)
Reset the parameters of the module to the default factory. (AT&F)
Syntax:
0 Full headers and trailers and verbose format of result codes (factory default).
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation Successful.
11
092419
AT Command Reference Guide
AT+LORA&W OR AT&W
Permanently store the current configuration parameters of the device.
NOTE: The user can use the command AT&F to restore the parameters back from the factory values.
Syntax:
None
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
12
092419
AT Command Reference Guide
AT+LORA&T OR AT&T
Module self-test.
Syntax:
None
Return:
Status Comments
Depend on the resumed AT command.
AT+LORA#ABORT
Abort the last pending command after issuing +++ command.
Syntax:
None
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
13
092419
AT Command Reference Guide
SYSTEM COMMAND
AT+LORA@SYS%REG
Registry Read/Write command.
Syntax:
Examples:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
AT+LORA@SYS%SN
Get the module serial number.
Syntax:
None
Examples:
Status Comments
<CR><LF>Serial Number: 0x……<CR><LF> Return the device serial number.
<CR><LF>OK<CR><LF>
14
092419
AT Command Reference Guide
AT+LORA@SYS#SOFTRESET
Perform soft Reset the System.
Syntax:
None
Examples:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
AT+LORA@SYS%FWVERSION
Get the firmware version.
Syntax:
None
Examples:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
15
092419
AT Command Reference Guide
AT+LORA@SYS%FWDATE
Get the firmware date.
Syntax:
None
Examples:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
<CR><LF>DD/MM/YYYY<CR><LF> The firmware date.
AT+LORA@SYS%HOSTIFTYPE
Get the Host interface type
Syntax:
1 SPI interface
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
<0 .. 1> Current Host interface
16
092419
AT Command Reference Guide
AT+LORA@SYS%HOSTIFCONFIG
Get the current Host interface speed, the configuration values of this command is depending on the type of the host interface
(see AT+LORA@@SYS%HOSTIFTYPE command)
Syntax:
None
Return:
Status Comments
0 .. 4 If the host interface has been set to SPI.
Stop:
0 = 1bit, 1 = 2bits.
Parity:
00 = None, 01 = Even, 10 = Odd
Word length:
0 = 8bits, 1 = 9bits
Baud rate:
000 = 9600 bps
001 = 19200 bps
010 = 38400 bps
011 = 57600 bps
100 = 115200 bps (default)
101 = 230600 bps
110 = 460800 bps
17
092419
AT Command Reference Guide
AT+LORA@SYS%SPILORAIF
Read the LoRa chip (SX127x) SPI interface speed.
Syntax:
None
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
0 = 10 MHz
1 = 5 MHz
2 = 2 MHz
3 = 1 MHz
4 = 500 kHz
18
092419
AT Command Reference Guide
AT+LORA@SYS%LPMODE
ETH-M-LORA-M-AX module has been designed to exploit efficiently the Low Power STOP mode of the MCU, the module can wake up either by UART or via
external GPIO’s P11 (Refer to the pin diagram in the “Module ETH-LORA-M-AX-01 General Module Integration guide” document for the external P11 pin location).
NOTE: The most efficient way to avoid any communication error is systematically send a CARRIER RETURN (0x0d) and wait the module answers with a string
“OK” before sending any AT command.
LPM Mode Entry Wake-up Effect on Vcore domain clocks Effect on VDD domain clocks Voltage regulator
UART, None
DEEPSLEEP (2) After GPIO’sP11 CPU CLK OFF no effect on
(Factory default) LPDelay RTC Alarm other clocks or analog clock In Low-Power Mode
expired sources, Flash CLK OFF
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
<CR><LF>ERROR<CR><LF> Low Power mode unknown.
0..3 Values set (0, 1, 2 or 3)
19
092419
AT Command Reference Guide
AT+LORA@SYS%LPDELAY
Set/Get the delay in milli-seconds after inactivity before the module goes into Low Power STOP mode. The default and minimum delay is 30000 milli-seconds.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
<CR><LF>ERROR<CR><LF> Delay if less than the default value.
001122334455...xx Values set previously (milli-seconds)
AT+LORA@SYS%DATE
Set/Get the system Date.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
<CR><LF>ERROR<CR><LF> Date format unknown.
dd/mm/yyyy Current date
20
092419
AT Command Reference Guide
AT+LORA@SYS%TIME
Set/Get the system Date.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
<CR><LF>ERROR<CR><LF> Time format unknown.
hh:mn:ss Current time
AT+LORA@SYS%STATUS
Read the Module status.
Syntax:
None
Return:
Status Comments
Tics: ... Number of system tic since power up
Rx_OK: ... Number of LoRa packets received successfully.
Rx_MIC_Error: ... Number of LoRa packets received with MIC error.
Rx_Error: ... Number of LoRa RX error other than MIC error.
Rx_Timeout: ... Number of LoRa RX timeout error.
Tx_OK: ... Number of LoRa packets sent successfully.
Tx_Error: ... Number of LoRa packets sent failed.
Tx_Media_Busy: ... Number of LoRa collision packets during sent.
<CR><LF>OK<CR><LF>
21
092419
AT Command Reference Guide
AT+LORA@SYS%LED
Set/Get the system Date.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> LED is set successfully
AT+LORA@SYS%ALGOMETRIC
Set or get the algorithm input's metric.
Syntax:
2 RSSI metric.
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
22
092419
AT Command Reference Guide
AT+LORA@SYS%ALGOAVG
Set or get the average number of input to feed the algorithm.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
23
092419
AT Command Reference Guide
IMPEDANCE MATCHING RELATED COMMANDS
AT+LORA@IM#INIT
Initialize the IM algorithm.
Syntax:
None
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
AT+LORA@IM#RESET
Reset the IM algorithm without initialized its parameters.
Syntax:
None
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
24
092419
AT Command Reference Guide
AT+LORA@IM#RUNDEBUG
Run the IM algorithm with new input value.
Syntax:
AT+LORA@IM#RUNDEBUG=? Test
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
AT+LORA@IM%THR
Set or get Threshold for IM
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
25
092419
AT Command Reference Guide
AT+LORA@IM%RESULT
Get the result of the IM
Syntax:
None
Return:
Status Comments
<CR><LF>RF Selection: Xx<CR><LF> Xx = Current RF selection of the IM
<CR><LF>OK<CR><LF> Operation successful.
AT+LORA@IM%VERSION
Read the IM version.
Syntax:
None
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
MM.mm MM = Current major version value.
26
092419
AT Command Reference Guide
AT+LORA@IM%CTRLFLAG
Set IM control flag.
Syntax:
AT+LORA@IM%CTRLFLAG=? Test
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
27
092419
AT Command Reference Guide
AT+LORA@IM%STATUS
Read the IM status.
Syntax:
None
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
Xx, Yy Xx = Status value.
Yy = RF vector value.
AT+LORA@IM%ACTIVATE
Set or get IM activation
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
28
092419
AT Command Reference Guide
STEERING ANTENNA RELATED COMMANDS
AT+LORA@MCD#INIT
Initialize the MCD algorithm.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
29
092419
AT Command Reference Guide
AT+LORA@MCD#RESET
Reset the MCD algorithm without initialized its parameters.
Syntax:
None
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
AT+LORA@MCD#RUNDEBUG
Run the MCD algorithm with new input value.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
30
092419
AT Command Reference Guide
AT+LORA@MCD%RFMAPCODE
Set or get the RF map code to be used by the MCD algorithm..
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
AT+LORA@MCD%PROTECTMODE
Set or get the protection mode of MCD parameters.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
31
092419
AT Command Reference Guide
AT+LORA@MCD%CTRLFLAG
Set MCD control flag.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
32
092419
AT Command Reference Guide
AT+LORA@MCD%STATUS
Read the MCD status.
Syntax:
None
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
AT+LORA@MCD%MODE
Get the selected mode of the MCD.
Syntax:
None
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
33
092419
AT Command Reference Guide
AT+LORA@MCD%VERSION
Read the MCD status.
Syntax:
None
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
AT+LORA@MCD%MCDTYPE
Set or get MCD type used.
Syntax:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
0 = Normal mode.
34
092419
AT Command Reference Guide
AT+LORA@MCD%FLUCT
Set or get MCD SMD Fluctuation to go back to scooting/training Mode, in dB.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
AT+LORA@MCD%ACTIVATE
Set or get MCD activation
Syntax:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
35
092419
AT Command Reference Guide
LORAWAN RELATED COMMANDS
AT+LORA@MAC%PN
Set or get MCD SMD Fluctuation to go back to scooting/training Mode, in dB.
Syntax:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
AT+LORA@MAC%NJM
Set or get the Network Join Mode.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
36
092419
AT Command Reference Guide
AT+LORA@MAC%DI
Write or read LoRa Device Identification EUI-64 (MSB) (unique, set at factory) (8 bytes).
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
AT+LORA@MAC%DC
Read or write LoRa Device class (A, B, C)
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
37
092419
AT Command Reference Guide
AT+LORA@MAC%AP
Set or get LoRa Port used for application data (1 - 223)
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
AT+LORA@MAC%NA
Set or get LoRa Network address. The Network address is known as “devAddr” in LoRaWAN specification.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
38
092419
AT Command Reference Guide
AT+LORA@MAC%NI
Set or get LoRa Network EUI/Name. ETH-M-LORA-AX supports 2 types of Network ID:
Network EUI
Network Name
NOTE: LoRaWAN supports only 8 digits Network EUI. The Network EUI is known as “AppEUI” in LoRaWAN specification document.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
39
092419
AT Command Reference Guide
AT+LORA@MAC%NK
Set or get LoRa Network Key/passphrase. ETH-M-LORA-AX supports 2 types of Network Key:
Network Key
Network passphrase
NOTE: LoRaWAN supports only 16 digits Network Key. The Network Key is known as “AppKey” in LoRaWAN specification document.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
AT+LORA@MAC%NSK
Set or get Network Session Key.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
40
092419
AT Command Reference Guide
AT+LORA@MAC%DSK
Set or get LoRa Data Session Encryption Key (16 bytes). The Data Session Key is known as “Application Session Key” in LoRaWAN specification document.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
AT+LORA@MAC%DTC
Set or Get LoRa Duty cycle mode.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
41
092419
AT Command Reference Guide
AT+LORA@MAC%JRX1D
Set or Get LoRaWAN class A Join delay for Window1.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
<delay> Delay value previously set.
<CR><LF>ERROR<CR><LF> Parameter is expected.
AT+LORA@MAC%JRX2D
Set or Get LoRaWAN class A Join delay for Window2.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
<delay> Delay value previously set.
<CR><LF>ERROR<CR><LF> Parameter is expected.
42
092419
AT Command Reference Guide
AT+LORA@MAC%RX1D
Set or Get LoRaWAN class A Rx delay for Window1.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
<delay> Delay value previously set.
<CR><LF>ERROR<CR><LF> Parameter is expected.
AT+LORA@MAC%RX2D
Set or Get LoRaWAN class A RX delay for Window2.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
<delay> Delay value previously set.
<CR><LF>ERROR<CR><LF> Parameter is expected.
43
092419
AT Command Reference Guide
AT+LORA@MAC%RXD
Set or Get LoRaWAN class A RX Window duration.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
<duration> Duration value previously set.
<CR><LF>ERROR<CR><LF> Parameter is expected.
AT+LORA@MAC#JOIN
OTAA to join LoRa network (acquire network address and session keys).
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
44
092419
AT Command Reference Guide
AT+LORA@MAC#SEND
Sends data to LoRaWAN gateway and returns the gateway response.
Syntax:
interval 15000 .. xxxx Interval duration (must be higher than 15000 ms)
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
45
092419
AT Command Reference Guide
AT+LORA@MAC#DUMP
Start Stop dumping Lora packet.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
<duration>
<CR><LF>ERROR<CR><LF> Parameter is expected.
46
092419
AT Command Reference Guide
AT+LORA@MAC%CHN (AVAILABLE ONLY FOR US915)
Read the current Radio channels selected.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
47
092419
AT Command Reference Guide
LORA RADIO COMMANDS
AT+LORA@SX127X#INIT
Initialize LoRa Radio Chip.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
AT+LORA@SX127X%STATUS
Read LoRa Radio status.
Syntax:
None
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
48
092419
AT Command Reference Guide
AT+LORA@SX127X%MODEM
Set or get LoRa Radio modulation mode.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
AT+LORA@SX127X%CHANNEL
Set or get LoRa radio channel.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
49
092419
AT Command Reference Guide
AT+LORA@SX127X#IS_CHN_FREE
Check if the given LoRa channel is free.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
AT+LORA@SX127X#IS_CHN_FREE
Check if the given LoRa channel is free.
Syntax:
None
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
50
092419
AT Command Reference Guide
AT+LORA@SX127X#RX_CONFIG
Configure LoRa Radio RX parameters.
Syntax:
51
092419
AT Command Reference Guide
Parameters Values Comments
payload_len xxxx Set the payload length when fixed length is used.
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
52
092419
AT Command Reference Guide
AT+LORA@SX127X#TX_CONFIG
Configure LoRa Radio TX parameters.
Syntax:
53
092419
AT Command Reference Guide
Parameters Values Comments
preamble_len xx FSK: Number of bytes.
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
54
092419
AT Command Reference Guide
AT+LORA@SX127X#RF_FREQ
Checks if the given RF frequency is supported by the hardware.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
AT+LORA@SX127X#TIME_OA
Computes the packet time on air in us for the given payload.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
xxxx Computed air time (us) of the given packet payload length.
55
092419
AT Command Reference Guide
AT+LORA@SX127X#SEND
Send a given data over the air.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
AT+LORA@SX127X#SLEEP
Put the Radio into Sleep mode.
Syntax:
None
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
56
092419
AT Command Reference Guide
AT+LORA@SX127X#STANDBY
Put the Radio into Standby mode.
Syntax:
None
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
AT+LORA@SX127X#RX
Activate Radio RX mode for a given time duration.
Syntax:
None
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
57
092419
AT Command Reference Guide
AT+LORA@SX127X#TX
Activate Radio TX mode for a given time duration.
Syntax:
None
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
58
092419
AT Command Reference Guide
AT+LORA@SX127X#RX_TST
Activate Radio RX mode for a given modem mode, frequency, data rate and duration.
Syntax:
AT+LORA@SX127X#RX_TST=? Test
Divided into 8 sub-band, Full band can take any of these frequencies.
59
092419
AT Command Reference Guide
datarate: Data rate
EU868: US915:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
60
092419
AT Command Reference Guide
AT+LORA@SX127X#TX_TST
Activate Radio TX mode for a given modem mode, frequency, power and time duration.
Syntax:
AT+LORA@SX127X#TX_TST=? Test
Divided into 8 sub-band, Full band can take any of these frequencies.
61
092419
AT Command Reference Guide
datarate: Data rate
EU868: US915:
62
092419
AT Command Reference Guide
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
AT+LORA@SX127X#START_CAD
Start a Channel Activity Detection.
Syntax:
None
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
AT+LORA@SX127X%RSSI
Read the Radio RSSI value of a given modulation.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
63
092419
AT Command Reference Guide
AT+LORA@SX127X%REG
Set/Read Radio registers.
Syntax:
Return:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
AT+LORA@SX127X%MAX_PAYLOAD
Set Radio maximum length for a given modulation.
Syntax:
Status Comments
<CR><LF>OK<CR><LF> Operation successful.
64
092419
Americas Europe Asia
+(1) 858.550.3820 +33 (0) 4 93 74 30 71 Korea: 82.31.436.2290
[email protected] [email protected] China: 886.2.2655.7966
FOLLOW US:
VISIT US AT WWW.AVX.COM
092419-A