l
Dependencies: mbed LoRaWAN-lib SX1272Lib
Fork of LoRaWAN-demo-72 by
app/Comissioning.h@7:b61a09d8943d, 2016-12-06 (annotated)
- Committer:
- SvenKbach
- Date:
- Tue Dec 06 13:51:36 2016 +0000
- Revision:
- 7:b61a09d8943d
- Parent:
- 6:38d6cc1ff868
No VT100
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mluis | 0:45496a70a8a5 | 1 | /* |
mluis | 0:45496a70a8a5 | 2 | / _____) _ | | |
mluis | 0:45496a70a8a5 | 3 | ( (____ _____ ____ _| |_ _____ ____| |__ |
mluis | 0:45496a70a8a5 | 4 | \____ \| ___ | (_ _) ___ |/ ___) _ \ |
mluis | 0:45496a70a8a5 | 5 | _____) ) ____| | | || |_| ____( (___| | | | |
mluis | 0:45496a70a8a5 | 6 | (______/|_____)_|_|_| \__)_____)\____)_| |_| |
mluis | 0:45496a70a8a5 | 7 | (C)2015 Semtech |
mluis | 0:45496a70a8a5 | 8 | |
mluis | 5:62862ef9480b | 9 | Description: End device commissioning parameters |
mluis | 0:45496a70a8a5 | 10 | |
mluis | 0:45496a70a8a5 | 11 | License: Revised BSD License, see LICENSE.TXT file include in the project |
mluis | 0:45496a70a8a5 | 12 | |
mluis | 0:45496a70a8a5 | 13 | Maintainer: Miguel Luis and Gregory Cristian |
mluis | 0:45496a70a8a5 | 14 | */ |
mluis | 5:62862ef9480b | 15 | #ifndef __LORA_COMMISSIONING_H__ |
mluis | 5:62862ef9480b | 16 | #define __LORA_COMMISSIONING_H__ |
mluis | 0:45496a70a8a5 | 17 | |
mluis | 0:45496a70a8a5 | 18 | /*! |
mluis | 0:45496a70a8a5 | 19 | * When set to 1 the application uses the Over-the-Air activation procedure |
mluis | 0:45496a70a8a5 | 20 | * When set to 0 the application uses the Personalization activation procedure |
mluis | 0:45496a70a8a5 | 21 | */ |
mluis | 0:45496a70a8a5 | 22 | #define OVER_THE_AIR_ACTIVATION 1 |
mluis | 0:45496a70a8a5 | 23 | |
mluis | 0:45496a70a8a5 | 24 | /*! |
mluis | 0:45496a70a8a5 | 25 | * Indicates if the end-device is to be connected to a private or public network |
mluis | 0:45496a70a8a5 | 26 | */ |
mluis | 0:45496a70a8a5 | 27 | #define LORAWAN_PUBLIC_NETWORK true |
mluis | 0:45496a70a8a5 | 28 | |
mluis | 0:45496a70a8a5 | 29 | /*! |
mluis | 3:3152aa75c58d | 30 | * IEEE Organizationally Unique Identifier ( OUI ) (big endian) |
mluis | 3:3152aa75c58d | 31 | */ |
mluis | 3:3152aa75c58d | 32 | #define IEEE_OUI 0x11, 0x22, 0x33 |
mluis | 3:3152aa75c58d | 33 | |
mluis | 3:3152aa75c58d | 34 | /*! |
mluis | 0:45496a70a8a5 | 35 | * Mote device IEEE EUI (big endian) |
mluis | 0:45496a70a8a5 | 36 | */ |
SvenKbach | 7:b61a09d8943d | 37 | #if OVER_THE_AIR_ACTIVATION |
SvenKbach | 6:38d6cc1ff868 | 38 | #define LORAWAN_DEVICE_EUI { 0x70, 0xb3, 0xd5, 0xb0, 0x20, 0x00, 0x00, 0x2d} |
SvenKbach | 7:b61a09d8943d | 39 | #else |
SvenKbach | 7:b61a09d8943d | 40 | #define LORAWAN_DEVICE_EUI {0x70, 0xb3, 0xd5, 0xb0, 0x20, 0x00, 0x00, 0x3d} |
SvenKbach | 7:b61a09d8943d | 41 | #endif |
mluis | 0:45496a70a8a5 | 42 | /*! |
mluis | 0:45496a70a8a5 | 43 | * Application IEEE EUI (big endian) |
mluis | 0:45496a70a8a5 | 44 | */ |
SvenKbach | 6:38d6cc1ff868 | 45 | #define LORAWAN_APPLICATION_EUI { 0x70, 0xb3, 0xd5, 0xb0, 0x20, 0x00, 0x00, 0x02 } |
mluis | 0:45496a70a8a5 | 46 | |
mluis | 0:45496a70a8a5 | 47 | /*! |
mluis | 0:45496a70a8a5 | 48 | * AES encryption/decryption cipher application key |
mluis | 0:45496a70a8a5 | 49 | */ |
SvenKbach | 7:b61a09d8943d | 50 | #if OVER_THE_AIR_ACTIVATION |
SvenKbach | 6:38d6cc1ff868 | 51 | #define LORAWAN_APPLICATION_KEY { 0x6f, 0xe7, 0x25, 0x89, 0x46, 0x88, 0x7a, 0x0e, 0x39, 0x8e, 0x57, 0x80, 0x28, 0x48, 0x37, 0x9f } |
SvenKbach | 7:b61a09d8943d | 52 | #else |
SvenKbach | 7:b61a09d8943d | 53 | #define LORAWAN_APPLICATION_KEY {0x2b, 0x56, 0x86, 0x4d, 0xf8, 0x57, 0x07, 0xff, 0xe6, 0x2e, 0x39, 0xa4, 0xd9, 0x3a, 0x44, 0xb1} |
SvenKbach | 7:b61a09d8943d | 54 | #endif |
mluis | 0:45496a70a8a5 | 55 | |
mluis | 0:45496a70a8a5 | 56 | /*! |
mluis | 0:45496a70a8a5 | 57 | * Current network ID |
mluis | 0:45496a70a8a5 | 58 | */ |
mluis | 0:45496a70a8a5 | 59 | #define LORAWAN_NETWORK_ID ( uint32_t )0 |
mluis | 0:45496a70a8a5 | 60 | |
mluis | 0:45496a70a8a5 | 61 | /*! |
mluis | 0:45496a70a8a5 | 62 | * Device address on the network (big endian) |
mluis | 0:45496a70a8a5 | 63 | */ |
SvenKbach | 7:b61a09d8943d | 64 | #if OVER_THE_AIR_ACTIVATION |
mluis | 0:45496a70a8a5 | 65 | #define LORAWAN_DEVICE_ADDRESS ( uint32_t )0x12345678 |
SvenKbach | 7:b61a09d8943d | 66 | #else |
SvenKbach | 7:b61a09d8943d | 67 | #define LORAWAN_DEVICE_ADDRESS (uint32_t)0x0558ef68 |
SvenKbach | 7:b61a09d8943d | 68 | #endif |
mluis | 0:45496a70a8a5 | 69 | |
mluis | 0:45496a70a8a5 | 70 | /*! |
mluis | 0:45496a70a8a5 | 71 | * AES encryption/decryption cipher network session key |
mluis | 0:45496a70a8a5 | 72 | */ |
SvenKbach | 7:b61a09d8943d | 73 | #define LORAWAN_NWKSKEY { 0xcc, 0xc7, 0x25, 0x89, 0x46, 0x88, 0x7a, 0x0e, 0x39, 0x8e, 0x57, 0x80, 0x28, 0x48, 0x3d, 0xdd } |
mluis | 0:45496a70a8a5 | 74 | |
mluis | 0:45496a70a8a5 | 75 | /*! |
mluis | 0:45496a70a8a5 | 76 | * AES encryption/decryption cipher application session key |
mluis | 0:45496a70a8a5 | 77 | */ |
SvenKbach | 7:b61a09d8943d | 78 | #define LORAWAN_APPSKEY { 0xaa, 0xa7, 0x25, 0x89, 0x46, 0x88, 0x7a, 0x0e, 0x39, 0x8e, 0x57, 0x80, 0x28, 0x48, 0x3b, 0xbb } |
mluis | 0:45496a70a8a5 | 79 | |
mluis | 5:62862ef9480b | 80 | #endif // __LORA_COMMISSIONING_H__ |