Ra-08 Class B mode application based on LoRaWAN protocol
I. Introduction
This article will explain how to create applications and node devices in the built-in NS of LoRaWAN gateway, configure the Ai-Thinker Ra-08 module to connect to the gateway NS service, and realize data sending and receiving.
Note: This tutorial is only available for gateways that support Class B mode communication.
2. Preparation
1. Access the built-in NS service of LoRaWAN gateway, create/log in a personal account, and complete adding node devices and gateways in the Network Server.
2. Configure radio parameters related to network access and network access content, take CN470 for example.
3. Create a configuration file
The following uses the ClassB mode and OTAA access mode as an example:
4. Create devices
Network Server -> Devices -> Add -> Custom Enter the device name, device EUI, device configuration file, and application key, and click Save & Apply.
5. Equipment information
Make sure that the frequency band used by the device you are using matches the sub-band options used by the gateway.
Recommended by LinkedIn
In the device creation process, you can configure the connection mode OTAA to be used by the device:
Compared with ABP, OTAA has higher security. However, the connection speed of OTAA is slower than that of ABP because of the JoinAccept link.
Use the serial port tool to connect the Ra-08 development board. The default connection configuration is 9600bps, 8, N, 1. Send instructions in turn, and fill the corresponding instructions with the key information we obtained in the previous step.
Use the serial port tool to connect the Ra-08 development board. The default connection configuration is 9600bps, 8, N, 1. Send instructions in turn, and fill the corresponding instructions with the key information we obtained in the previous step.
6. Examples of AT instruction flow in OTAA mode
Network access & Data uplink
Network access success log
7. View logs of the built-in NS server on the gateway
Live Data Live data
After the AT command is executed, if the device is connected to the gateway properly, you can view the device connection log and upstream data on the TTN management page.
Contact: overseas@aithinker.com