Posts

Showing posts from March, 2016

Little bits of progress on NRF24

It's been so long since I posted about this I had to go back and look at what I'd last written. I've covered a lot of territory. Recently, the NRF24L01+ driver I'm using has proved problematic, as has the data sheet itself: It doesn't make it clear if FLUSH_TX or FLUSH_RX delete all the contents of a fifo, or just the next item. From this in the product specification, you might think just the next item: Note: Always check if the packet width reported is 32 bytes or shorter when using the R_RX_PL_WID command. If its width is longer than 32 bytes then the packet contains errors and must be discarded. Discard the packet by using the Flush_RX command. Otherwise it's a bit ridiculous: why would you discard valid packets from the receive buffer to get rid of one invalid packet at the head? Actually FLUSH_RX does flush everything. Why would you suggest that when you can discard a single packet by just aborting an R_RX_PAYLOAD?  There are perhaps a reason for