Cosa: An Object-Oriented Platform for Arduino programming

sirhax:
After getting this to work fairly reliably, I have run into a situation where the CosaWirelessReceiver appears to stop receiving data after going out of range and then coming back. Simply pushing the reset button on the CosaWirelessReceiver board causes data to start flowing again. Have you run into this?

@sirhax

I have been able to force this behaviour and found what I think was the problem. Pushed a fix for this. See Improving CC1101 device driver robustness; flush receive fifo. · mikaelpatel/Cosa@19b2f9e · GitHub. Basically the receive fifo could contain incomplete messages as the interrupt is only generate for complete messages (correct address, length, crc). I had assumed that this was done automatically and illegal frames discharged.

Need to check if the NRF24L01P also has this behaviour.

Cheers!