RAK5860 WisBlock NB-IoT Interface Module Quick Start Guide
Prerequisite
-
Assemble the RAK5860 with a WisBlock Base and WisBlock Core by following the RAK5860 Installation Guide.
-
Download and install the Arduino IDE, then add the RAKwireless Core boards by installing the RAKwireless Arduino BSP.
-
USB Cable
-
GNSS and GSM Antennas
Software Configuration and Example
The RAK5860 WisBlock GSM/GPRS Module uses UART serial communication lines. In this example code, you will be able to send AT commands to the RAK5860 module. This will ensure that your RAK5860 is functional and ready for your IoT project.
-
This guide uses the RAK4631 WisBlock Core to demonstrate the configuration and upload process. The example is also compatible with other WisBlock Cores, including the RAK11200 and RAK11310.
-
When using RAK11200 as WisBlock Core, configure the BOOT0 pin properly before uploading the firmware. Incorrect BOOT0 configuration may cause the firmware upload to fail. For more information, refer to the RAK11200 Quick Start Guide.
- First, you need to select the WisBlock Core you have.
Figure 1: Selecting RAK4631 as WisBlock Core- You also need to select the right serial port to upload the code.
Figure 1: Selecting the correct Serial Port- Once you are ready with the Arduino IDE software and the WisBlock Core modules are already added, you can now check the Cellular examples available for the RAK5860 Cellular Wireless module. You can look at examples for TCP, MQTT, HTTP, and GPS on the RAK5860 Examples Repository.
- The basic software example you can run is the BG77_Unvarnished_Transmission. This is a UART passthrough to the BG77 from RAK4631. This code will power up the module correctly and after initialization, AT commands is passed and received to the BG77 module. In the example below, the module responded to
ATandATIcommands.
Figure 1: UART Passthrough to BG77 ModuleSoftware Examples
The following examples demonstrate the different protocols through which RAK5860 can access and send data to the cloud:
All the examples that use cellular connectivity should update the APN sections of the code. To illustrate, the code below configures the PDP context to 1 and APN to data.mono for Monogoto SIM.
You can purchase Monogoto SIM in the RAKwireless store.
command = "AT+QICSGP=1,1,\"data.mono\",\"\",\"\",1";
BG77_write(command.c_str());
BG77_read(2000);
Resources
- Sample Code: NB-IoT — Includes GNSS, HTTP, TCP client, and MQTT examples demonstrating how RAK5860 connects to the cloud and transmits data over a cellular network.
