Using LoRaWAN without ChirpStack / LNS

Viewed 5

Hi

I'm looking at chirpstack to implement a very simple solution for our devices. We're planning on using multiple Multitech Gateways with concentratord to send Messages via MQTT to our server. We only have uplink traffic and use no special features. Our plan is to have a simple and small solution to decrypt the messages and handle the OTAA join. The complete chirpstack with database and everything is to heavy weight for us. I had a look at the code and it seems a bit complex to extract the necessary parts from the code.
Is there a simple way to use just a binary (without db) as network server and forward the decoded data to our database and get the join-keys from our database as well?
We plan on only filtering by application id, therefore need no registration for the gateways etc.
Can someone hint me in the right direction?

1 Answers

Our plan is to have a simple and small solution to decrypt the messages and handle the OTAA join

This will probably get more complex than you think. A LNS stores the state of each device (e.g. mac settings) and therefore needs a database for storage and retrieval. In your network you might have devices implementing different regional parameters revision implementations, as well as different mac-versions. This is all handled by ChirpStack.

Is there a simple way to use just a binary (without db) as network server and forward the decoded data to our database and get the join-keys from our database as well?

Probably the simplest option would be to use the SQLite version of ChirpStack, that way you do not need a PostgreSQL database. You still need a Redis database however (used for deduplication / distributed locking).