light sensor
Dependencies: X_NUCLEO_IKS01A1 LoRaWAN-lib SX1276Lib mbed
Fork of LoRaWAN-SX1276-Application-Demo by
app/Comissioning.h@6:25f847c99aa2, 2017-09-09 (annotated)
- Committer:
- ubhat
- Date:
- Sat Sep 09 00:26:19 2017 +0000
- Revision:
- 6:25f847c99aa2
- Parent:
- 5:f04a6f68e159
Changed packet format to Senet Packet Format for numeric stream on M2X
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ubhat | 0:42863a11464a | 1 | /* |
ubhat | 0:42863a11464a | 2 | / _____) _ | | |
ubhat | 0:42863a11464a | 3 | ( (____ _____ ____ _| |_ _____ ____| |__ |
ubhat | 0:42863a11464a | 4 | \____ \| ___ | (_ _) ___ |/ ___) _ \ |
ubhat | 0:42863a11464a | 5 | _____) ) ____| | | || |_| ____( (___| | | | |
ubhat | 0:42863a11464a | 6 | (______/|_____)_|_|_| \__)_____)\____)_| |_| |
ubhat | 0:42863a11464a | 7 | (C)2015 Semtech |
ubhat | 0:42863a11464a | 8 | |
ubhat | 0:42863a11464a | 9 | Description: End device comissioning parameters |
ubhat | 0:42863a11464a | 10 | |
ubhat | 0:42863a11464a | 11 | License: Revised BSD License, see LICENSE.TXT file include in the project |
ubhat | 0:42863a11464a | 12 | |
ubhat | 0:42863a11464a | 13 | Maintainer: Miguel Luis and Gregory Cristian |
ubhat | 0:42863a11464a | 14 | */ |
ubhat | 0:42863a11464a | 15 | #ifndef __LORA_COMISSIONING_H__ |
ubhat | 0:42863a11464a | 16 | #define __LORA_COMISSIONING_H__ |
ubhat | 0:42863a11464a | 17 | |
ubhat | 0:42863a11464a | 18 | /*! |
ubhat | 0:42863a11464a | 19 | * When set to 1 the application uses the Over-the-Air activation procedure |
ubhat | 0:42863a11464a | 20 | * When set to 0 the application uses the Personalization activation procedure |
ubhat | 0:42863a11464a | 21 | */ |
ubhat | 0:42863a11464a | 22 | #define OVER_THE_AIR_ACTIVATION 1 |
ubhat | 0:42863a11464a | 23 | |
ubhat | 6:25f847c99aa2 | 24 | // Set to 1 for Sensor; Set to 0 for LED |
ubhat | 6:25f847c99aa2 | 25 | #define SENSOR 1 |
ubhat | 6:25f847c99aa2 | 26 | |
ubhat | 0:42863a11464a | 27 | /*! |
ubhat | 0:42863a11464a | 28 | * Indicates if the end-device is to be connected to a private or public network |
ubhat | 0:42863a11464a | 29 | */ |
ubhat | 0:42863a11464a | 30 | #define LORAWAN_PUBLIC_NETWORK true |
ubhat | 0:42863a11464a | 31 | |
ubhat | 0:42863a11464a | 32 | #if( OVER_THE_AIR_ACTIVATION != 0 ) |
ubhat | 0:42863a11464a | 33 | |
ubhat | 6:25f847c99aa2 | 34 | #if( SENSOR == 1 ) |
ubhat | 0:42863a11464a | 35 | /*! |
ubhat | 0:42863a11464a | 36 | * Mote device IEEE OUI (big endian) |
ubhat | 0:42863a11464a | 37 | * \remark This is unique to a company or organization |
ubhat | 0:42863a11464a | 38 | */ |
ubhat | 6:25f847c99aa2 | 39 | #define IEEE_OUI 0x00, 0x25, 0x0C |
ubhat | 0:42863a11464a | 40 | |
ubhat | 0:42863a11464a | 41 | /*! |
ubhat | 0:42863a11464a | 42 | * Mote device IEEE EUI (big endian) |
ubhat | 0:42863a11464a | 43 | * |
ubhat | 0:42863a11464a | 44 | * \remark In this application, if the last 4 bytes are all 0, then the 32 bit address is automatically generated using a pseudo random generator seeded with a value derived from BoardUniqueId value |
ubhat | 0:42863a11464a | 45 | * If provided by user, e.g. { IEEE_OUI, 0x00, 0x00, 0x00, 0xFF, 0x01 }, then this value is used by the application |
ubhat | 0:42863a11464a | 46 | */ |
ubhat | 6:25f847c99aa2 | 47 | #define LORAWAN_DEVICE_EUI { IEEE_OUI, 0x01, 0x00, 0x00, 0x10, 0xE9 } |
ubhat | 0:42863a11464a | 48 | |
ubhat | 0:42863a11464a | 49 | /*! |
ubhat | 0:42863a11464a | 50 | * Application IEEE EUI (big endian) |
ubhat | 0:42863a11464a | 51 | */ |
ubhat | 6:25f847c99aa2 | 52 | #define LORAWAN_APPLICATION_EUI { 0x00, 0x25, 0x0C, 0x00, 0x00, 0x01, 0x00, 0x01 } |
ubhat | 0:42863a11464a | 53 | |
ubhat | 0:42863a11464a | 54 | /*! |
ubhat | 0:42863a11464a | 55 | * AES encryption/decryption cipher application key |
ubhat | 0:42863a11464a | 56 | */ |
ubhat | 6:25f847c99aa2 | 57 | #define LORAWAN_APPLICATION_KEY {0x54,0xBC,0x37,0x85,0xB7,0x5B,0x3B,0x3C,0x87,0x3E,0xB0,0x16,0x96,0xBD,0xE2,0x7D} |
ubhat | 6:25f847c99aa2 | 58 | |
ubhat | 6:25f847c99aa2 | 59 | #else |
ubhat | 6:25f847c99aa2 | 60 | |
ubhat | 6:25f847c99aa2 | 61 | /*! |
ubhat | 6:25f847c99aa2 | 62 | * Mote device IEEE OUI (big endian) |
ubhat | 6:25f847c99aa2 | 63 | * \remark This is unique to a company or organization |
ubhat | 6:25f847c99aa2 | 64 | */ |
ubhat | 6:25f847c99aa2 | 65 | #define IEEE_OUI 0x00, 0x25, 0x0C |
ubhat | 6:25f847c99aa2 | 66 | |
ubhat | 6:25f847c99aa2 | 67 | /*! |
ubhat | 6:25f847c99aa2 | 68 | * Mote device IEEE EUI (big endian) |
ubhat | 6:25f847c99aa2 | 69 | * |
ubhat | 6:25f847c99aa2 | 70 | * \remark In this application, if the last 4 bytes are all 0, then the 32 bit address is automatically generated using a pseudo random generator seeded with a value derived from BoardUniqueId value |
ubhat | 6:25f847c99aa2 | 71 | * If provided by user, e.g. { IEEE_OUI, 0x00, 0x00, 0x00, 0xFF, 0x01 }, then this value is used by the application |
ubhat | 6:25f847c99aa2 | 72 | */ |
ubhat | 6:25f847c99aa2 | 73 | #define LORAWAN_DEVICE_EUI { IEEE_OUI, 0x01, 0x00, 0x00, 0x10, 0xEA } |
ubhat | 6:25f847c99aa2 | 74 | |
ubhat | 6:25f847c99aa2 | 75 | /*! |
ubhat | 6:25f847c99aa2 | 76 | * Application IEEE EUI (big endian) |
ubhat | 6:25f847c99aa2 | 77 | */ |
ubhat | 6:25f847c99aa2 | 78 | #define LORAWAN_APPLICATION_EUI { 0x00, 0x25, 0x0C, 0x00, 0x00, 0x01, 0x00, 0x01 } |
ubhat | 6:25f847c99aa2 | 79 | |
ubhat | 6:25f847c99aa2 | 80 | /*! |
ubhat | 6:25f847c99aa2 | 81 | * AES encryption/decryption cipher application key |
ubhat | 6:25f847c99aa2 | 82 | */ |
ubhat | 6:25f847c99aa2 | 83 | #define LORAWAN_APPLICATION_KEY {0x8B,0x51,0x41,0xF8,0x41,0x76,0x7C,0xF4,0x61,0x60,0x74,0x8F,0xA0,0x71,0x92,0x3B} |
ubhat | 6:25f847c99aa2 | 84 | |
ubhat | 6:25f847c99aa2 | 85 | #endif |
ubhat | 0:42863a11464a | 86 | |
ubhat | 0:42863a11464a | 87 | #else |
ubhat | 0:42863a11464a | 88 | |
ubhat | 0:42863a11464a | 89 | /*! |
ubhat | 0:42863a11464a | 90 | * Device address on the network (big endian) |
ubhat | 0:42863a11464a | 91 | * |
ubhat | 0:42863a11464a | 92 | * \remark In this application, if the value is 0, then the address is automatically generated using a pseudo random generator seeded with a value derived from BoardUniqueId value |
ubhat | 0:42863a11464a | 93 | * If provided by user, e.g. 0x78563412, then this value is used by the application |
ubhat | 0:42863a11464a | 94 | */ |
ubhat | 0:42863a11464a | 95 | #define LORAWAN_DEVICE_ADDRESS ( uint32_t )0x0 |
ubhat | 0:42863a11464a | 96 | |
ubhat | 0:42863a11464a | 97 | /*! |
ubhat | 0:42863a11464a | 98 | * AES encryption/decryption cipher network session key |
ubhat | 0:42863a11464a | 99 | */ |
ubhat | 0:42863a11464a | 100 | #define LORAWAN_NWKSKEY { 0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C } |
ubhat | 0:42863a11464a | 101 | |
ubhat | 0:42863a11464a | 102 | /*! |
ubhat | 0:42863a11464a | 103 | * AES encryption/decryption cipher application session key |
ubhat | 0:42863a11464a | 104 | */ |
ubhat | 0:42863a11464a | 105 | #define LORAWAN_APPSKEY { 0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C } |
ubhat | 0:42863a11464a | 106 | |
ubhat | 0:42863a11464a | 107 | #endif |
ubhat | 0:42863a11464a | 108 | |
ubhat | 0:42863a11464a | 109 | |
ubhat | 0:42863a11464a | 110 | #endif // __LORA_COMISSIONING_H__ |