Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: LoRaWAN-lib SX1272Lib-mQ lib_gps lib_mma8451q lib_mpl3115a2 mbed
Fork of LoRaWAN-NAMote72-Application-Demo by
Revision 19:e136bd75eabd, committed 2018-03-30
- Comitter:
- Benedict_Tizzano
- Date:
- Fri Mar 30 19:02:45 2018 +0000
- Parent:
- 18:18408c3c2d0c
- Commit message:
- mQ Branch
Changed in this revision
--- a/app/Commissioning.h Mon Apr 24 13:47:27 2017 +0000
+++ b/app/Commissioning.h Fri Mar 30 19:02:45 2018 +0000
@@ -19,7 +19,7 @@
* When set to 1 the application uses the Over-the-Air activation procedure
* When set to 0 the application uses the Personalization activation procedure
*/
-#define OVER_THE_AIR_ACTIVATION 1
+#define OVER_THE_AIR_ACTIVATION 0
/*!
* Indicates if the end-device is to be connected to a private or public network
@@ -30,7 +30,7 @@
* IEEE Organizationally Unique Identifier ( OUI ) (big endian)
* \remark This is unique to a company or organization
*/
-#define IEEE_OUI 0x00, 0x00, 0x00
+#define IEEE_OUI 0x40, 0x55, 0x40
/*!
* Mote device IEEE EUI (big endian)
@@ -41,12 +41,12 @@
* If provided by user, e.g. { IEEE_OUI, 0x00, 0x00, 0x00, 0xFF, 0x01 },
* then this value is used by the application
*/
-#define LORAWAN_DEVICE_EUI { IEEE_OUI, 0x00, 0x00, 0x00, 0x00, 0x00 }
+#define LORAWAN_DEVICE_EUI { IEEE_OUI, 0x55, 0x40, 0x55, 0x40, 0x56 }
/*!
* 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, 0x0C }
/*!
* AES encryption/decryption cipher application key
@@ -61,16 +61,16 @@
* a value derived from BoardUniqueId value if provided by user,
* e.g. 0x78563412, then this value is used by the application
*/
-#define LORAWAN_DEVICE_ADDRESS ( uint32_t )0x00000000
+#define LORAWAN_DEVICE_ADDRESS ( uint32_t )0x40554056
/*!
* AES encryption/decryption cipher network session key
*/
-#define LORAWAN_NWKSKEY { 0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C }
+#define LORAWAN_NWKSKEY { 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF }
/*!
* AES encryption/decryption cipher application session key
*/
-#define LORAWAN_APPSKEY { 0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C }
+#define LORAWAN_APPSKEY { 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF }
#endif // __LORA_COMMISSIONING_H__
--- a/app/Config.h Mon Apr 24 13:47:27 2017 +0000
+++ b/app/Config.h Fri Mar 30 19:02:45 2018 +0000
@@ -20,7 +20,7 @@
* Configure End-Device to use 8-channels corresponding to Block A
* Comment/Uncomment to disable/enable Hybrid mode
*/
-// #define USE_BAND_915_HYBRID
+//#define USE_BAND_915_HYBRID
#ifndef USE_BAND_915_HYBRID
/*!
@@ -33,21 +33,21 @@
/*!
* Defines the application data transmission periodicity. It is the time between RX1/RX2 and next TX
*/
-#define APP_TX_DUTYCYCLE 5000 // value in ms
+#define APP_TX_DUTYCYCLE 2000 // value in ms
/*!
* LoRaWAN confirmed messages
* \remark 1 : Confirmed messages enabled. Must receive ACK from network server
0 : Confirmed messages disabled.
*/
-#define LORAWAN_CONFIRMED_MSG_ON 1
+#define LORAWAN_CONFIRMED_MSG_ON 0
/*!
* LoRaWAN Adaptive Data Rate
*
* \remark Please note that when ADR is enabled the end-device uses default datarate of DR_0
*/
-#define LORAWAN_ADR_ON 1
+#define LORAWAN_ADR_ON 0
/*!
* Default mote datarate
--- a/mac/LoRaWAN-lib.lib Mon Apr 24 13:47:27 2017 +0000 +++ b/mac/LoRaWAN-lib.lib Fri Mar 30 19:02:45 2018 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/teams/Semtech/code/LoRaWAN-lib/#26002607de9c +https://os.mbed.com/users/Benedict_Tizzano/code/LoRaWAN-lib/#7dd0dc504eb9
--- a/radio/SX1272Lib.lib Mon Apr 24 13:47:27 2017 +0000 +++ b/radio/SX1272Lib.lib Fri Mar 30 19:02:45 2018 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/teams/Semtech/code/SX1272Lib/#b988b60083a1 +https://os.mbed.com/users/Benedict_Tizzano/code/SX1272Lib-mQ/#71574856a120
--- a/system/mbed.bld Mon Apr 24 13:47:27 2017 +0000 +++ b/system/mbed.bld Fri Mar 30 19:02:45 2018 +0000 @@ -1,1 +1,1 @@ -https://mbed.org/users/mbed_official/code/mbed/builds/97feb9bacc10 \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/fb8e0ae1cceb \ No newline at end of file
