Re: [Tinyos-help] high frequency sampling

2008-05-01 Thread Eric Keller
I think you should be able to use DMA under tinyos-2.x.  The issue
then becomes a problem of processing all the data before the next
frame of data is available.  You may want to look into using the
hardware multiplier.
Eric

On Mon, Apr 28, 2008 at 2:39 AM, kuldeep m <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'am working on acoustic sensors available with SBTv80 attached to TelosB
> mote. The main objective is to process acoustic signals at very high
> frequency of around 8-10 Khz for foot step detection.  At present we are
> using TinyOS-1.x with millisec granular timer to drive the data collection
> using ADC.getData and ADC.dataReady combination.
>
> I have come across earlier posting on this topic in 2005
> (http://mail.millennium.berkeley.edu/pipermail/tinyos-users/2005-January/000878.html)
> wherein  getContinuousADCData has been suggested, and it was mentioned that
> with 8KHz sampling the mote should be dedicated for acoustic processing
> only.
>
> In view of the above, what is the recommended practice to achieve high
> sampling rates so that other activities such as communication, signal
> processing are not disrupted ?
>
> Thank you
> Regards
>  Kuldeep
>
>
> ___
>  Tinyos-help mailing list
>  Tinyos-help@millennium.berkeley.edu
>  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] high frequency sampling

2008-04-27 Thread kuldeep m
Hi,

I'am working on acoustic sensors available with SBTv80 attached to TelosB
mote. The main objective is to process acoustic signals at very high
frequency of around 8-10 Khz for foot step detection.  At present we are
using TinyOS-1.x with millisec granular timer to drive the data collection
using ADC.getData and ADC.dataReady combination.

I have come across earlier posting on this topic in 2005 (
http://mail.millennium.berkeley.edu/pipermail/tinyos-users/2005-January/000878.html)
wherein  getContinuousADCData has been suggested, and it was mentioned that
with 8KHz sampling the mote should be dedicated for acoustic processing
only.

In view of the above, what is the recommended practice to achieve high
sampling rates so that other activities such as communication, signal
processing are not disrupted ?

Thank you
Regards
Kuldeep
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] High Frequency Sampling class path errors

2007-02-06 Thread Michael Schippling

Did you run the whole jmakefile in the HFS directory?
It generates a bunch of app specific message classes,
but I'm not sure that is the real problem...
MS


Chris Byers wrote:

Dear TinyOS,

 

I am trying to run the High Frequency Sampling program and have been 
following the README.  When I get to the command:  java Sample 200 2


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 Sample 200 2"


#

Command:   java Sample 200 2

Cygwin:c:\tinyos\cygwin\bin

Directory: C:\tinyos\cygwin\opt\tinyos-1.x\apps\HighFrequencySampling

Directory: /opt/tinyos-1.x/apps/HighFrequencySampling

#

 


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.(Sender.java:87)

at net.tinyos.message.MoteIF.init(MoteIF.java:173)

at net.tinyos.message.MoteIF.(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)

 


Could anyone please tell me what I should do to resolve this error?

 


Thanks,

 


Chris




___
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


[Tinyos-help] High Frequency Sampling class path errors

2007-02-06 Thread Chris Byers
Dear TinyOS,

 

I am trying to run the High Frequency Sampling program and have been
following the README.  When I get to the command:  java Sample 200 2


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 Sample 200 2"

#

Command:   java Sample 200 2

Cygwin:c:\tinyos\cygwin\bin

Directory: C:\tinyos\cygwin\opt\tinyos-1.x\apps\HighFrequencySampling

Directory: /opt/tinyos-1.x/apps/HighFrequencySampling 

#

 

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.(Sender.java:87)

at net.tinyos.message.MoteIF.init(MoteIF.java:173)

at net.tinyos.message.MoteIF.(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)

 

Could anyone please tell me what I should do to resolve this error?

 

Thanks,

 

Chris

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] High Frequency Sampling using TOSSIM

2007-01-22 Thread Robert Stewart
Hi
I am trying to use a mica2dot to perform some high frequency sampling. I have 
been trying to use the High Frequency Sampling example program and have 
modified it to work on a mica2dot. There are some bugs in the code though and I 
have been trying to debug it using TOSSIM. The problem that I have not been 
able to overcome is that when trying to do a make pc I get the error messages
 
MicroTimerM.nc:141: old-style parameter lists not supported 
MicroTimerM.nc:141: warning: return-type defaults to 'int'
 
These errors are in reference to the following code in MicroTimerM.nc which 
signals that the micro timer has fired
 
   TOSH_SIGNAL(SIG_OUTPUT_COMPARE1A) {
   signal MicroTimer.fired();
}
 
If anyone can give me any assistance it would be greatly appreciated.
Rob Stewart
 


COMPANY DISCLAIMER:
Please note the content of this message is commercial in confidence. If you are 
not the intended recipient, please delete the message from your system and send 
a reply back to the sender.
This company is not liable for any loss, damage, claims, cost demand or expense 
whatsoever and howsoever arising in connection with or out of the use of data 
supplied in this e-mail transmission. Whilst virus scanning software is 
utilised by this company, no responsibility is taken for any virus damage that 
may originate from this transmission, and the receiver is urged to scan this 
transmission and any attachments for computer viruses.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] high frequency sampling

2006-09-12 Thread Michael Schippling

In general you can only expect about 100 TOS messages per second
in the best case. If you are trying to send more than that you
will loose all the overflow. You can aggregate multiple data
samples into one message but that still gives you (with a 30 byte
payload in each packet) only about 1500 samples/sec...

I assume your description of the sampled data that you see is the
result of aliasing, but you would have to look at the individual
samples to get a better idea.

MS


siva prasad wrote:

hi all...
i hav some doubts
i hav modified the delta application such tht it will read the external 
ADC signal...it was successful...
 
--> i hav sampled a signal of 0.5V(1Hz) sinusoidal signal at 1ms...i am 
losing lot of packets..

 wat might be the reason...any remedies?
 
--> wat is the maximum data rate tht we can expect from moteiv motes...?

 on wat factors this rate will depend?
 
--> the sinusoidal signal tht it was showing is too much thick(just like 
a band)...why is it so..?
 
really need help in this areapls help me
 
-siva katru
 
 





___
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


[Tinyos-help] high frequency sampling

2006-09-12 Thread siva prasad
hi all...
i hav some doubts
i hav modified the delta application such tht it will read the external ADC signal...it was successful...
 

--> i hav sampled a signal of 0.5V(1Hz) sinusoidal signal at 1ms...i am losing lot of packets..
 wat might be the reason...any remedies?
 
--> wat is the maximum data rate tht we can expect from moteiv motes...?
 on wat factors this rate will depend?
 
--> the sinusoidal signal tht it was showing is too much thick(just like a band)...why is it so..?
 
really need help in this areapls help me
 
-siva katru
 
 
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] High Frequency Sampling - Sample.class run error

2006-03-10 Thread Michael Schippling

At this point I'm afraid my online debugging skills have failed.
sorry.
MS

#AMIT SATPATHY# wrote:
Its not in the code. When i compile the code, it compiles successfully. 
However, after i upload to the motes and run the Sample.class program, 
the program runs and then after a while(for like 2 seconds), message 
comes up in the cygwin window saying that the sampling has failed. No 
error code or anything else is stated. The program terminates and the 
control is returned to me. I do not receive any packets at all as i have 
not run the GetData.class yet. I'm using the MOTECOM command to transmit 
informaton to the TOSBase station. I have not tried Serial Forwarder as yet.



*From:* Michael Schippling [mailto:[EMAIL PROTECTED]
*Sent:* Fri 3/10/2006 12:47 PM
*To:* #AMIT SATPATHY#
*Cc:* tinyos-help@Millennium.Berkeley.EDU
*Subject:* Re: [Tinyos-help] High Frequency Sampling - Sample.class run 
error


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:* tinyos-help@Millennium.Berkeley.EDU
 > *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 2"
 > #
 > Command:   java Sample 200 2
 > 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.(Sender.java:87)
 >  at net.tinyos.message.MoteIF.init(MoteIF.java:173)
 >  at net.tinyos.message.MoteIF.(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

RE: [Tinyos-help] High Frequency Sampling - Sample.class run error

2006-03-09 Thread #AMIT SATPATHY#
Title: Re: [Tinyos-help] High Frequency Sampling - Sample.class run error






Its not in the code. 
When i compile the code, it compiles successfully. However, after i upload 
to the motes and run the Sample.class program, the program runs and then after a 
while(for like 2 seconds), message comes up in the cygwin window saying 
that the sampling has failed. No error code or anything else is stated. The 
program terminates and the control is returned to me. I do not receive any 
packets at all as i have not run the GetData.class yet. I'm using the MOTECOM 
command to transmit informaton to the TOSBase station. I have not tried Serial 
Forwarder as yet.


From: Michael Schippling 
[mailto:[EMAIL PROTECTED]Sent: Fri 3/10/2006 12:47 PMTo: 
#AMIT SATPATHY#Cc: 
tinyos-help@Millennium.Berkeley.EDUSubject: Re: [Tinyos-help] High 
Frequency Sampling - Sample.class run error

You don't have to disable MOTECOM, you need one setting for SF 
to getto the serial poet, and then there is a setting...probably in 
thetutorial...that allows programs that use BuildSource to attach tothe 
enet port of SF.For the Sample error, where is it in the code? There 
should be someindication of what went wrong if you trace through. You are 
gettingpackets 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:* tinyos-help@Millennium.Berkeley.EDU> 
*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 2"> 
#> Command:   java Sample 200 
2> 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.(Sender.java:87)>  at 
net.tinyos.message.MoteIF.init(MoteIF.java:173)>  at 
net.tinyos.message.MoteIF.(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 2", 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

Re: [Tinyos-help] High Frequency Sampling - Sample.class run error

2006-03-09 Thread Michael Schippling

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:* tinyos-help@Millennium.Berkeley.EDU
*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 2"

#
Command:   java Sample 200 2
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.(Sender.java:87)
 at net.tinyos.message.MoteIF.init(MoteIF.java:173)
 at net.tinyos.message.MoteIF.(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 2", 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
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


RE: [Tinyos-help] High Frequency Sampling - Sample.class run error

2006-03-09 Thread #AMIT SATPATHY#



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 PMTo: 
[EMAIL PROTECTED]Cc: 
tinyos-help@Millennium.Berkeley.EDUSubject: 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 
2"#Command:   java Sample 200 
2Cygwin:    c:\tinyos\cygwin\binDirectory: 
C:\tinyos\cygwin\opt\tinyos-1.x\contrib\xbow\apps\HighFrequencySampling2Directory: 
/opt/tinyos-1.x/contrib/xbow/apps/HighFrequencySampling2 
#
Could not find a platform specific version of 
TOSMsgjava.lang.ClassNotFoundException: 
net.tinyos.message.unknown.TOSMsgjava.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.(Sender.java:87) at 
net.tinyos.message.MoteIF.init(MoteIF.java:173) at 
net.tinyos.message.MoteIF.(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 2", 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
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] High Frequency Sampling - Sample.class run error

2006-03-09 Thread #AMIT SATPATHY#


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 
2"#Command:   java Sample 200 
2Cygwin:    c:\tinyos\cygwin\binDirectory: 
C:\tinyos\cygwin\opt\tinyos-1.x\contrib\xbow\apps\HighFrequencySampling2Directory: 
/opt/tinyos-1.x/contrib/xbow/apps/HighFrequencySampling2 
#
Could not find a platform specific version of 
TOSMsgjava.lang.ClassNotFoundException: 
net.tinyos.message.unknown.TOSMsgjava.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.(Sender.java:87) at 
net.tinyos.message.MoteIF.init(MoteIF.java:173) at 
net.tinyos.message.MoteIF.(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 2", 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
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] High Frequency Sampling - Sample.class run error

2006-03-08 Thread Amit Satpathy

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 2"#Command:   java Sample 200 2Cygwin:    c:\tinyos\cygwin\binDirectory: C:\tinyos\cygwin\opt\tinyos-1.x\contrib\xbow\apps\HighFrequencySampling2Directory: /opt/tinyos-1.x/contrib/xbow/apps/HighFrequencySampling2 #
Could not find a platform specific version of TOSMsgjava.lang.ClassNotFoundException: net.tinyos.message.unknown.TOSMsgjava.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.(Sender.java:87) at net.tinyos.message.MoteIF.init(MoteIF.java:173) at net.tinyos.message.MoteIF.(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 2", 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.





From:  "Amit Satpathy" <[EMAIL PROTECTED]>To:  [EMAIL PROTECTED]CC:  tinyos-help@Millennium.Berkeley.EDUSubject:  Re: [Tinyos-help] High Frequency Sampling - Sample.class run errorDate:  Mon, 06 Mar 2006 10:06:57 +0800
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.EDUSubject: Re: [Tinyos-help] High Frequency Sampling - Sample.class run errorDate: Fri, 03 Mar 2006 17:09:48 -0700I'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 needto try it either. Have not actually used the HFS program but themica 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 undercontrib/xbow, do it. The radio parameter settings under the 'normal'app tree are not very good vis 
mica2.MSAmit 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 >TO

Re: [Tinyos-help] High Frequency Sampling - Sample.class run error

2006-03-05 Thread Amit Satpathy
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

Re: [Tinyos-help] High Frequency Sampling - Sample.class run error

2006-03-03 Thread Michael Schippling

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 2" , 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

Re: [Tinyos-help] High Frequency Sampling - Sample.class run error

2006-03-02 Thread Amit Satpathy

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 2" , 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 2"

#
Command:   java -cp . Sample 200 2
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.d

Re: [Tinyos-help] High Frequency Sampling - Sample.class run error

2006-03-02 Thread Michael Schippling

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 2" , 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 2"

#
Command:   java -cp . Sample 200 2
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 2" 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 

Re: [Tinyos-help] High Frequency Sampling - Sample.class run error

2006-03-02 Thread Amit Satpathy
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 2" , 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 2"

#
Command:   java -cp . Sample 200 2
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 2" 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


Re: [Tinyos-help] High Frequency Sampling - Sample.class run error

2006-03-02 Thread Michael Schippling

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 2" , 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 2"

#
Command:   java -cp . Sample 200 2
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 2" 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


[Tinyos-help] High Frequency Sampling - Sample.class run error

2006-03-02 Thread Amit Satpathy

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 2" , 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 2"

#
Command:   java -cp . Sample 200 2
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 2" 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