As an answer i modified the incorect line of /usr/bin/tos-install-jni file
by :

if [ cygpath -w / >/dev/null 2>/dev/null  or  `uname` == "Darwin" ]

hope that it works.

I can now run TestSerial  :

[EMAIL PROTECTED]:/opt/tinyos-2.x/apps/tests/TestSerial$ java TestSerial
serial@/dev/ttyUSB0:57600: resynchronising
Sending packet 0

Sending packet 1
Sending packet 2
Sending packet 3
Sending packet 4
Sending packet 5
Sending packet 6

Can some body explain the whole principle of theese example ?
I launched in a second shell :
[EMAIL PROTECTED]:/opt/tinyos-2.x/support/sdk/java/net/tinyos/sf$ java
net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:micaz
serial@/dev/ttyUSB0:57600: resynchronising

but nothing appears.

thanks


>Sorry for the wide broadcast... I'm not sure who owns this script and
>I'm not a shell programmer.  Note the strange error below from
>tos-install-jni.  Perhaps an "==" in this script wants to become "eq"?

>John



>regehr at home-linux 
><https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-2.0wg>:~/tinyos-2.x/apps/Oscilloscope/java$
> sudo tos-install-jni
>[: 31: ==: unexpected operator
>Installing 32-bit Java JNI code in /usr/lib/jvm/java-6-sun/jre/lib/i386 ...
>done.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to