this is avaiable project
Fork of LoRaMacLib by
Diff: mac/LoRaMac.cpp
- Revision:
- 3:675d14219ad5
- Parent:
- 2:737ad7fbc97e
- Child:
- 4:c1d2d1319c8f
diff -r 737ad7fbc97e -r 675d14219ad5 mac/LoRaMac.cpp --- a/mac/LoRaMac.cpp Fri Aug 21 09:35:57 2015 +0000 +++ b/mac/LoRaMac.cpp Mon Sep 21 07:54:54 2015 +0000 @@ -1775,7 +1775,7 @@ */ static void OnRxWindow1TimerEvent( void ) { - uint16_t symbTimeout = 5; // DR_2, DR_1, DR_0 + uint16_t symbTimeout = 20; // DR_2, DR_1, DR_0 int8_t datarate = 0; uint32_t bandwidth = 0; // LoRa 125 kHz @@ -1790,7 +1790,7 @@ // For higher datarates, we increase the number of symbols generating a Rx Timeout if( datarate >= DR_3 ) { // DR_6, DR_5, DR_4, DR_3 - symbTimeout = 8; + symbTimeout = 50; } if( datarate == DR_6 ) {// LoRa 250 kHz @@ -1812,13 +1812,13 @@ AckTimeoutTimer.attach_us( &OnAckTimeoutTimerEvent, ACK_TIMEOUT + randr( -ACK_TIMEOUT_RND, ACK_TIMEOUT_RND ) ); } - uint16_t symbTimeout = 5; // DR_2, DR_1, DR_0 + uint16_t symbTimeout = 20; // DR_2, DR_1, DR_0 uint32_t bandwidth = 0; // LoRa 125 kHz // For higher datarates, we increase the number of symbols generating a Rx Timeout if( Rx2Channel.Datarate >= DR_3 ) { // DR_6, DR_5, DR_4, DR_3 - symbTimeout = 8; + symbTimeout = 50; } if( Rx2Channel.Datarate == DR_6 ) {// LoRa 250 kHz