Finish the transmission at the end of a correct packet
This patch restores the original behaviour of Cooja when the transmitted packet is correct (which is true in a vast majority of cases). In case of a wrong outgoing packet (wrong length, wrong preamble) the transmission will end when the radio changes its state (which should always happen after transmitting a packet). Benchmarks with RPL (33 runs, 50 nodes, 3 hours of simulated time each) yield the same results (PDR, delay, number of transmitted packets) as with the unmodified Cooja.
This commit is contained in:
parent
034a97eed2
commit
eb4bdde9ca
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ public class Msp802154Radio extends Radio implements CustomDataRadio {
|
|||
setChanged();
|
||||
notifyObservers();
|
||||
}
|
||||
isSynchronized = false;
|
||||
finishTransmission();
|
||||
}
|
||||
}
|
||||
}); /* addRFListener */
|
||||
|
|
Loading…
Reference in a new issue