Thanks a lot MS! I'll try to import the High Frequency Sampling program into the xbow/apps folder and see if it performs properly there.

Amit.


From: Michael Schippling <[EMAIL PROTECTED]>
To: Amit Satpathy <[EMAIL PROTECTED]>
CC: tinyos-help@Millennium.Berkeley.EDU
Subject: Re: [Tinyos-help] High Frequency Sampling - Sample.class run error
Date: Fri, 03 Mar 2006 17:09:48 -0700

I'm not sure MicaHWVerify works with the 'Z's I haven't tried it.
If you are getting radio comm from other programs you don't need
to try it either. Have not actually used the HFS program but the
mica systems are very similar so I would expect it to work ok.

One thing to try with your '2's...if you are not compiling under
contrib/xbow, do it. The radio parameter settings under the 'normal'
app tree are not very good vis mica2.

MS

Amit Satpathy wrote:
MS,
I have tried with the CntToLedsAndRfm and RfmToLeds on the Mica2 motes. They are not working. However, with the Micaz motes, they work. So i believe that the problem all the time was that one of my Mica2 mote is not functioning properly. Perhaps, the radio may have been damaged and therefore, that could have been contributing to the Serial Forwarder problem.

Since my Mica2 motes are damaged, i'm thinking of using the Micaz motes that i have. Do i have to change anything in the High Frequency Sampling program or the MicaHWVerify program to make it compatible with the Micazs? I am currently using the latest version of TinyOS that is available from the website.

Thanks and regards.

Amit.


From: Michael Schippling <[EMAIL PROTECTED]>
To: Amit Satpathy <[EMAIL PROTECTED]>
CC: tinyos-help@Millennium.Berkeley.EDU
Subject: Re: [Tinyos-help] High Frequency Sampling - Sample.class run error
Date: Thu, 02 Mar 2006 23:43:55 -0700

Java looks ok, but is not connecting to TOSBase...don't use GenericBase.
Make sure you have a MOTECOM environment variable set to the port that
you have the TOSBase connected to. Like: export [EMAIL PROTECTED]:mica2
Also just plug the HWtest Mote into the programmer and make sure you can
get something from it directly before trying radio comm.

You can try CntToLedsAndRfm and the tools/java/net/tinyos/tools/Listen
program to see if you get any radio comm from the re-Mote (use TOSBase
as your base-station). Also I've been much more successful when compiling
from the contrib/xbow tree, especially with mica2, as it boosts the
radio power to 0dbm. You need to copy the above programs into that tree
and fiddle the makefiles to point to the right things. If you don't have
xbow, you are probably using a long dead version of TOS and should move
up to version 1.1.10.

MS



Amit Satpathy wrote:
Ok.. Thanks for the help. I have tried your solution with MicaHWVerify and i'm still having problems. When i run harware_check java program, i get the following errors now:

---------- Capture Output ----------
"C:\Program Files\Crossbow\Crimson\IDE.bat" "C:\tinyos\cygwin\opt\tinyos-1.x\apps\MicaHWVerify" "c:\tinyos\cygwin\bin" "java hardware_check"
#############################
Command:   java hardware_check
Cygwin:    c:\tinyos\cygwin\bin
Directory: C:\tinyos\cygwin\opt\tinyos-1.x\apps\MicaHWVerify
Directory: /opt/tinyos-1.x/apps/MicaHWVerify
#############################


Hardware check started
Node transmission failure
Terminated with exit code 0

Also, i have used Serial Forwarder in conjunction with this program and it shows that the 10 packets that it has tried to write has failed. I used GenericBase as the fowarder for the base node as suggested by the MicaHWVerify. Similarly, i used TOSBase as well. I get the same errors exactly. Does this mean that my Serial Forwarder is not functioning properly or is there a problem with my JAVA settings?

Thanks and regards.

Amit.

From: Michael Schippling <[EMAIL PROTECTED]>
To: Amit Satpathy <[EMAIL PROTECTED]>
CC: tinyos-help@Millennium.Berkeley.EDU
Subject: Re: [Tinyos-help] High Frequency Sampling - Sample.class run error
Date: Thu, 02 Mar 2006 21:14:37 -0700

The first problem is simply that you have overwritten the classpath
that contains the tools/java files so it can't find MessageListener.
This is a red herring, so stick with the second java invocation.

The real problem is in your second example where, apparently, serial-
Forwarder isn't connecting to your TOSBase mote. I would backup and use
some of the simpler apps, like MicaHWVerify and CntToLedsAndRfm to
verify that you have all the components working correctly.

Also, I think you can bypass serialForwarder and connect
Sample directly to the serial port that goes to TOSBase if you
set your MOTECOM envvar to [EMAIL PROTECTED]:mica2

MS

Amit Satpathy wrote:
Hi.
I am currently trying to run the High Frequency Sampling program in the tinyos-1.x/apps folder on 2 Mica2 motes. I have followed all the instructions written in the readme file. However, when i run Sample.class using the "java -cp . Sample 200 20000" , i get the following error:

---------- Capture Output ----------
"C:\Program Files\Crossbow\Crimson\IDE.bat" "C:\tinyos\cygwin\opt\tinyos-1.x\apps\HighFrequencySampling" "c:\tinyos\cygwin\bin" "java -cp . Sample 200 20000"
#############################
Command:   java -cp . Sample 200 20000
Cygwin:    c:\tinyos\cygwin\bin
Directory: C:\tinyos\cygwin\opt\tinyos-1.x\apps\HighFrequencySampling
Directory: /opt/tinyos-1.x/apps/HighFrequencySampling
#############################

java.lang.NoClassDefFoundError: net/tinyos/message/MessageListener
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
Terminated with exit code 0

When i use "java Sample 200 20000" command, the entire class just hangs and on the Serial Forwarder, it just indicates the write has failed and nothing else happens. The HFS mote does not light the yellow LED and no sampling occurs. Could anyone tell me if there's a solution for this?

Thank you and regards.

Amit Satpathy.
Institute of Infocomm Research.


_______________________________________________
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

Reply via email to