Re: [Tinyos-help] How to define dbg(X, fmt, args ...) since the printfUART.h not available to IRIS platform
If you're using printfUART with telosb/Z1 motes, be sure to double check this: Add to your Makefile: CFLAGS += -DPRINTFUART_ENABLED Include the library: #include "PrintfUART.h" Initialize the component (preferable at boot.booted) printfUART_init(); Test it: printfUART("Hello\n"); If you want to see the dbg messages in blip, uncomment the following in the specific module (IPDispatch for example, I asume you're using this version of blip): #ifdef PRINTFUART_ENABLED #undef dbg #define dbg(X, fmt, args...) printfUART(fmt, ## args) #endif You can use picocom or putty to see the debug messages with the proper baud rate and configuration. Regards, On Wed, Jun 8, 2011 at 10:03 PM, scatram...@gmail.com wrote: > Hi, > > Still, I'm not able to read messages printed by PrintfUART and/or dbg() > > I followed the tutorial "Mote-PC_serial_communication_and_SerialForwarder" > Everything works pretty fine but I couldn't find anything about PrintfUART. > > IPBaseStation, UDPEcho and ip-driver work fine > > I've tried connecting both SerialForwarder and PrintfClient to both mote > running IPBaseStation and UDPEcho but I cannot see any of those dbg() > messages. > > Could you give me an hint? > > Many thanks > > Davide > > On 8 Jun 2011, at 01:09, scatram...@gmail.com wrote: > > > Hi, > > > > How can I read messages printed by PrintfUART and/or dbg()? > > I've tried using PrintfClient.java but I get "bad packet". > > I'm using telosb > > > > Many thanks > > > > Davide > > > > On 21/apr/11, at 09:19, Wang Jing wrote: > > > >> Hi everyone! > >> > >> I want to use dbg() macro to print out some debug information. So I > >> set CFLAG += DPRINTFUART_ENABLED. the dbg macro works fine on telsb > >> platform, but when I want to use IRIS mote, and the PrintfUART.h was > >> not available to IRIS platform. > >> > >> I find that the function printf() in lib/printf/printf.h work fine > >> on IRIS mote. > >> > >> is there someone can told me how to use printf to define dbg(X, fmt, > >> args ...) ? > >> > >> the example of dbg(X, fmt, args ...) is dbg( "Boot", "booted with > >> ID : %i\n", TOS_NODE_ID); > >> ___ > >> Tinyos-help mailing list > >> Tinyos-help@millennium.berkeley.edu > >> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > > ___ > > Tinyos-help mailing list > > Tinyos-help@millennium.berkeley.edu > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > ___ > Tinyos-help mailing list > Tinyos-help@millennium.berkeley.edu > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- -- Antonio LiƱan Colina R+D+I Engineer @: ali...@advancare.com @: ali...@zolertia.com -- Advancare T: +34 93 582 02 70 http://www.advancare.com http://www.zolertia.com http://zolertia.sourceforge.net http://webshop.zolertia.com ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] How to define dbg(X, fmt, args ...) since the printfUART.h not available to IRIS platform
Hi, Still, I'm not able to read messages printed by PrintfUART and/or dbg() I followed the tutorial "Mote-PC_serial_communication_and_SerialForwarder" Everything works pretty fine but I couldn't find anything about PrintfUART. IPBaseStation, UDPEcho and ip-driver work fine I've tried connecting both SerialForwarder and PrintfClient to both mote running IPBaseStation and UDPEcho but I cannot see any of those dbg() messages. Could you give me an hint? Many thanks Davide On 8 Jun 2011, at 01:09, scatram...@gmail.com wrote: > Hi, > > How can I read messages printed by PrintfUART and/or dbg()? > I've tried using PrintfClient.java but I get "bad packet". > I'm using telosb > > Many thanks > > Davide > > On 21/apr/11, at 09:19, Wang Jing wrote: > >> Hi everyone! >> >> I want to use dbg() macro to print out some debug information. So I >> set CFLAG += DPRINTFUART_ENABLED. the dbg macro works fine on telsb >> platform, but when I want to use IRIS mote, and the PrintfUART.h was >> not available to IRIS platform. >> >> I find that the function printf() in lib/printf/printf.h work fine >> on IRIS mote. >> >> is there someone can told me how to use printf to define dbg(X, fmt, >> args ...) ? >> >> the example of dbg(X, fmt, args ...) is dbg( "Boot", "booted with >> ID : %i\n", TOS_NODE_ID); >> ___ >> Tinyos-help mailing list >> Tinyos-help@millennium.berkeley.edu >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > ___ > Tinyos-help mailing list > Tinyos-help@millennium.berkeley.edu > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] How to define dbg(X, fmt, args ...) since the printfUART.h not available to IRIS platform
Hi, How can I read messages printed by PrintfUART and/or dbg()? I've tried using PrintfClient.java but I get "bad packet". I'm using telosb Many thanks Davide On 21/apr/11, at 09:19, Wang Jing wrote: > Hi everyone! > > I want to use dbg() macro to print out some debug information. So I > set CFLAG += DPRINTFUART_ENABLED. the dbg macro works fine on telsb > platform, but when I want to use IRIS mote, and the PrintfUART.h was > not available to IRIS platform. > > I find that the function printf() in lib/printf/printf.h work fine > on IRIS mote. > > is there someone can told me how to use printf to define dbg(X, fmt, > args ...) ? > > the example of dbg(X, fmt, args ...) is dbg( "Boot", "booted with > ID : %i\n", TOS_NODE_ID); > ___ > Tinyos-help mailing list > Tinyos-help@millennium.berkeley.edu > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] How to define dbg(X, fmt, args ...) since the printfUART.h not available to IRIS platform
Hi everyone! I want to use dbg() macro to print out some debug information. So I set CFLAG += DPRINTFUART_ENABLED. the dbg macro works fine on telsb platform, but when I want to use IRIS mote, and the PrintfUART.h was not available to IRIS platform. I find that the function printf() in lib/printf/printf.h work fine on IRIS mote. is there someone can told me how to use printf to define dbg(X, fmt, args ...) ? the example of dbg(X, fmt, args ...) is dbg( "Boot", "booted with ID : %i\n", TOS_NODE_ID); ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help