RP

Dependencies:   mbed SX1272Lib

Committer:
montagny
Date:
Tue Mar 06 20:34:24 2018 +0000
Revision:
10:b0d9dccd09ef
Parent:
9:443b48f76c2e
Child:
13:4429cb012011
In main.cpp : AppData[0] = num carte nucl?o

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mluis 0:45496a70a8a5 1 /*
mluis 0:45496a70a8a5 2 / _____) _ | |
mluis 0:45496a70a8a5 3 ( (____ _____ ____ _| |_ _____ ____| |__
mluis 0:45496a70a8a5 4 \____ \| ___ | (_ _) ___ |/ ___) _ \
mluis 0:45496a70a8a5 5 _____) ) ____| | | || |_| ____( (___| | | |
mluis 0:45496a70a8a5 6 (______/|_____)_|_|_| \__)_____)\____)_| |_|
mluis 0:45496a70a8a5 7 (C)2015 Semtech
mluis 0:45496a70a8a5 8
mluis 5:62862ef9480b 9 Description: End device commissioning parameters
mluis 0:45496a70a8a5 10
mluis 0:45496a70a8a5 11 License: Revised BSD License, see LICENSE.TXT file include in the project
mluis 0:45496a70a8a5 12
mluis 0:45496a70a8a5 13 Maintainer: Miguel Luis and Gregory Cristian
mluis 0:45496a70a8a5 14 */
mluis 5:62862ef9480b 15 #ifndef __LORA_COMMISSIONING_H__
mluis 5:62862ef9480b 16 #define __LORA_COMMISSIONING_H__
mluis 0:45496a70a8a5 17
montagny 9:443b48f76c2e 18
mluis 0:45496a70a8a5 19 /*!
mluis 0:45496a70a8a5 20 * When set to 1 the application uses the Over-the-Air activation procedure
mluis 0:45496a70a8a5 21 * When set to 0 the application uses the Personalization activation procedure
mluis 0:45496a70a8a5 22 */
montagny 8:99ba7eb13376 23 #define OVER_THE_AIR_ACTIVATION 0
montagny 9:443b48f76c2e 24 /************************************************************************/
montagny 9:443b48f76c2e 25 /**************** Configuration for ABP Activation *********************/
montagny 9:443b48f76c2e 26 /************************************************************************/
mluis 0:45496a70a8a5 27 /*!
mluis 0:45496a70a8a5 28 * Indicates if the end-device is to be connected to a private or public network
mluis 0:45496a70a8a5 29 */
mluis 0:45496a70a8a5 30 #define LORAWAN_PUBLIC_NETWORK true
mluis 0:45496a70a8a5 31
mluis 0:45496a70a8a5 32 /*!
montagny 9:443b48f76c2e 33 * Application IEEE EUI (big endian)
montagny 9:443b48f76c2e 34 */
montagny 9:443b48f76c2e 35 #define LORAWAN_APPLICATION_EUI { 0x70, 0xB3, 0xD5, 0x7E, 0xD0, 0x00, 0xA7, 0x97 }
montagny 9:443b48f76c2e 36
montagny 9:443b48f76c2e 37 /*!
montagny 9:443b48f76c2e 38 * AES encryption/decryption cipher network session key
montagny 9:443b48f76c2e 39 */
montagny 9:443b48f76c2e 40 #define LORAWAN_NWKSKEY { 0x84, 0xA9, 0x6F, 0xE7, 0x2D, 0x4D, 0x31, 0xFC, 0x01, 0x50, 0xD4, 0x4B, 0x7A, 0xB1, 0xFC, 0x01 }
montagny 9:443b48f76c2e 41 /*!
montagny 9:443b48f76c2e 42 * AES encryption/decryption cipher application session key
montagny 9:443b48f76c2e 43 */
montagny 9:443b48f76c2e 44 #define LORAWAN_APPSKEY { 0xCC, 0xAB, 0xE8, 0x66, 0x38, 0xCF, 0x39, 0x76, 0x39, 0x9A, 0xF8, 0x6D, 0x58, 0x76, 0x87, 0x01 }
montagny 9:443b48f76c2e 45
montagny 9:443b48f76c2e 46 /*!
montagny 9:443b48f76c2e 47 * Device address on the network (big endian)
montagny 9:443b48f76c2e 48 */
montagny 9:443b48f76c2e 49 #define LORAWAN_DEVICE_ADDRESS ( uint32_t )0x26011759
montagny 9:443b48f76c2e 50 /************************************************************************/
montagny 9:443b48f76c2e 51 /*************** End Configuration for APB Activation ******************/
montagny 9:443b48f76c2e 52 /************************************************************************/
montagny 9:443b48f76c2e 53
montagny 9:443b48f76c2e 54
montagny 9:443b48f76c2e 55 /*!
mluis 3:3152aa75c58d 56 * IEEE Organizationally Unique Identifier ( OUI ) (big endian)
mluis 7:5077515c163b 57 * \remark This is unique to a company or organization
mluis 3:3152aa75c58d 58 */
mluis 3:3152aa75c58d 59 #define IEEE_OUI 0x11, 0x22, 0x33
mluis 3:3152aa75c58d 60
mluis 3:3152aa75c58d 61 /*!
mluis 0:45496a70a8a5 62 * Mote device IEEE EUI (big endian)
mluis 0:45496a70a8a5 63 */
montagny 8:99ba7eb13376 64 #define LORAWAN_DEVICE_EUI { 0x00, 0x9A, 0xD1, 0x8B, 0x92, 0x7C, 0xF1, 0x6F }
mluis 0:45496a70a8a5 65
mluis 0:45496a70a8a5 66 /*!
mluis 0:45496a70a8a5 67 * AES encryption/decryption cipher application key
mluis 0:45496a70a8a5 68 */
mluis 0:45496a70a8a5 69 #define LORAWAN_APPLICATION_KEY { 0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C }
mluis 0:45496a70a8a5 70
mluis 0:45496a70a8a5 71 /*!
mluis 0:45496a70a8a5 72 * Current network ID
mluis 0:45496a70a8a5 73 */
mluis 0:45496a70a8a5 74 #define LORAWAN_NETWORK_ID ( uint32_t )0
mluis 0:45496a70a8a5 75
montagny 9:443b48f76c2e 76 #endif // __LORA_COMMISSIONING_H__
montagny 9:443b48f76c2e 77
montagny 9:443b48f76c2e 78
montagny 9:443b48f76c2e 79 /************************************************************************/
montagny 9:443b48f76c2e 80 /******************* ABP Configuration For Devices STM32 ****************/
montagny 9:443b48f76c2e 81 /************************************************************************/
montagny 9:443b48f76c2e 82
montagny 9:443b48f76c2e 83
montagny 9:443b48f76c2e 84
montagny 9:443b48f76c2e 85 /* stm32lorawan_3
montagny 9:443b48f76c2e 86 #define LORAWAN_APPLICATION_EUI { 0x70, 0xB3, 0xD5, 0x7E, 0xD0, 0x00, 0xA7, 0x97 }
montagny 9:443b48f76c2e 87 #define LORAWAN_NWKSKEY { 0xC2, 0x2E, 0x85, 0x89, 0xC8, 0xF4, 0x87, 0xEE, 0x7D, 0x14, 0x42, 0xDA, 0x5F, 0xAF, 0x8B, 0x18 }
montagny 9:443b48f76c2e 88 #define LORAWAN_APPSKEY { 0xEB, 0x7B, 0xBD, 0xA9, 0xB6, 0x94, 0x28, 0x8F, 0x10, 0x1F, 0xD4, 0x8F, 0x2F, 0xBB, 0xDD, 0x61 }
montagny 9:443b48f76c2e 89 #define LORAWAN_DEVICE_ADDRESS ( uint32_t )0x2601135C
montagny 10:b0d9dccd09ef 90 In main.cpp : AppData[0] = 0x03;
montagny 9:443b48f76c2e 91 */
montagny 9:443b48f76c2e 92
montagny 9:443b48f76c2e 93 /* stm32lorawan_13
montagny 9:443b48f76c2e 94 #define LORAWAN_APPLICATION_EUI { 0x70, 0xB3, 0xD5, 0x7E, 0xD0, 0x00, 0xA7, 0x97 }
montagny 9:443b48f76c2e 95 #define LORAWAN_NWKSKEY { 0x5D, 0xF1, 0x0D, 0xF1, 0x61, 0x43, 0x19, 0xA2, 0x59, 0xA8, 0x5F, 0xDC, 0xAE, 0xBA, 0x8E, 0xA5 }
montagny 9:443b48f76c2e 96 #define LORAWAN_APPSKEY { 0x6B, 0x59, 0x42, 0x77, 0x8F, 0xCE, 0xC6, 0x7D, 0x44, 0x6A, 0x47, 0xF1, 0x10, 0x6F, 0x78, 0x1B }
montagny 9:443b48f76c2e 97 #define LORAWAN_DEVICE_ADDRESS ( uint32_t )0x260112D6
montagny 10:b0d9dccd09ef 98 In main.cpp : AppData[0] = 0x13;
montagny 9:443b48f76c2e 99 */
montagny 9:443b48f76c2e 100
montagny 9:443b48f76c2e 101 /* stm32lorawan_14
montagny 9:443b48f76c2e 102 #define LORAWAN_APPLICATION_EUI { 0x70, 0xB3, 0xD5, 0x7E, 0xD0, 0x00, 0xA7, 0x97 }
montagny 9:443b48f76c2e 103 #define LORAWAN_NWKSKEY { 0x84, 0xA9, 0x6F, 0xE7, 0x2D, 0x4D, 0x31, 0xFC, 0x01, 0x50, 0xD4, 0x4B, 0x7A, 0xB1, 0xFC, 0x01 }
montagny 9:443b48f76c2e 104 #define LORAWAN_APPSKEY { 0xCC, 0xAB, 0xE8, 0x66, 0x38, 0xCF, 0x39, 0x76, 0x39, 0x9A, 0xF8, 0x6D, 0x58, 0x76, 0x87, 0x01 }
montagny 9:443b48f76c2e 105 #define LORAWAN_DEVICE_ADDRESS ( uint32_t )0x26011759
montagny 10:b0d9dccd09ef 106 In main.cpp : AppData[0] = 0x14;
montagny 9:443b48f76c2e 107 */
mluis 0:45496a70a8a5 108
montagny 9:443b48f76c2e 109 /* stm32lorawan_4
montagny 9:443b48f76c2e 110 #define LORAWAN_APPLICATION_EUI { 0x70, 0xB3, 0xD5, 0x7E, 0xD0, 0x00, 0xA7, 0x97 }
montagny 9:443b48f76c2e 111 #define LORAWAN_NWKSKEY { 0x57, 0x58, 0x8C, 0xB0, 0x06, 0x05, 0x94, 0x31, 0x71, 0xD5, 0x54, 0xC2, 0x4B, 0x13, 0x8D, 0x4A }
montagny 9:443b48f76c2e 112 #define LORAWAN_APPSKEY { 0x81, 0xD2, 0xFE, 0x5D, 0x38, 0xC7, 0x85, 0x43, 0xEE, 0x7E, 0x89, 0xA8, 0x64, 0xC7, 0x8C, 0xB9 }
montagny 9:443b48f76c2e 113 #define LORAWAN_DEVICE_ADDRESS ( uint32_t )0x260112C2
montagny 10:b0d9dccd09ef 114 In main.cpp : AppData[0] = 0x04;
montagny 9:443b48f76c2e 115 */
montagny 9:443b48f76c2e 116
montagny 9:443b48f76c2e 117 /* stm32lorawan_10
montagny 9:443b48f76c2e 118 #define LORAWAN_APPLICATION_EUI { 0x70, 0xB3, 0xD5, 0x7E, 0xD0, 0x00, 0xA7, 0x97 }
montagny 9:443b48f76c2e 119 #define LORAWAN_NWKSKEY { 0x20, 0x69, 0x01, 0x5E, 0xDA, 0x86, 0x7F, 0xB3, 0x6D, 0xAF, 0x6F, 0x82, 0xFA, 0x7D, 0xD6, 0x3D }
montagny 9:443b48f76c2e 120 #define LORAWAN_APPSKEY { 0xB4, 0x1D, 0x3F, 0x53, 0x8A, 0x51, 0x2B, 0x82, 0x2A, 0x3E, 0x39, 0x82, 0x7E, 0xD2, 0x20, 0x0D }
montagny 9:443b48f76c2e 121 #define LORAWAN_DEVICE_ADDRESS ( uint32_t )0x26011C9A
montagny 10:b0d9dccd09ef 122 In main.cpp : AppData[0] = 0x10;
montagny 10:b0d9dccd09ef 123 */
mluis 0:45496a70a8a5 124
montagny 9:443b48f76c2e 125 /* stm32lorawan_1
montagny 9:443b48f76c2e 126 #define LORAWAN_APPLICATION_EUI { 0x70, 0xB3, 0xD5, 0x7E, 0xD0, 0x00, 0xA7, 0x97 }
montagny 9:443b48f76c2e 127 #define LORAWAN_NWKSKEY { 0xE3, 0xD9, 0x0A, 0xFB, 0xC3, 0x6A, 0xD4, 0x79, 0x55, 0x2E, 0xFE, 0xA2, 0xCD, 0xA9, 0x37, 0xB9 }
montagny 9:443b48f76c2e 128 #define LORAWAN_APPSKEY { 0xF0, 0xBC, 0x25, 0xE9, 0xE5, 0x54, 0xB9, 0x64, 0x6F, 0x20, 0x8E, 0x1A, 0x8E, 0x3C, 0x7B, 0x24 }
montagny 9:443b48f76c2e 129 #define LORAWAN_DEVICE_ADDRESS ( uint32_t )0x26011AD3
montagny 10:b0d9dccd09ef 130 In main.cpp : AppData[0] = 0x01;
montagny 9:443b48f76c2e 131 */
mluis 0:45496a70a8a5 132
montagny 9:443b48f76c2e 133 /* stm32lorawan_11
montagny 9:443b48f76c2e 134 #define LORAWAN_APPLICATION_EUI { 0x70, 0xB3, 0xD5, 0x7E, 0xD0, 0x00, 0xA7, 0x97 }
montagny 9:443b48f76c2e 135 #define LORAWAN_NWKSKEY { 0x64, 0x3F, 0x24, 0x5D, 0xBF, 0xEC, 0x8E, 0x4D, 0x7D, 0xA0, 0x1F, 0xF2, 0xE3, 0x34, 0x06, 0xE3 }
montagny 9:443b48f76c2e 136 #define LORAWAN_APPSKEY { 0x15, 0xA9, 0x8F, 0xB4, 0x72, 0x05, 0x26, 0x45, 0xE7, 0x27, 0x89, 0x3B, 0x74, 0x22, 0x29, 0x9B }
montagny 9:443b48f76c2e 137 #define LORAWAN_DEVICE_ADDRESS ( uint32_t )0x26011A70
montagny 10:b0d9dccd09ef 138 In main.cpp : AppData[0] = 0x11;
montagny 9:443b48f76c2e 139 */
montagny 9:443b48f76c2e 140