Philip Levis wrote:
On Feb 13, 2007, at 12:22 PM, Jiakang Lu wrote:
Hi all,
I have a problem with TinyOS 2.x serial communication. Take the easy
scenario: one node with BaseStation, the other with BlinkToRadio,
which is stated in Lesson 4 of the tutorials. However, when using
net.tinyos.tools.Listen, I cannot get any message from the
BaseStation node. And I noticed that the red LED for serial
transmission toggles when the node is connected to PC without using
Listen. But when I begin to use Listen, the LED is off, showing no
serial transmission at all. Moreover, SerialForwarder doesn't get any
message either...Hardware problem can be eliminated, after I tried
the Listen tool of TinyOS 1.x, which indicates the message is
received in an unrecognized format.
I noticed that the similar problem is submitted in "[Tinyos-help]
TestSerial -only sends packets ?". But I don't quite understand why
Phil mentions TOSSIM here...
Can anyone help with this problem? Thank you for your help and
patience.
I've just tested this and it works fine for me.
This sounds like an issue with the TinyOS 2.0 serial support for Java.
What OS are you running? Have you tried using the C serial forwarder?
Phil
Hi Phil,
Thank you for you reply.
I'm running Cygwin under WinXP and the nodes I tested are Telosa. My
Java version is jdk1.5.0_11, with TOSComm properly installed. Is
anything wrong here?
I just tried C-based tools. sf.exe seems to be problematic, but
seriallisten.exe works! Say that my mote is [EMAIL PROTECTED]:telos
$ ./seriallisten.exe /dev/ttyS6 115200
Note: sync
00 ff ff ff ff 04 00 06 00 01 01 99
00 ff ff ff ff 04 00 06 00 01 01 9a
00 ff ff ff ff 04 00 06 00 01 01 9b
......
$ ./sf.exe 9002 /dev/ttyS6 115200
Note: sync
There is no response after Note: sync. Did I do something wrong with the
C serial forwarder?
I intend to do some experiment with Java scripts to control the start of
the experiment and data collection at the end of the experiment. It
would be much easier if I can make Java works for serial communication.
Can someone help me to fix it? Or give me some suggestions to move on if
Java unfortunately doesn't work?
Thank you so much. I really appreciate your help and patience.
Best,
Jiakang
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help