Skip to main content

RAK4200 Evaluation Board AT Command Manual

The purpose of this document is to demonstrate how to configure the RAK4200 Evaluation Board thru the use of AT Commands via a Serial Port Tool running on your Windows PC. The list below shows the AT Commands available for use:

AT CommandDescription
at+helpThis AT command can show all available AT commands of this module/product for you.
at+versionGet the current firmware version number.
at+get_config=device:statusGet all information about the device’s hardware components and their current status.
at+set_config=device:restartAfter set, the device will restart.
at+set_config=device:bootLet the device work in boot mode.
at+runStop boot mode and run as normal. It is valid when the device works in boot mode.
at+set_config=device:sleep:XAfter setting, the device will go to sleep mode or wake up immediately.
• X - 0 - wake up ; 1 - sleep
at+set_config=device:uart_mode:X:YSet the UART work mode.
• X - UART number on the RAK4200 module.
• Y - 0: Configuration mode, 1: Passthrough mode.
at+joinStart to join LoRa network
at+send=lora:X:YYYSend a customized data.
• X - LoRa port
• YYY - The data which you want to send. The limited length is 50 Bytes and the data must be in HEX format.
at+set_config=lora:work_mode:XSet the work mode for LoRa.
• X - 0: LoRaWAN, 1: LoRa P2P, 2: Test Mode.
at+set_config=lora:join_mode:XSet the join mode for LoRaWAN.
• X - 0: OTAA, 1: ABP
at+set_config=lora:class:XSet the class for LoRa.
• X - 0: Class A, 1: Class B, 2: Class C
at+set_config=lora:region:XXXXSets the region for LoRa.
• XXXX - EU868 EU433, CN470, IN865, EU868, AU915, US915, KR920, AS923.
at+set_config=lora:confirm:XXXXSets the type of messages which will be sent out through LoRa.
• XXXX - 0: unconfirmed, 1: confirmed
at+set_config=lora:dev_eui:XXXXSets the device EUI for OTAA.
• XXXX - the Device EUI.
at+set_config=lora:app_eui:XXXXSet the application EUI for OTAA.
• XXXX - the Application EUI.
at+set_config=lora:app_key:XXXXSet the application key for OTAA.
• XXXX - the Application Key.
at+set_config=lora:dev_addr:XXXXSet the device address for ABP.
• XXXX - the Device Address.
at+set_config=lora:apps_key:XXXXSet the application session key for ABP.
• XXXX - the Application Session Key.
at+set_config=lora:nwks_key:XXXXSet the network session key for ABP.
• XXXX - the Network Session Key.
at+set_config=lora:ch_mask:X:YSet a certain channel on or off.
• X - the channel number, and you can check which channel can be set before you set it.
• Y - 0: off, 1: on
at+set_config=lora:adr:XOpen or close the ADR function of node.
• X - 0: Close ADR, 1: Open ADR.
at+set_config=lora:dr:XSet the Data rate of node.
• X - the DR value. Generally, the value of X can be 0~5. More details, check the LoRaWAN 1.0.2 specification.
at+set_config=lora:tx_power:X• X - Set the TX power level. If you want to know the relationship between TX power level and dbm, have a look at LoRaWAN 1.0.2 region specification.
at+get_config=lora:statusIt will return all of the current information of LoRa, except LoRa channel.
at+get_config=lora:channelIt will return the state of all LoRa channels. You can check which channel is closed and which channel is open very clearly.
at+set_config=lorap2p:XXX:Y:Z:A:B:CSet the parameters for LoRa P2P mode. This AT command is valid when the work mode is LoRa P2P.
• XXX - Frequency in Hz.
• Y - Spreading factor, [6, 7, 8, 9, 10, 11, 12].
• Z - Bandwidth, 0: 125 kHz, 1: 250 kHz, 2: 500 kHz.
• A - Coding Rate, 1: 4/5, 2: 4/6, 3: 4/7, 4: 4/8.
• B - Preamble Length, 5 - 65535.
• C - Power in dbm, 5-20.
at+send=lorap2p:XXXSend data through LoRa P2P. This AT command is valid when it works in LoRa P2P mode.
• XXX - the data in HEX format.