Skip to main content

RAK10702 Indoor Comfort Node AT Command Manual

To make it easy to set up the LoRaWAN credentials and LoRa P2P settings, an AT command interface over USB and BLE is implemented. The AT command format is compatible with the RUI3 AT Command interface with some exceptions because the used LoRaWAN stack is different from RUI3.

NOTE

REMARK 1: After changing the LoRaWAN parameters or LoRa P2P settings, the device must be reset by either the ATZ command or by pushing the reset button.

REMARK 2: The Serial port connection is lost after the ATZ command or pushing the reset button. The connection must be re-established on the connected computer before log output can be seen or AT commands can be entered again.

REMARK 3: The Serial port is set up for 115200 baud, 8N1. It cannot be changed by AT commands.

AT Command Syntax

The AT command is based on ASCII characters. In general, the AT Command starts with the prefix AT and ends with <CR><LF> (i.e. \r\n). For the rest of the manual, the \r\n part is omitted for the sake of clarity.

The AT commands have the standard format AT+XXX with XXX denoting the command.

There are four available command formats:

AT COMMAND FORMATDescription
AT+XXX?Provides a short description of the given command
AT+XXX=?Reading the current value on the command
AT+XXX=<input parameter>Writing configuration on the command
AT+XXXUsed to run a command

The output of the commands is returned via UART.

The format of the reply is divided into two parts: returned value and the status return code.

NOTE

<CR> stands for carriage return and <LF> stands for line feed.

  1. <value><CR><LF> is the first reply when AT+XXX? command description or AT+XXX=? reading value is executed, then it will be followed by the status return code. The formats with no return value like AT+XXX=<input parameter> writing configuration command and AT+XXX run command will just reply to the status return code.

  2. <CR><LF><STATUS><CR><LF> is the second part of the reply, which is the status return code.

The possible status codes are:

STATUS RETURN CODEDescription
OKCommand executed correctly without error.
+CME ERROR:1Generic error or input is not supported.
+CME ERROR:2Command not allowed.
+CME ERROR:5The input parameter of the command is wrong.
+CME ERROR:6The parameter is too long.
+CME ERROR:8Value out of range.

More details on each command description and examples are given in the remainder of this section.

Send Interval Setup

Description: Get and set the data send interval

This command allows the user to get the current device status.

CommandInput ParameterReturn ValueReturn Code
ATC+SENDINT?-ATC+SENDINT: Send interval, Get or Set the automatic send intervalOK
ATC+SENDINT=?-< interval >OK
ATC+SENDINT=<Input Parameter>< interval in seconds >-OK or AT_PARAM_ERROR

Examples:

atc+sendint?

AT+SENDINT:"Send interval, Get or Set the automatic send interval"

OK

atc+sendint=?
AT+SENDINT=600

OK

atc+sendint=600
OK

Set fPort

Description: fPort settings

This command allows the user to access and configure port settings.

CommandInput ParameterReturn ValueReturn Code
ATC+PORT?-AT+PORT=<Port><CR>. Get or Set the PortOK
ATC+PORT=?-1-223OK
ATC+PORT=<Input Parameter>1-223-OK or AT_PARAM_ERROR

Examples:

ATC+PORT?

ATC+PORT: Get or Set the Port=[1..223]
OK

ATC+PORT=?

ATC+PORT:2
OK

ATC+PORT=2

OK

UI Selection

The default UI can be set with an AT command.

CommandInput ParameterReturn ValueReturn Code
ATC+UI?-ATC+UI: Switch display UI, 0 = scientific, 1 = iconizedOK
ATC+UI=?-<current UI>OK
ATC+UI=<Input Parameter><0 = scientific, 1 = iconized>-OK or +CME ERROR:6

Examples:

Check function

ATC+UI?

ATC+UI:"Switch display UI, 0 = scientific, 1 = iconized"

OK

Get current default

ATC+UI=?

1

OK

Set new default

ATC+UI=1

OK

Wrong selection


ATC+UI=3

+CME ERROR:6

RTC Setup

If the RAK12002 RTC module is used, an additional user AT command is available to set the RTC time and date.

CommandInput ParameterReturn ValueReturn Code
ATC+RTC?-ATC+RTC: Get/Set RTC time and dateOK
ATC+RTC=?-<date & time>OK
ATC+RTC=<Input Parameter><date & time>-OK or +CME ERROR:6

Examples:

Check function

ATC+RTC?

ATC+RTC:"Get/Set RTC time and date"

OK

Get time

ATC+RTC=?

2023.07.02 20:44:45

OK

Set time

ATC+RTC=2023:7:2:20:49

OK

Wrong time format


ATC+RTC=2023:7:2:25:61

+CME ERROR:6

CO2 Sensor Calibration

The SCD30 CO2 Sensor from Sensirion has a calibration function. If the sensor results are not within the expected range, the CO2 sensor can be calibrated with a value retrieved from a calibration device.

CommandInput ParameterReturn ValueReturn Code
ATC+CO2?-ATC+CO2: Set CO2 calibration value, 400 ... 2000ppmOK
ATC+CO2=?-<calibration>OK
ATC+CO2=<Input Parameter><calibration>-OK or +CME ERROR:6

Examples:

Check function

ATC+CO2?

ATC+CO2:"Set CO2 calibration value, 400 ... 2000ppm"

OK

Get current calibration value

ATC+CO2=?

400

OK

Set new calibration value

ATC+CO2=400

OK

Wrong calibration value

ATC+CO2=2300

+CME ERROR:6

Differences to RUI3 AT commands

As the firmware of the RAK10702 Indoor Comfort Node is not based on RUI3, the following AT commands are not supported or have a different behaviour:

RUI3 AT commandRemark
AT+BOOTRestarts device in Arduino bootloader mode with DFU/UF2 mode
AT+BUILDTIMEReturns the build time of the application, not the RUI3 build time
AT+CLIVERReturns fixed version 1.5.8, not the RUI3 CLI version
AT+APIVERReturns fixed version 3.2.3, not the RUI3 API version
AT+SNReturns the MCU unique ID, cannot be changed
AT+NETIDReturns always 0, cannot be changed
AT+LPMRUI3 low power mode is not supported
AT+DCSReturns the current duty cycle setting, cannot be changed
AT+PNMReturns the current network selection, cannot be changed
AT+CHEReturns the current network selection, cannot be changed
AT+CHSReturns the current network selection, cannot be changed
AT+JN1DLReturns the current delay, cannot be changed
AT+JN2DLReturns the current delay, cannot be changed
AT+RX1DLReturns the current delay, cannot be changed
AT+RX2DLReturns the current delay, cannot be changed
AT+RX2DRReturns the current delay, cannot be changed
AT+RX2FQReturns the current delay, cannot be changed
AT+ARSSIReturns the only last data RSSI, not all channels
AT+LINKCHECKReturns always 0
AT+LSTMULCReturns always no multicast channels defined

Appendix

Appendix I Data Rate by Region

EU433/EU868/RU864/AS923
Data RateConfigurationIndicative Physical Bit Rate [bit/s]
0LoRa: SF12 / 125 kHz250
1LoRa: SF11 / 125 kHz440
2LoRa: SF10 / 125 kHz980
3LoRa: SF9 / 125 kHz1760
4LoRa: SF8 / 125 kHz3125
5LoRa: SF7 / 125 kHz5470
6LoRa: SF7 / 250 kHz11000
7FSK: 50 kbps50000
8 ~ 15RFU
CN470/KR920
Data RateConfigurationIndicative Physical Bit Rate [bit/s]
0LoRa: SF12 / 125 kHz250
1LoRa: SF11 / 125 kHz440
2LoRa: SF10 / 125 kHz980
3LoRa: SF9 / 125 kHz1760
4LoRa: SF8 / 125 kHz3125
5LoRa: SF7 / 125 kHz5470
6 ~ 15RFU
US915
Data RateConfigurationIndicative Physical Bit Rate [bit/s]
0LoRa: SF10 / 125 kHz980
1LoRa: SF9 / 125 kHz1760
2LoRa: SF8 / 125 kHz3125
3LoRa: SF7 / 125 kHz5470
4LoRa: SF8 / 500 kHz12500
5 ~ 7RFU
8LoRa: SF12 / 500 kHz980
9LoRa: SF11 / 500 kHz1760
10LoRa: SF10 / 500 kHz3900
11LoRa: SF9 / 500 kHz7000
12LoRa: SF8 / 500 kHz12500
13LoRa: SF7 / 500 kHz21900
14 ~ 15RFU
AU915
Data RateConfigurationIndicative Physical Bit Rate [bit/s]
0LoRa: SF12 / 125 kHz250
1LoRa: SF11 / 125 kHz440
2LoRa: SF10 / 125 kHz980
3LoRa: SF9 / 125 kHz1760
4LoRa: SF8 / 125 kHz3125
5LoRa: SF7 / 125 kHz5470
6LoRa: SF8 / 500 kHz12500
7RFURFU
8LoRa: SF12 / 500 kHz980
9LoRa: SF11 / 500 kHz1760
10LoRa: SF10 / 500 kHz3900
11LoRa: SF9 / 500 kHz7000
12LoRa: SF8 / 500 kHz12500
IN865
Data RateConfigurationIndicative Physical Bit Rate [bit/s]
0LoRa: SF12 / 125 kHz250
1LoRa: SF11 / 125 kHz440
2LoRa: SF10 / 125 kHz980
3LoRa: SF9 / 125 kHz1760
4LoRa: SF8 / 125 kHz3125
5LoRa: SF7 / 125 kHz5470
6RFURFU
7FSK: 50 kbps50000
8 ~ 15RFURFU

Appendix II TX Power by Region

EU868

By default, MaxEIRP is considered to be +16 dBm.

TXPowerConfiguration (EIRP)
0MaxEIRP
1MaxEIRP - 2 dB
2MaxEIRP - 4 dB
3MaxEIRP - 6 dB
4MaxEIRP - 8 dB
5MaxEIRP - 10 dB
6MaxEIRP - 12 dB
7MaxEIRP - 14 dB
8 ~ 15RFU
US915
TXPowerConfiguration (Conducted Power)
030 dBm - 2*TXpower
128 dBm
226 dBm
3 ~ 9-
1010 dBm
11 ~ 15RFU
AU915

By default, MaxEIRP is considered to be +30 dBm.

TXPowerConfiguration (EIRP)
0MaxEIRP
1 ~ 10MaxEIRP - 2*TXPower
11 ~ 10RFU
KR920

By default, MaxEIRP is considered to be +14 dBm.

TXPowerConfiguration (EIRP)
0MaxEIRP
1MaxEIRP - 2 dB
2MaxEIRP - 4 dB
3MaxEIRP - 6 dB
4MaxEIRP - 8 dB
5MaxEIRP - 10 dB
6MaxEIRP - 12 dB
7MaxEIRP - 14 dB
8 ~ 15RFU
AS923

By default, Max EIRP is considered to be 16 dBm.

TXPowerConfiguration (EIRP)
0MaxEIRP
1MaxEIRP - 2 dB
2MaxEIRP - 4 dB
3MaxEIRP - 6 dB
4MaxEIRP - 8 dB
5MaxEIRP - 10 dB
6MaxEIRP - 12 dB
7MaxEIRP - 14 dB
8 ~ 15RFU
IN865

By default, MaxEIRP is considered to be 30 dBm.

TXPowerConfiguration (EIRP)
0MaxEIRP
1MaxEIRP - 2 dB
2MaxEIRP - 4 dB
3MaxEIRP - 6 dB
4MaxEIRP - 8 dB
5MaxEIRP - 10 dB
6MaxEIRP - 12 dB
7MaxEIRP - 14 dB
8MaxEIRP - 16 dB
9MaxEIRP - 18 dB
10MaxEIRP - 20 dB
11 ~ 15RFU
RU864

By default, MaxEIRP is considered to be +16 dBm.

TXPowerConfiguration (EIRP)
0MaxEIRP
1MaxEIRP - 2 dB
2MaxEIRP - 4 dB
3MaxEIRP - 6 dB
4MaxEIRP - 8 dB
5MaxEIRP - 10 dB
6MaxEIRP - 12 dB
7MaxEIRP - 14 dB
8 ~ 15RFU
CN470

By default, MaxEIRP is considered to be +19.15 dBm.

TXPowerConfiguration (EIRP)
0MaxEIRP
1MaxEIRP 2 dB
2MaxEIRP 4 dB
3MaxEIRP 6 dB
4MaxEIRP 8 dB
5MaxEIRP - 10 dB
6MaxEIRP - 12 dB
7MaxEIRP - 14 dB
8 ~ 15RFU
EU433

By default, MAxEIRP is considered to be +12.15 dBm.

TXPowerConfiguration (EIRP)
0MaxEIRP
1MaxEIRP - 2 dB
2MaxEIRP - 4 dB
3MaxEIRP - 6 dB
4MaxEIRP - 8 dB
5MaxEIRP - 10 dB
6 ~ 15RFU

Appendix III Maximum Transmission Load by Region

M in the following list is the length with MAC header, N is the maximum usable payload size for the user data without MAC header.

EU868
Data RateMN
05951
15951
25951
3123115
4250242
5250242
6250242
7250242
8 ~ 15Not DefinedNot Defined
US915
Data RateMN
01911
16153
2133125
3250242
4250242
5 ~ 7Not DefinedNot Defined
86153
9137129
10250242
11250242
12250242
13250242
14 ~ 15Not DefinedNot Defined
AU915
Data RateMN
05951
15951
25951
3123115
4250242
5250242
6250242
7Not DefinedNot Defined
86153
9137129
10250242
11250242
12250242
13250242
14 ~ 15Not DefinedNot Defined
KR920
Data RateMN
05951
15951
25951
3123115
4250242
5250242
6 ~ 15Not DefinedNot Defined
AS923
Data RateUplink MAC Payload Size (M)Downlink MAC Payload Size (M)
UplinkDwellTime = 0UplinkDwellTime = 1DownlinkDwellTime = 0DownlinkDwellTime = 1
059N/A59N/A
159N/A59N/A
259195919
31236112361
4250133250133
5250250250250
6250250250250
7250250250250
8RFURFU
IN865
Data RateMN
05951
15951
25951
3123115
4250242
5250242
6250242
7250242
8 ~ 15Not DefinedNot Defined
RU864
Data RateMN
05951
15951
25951
3123115
4230222
5230222
6230222
7230222
8 ~ 15Not DefinedNot Defined
CN470
Data RateMN
05951
15951
25951
3123115
4250242
5250242
6 ~ 15Not DefinedNot Defined
EU433
Data RateMN
05951
15951
25951
3123115
4250242
5250242
6250242
7250242
8 ~ 15Not DefinedNot Defined