Re: [Tinyos-help] Changing the path

2006-03-13 Thread Michael Schippling
in case that isn't as clear as it might seem...

First, if you are not familiar with unix/linux find
some intro material online or at your favorite bookstore.

Then:  cd [dir/dir/dir]
changes directory to someplace in the file tree so
cd /opt/tinyos-1.1.7/tools/scripts
should go to the directory that contains toscheck
(note change -1.1.7 to whatever version of TOS you have).

Also:  pwd
prints the working (current) directory

And:   ls
lists the contents


For the more advanced, the last line in the file /etc/profile
changes directory to $HOME, which is your nominal home dir,
but you can make it go to /opt/tinyos... if you like, so each
time you start the shell it will end up there.


Also, once running the cygwin shell (bash) you can type:
man bash
and have enough to read for the rest of the week...in
general man [command] will tell you something useful about
any command name.

MS

刘巍 wrote:
 
  
   
 Hi,Deepa Mahajan 
  
   
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ~
 $ PWD
 /home/Administrator
  
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ~
 $ CD ..
 bash: CD: command not found
  
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ~
 $ cd ..
  
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] /home
 $ cd ..
  
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] /
 $ pwd
 /
  
 
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] /
 $ cd /opt/tinyos-1.x/tools/scripts/
  
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] /opt/tinyos-1.x/tools/scripts
 $ toscheck
  
  2006-03-13 15:08:12 您在来信中写道: 
  
 
 Hi,
 
 I have installed TinyOS thorugh the windows installation package.
 However, when I open the cygwin bash shell it begins in the home
 subfolder of cygwin. How do I change this so that it will open in
 c:/tinyos so that I can access toscheck. I'm very new at Cygwin and
 have no idea how to change this now. Thanks!
 
 -Deepa
 
 = = = = = = = = = = = = = = = = = = = = = =
 
 致
 礼!
 
刘巍
 
2006-03-13  
 
中国科学院计算技术研究所 
电话:010-62565533-9247
Mail:[EMAIL PROTECTED]  
网址:http://wsn.ict.ac.cn
-
   
   
    
  
   
 
 
 
 
 ___
 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] Tyndall motes

2006-03-13 Thread Gelu Contiu
Hi,

 Does anyone have any documentation on the Tyndall
motes? I have searched the web but I couldn't find
almost nothing. They also work with TinyOS, but the
code is not open source.
 
 I would appreciate any suggested web link or
document.

 Thank you,
 Gelu

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Light barrier application

2006-03-13 Thread Hoell, Christian (EXT)
Hi everyone,
 
I'm currently developing an application counting bottles on a
transportation system. 
I'd like to use the photo sensors on the tmote. 
But it's quite hard for me to detect a bottle passing by without using
an extra light. 
I've also played with a white LED and try to trigger on the reflexion of
the bottles but didn't manage to count all the bottles or I got two or
more triggers per bottle. 
My current approach lookes like that: 
I'm sampling the photo sensor a 10ms the compare the last two values
with the current one and if the present is about 10% bigger than the
former one I'll set a flag (high flag) and the go on sampling and wait
for some value where the present value is about 10% smaller than the
former ones. 
It works ok but as I was telling you before the results are not as good
as they should be. 
Furthermore I think with sampling at 10ms there's also a lot of power
consumed by the microcontroller. 

Could anyone propose a differet approach to me?

Thanks a lot 

Greetings

Christian


 


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


RE: [Tinyos-help] Tyndall motes

2006-03-13 Thread Ciaran Lynch
http://www.cs.ucc.ie/misl/dsystems/HTML/dsys25.php

The Software link on that page gives you an rpm of the software, the
Overview link gives you contact information for the people responsible for
it.


Hope this helps,

Ciaran Lynch

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Gelu
 Contiu
 Sent: 13 March 2006 09:47
 To: tinyos-help@Millennium.Berkeley.EDU
 Subject: [Tinyos-help] Tyndall motes


 Hi,

  Does anyone have any documentation on the Tyndall
 motes? I have searched the web but I couldn't find
 almost nothing. They also work with TinyOS, but the
 code is not open source.

  I would appreciate any suggested web link or
 document.

  Thank you,
  Gelu



---Legal  Disclaimer---

The above electronic mail transmission is confidential and intended only for 
the person to whom it is addressed. Its contents may be protected by legal 
and/or professional privilege. Should it be received by you in error please 
contact the sender at the above quoted email address. Any unauthorised form of 
reproduction of this message is strictly prohibited. The Institute does not 
guarantee the security of any information electronically transmitted and is not 
liable if the information contained in this communication is not a proper and 
complete record of the message as transmitted by the sender nor for any delay 
in its receipt.

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


[Tinyos-help] Ranging

2006-03-13 Thread wyd
hello,everyone!
I want to implement DV-Distance algorithm,which component I should use?

Ranging or RSSI?


Thanks in advance.

Any reply will be helpful.


wyd
[EMAIL PROTECTED]
  2006-03-13

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


[Tinyos-help] RSSI

2006-03-13 Thread Roberto Pagliari
How can I do RSSI measurements?

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


[Tinyos-help] Everything solved but something remains

2006-03-13 Thread Bruno Bianco
Hi.

Finally I have solved the parallel cable problem.
Issuing manually the command uisp -dprog=avrisp
-dpart=ATmega128 --wr_fuse_e=ff  --upload
if=build/micaz/main.srec.out , blink is correctly
uploaded and the mote works.
Now the hard part:
I would like to change something somewhere ( makefiles
or something else ) so that the uisp -dprog oprion
will become -dprog=avrisp.
I tried many but tinyos always assumes -dprog=dapa
then the program can't be uploaded.

Any help?

Kind Regards






___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] write/read from flash on telosb mote

2006-03-13 Thread Kasper Bonne
On 3/10/06, David Moss [EMAIL PROTECTED] wrote:
 Let me know if the message payload size gives you any problems.  I uploaded
 some changes this morning to reflect a 28-byte payload maximum, which should
 be compatible with everyone's system.

 Before, I had the payload sizes of the FlashViewer messages set to my
 environment - 30 byte payloads, and that wasn't compatible with the default
 TinyOS java stuff.  I set all my AM.h payload lengths to 30 bytes because I
 wanted MicaZ's and TelosB's to interact seemlessly, and the micaz's payload
 size was 29 bytes while telos's were 28.

 So try it out and if it doesn't work, let me know
 -David

I can't get it to work, but the problem is related to the payload size
issue you describe.

I checked out the latest version from cvs to get the updated source
code, but the directory tools, containing all the java code, was
missing so I had to use the dir from the zipfile. In the cvs version
the apps directory also only contained the Eavesdropper application,
not the FlashViewer, JDebug or TestHarness apps, but I got them from
the zip as well.

The apps/FlashViewer (from the zip) compiled without problems and I
was able to put it on a mica2 mote, but when I tried to compile the
java application tools/com/rincon/flashviewer (also the one from the
zip file) I got this error:

com/rincon/flashviewer/DataOutput.java:35: package
net.tinyos.flashimage.messages does not exist
import net.tinyos.flashimage.messages.JDebugMsg;
  ^
com/rincon/flashviewer/DataOutput.java:36: package
net.tinyos.flashimage.messages does not exist
import net.tinyos.flashimage.messages.NodeReply;

I can't find flashimage anywhere either in the base-tos tree, the
rincon cvs files or the zip file. Without flashimage I couldn't
recompile the java code for tools/com/rincon/flashviewer but
fortunately it was already compiled in the zip file so I was able to
run it.

With apps/FlashViewer on the mote and SerialForwarder running, I ran
the tools/com/rincon/flashviewer java program:

$ java com/rincon/flashviewer/FlashViewer -ping
receive error for com.rincon.flashviewer.messages.ViewerMsg (AM type
161): invalid length message received (too short)

The apps/FlashViewer program demonstrates nicely how the BlockRead and
BlockWrite works, but it would still be nice to have a working app.
Would you mind giving cvs another go so a clean checkout includes
everything you need to get the app to work. (or explain what I'm doing
wrong now).

Regards
/Kasper

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


[Tinyos-help] NesC debugger tools

2006-03-13 Thread [EMAIL PROTECTED]
Hi, I would know if exist a way to debug NesC code under Windows.
I had 
read about  a GDB tool working under Linux Systems. 
Anyone know the 
way to install that tool under windows with cygwin?
Anyone know others 
tools?
I'm using TMote Sky Mote developed by MoteIv.
Thank for any 
help.
***Alex***
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Doubt in CC1000RadioIntM.nc

2006-03-13 Thread jagan nath
Hi all
There are two versions of this file, one in tos/platform/mica2
and the other in contrib/ucb/tos//CC1000pulse/

And both of them are different,

Can any body tell me why there is an additional
case:PULSE_CHECK_STATE(in the eventwakeupTimer.fired )in the version
in CC1000Pulse. And how come it is missing in the other one.
Any small hint may help me.

Thanks
jagan

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


Re: [Tinyos-help] Oscope codes - HELP!

2006-03-13 Thread Xenia Economidou
Dear Manu and Michael, I am grateful for your replies. I have read lesson 6 thourully but it is still not clear to me how to print the actual values on the screen. What I want to do, is to display the temperature in another Java program I have written, which illustrates a Room and will also check if it is dark or not so the lights can turn on or off accordingly (in the Java program). Through Listen the raw data of the packet is printed in Cygwin. What about the actual values? Is there a program that does that or do I have to write one myself for just the ADC readings and link it with Listen? 


Could you please be more specific on the steps I have to take? 
Also for my nesC application, I have used the PhotoTemp because otherwise I was getting errors.Same way the dataTask and Light.dataReady()were implemented for the light I did the same for the temperature. I do not have an extra timer for temp, I init, start and stop the StdControls of the sensors together and call both Light.getData and Temp.getData from the timer, but I still get warnigns when I compile it: 
C:/tinyos/cygwin/opt/tinyos-1.x/tos/system/RealMain.nc: In function `main':C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/StdControl.nc:63: warning: `result' might be used uninitialized in this function
Could you give me a hint as to what am I doing wrong, and what corrections should be made? It is very important to me get through this because I am stuck. 
Kind Regards, Xenia 




From:Michael Schippling [EMAIL PROTECTED]To:Xenia Economidou [EMAIL PROTECTED]CC:tinyos-help@Millennium.Berkeley.EDUSubject:Re: [Tinyos-help] Oscope codes - HELP!Date:Sun, 12 Mar 2006 14:34:39 -0700MIME-Version:1.0Received:from sapello.lcwireless.net ([67.131.73.161]) by bay0-mc1-f10.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Sun, 12 Mar 2006 13:34:39 -0800Received:from sapello.lcwireless.net (localhost [127.0.0.1])by sapello.lcwireless.net (Postfix) with ESMTPid D3BDC18E62; Sun, 12 Mar 2006 14:34:38 -0700 (MST)Received:from [192.168.1.104] (router.lcwireless.net [67.131.73.161])by sapello.lcwireless.net (Postfix) with ESMTPid AE39118E42; Sun, 12 Mar 
2006 14:34:38 -0700 (MST)I'm not clear on where you are having problems, TOS or Java or All?Assuming that you got the Oscope program to work as it stands, thenyou want to modify it to get and send both temp and light readings?To do that you should be able to dig down in DemoSensor to see howit works, or just toss it out and use PhotoTemp. The latter switcheson the right sensor and does an ADC reading. You probably want toalternate readings and fill the OscopeMsg buffer accordingly.On the Java side, if you just want to print stuff out to the shellwindow, you could hack up Listen to pretty-print the message bufferin any format you like.Was that the question?MSXenia Economidou wrote:Hello everyone,My name is Xenia 
Economidou from Queen Mary University (3rd yearer student in Bachelor of Engineering). As part of my final year project, which I have to submit in less than three weeks, I have to link the Oscilloscope application to a Java program in the computer in order to check the values and also print them (e.g. readings for light and temperature). As I am runnig out of time it is very importand for me to get guidance from you as soon as possible. Although I have studied the oscope codes it is still not clear for me where I should start from:a. to print the measurements of the temperature, andb. check the values for light, (i.e. if it is dark or not).Any help from you is greatly appreciated as I am getting closer to the deadline of the 
project.PLEASE HELP!!Kind Regards,Xenia___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDUhttps://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] write/read from flash on telosb mote

2006-03-13 Thread David Moss
Looks like you two might be experiencing the same problem in some way.  Raja
- were you able to download files in the /contrib/rincon/tools/java
directory?  It shows on my CVS these files were uploaded to HEAD, so they
should exist for everybody to download just like the other directories on
there.  If they're not there, then obviously something went wrong on my end.

The DataOutput.java file contains two imports that shouldn't be there and
are not referenced, from the net.tinyos.flashimage.messages directory.  It
is possible to remove these two import lines from the top of the
DataOutput.java file to get the file to compile.  Since the
net.tinyos.flashimage directory existed on my system, I didn't get this
error before uploading.

I have uploaded the changes to CVS.  Thanks for the catch, Kasper, and sorry
for the issues in getting this going on your system,

David







-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kasper
Bonne
Sent: Monday, March 13, 2006 7:00 AM
To: tinyos-help@Millennium.Berkeley.EDU
Subject: Re: [Tinyos-help] write/read from flash on telosb mote


On 3/10/06, David Moss [EMAIL PROTECTED] wrote:
 Let me know if the message payload size gives you any problems.  I
uploaded
 some changes this morning to reflect a 28-byte payload maximum, which
should
 be compatible with everyone's system.

 Before, I had the payload sizes of the FlashViewer messages set to my
 environment - 30 byte payloads, and that wasn't compatible with the
default
 TinyOS java stuff.  I set all my AM.h payload lengths to 30 bytes because
I
 wanted MicaZ's and TelosB's to interact seemlessly, and the micaz's
payload
 size was 29 bytes while telos's were 28.

 So try it out and if it doesn't work, let me know
 -David

I can't get it to work, but the problem is related to the payload size
issue you describe.

I checked out the latest version from cvs to get the updated source
code, but the directory tools, containing all the java code, was
missing so I had to use the dir from the zipfile. In the cvs version
the apps directory also only contained the Eavesdropper application,
not the FlashViewer, JDebug or TestHarness apps, but I got them from
the zip as well.

The apps/FlashViewer (from the zip) compiled without problems and I
was able to put it on a mica2 mote, but when I tried to compile the
java application tools/com/rincon/flashviewer (also the one from the
zip file) I got this error:

com/rincon/flashviewer/DataOutput.java:35: package
net.tinyos.flashimage.messages does not exist
import net.tinyos.flashimage.messages.JDebugMsg;
  ^
com/rincon/flashviewer/DataOutput.java:36: package
net.tinyos.flashimage.messages does not exist
import net.tinyos.flashimage.messages.NodeReply;

I can't find flashimage anywhere either in the base-tos tree, the
rincon cvs files or the zip file. Without flashimage I couldn't
recompile the java code for tools/com/rincon/flashviewer but
fortunately it was already compiled in the zip file so I was able to
run it.

With apps/FlashViewer on the mote and SerialForwarder running, I ran
the tools/com/rincon/flashviewer java program:

$ java com/rincon/flashviewer/FlashViewer -ping
receive error for com.rincon.flashviewer.messages.ViewerMsg (AM type
161): invalid length message received (too short)

The apps/FlashViewer program demonstrates nicely how the BlockRead and
BlockWrite works, but it would still be nice to have a working app.
Would you mind giving cvs another go so a clean checkout includes
everything you need to get the app to work. (or explain what I'm doing
wrong now).

Regards
/Kasper

___
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] error in XSensorMTS300

2006-03-13 Thread davisj2
Esmaeil,
 I am using XSensorMTS400, and after upgrading from TinyOS-1.1.10 to
TinyOS-1.1.15, i got the same error.  Using java net.tinyos.tools.Listen
showed me that I was infact using the correct packet handler type, So i stoped
playing around and started to rewrite the java Listen, I would suggest the same.
 THis way you can do what you want with the data.

Josh

Quoting Esmaeil Nadimi [EMAIL PROTECTED]:

 Hi all
 I am trying to program the motes with xsensormts300 but after running
 xlisten and when I try to aggregate the data, I receive the following
 error:
 
 Error: no packet handler for tos type 0x03
 Error: no packet handler for tos type 0x01
 ...
 ...
 And so on,
 Any solution will be appreciated.
 Esmaeil
 
 ___
 Tinyos-help mailing list
 Tinyos-help@Millennium.Berkeley.EDU
 https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 




-
This mail sent through IMP: http://horde.org/imp/
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Light barrier application

2006-03-13 Thread Chuck Kring

Hi Christian,

Have you considered a capacitive proximity sensor?   You haven't said 
whether the bottles are full or how close you can place the sensor to the 
bottle but given the right conditions it might work better.


Your sample rate does seem excessive. You are sampling 100 times per second 
and would for example,  sense a bottle 25 times if it took 1/4 second to 
clear the sensor.  The problem with reflected light is the light could 
scatter differently depending upon how the bottle is rotated or whether you 
hit some dirt or a label.  Also consider that the angle of reflection is 
different on the edge of the bottle than in the center of the bottle so 
your readings will probably not look like square waves.


 If I were to use light I would first use the mote to collect raw sensor 
data at 10ms, tune my detect algorithm against measured data, then code the 
detect algorithm into the mote.  Best of luck.


Chuck Kring

www.finishlinesystems.com

At 02:18 AM 3/13/2006, Hoell, Christian (EXT) wrote:

Hi everyone,

I'm currently developing an application counting bottles on a
transportation system.
I'd like to use the photo sensors on the tmote.
But it's quite hard for me to detect a bottle passing by without using
an extra light.
I've also played with a white LED and try to trigger on the reflexion of
the bottles but didn't manage to count all the bottles or I got two or
more triggers per bottle.
My current approach lookes like that:
I'm sampling the photo sensor a 10ms the compare the last two values
with the current one and if the present is about 10% bigger than the
former one I'll set a flag (high flag) and the go on sampling and wait
for some value where the present value is about 10% smaller than the
former ones.
It works ok but as I was telling you before the results are not as good
as they should be.
Furthermore I think with sampling at 10ms there's also a lot of power
consumed by the microcontroller.

Could anyone propose a differet approach to me?

Thanks a lot

Greetings

Christian





___
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] Questions on vector operation

2006-03-13 Thread Yupeng Liang
Hi All,

I have a basic question about doing vector operation on Tmote sky motes:
(1) Can we store data into vectors or arrays? If yes, how? And where to look up? Same as in C?
(2) Can we do vector multiplications directly? 
(3) Can we define for loops in TinyOS? If yes, how? same as in C?

Thank you very much!

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


[Tinyos-help] Reading from the INTERNAL Flash on tmote sky

2006-03-13 Thread Matthew Poropat
Hi everybody,
I am trying to figure out how to read from the Internal flash, on a tmote sky.
For
as much as I have understood, BlockStorage and EEPROM ( ByteEEPROM and
PageEEPROM ) are both used for reading/writing/formatting only the external
flash.

On the other side there is the InternalFlash module, but it seems
to me that it can be used only for accessing the information segment of
the MSP internal flash ( address range is 0x1000 - 0x107E )Going throug the source code of tinyos-1.x/tos/platform/msp430/InternalFlashC.nc it seems that, after checking some conditions, it just accesses the flash without using any function (at least when reading).
And, indeed, the MSP430 user manual ( which can be found at Texas Instruments' site - http://focus.ti.com/lit/ug/slau049f/slau049f.pdf ) says that the internal flash is mounted in the same address space as RAM memory, peripheral modules and function registers.
So, apparently it turns out that if I need to read from internal flash, I can just peek at any (even) address in between 0x3FDF and 0xFFDF (48kB of flash memory).But, there seems to be an inconsistency:
When InternalFlashC.nc has to access the information sector of the internal flash, it looks for an address that is in between 0x1000 and 0x10FF. An address which, according to TI's user manual, should be somewhere in RAM memory, and not in the flash.


I am really confused.Can anybody help me find a way out of this mess?

Thanks,
Mate.PS: A couple of days ago I posted a similar question, but I never received it back. So, I suppose that it got lost or something similar...
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] TOSbase, usb write problems with MS windows

2006-03-13 Thread Hyemin Chung
Hi,

I am trying to connect a tmote to a PC with MS windows andFTDI USB serial converter driver.

For a test, i am using python(pyserial) and hyper terminal for a PC, and TOSbase for a tmote.

I found that I could read from the tmote but I couldn'tsend anythingfrom PC to tmote.

I modified TOSbase to toggle LEDs whenever it received signals from a PC, but it didn't work.

I'd like to know if there is any other person who has similar problems.

Is it the problem of usb-to-serial converter? if then, what is the good driver?
Is it the problem of TOSbase?
Is it the problem of Python Serial module and hyper terminal?

Thank you,

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


Re: [Tinyos-help] TOSbase, usb write problems with MS windows

2006-03-13 Thread Michael Schippling

You probably have to make sure you have formatted the messages
correctly. I can imagine it being difficult with hyperterm since
the messages are binary and terms usually insist on ascii...

Look back in this list for descriptions of the message formats,
there's a good online paper that I can never find...

MS

Hyemin Chung wrote:

Hi,
 
I am trying to connect a tmote to a PC with MS windows and FTDI USB 
serial converter driver.
 
For a test, i am using python(pyserial) and hyper terminal for a PC, and 
TOSbase for a tmote.
 
I found that I could read from the tmote but I couldn't send 
anything from PC to tmote.
 
I modified TOSbase to toggle LEDs whenever it received signals from a 
PC, but it didn't work.
 
I'd like to know if there is any other person who has similar problems.
 
Is it the problem of usb-to-serial converter? if then, what is the good 
driver?

Is it the problem of TOSbase?
Is it the problem of Python Serial module and hyper terminal?
 
Thank you,
 
Hyemin Chung





___
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] Changing MICA2 baud rate

2006-03-13 Thread Aby John
How can I change the baud rate of the MICA2 from 57600 to 19200? The Xbow website says that CC1000Const.h needs to be modified, but I'm not sure how to.

Thanks

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


[Tinyos-help] How to unset MOTECOM?

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






Hi.

I am currently trying to use Serial 
Forwarder to listen for some packets. However, whenever i run the JAVA program, 
i get an error saying that a platform specific TOSMsg cannot be found. After 
looking through some of the TinyOS help messages, i believe the problem lies in 
the setting of the MOTECOM env settings. I previously had set it to 
export [EMAIL PROTECTED]:mica2. 
I wish to remove this setting. What doi have to do? I tried just typing 
unset MOTECOM but i don't know if that is correct.

Thanks 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] How to unset MOTECOM?

2006-03-13 Thread Prabal Dutta
Typing: unset -v MOTECOM

should do the trick (the -v flag indicates you want to unset a
variable, but it's not necessary).  You can check that it's been unset
by typing: echo $MOTECOM

If it's blank, MOTECOM is removed as one of your environment variable.

- Prabal

On 3/13/06, #AMIT SATPATHY# [EMAIL PROTECTED] wrote:

 Hi.

 I am currently trying to use Serial Forwarder to listen for some packets.
 However, whenever i run the JAVA program, i get an error saying that a
 platform specific TOSMsg cannot be found. After looking through some of the
 TinyOS help messages, i believe the problem lies in the setting of the
 MOTECOM env settings. I previously had set it to export
 [EMAIL PROTECTED]:mica2. I wish to remove this setting. What do i have to
 do? I tried just typing unset MOTECOM but i don't know if that is correct.

 Thanks 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] TOSbase, usb write problems with MS windows

2006-03-13 Thread Prabal Dutta
You might also consider looking into MIG -- the message interface
generator.  It allows you to specify a message using simple C structs
and then generate corresponding data structures in Java to create and
access those messages.  I believe there's a python version of MIG
floating around somewhere so maybe somebody who knows about it can
chime in here.


- Prabal

On 3/13/06, Michael Schippling [EMAIL PROTECTED] wrote:
 You probably have to make sure you have formatted the messages
 correctly. I can imagine it being difficult with hyperterm since
 the messages are binary and terms usually insist on ascii...

 Look back in this list for descriptions of the message formats,
 there's a good online paper that I can never find...

 MS

 Hyemin Chung wrote:
  Hi,
 
  I am trying to connect a tmote to a PC with MS windows and FTDI USB
  serial converter driver.
 
  For a test, i am using python(pyserial) and hyper terminal for a PC, and
  TOSbase for a tmote.
 
  I found that I could read from the tmote but I couldn't send
  anything from PC to tmote.
 
  I modified TOSbase to toggle LEDs whenever it received signals from a
  PC, but it didn't work.
 
  I'd like to know if there is any other person who has similar problems.
 
  Is it the problem of usb-to-serial converter? if then, what is the good
  driver?
  Is it the problem of TOSbase?
  Is it the problem of Python Serial module and hyper terminal?
 
  Thank you,
 
  Hyemin Chung
 
 
  
 
  ___
  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 mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


RE: [Tinyos-help] How to unset MOTECOM?

2006-03-13 Thread #AMIT SATPATHY#
Title: Re: [Tinyos-help] How to unset MOTECOM?






The error is as 
follows:

-- Capture Output --"C:\Program 
Files\Crossbow\Crimson\IDE.bat" 
"C:\tinyos\cygwin\opt\tinyos-1.x\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\apps\HighFrequencySampling2Directory: 
/opt/tinyos-1.x/apps/HighFrequencySampling2 
#
Could not find a platform specific version of 
TOSMsgjava.lang.ClassNotFoundException: 
net.tinyos.message.unknown.TOSMsgjava.lang.ClassNotFoundException: 
net.tinyos.message.unknown.TOSMsgat 
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.NullPointerExceptionat 
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)

Thanks and regards.

Amit.


From: [EMAIL PROTECTED] on behalf of Prabal 
DuttaSent: Tue 3/14/2006 10:18 AMTo: #AMIT 
SATPATHY#Cc: tinyos-help@millennium.berkeley.eduSubject: 
Re: [Tinyos-help] How to unset MOTECOM?

What's the actual error? Can you cut and paste 
it?- PrabalOn 3/13/06, #AMIT SATPATHY# 
[EMAIL PROTECTED] wrote: Thanks. That 
worked! But, i still get a platform specific TOSMsg cannot be 
found error when i run the JAVA program and after unsetting MOTECOM. 
What other bugs could be causing this problem? Thanks and 
regards. Amit. 
 From: [EMAIL PROTECTED] on behalf 
of Prabal Dutta Sent: Tue 3/14/2006 9:53 AM To: #AMIT 
SATPATHY# Cc: tinyos-help@millennium.berkeley.edu Subject: Re: 
[Tinyos-help] How to unset MOTECOM? 
Typing: unset -v MOTECOM should do the trick (the -v flag 
indicates you want to unset a variable, but it's not necessary). 
You can check that it's been unset by typing: echo 
$MOTECOM If it's blank, MOTECOM is removed as one of your 
environment variable. - Prabal On 3/13/06, #AMIT 
SATPATHY# [EMAIL PROTECTED] wrote:   
Hi.   I am currently trying to use Serial Forwarder to 
listen for some packets.  However, whenever i run the JAVA program, 
i get an error saying that a  platform specific TOSMsg cannot be 
found. After looking through some of the  TinyOS help 
messages, i believe the problem lies in the setting of the  MOTECOM 
env settings. I previously had set it to export  
[EMAIL PROTECTED]:mica2. I wish to remove this setting. What do i have 
to  do? I tried just typing unset MOTECOM but i don't know if that 
is correct.   Thanks 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] How to unset MOTECOM?

2006-03-13 Thread Andrew Redfern
Hi Amit,

I have had the same problem some time ago. What fixed it for me
was to take a look at /tools/java/net/tinyos/message. In that
folder you will find folders for the different platforms. You
should go into the folder for the platform that you are using and
compile it.

Hope this helps,
AndrewOn 3/13/06, #AMIT SATPATHY# [EMAIL PROTECTED] wrote:










The error is as 
follows:

-- Capture Output --C:\Program 
Files\Crossbow\Crimson\IDE.bat 
C:\tinyos\cygwin\opt\tinyos-1.x\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\apps\HighFrequencySampling2Directory: 
/opt/tinyos-1.x/apps/HighFrequencySampling2 
#
Could not find a platform specific version of 
TOSMsgjava.lang.ClassNotFoundException: 
net.tinyos.message.unknown.TOSMsgjava.lang.ClassNotFoundException: 
net.tinyos.message.unknown.TOSMsgat 
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.NullPointerExceptionat 
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)

Thanks and regards.

Amit.


From: 
[EMAIL PROTECTED] on behalf of Prabal 
DuttaSent: Tue 3/14/2006 10:18 AM
To: #AMIT 
SATPATHY#Cc: tinyos-help@millennium.berkeley.eduSubject: 
Re: [Tinyos-help] How to unset MOTECOM?

What's the actual error? Can you cut and paste 
it?- PrabalOn 3/13/06, #AMIT SATPATHY# 
[EMAIL PROTECTED] wrote: Thanks. That 
worked! But, i still get a platform specific TOSMsg cannot be 
found error when i run the JAVA program and after unsetting MOTECOM. 
What other bugs could be causing this problem? Thanks and 
regards. Amit. 
 From: [EMAIL PROTECTED] on behalf 
of Prabal Dutta Sent: Tue 3/14/2006 9:53 AM To: #AMIT 
SATPATHY# Cc: tinyos-help@millennium.berkeley.edu Subject: Re: 
[Tinyos-help] How to unset MOTECOM? 
Typing: unset -v MOTECOM should do the trick (the -v flag 
indicates you want to unset a variable, but it's not necessary). 
You can check that it's been unset by typing: echo 
$MOTECOM If it's blank, MOTECOM is removed as one of your 
environment variable. - Prabal On 3/13/06, #AMIT 
SATPATHY# [EMAIL PROTECTED] wrote:   
Hi.   I am currently trying to use Serial Forwarder to 
listen for some packets.  However, whenever i run the JAVA program, 
i get an error saying that a  platform specific TOSMsg cannot be 
found. After looking through some of the  TinyOS help 
messages, i believe the problem lies in the setting of the  MOTECOM 
env settings. I previously had set it to export  
[EMAIL PROTECTED]:mica2. I wish to remove this setting. What do i have 
to  do? I tried just typing unset MOTECOM but i don't know if that 
is correct.   Thanks 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 listTinyos-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] How to unset MOTECOM?

2006-03-13 Thread #AMIT SATPATHY#




Thanks!

I am currently trying to run this on Mica2 
motes. However, i looked at the folder you mentioned and there is no folder 
present for Mica2. There is a folder for MicaZ, avrmote and telos but no Mica2. 
What should i do in this case? Is a folder for Mica2 supposed to be present in 
there?

Thanks and regards.

Amit.


From: Andrew Redfern 
[mailto:[EMAIL PROTECTED]Sent: Tue 3/14/2006 10:54 AMTo: 
#AMIT SATPATHY#Cc: Prabal Dutta; 
tinyos-help@millennium.berkeley.eduSubject: Re: [Tinyos-help] How to 
unset MOTECOM?
Hi Amit,I have had the same problem some time ago. What fixed 
it for me was to take a look at /tools/java/net/tinyos/message. In that 
folder you will find folders for the different platforms. You should go 
into the folder for the platform that you are using and compile it.Hope 
this helps,Andrew
On 3/13/06, #AMIT 
SATPATHY# [EMAIL PROTECTED] wrote: 

  
  
  The error is as 
  follows:
  
  -- Capture Output --"C:\Program 
  Files\Crossbow\Crimson\IDE.bat" 
  "C:\tinyos\cygwin\opt\tinyos-1.x\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\apps\HighFrequencySampling2Directory: 
  /opt/tinyos-1.x/apps/HighFrequencySampling2 
  #
  Could not find a platform specific version of 
  TOSMsgjava.lang.ClassNotFoundException: 
  net.tinyos.message.unknown.TOSMsgjava.lang.ClassNotFoundException: 
  net.tinyos.message.unknown.TOSMsgat 
  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.NullPointerExceptionat 
  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)
  
  Thanks and regards.
  
  Amit.
  
  
  
  From: [EMAIL PROTECTED] on behalf of Prabal 
  Dutta
  Sent: Tue 
  3/14/2006 10:18 AM
  To: #AMIT SATPATHY#Cc: tinyos-help@millennium.berkeley.eduSubject: Re: 
  [Tinyos-help] How to unset MOTECOM?
  
  
  
  What's the actual error? Can you cut and paste 
  it?- PrabalOn 3/13/06, #AMIT SATPATHY# [EMAIL PROTECTED] 
  wrote: Thanks. That worked! But, i still get a 
  platform specific TOSMsg cannot be found error when i run the JAVA 
  program and after unsetting MOTECOM. What other bugs could be causing 
  this problem? Thanks and regards. Amit. 
   From: [EMAIL PROTECTED] 
  on behalf of Prabal Dutta Sent: Tue 3/14/2006 9:53 AM To: 
  #AMIT SATPATHY# Cc: tinyos-help@millennium.berkeley.edu Subject: Re: 
  [Tinyos-help] How to unset MOTECOM? 
  Typing: unset -v MOTECOM should do the trick (the -v flag 
  indicates you want to unset a variable, but it's not necessary). 
  You can check that it's been unset by typing: echo 
  $MOTECOM If it's blank, MOTECOM is removed as one of your 
  environment variable. - Prabal On 3/13/06, 
  #AMIT SATPATHY# [EMAIL PROTECTED] wrote:   
  Hi.   I am currently trying to use Serial Forwarder to 
  listen for some packets.  However, whenever i run the JAVA 
  program, i get an error saying that a  platform specific TOSMsg 
  cannot be found. After looking through some of the  TinyOS 
  help messages, i believe the problem lies in the setting of the  
  MOTECOM env settings. I previously had set it to export  
  [EMAIL PROTECTED]:mica2. I wish to remove this setting. What do i 
  have to  do? I tried just typing unset MOTECOM but i don't 
  know if that is correct.   Thanks 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 listTinyos-help@Millennium.Berkeley.EDU 
  https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help 
  
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU

[Tinyos-help]_access EEPROM

2006-03-13 Thread erman ayday
Hi,


I am trying to read from the mica mote using theread_log command. The TinyOS manual says it reads a line sequentiallyevery time this command is executed; however, I seem to be getting
random data.Before getting any data from the mote, I am writing to it the numberof transmissions in one line, and the number of received packets inthe following line. Can somebody tell me how to read data from the
mote???Erman
___
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 unset MOTECOM?

2006-03-13 Thread Andrew Redfern
because you are doing a mica2 you should do the avrmotealso if you
go to tools/java and type make this should make all these for you.


AndrewOn 3/13/06, #AMIT SATPATHY# [EMAIL PROTECTED] wrote:





Thanks!

I am currently trying to run this on Mica2 
motes. However, i looked at the folder you mentioned and there is no folder 
present for Mica2. There is a folder for MicaZ, avrmote and telos but no Mica2. 
What should i do in this case? Is a folder for Mica2 supposed to be present in 
there?

Thanks and regards.

Amit.


From: Andrew Redfern 
[mailto:[EMAIL PROTECTED]]Sent: Tue 3/14/2006 10:54 AMTo: 
#AMIT SATPATHY#Cc: Prabal Dutta; 
tinyos-help@millennium.berkeley.edu
Subject: Re: [Tinyos-help] How to 
unset MOTECOM?
Hi Amit,I have had the same problem some time ago. What fixed 
it for me was to take a look at /tools/java/net/tinyos/message. In that 
folder you will find folders for the different platforms. You should go 
into the folder for the platform that you are using and compile it.Hope 
this helps,Andrew
On 3/13/06, #AMIT 
SATPATHY# [EMAIL PROTECTED] wrote: 

  
  
  The error is as 
  follows:
  
  -- Capture Output --C:\Program 
  Files\Crossbow\Crimson\IDE.bat 
  C:\tinyos\cygwin\opt\tinyos-1.x\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\apps\HighFrequencySampling2Directory: 
  /opt/tinyos-1.x/apps/HighFrequencySampling2 
  #
  Could not find a platform specific version of 
  TOSMsgjava.lang.ClassNotFoundException: 
  net.tinyos.message.unknown.TOSMsgjava.lang.ClassNotFoundException: 
  net.tinyos.message.unknown.TOSMsgat 
  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.NullPointerExceptionat 
  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)
  
  Thanks and regards.
  
  Amit.
  
  
  
  From: [EMAIL PROTECTED] on behalf of Prabal 
  Dutta
  Sent: Tue 
  3/14/2006 10:18 AM
  To: #AMIT SATPATHY#Cc: 
tinyos-help@millennium.berkeley.eduSubject: Re: 
  [Tinyos-help] How to unset MOTECOM?
  
  
  
  What's the actual error? Can you cut and paste 
  it?- PrabalOn 3/13/06, #AMIT SATPATHY# [EMAIL PROTECTED] 
  wrote: Thanks. That worked! But, i still get a 
  platform specific TOSMsg cannot be found error when i run the JAVA 
  program and after unsetting MOTECOM. What other bugs could be causing 
  this problem? Thanks and regards. Amit. 
   From: [EMAIL PROTECTED] 
  on behalf of Prabal Dutta Sent: Tue 3/14/2006 9:53 AM To: 
  #AMIT SATPATHY# Cc: tinyos-help@millennium.berkeley.edu Subject: Re: 
  [Tinyos-help] How to unset MOTECOM? 
  Typing: unset -v MOTECOM should do the trick (the -v flag 
  indicates you want to unset a variable, but it's not necessary). 
  You can check that it's been unset by typing: echo 
  $MOTECOM If it's blank, MOTECOM is removed as one of your 
  environment variable. - Prabal On 3/13/06, 
  #AMIT SATPATHY# [EMAIL PROTECTED] wrote:   
  Hi.   I am currently trying to use Serial Forwarder to 
  listen for some packets.  However, whenever i run the JAVA 
  program, i get an error saying that a  platform specific TOSMsg 
  cannot be found. After looking through some of the  TinyOS 
  help messages, i believe the problem lies in the setting of the  
  MOTECOM env settings. I previously had set it to export  
  [EMAIL PROTECTED]:mica2. I wish to remove this setting. What do i 
  have to  do? I tried just typing unset MOTECOM but i don't 
  know if that is correct.   Thanks 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 listTinyos-help@Millennium.Berkeley.EDU 
  

RE: [Tinyos-help] How to unset MOTECOM?

2006-03-13 Thread #AMIT SATPATHY#




I have typed make for 
theavrmote folder and compiled everything there. But i still get the 
sameerror message. 

Thanks and regards.

Amit.


From: Andrew Redfern 
[mailto:[EMAIL PROTECTED]Sent: Tue 3/14/2006 11:19 AMTo: 
#AMIT SATPATHY#Cc: 
tinyos-help@millennium.berkeley.eduSubject: Re: [Tinyos-help] How to 
unset MOTECOM?
because you are doing a mica2 you should do the avrmotealso if you go 
to tools/java and type make this should make all these for 
you.Andrew
On 3/13/06, #AMIT 
SATPATHY# [EMAIL PROTECTED] wrote: 

  
  
  Thanks!
  
  I am currently trying to run this on 
  Mica2 motes. However, i looked at the folder you mentioned and there is no 
  folder present for Mica2. There is a folder for MicaZ, avrmote and telos but 
  no Mica2. What should i do in this case? Is a folder for Mica2 supposed to be 
  present in there?
  
  Thanks and regards.
  
  Amit.
  
  
  From: Andrew Redfern [mailto:[EMAIL PROTECTED]]Sent: Tue 3/14/2006 10:54 
  AMTo: #AMIT SATPATHY#Cc: Prabal Dutta; tinyos-help@millennium.berkeley.edu
  Subject: Re: [Tinyos-help] How to unset 
  MOTECOM?
  
  
  Hi Amit,I have had the same problem some time ago. What 
  fixed it for me was to take a look at /tools/java/net/tinyos/message. In 
  that folder you will find folders for the different platforms. You 
  should go into the folder for the platform that you are using and compile 
  it.Hope this helps,Andrew
  On 3/13/06, #AMIT 
  SATPATHY# [EMAIL PROTECTED] wrote: 
  


The error is as 
follows:

-- Capture Output --"C:\Program 
Files\Crossbow\Crimson\IDE.bat" 
"C:\tinyos\cygwin\opt\tinyos-1.x\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\apps\HighFrequencySampling2Directory: 
/opt/tinyos-1.x/apps/HighFrequencySampling2 
#
Could not find a platform specific version of 
TOSMsgjava.lang.ClassNotFoundException: 
net.tinyos.message.unknown.TOSMsgjava.lang.ClassNotFoundException: 
net.tinyos.message.unknown.TOSMsgat 
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.NullPointerExceptionat 
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)

Thanks and regards.

Amit.



From: [EMAIL PROTECTED] on behalf of Prabal 
Dutta
Sent: Tue 
3/14/2006 10:18 AM
To: 
#AMIT SATPATHY#Cc: tinyos-help@millennium.berkeley.eduSubject: Re: 
[Tinyos-help] How to unset MOTECOM?



What's the actual error? Can you cut and paste 
it?- PrabalOn 3/13/06, #AMIT SATPATHY# [EMAIL PROTECTED] 
wrote: Thanks. That worked! But, i still get 
a platform specific TOSMsg cannot be found error when i run the JAVA 
program and after unsetting MOTECOM. What other bugs could be 
causing this problem? Thanks and regards. 
Amit.  From: [EMAIL PROTECTED] on behalf of Prabal Dutta 
Sent: Tue 3/14/2006 9:53 AM To: #AMIT SATPATHY# Cc: tinyos-help@millennium.berkeley.edu Subject: Re: 
[Tinyos-help] How to unset MOTECOM? 
Typing: unset -v MOTECOM should do the trick (the -v flag 
indicates you want to unset a variable, but it's not 
necessary). You can check that it's been unset by typing: echo 
$MOTECOM If it's blank, MOTECOM is removed as one of your 
environment variable. - Prabal On 3/13/06, 
#AMIT SATPATHY# [EMAIL PROTECTED] wrote:   
Hi.   I am currently trying to use Serial Forwarder 
to listen for some packets.  However, whenever i run the JAVA 
program, i get an error saying that a  platform specific TOSMsg 
cannot be found. After looking through some of the  
TinyOS help messages, i believe the problem lies in the setting of 
the  MOTECOM env settings. I previously had set it to 
export  [EMAIL