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: [email protected]
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
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help