[Tinyos-help] Coding for CRC checking (CC2420)
Joe Green
joeg_9 at yahoo.com
Thu Jul 2 11:29:23 PDT 2009
Hi,
I've read the datasheet for the CC2420 chip and it appears that on the receiver side there is one bit signifying the CRC pass/fail. I am trying to find where this bit is checked to disable the CRC checking. So far, I found two instances that seem to check the CRC.
In lines 171-173 of CC2420ActiveMessageP.nc, the code is:
if(!(call CC2420PacketBody.getMetadata(msg))->crc) {
return msg;
}
Line 296 of CC2420ReceiveP.nc also seems to check the CRC:
if ( ( buf[ rxFrameLength ] >> 7 ) && rx_buf ) {
Can anyone explain what these two sets of coding do, and let me know if there are any other places the crc bit is checked?
Thanks,
Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090702/a53b7246/attachment.htm
More information about the Tinyos-help
mailing list