RE: [Tinyos-help] reading RSSI as fast as possible using Micaz (CC2420+ MIB520 usb interface)
I wrote an application to read RSSI values with 1Khz sampling frequency regardless of whether a packet is being received or not and store them in Flash memory, and after finishing collection, it sends all stored data to serial. (Java application receives the data) You can download it in the following link. http://sing.stanford.edu/abbado/RssiSampling.tar Make sure that your machine should be under TinyOS 2.x T2 release and with TelosB.Hope this helps. HyungJune Lee From: "Nick Soldner" <[EMAIL PROTECTED]>To: tinyos-help@Millennium.Berkeley.EDUSubject: [Tinyos-help] reading RSSI as fast as possible using Micaz (CC2420+ MIB520 usb interface)Date: Tue, 16 Jan 2007 15:00:53 +0800 I'm trying to write code which will allow RSSI to be read as fast as possible, as far as I understand it there are roughly three ways to store RSSI, one would be directly to the CC2420 ram, the other being to the Motes 512kb of ram, and the next would be to stream the data through the usb interface of the MIB520. My choice is to record RSSI through the serial interface of the MIB520, mainly because it will allow unlimited storage and I can measure for long periods of time. Right now I read RSSI through pMsg->strengh which gives the RSSI for incoming packets. I am more interested however in continually measuring RSSI both during a clear channel and during packet reception. From my knowledge HPLCC2420.read (CC2420_RSSI) is the most direct route to getting RSSI from the CC2420 and that RSSI is always available regardless of wether a packet is being received or not. I am unclear however how to call this function as fast as possible, ideally I would like RSSI to be sampled at 1kHz and continually streamed through the USB serial interface. Since the data rate for the serial transfer is 57.6kbps I'm assuming the most RSSI's you can get is somewhere on the order of 3000RSSI's/s so it seems feasible.On another note I'm having difficultly calling HPLCC2420.read (CC2420_RSSI) directly from my code, calling pMsg->strength is no problem however since I need RSSI during the time no packets are being received I assume I need to call HPLCC2420.read (CC2420_RSSI).Let me know if you have any questions (I'm sure you do!)Thanks,Nick >___>Tinyos-help mailing list>Tinyos-help@Millennium.Berkeley.EDU>https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help Fixing up the home? Live Search can help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Reading RSSI values from Tmote Sky
I think that your problem is caused by the difference of TinyOS version. You have to install the recent TinyOS T2 release in order to use the application. Hope this helps. Hyungjune - Original Message - From: "Milton Aguiar" <[EMAIL PROTECTED]> To: "HyungJune Lee" <[EMAIL PROTECTED]>; ; <[EMAIL PROTECTED]> Sent: Thursday, December 28, 2006 3:26 AM Subject: Re: [Tinyos-help] Reading RSSI values from Tmote Sky Hi all: When i've tried to compile this application for tmotes an error occurs: NoiseAppC.nc:5:28: StorageVolumes.h: No such file or directory : failed to preprocess NoiseAppC.nc make: *** [exe0] Error 1 I put the applications files in the directory under C:\cygwin\opt\moteiv\apps\RssiSampling. I see that the problem is with the file StorageVolumes.h. How can i solve this problem?? Thanks in advance Milton Aguiar HyungJune Lee escreveu: I have written an application to read RSSI values with 1KHz sampling frequency and store them in flash memory for later retrieval. It works under TinyOS T2 and TelosB. It would be helpful to refer to my codes. You can download it in the following link. http://sing.stanford.edu/abbado/RssiSampling.tar Hope this helps. Hyungjune From: /Milton Aguiar <[EMAIL PROTECTED]>/ To: /tinyos-help@Millennium.Berkeley.EDU, [EMAIL PROTECTED]/ Subject: /[Fwd: Re: [Tinyos-help] Reading RSSI values from Tmote Sky]/ Date: /Wed, 20 Dec 2006 17:16:02 +/ > From: /Milton Aguiar <[EMAIL PROTECTED]>/ To: /Joe Polastre <[EMAIL PROTECTED]>/ Subject: /Re: [Tinyos-help] Reading RSSI values from Tmote Sky/ Date: /Wed, 20 Dec 2006 17:14:23 +/ >Hi: > >And how i can do what you have suggested? The applicaion that i use >wasn't developed by me. Can you give a help? > >Thanks ! > >Milton > > >Joe Polastre escreveu: >>Your application needs to handle the RSSI.dataReady() event or >>provide >>a default event handler. >> >>-Joe >> >>On 12/20/06, Milton Aguiar <[EMAIL PROTECTED]> wrote: >>>Hi all: >>> >>>I've tryed to do what is suggested in >>>http://www.moteiv.com/community/Reading_RSSI_values_from_Tmote_Sky >>>but >>>when i try to compile my application an error occurs: >>> >>>In component `CC2420ControlM': >>>C:/cygwin/opt/moteiv/tos/lib/CC2420Radio/CC2420ControlM.nc: In >>>function >>>`CmdRSSI.granted': >>>C:/cygwin/opt/moteiv/tos/lib/CC2420Radio/CC2420ControlM.nc:502: >>>RSSI.dataReady not connected >>>make: *** [exe0] Error 1 >>> >>>I don't know what is the problem. >>> >>>Can someone give a help? >>> >>>Thanks in advance >>> >>>Milton Aguiar >>> >>> >>>___ >>>Tinyos-help mailing list >>>Tinyos-help@Millennium.Berkeley.EDU >>>https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >>> >>> >> >> > > >___ >Tinyos-help mailing list >Tinyos-help@Millennium.Berkeley.EDU >https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help Type your favorite song. Get a customized station. Try MSN Radio powered by Pandora. <http://g.msn.com/8HMAENUS/2752??PS=47575> ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Reading RSSI values from Tmote Sky
I have written an application to read RSSI values with 1KHz sampling frequency and store them in flash memory for later retrieval. It works under TinyOS T2 and TelosB. It would be helpful to refer to my codes. You can download it in the following link. http://sing.stanford.edu/abbado/RssiSampling.tar Hope this helps. Hyungjune From: Milton Aguiar <[EMAIL PROTECTED]>To: tinyos-help@Millennium.Berkeley.EDU, [EMAIL PROTECTED]Subject: [Fwd: Re: [Tinyos-help] Reading RSSI values from Tmote Sky]Date: Wed, 20 Dec 2006 17:16:02 +> From: Milton Aguiar <[EMAIL PROTECTED]>To: Joe Polastre <[EMAIL PROTECTED]>Subject: Re: [Tinyos-help] Reading RSSI values from Tmote SkyDate: Wed, 20 Dec 2006 17:14:23 +>Hi:>>And how i can do what you have suggested? The applicaion that i use >wasn't developed by me. Can you give a help?>>Thanks !>>Milton>>>Joe Polastre escreveu:>>Your application needs to handle the RSSI.dataReady() event or >>provide>>a default event handler.-JoeOn 12/20/06, Milton Aguiar <[EMAIL PROTECTED]> wrote:>>>Hi all:>>I've tryed to do what is suggested in>>>http://www.moteiv.com/community/Reading_RSSI_values_from_Tmote_Sky >>>but>>>when i try to compile my application an error occurs:>>In component `CC2420ControlM':>>>C:/cygwin/opt/moteiv/tos/lib/CC2420Radio/CC2420ControlM.nc: In >>>function>>>`CmdRSSI.granted':>>>C:/cygwin/opt/moteiv/tos/lib/CC2420Radio/CC2420ControlM.nc:502:>>>RSSI.dataReady not connected>>>make: *** [exe0] Error 1>>I don't know what is the problem.>>Can someone give a help?>>Thanks in advance>>Milton Aguiar>___>>>Tinyos-help mailing list>>>Tinyos-help@Millennium.Berkeley.EDU>>>https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >___>Tinyos-help mailing list>Tinyos-help@Millennium.Berkeley.EDU>https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help Type your favorite song. Get a customized station. Try MSN Radio powered by Pandora. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] How to compile java?
Spam detection software, running on the system "mail.Millennium.Berkeley.EDU", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: I went through the exactly same problem before. Instead of using export CLASSPATH=`cygpath -w cygwin/$TOSROOT/support/sdk/java/tinyos.jar`, try to use export CLASSPATH=`cygpath -w cygwin/$TOSROOT/support/sdk/java/` or [...] Content analysis details: (5.3 points, 5.0 required) pts rule name description -- -- 0.5 FROM_ENDS_IN_NUMS From: ends in numbers 0.4 DNS_FROM_RFC_ABUSE RBL: Envelope sender in abuse.rfc-ignorant.org 1.4 DNS_FROM_RFC_POST RBL: Envelope sender in postmaster.rfc-ignorant.org 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay 3.0 FORGED_MUA_OUTLOOK Forged mail pretending to be from MS Outlook --- Begin Message --- I went through the exactly same problem before. Instead of using export CLASSPATH=`cygpath -w cygwin/$TOSROOT/support/sdk/java/tinyos.jar`, try to use export CLASSPATH=`cygpath -w cygwin/$TOSROOT/support/sdk/java/` or export CLASSPATH=`cygpath -w $TOSROOT/support/sdk/java/` (in my environment without cygwin directory) . Hyungjune - Original Message - From: "Orlando Delgadillo" <[EMAIL PROTECTED]> To: Sent: Thursday, August 31, 2006 11:37 PM Subject: [Tinyos-help] How to compile java? im running tinyos-2.x and trying to do Tutorial lesson 4 but i have problems compiling TestSerial. Im able to compile Listen in java directory but not in the apps directory For example in /opt/tinyos-2.x/apps/tests/TestSerial i write javac TestSerial.java and it gives a buch of errors... I dont understand why.. my environmental values are set in /etc/profile.d/tinyos.s TOSROOT="/opt/tinyos-2.x" export TOSROOT TOSDIR="$TOSROOT/tos" export TOSDIR export CLASSPATH=`cygpath 뻲 cygwin/$TOSROOT/support/sdk/java/tinyos.jar` export CLASSPATH="$CLASSPATH;." MAKERULES="$TOSROOT/support/make/Makerules" export MAKERULES PATH="/opt/msp430/bin:$PATH" export PATH # Extend path for java type java >/dev/null 2>/dev/null || PATH=`/usr/local/bin/locate-jre --java`:$PATH type javac >/dev/null 2>/dev/null || PATH=`/usr/local/bin/locate-jre --javac`:$PATH echo $PATH | grep -q /usr/local/bin || PATH=/usr/local/bin:$PATH Can someone please help me!.. thanks orlando _ WIN YOUR FATHER A FANTASTIC DAY ?50 PRIZES TO WIN http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fadsfac%2Enet%2Flink%2Easp%3Fcc%3DCAD002%2E21377%2E0%26clk%3D1%26creativeID%3D41189&_t=753911014&_r=emailtagline_cadbury&_m=EXT ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help --- End Message --- ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: Re: [Tinyos-help] How to access the flash on TELOSB
Spam detection software, running on the system "mail.Millennium.Berkeley.EDU", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Those codes are for tiny os 2.x beta2 version. I should have commented it. Sorry. For tiny os 1.x, you can refer to tinyos-1.x/apps/TestNewFlash . [...] Content analysis details: (5.3 points, 5.0 required) pts rule name description -- -- 0.5 FROM_ENDS_IN_NUMS From: ends in numbers 0.4 DNS_FROM_RFC_ABUSE RBL: Envelope sender in abuse.rfc-ignorant.org 1.4 DNS_FROM_RFC_POST RBL: Envelope sender in postmaster.rfc-ignorant.org 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay 3.0 FORGED_MUA_OUTLOOK Forged mail pretending to be from MS Outlook --- Begin Message --- Those codes are for tiny os 2.x beta2 version. I should have commented it. Sorry. For tiny os 1.x, you can refer to tinyos-1.x/apps/TestNewFlash . Hope this helps. Hyungjune - Original Message - From: "Vincent" <[EMAIL PROTECTED]> To: "HyungJune Lee" <[EMAIL PROTECTED]> Cc: "Tinyos-help" Sent: Thursday, August 31, 2006 7:18 AM Subject: Re: Re: [Tinyos-help] How to access the flash on TELOSB Dear Mr Lee, Sorry to bother you again. I use Telos B and Tinyos 1.1. So there is no "tests" folder in my apps. Where can I get some more information for my specific case? Again, thanks a million. Best regards, Vincent === At 2006-08-30, 22:00:28 you wrote: === Refer to TEP103 ( http://www.tinyos.net/tinyos-2.x/doc/html/tep103.html ) and some codes in apps/tests/storage/ . Hyungjune - Original Message - From: "Vincent" <[EMAIL PROTECTED]> To: "Tinyos-help" Sent: Wednesday, August 30, 2006 8:34 PM Subject: [Tinyos-help] How to access the flash on TELOSB Hi, There is a 1M external flash for data logging in TELOSB. How can I implementate it with writing and reading data? Similar to the internal flash on the msp430? Sorry for bother again. Thanks. Best regards, Vincent [EMAIL PROTECTED] 2006-08-30 ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help = = = = = = = = = = = = = = = = = = = = Vincent [EMAIL PROTECTED] 2006-08-31 --- End Message --- ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] How to access the flash on TELOSB
Spam detection software, running on the system "mail.Millennium.Berkeley.EDU", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Refer to TEP103 ( http://www.tinyos.net/tinyos-2.x/doc/html/tep103.html ) and some codes in apps/tests/storage/ . Hyungjune [...] Content analysis details: (5.3 points, 5.0 required) pts rule name description -- -- 0.5 FROM_ENDS_IN_NUMS From: ends in numbers 0.4 DNS_FROM_RFC_ABUSE RBL: Envelope sender in abuse.rfc-ignorant.org 1.4 DNS_FROM_RFC_POST RBL: Envelope sender in postmaster.rfc-ignorant.org 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay 3.0 FORGED_MUA_OUTLOOK Forged mail pretending to be from MS Outlook --- Begin Message --- Refer to TEP103 ( http://www.tinyos.net/tinyos-2.x/doc/html/tep103.html ) and some codes in apps/tests/storage/ . Hyungjune - Original Message - From: "Vincent" <[EMAIL PROTECTED]> To: "Tinyos-help" Sent: Wednesday, August 30, 2006 8:34 PM Subject: [Tinyos-help] How to access the flash on TELOSB Hi, There is a 1M external flash for data logging in TELOSB. How can I implementate it with writing and reading data? Similar to the internal flash on the msp430? Sorry for bother again. Thanks. Best regards, Vincent [EMAIL PROTECTED] 2006-08-30 ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help --- End Message --- ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help