Hi all, I have a question on ADC.getContinuousData. In my progect I have 4 sensors mount on Tmote sky and I want to get data from them periodically. I have set a timer and at every Time.fired() I switch from a case structure for get data of a different sensor. The problem is that this way seems very slowly: I set Timer2<TMilli> at 1 so in 1 second I must have about 1000 data but I have only 100. The time for wake up a sensor, get data from it and send the ADC.dataReady seems to be 10 ms. So I try ADC.getContinuousData for avoid wake up the sensor every time and with it I have about 1000 data at second. The problem is that the switch case don't work because ADC.getContinuousData continue to work on the same sensor. How can I do to switch the sensor using ADC.getContinuousData? And how can I get out of all ADC.getContinuousData? When I have data from all 4 sensors I want save them and I do a task for do it but in ADC.getContinuousData, the command post MyTask() doesn't work!! Thanks in advance.
__________________________________________________ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
