Hi to all, I'm a student working of my bachelor thesis.
During some experimentation oriented to power consuption extimation I
noticed that it seems that the CC2420 Radio of our telosB motes need 5
seconds to turn it self on.
As a result, if I use a transmit rate exceding than one packet each 5
seconds. I am unable to switch off the radio.
Power consuption is not less than 40 mV.
As of your knowledge : Is this result correct? Can I shorten the
switch time in any way?
You can find the snippet code below.
module MyComponent
{ uses
{ interface Boot;
interface SplitControl as RadioControl;
interface AMSend;
interface Timer;
}
}
implementation
{ typedef nx_struct oscilloscope
{ nx_uint16_t version;
nx_uint16_t interval;
nx_uint16_t id;
nx_uint16_t count;
nx_uint16_t readings[10];
} oscilloscope_t;
message_t sendbuf;
oscilloscope_t local;
event void Boot.booted ( )
{ call Timer.startPeriodic (10000);
}
event void RadioControl.startDone (error_t error) { }
event void RadioControl.stopDone (error_t error) { }
event void Timer.fired ( )
{ call RadioControl.start ( );
call AMSend.send (AM_BROADCAST_ADDR, &sendbuf, sizeof local);
}
event void AMSend.sendDone (message_t* msg, error_t error)
{ call RadioControl.stop ( );
}
}
Thanks for your reply, Margherita.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help