diff --git a/src/Comissioning_mydev.h b/src/Comissioning_mydev.h index ce91210..3b25b1b 100644 --- a/src/Comissioning_mydev.h +++ b/src/Comissioning_mydev.h @@ -26,15 +26,10 @@ Maintainer: Miguel Luis and Gregory Cristian */ #define LORAWAN_PUBLIC_NETWORK true -/*! - * IEEE Organizationally Unique Identifier ( OUI ) (big endian) - */ -//#define IEEE_OUI 0x00, 0x00, 0x00 - /*! * 64 bit end-device identifier, EUI-64 (unique) * The EUIs are used to identify all of the (virtual) parts of the LoRaWAN inside the backend server. - * + * */ #define LORAWAN_DEVICE_EUI { 0x00, 0x80, 0x77, 0x31, 0x37, 0xB4, 0x8E, 0xE1 } /*! @@ -42,15 +37,6 @@ Maintainer: Miguel Luis and Gregory Cristian */ #define LORAWAN_APPLICATION_EUI { 0x70, 0xB3, 0xD5, 0x7E, 0xF0, 0x00, 0x63, 0x66 } -/*! - * AES encryption/decryption cipher application key - */ -#define LORAWAN_APPLICATION_KEY { 0x70, 0xB6, 0xB6, 0xE3, 0x2B, 0xF2, 0x05, 0x37, 0x37, 0x89, 0x2A, 0xAE, 0x79, 0xE0, 0xD7, 0x73 } -/*! - * Current network ID - */ -#define LORAWAN_NETWORK_ID ( uint32_t )0x13 - /*! * Device address on the network (big endian) * This device address is a non-unique 32-bit adres @@ -60,14 +46,26 @@ Maintainer: Miguel Luis and Gregory Cristian #define LORAWAN_DEVICE_ADDRESS ( uint32_t )0x2601195F /*! + * Network Session Key * AES encryption/decryption cipher network session key * he NwkSKey is known by the network and the device and is used to validate the integrity of each message by its Message Integrity Code (MIC) (AES-CMAC) */ #define LORAWAN_NWKSKEY { 0x75, 0x44, 0x5D, 0xCB, 0x6B, 0xD8, 0xA1, 0xD4, 0xC5, 0x25, 0x72, 0xC1, 0x46, 0xC4, 0x73, 0x3C } /*! + * Application Session Key * AES encryption/decryption cipher application session key * The AppSKey is used for end-to-end encryption of the frame payload. (AES-128) */ #define LORAWAN_APPSKEY { 0xA3, 0xC7, 0x8F, 0x27, 0x2A, 0x26, 0xF3, 0x9D, 0xD2, 0x59, 0x5D, 0x3A, 0x1F, 0x6D, 0xFE, 0x25 } + +/*! + * AES encryption/decryption cipher application key + */ +#define LORAWAN_APPLICATION_KEY { 0x70, 0xB6, 0xB6, 0xE3, 0x2B, 0xF2, 0x05, 0x37, 0x37, 0x89, 0x2A, 0xAE, 0x79, 0xE0, 0xD7, 0x73 } +/*! + * Current network ID + */ +#define LORAWAN_NETWORK_ID ( uint32_t )0x13 + #endif // __LORA_COMMISSIONING_H__