Hi,
I had installed CntToLedsAndRfm in one of the micaz mote(sender) with TIMER_REPEAT as 1000 and debugging RfmToLeds in other micaz mote(receiver) sitting on mib board with jtag ice.

once the CntToLedsAndRfm starts(0x01 to 0x07) it starts the first transmission 0x01(red led on). When this value is sent in Radio, the message is received by other receiver micaz mote and value is received(red led is on).

Now if i switch off the sender(CntToLedsAndRfm) mote, i need to switch off the red led in the receiver mote also. But it is still on.

While debugging i found, when the first value 0x01 is sent by CntToLedsAndRfm
in sched.c,

func = TOSH_queue[old_full].tp;
  if (func == NULL)
    {
      __nesc_atomic_sleep();
      return 0;
    &n! bsp; }

the func value is CC2420RadioM$PacketRcvd and then IntToLedsM$outputDone. Now when the sender mote is off, func value becomes void and goes into infinite loop __nesc_atomic_sleep and TOSH_wait() functions, the loop goes until interrupt generated, i.e till a radio packet received. If the func is void, i need to come out of this loop and do some action(make led off on the receiver).

I need to switch OFF the Leds in the receiver mote when the sender is completely OFF.
Any ideas?
Hope I made my question clear.

TIA
Regs,
Peri


Yahoo! Photos
Got holiday prints? See all the ways to get quality prints in your hands ASAP.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to