Other Parts Discussed in Thread: WMBUS,
Hi,
We are trying to implement a wmbus project at the top of the rfPacketRX example. Right now it is working well but I have some consideration about the processing speed of the packets to prevent packet miss.
I have added a second task to this project to parse the received RF packets. So I have 2 running threads now, first one is the original thread in the rfPacketRX example. When I receive a new packet, I'm copying it to a new buffer and raising a flag. The second thread polls for this flag and parses the received packet.
But when there are lots of wmbus devices around, sometimes I get a new packet before I process the old one. So I was thinking of adding a FIFO structure. I need to add received packets to the FIFO and pull them and parse in the second thread. There is already a dataQueue_t variable in the code "rfPacketRx.c" file and "RFQueue_getDataEntry" and "RFQueue_nextEntry" functions are called inside the callback. I'm trying to understand how these work. Are there any useful documents explaining these? Can I poll this queue in another thread?
Thanks.