[Tinyos Core WG] Re: Printf

Kevin Klues klueska at gmail.com
Tue Oct 24 13:39:14 PDT 2006


You will also have to add the appropriate

%T/lib/printf

line to your .platform file.  Currently it is only checked in for telosb

Kevin


On 10/23/06, Kevin Klues <klueska at gmail.com> wrote:
> As discussed in the last telecom, i've thrown together a simple printf
> like utility for T2.  It seems to work for most of the test cases I've
> thrown at it.  I threw it together basically last night and today, so
> it may still be buggy.  If you guys can try it out on different
> platforms and see if it works, then we can include it as part of the
> release.
>  One known issue I've seen is that the buffer size I
>
> Its located under tos/lib/printf, and a test application is under
> apps/tests/TestPrintf.  It consists of a generic PrintfC component
> that you instantiate with a maximum buffer size as a paramter.  You
> can then make calls using the Printf interface up until this buffer is
> full, followed by a flush command to flush everything over to the pc.
> I've seen some problems getting things to work properly for very large
> buffer sizes, but with ones under 500 I have seen no problems.
>
> Just install the TestPrintf application as normal, and then run the
> PrintfClient java application.  Under linux with a telosb mote plugged
> into /dev/ttyUSB0, you can run the PrintfClient with the following
> command from the TestPrintf directory after installing it on a node
>
> -- java PrintfClient -comm serial@/dev/ttyUSB0:telosb
>
> If it seems to work for everyone, I'll document it and get it ready
> for the release.
>
> --
> ~Kevin
>


-- 
~Kevin


More information about the Tinyos-2.0wg mailing list