Philip Levis wrote:
On Feb 13, 2007, at 9:35 PM, Jiakang Lu wrote:
Hi all,
I need to mention that I meet the same problem on TinyOS 2.0 under
Ubuntu, generally following the instructions
"http://www.5secondfuse.com/tinyos/install.html". The JDK I use is
SUN jdk1.5.0_11, the same as I installed under WinXP.
If possible, can anyone that works fine with it tell me how you
install and configure the environment, either Cygwin or Linux? Since
I'm urgent to move on, your information will help a lot. :-)
I have definitely observed this in Ubuntu. I haven't had a chance to
get to the bottom of the problem, though.
What you want to do is run a C serial forwarder. You can of course
then use Java tools that connect to a serial forwarder. For example,
you can start a C serial forwarder then run net.tinyos.tools.MsgReader.
Try
./sf.exe 9002 /dev/ttyS6 115200
This tells the C serial forwarder to listen for connections on port
9002 and to read packets from the serial port /dev/ttyS6 at speed 115200.
You should then be able to to stuff like
java net.tinyos.tools.MsgReader -comm [EMAIL PROTECTED]:9002 <some class>
Phil
Hi Phil,
It works! Thank you very much.
Here is what I tried (for future reference of others):
In one Cygwin shell
$ ./sf.exe 9002 /dev/ttyS6 115200
Note: sync
clients 1, read 44, wrote 0
clients 0, read 106, wrote 0
In another Cygwin shell
$ java net.tinyos.tools.MsgReader -comm [EMAIL PROTECTED]:9002 BlinkToRadioMsg
1171462190250: Message <BlinkToRadioMsg>
[nodeid=0x1]
[counter=0xad]
1171462190500: Message <BlinkToRadioMsg>
[nodeid=0x1]
[counter=0xae]
...
One further question: when it comes back to the example TestSerial
example, I can either run java TestSerial or use C serial forwarder, but
they are not able to be used at the same time. So is it possible that we
can the results that stated in the tutorials Lesson 4? Sometimes it is
useful that sending and receiving can be implemented at the same time
with one Java command. Thank you.
Best,
Jiakang
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help