Ive used the printf /printfflush command and the java code on the host to
read the debug port (I am using the new version of tinyos printf). I find
that the mote doesnt always send printf statements over the serial port
though, it does in at the start but at some point it just drops all the
printf's.

On Wed, Jun 1, 2011 at 10:08 AM, Andres F. Murillo <
[email protected]> wrote:

> Hello everyone,
>
> I'm actually using the printf function in the telosb and shimmer2r
> platforms, I followed this tutorial to do so:
>
> http://docs.tinyos.net/tinywiki/index.php/The_TinyOS_printf_Library
>
> but I think it has some problems though,
>
> However what I did was the following:
>
> 1) In the Makefile I included the printf library using the following:
>
> CFLAGS +=-I tinyos-2.x/tos/lib/printf`
>
> 2) In the module I included the library with:
> #include "printf.h"
>
> 3) To printf messages I used:
>
> printf("Hello mote! \n");
> printfflush();
>
> regards,
>
> 2011/5/31 Nicholas Hosein <[email protected]>
>
>> I noticed in the Boiler plate app there is the line:
>>
>> extern int sprintf(char *str, const char *format, ...) __attribute__
>> ((C));
>>
>> Is this a way to use printf statements in the code? If so how?
>>
>> Best,
>>
>> Nick
>>
>> _______________________________________________
>> Shimmer-users mailing list
>> [email protected]
>> https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users
>>
>>
>
>
> --
> Andrés Felipe Murillo
> Ingeniero Electrónico
> Grupo de Investigación en Sistemas de Telemando y Control Distribuido
> Universidad Autónoma de Occidente
> Cali, Colombia
>
>
_______________________________________________
Shimmer-users mailing list
[email protected]
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users

Reply via email to