SX126x-Arduino  1.3.0
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 #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_US915_HYBRID)
40 #define REGION_US915
41 #endif
42 
48 #define LORAWAN_DUTYCYCLE_ON true
49 #define LORAWAN_DUTYCYCLE_OFF false
53 #define LORAWAN_PUBLIC_NETWORK true
54 #define LORAWAN_PRIVAT_NETWORK false
58 #define LORAWAN_ADR_ON true
59 #define LORAWAN_ADR_OFF false
65 #define STATIC_DEVICE_EUI 1
66 
71 #define LORAWAN_DEVICE_EUI \
72  { \
73  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 \
74  }
75 
78 #define LORAWAN_APPLICATION_EUI \
79  { \
80  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 \
81  }
82 
85 #define LORAWAN_APPLICATION_KEY \
86  { \
87  0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C \
88  }
89 
92 #define LORAWAN_NETWORK_ID (uint32_t)0
93 
100 #define STATIC_DEVICE_ADDRESS 1
101 
108 #define LORAWAN_DEVICE_ADDRESS (uint32_t)0x00000000
109 
112 #define LORAWAN_NWKSKEY \
113  { \
114  0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C \
115  }
116 
119 #define LORAWAN_APPSKEY \
120  { \
121  0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C \
122  }
123 };
124 #endif // __LORA_COMMISSIONING_H__