mirror of https://github.com/ARMmbed/mbed-os.git
Making sure that RX slots open after state change
After transmission we should change the state before invoking opening of slots as we may start receiving in the rx slots and the state would suddenly change from SENDING to RECEIVING without going through the ACK_WAIT state (in case of CONFIRMED messages). Tests show that after this slight adjustment, our number of ack retries have significantly reduced.pull/8405/head
parent
d5ce0cc96f
commit
8d4cda11f7
|
@ -576,7 +576,6 @@ void LoRaWANStack::process_transmission_timeout()
|
|||
void LoRaWANStack::process_transmission(void)
|
||||
{
|
||||
tr_debug("Transmission completed");
|
||||
_loramac.on_radio_tx_done(_tx_timestamp);
|
||||
|
||||
if (_device_current_state == DEVICE_STATE_JOINING) {
|
||||
_device_current_state = DEVICE_STATE_AWAITING_JOIN_ACCEPT;
|
||||
|
@ -588,6 +587,8 @@ void LoRaWANStack::process_transmission(void)
|
|||
_device_current_state = DEVICE_STATE_AWAITING_ACK;
|
||||
}
|
||||
}
|
||||
|
||||
_loramac.on_radio_tx_done(_tx_timestamp);
|
||||
}
|
||||
|
||||
void LoRaWANStack::post_process_tx_with_reception()
|
||||
|
|
Loading…
Reference in New Issue