RAK3172 Evaluation Board Quick Start Guide
Prerequisites
Before proceeding with the installation guide for the RAK3172 Evaluation Board, ensure you have prepared the necessary items listed below:
Hardware
- RAK3172 Evaluation Board
- Computer with a USB port
- USB cable
Software
- Arduino IDE: Required for RUI3 development. Follow the tutorial How to Perform Installation of Board Support Package in Arduino IDE to install Arduino IDE and set up the board support package.
If you are using Windows 10. Do NOT install the Arduino IDE from the Microsoft App Store. Install the original Arduino IDE from the Arduino official website! The Arduino app from the Microsoft App Store has problems using third-party Board Support Packages.
When following the linked tutorial, use the WisDuo-specific Board Manager URL instead of the URL provided in the tutorial.
Add the following URL under File > Preferences > Additional Boards Manager URLs in Arduino IDE:
https://raw.githubusercontent.com/RAKWireless/RAKwireless-Arduino-BSP-Index/main/package_rakwireless_com_rui_index.json
- RAK Serial Port Tool: Used to configure the board and send AT commands through the serial interface.
- CH340 USB-Serial Driver: Installed manually for Windows 10 users having USB connection issues.
Product Configuration
The RAK3172-E can be used in three ways: as a stand-alone device with RUI3, as a LoRa/LoRaWAN modem via AT commands, or for LoRa Point-to-Point (P2P) communication between two RAK3172 Evaluation Boards. Choose the mode that best fits your application.
For P2P details, refer to the LoRa P2P Communication guide.
Configure RAK3172-E as a Stand-Alone Device Using RUI3
The RAK3172-E uses RUI3 firmware by default, allowing you to develop custom applications for sensors and other peripherals using RUI3 APIs and Arduino IDE. This section guides you through the hardware setup and demonstrates how to compile and upload the serial example to verify your development environment.
The AT commands for the RAK3272-E remain accessible even when custom firmware is compiled and uploaded using RUI3.
Hardware Setup
The RAK3172 Evaluation Board requires a power supply, antenna, reset button, and USB connection to operate. Connect the RAK3172-E to a computer using a Micro-USB cable. You can use any serial communication tool, but the RAK Serial Port Tool is recommended for serial communication.
Firmware updates are done via the USB port. If connecting the board to an external device interfacing with USB, take extra precautions in your board design to ensure firmware updates remain possible. The board design should allow disconnecting the external device from the RAK3172-E USB port before connecting the board to a PC for firmware updates.
Alternatively, firmware can be updated through the SWD interface (SWCLK and SWDIO) using an external programmer such as ST-LINK or RAKDAP1.
Figure 1: RAK3172 Evaluation Board schematicEnsure that the antenna is properly connected for a good LoRa signal. Also note that powering the board without an antenna connected to the IPEX connector may damage the chip's RF section.
Figure 1: LoRa AntennaRAK3172-E has an IPEX connector where you can connect the LoRa antenna.
Figure 1: IPEX Connector of RAK3172-E for LoRa AntennaDetailed information about the RAK3172 LoRa antenna can be found on the antenna datasheet.
When using the LoRa transceiver, ensure that an antenna is always connected. Using the transceiver without an antenna may damage the board.
Run the LED Breathing Example
After adding the RAK3172-E to Arduino IDE, upload a simple test program to verify your development environment. The RAK3172 Evaluation Board features two LEDs for testing, located near the Reset button and USB connector.
Figure 1: RAK3172 Evaluation Board LEDs- Connect the RAK3172-E via USB and check COM Port using Windows Device Manager. Double-click the reset button if the board is not detected.
Figure 1: Device manager ports (COM & LPT)- Launch Arduino IDE and select the RAK3172-E on board selection select via Tools > Boards Manager > RAKWireless RUI STM32 Modules > WisDuo RAK3172 Evaluation Board.
Figure 1: Selecting RAK3172 Evaluation Board- Open Tools Menu and select a COM port. In this case, select COM28, as it is currently in use.
Figure 1: Select COM port- You can see the serial monitor icon and click it to connect the COM port.
Figure 1: Open Arduino serial monitor- If the connection is successful, you can send AT Commands to RAK3172-E. For example: To check the RUI version, type
AT+VER=?on the text area, then click on the Send button.
Figure 1: Send AT command
Figure 1: Arduino serial monitor COM28- Open Arduino_Led_Breathing example code.
Figure 1: Arduino Led Breathing example- Click on the Verify icon to check if you have successfully compiled the example code.
Figure 1: Verify the example code- Click the Upload icon to send the compiled firmware to your RAK3172.
RAK3172-E should automatically go to BOOT mode when the firmware is uploaded via Arduino IDE.
If BOOT mode is not initiated, you can manually send AT+BOOT command to start bootloader mode.
Figure 1: Upload the example code- If the upload is successful, you will see the Device programmed message.
Figure 1: Device programmed successfully- After the Device Programmed is completed, you will see that LEDs are blinking.
More examples for the RAK3172 Evaluation Board can be found in the RUI3-Best-Practices on Github.
Configure RAK3172-E as a LoRa/LoRaWAN Modem via AT Command
RAK3172 Evaluation Board can be configured using AT commands via the USB interface. Connect the board to your computer using a USB-to-UART TTL adapter and open a serial terminal, such as the RAK Serial Port Tool, to send AT commands and view the responses.
Firmware update and AT command functionality are done via USB pins. If you will connect the board to an external host MCU that will send AT commands via USB, take extra precautions in your board design to ensure you can still perform FW update to it. There should be a way in your board design that can disconnect the host MCU UART to connect to RAK3172-E USB before connecting the board to the PC via USB for the FW update process.
An alternative option to update firmware aside from USB is to use SWD pins (SWCLK & SWDIO). This method will require you to use external tools like ST-LINK or RAKDAP1.
Connect the RAK3172-E to a PC
- Connect the RAK3172 Evaluation Board to the general-purpose computer USB port via a micro USB cable.
Figure 1: RAK3172 EVB Connection-
Open the serial communication tool, it is recommended to use the RAK Serial Port Tool for convenience and compatibility.
-
Configure the serial communication tool by selecting the proper port detected by the computer and configure the link as follows:
-
Baud Rate: 115200 baud
-
Data Bits: 8 bits
-
Stop Bits: 1 stop bit
-
Parity: NONE
-
Test the Serial Communication
Before configuring the board, it is recommended to test the serial communication to ensure that the board and the serial terminal can communicate properly. Send the following two AT commands:
AT
ATE
ATE will echo the commands you input to the board, which is useful for tracking the commands and troubleshooting.
You will receive OK when you input the two commands. After setting ATE, you can now see all the commands you input together with the replies. Try again AT and you should see it on the terminal followed by OK.
If there is no OK or any reply, you need to check if the wiring of your UART lines is correct and if the baud is correctly configured to 115200. Also, you can check if the board is powered correctly. If you are getting power from a USB port, ensure that you have a good USB cable.
Figure 1: at+version command responseOnce the serial communication is verified, you can configure the RAK3172-E as a LoRa/LoRaWAN modem using AT commands.
Refer to RAK3172 Evaluation Board as a LoRa/LoRaWAN Modem to learn how to configure the board for OTAA or ABP activation using TTN or ChirpStack.
