You can use a timer . when timer.fired event occurs , read sensors data , then according to weather condition , you can reconfigure your timer to change the sampling interval.
On 5/6/09, [email protected] <[email protected]> wrote: > Send Tinyos-help mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Tinyos-help digest..." > > > Today's Topics: > > 1. Re: Ask how to make sink as a sender on tinyos 1.1.10? > (Michael Schippling) > 2. Re: for problem (Michael Schippling) > 3. Re: Ask how to make sink as a sender on tinyos 1.1.10? > (ma. pratama) > 4. Re: Developing a Reactive System (Michael Schippling) > 5. Re: Ask how to make sink as a sender on tinyos 1.1.10? > (Michael Schippling) > 6. Re: for problem (Michael Schippling) > 7. component not found (Xiaohui Liu) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 06 May 2009 23:53:09 -0600 > From: Michael Schippling <[email protected]> > Subject: Re: [Tinyos-help] Ask how to make sink as a sender on tinyos > 1.1.10? > To: "ma. pratama" <[email protected]> > Cc: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > You can certainly change the base station code to use the Send > interface just like the re-Motes, but I suspect you want to > use the PC host as a message source. In that case see the Send > and SimpleCmd examples in the T1 java code, or TestSerial which > I think is only in T2. > > You can also look at my posted code for bi-directional messaging: > http://www.etantdonnes.com/Motes/robocode.tar.gz > > MS > > ma. pratama wrote: >> Hi all.. >> >> I want to ask all of you how to make a sink / base station act as a >> sender that could send information to other nodes? are there any >> interface or component that could do that sort of thing? please help me.. >> >> Thx.. >> >> -Arif- >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Tinyos-help mailing list >> [email protected] >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > ------------------------------ > > Message: 2 > Date: Wed, 06 May 2009 23:56:31 -0600 > From: Michael Schippling <[email protected]> > Subject: Re: [Tinyos-help] for problem > To: Pramod pp <[email protected]> > Cc: Tinyos-Help <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Please send messages to the help list in case someone (else) can help... > > It looks like you have not installed the entire TOS system, or have > moved things around. As far as I know you need to be under a directory > like: C:\cygwin\opt\tinyos-1.x\apps\Blink... to get the compile system > to work correctly. > > MS > > Pramod pp wrote: >> >> Dear sir; >> >> How is going life and hope you are doing better there? I've >> another problem about compiler. >> >> in TinyOS case, I am using nesC language. lets see this problem and hope >> you will help me to solve this problem. And there is error and how can I >> solve this and how did that appear?? i want to get some information >> about this which I've send u by attach file. Thank you for seeing this >> mail, hope I will get reply soon. >> >> >> Best wishes >> Bohara <Korea/S> >> >> >> >> >> >> ------------------------------------------------------------------------ >> New Email names for you! >> <http://sg.rd.yahoo.com/aa/mail/domainchoice/mail/signature/*http://mail.promotions.yahoo.com/newdomains/aa/> >> >> >> Get the Email name you've always wanted on the new @ymail and @rocketmail. >> Hurry before someone else does! >> ------------------------------------------------------------------------ >> > > > ------------------------------ > > Message: 3 > Date: Wed, 6 May 2009 22:59:42 -0700 (PDT) > From: "ma. pratama" <[email protected]> > Subject: Re: [Tinyos-help] Ask how to make sink as a sender on tinyos > 1.1.10? > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset="iso-8859-1" > > Yes..i want to send the source from the sink that connected to the PC to > other motes.. > Where can i find the send and simplecmd examples in TinyOS 1?? i dont get > what you mean..? > > Thx,. > > --- On Thu, 5/7/09, Michael Schippling <[email protected]> wrote: > > From: Michael Schippling <[email protected]> > Subject: Re: [Tinyos-help] Ask how to make sink as a sender on tinyos > 1.1.10? > To: "ma. pratama" <[email protected]> > Cc: [email protected] > Date: Thursday, May 7, 2009, 1:53 AM > > You can certainly change the base station code to use the Send > interface just like the re-Motes, but I suspect you want to > use the PC host as a message source. In that case see the Send > and SimpleCmd examples in the T1 java code, or TestSerial which > I think is only in T2. > > You can also look at my posted code for bi-directional messaging: > ???http://www.etantdonnes.com/Motes/robocode.tar.gz > > MS > > ma. pratama wrote: >> Hi all.. >> >> I want to ask all of you how to make a sink / base station act as a sender >> that could send information to other nodes? are there any interface or >> component that could do that sort of thing? please help me.. >> >> Thx.. >> >> -Arif- >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Tinyos-help mailing list >> [email protected] >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090506/d2f861ec/attachment-0001.htm > > ------------------------------ > > Message: 4 > Date: Thu, 07 May 2009 00:03:50 -0600 > From: Michael Schippling <[email protected]> > Subject: Re: [Tinyos-help] Developing a Reactive System > To: alvindarjit singh <[email protected]> > Cc: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > #if* directives control compile time behavior. See a good C manual > for some "direction" on this. Wikibooks might help: > http://en.wikibooks.org/wiki/C_Programming > > To fix your specific problem search for XSENSOR_SAMPLE_RATE in > the code and implement some kind of switch based on your detector > input. It will be a little harder then this because I suspect that > XSENSOR_SAMPLE_RATE is set only once, and you want to do it when > your input changes...which then requires sampling and decision > making on some periodic basis... > > MS > > alvindarjit singh wrote: >> Hi Team, >> >> my name's Alvin. >> I wish to develop a Reactive System of sampling data. The desired system >> would have a sampling rate of every 5 minutes during normal weathers and >> it speeds up the sampling rate of every 30 seconds when it detects rain. >> Currently I am using MicaZ, MDA300, MIB520, EC-5 Soil sensors and a RG50 >> Rain Gauge by SEba Hydometrie. >> I have developed a rain sensor using RG50 and PIC16F84A. which outputs a >> high signal when its raining and vice versa, >> >> In order to swap the sampling rate I was thinking of manipulating the >> lines 124-130 of sensorboardApp.h of XMDA300 in Programmers Notepad 2. >> the lines read: >> #ifdef USE_LOW_POWER >> uint32_t XSENSOR_SAMPLE_RATE = 184320; >> #else >> uint32_t XSENSOR_SAMPLE_RATE = 1843; >> #endif >> #endif >> so the idea is to USE_LOW_POWER during normal conditions and disable >> USE_LOW_POWER when it is raining. >> my question is, how do i toggle between USE_LOW_POWER ? >> Is there a way by which the mote which has the rain detector to trigger >> this command, and send it to the base station which later relays it to >> the other motes within the vicinity? >> >> would appreciate the help >> thanks >> >> Best Regards, >> Alvin >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Tinyos-help mailing list >> [email protected] >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > ------------------------------ > > Message: 5 > Date: Thu, 07 May 2009 00:14:24 -0600 > From: Michael Schippling <[email protected]> > Subject: Re: [Tinyos-help] Ask how to make sink as a sender on tinyos > 1.1.10? > To: "ma. pratama" <[email protected]> > Cc: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > I'm still presuming that you want to send messages from the host > machine, through the base station to Re-moteS. To do that look at: > C:\cygwin\opt\tinyos-1.x\apps\SimpleCmd > C:\cygwin\opt\tinyos-1.x\tools\java\net\tinyos\tools\Send.java > > The Send.java program is fairly opaque so look at SimpleCmd first. > My code contains a full impl of a command/reply system targeted > at testing the message rates between host and motes. I hand > generated java classes for the messages, but you can also use > the MIG utility to make, IMHO, higher overhead versions of the > same classes. See parts of the doc/tutorial for a bit more info. > > MS > > ma. pratama wrote: >> Yes..i want to send the source from the sink that connected to the PC to >> other motes.. >> Where can i find the send and simplecmd examples in TinyOS 1?? i dont >> get what you mean..? >> >> Thx,. >> >> --- On *Thu, 5/7/09, Michael Schippling /<[email protected]>/* wrote: >> >> >> From: Michael Schippling <[email protected]> >> Subject: Re: [Tinyos-help] Ask how to make sink as a sender on >> tinyos 1.1.10? >> To: "ma. pratama" <[email protected]> >> Cc: [email protected] >> Date: Thursday, May 7, 2009, 1:53 AM >> >> You can certainly change the base station code to use the Send >> interface just like the re-Motes, but I suspect you want to >> use the PC host as a message source. In that case see the Send >> and SimpleCmd examples in the T1 java code, or TestSerial which >> I think is only in T2. >> >> You can also look at my posted code for bi-directional messaging: >> http://www.etantdonnes.com/Motes/robocode.tar.gz >> >> MS >> >> ma. pratama wrote: >> > Hi all.. >> > >> > I want to ask all of you how to make a sink / base station act as >> a sender that could send information to other nodes? are there any >> interface or component that could do that sort of thing? please help >> me.. >> > >> > Thx.. >> > >> > -Arif- >> > >> > >> > >> > >> >> ------------------------------------------------------------------------ >> > >> > _______________________________________________ >> > Tinyos-help mailing list >> > [email protected] >> </mc/[email protected]> >> > >> >> https://www..millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >> >> <https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help> >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Tinyos-help mailing list >> [email protected] >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > ------------------------------ > > Message: 6 > Date: Thu, 07 May 2009 00:26:35 -0600 > From: Michael Schippling <[email protected]> > Subject: Re: [Tinyos-help] for problem > To: Akankshu Dhawan <[email protected]> > Cc: Tinyos-Help <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Please send messages to the help list, as I am probably clueless... > > My memory of Mica2's indicates that you can free-run the ADCs at > quite high rates -- IIRC, 25 instruction cycles per conversion, > where (I think) each instruction is .5 microsec (but I might be > remembering a PIC controller rather than the ATMEGA), plus whatever > overhead you have in storing the results. YMMV. See the controller > manual for ADC operation. With software overhead 5KHz seems a > reasonable goal...if you have someplace to put the data. > > Transforming 1.x code to 2.x code is something I hope I never have to do. > I think there are some advisory pages on the tinyos.doc website. > There should be no hardware issues since it remains a constant. > > MS > > Akankshu Dhawan wrote: >> Hi Michael >> I recently came across this SoundRecorder code by Mr./Ms Maroti in the >> tinyos-1.x contrib. >> I am currently using tinyos-2.x contrib and m planning to work this code >> to a tinyos-2.x version. >> >> It states that I can get a sampling rate of 14Khz and I wanted to know >> whether the hardware I have is even capable of such sampling (MICA2 >> motes and MTS310CB sensor board) ... I would be happy even with a >> sampling rate of 2-4 KHz and wanted your guidance on transforming 1.x >> code to 2.x and also the kind of hardware issues I might come across. >> >> Regards >> Akankshu Dhawan >> >> On Thu, May 7, 2009 at 1:56 AM, Michael Schippling <[email protected] >> <mailto:[email protected]>> wrote: >> >> Please send messages to the help list in case someone (else) can >> help... >> >> It looks like you have not installed the entire TOS system, or have >> moved things around. As far as I know you need to be under a directory >> like: C:\cygwin\opt\tinyos-1.x\apps\Blink... to get the compile >> system >> to work correctly. >> >> MS >> >> Pramod pp wrote: >> > >> > Dear sir; >> > >> > How is going life and hope you are doing better there? >> I've >> > another problem about compiler. >> > >> > in TinyOS case, I am using nesC language. lets see this problem >> and hope >> > you will help me to solve this problem. And there is error and >> how can I >> > solve this and how did that appear?? i want to get some information >> > about this which I've send u by attach file. Thank you for seeing >> this >> > mail, hope I will get reply soon. >> > >> > >> > Best wishes >> > Bohara <Korea/S> >> > >> > >> > >> > >> > >> > >> >> ------------------------------------------------------------------------ >> > New Email names for you! >> > >> >> <http://sg.rd.yahoo.com/aa/mail/domainchoice/mail/signature/*http://mail.promotions.yahoo.com/newdomains/aa/> >> > >> > Get the Email name you've always wanted on the new @ymail and >> @rocketmail. >> > Hurry before someone else does! >> > >> >> ------------------------------------------------------------------------ >> > >> _______________________________________________ >> Tinyos-help mailing list >> [email protected] >> <mailto:[email protected]> >> >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >> >> >> >> >> -- >> First they ignore you, then they laugh at you, then they fight you, then >> you win. >> - Mahatma Gandhi > > > ------------------------------ > > Message: 7 > Date: Thu, 7 May 2009 02:30:35 -0400 > From: Xiaohui Liu <[email protected]> > Subject: [Tinyos-help] component not found > To: Tinyos-Help <[email protected]> > Message-ID: > <[email protected]> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > In my code, I have > "components LqiRoutingEngineP as ALR; > .... > myComp.StdControl -> ALR.StdControl;" > > Compiler keeps says " component LqiRoutingEngineP not found". I check and > find it's definitely there under "tos.lib.net.lqi", and TOSDIR is also > pointed to $TOSROOT/tos. Any idea on why I get this error since the tinyos > help archive does not contain much related info. Thanks in advance. > > > -Xiaohui > Linux > TOSSIM > tinyos 2.x > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090507/8674c6ab/attachment.htm > > ------------------------------ > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > End of Tinyos-help Digest, Vol 73, Issue 24 > ******************************************* > -- Alireza Pourranjbar [email protected] _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
