1 /*! 2 * \file Commissioning.h 3 * 4 * \brief End-device commissioning parameters 5 * 6 * \copyright Revised BSD License, see section \ref LICENSE. 7 * 8 * \code 9 * ______ _ 10 * / _____) _ | | 11 * ( (____ _____ ____ _| |_ _____ ____| |__ 12 * \____ \| ___ | (_ _) ___ |/ ___) _ \ 13 * _____) ) ____| | | || |_| ____( (___| | | | 14 * (______/|_____)_|_|_| \__)_____)\____)_| |_| 15 * (C)2013-2020 Semtech 16 * 17 * \endcode 18 */ 19 #ifndef __COMMISSIONING_H__ 20 #define __COMMISSIONING_H__ 21 22 #ifdef __cplusplus 23 extern "C" { 24 #endif 25 26 /*! 27 ****************************************************************************** 28 ********************************** WARNING *********************************** 29 ****************************************************************************** 30 31 The LoRaWAN AES128 keys are stored and provisionned on secure-elements. 32 33 This project providdes a software emulated secure-element. 34 The LoRaWAN AES128 keys SHALL be updated under 35 src/peripherals/<secure-element name>-se\se-identity.h file. 36 37 ****************************************************************************** 38 ****************************************************************************** 39 ****************************************************************************** 40 */ 41 #include "se-identity.h" 42 43 /*! 44 * When set to 1 the application uses the Over-the-Air activation procedure 45 * When set to 0 the application uses the Personalization activation procedure 46 */ 47 #define OVER_THE_AIR_ACTIVATION 1 48 49 /*! 50 * When using ABP activation the MAC layer must know in advance to which server 51 * version it will be connected. 52 */ 53 #define ABP_ACTIVATION_LRWAN_VERSION_V10x 0x01000400 // 1.0.4.0 54 #define ABP_ACTIVATION_LRWAN_VERSION_V11x 0x01010100 // 1.1.1.0 55 56 #define ABP_ACTIVATION_LRWAN_VERSION ABP_ACTIVATION_LRWAN_VERSION_V11x 57 58 /*! 59 * Indicates if the end-device is to be connected to a private or public network 60 */ 61 #define LORAWAN_PUBLIC_NETWORK true 62 63 /*! 64 * Current network ID 65 */ 66 #define LORAWAN_NETWORK_ID ( uint32_t )0 67 68 #ifdef __cplusplus 69 } 70 #endif 71 72 #endif // __COMMISSIONING_H__ 73