Hi all,
I use Tinyos 1.1.10.I want to send 500 packets with different
power at gap of 1000ms between them.
1) I start the timer at first.
2) As a response we have an event generated.In the event Timer.fired(
) ,I set the power ( my application is wired to CC1000ControlM.) and
then send message as follows:
call CC1000Control.SetRFPower(7);
call Leds.set(call CC1000Control.GetRFPower()); ( For
conformation that power is set)
call sendMsg.send(TOS_BCAST_ADDR,2, &Msg);
3) As a response to SendMsg.send(),an event SendMsg.senddone() is
generated.In this event, I switch off the Red Led and start timer again
at 1000ms time interval as follows
event result_t sendMsg.sendDone(TOS_MsgPtr msg, result_t success)
{ call CLeds.redOff();
Tcounter++; (a predefind variable)
call CTimer.start(TIMER_ONE_SHOT,1000);
if(Tcounter == 500) {
Tcounter = 1;
call CTimer.stop();
}
return SUCCESS;
}
PROBLEM: As a sign of power is set to 7, all the leds are ON.After
that, as a sign of message has been sent , in the event
sendmsg.senddone( ) red led has to go off. But it doesn't go off and
thereafter timer is not fired. Why is the senddone event not responding.
Actually, It responded fine
and 500 packets were transmitted and received BEFORE WIRING TO
CC1000ControlM .When wired to CC1000ControlM and call
CC1000Control.SetRFPower(7) command , senddone() event doesnt respond.I
use CC1000controlM's stdControl.init(),start(),stop() commands in the '
Stdcontrol Interface's init(), start() and stop() commands respectively
' provided by my application.
Any Ideas? Please help.
Thank you very much for your patience.
Have a nice weekend.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help