Hi, I am working with simulation of WSN using TinyOS 2.1.2 with MicaZ as the platform. I wanted to check the change in power consumption based on change in range of transmission. As mentioned in few online threads, I added the following two lines in the makefile:
*PFLAGS += -DCC2420_DEF_RFPOWER=1* *PFLAGS += -DCC2420_DEF_TXPOWER=1 * As mentioned online, these variables can take any value varying from 1 to 31. However, on changing the variable values in the makefile, there is no change in the total power consumption. I have attached my program file to this mail. Kindly let me know if I am missing out on any more variable or is there any other method to change power consumed by radio. Thanks & Regards, Nivedita Datta
#ifndef BLINKTORADIO_H
#define BLINKTORADIO_H
enum {
TIMER_PERIOD_MILLI = 250
};
typedef nx_struct ctr{
nx_uint8_t counter[16];
} ctr;
typedef nx_struct BlinkToRadioMsg {
nx_uint16_t nodeid;
ctr counter_;
} BlinkToRadioMsg;
#endif
BlinkToRadioAppC.nc
Description: Cdf file
BlinkToRadioC.nc
Description: Cdf file
Makefile
Description: Binary data
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
