[Avrora] A question about the C-Print monitor of Avrora

Mido mido.wakil at gmail.com
Sat Oct 24 06:07:03 PDT 2009


Marc,

The command that I was using is incorrect.
Actually, if you are going to use the print functions in AvroraPrint.h, then
there is no need to specify a variable name to monitor.
The below command line is working for me with both the latest Jar
(avrora-beta-1.7.109.jar) and latest source:
java avrora.Main -simulation=sensor-network -platform=mica2 -seconds=50
-monitors=c-print  -printlogfile=logfile build/mica2/main.elf

Thanks.

-----Original Message-----
From: avrora-bounces at lists.ucla.edu [mailto:avrora-bounces at lists.ucla.edu]
On Behalf Of Mac Brown
Sent: Friday, October 23, 2009 11:55 PM
To: Mailing list for Avrora simulator users and developers.
Subject: Re: [Avrora] A question about the C-Print monitor of Avrora

Mido,

This maybe bit late. I have not used c-print with TinyOS 2.x, so don't have
first-hand experience. But you can try this.

Try __ instead of $. I heard later versions of nesC uses __ as separator.

Mac



----- Original Message ----
From: Mido <mido.wakil at gmail.com>
To: avrora at lists.ucla.edu
Sent: Wed, October 14, 2009 7:40:37 AM
Subject: [Avrora] A question about the C-Print monitor of Avrora

Dear All,

I'm trying to use the C-Print monitor of Avrora with the Blink application
that comes with the TinyOS 2.1, without success.

I've obtained Avrora from the sourceforge CVS, and compiled it with no
problems. 
Then, I did the following:

1. Copied the AvroraPrint.h to the directory of the NesC code of the Blink
application (/opt/tinyos-2.x/apps/Blink) 2. Added #include "AvroraPrint.h"
to the BlinkC.nc file.
3. Declared the variable tempvar (uint8_t tempvar;) 4. Added
printInt8(tempvar); to timers fired event handlers.
5. compiled the code using (make mica2)
6. Changed the name of main.exe to Blink.elf 7. Invoked Avrora by (java
avrora.Main -simulation=sensor-network -platform=mica2 -seconds=15
-report-seconds -monitors=c-print  -VariableName=BlinkM$tempvar Blink.elf)
and (java avrora.Main -simulation=sensor-network -platform=mica2 -seconds=15
-report-seconds -monitors=c-print  -VariableName=BlinkM$debugbuf1 Blink.elf)

I get an empty simulation trace!

I've tried out the latest jar (avrora-beta-1.7.106.jar) as well. I'm getting
the same results.

May you please, advice what are the correct steps to make the c-print work?
My OS is Fedora 11. TinyOS version is 2.1
I'm attaching the Blink.nc that I'm using

Regards.



      

_______________________________________________
Avrora mailing list
Avrora at lists.ucla.edu
http://lists.ucla.edu/cgi-bin/mailman/listinfo/avrora



More information about the Avrora mailing list