This article will discuss how to add an mDot to a LoRaWAN network.
Before you add your mDot, you need the following.
- KAGE Portal account
- an mDot
- MTMDK (Micro Developer Board)
- firmware uploaded and configured.
Deveui is the identifier of a lora device. Every mDot is assigned one. It is synonymous to a mac address of your computer.
You need this information to register an mDot into your LoRaWAN network.
Open your terminal and launch the your serial program. On a mac use the screen program.
> screen /dev/tty.usbmodem141221 115200
To get the deveui, run this at command.
# Get the deveui
The Network ID (App EUI in LoRaMac) can be set using to at command
# Get the appeui
# Set the appeui
|The first parameter parameter should always be zero, and the second parameter can be any 8 bytes hex values, but the separator needs to be a colon.|
The Network Key (App Key in LoRaMac) can be set using the at command. It is only known to the device and the application. This key is used by the mDot if it is configured as OTAA (Over The Air Activation), and generates the AppSKey (Application Session Key) and NwkSKey (Network Session Key)
# Get the appkey
# Set the appkey
|The first parameter parameter should always be zero, and the second parameter can be any 16 bytes hex values, but the separator needs to be a colon.|
|AppSKey is used to encrypt your application data, while the NwkSKey is used to encrypt the network data e.g. MAC Commands|
Add mDot to LoRaWAN Network
Click here to launch the KAGE Portal and signin.
The following video shows how you can add an mDot to our hosted TTN V3 Stack.