[Tinyos-help] Motes and ADCDataReadyEvent

Antonio C pippo0783 at yahoo.it
Mon Oct 22 06:35:41 PDT 2007


Hi all,
I was trying to implement a simple program: 
I have an application like Sense in nesc and a script in tython.
I have a file in which there are some values that i have to put in the motes with setADCValue; now i run TOSSIM and tython; in the application there's a timer that is inizialized as (TIMER_REPEAT,n), so every n ms there is the event Timer.fired(), that calls ADC.GetData().This function reads a value in a random mote,i guess, so i can "catch" mote ID with event.getMoteID() in my tython script. What I want, and I'm not able to do, it's to make it catching the ID of the mote that i want...how can i do this?
  
thx
A.

ps
how does ADC.getData() works? It reads a value in every mote and then chooses a random mote or not?

       
---------------------------------

---------------------------------
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20071022/819bef8e/attachment.htm


More information about the Tinyos-help mailing list