Add mDot to Network Follow
This article will discuss how to add an mDot to a LoRaWAN network.
Requirements
Before you add your mDot, you need the following.
- KAGE Portal account
- an mDot
- MTMDK (Micro Developer Board)
- firmware uploaded and configured.
- deveui
- appeui
- appkey
DevEUI
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
AT+DI?
App EUI
The Network ID (App EUI in LoRaMac) can be set using to at command
# Get the appeui
AT+NI?
# Set the appeui
AT+NI=0,00:11:22:33:44:55:66:77
![]() |
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. |
App Key
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
AT+NK?
# Set the appkey
AT+NK=0,88:99:AA:BB:CC:DD:EE:FF:00:11:22:33:44:55:66:77
![]() |
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.
Comments
0 comments
Please sign in to leave a comment.