Hi All,

I wish to count the number of times the SFD occurs in the CC2420. The component I was looking at to do this was HPLCC2420InterruptM.nc. And the specific section was:

async event void SFDCapture.captured(uint16_t time) {
   result_t val = SUCCESS;
   ....
 }

I was thinking of adding the statment "SFDCount++;" in the body here and then trying to read that value after a number of receives/transmissions. Is this a bad idea and if not how can I get the value of this count back up to my application for transmission to the base station?

I tried wiring the HPLCC2420InterruptM.nc component directly to my application and using the interface HPLCC2420Capture.nc (or SFD) it provides but that caused my program to hang which is probably understandable as the capture event and sendMsg command probably occur almost instantaneously.

Many thanks,
Terence.

_________________________________________________________________
Customise your home page with RSS feeds at MSN Ireland! http://ie.msn.com/

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to