versionepudee2018

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 11:48:37 2018 +0000
Parent:
7:5077515c163b
Commit message:
test

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 11:48:37 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, 0x17, 0x31, 0x49, 0x2B, 0x39 , 0x4C , 0x84 }
 
 /*!
  * 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                     { 0x85, 0xD6, 0x4A, 0xE9, 0xFC, 0x67, 0x26, 0xAB, 0x6B, 0xC0, 0x17, 0xF3, 0x63, 0xF5, 0xE3, 0x67 }
 
 /*!
  * Current network ID
--- a/app/main.cpp	Mon Apr 24 13:29:34 2017 +0000
+++ b/app/main.cpp	Thu Apr 19 11:48:37 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