mirror of https://github.com/ARMmbed/mbed-os.git
Randomizing backoff for Join process
Randomizing backoff by 200ms to 1000ms for Join Requests in a dense network will add robustness and better chances of reception by the base station especially in cases of catastrophic network outage and reconnection.pull/9370/head
parent
498e4e6b7d
commit
dd81345d41
|
@ -282,6 +282,8 @@ lorawan_time_t LoRaPHY::update_band_timeoff(bool joined, bool duty_cycle,
|
|||
|
||||
if (bands[i].off_time != 0) {
|
||||
next_tx_delay = MIN(bands[i].off_time - txDoneTime, next_tx_delay);
|
||||
// add a random delay from 200ms to a 1000ms
|
||||
next_tx_delay += (rand() % 800 + 200);
|
||||
}
|
||||
} else {
|
||||
// if network has been joined
|
||||
|
|
Loading…
Reference in New Issue