SX126x-Arduino  2.0.1
Commissioning.h
Go to the documentation of this file.
1 /*
2  / _____) _ | |
3 ( (____ _____ ____ _| |_ _____ ____| |__
4  \____ \| ___ | (_ _) ___ |/ ___) _ \
5  _____) ) ____| | | || |_| ____( (___| | | |
6 (______/|_____)_|_|_| \__)_____)\____)_| |_|
7  (C)2015 Semtech
8 
9 Description: End device commissioning parameters
10 
11 License: Revised BSD License, see LICENSE.TXT file include in the project
12 
13 Maintainer: Miguel Luis and Gregory Cristian
14 */
15 #ifndef __LORA_COMMISSIONING_H__
16 #define __LORA_COMMISSIONING_H__
17 
18 extern "C"
19 {
39 // For transistion time from the old library (region specific) to the new library (support of all regions)
40 // We throw an error here if any REGION is defined.
41 #if defined(REGION_AS923) || defined(REGION_AU915) || defined(REGION_CN470) || defined(REGION_CN779) || defined(REGION_EU433) || defined(REGION_EU868) || defined(REGION_IN865) || defined(REGION_KR920) || defined(REGION_US915) || defined(REGION_AS923_1) || defined(REGION_AS923_2) || defined(REGION_AS923_3) || defined(REGION_RU864)
42 #error "SX126x-Arduino V2.0 does support all LoRaWAN regions without definition of 'REGION_XXYYY.\n\nPlease read detailed information how to use it on https://github.com/beegee-tokyo/SX126x-Arduino/blob/master/README_V2.md"
43 #endif
44 
45 #define REGION_AS923
46 #define REGION_AU915
47 #define REGION_CN470
48 #define REGION_CN779
49 #define REGION_EU433
50 #define REGION_EU868
51 #define REGION_IN865
52 #define REGION_KR920
53 #define REGION_US915
54 #define REGION_AS923_1
55 #define REGION_AS923_2
56 #define REGION_AS923_3
57 #define REGION_RU864
58 
64 #define LORAWAN_DUTYCYCLE_ON true
65 #define LORAWAN_DUTYCYCLE_OFF false
69 #define LORAWAN_PUBLIC_NETWORK true
70 #define LORAWAN_PRIVAT_NETWORK false
74 #define LORAWAN_ADR_ON true
75 #define LORAWAN_ADR_OFF false
81 #define STATIC_DEVICE_EUI 1
82 
87 #define LORAWAN_DEVICE_EUI \
88  { \
89  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 \
90  }
91 
94 #define LORAWAN_APPLICATION_EUI \
95  { \
96  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 \
97  }
98 
101 #define LORAWAN_APPLICATION_KEY \
102  { \
103  0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C \
104  }
105 
108 #define LORAWAN_NETWORK_ID (uint32_t)0
109 
116 #define STATIC_DEVICE_ADDRESS 1
117 
124 #define LORAWAN_DEVICE_ADDRESS (uint32_t)0x00000000
125 
128 #define LORAWAN_NWKSKEY \
129  { \
130  0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C \
131  }
132 
135 #define LORAWAN_APPSKEY \
136  { \
137  0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C \
138  }
139 };
140 #endif // __LORA_COMMISSIONING_H__