RAK815 WisTrio LPWAN Tracker Quick Start Guide
Prerequisite
- RAK815 WisTrio LPWAN Tracker
- Emulator Kit w/ Debugging Tool
- Micro - USB Cable
- Gateway in Range for Testing
- Raspberry Pi
- A Windows/Mac OS/Linux Computer
- Android phone/ iPhone
This device released by RAKwireless is already pre-loaded with its latest firmware upon manufacturing. If you want to have your device's firmware burned or upgraded, refer to the following sections:
What's Included in the Package?
- 1-pc RAK815 WisTrio LPWAN Tracker
- 1-pc Micro USB Cable
- 1-pc GPS Antenna
- 1-pc LoRa Antenna
- 1-pc Rod Antenna
- 10-pcs Dupont Lines
- 5-pcs Jumping Caps
- Battery Port Line
Product Configuration
Interfacing with RAK815 WisTrio LPWAN Tracker
To interface with the RAK815 WisTrio LPWAN Tracker with your Windows Machine, you need to download the RAK Serial Port Tool.
Before powering the RAK815 WisTrio LPWAN Tracker, you should install the LoRa antenna first. Not doing so might damage the board.
- Using a standard Micro - USB Cable, connect your RAK815 WisTrio LPWAN Tracker to your computer.
If this is your first time to connecting your RAK815 WisTrio LPWAN Tracker to your computer, it should automatically download the USB - Serial Port Chip CP2102 for them to communicate properly. Make sure to have internet access if you want such automatic installation to be successful. If such process fails, re-plug your Micro - USB cord and proceed to the next step.
- Go to your Device Manager by pressing : Windows + R and type
devmgmt.mscor search in Start Menu or right click "My Computer" or "This PC" and click Manage. Look for Other Devices.
Figure 1: Missing Driver for the RAK815 WisTrio LPWAN Tracker- Under the "Other devices" drop-down list, an unknown USB2.0-Serial driver must appear. Right click on it and choose "Search automaticaLly for updated driver software". Again, before doing so, make sure to have internet access, or it will fail.
Figure 1: Automatic Driver Installation via Internet- Wait for it to automatically download and install the missing driver. Once installation is done, "Silicon Labs CP210x USB to UART Bridge" must appear in the Ports (COM & LPT) drop-down list. COM port associated with the driver as it will be used in the succeeding steps. For this sample process, the COM Port used by the USB - Serial Port Chip CP2102 driver is COM41.
Figure 1: USB - Serial Port Chip CP2102 Driver Successfully InstalledIn case the previous measures mentioned beforehand do not install the needed driver, go to the USB - Serial Port Chip CP2102 website to manually download and install it.
Now, you have successfully interfaced your RAK815 WisTrio LPWAN Tracker with your computer.
Configuring the LoRaWAN
Project Structure
Because IAR 8.11 and Keil5 has similar project structure, you will be using the IAR 8.11 structure throughout the configuration settings. Visit the IAR Embedded Workbench IDE website to know more.
Figure 1: IAR Project StructureApplication Switch
There are three application cases in the GitHub Open Source projects. You only need to replace the main.c and app_lora.c files in the project to switch between different applications.
Figure 1: Switching Applications in IARThe applications are made available in the open-source code by clicking the following file directory: RAK813-BreakBoard-master>>Doc>>hex
Figure 1: Application Demo DirectoryConfiguration of LoRaWAN Parameters
This Board can be connected to LoRaWAN through Over-the-Air-Activation (OTAA) or Activation-By-Personalization (ABP) activation modes. It can be modified through the Commissioning.h file available in the open-source code.
Figure 1: Configuring LoRaWAN Activation Mode in OTAAEach mode has the following parameters:
- For OTAA
- Device EUI
- Application EUI
- App Key
- For ABP
- Device Address
- Network Address
- Application Key
Figure 1: Configuring Application ParametersModify LoRaWAN Region
The open-source code is based on LoRaWAN 1.0.2 modified, so the supported regions are EU868, US915, AS923, AU915, IN865, and KR920. If you want to modify the region, you can modify the macro definition.
Figure 1: Configuring Application Parameters
Figure 1: Modifying the LoRaWAN Region in KeilNow, you now have successfully modified your LoRaWAN parameters.