1. Where is the latest firmware? ....................3 2. How to burn the firmware for RAK5010 through J-Link? ............3 3. How to upgrade the firmware for RAK5010 through DFU over BLE? ........ 5 4. How to check the log of firmware? ..................11 4.1 Check the log of RAK5010 through J-Link RTT Viewer ..........
Note: You should uncompress it to get the .hex file. If you want to get a DFU package so that you can upgrade the firmware for RAK5010 through DFU over BLE, please download the latest DFU package of RAK5010 here: https://downloads.rakwireless.com/en/Cellular/RAK5010/Firmware/DFU-Package/...
Page 4
V3.0.0.0.3 Secondly, please install J-Link tool on your PC. You can download it from RAK website: https://downloads.rakwireless.com/en/Cellular/Tools/ Then download the “RAK itracker flash tool” from RAK website: https://downloads.rakwireless.com/en/Cellular/Tools/ After uncompressing this .zip file, you will get a folder like this: Now, copy the firmware of RAK5010 which you have just downloaded and uncompressed to the above folder.
If you have prepared the above things, we can start to upgrade firmware for RAK5010 through DFU over BLE. Open the Nordic APP to scan BLE signal, if you have just reset RAK5010, you could find its BLE signal named “RUI-…” in 60 seconds.
Page 6
V3.0.0.0.3 “CONNECT” and you can see the following page: Click “Secure DFU Service” and the following red box button:...
Page 7
V3.0.0.0.3 Now, click the red box button:...
Page 8
V3.0.0.0.3 “SEND” OK! RAK5010 has worked in the DFU mode now, and you can find a BLE signal named “DfuTarg” as the following picture shows:...
Page 9
V3.0.0.0.3 “CONNECT” Then click the red box icon in the following page: Just select “Distribution packet(ZIP)” and “OK”:...
Page 10
V3.0.0.0.3 Then select the correct DFU package in the pop-up dialog. Once you have done the above things, it will start to upgrade the firmware for RAK5010 through DFU over BLE automatically: When it completes, RAK5010 will restart automatically, and DFU connection will...
UART. 4.1 Check the log of RAK5010 through J-Link RTT Viewer If you want to check the log of RAK5010 through this way, you should make sure that you have connect RAK5010 with your PC through JTAG like this: Then open the program “J-Link RTT Viewer V6.41a” which you just installed in the section...
Page 12
V3.0.0.0.3 “OK” Choose the parameters as the following picture shows:...
Page 13
V3.0.0.0.3 “OK” and “Connect” as follow: Then you can see some log: Note: If there is no log after connecting successfully, you can try to reset RAK5010 or check the connection of JTAG.
V3.0.0.0.3 4.2 Check the log of RAK5010 through UART If you want to check the log of RAK5010 through UART, you should make sure that RAK5010 has been connect with your PC through UART correctly, like this: Then open a serial port tool in your PC. If you haven’t a serial port tool, I recommend to use RAK Serial Port Tool which you can download from here: https://downloads.rakwireless.com/en/LoRa/Tools/RAK_SERIAL_PORT_TOOL_V1.2.1.zi...
V3.0.0.0.3 OK, you can see the log through UART now. 4.3 Check the log of RAK5010 through microUSB Firstly, connect RAK5010 with your PC through microUSB/USB:...
Page 16
Please notice that, in this case, you need a serial port tool which can support DTR function, like Termite. You can download Termite here: OK. After opening Termite, and “setting” it as the following picture shows: Termite will connect with RAK5010 automatically, then you can send AT command and check the log in Termite:...
BLE. 5.1 Configure RAK5010 through UART As I said in the section 3.2, if you want to use RAK5010 through UART, you should connect RAK5010 with your PC through UART correctly. Then let’s try to send a simple AT command to RAK5010 to get the current firmware’s version: Similarly, you can send other AT commands of RAK5010 in the same way.
V3.0.0.0.3 5.2 Configure RAK5010 through BLE If you want to configure RAK5010 through BLE, please make sure that you have a correct BLE tool to do it. Usually, we use a mobile APP named “nRF Connect” or ““nRF Master Control Panel (BLE)”” which is developed by Nordicsemi company.
Page 19
V3.0.0.0.3 Note: It is very important that you should connect it in 60 seconds after reseting RAK5010, otherwise RAK5010’s BLE will work in central mode and it can not be scanned. Click the 3 item “Nordic UART Service”:...
Page 20
V3.0.0.0.3 Click the arrow which is marked by the red box in the above picture, you will see the following page:...
Page 21
V3.0.0.0.3 You can send AT commands to RAK5010 in this page, meanwhile you can see log information in RTT Viewer if you want. For example, if you want to check the current firmware’s version, just do as follow:...
Page 22
V3.0.0.0.3 Then you can see the version number in RTT Viewer tool: You can see the current firmware’s version in RTT Viewer. If you want to check the BG96 module’s version, you can do as follow:...
Page 23
V3.0.0.0.3 Then you can see some log information in RTT Viewer: Great! The BG96 module’s version has been printed in RTT Viewer.
Please notice that, in this case, you need a serial port tool which can support DTR function, like Termite. You can download Termite here: https://downloads.rakwireless.com/en/LoRa/Tools/termite-3.4.zip OK. After opening Termite, and “setting” it as the following picture shows: Termite will connect with RAK5010 automatically, if not, just click the blue button to connect again:...
V3.0.0.0.3 Now, you can send AT commands into RAK5010. 6. AT commands for RAK5010 The following list shows all AT commands of RAK5010: AT Command Detail at+version Get the current firmware version number. at+set_config=device:restart After set, the device will restart.
Page 26
V3.0.0.0.3 at+set_config=device:cellular:X X definition: 0: close, 1: open at+set_config=cellular:send_interval:X:Y Set the interval of sending packet loop. X definition: 0: off, 1: on Y definition: the interval time (ms). This value must be more than 150000 (150s). If the X is set to 1, it means that the device will sleep for Y ms after sending a packet automatically in a loop, until you set X to 0.
Cellular? In this section, we’ll do some practice to show how to connect Cellular network. Firstly, insert a SIM card into RAK5010, in this document, i’ll use a China Mobile SIM card for example. BTW, as I descript in the section 5 of this document, there are three ways to configure RAK5010: UART, BLE and microUSB.
Page 28
V3.0.0.0.3 wait for almost 30 seconds, you will see the following output in the serial port tool: As you see, RAK5010 has scanned the around Cellular network and show them in the serial port tool. Then use the AT command “at+set_config=cellular:(AT+COPS=1,0,"CHINA MOBILE",0)”...
Page 29
V3.0.0.0.3 Continue configure using command “at+set_config=cellular:(AT+QICSGP=1,1,"CMCC","","",1)” “at+set_config=cellular:(AT+QIACT=1)”:...
Page 30
RAK5010: Note: This IP address is just used for example, and it is my testing server actually. OK, we’ve configured RAK5010 correctly. Next, let’s try to send a packet manually over Cellular. You can use the AT command “at+send=cellular:XXX” to send data over Cellular:...
V3.0.0.0.3 As you see, the data we send is “123456”. Let’s check it on our receiving server: Great! As you see in the above picture, the server has received the packet successfully, and the data is “123456” which is same with the one we just sent out. 7.2 Connect Cellular network and send packet automatically Firstly, configure the parameters for the Cellular operator information and the receiving...
Page 32
As you see, this setting means that we open the sending loop and the interval time is 180 seconds. About this command, you can have a look at the section 5 of this document. Now, restart RAK5010 by sending the AT command “at+set_config=device:restart”:...
Page 33
Every time when it sends a packet out, RAK5010 will go to sleep for 180 seconds which you just set, then RAK5010 will wake up and searching GPS, building a new packet, and sending it out.
But it is useful for IoT use case, for example, you can connect some BLE sensor node with RAK5010 when it works in the central mode, because at this time RAK5010 act as a BLE gateway, and it can connect with other BLE peripheral sensor nodes, up to 20 devices.
Page 35
V3.0.0.0.3 Author Date Version Fomi 2019.10.31 V3.0.0.7 Please contact us if you need technical support or want to know more information. Support center: https://forum.rakwireless.com/ Email us: info@rakwireless.com About RAKwireless: RAKwireless is the pioneer in providing innovative and diverse cellular and LoRa connectivity solutions for IoT edge devices.
Need help?
Do you have a question about the RAK5010 and is the answer not in the manual?
Questions and answers