Hello Danielle,

My TinyOS version is 1.17. There are two errors in the SetRFPower command in
CC2420ControlM.nc. I corrected and it works now.

I don't know what version you are using. Maybe it has already been corrected
in new release. You may look through the code and the CC2420 datasheet. The
nc file is in C:\tinyos\cygwin\opt\tinyos-1.x\tos\lib\CC2420Radio.

The correct command should look like following:

 command result_t CC2420Control.SetRFPower(uint8_t power) {
   gCurrentParameters[CP_TXCTRL] = (gCurrentParameters[CP_TXCTRL] & 0xffe0)
| (power << CC2420_TXCTRL_PAPWR);
   call HPLChipcon.write(CC2420_TXCTRL,gCurrentParameters[CP_TXCTRL]);
   return SUCCESS;
 }

Hope this help. Good luck.

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

Reply via email to