Espotel / Mbed 2 deprecated LoRaWAN_ELMO_TxRx_Template

Dependencies:   SX1272lib mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Comissioning.h Source File

Comissioning.h

00001 /*
00002  / _____)             _              | |
00003 ( (____  _____ ____ _| |_ _____  ____| |__
00004  \____ \| ___ |    (_   _) ___ |/ ___)  _ \
00005  _____) ) ____| | | || |_| ____( (___| | | |
00006 (______/|_____)_|_|_| \__)_____)\____)_| |_|
00007     (C)2015 Semtech
00008 Description: End device comissioning parameters
00009 License: Revised BSD License, see LICENSE.TXT file include in the project
00010 Maintainer: Miguel Luis and Gregory Cristian
00011 */
00012 #ifndef __LORA_COMISSIONING_H__
00013 #define __LORA_COMISSIONING_H__
00014 
00015 /*!
00016  * When set to 1 the application uses the Over-the-Air activation procedure
00017  * When set to 0 the application uses the Personalization activation procedure
00018  */
00019 #define OVER_THE_AIR_ACTIVATION                     1
00020 
00021 /*!
00022  * Indicates if the end-device is to be connected to a private or public network
00023  */
00024 #define LORAWAN_PUBLIC_NETWORK                      true
00025 
00026 #if( OVER_THE_AIR_ACTIVATION != 0 )
00027 
00028 /*!
00029  * Mote device IEEE EUI (big endian)
00030  *
00031  * \remark In this application the value is automatically generated by calling
00032  *         BoardGetUniqueId function
00033  */
00034 #define LORAWAN_DEVICE_EUI                          { 0x50, 0x61,0x73,0x69, 0x00, 0x00, 0x00, 0x00 }
00035 
00036 /*!
00037  * Application IEEE EUI (big endian)
00038  */
00039 #define LORAWAN_APPLICATION_EUI                     { 0x00, 0x00, 0x00, 0x00, 0x56, 0x00, 0x00, 0x00 }
00040 
00041 /*!
00042  * AES encryption/decryption cipher application key
00043  */
00044 #define LORAWAN_APPLICATION_KEY                     { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00 }
00045 
00046 #else
00047 
00048 /*!
00049  * Current network ID
00050  */
00051 #define LORAWAN_NETWORK_ID                          ( uint32_t )0
00052 
00053 /*!
00054  * Device address on the network (big endian)
00055  *
00056  * \remark In this application the value is automatically generated using
00057  *         a pseudo random generator seeded with a value derived from
00058  *         BoardUniqueId value
00059  */
00060 #define LORAWAN_DEVICE_ADDRESS                      ( uint32_t )0x00000000
00061 
00062 /*!
00063  * AES encryption/decryption cipher network session key
00064  */
00065 #define LORAWAN_NWKSKEY                             { 0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C }
00066 
00067 /*!
00068  * AES encryption/decryption cipher application session key
00069  */
00070 #define LORAWAN_APPSKEY                             { 0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C }
00071 
00072 #endif
00073 
00074 #endif // __LORA_COMISSIONING_H__