[Tinyos-help] What does the "&" operator stand for?

2007-01-24 Thread Muhammad Azhar

Hi,

 What does the "&" operator stand for? Eg:

uint16_t x;
//let x = some value
if (x & 0x0001) { /* do something */}
else if (x & 0x0004) {/* do something else */}

 I have tried to find this syntax on the Net, but I'm really unable to find 
one that explains what it means.  In C, I understand that it has to do with 
pointers, but the syntax is "&pointer" (no spacing), hence, I'm really 
clueless what this does.
 I'm trying to obtain sensor readings and linking the output of the value 
of the temperature readings to the Leds.

 Thanks in advance.

Regards,
Azhar


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


Re: [Tinyos-help] What does the "&" operator stand for

2007-01-24 Thread Jay Taneja

The single ampersand is a bitwise AND. You can look up "bitwise operators"
to find out more.

Cheers.

-jay

On 1/24/07, Muhammad Azhar <[EMAIL PROTECTED]> wrote:


Hi,

  What does the "&" operator stand for? Eg:

uint16_t x;
//let x = some value
if (x & 0x0001) { /* do something */}
else if (x & 0x0004) {/* do something else */}

  I have tried to find this syntax on the Net, but I'm really unable to
find
one that explains what it means.  In C, I understand that it has to do
with
pointers, but the syntax is "&pointer" (no spacing), hence, I'm really
clueless what this does.
  I'm trying to obtain sensor readings and linking the output of the value
of the temperature readings to the Leds.
  Thanks in advance.

Regards,
Azhar


___
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] Help Uart0 connection

2007-01-24 Thread Andrea Labo

Hi there,
I need to connect my TelosB(using TinyOS 2.x) with a pc through the UART0
pins from the expansion connector.
I guess I must use the max232 chip for hardware connection and need
drivers to configure the connection parameter(i.e.: baud rate, length,
stop bit...) and others to send and receive byte from/to Uart0.
Does anyone know if there are these modules in tinyOS 2.x?
Does anyone has tried it?
Any suggestion is very appreciated.
Thank in advance.
Andrea.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Surge application - Bcast.receive()

2007-01-24 Thread frenci

Hi,

I'm trying to understand multihop routing under tinyos and I have compiled
and executed Surge application.


From cygwin shell, I can't see dbg_usr2 messages, in Bcast.receive()

function, while I can see all the other messages.

Look at other tinyos forum, I have read that other people have the same
problem, but they haven't received any response.

Can anyone help me??

I'm sorry for my precary english!! ;p

Thanks in advance!



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

[Tinyos-help] javac error

2007-01-24 Thread preeti k

Hello,
I 've installed tinyos2.x on cygwin. The Blink application runs fine but
RadioCountToLeds doesn't. The reason is the javac path is not set. I looked
into a thread that discusses this and set the path accordingly. And now when
i say
'type javac' i get the correct path. But when i say 'printenv CLASSPATH' i
get the following o/p
**
C:tinyoscygwinopttinyos-2.xsupportsdkjavatinyos.jar
*
ie the path without the slashes(/). I exported the classpath as given in the
installation document(with cygpath -w  etc etc)
Can anyone let me know how do i get this working?
Because of this i suppose () i get  following errors when i compile
RadioCountToLeds
**
$ make micaz sim
mkdir -p build/micaz
javac RadioCountMsg.java
RadioCountMsg.java:7: package net.tinyos.message does not exist
public class RadioCountMsg extends net.tinyos.message.Message {
^
RadioCountMsg.java:67: package net.tinyos.message does not exist
   public RadioCountMsg(net.tinyos.message.Message msg, int base_offset) {
  ^
RadioCountMsg.java:67: RadioCountMsg(byte[],int) is already defined in
RadioCoun
tMsg
   public RadioCountMsg(net.tinyos.message.Message msg, int base_offset) {
  ^
RadioCountMsg.java:76: package net.tinyos.message does not exist
   public RadioCountMsg(net.tinyos.message.Message msg, int base_offset,
int da
ta_length) {
  ^
.

Can anyone please help me with this?
Thanks
-Preeti
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] javac error

2007-01-24 Thread Tarun Bansal

Your javac is correctly installed.

Try doing make -B in
/opt/tinyos-1.x/tools/java

Tarun Bansal
http://bansal.tarun.googlepages.com/


On 1/24/07, preeti k <[EMAIL PROTECTED]> wrote:

Hello,
I 've installed tinyos2.x on cygwin. The Blink application runs fine but
RadioCountToLeds doesn't. The reason is the javac path is not set. I looked
into a thread that discusses this and set the path accordingly. And now when
i say
'type javac' i get the correct path. But when i say 'printenv CLASSPATH' i
get the following o/p
**
C:tinyoscygwinopttinyos-2.xsupportsdkjavatinyos.jar
*
ie the path without the slashes(/). I exported the classpath as given in the
installation document(with cygpath -w  etc etc)
Can anyone let me know how do i get this working?
Because of this i suppose () i get  following errors when i compile
RadioCountToLeds
**
$ make micaz sim
mkdir -p build/micaz
javac RadioCountMsg.java
RadioCountMsg.java:7: package net.tinyos.message does not exist
public class RadioCountMsg extends net.tinyos.message.Message {
 ^
RadioCountMsg.java:67: package net.tinyos.message does not exist
public RadioCountMsg(net.tinyos.message.Message msg, int base_offset) {
   ^
RadioCountMsg.java:67: RadioCountMsg(byte[],int) is already defined in
RadioCoun
tMsg
public RadioCountMsg(net.tinyos.message.Message msg, int base_offset) {
   ^
RadioCountMsg.java:76: package net.tinyos.message does not exist
public RadioCountMsg(net.tinyos.message.Message msg, int base_offset,
int da
ta_length) {
   ^
.

Can anyone please help me with this?
Thanks
-Preeti

___
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] EDF scheduler implementation

2007-01-24 Thread Liron Elmaleh
Is there any release of EDF scheduler for TinyOS 2.0?

Liron.

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


Re: [Tinyos-help] EDF scheduler implementation

2007-01-24 Thread Philip Levis

On Jan 24, 2007, at 6:26 AM, Liron Elmaleh wrote:


Is there any release of EDF scheduler for TinyOS 2.0?


TEP 106 has a link to a proof-of-concept one I wrote. Note that this  
scheduler was designed to show that it's possible to write an EDF  
scheduler, not to be an efficient or good one.


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


[Tinyos-help] Matlab error

2007-01-24 Thread Mikael Ifversen

Hi,
When executing make matlab in 
C:\cygwin\opt\tinyos-1.x\tools\java\net\tinyos\matlab, Following error 
appears:
MatlabControl.java:217: reference to fevalConsoleOutput is ambiguous, 
both method 
fevalConsoleOutput(java.lang.String,java.lang.Object[],int,com.mathworks.jmi.CompletionObserver) 
in com.mathworks.jmi.Matlab and method 
fevalConsoleOutput(java.lang.String,java.lang.Object[],int,com.mathworks.jmi.MatlabListener) 
in com.mathworks.jmi.Matlab match matlab.fevalConsoleOutput(command, 
args, 0, null);


I'm using MatLab7.1
Thanks,
Mikael
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] MultiHopRouter(s)

2007-01-24 Thread Benjamin Madore
I've been working with the Multi-Hop Routing, and I have one burning question:

What is the difference in implementations?

I have looked at:
 xbow EWMA Multihop Router (ReliableRoute)
 MultiHop LEPSM (lib/Route)
 MultiHop LQI (lib/MultiHopLQI)
 MultiHopRouterM (lib/Route -- not wired in)
 MultiHop WMEWMA (lib/MintRoute)

The MultiHop document only mentions LEPSM. Several people have mentioned the
EWMA, but I have found it to appear hastily written. Is there a document
that explains what these are? A readme? Anything?

Which should I choose to base new code on?

-- 
The difference between the right word and the almost right word is really a
large matter- it's the difference between a lightning bug and the lightning.
-Twain

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


[Tinyos-help] getenv JNI library not found. Env.getenv will not work

2007-01-24 Thread Bibudh Lahiri

Hi,

  I'm trying to run the Oscilloscope application. I did the following from
within  /opt/tinyos-1.x/tools/java



*make*

*export [EMAIL PROTECTED]:mica2*

*java net.tinyos.tools.Listen*





The third command gave the following error:



*getenv JNI library not found. Env.getenv will not work*

*(please consult installation directions in tinyos-1.x
/tools/java/net/tinyos/util/Env.INSTALL)*

*Error on [EMAIL PROTECTED]:9001: java.net.ConnectException: Connection refused:
connect*





As per the instructions in tinyos-1.x/tools/java/net/tinyos/util/Env.INSTALL,
I did the following:



*cd tinyos-1.x/tools/java/jni*

*make install*



Then, as per someone's suggestion on the net, I copied libgetenv.so from
/opt/tinyos-1.x/tools/java/jni to C:\Program
Files\Java\jdk1.6.0\jre\lib\i386, as my JDK is installed in C:\Program
Files\Java\jdk1.6.0. But the problem is still occurring.



Also, while installing TinyOS as per the instructions given in

http://www.tinyos.net/tinyos-1.x/doc/install.html,
while installing the javax.comm package, the zip file that I obtained from
Sun's site was named comm2.0.3.zip, not javacomm20-win32.zip. Is the
win32com.dll file supposed to be contained within javacomm20-win32.zip?
comm2.0.3.zip didn't yield any such file on unzipping, nor did it give any
javax.comm.properties file. Have I downloaded the wrong file than? Can
anyone help?

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

[Tinyos-help] Matlab error

2007-01-24 Thread Alvaro Delgado
Hello, the mistake is in the file MatlabControl.java.



Inside the folder "matlab" there is the file MatlabControl-R13-R14.patch, where

the instruscciones are included to repair the error of compiled.




__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] MultiHopRouter(s)

2007-01-24 Thread Simon Willis

Mintroute is explained in this paper:
http://www.cs.berkeley.edu/~awoo/sensys_awoo03.pdf

I'm not sure what the differences are beteween the lib/Mintroute file 
and the xbow version. So far the only thing I have noticed is that the 
lib version has an estimate to route ratio of 10, whereas the xbow 
version has a ratio of 5.


Benjamin Madore wrote:

I've been working with the Multi-Hop Routing, and I have one burning question:

What is the difference in implementations?

I have looked at:
 xbow EWMA Multihop Router (ReliableRoute)
 MultiHop LEPSM (lib/Route)
 MultiHop LQI (lib/MultiHopLQI)
 MultiHopRouterM (lib/Route -- not wired in)
 MultiHop WMEWMA (lib/MintRoute)

The MultiHop document only mentions LEPSM. Several people have mentioned the
EWMA, but I have found it to appear hastily written. Is there a document
that explains what these are? A readme? Anything?

Which should I choose to base new code on?

  



--
Simon WillisBE(CompSys)(Hons)-BSc   
PhD Candidate   Tel: (07) 47814865
Electrical & Computer Engineering   Fax: (07) 47815177
James Cook University   Mob: 0403653055
Townsville, QLD 4811Email: [EMAIL PROTECTED]
Web: http://eng.jcu.edu.au

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


[Tinyos-help] Matlab error

2007-01-24 Thread Mikael Ifversen

Thanks Alvaro,
Now I get errors when running the defineTOSEnvironment.m . Despite inserted
javaclasspath('c:/cygwin/opt/tinyos-1.x/tools/java'); into the file it 
returns Name is nonexistent or not a directory in all addpath commands 
as well as undefined function or variable "defineComm".

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


Re: [Tinyos-help] javac error

2007-01-24 Thread Michael Schippling

You've probably used backslashes '\' in the CLASSPATH setting,
which may-or-may-not work...but to use them you need to put the
whole string in quotes like this "a\b\c;d;." or the shell will
use the B-s's as escape chars. I usually convert everything to
the true-and-correct forward-slash '/' AND use the quotes...
MS


preeti k wrote:

Hello,
I 've installed tinyos2.x on cygwin. The Blink application runs fine but 
RadioCountToLeds doesn't. The reason is the javac path is not set. I 
looked into a thread that discusses this and set the path 
accordingly. And now when i say
'type javac' i get the correct path. But when i say 'printenv CLASSPATH' 
i get the following o/p

**
C:tinyoscygwinopttinyos-2.xsupportsdkjavatinyos.jar
*
ie the path without the slashes(/). I exported the classpath as given in 
the installation document(with cygpath -w  etc etc)

Can anyone let me know how do i get this working?
Because of this i suppose () i get  following errors when i compile 
RadioCountToLeds

**
$ make micaz sim
mkdir -p build/micaz
javac RadioCountMsg.java
RadioCountMsg.java:7: package net.tinyos.message does not exist
public class RadioCountMsg extends net.tinyos.message.Message {
 ^
RadioCountMsg.java:67: package net.tinyos.message does not exist
public RadioCountMsg(net.tinyos.message.Message msg, int base_offset) {
   ^
RadioCountMsg.java:67: RadioCountMsg(byte[],int) is already defined in 
RadioCoun

tMsg
public RadioCountMsg(net.tinyos.message.Message msg, int base_offset) {
   ^
RadioCountMsg.java:76: package net.tinyos.message does not exist
public RadioCountMsg(net.tinyos.message.Message msg, int 
base_offset, int da

ta_length) {
   ^
.

Can anyone please help me with this?
Thanks
-Preeti
 





___
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] getenv JNI library not found. Env.getenv will not work

2007-01-24 Thread Michael Schippling

That jni install _should_ work but who knows
I gather you are on MSWidows, so putting a .so someplace
won't help, you need to use getenv.dll

I put mine in windows/system32 which is (almost) always in
the PATH so everything should be able to find it. Putting
libs in the JRE tree _should_ work, but I just don't trust em,
and there's usually two for every JDK install (in the JDK and
some-other-secret-place for browsers and such), and I keep
switching JRE's anyway.

You do want the windows javax.comm package which I have squirreled
a copy at: http://www.etantdonnes.com/TMP/javacomm20-win32.zip
I think that install does put the .dll in system32 but check after.
It also puts comm.jar in jre/lib/ext and javax.comm.properties
in jre/lib

MS

Bibudh Lahiri wrote:

Hi,

   I'm trying to run the Oscilloscope application. I did the following 
from within   /opt/tinyos-1.x/tools/java


 


/make/

/export [EMAIL PROTECTED]:mica2/

/java net.tinyos.tools.Listen/

 

 


The third command gave the following error:

 


/getenv JNI library not found. Env.getenv will not work/

/(please consult installation directions in 
tinyos-1.x/tools/java/net/tinyos/util/Env.INSTALL) /


/Error on [EMAIL PROTECTED]:9001: java.net.ConnectException: Connection 
refused: connect /


 

 

As per the instructions in 
tinyos-1.x/tools/java/net/tinyos/util/Env.INSTALL, I did the following:


 


/cd tinyos-1.x/tools/java/jni/

/make install/

 

Then, as per someone's suggestion on the net, I copied libgetenv.so from 
/opt/tinyos-1.x/tools/java/jni to C:\Program 
Files\Java\jdk1.6.0\jre\lib\i386, as my JDK is installed in C:\Program 
Files\Java\jdk1.6.0. But the problem is still occurring.


 


Also, while installing TinyOS as per the instructions given in

http://www.tinyos.net/tinyos-1.x/doc/install.html 
,


while installing the javax.comm package, the zip file that I obtained 
from Sun's site was named comm2.0.3.zip, not javacomm20-win32.zip . Is 
the win32com.dll file supposed to be contained within 
javacomm20-win32.zip? comm2.0.3.zip didn't yield any such file on 
unzipping, nor did it give any javax.comm.properties file. Have I 
downloaded the wrong file than? Can anyone help?
 
Thanks in advance

 Bibudh Lahiri




___
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] some questions about memory management on Tmote Sky

2007-01-24 Thread yicheng
Hi Folks,

 

I need to use a large block of memory in Tmote Sky, and I have some
questions of how memory is organized in Tmote Sky by TinyOS:

1. After compiling my program, I see these messages:

 

Compiled  to build/tmote/main.exe

5584 bytes in ROM

294 bytes in RAM

 

In this case, 5584 bytes is code size, 294 bytes is global data size, is it
correct? 

 

2. When the program is running, does the code in ROM need to be moved to RAM
by bootloader?

 

3. What is the max global memory I can allocate? Is it only in RAM?

 

Thanks!

Yicheng

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

Re: [Tinyos-help] getenv JNI library not found. Env.getenv will not work

2007-01-24 Thread Ankur Kamthe

hi,


Also, while installing TinyOS as per the instructions given in

http://www.tinyos.net/tinyos-1.x/doc/install.html ,
while installing the javax.comm package, the zip file that I obtained from
Sun's site was named comm2.0.3.zip, not javacomm20-win32.zip . Is the
win32com.dll file supposed to be contained within javacomm20-win32.zip?
comm2.0.3.zip didn't yield any such file on unzipping, nor did it give any
javax.comm.properties file. Have I downloaded the wrong file than? Can
anyone help?


read this message on the java forums on sun.com
http://forum.java.sun.com/thread.jspa?threadID=680756

they have a link to  javacomm20-win32.zip which I have pasted below:
http://www.idicalif.com/scripts/meta.idc?teamkey=FSUN&link=http://24.234.143.242/p5/javacomm20-win32.zip

try using this version..

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


[Tinyos-help] Difference between java and javac

2007-01-24 Thread Spidernet Lists

Hi,
what is the difference between java and javac.

How can i find where is it installed and the PATH defined is right or not??


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


[Tinyos-help] Re: Difference between java and javac

2007-01-24 Thread Michael Schippling

java is the Virtual Machine runtime (JavaRuntimeEnvironment) thingie and
javac is the compiler that makes class files for the VM to run.

java is part of the JRE that everyone who is anyone should have
and javac is part of the SDK -- SoftwareDevelopmentKit -- that only
us important developers need. Fortunately there is a copy of java
in the SDK bin so you don't have to chase around finding it.

under cygwin and other real computers you can usually do:

type java  {or any executable}

to see where the shell thinks it's going to get it from.
This basically follows all the settings in your PATH variable.
As for finding a Java installation, sometimes the Widows
control panel will have a "Java" widget that helps keep
track of where things are. Or just do a file find for javac.exe

MS


Spidernet Lists wrote:

Hi,
what is the difference between java and javac.

How can i find where is it installed and the PATH defined is right or not??


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


Re: [Tinyos-help] Java error

2007-01-24 Thread Spidernet Lists

Hi Michael,
Thanks for your help...
My boards use Atmel controller and CC2420, so the generic chips are the 
same, it does not use a serial data logger but uses a EEPROM instead. 
The codes are so TINY that i might not need it. So, i have also 
basically copied Mica platform and made a new platform called "Chipconz" 
but changed the PIN Assignements according to my boards. Is it the right 
approach??


Cheers!
Varun

Michael Schippling wrote:

The answer to the first question is put the JDK in your path before
any windows directories, or you will end up with Unka'Bills sorta-java.
Sounds like you figured that out.

As to porting, I'm just using mica2's and 'z's so not much use. I guess
the basic idea is to create a new platform (or chip in T2) directory
and copy in and modify anything that you want to use that has different
pin assignments. I got a little single chip ATMEGA board that I keep
meaning to do something in this realm with someday. The trick is to
figure out how the platform is selected during makes. You might be
able to rummage through Makerules and find the place to add yours.
Or else just hack an existing directory/platform like "mica" and
be done with it.

also, you should send questions to the whole help list so we can
keep a record of any possibly useful answers...
MS

Spidernet Lists wrote:

Hi Michael,
Thanks a lot.. i was  just able to fix the error and all the files 
are building well.
I am using Chipcon's CC2420DBK boards. Which ones are you using?? Do 
you hav any idea about porting the platform. I have read a tutorial 
on TinyOS site It is very similar to Micaz mote but my boards 
uses general IO ports differently.,,, just Push buttons and LED's at 
different ports.. the interfaces are same... do you have any idea on 
this???



Cheers
Varun Jain


Michael Schippling wrote:
Most likely you do not have the java install bin directory in your 
PATH.

For instance mine is:

export PATH="/cygdrive/c/JAVA/j2sdk1.4.2_04/bin:.:$PATH"

and doing this should show you where it is:

enfield:schip [361] type javac
javac is /cygdrive/c/JAVA/j2sdk1.4.2_04/bin/javac

MS


Spidernet Lists wrote:

Hi all,

I am having the following error:


mkdir -p build/chipconz
javac RadioSenseMsg.java
make: javac: Command not found
make: *** [RadioSenseMsg.class] Error 127



I already have the Java rpm installed, so why am i having this 
error and what is the solution??



___
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] MicaZ HPLPowerManagementM error

2007-01-24 Thread Tamim Sookoor
When attempting to make any application from the tinyos-1.x/apps
directory for the MicaZ (make micaz) I receive the following error message:

In component 'HPLPowerManagementM':
C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/micaz/HPLPowerManagementM.nc:49:
'PowerManagement.disable' not implemented
C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/micaz/HPLPowerManagementM.nc:49:
'PowerManagement.enable' not implemented

Does anyone have any suggestions for how to overcome this problem.

Thanks,
Tamim

-- 
Tamim Sookoor
Graduate Student, University of Virginia
214-709-6785
http://www.cs.virginia.edu/~tis5m
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] why cannot build app in tinyos 2.0

2007-01-24 Thread Meiying Su

Dear all ,
i have upgraded  from TinyOS 1.x to TinyOS 2.x ,and i run the command
"tos-check-env" ,the system show me  the message"without error ".But when i
make the applicaiton Blink ,it will notify me the basename cannot find the
Cygwin1.dll?moreover ,i try make other applications,it show the same
message.what is the reason ?can you give me some comments?


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

Re: [Tinyos-help] why cannot build app in tinyos 2.0

2007-01-24 Thread Philip Levis

On Jan 24, 2007, at 6:54 PM, Meiying Su wrote:


Dear all ,
 i have upgraded  from TinyOS 1.x to TinyOS 2.x ,and i run the  
command "tos-check-env" ,the system show me  the message"without  
error ".But when i make the applicaiton Blink ,it will notify me  
the basename cannot find the Cygwin1.dll?moreover ,i try make other  
applications,it show the same message.what is the reason ?can you  
give me some comments?




Please read the install/upgrade instructions carefully. There are two  
versions of the nesC compiler you can install.


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


[Tinyos-help] How to get computational time of a function in tinyos1.x

2007-01-24 Thread Shen Ke
Hi, 
I want to get the computational(running) time of a function written by myself. 
I'm developing under tinyos1.x.
Thanks for any help. 

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

Re: [Tinyos-help] I have a question about temperature sensor

2007-01-24 Thread Muhammad Azhar

Hi,
  When I declared "new SensirionSht11C() as Sensor" under components and 
wired "MyC.SensirionSht11 -> Sensor.Temperature", I get this error message 
when I tried to install it to telosb:


In component `MyAppC':
MyAppC.nc:10: no match

(Line 10 was specifically referring to MyC.SensirionSht11 -> 
Sensor.Temperature)


  Any ideas on how I can solve this problem?  Thanks...

Regards,
Azhar




From: Philip Levis <[EMAIL PROTECTED]>
To: Muhammad Azhar <[EMAIL PROTECTED]>
CC: tinyos-help@Millennium.Berkeley.EDU
Subject: Re: [Tinyos-help] I have a question about temperature sensor
Date: Tue, 23 Jan 2007 21:45:33 -0800



On Jan 23, 2007, at 9:01 PM, Muhammad Azhar wrote:


Hi Phil,
 Thanks for the info, I am now able to find the related component  file, 
which appears in the sensorboards/im2sb directory as well as  the 
platforms/telosa/chips/sht11 directory... Since I'm using  telosb as my 
platform, do I need to make a copy of just this one  file into the telosb 
directory, or can I start programming right  away without having to move 
any files?


No.

$ cat tinyos-2.x/tos/platforms/telosb/.platform

# Includes that should take precedence come first.  Platforms come  before
# chips because they may override files.  These must be specified as
# @includes instead of -I's to @opts, otherwise the %T won't be  processed
# by ncc.

push( @includes, qw(

  %T/platforms/telosb
  %T/platforms/telosb/chips/stm25p
  %T/platforms/telosa
  %T/platforms/telosa/chips/cc2420
  %T/platforms/telosa/chips/s1087
  %T/platforms/telosa/chips/s10871
  %T/platforms/telosa/chips/sht11
  %T/chips/cc2420
  %T/chips/msp430
  %T/chips/msp430/adc12
  %T/chips/msp430/dma
  %T/chips/msp430/pins
  %T/chips/msp430/timer
  %T/chips/msp430/usart
  %T/chips/msp430/sensors
  %T/chips/stm25p
  %T/chips/sht11
  %T/lib/timer
  %T/lib/serial
  %T/lib/adc
  %T/lib/power
) );

@opts = qw(

  -gcc=msp430-gcc
  -mmcu=msp430x1611
  -fnesc-target=msp430
  -fnesc-no-debug
  -fnesc- 
scheduler=TinySchedulerC,TinySchedulerC.TaskBasic,TaskBasic,TaskBasic,ru 
nTask,postTask


);

push @opts, "-mingw-gcc" if $cygwin;




___
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 get computational time of a function in tinyos1.x

2007-01-24 Thread Hui Kang
Shen Ke wrote:
> Hi,
> I want to get the computational(running) time of a function written by 
> myself. I'm developing under tinyos1.x.
> Thanks for any help.
>  
>  
> 
> 
> 
> 
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

I think you can use TimerMilliC to get the time before
and after you run the task.

Regards,
Hui Kang
___
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 get computational time of a function in tinyos1.x

2007-01-24 Thread Shen Ke

Which directory is it in? Isn't it a tinyos2.0 component?
Thanks.

- Original Message - 
From: "Hui Kang" <[EMAIL PROTECTED]>

To: "Shen Ke" <[EMAIL PROTECTED]>
Cc: 
Sent: Thursday, January 25, 2007 1:09 PM
Subject: Re: [Tinyos-help] How to get computational time of a function in 
tinyos1.x




Shen Ke wrote:

Hi,
I want to get the computational(running) time of a function written by
myself. I'm developing under tinyos1.x.
Thanks for any help.






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


I think you can use TimerMilliC to get the time before
and after you run the task.

Regards,
Hui Kang



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


[Tinyos-help] How can i get the xsm driver code?

2007-01-24 Thread Liupeng

Hi.
   I'm eager to know how to get the driver code for xsm platform. I've
tried it with the following url:
http://tinyos.cvs.sourceforge.net/tinyos/tinyos-1.x/contrib/exscal/
But i don't think it's complete. Does anyone know a better choice? Thanks
anyway.

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

[Tinyos-help] cannot make simulation

2007-01-24 Thread Shen Ke
I am upgrading tinyos from 1.x to 2.0. When I make the sample application with 
make mica2, everything is OK. However, when I type make micaz sim, the command 
fails saying that TossimActiveMessageP not implemented. 
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Restart/Reboot Tmotes

2007-01-24 Thread Sumit Gupta

Hi,

I am wondering if it is possible to reboot/restart T-mote(s) which are
connected to the computer through USB connection(s) and running TinyOS on
them by giving some command. If so, then please let me know. Also, please
tell me if Sink can do that by sending some command by wireless connection.

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

Re: [Tinyos-help] Help Uart0 connection

2007-01-24 Thread Urs Hunkeler

Hi Andrea,

Have a look at /opt/tinyos-2.x/tos/chips/msp430/usart/Msp430Uart0C.nc.

Uart1 (which is used for the USB communication) is for instance 
initialized in /opt/tinyos-2.x/tos/platforms/telosa/PlatformSerialC.nc 
(telosb is based on telosa). If you want the regulaar TinyOS packet 
communication on the first instead of the second serial port, you could 
probably copy the PlatformSerialC.nc file to your local application 
directory and change the UART there.


Cheers,
Urs

Andrea Labo schrieb:

Hi there,
I need to connect my TelosB(using TinyOS 2.x) with a pc through the UART0
pins from the expansion connector.
I guess I must use the max232 chip for hardware connection and need
drivers to configure the connection parameter(i.e.: baud rate, length,
stop bit...) and others to send and receive byte from/to Uart0.
Does anyone know if there are these modules in tinyOS 2.x?
Does anyone has tried it?
Any suggestion is very appreciated.
Thank in advance.
Andrea.

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