Publish Grove Cayenne Spider Test

Dependencies:   SX127x lorawan1v1

Fork of LoRaWAN-grove-cayenne by wayne roberts

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Commissioning.h Source File

Commissioning.h

00001 /*
00002  / _____)             _              | |
00003 ( (____  _____ ____ _| |_ _____  ____| |__
00004  \____ \| ___ |    (_   _) ___ |/ ___)  _ \
00005  _____) ) ____| | | || |_| ____( (___| | | |
00006 (______/|_____)_|_|_| \__)_____)\____)_| |_|
00007     (C)2018 Semtech
00008 
00009 Description: End device commissioning parameters
00010 
00011 License: Revised BSD License, see LICENSE.TXT file include in the project
00012 
00013 */
00014 #ifndef __LORA_COMMISSIONING_H__
00015 #define __LORA_COMMISSIONING_H__
00016 
00017 #define USE_BAND_915_HYBRID
00018 //#define USE_BAND_915
00019 //#define USE_BAND_ARIB_8CH
00020 //#define USE_BAND_868
00021 //#define USE_BAND_433
00022 //#define USE_BAND_470
00023 //#define USE_BAND_780
00024 
00025 
00026 #define ENABLE_VT100
00027 
00028 #ifdef ENABLE_VT100
00029     #define ROW_MLME_IND            (ROW_END+1)
00030     #define ROW_MLME_CONF           (ROW_END+2)
00031     #define ROW_MCPS_IND            (ROW_END+3)
00032     #define ROW_MCPS_CONF           (ROW_END+4)
00033     #define ROW_MIC                 (ROW_END+5)
00034 #else
00035     #define ROW_MIC     0
00036 #endif
00037 
00038 /*!
00039  * Indicates if the end-device is to be connected to a private or public network
00040  */
00041 #define LORAWAN_PUBLIC_NETWORK                      true
00042 
00043 /*!
00044  * Mote device IEEE EUI (big endian)
00045  *
00046  * \remark In this application the value is automatically generated by calling
00047  *         BoardGetUniqueId function
00048  */
00049 
00050 // ********************************  Device Provisioning to Seemtech NS **CC for Bootcamps and DD for my tests***
00051 //
00052 
00053 #define LORAWAN_DEVICE_EUI       { 0xAB,0xDD,0xEF,0x00,0x00,0x00,0x00,0x00 }
00054 
00055 #define LORAWAN_JOIN_EUI         { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }
00056 
00057 #define LORAWAN_ROOT_NWKKEY     { 0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x77,0x88,0x99,0xaa,0xbb,0xcc,0xdd,0xee,0xff }
00058 
00059 //
00060 // ********************************  Device Provisioning to Semtech NS ********************************************
00061 //
00062 //
00063 //
00064 // d2fc83ea58cf0fbc973dbd07a7115486     lorawan-1.1 OTA only
00065 //#define LORAWAN_ROOT_APPKEY   { 0xd2,0xfc,0x83,0xea,0x58,0xcf,0x0f,0xbc,0x97,0x3d,0xbd,0x07,0xa7,0x11,0x54,0x86 } // uncomment for lorawan1v1, or comment for lorawan1v0
00066 
00067 
00068 #ifndef LORAWAN_JOIN_EUI     /* ABP mote: */
00069     /*
00070      * AppSkey:     09763a2d1c29831ea073b24d5d12f084
00071      * FNwkSIntKey: 15aed1b53c90518e1c6170c12a315429
00072      * SNwkSintKey: 37fe10c4c31a26f9d027180bc192567f  1v1 ABP
00073      * NwkSEncKey:  f765291c0b18720d9f62a13c4c01ef73  1v1 ABP
00074      */
00075     #define LORAWAN_FNwkSIntKey    {0x15, 0xae, 0xd1, 0xb5, 0x3c, 0x90, 0x51, 0x8e, 0x1c, 0x61, 0x70, 0xc1, 0x2a, 0x31, 0x54, 0x29}
00076     #define LORAWAN_APPSKEY        {0x09, 0x76, 0x3a, 0x2d, 0x1c, 0x29, 0x83, 0x1e, 0xa0, 0x73, 0xb2, 0x4d, 0x5d, 0x12, 0xf0, 0x84}
00077     //#define LORAWAN_SNwkSIntKey    {0x37, 0xfe, 0x10, 0xc4, 0xc3, 0x1a, 0x26, 0xf9, 0xd0, 0x27, 0x18, 0x0b, 0xc1, 0x92, 0x56, 0x7f} // 1v1
00078     //#define LORAWAN_NwkSEncKey     {0xf7, 0x65, 0x29, 0x1c, 0x0b, 0x18, 0x72, 0x0d, 0x9f, 0x62, 0xa1, 0x3c, 0x4c, 0x01, 0xef, 0x73} // 1v1
00079     #if defined(LORAWAN_SNwkSIntKey) && defined(LORAWAN_NwkSEncKey)
00080         #define OPTNEG
00081         #define LORAWAN_DEVICE_ADDRESS         ( uint32_t )0x02000555   // 1v1 provisioned netid 000001
00082         //#define LORAWAN_DEVICE_ADDRESS         ( uint32_t )0xe3fc0555   // 1v1 provisioned netid 6000ff
00083     #else
00084         #undef OPTNEG
00085         #define LORAWAN_DEVICE_ADDRESS         ( uint32_t )0x02000aaa   // 1v0 provisioned
00086     #endif
00087 #else
00088     #ifdef LORAWAN_ROOT_APPKEY
00089         #define OPTNEG
00090     #else
00091         #undef OPTNEG
00092     #endif
00093 #endif
00094 
00095 #endif // __LORA_COMMISSIONING_H__
00096