Connect “ESP32 + LoRa” to LoRaWAN Server
Preparation
A ESP32 + LoRa node that’s configured and uploaded code, as described in the previous topic:: “ESP32 + LoRa” Node Preparation & Config Parameters
A LoRa server, We recommend the following three:
A Gateway that matches the LoRaWAN region of the node, and already is connected to the lora server. If you are using Heltec Gateway, you can find out how to connect to the server in the Heltec Gateway documentation
Connect to LoRaWAN Server
Before that, make sure there is a LoRa Gateway active in your server.
Connect to TTN/TTS
Log in to the TTS server web page, register a new “Applications” .
Create application
You can freely fill in the Application information in the red box, and click
Creat application
when you’re done.Register an end device.
Choose
Enter end device specifics manually
, Select the frequency band corresponding to the node,The LoRaWAN version is chosen to be 1.0.2 B
The
Show advanced activation, LoRaWAN class and cluster settings
option has some other LoRaWAN parameter Settings such as OTAA/ABP.CLASS A/C, these parameters default to OTAA and CLASS A, in general need to be consistent with the node Settings.Fill in JoinEUI and click confirm.
Tip
In code or some application products, JoinEUI is represented as AppEUI.
Fill in DevEUI and AppKey.
Tip
The End device ID is automatically generated when you fill in DevEUI.
Click to register.
After registration is complete, if all is well, you will see the device active.
Connect to ChirpStack
Register a new device in ChirpStack’s “Applications” page. Enter the device name, description, DevEUI. Select Device-profile.
Enter the Application key of the device.
After registration is complete, if all is well, you will see the device active.
Manual registration on snapemu
Enter configuration mode to get device-related registration information.
Log into your account on *platform.snapemu.com*, click device
, CREATE A NEW DEVICE
.
If you’re using an APP,click +
,select *input
.*
Fill in the device information.
After registration is complete, if all is well, you will see the device active.
Important Hints
Please double check the following two things:
The LoRaWAN parameters is the same as server!
The listening frequency of your LoRa Gateway is the same as ESP32 LoRa node’s sending frequency. We strictly follow LoRaWAN™ 1.0.2 Regional Parameters rB;