[Tinyos-devel] strange behaviour in turning the radio on and off on MicaZ in tinyos-2.x

Philip Levis pal at cs.stanford.edu
Wed Jun 28 23:36:42 PDT 2006


On Jun 28, 2006, at 9:35 PM, Jonathan Hui wrote:

> After some testing, I noticed that the FIFOP interrupt was firing
> prematurely on the micaz platform (right after enabling the FIFOP
> interrupt). I've changed the atm128 GPIO interrupt implementation to
> disable and clear interrupt flag before setting the interrupt sense
> control and enabling interrupts again. This seems to have solved the
> issue with the node freezing in your simple test app. See if it makes
> any difference in your full app.

Great. I recall running into this in the old port-from-1.x stack,  
where I had a #ifdef depending on whether it was micaz or telosb in  
the FIFOP code. I think there's just something weird with how the  
atm128 behaves.

I'll test this along with the beta2-candidate and (hopefully) check  
it in for the final beta2 RPM.

Phil


More information about the Tinyos-devel mailing list