If you can't debug it with an LED or two...haha... Actually I have sometimes used a scope and once or twice have been forced to use a logic analyzer.
You should be able to flash the LED exactly as fast as you can execute a while-loop with a toggle in it. There may be a buffer failure. Are you freeing each message buffer as soon as you are done? Is it the sending or receiving side that dies, and how do we know? My speed tests using T1 and mica's of various flavors were able to run fairly fast for-mostly-ever, although 33/second is about the mica2 limit. What platform are you using? MS Eric Decker wrote: > > > On Fri, Jul 22, 2011 at 2:19 PM, Lee Carol <casab...@gmail.com > <mailto:casab...@gmail.com>> wrote: > > Hi, I am writing a program that, every time a packet is sent from > mote, LED light toggles. > > When I increase the packet sending rate to 33Hz, my mote only works > for few seconds then stop. > > I've examined my code and everything seems to work fine. > > Wondering if LED is causing the problem and want to know how fast > the LED can be toggled. > > > probably not. Not much can go wrong with the LED. > > I would recommend that you get a jtag pod and dig into what is actually > going on. trying to debug embedded systems using printfs and led while > doable isnt the most efficient of programmer time. my not so humble > opinion. (I've been doing embedded stuff since the 70's). > > > > Anyone knows? > > Thanks for viewing > > Carol > > _______________________________________________ > Tinyos-help mailing list > Tinyos-help@millennium.berkeley.edu > <mailto:Tinyos-help@millennium.berkeley.edu> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > > > -- > Eric B. Decker > Senior (over 50 :-) Researcher > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Tinyos-help mailing list > Tinyos-help@millennium.berkeley.edu > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help