So here'e a link to the new version of printf I'm talking about. Why
don't people try it out and let me know if they think its better.

http://sing.stanford.edu/klueska/printf_test.tar.gz

To use it just add the following line to your makefile:
CFLAGS += /path/to/printf_test

Then anywhere in your application (or underlying OS code) just add
#include "printf.h" to the top of any module to be able to and call
printf() within it.

To see output, you can then run the java PrintfClient found in
net.tinyos.tools as follows (may be different depending on your mote
platform):
java net.tinyos.tools.PrintfClient -comm serial@/dev/ttyUSB0:telosb

Kevin


On 9/22/07, André Miguel de Almeida Marrão Rodrigues
<[EMAIL PROTECTED]> wrote:
> Hi
>
> I'm using it and would like to have the new versiom.
>
> Regards,
>
> André
>
>
>
> ----- Original Message -----
> From: "Kevin Klues" <[EMAIL PROTECTED]>
> To: "tos" <[email protected]>; "TinyOS-Devel list"
> <[EMAIL PROTECTED]>
> Sent: Friday, September 21, 2007 10:18 PM
> Subject: [Tinyos-help] Question about printf
>
>
> >I wanted to get a sense of how many people out there use the printf
> > library provided in TinyOS 2.0.  As its written right now, its not the
> > easiest thing to use since an application has to explicitly flush the
> > printf buffer itself and any printf commands called while flushing
> > will all fail.
> >
> > My question is whether people would prefer to have a bit more user
> > friendly version of printf.  I have an alternate implementation where
> > all that needs to be done to use printf is to include tos/lib/printf
> > in your include path in your makefile.  No wiring, no nothing.  Just
> > call printf() anywhere in your code and see the output spit out over
> > the serial line.  Flushing is done automatically, and bytes can also
> > be written to the printf buffer while this flush is occurring.  Since
> > flushing is only triggered when the print buffer has a certain number
> > of bytes in it, explicit flushes are of course possible, by wiring in
> > a PrintfFlush interface from the PrintfC component.
> >
> > The reason I'm bringing all of this up is that this version of the
> > printf library is incompatible with the version in previous releases.
> > Would people prefer to have this newer version overwrite the current
> > one (possibly breaking existing code), or be provided as an alternate
> > printf service in some way?  Comments are welcome.
> >
> > --
> > ~Kevin
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>


-- 
~Kevin

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to