[Tinyos-help] Re : [Tinyos Core WG] tos-install-jni needs a fix?
nartessos nartessos
nartessos at gmail.com
Tue Sep 2 08:01:13 PDT 2008
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 :
user at hote:/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 :
user at hote:/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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080902/447b6616/attachment.htm
More information about the Tinyos-help
mailing list