version2018

Dependencies:   mbed LoRaWAN-lib SX1272Lib

Fork of LoRaWAN-demo-72 by Semtech

Files at this revision

API Documentation at this revision

Comitter:
DomCer
Date:
Thu Apr 19 12:15:45 2018 +0000
Parent:
7:5077515c163b
Commit message:
version2018

Changed in this revision

app/Commissioning.h Show annotated file Show diff for this revision Revisions of this file
app/main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/app/Commissioning.h	Mon Apr 24 13:29:34 2017 +0000
+++ b/app/Commissioning.h	Thu Apr 19 12:15:45 2018 +0000
@@ -24,7 +24,7 @@
 /*!
  * Indicates if the end-device is to be connected to a private or public network
  */
-#define LORAWAN_PUBLIC_NETWORK                      true
+#define LORAWAN_PUBLIC_NETWORK                      false
 
 /*!
  * IEEE Organizationally Unique Identifier ( OUI ) (big endian)
@@ -35,17 +35,18 @@
 /*!
  * Mote device IEEE EUI (big endian)
  */
-#define LORAWAN_DEVICE_EUI                          { IEEE_OUI, 0x44, 0x55, 0x66, 0x77, 0x88 }
+#define LORAWAN_DEVICE_EUI                          { 0x00, 0xEB, 0xEA, 0x65, 0xB9, 0xD4 , 0x18 , 0x0E }
 
 /*!
  * Application IEEE EUI (big endian)
  */
-#define LORAWAN_APPLICATION_EUI                     { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
+//#define LORAWAN_APPLICATION_EUI                     { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
 
+#define LORAWAN_APPLICATION_EUI                     { 0x70, 0xB3, 0xD5, 0x7E, 0xD0, 0x00, 0xB9, 0x4A }
 /*!
  * AES encryption/decryption cipher application key
  */
-#define LORAWAN_APPLICATION_KEY                     { 0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C }
+#define LORAWAN_APPLICATION_KEY                     { 0xD5, 0xA5, 0xA5, 0x9A, 0x56, 0x96, 0x3A, 0x06, 0x54, 0xE4, 0x50, 0x51, 0x56, 0xA6, 0x65, 0xF0 }
 
 /*!
  * Current network ID
--- a/app/main.cpp	Mon Apr 24 13:29:34 2017 +0000
+++ b/app/main.cpp	Thu Apr 19 12:15:45 2018 +0000
@@ -59,7 +59,7 @@
  */
 #define LORAWAN_DUTYCYCLE_ON                        false
 
-#define USE_SEMTECH_DEFAULT_CHANNEL_LINEUP          1
+#define USE_SEMTECH_DEFAULT_CHANNEL_LINEUP          0
 
 #if( USE_SEMTECH_DEFAULT_CHANNEL_LINEUP == 1 )
 
@@ -67,9 +67,9 @@
 #define LC5                { 867300000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 }
 #define LC6                { 867500000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 }
 #define LC7                { 867700000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 }
-#define LC8                { 867900000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 }
-#define LC9                { 868800000, { ( ( DR_7 << 4 ) | DR_7 ) }, 2 }
-#define LC10               { 868300000, { ( ( DR_6 << 4 ) | DR_6 ) }, 1 }
+#define LC8                { 868500000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 }
+#define LC9                { 868300000, { ( ( DR_7 << 4 ) | DR_7 ) }, 2 }
+#define LC10               { 868100000, { ( ( DR_6 << 4 ) | DR_6 ) }, 1 }
 
 #endif