SX126x-Arduino
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 
43 // /**@brief Indicate if a single channel gateway is the receiver
44 // * When set to 1 the application does randomly change channels on each transmission
45 // * When set to 0 the application uses always the base channel
46 // */
47 // #define DO_CHANNEL_SWITCH 0
48 
49 // /**@brief Channel to be used if we are talking to a single channel gateway
50 // * Check the file CHANNELS.MD to find out which channel corresponds to which frequency
51 // * in a specific region
52 // * Defaults to channel 0
53 // */
54 // #define GATEWAY_SINGLE_CHANNEL 0
55 
56 // /**@brief Datarate to be used if we are talking to a single channel gateway
57 // * Check the file Region.h to find out which datarate corresponds to which SF
58 // * and bandwidth in a specific region
59 // * Defaults to channel DR_3
60 // */
61 // #define GATEWAY_SINGLE_DATARATE DR_3
62 
68 #define OVER_THE_AIR_ACTIVATION 0
69 
72 #define LORAWAN_PUBLIC_NETWORK true
73 
78 #define STATIC_DEVICE_EUI 1
79 
84 #define LORAWAN_DEVICE_EUI \
85  { \
86  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 \
87  }
88 
91 #define LORAWAN_APPLICATION_EUI \
92  { \
93  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 \
94  }
95 
98 #define LORAWAN_APPLICATION_KEY \
99  { \
100  0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C \
101  }
102 
105 #define LORAWAN_NETWORK_ID (uint32_t)0
106 
113 #define STATIC_DEVICE_ADDRESS 1
114 
121 #define LORAWAN_DEVICE_ADDRESS (uint32_t)0x00000000
122 
125 #define LORAWAN_NWKSKEY \
126  { \
127  0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C \
128  }
129 
132 #define LORAWAN_APPSKEY \
133  { \
134  0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C \
135  }
136 };
137 #endif // __LORA_COMMISSIONING_H__