Configuring your RAK5205 Using AT Commands
Outdated: this section documents The Things Network V2, which is no longer maintained. See the documentation for The Things Stack V3, or browse the V2 docs index.
The purpose of this document is to demonstrate on how to configure the RAK5205 LoRa® Tracker thru the use of AT Commands via a Serial Port Tool running in your Windows PC. The list below shows the AT Commands available for use:
Note: It is highly recommended to use our own RAK Serial Port Tool for its built-in AT Commands for your convenience.
| AT Command | Description |
|---|---|
| at+version | Get the current firmware version number. |
| at+get_config=device:status | Get all information about the device’s hardware components and their current status. |
| at+set_config=device:restart | After set, the device will restart. |
| at+set_config=device:boot | Let the device work in boot mode |
| at+run | Stop boot mode and run as normal. It is valid when the device works in boot mode. |
| at+set_config=device:sleep:X | After Setting, the device will go to sleep mode or wake up imediately{::nomarkdown}
|
| at+join | Start the join procedure for the LoRaWAN™ network |
| at+send=lora:X:YYY | Send an uplink with a custom payload:{::nomarkdown}
|
| at+set_config=lora:work_mode:X | Set the Working Mode:{::nomarkdown}
|
| at+set_config=lora:join_mode:X | Set the join mode for LoRaWAN™.{::nomarkdown}
|
| at+set_config=lora:class:X | Set the class for LoRa®.{::nomarkdown}
|
| at+set_config=lora:region:XXX | Set the Region for LoRa®:{::nomarkdown}
|
| at+set_config=lora:confirm:X | Set the type of messages which will be sent out through LoRa®. {::nomarkdown}
|
| at+set_config=lora:dev_eui:XXXX | Set the device EUI {::nomarkdown}
|
| at+set_config=lora:app_eui:XXXX | Set the application EUI(for OTAA){::nomarkdown}
|
| at+set_config=lora:app_key:XXXX | Set the Application Key(for OTAA){::nomarkdown}
|
| at+set_config=lora:dev_addr:XXXX | Set the Device Address(for ABP){::nomarkdown}
|
| at+set_config=lora:apps_key:XXXX | Set the Application Session Key(for ABP){::nomarkdown}
|
| at+set_config=lora:nwks_key:XXXX | Set the Network Session Key(for ABP){::nomarkdown}
|
| at+set_config=lora:ch_mask:X:Y | Turn a certain channel on/off{::nomarkdown}
|
| at+set_config=lora:adr:X | Open or close the ADR function of LoRa® Node.{::nomarkdown}
|
| at+set_config=lora:dr:X | Set the DR of LoRa® Node{::nomarkdown}
|
| at+get_config=lora:status | It will return all of the current information of LoRa®, except the LoRa® Channel |
| at+get_config=lora:channel | It will return the state of all LoRa® channels, then you can see which channel is closed and which channel is open very clearly |
| at+set_config=lorap2p:XXX:Y:Z:A:B:C | Set the Parameters for LoRaP2P mode. This AT Command is valid when the work ode is LoRaP2P{::nomarkdown}
|
| at+send=lorap2p:XXX | Send data through LoRaP2P. This AT command is valid when it works in LoRaP2P mode.{::nomarkdown}
|