testing lora and ble on nrf51

Dependencies:   BLE_API LoRaWAN-lib SX1276Lib mbed nRF51822

Committer:
olav
Date:
Mon May 09 08:07:23 2016 +0000
Revision:
1:ca647cbbe4fb
Parent:
0:4c1fcbfcc7bf
initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
olav 0:4c1fcbfcc7bf 1 /*
olav 0:4c1fcbfcc7bf 2 / _____) _ | |
olav 0:4c1fcbfcc7bf 3 ( (____ _____ ____ _| |_ _____ ____| |__
olav 0:4c1fcbfcc7bf 4 \____ \| ___ | (_ _) ___ |/ ___) _ \
olav 0:4c1fcbfcc7bf 5 _____) ) ____| | | || |_| ____( (___| | | |
olav 0:4c1fcbfcc7bf 6 (______/|_____)_|_|_| \__)_____)\____)_| |_|
olav 0:4c1fcbfcc7bf 7 (C)2015 Semtech
olav 0:4c1fcbfcc7bf 8
olav 0:4c1fcbfcc7bf 9 Description: End device comissioning parameters
olav 0:4c1fcbfcc7bf 10
olav 0:4c1fcbfcc7bf 11 License: Revised BSD License, see LICENSE.TXT file include in the project
olav 0:4c1fcbfcc7bf 12
olav 0:4c1fcbfcc7bf 13 Maintainer: Miguel Luis and Gregory Cristian
olav 0:4c1fcbfcc7bf 14 */
olav 0:4c1fcbfcc7bf 15 #ifndef __LORA_COMISSIONING_H__
olav 0:4c1fcbfcc7bf 16 #define __LORA_COMISSIONING_H__
olav 0:4c1fcbfcc7bf 17
olav 0:4c1fcbfcc7bf 18 /*!
olav 0:4c1fcbfcc7bf 19 * When set to 1 the application uses the Over-the-Air activation procedure
olav 0:4c1fcbfcc7bf 20 * When set to 0 the application uses the Personalization activation procedure
olav 0:4c1fcbfcc7bf 21 */
olav 0:4c1fcbfcc7bf 22 #define OVER_THE_AIR_ACTIVATION 0
olav 0:4c1fcbfcc7bf 23
olav 0:4c1fcbfcc7bf 24 /*!
olav 0:4c1fcbfcc7bf 25 * Indicates if the end-device is to be connected to a private or public network
olav 0:4c1fcbfcc7bf 26 */
olav 0:4c1fcbfcc7bf 27 #define LORAWAN_PUBLIC_NETWORK true
olav 0:4c1fcbfcc7bf 28
olav 0:4c1fcbfcc7bf 29 #if( OVER_THE_AIR_ACTIVATION != 0 )
olav 0:4c1fcbfcc7bf 30
olav 0:4c1fcbfcc7bf 31 /*!
olav 0:4c1fcbfcc7bf 32 * Mote device IEEE EUI (big endian)
olav 0:4c1fcbfcc7bf 33 */
olav 0:4c1fcbfcc7bf 34 #define LORAWAN_DEVICE_EUI { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88 }
olav 0:4c1fcbfcc7bf 35
olav 0:4c1fcbfcc7bf 36 /*!
olav 0:4c1fcbfcc7bf 37 * Application IEEE EUI (big endian)
olav 0:4c1fcbfcc7bf 38 */
olav 0:4c1fcbfcc7bf 39 #define LORAWAN_APPLICATION_EUI { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
olav 0:4c1fcbfcc7bf 40
olav 0:4c1fcbfcc7bf 41 /*!
olav 0:4c1fcbfcc7bf 42 * AES encryption/decryption cipher application key
olav 0:4c1fcbfcc7bf 43 */
olav 0:4c1fcbfcc7bf 44 #define LORAWAN_APPLICATION_KEY { 0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C }
olav 0:4c1fcbfcc7bf 45
olav 0:4c1fcbfcc7bf 46 #else
olav 0:4c1fcbfcc7bf 47
olav 0:4c1fcbfcc7bf 48 /*!
olav 0:4c1fcbfcc7bf 49 * Current network ID
olav 0:4c1fcbfcc7bf 50 */
olav 0:4c1fcbfcc7bf 51 #define LORAWAN_NETWORK_ID ( uint32_t )0
olav 0:4c1fcbfcc7bf 52
olav 0:4c1fcbfcc7bf 53 /*!
olav 0:4c1fcbfcc7bf 54 * Device address on the network (big endian)
olav 0:4c1fcbfcc7bf 55 */
olav 0:4c1fcbfcc7bf 56 #define LORAWAN_DEVICE_ADDRESS ( uint32_t )0x12345678
olav 0:4c1fcbfcc7bf 57
olav 0:4c1fcbfcc7bf 58 /*!
olav 0:4c1fcbfcc7bf 59 * AES encryption/decryption cipher network session key
olav 0:4c1fcbfcc7bf 60 */
olav 0:4c1fcbfcc7bf 61 #define LORAWAN_NWKSKEY { 0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C }
olav 0:4c1fcbfcc7bf 62
olav 0:4c1fcbfcc7bf 63 /*!
olav 0:4c1fcbfcc7bf 64 * AES encryption/decryption cipher application session key
olav 0:4c1fcbfcc7bf 65 */
olav 0:4c1fcbfcc7bf 66 #define LORAWAN_APPSKEY { 0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C }
olav 0:4c1fcbfcc7bf 67
olav 0:4c1fcbfcc7bf 68 #endif
olav 0:4c1fcbfcc7bf 69
olav 0:4c1fcbfcc7bf 70 #endif // __LORA_COMISSIONING_H__