Hi Janos,
I tried the default RadioCountToLeds with cc2420x, with only the following
changes. Within 3 minutes, about 10% of nodes stop toggling led 2 and
crash. If MilliTimer fires every 100 ms, about 30% of nodes crash.
* event void MilliTimer.fired() {*
* counter++;*
* call Leds.led2Toggle();*
* ...*
*}*
* event message_t* Receive.receive(message_t* bufPtr, *
* void* payload, uint8_t len) {*
* dbg("RadioCountToLedsC", "Received packet of length %hhu.\n", len);*
* if (len != sizeof(radio_count_msg_t)) {return bufPtr;}*
* else {*
*// radio_count_msg_t* rcm = (radio_count_msg_t*)payload;*
*// if (rcm->counter & 0x1) {*
*// call Leds.led0On();*
*// }*
*// else {*
*// call Leds.led0Off();*
*// }*
*// if (rcm->counter & 0x2) {*
*// call Leds.led1On();*
*// }*
*// else {*
*// call Leds.led1Off();*
*// }*
*// if (rcm->counter & 0x4) {*
*// call Leds.led2On();*
*// }*
*// else {*
*// call Leds.led2Off();*
*// }*
* return bufPtr;*
* }*
* }*
Please let me know if you have any idea what may go wrong. Thanks for your
reply.
-Xiaohui
On Mon, Jan 14, 2013 at 12:37 PM, Janos Sallai
<[email protected]>wrote:
> Xiaohui:
>
> I have not seen this issue. Can you verify that RadioCountToLeds
> works? It's essentially the same application that you describe, with
> 250ms delay instead of 100ms in your case.
>
> Can you put together a simple application that demonstrates this
> "freezing" behavior? I'd be more than happy to take a look at it.
>
> Janos
>
> On Mon, Jan 14, 2013 at 11:22 AM, Xiaohui Liu <[email protected]> wrote:
> > Hi everyone,
> >
> > I'm using CC2420X stack to deliver unicast traffic over 100 links. Every
> > sender transmits with a period of 100 ms. Around 10% of the nodes crash
> > within 3 minutes. I have witnessed similar issue before, don't know if
> they
> > are related. No node crashes if CC2420 stack is used. Does anyone
> encounter
> > this problem using CC2420X? Please do not hesitate to share any thought.
> > Thank you.
> >
> > --
> > -Xiaohui Liu
> > TelosB
> > TinyOS 2.1.2
> > www.cs.wayne.edu/xliu/
>
--
-Xiaohui Liu
TelosB
TinyOS 2.1.2
www.cs.wayne.edu/xliu/
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help