[Avrora] TelosB in Avrora: Serial Port working

Urs Hunkeler urs.hunkeler at epfl.ch
Fri Jan 28 07:55:21 PST 2011


Hi all,

Just a small update: the serial port of the TelosB simulator in Avrora 
is now working, too! (tested with TestSerial from TinyOS 2.x)

Cheers,
Urs


$ avrora -action=simulate -seconds=12 -platform=telos 
-monitors=energy,serial,real-time -ports=0:1:2390 -input=elf 
-arch=msp430 build/telosb/main.exe

Avrora [Beta 1.7.113] - (c) 2003-2007 UCLA Compilers Group

Loading build/telosb/main.exe...OK
=={ Simulation events 
}=======================================================
Node          Time   Event
------------------------------------------------------------------------------
Waiting for serial connection on port 2390...connected to /127.0.0.1:41317
## WARNING: external clock source (TACLK) not supported
## WARNING: external clock source (TBCLK) not supported
    0       9732810  Red: on
    0      17812004  Red: off
    0      17812028  Green: on
    0      25891194  Red: on
    0      33973721  Red: off
    0      33973746  Green: off
    0      33973770  Yellow: on
    0      42052913  Red: on
    0      50132105  Red: off
    0      50132129  Green: on
    0      58211295  Red: on
    0      66290489  Red: off
    0      66290514  Green: off
    0      66290539  Yellow: off
    0      74373012  Red: on
    0      82452206  Red: off
    0      82452230  Green: on
    0      90531398  Red: on

==============================================================================
Simulated time: 96000000 cycles
=={ Energy consumption results for node 0 
}===================================
Node lifetime: 96000000 cycles,  12.0 seconds

CPU: 0.0030506212312499995 Joule
    Active: 3.57321E-4 Joule, 238214 cycles
    LPM0: 0.0 Joule, 0 cycles
    LPM1: 0.0026933002312499997 Joule, 95761786 cycles
    LPM2: 0.0 Joule, 0 cycles
    LPM3: 0.0 Joule, 0 cycles
    LPM4: 0.0 Joule, 0 cycles

Yellow: 0.026661334425 Joule
    off: 0.0 Joule, 63683231 cycles
    on: 0.026661334425 Joule, 32316769 cycles

Green: 0.037840995225 Joule
    off: 0.0 Joule, 50132127 cycles
    on: 0.037840995225 Joule, 45867873 cycles

Red: 0.037841019975 Joule
    off: 0.0 Joule, 50132097 cycles
    on: 0.037841019975 Joule, 45867903 cycles

Radio: 7.2E-7 Joule
    Power Off:            : 7.2E-7 Joule, 96000000 cycles


++++++++++++++++++++++++++++++++++++++++++++++

$ java TestSerial -comm network at localhost:2390
network at localhost:2390: resynchronising
Sending packet 0
Received packet sequence number 1
Sending packet 1
Received packet sequence number 2
Sending packet 2
Received packet sequence number 3
Sending packet 3
Received packet sequence number 4
Sending packet 4
Received packet sequence number 5
Sending packet 5
Received packet sequence number 6
Sending packet 6
Received packet sequence number 7
Sending packet 7
Received packet sequence number 8
Sending packet 8
Received packet sequence number 9
Sending packet 9
Received packet sequence number 10
Sending packet 10
Received packet sequence number 11
Sending packet 11
Received packet sequence number 12
Sending packet 12
Exception thrown when sending packets. Exiting.




More information about the Avrora mailing list