[Tinyos Core WG] Printf

Kevin Klues klueska at gmail.com
Mon Oct 23 16:07:20 PDT 2006


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


More information about the Tinyos-2.0wg mailing list