Private Chirpstack LoRaWAN Network Server in OptixEdge

Home / FactoryTalk Optix / OptixEdge Advanced Edge Gateway

Description
Getting to know how to deploy a LoRaWAN private network with no internet access and no 4G to retrieve your sensor data! This is done in Optix Edge as a Chirpstack Network Server. You will see how to register a LoraWAN Gateway and also a LoRaWAN sensor. The network server is deployed with Portainer.

Download the yaml file and sample code here:
https://github.com/asqi-carter/chirpstack-docker-Optix-Edge

Contributed by Xavier Florensa – YouTubeLinkedInGitHub


Transcript
(00:01) Hi everyone. If you have seen my last video on how to install a chipstack network server in Optics Edge, now you’re ready to register gateways and sensor. So today I will show you how to first register a gateway on your private Lor one network server without internet needed and also how to register a lot of one sensor.
(00:35) In order to get data from sensor, this goes to the Laura concentrator gateway and through Ethernet UDP port 1,700 you will get the data in your dashboard. So first of all let’s take a look at how is this working. uh we will enter in this UI of the network server. It’s here. This is the address of the optics edge ch is the name of the network server.
(01:15) And here we have a dashboard with uh our gateway that it’s online. We can have also a sensor that it’s active sending data. Uh we can take a look in the gateway. So this is online and it has some frames like here. Can see different frames coming coming up. But when you look at the gateway, you don’t see any data from the sensor since it’s uh encrypted.
(02:03) Then we can go to applications. Here we have our sensor. So here we can see dollar one events like this one. Uh if I click here this is the data it’s sending over L1 network but we should decode this data. I will tell you how. If we take a look this this all the payload JSON object and here we have the data the distance since this is a distance sensor half a meter approximately the battery if I now take the sensor and change its position we have to wait 20 Now this is the half a meter
(03:10) to volume. No. Yes. This is the next value. So it’s 1 m 800 cm. So I have changed the position of the sensor pointing to the ceiling. Okay. So this is really uh real time each 20 seconds we have the data. So let’s take a look at how to register first the gateway. Here we have our Drago LPS8 gateway. We can take a look at network.
(03:56) uh we give a fixed static IP address in the same range of our redboard server that it’s in the optics h and then on the one protocol we say that this is um custom private one uh the server for the optics edge is in this address and we will port 1,7700 for the communication. So this is all on you have this done you will have your gateway connected and on the other hand concerning the sensors first you have to create an application and once in the application you add the device.
(04:53) Adding the device will ask you for the that AUI and so on. Here we can have this. Uh we also see the device metrics received 100 packets and you could see some details about This is the UI. This is the application origin UI and so on. Okay. There’s also an application key needed. Okay. Here you see the activation and so on.
(05:46) And here the events and Yeah, another thing to do is to to decode the payload because the payload is this one but here it’s difficult to read the distance we are measuring with the sensor to decode you have to go to the device profiles. So each sensor has a device profile. And if we enter here, you go to codec.
(06:19) You can just copy and paste the payload decoder you get from the manufacturer. You can find the payload decoder on the GitHub repository of the manufacturer. And here you have the chirp stack payload decoder. Well, uh this is all. I hope you enjoy this and thank you very much.