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: LoRaMacLib SX1276Lib mbed Chainable_RGB_LED DigitDisplay
Fork of LoRaWAN by
Revision 6:ea71f564e0ce, committed 2015-10-21
- Comitter:
- Alliance
- Date:
- Wed Oct 21 06:35:37 2015 +0000
- Parent:
- 5:2499c195ccfe
- Child:
- 7:063ff5895cfe
- Commit message:
- _
Changed in this revision
| LoRaMacLib.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/LoRaMacLib.lib Tue Oct 20 15:22:08 2015 +0000 +++ b/LoRaMacLib.lib Wed Oct 21 06:35:37 2015 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/Alliance/code/LoRaMacLib/#8a2576669867 +https://developer.mbed.org/users/Alliance/code/LoRaMacLib/#7d7f3b88c8a6
--- a/main.cpp Tue Oct 20 15:22:08 2015 +0000
+++ b/main.cpp Wed Oct 21 06:35:37 2015 +0000
@@ -30,12 +30,12 @@
*/
static uint8_t DevEui[] =
{
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
+ 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22
};
#if( OVER_THE_AIR_ACTIVATION != 0 )
-#define OVER_THE_AIR_ACTIVATION_DUTYCYCLE 10000000 // 10 [s] value in us
+#define OVER_THE_AIR_ACTIVATION_DUTYCYCLE 7000000 // 7 [s] value in us
/*!
* Application IEEE EUI
@@ -50,8 +50,8 @@
*/
static uint8_t AppKey[] =
{
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
+ 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22,
+ 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22
};
#else
@@ -89,7 +89,7 @@
/*!
* Defines the application data transmission duty cycle
*/
-#define APP_TX_DUTYCYCLE 10000000 // 10 [s] value in us
+#define APP_TX_DUTYCYCLE 5000000 // 6 [s] value in us
#define APP_TX_DUTYCYCLE_RND 2000000 // 2 [s] value in us
/*!
@@ -137,9 +137,9 @@
// ChainableLED(clk, data, number_of_leds)
-ChainableLED color_led(D8, D9, NUM_LED);
+ChainableLED color_led(D6, D7, NUM_LED);
-DigitDisplay display(D6, D7);
+DigitDisplay display(D8, D9);
DigitalOut buzzer(A2);
@@ -167,6 +167,7 @@
static void ProcessRxFrame( LoRaMacEventFlags_t *flags, LoRaMacEventInfo_t *info )
{
+ debug( "RxDone \n\n\r" );
switch( info->RxPort ) // Check Rx port number
{
case 10:
