Config LoRa Parameters
Preparation
Install Arduino IDE. How to install please click here.
Install Heltec nRF32 series Arduino development framework. Installation manual please refer to here.
An Mesh Node.
High quality USB cable.
Configure Parameters
Connect the development board to the computer through USB data cable.
Open the Arduino and in the
Tools
option, select the appropriateBoard
,Port
.
Follow the path shown below to open the LoraWAN demo code.
Fill in DevEu AppEui AppKey in the following figure in the red box in the example format, which will be used in the website registration.
DevEui – Mote device IEEE EUI (big endian), 8 bytes;
AppEui – Application IEEE EUI (big endian), 8 bytes;
AppKey – AES encryption/decryption cipher application key, 16 bytes;
小技巧
This example uses the OTAA pattern as an example, and for the differences in the ABP pattern, please refer to this link: ABP mode
Set LoRaWAN parameter:
① Channel: It takes effect when you select CN470 or US915. The default is 0-7. Please refer to [Channel’s calculation method](LoRaWAN example Sub-Band usage (AU915) — main latest documentation (heltec.org)).
② LoRaMacRegion: LoRaWAN Frequency Plans LoRaWAN Frequency Plans — main latest documentation (heltec.org).
③ DeviceClass: LoRaWAN Operation Mode, you can type Class_A or Class_C.
④ DutyCycle: LoRaWAN uplink transmission interval.
⑤ OTAA/ABP: LoRaWAN access mode, ‘1’ means OTAA, ‘0’ means ABP.
⑥ ADR/DR: ‘true’ means ADR, ‘false’ means DR, how to set DR please refer to “Set DR”.
⑦ TxConfirmed: ‘ture’ means confirmed, ‘false’ means unconfirmed.
⑧ AppPort: LoRaWAN downlink port.
Effective load is here.
备注
Print too much messages may cause the system unstable.
Click
Upload
to upload the code.