|
1 | 1 | /*! |
2 | 2 | * \file Commissioning.h |
3 | 3 | * |
4 | | - * \brief End device commissioning parameters |
| 4 | + * \brief End-device commissioning parameters |
5 | 5 | * |
6 | 6 | * \copyright Revised BSD License, see section \ref LICENSE. |
7 | 7 | * |
|
12 | 12 | * \____ \| ___ | (_ _) ___ |/ ___) _ \ |
13 | 13 | * _____) ) ____| | | || |_| ____( (___| | | | |
14 | 14 | * (______/|_____)_|_|_| \__)_____)\____)_| |_| |
15 | | - * (C)2013-2017 Semtech |
| 15 | + * (C)2013-2020 Semtech |
16 | 16 | * |
17 | 17 | * \endcode |
18 | | - * |
19 | | - * \author Miguel Luis ( Semtech ) |
20 | | - * |
21 | | - * \author Gregory Cristian ( Semtech ) |
22 | 18 | */ |
23 | | -#ifndef __LORA_COMMISSIONING_H__ |
24 | | -#define __LORA_COMMISSIONING_H__ |
| 19 | +#ifndef __COMMISSIONING_H__ |
| 20 | +#define __COMMISSIONING_H__ |
25 | 21 |
|
26 | 22 | /*! |
27 | 23 | ****************************************************************************** |
28 | 24 | ********************************** WARNING *********************************** |
29 | 25 | ****************************************************************************** |
30 | | - The crypto-element implementation supports both 1.0.x and 1.1.x LoRaWAN |
| 26 | + The secure-element implementation supports both 1.0.x and 1.1.x LoRaWAN |
31 | 27 | versions of the specification. |
32 | 28 | Thus it has been decided to use the 1.1.x keys and EUI name definitions. |
33 | 29 | The below table shows the names equivalence between versions: |
|
75 | 71 | #define LORAWAN_PUBLIC_NETWORK true |
76 | 72 |
|
77 | 73 | /*! |
78 | | - * IEEE Organizationally Unique Identifier ( OUI ) (big endian) |
79 | | - * \remark This is unique to a company or organization |
| 74 | + * When set to 1 DevEui is LORAWAN_DEVICE_EUI |
| 75 | + * When set to 0 DevEui is automatically generated by calling |
| 76 | + * BoardGetUniqueId function |
80 | 77 | */ |
81 | | -#define IEEE_OUI 0x00, 0x00, 0x00 |
| 78 | +#define STATIC_DEVICE_EUI 0 |
82 | 79 |
|
83 | 80 | /*! |
84 | | - * Mote device IEEE EUI (big endian) |
| 81 | + * end-device IEEE EUI (big endian) |
85 | 82 | * |
86 | 83 | * \remark In this application the value is automatically generated by calling |
87 | 84 | * BoardGetUniqueId function |
88 | 85 | */ |
89 | | -#define LORAWAN_DEVICE_EUI { IEEE_OUI, 0x00, 0x00, 0x00, 0x00, 0x00 } |
| 86 | +#define LORAWAN_DEVICE_EUI { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } |
90 | 87 |
|
91 | 88 | /*! |
92 | 89 | * App/Join server IEEE EUI (big endian) |
|
116 | 113 | */ |
117 | 114 | #define LORAWAN_NETWORK_ID ( uint32_t )0 |
118 | 115 |
|
| 116 | +/*! |
| 117 | + * When set to 1 DevAdd is LORAWAN_DEVICE_ADDRESS |
| 118 | + * When set to 0 DevAdd is automatically generated using |
| 119 | + * a pseudo random generator seeded with a value derived from |
| 120 | + * BoardUniqueId value |
| 121 | + */ |
| 122 | +#define STATIC_DEVICE_ADDRESS 0 |
| 123 | + |
119 | 124 | /*! |
120 | 125 | * Device address on the network (big endian) |
121 | 126 | * |
|
148 | 153 | */ |
149 | 154 | #define LORAWAN_APP_S_KEY { 0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C } |
150 | 155 |
|
151 | | -#endif // __LORA_COMMISSIONING_H__ |
| 156 | +#endif // __COMMISSIONING_H__ |
0 commit comments