Okay, so now that our LoRaWAN Server is ready, we'll be able to configure our Private Network, and for 1
that we'll use exactly the same four steps that we've explained earlier. 2
The first step is the Gateway configuration. 3
It tells the Gateway how to reach the Network Server. 4
The second step is the Gateway registration, because only a registered Gateway is allowed to talk to 5
the Network Server. 6
And for the third step, we're going to register our end-device on the Network Server. 7
I'm going to do it quickly because we've done it already with TTN, which is the community edition of 8
The Things Stack. 9
And it's exactly the same process. 10
And finally, the fourth step is the device configuration. 11
All right. 12
Let's start with the first step, the Gateway registration. 13
Our The Things Stack Server listens on Port 1700. 14
We could also use Basic Station packet forwarder, but again, I will do it in the easy way and keep 15
the UDP Semtech packet forwarder for this demonstration. 16
As we said earlier, the service in charge of this is called the Gateway Server. 17
So in our case we need to configure the Gateway to send its LoRaWAN data to the address 18
tts.univ-lorawan.fr on Port 1700. Depending on the Gateway we have, 19
there are several options to configure it. 20
In my case, in the gateway configuration web page, I change the destination address. 21
I save the settings and that's it. 22
First step is done. 23
Okay, but just before leaving this configuration page, I'm just going to copy the Gateway EUI because 24
I will need it in a few seconds for the Gateway Registration. 25
Now I go back on The Things Stack Server for the second step. 26
I'm going to register my Gateway. 27
We've done it already, so please go back on the corresponding video to see the process in detail. 28
From the console we go on the Gateway section. 29
We hit the register Gateway button and we enter a new page asking us the Gateway EUI and frequency plan. 30
I hit the button "Register gateway". 31
And here we go. 32
We're done with the Gateway Registration part. 33
Okay, so we're done with the second step. 34
So now we need to register an end-device on the Network Server. 35
That is the third step. From the console, 36
we go on the "Applications" section, we create an application training-usmb and we validate. In this application, 37
I'm going to manually register an OTAA end-device. 38
So in my application, I click on "Register end-device", I select the frequency plan and the LoRaWAN version. 39
And I provide the AppEUI/JoinEUI. 40
I use zero as I'm not using a Join Server. 41
Then as usual I provide my DevEUI and I generate an AppKey. 42
This is the same parameters that I will set up in my device. 43
And to finish the process I click on "Register end-device". 44
Great. 45
So now the last step is the device configuration. 46
I just need to configure my end-device with the OTAA activation mode. 47
The same DevEUI, the same AppKey and the same JoinEUI/AppEUI. 48
And when it's done, I start my end-device. 49
If we go in the live data section. 50
We can see the frames decrypted in the Application Server. 51
Excellent. 52
Our LoRaWAN Server works perfectly. 53
Again, we were a bit fast for this last demonstration because we've done it before with many more details. 54
So if you want more information, go back in the corresponding video we did with the Thing Network, 55
that's exactly the same process. 56
There might be some tiny changes because obviously this is a continuously improving project, but the 57
idea remains the same. 58
Please give it a try and tell us if you've managed to do it.