Philip Levis wrote:
On Feb 13, 2007, at 4:11 PM, Jiakang Lu wrote:
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?
Can you connect Listen to the serial forwarder when you do this? Does
it hear packets?
Phil
Hi Phil,
I'm not familiar with the C-based tools. Should I use sf.exe or
sflisten.exe to do so? Based on the usage instructions, I guess we
should use sflisten.exe to connect Listen to SerialForwarder. Is it correct?
I tried both of them:
In one Cygwin shell:
$ ./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
......
In another Cygwin shell:
$ ./sflisten.exe localhost 9001
Couldn't open serial forwarder at localhost:9001
$ ./sflisten.exe localhost 9002
Couldn't open serial forwarder at localhost:9002
and then...
$ ./sf.exe 9003 [EMAIL PROTECTED]:9002 115200 //it seems
not correct
Couldn't open serial port at [EMAIL PROTECTED]:9002:115200
Sorry if I made a mistake here. It looks that the SerialForwarder still
doesn't hear packets. If the commands are not correct, please tell me
and I will try again. Your patience is highly appreciated.
Thanks in advance.
Best,
Jiakang
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help