RAKwireless RAK7200 Specification sheet

v2.0.0.0.0
2
Table of Contents
1. Where is the latest firmware file?......................................................................................3
2. How to burn the update firmware into RAK7200?..........................................................3
3. How to configure RAK7200?............................................................................................. 9
4. How to connect with TTN?...............................................................................................12
4.1 Join in OTAA mode.................................................................................................17
4.2 Join in ABP mode....................................................................................................20
5. How to connect with LoRaServer?................................................................................. 21
5.1 Join in OTAA mode.................................................................................................24
5.2 Join in ABP mode....................................................................................................30
6. Revision History.................................................................................................................36
7. Document Summary......................................................................................................... 36

v2.0.0.0.0
3
1. Where is the latest firmware file?
If you want to get a pre-compiled firmware instead of compiling the source code by
yourself, you can find the latest firmware on RAK website after it is released.
2. How to burn the update firmware into
RAK7200?
Firstly, please install the “STM32CubeProgrammer” tool on your Windows PC. You
can download it from here:
https://www.st.com/content/st_com/en/products/development-tools/software-develop
ment-tools/stm32-software-development-tools/stm32-programmers/stm32cubeprog.h
tml#overview
Secondly, connect RAK7200 with your PC’s USB interface as follow:
Now, you need to let RAK7200 work in boot mode. You can do it as follow:

v2.0.0.0.0
4
1. Hold down the BOOT0 button, then press the Reset button;
2. Loosen the Reset button, then Loosen the BOOT0 button.
Open the “STM32CubeProgrammer” tool, and select UART type, then configure the
Port, Baudrate, and Pairty as the following picture shows:
Note: It is COM5 on my computer, and it may be another COM port on your computer.
Then press “Connect” button at the top right corner. If there are some errors in the Log
box as follow:

v2.0.0.0.0
5
It means that RAK7200 don’t work in BOOT mode. You should let it work in boot
mode firstly.
The correct Log you should see is the information like the following picture shows:
Now, let’s start to burn a firmware into RAK7200.
At first, erase all data on RAK7200 according the following picture shows, it may take
several seconds:

v2.0.0.0.0
6
Press “Open file” and select the correct firmware file in the pop-up window as follow:

v2.0.0.0.0
7
Press the “Download” button to start the burning process:

v2.0.0.0.0
8
OK, you have upgraded the firmware for RAK7200 successfully!
Now, “Disconnect” and close the “STM32CubeProgrammer” tool, then open a serial
port tool on your PC. Choose the correct COM port and baud rate is 115200. Then
press the Reset button on RAK7200, you’ll see the following log on serial port tool:

v2.0.0.0.0
9
Note: If you haven’t a serial port tool, we recommend you to use RAK serial port tool.
You can get it from RAK website and use it freely.
http://docs.rakwireless.com/en/LoRa/RAK811/Tools/RAK_SERIAL_PORT_TOOL_V1.
2.1.zip
3. How to configure RAK7200?
You can configure LoRa Button by sending AT commands into it from a serial port tool
running on your PC.
The following list shows the AT commands:
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.

v2.0.0.0.0
10
at+set_config=device:XXX:YYY
Set a certain sensor’s status.
XXX definition:the sensor’s flag, gps
means GPS, acc means Accelerate,
magn means Magnetic,
gyro means Gyroscope,
pressure means Pressure,
temperature means Temperature,
humidity means Humidity,
light_strength means Light_strength,
voltage means Voltage.
YYY definition: 0: close, 1: open
at+join
Start to join LoRa network.
at+send=X:YYY
Send a customized data.
X definition: LoRa port
YYY definition: 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:X
Set the work mode for LoRa.
X definition: 0: LoRaWAN, 1: LoRaP2P,
2: Test Mode.
at+set_config=lora:join_mode:X
Set the join mode for LoRaWAN.
X definition: 0: OTAA, 1: ABP
at+set_config=lora:class:X
Set the class for LoRa.
X definition: 0: Class A, 1: Class B, 2:
Class C
at+set_config=lora:region:XXX
Set the region for LoRa.
XXX define: one of the following items:
EU868 EU433, CN470, IN865, EU868,
AU915, US915, KR920, AS923.

v2.0.0.0.0
11
at+set_config=lora:confirm:X
Set the type of messages which will be
sent out through LoRa.
X definition: 0: unconfirm, 1: confirm
at+set_config=lora:ch_mask:X:Y
Set a certain channel on or off.
X definition: the channel number, and
you can check which channel can be set
before you set it.
Y definition: 0: off, 1: on
at+set_config=lora:dev_eui:XXXX
Set the device EUI for OTAA.
XXXX definition: the device EUI, for
example, 3534353165375300
at+set_config=lora:app_eui:XXXX
Set the application EUI for OTAA.
XXXX definition: the application EUI, for
example, 70B3D57ED001A1E2
at+set_config=lora:app_key:XXXX
Set the application key for OTAA.
XXXX definition: the application key, for
example,
D9988A5F02D80FAB8BA5F453C4A2C
D2B
at+set_config=lora:dev_addr:XXXX
Set the device address for ABP.
XXXX definition: the device address, for
example, 2601116D
at+set_config=lora:apps_key:XXXX
Set the application session key for ABP.
XXXX definition: the application session
key, for example,
573BD4DEC56BA4A9C462DF29E54B9
BCE
at+set_config=lora:nwks_key:XXXX
Set the network session key for ABP.
XXXX definition: the network session
key, for example,
C2AA51E61BA45F57045BF48249BC3
6F6
at+set_config=lora:send_interval:X
Set the interval time of sending data.

v2.0.0.0.0
12
X definition: the interval time, units are
seconds.
at+get_config=lora:status
It will return all of the current information
of LoRa, except 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.
More information, please have a look at the next section <How to Connect with
TTN?>.
4. How to connect with TTN?
In this section, we’ll do some practice to show how to connect RAK7200 with TTN.
Firstly, open the serial port tool on your PC.
Open the serial port by click the following button:

v2.0.0.0.0
14
“add application”:
Fill in the correct contents.
Please note that the content you fill in “Application ID” item should be in low case, and
it must be the unique ID on TTN network.
Then press the “Add application” button at the bottom of this page, and you can see
the following page:

v2.0.0.0.0
15
At the middle of this page, you can find the box named “DEVICES”:
Just “register device”:
You can click the following icon and “Device EUI” will be generated automatically in
the next step:

v2.0.0.0.0
16
The following picture shows the final page:
Then press the “Register” button at the bottom of this page to finish.

v2.0.0.0.0
17
4.1 Join in OTAA mode
As you see in the above page, the default activation method is OTAA.
These three parameters will be used on RAK7200:
OK! Now, let’s join in OTAA mode and AU915 frequency for example!
The default LoRa work mode is LoRaWAN 1.0.2, the default LoRa join mode is OTAA,
and the default LoRa class is Class A.
Set the frequency/region to AU915:

v2.0.0.0.0
18
Set the Device EUI:
Set the Application EUI:

v2.0.0.0.0
19
Set the Application Key:

v2.0.0.0.0
20
Join in OTAA mode:
Join successfully! You can see that RAK7200 is sending data frequently.
Now, you can see the sensor data send from RAK7200 on TTN website as follow:
Great! That’s all about OTAA mode.
4.2 Join in ABP mode
(to add)
Table of contents