The purpose of this page is to provide an easy to use generator for the IBM LMIC (LoRaWAN-MAC-in-C) library, slightly modified to run in the Arduino environment, allowing for the use of SX1272, SX1276 transceivers and compatible modules (such as some HopeRF RFM9x modules and the Murata LoRa modules.)
In LoRaWAN consoles, EUI keys and IDs for an end device can often be displayed and copied in different formats. These keys and IDs need to be configured on the end device (aka node) and are often hard-coded in the source code. If the keys and IDs do not match the format expected by the LMIC library then transmissions and whatnot are not going to function as expected
When using an Arduino LMIC library (e.g. MCCI LMIC) use the following formats for the LoRaWAN EUI keys and IDs:
Information about the LoRaWAN protocol is summarized in LoRaWAN-at-a-glance and here. Full information is available from the LoRa Alliance.
Key/ID | Description | Format | Custom C++ type | Used for activation type |
---|---|---|---|---|
DevEUI | end-device identifier | lsb / little-endian | u1_t[8] | OTAA |
AppEUI | application identifier | lsb / little-endian | u1_t[8] | OTAA |
AppKey | application key | msb / big-endian | u1_t[16] | OTAA |
DevAddr | end-device address | u4_t | ABP | |
NwkSKey | network session key | msb / big-endian | u1_t[16] | ABP |
AppSKey | application session key | msb / big-endian | u1_t[16] | ABP |