[Avrora] BaseStation and BaseStation and net.tinyos.tools.Listen

rodolfo de paz rodolfo.depaz at cit.ie
Fri Jan 11 00:53:02 PST 2008


Thanks Osman, you are right I included the option -ports and now is working fine :)


Date: Thu, 10 Jan 2008 09:04:16 +0000
From: Osman Ugus <osman.ugus at nw.neclab.eu>
Subject: [Tinyos-help] Re: [Avrora] BaseStation and
        net.tinyos.tools.Listen
To: "Mailing list for Avrora simulator users and developers."
        <avrora at lists.ucla.edu>
Cc: tinyos-help at Millennium.Berkeley.EDU
Message-ID: <4785DF90.2000605 at nw.neclab.eu>
Content-Type: text/plain; charset="iso-8859-1"

Hi Rodolfo,

As far as I see, you do not forward the packets received from Base
station to the serial port. This is the reason why you can not connect
to the port 2390. I think your command should look like this:

java avrora/Main -platform=mica2 -report-seconds -monitors=packet,leds,*serial* *-ports=1:0:2390* -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



rodolfo de paz wrote:
>
> 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
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Avrora mailing list
> Avrora at lists.ucla.edu
> http://lists.ucla.edu/cgi-bin/mailman/listinfo/avrora
>  


--
Osman Ugus
NEC Europe Ltd.
Network Laboratories
Network Division          
Kurfürsten-Anlage 36      
69115 Heidelberg
GERMANY  
      
phone  +49 6221 4342 214      
fax    +49 6221 4342 155
e-mail: osman.ugus at nw.neclab.eu
      
NEC Europe Limited | Registered Office: NEC House, 1 Victoria Road,
London
W3 6BL | Registered in England 2832014


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ucla.edu/pipermail/avrora/attachments/20080111/3dd18f62/attachment.htm 


More information about the Avrora mailing list