[Tinyos-help] BaseStation and net.tinyos.tools.Listen
rodolfo de paz
rodolfo.depaz at cit.ie
Wed Jan 9 01:57:22 PST 2008
Hi all,
I am following Tinyos2 tutorial-lesson 4. Here, I tried to communicate BaseSation application with Listen java tool without success.
To do that I use Avrora and TinyOS-2.x in the following way:
- I open a terminal with avrora and I run
java avrora/Main -platform=mica2 -report-seconds -monitors=packet,leds -stagger-start=61440 -seconds=30 -colors=false -simulation=sensor-network -nodecount=1,1 ../test/tinyos/tos2x/BlinkToRadio_mica2.elf ../test/tinyos/tos2x/BaseStation_mica2.elf
- In another terminal I open tinyos-2.x running the Listen application
java net.tinyos.tools.Listen (my variable MOTECOM is equal to network at 127.0.0.1:2390)
The result is that the connection is refused and I cannot see any packet received.
However, I modified BlinkToRadio to send packets to serial and is working fine, the process here was the following:
- Avrora terminal
java avrora/Main -platform=mica2 -report-seconds -monitors=serial,packets,leds -stagger-start=61440 -seconds=30 -colors=false ../test/tinyos/tos2x/BlinkToSerial_mica2.elf
-TinyOS terminal
java net.tinyos.tools.Listen
The result are the packets received:
00 FF FF 00 00 04 00 06 00 01 00 01
00 FF FF 00 00 04 00 06 00 01 00 02
00 FF FF 00 00 04 00 06 00 01 00 03
00 FF FF 00 00 04 00 06 00 01 00 04
00 FF FF 00 00 04 00 06 00 01 00 05
.
.
.
So, Why is not working my BaseStation application with the Listen java tool? Do you have any idea?
Thanks in advance,
----
Rodolfo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080109/d84e23bc/attachment.html
More information about the Tinyos-help
mailing list