[Tinyos-help] Error in Tutorial on TinyOS webpage?

David tinyos at zeroflag.eu
Mon Jun 15 12:23:12 PDT 2009


Hi there,

I've got some Iris motes and was playing around with them lately. I  
tried to implement some of the tutorials from the TinyOS webpage and  
had trouble to get the Mote-to-Mote communication tutorial to work.  
None of the LEDs were blinking and I thought that maybe I just  
couldn't see the error I made. So I created my own little  
implementation and wrote a little proggy called "Beacon" for one mote  
which simply broadcasts an incrementing counter and another programm  
called "Watcher" which should listen for those packets and display the  
received counter.
This setup produced the same results as the tutorial's example, so I  
started trying things out. What I found now is that the struct which  
contains the nodeid and the counter arrives reversed at the "Watcher"  
mote. The variables for the node-id and counter are interchanged and  
the byteorder seems to be reversed too for the value displayed on the  
"Watcher's" LEDs increases painfully slow allthough every packet seems  
to be received. I guess this is due using AMSend for sending but only  
Receive for receiving.

Now I'm not really sure whether I got things right and the tutorial is  
erroneous or maybe this has something to do with the hardware (Iris) I  
use. Does anyone know that?

And while I'm at it I'd like to ask whether nesC has functions like  
ntoh() and the like and which files need to be included to use them.

Thanks. David.


More information about the Tinyos-help mailing list