The Things Network
On this page you can read about everything related to The Things Network.
Last updated
On this page you can read about everything related to The Things Network.
Last updated
We used The Things Network to monitor and manipulate the data we received from our mbed-based PCB. More information about The Things Network can be found on their site: https://www.thethingsnetwork.org
We made an application on TTN (The Things Network), and added a new device. Note that you have to make a new device in this application for every individual device/PCB.
This image probably doesn't tell alot but here is our application:
Here you can see one of our devices:
A device had a few keys, these keys are unique for each devide. I think it's obvious that you can't give two PCB's the same keys.
We used OTAA (over-the-air-activation). We use OTAA because it is the preferred and most secure way to connect with The Things Network. Devices perform a join-procedure with the network, during which a dynamic DevAddr
is assigned and security keys are negotiated with the device.
Once the data has been sent via LoRaWAN from our PCB, it ends up in The Things Network. We have to somehow decode our rec eived data (5 bytes) into a form that is easily readable. This is done with the help of a decoder
, which can be found under the 'Payload Formats' tab in the TTN console.
This is the decoder that we used. It is written in JavaScript, and it basically converts the five incomming bytes into a json string.
A possible input could be: 00 15 1B 00 49
, which than translates to: