TRW-2.4G and CRC result

Hi everyone, i’m working with the laipac trw-2.4g and i have a doubt…

I need to know if exist some way to know if the crc was correct or incorrect…because i’m trying to do a protocol where the client send a request of some information to a server (other MCU), then the server send the information back to the client and if was something wrong on it (crc incorrect) then the client send the request again.

Someone know about this??? :roll: and can give me some help…please!!!

Thanks for your help :smiley:

This depends on which mode you’re in. If you’re in Shockburst, then the unit handles all the CRC checking itself. With that said, in Shockburst if you receive a packet at your receiver unit, the CRC was correct. However, if you receive a packet with a bad CRC, then you never know because the nRF2401 does not tell you when this happens.

In direct mode, you have to check the CRC yourself. This might actually work better for you because then you would know if you received a packet with an incorrect CRC and could ask the server to re-send the packet.

If you do choose Shockburst, your client will have to implement some sort of time-out such that if the time-out expires, it retransmits the packet to the server (whether infinitely or with some sort of maximum amount of retries is up to you).

Another solution is to step up to the 24L01 chips from Nordic. These are implemented in SparkFun’s MiRF-v2 boards. They can automatically do all of this stuff in hardware without you having to do anything in software.

Hi brennen, thanks for your options!! i’m going to try one of them and i’ll write back to the forum to tell you the results.

Thank you very much. :smiley: