You don't have to disable MOTECOM, you need one setting for SF to get
to the serial poet, and then there is a setting...probably in the
tutorial...that allows programs that use BuildSource to attach to
the enet port of SF.
For the Sample error, where is it in the code? There should be some
indication of what went wrong if you trace through. You are getting
packets if you use Listen or ListenRaw, right?
MS
#AMIT SATPATHY# wrote:
I have already managed to rectify the problem below. It was due to my
MOTECOM env settings. I had it set for MicaZ so i have now changed it
for Mica2. But could anyone tell me how i can disable the MOTECOM env so
that i can use SerialForwarder?
Also, now when i run the sampling program - Sample.class, i keep getting
an error that sampling has failed. On both the motes, the TOSBase and
the HFS mote, the red LED lights up. Could anyone tell me what could be
the possible reasons for this? I have not modified the module or
interfaces in any way. The only thing that i have changed is the MAKEFILE.
Thanks and regards.
Amit.
------------------------------------------------------------------------
*From:* [EMAIL PROTECTED] on behalf of #AMIT
SATPATHY#
*Sent:* Thu 3/9/2006 4:51 PM
*To:* [EMAIL PROTECTED]
*Cc:* [email protected]
*Subject:* Re: [Tinyos-help] High Frequency Sampling - Sample.class run
error
Hi. I noticed that my mail cannot be viewed on the website so i am
sending it from another e-mail address.
I have tried to run the High Frequency Program from the xbow/apps folder
and i get the following error:
---------- Capture Output ----------
"C:\Program Files\Crossbow\Crimson\IDE.bat"
"C:\tinyos\cygwin\opt\tinyos-1.x\contrib\xbow\apps\HighFrequencySampling2"
"c:\tinyos\cygwin\bin" "java Sample 200 20000"
#############################
Command: java Sample 200 20000
Cygwin: c:\tinyos\cygwin\bin
Directory:
C:\tinyos\cygwin\opt\tinyos-1.x\contrib\xbow\apps\HighFrequencySampling2
Directory: /opt/tinyos-1.x/contrib/xbow/apps/HighFrequencySampling2
#############################
Could not find a platform specific version of TOSMsg
java.lang.ClassNotFoundException: net.tinyos.message.unknown.TOSMsg
java.lang.ClassNotFoundException: net.tinyos.message.unknown.TOSMsg
at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
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)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at
net.tinyos.message.MessageFactory.instantiateTOSMsg(MessageFactory.java:115)
at net.tinyos.message.MessageFactory.createTOSMsg(MessageFactory.java:44)
at net.tinyos.message.Sender.<init>(Sender.java:87)
at net.tinyos.message.MoteIF.init(MoteIF.java:173)
at net.tinyos.message.MoteIF.<init>(MoteIF.java:155)
at Sample.app(Sample.java:70)
at Sample.main(Sample.java:49)
java.lang.NullPointerException
at net.tinyos.message.Sender.send(Sender.java:120)
at net.tinyos.message.MoteIF.send(MoteIF.java:200)
at Sample.app(Sample.java:76)
at Sample.main(Sample.java:49)
I am currently running this program on 2 Mica2 motes. I have installed
TOSBase on one and the program on the other. When i run the command
"java Sample 200 20000", i get the error as above. I have opened Serial
Forwarder as instructed by the readme file. The error is that it can't
find a *platform specific version of TOSMsg*. Could anyone tell me how
to resolve this error?
Thank you and regards.
Amit.
------------------------------------------------------------------------
_______________________________________________
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