Skip to content

Commit 98e324b

Browse files
committed
Increased default timeout for RegionEU868 to 4000 ms
For SF12 packets of 51 bytes, the TxTimeOnAir is ~2800 ms. With a few additional delays (in the Radio and firmware) the default timeout of 3000 is sometimes reached, leading to the invalid conclusion that Tx has timed out, while the packet has been sent. This, in turn, leads to the possibility of a new packet being sent in violation of dutycycle constraints. A better approach would be to take the calculated TxTimeOnAir plus 1000 ms as timeout, but that would require a bit of rework on both the region code as well as on the Radio code.
1 parent 0d48900 commit 98e324b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mac/region/RegionEU868.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,12 +627,12 @@ bool RegionEU868TxConfig( TxConfigParams_t* txConfig, int8_t* txPower, TimerTime
627627
if( txConfig->Datarate == DR_7 )
628628
{ // High Speed FSK channel
629629
modem = MODEM_FSK;
630-
Radio.SetTxConfig( modem, phyTxPower, 25000, bandwidth, phyDr * 1000, 0, 5, false, true, 0, 0, false, 3000 );
630+
Radio.SetTxConfig( modem, phyTxPower, 25000, bandwidth, phyDr * 1000, 0, 5, false, true, 0, 0, false, 4000 );
631631
}
632632
else
633633
{
634634
modem = MODEM_LORA;
635-
Radio.SetTxConfig( modem, phyTxPower, 0, bandwidth, phyDr, 1, 8, false, true, 0, 0, false, 3000 );
635+
Radio.SetTxConfig( modem, phyTxPower, 0, bandwidth, phyDr, 1, 8, false, true, 0, 0, false, 4000 );
636636
}
637637

638638
// Setup maximum payload lenght of the radio driver

0 commit comments

Comments
 (0)