Hi Sophia,
In the Ctp.h, add the following type:
AM_CTP_DEBUG = 0x72,
Then, for the remote mote application, in your configuration implementation,
add the following:
components new PoolC(message_t, 10) as DebugMessagePool,
new QueueC(message_t*, 10) as DebugSendQueue,
new AMSenderC(AM_CTP_DEBUG) as DebugAMSender,
UARTDebugSenderP as DebugSender;
DebugSender.Boot -> MainC;
DebugSender.UARTSend -> DebugAMSender;
DebugSender.MessagePool -> DebugMessagePool;
DebugSender.SendQueue -> DebugSendQueue;
Collector.CollectionDebug -> DebugSender;
In this way you can send debug messages to the CTP root. Actually code for
debug messages have already been written, what we do is to wire the
necessary components. If you need custom debug messages, then you need to
add your corresponding debug msg types into the CtpDebugMsg.h /
CollectionDebugMsg.h and call CollectionDebug functions with those types
that you added where you need.
Regards,
--
Mehmet Akif Antepli
On Tue, Feb 9, 2010 at 5:02 PM, sofia aparicio <[email protected]>wrote:
> Hello,
>
> I am using CTP with 4 mica2. One mica2 is the base station and the
> remaining motes are computing some temperature measurements every 2 minutes
> and sending this information to the base station. After some hours the nodes
> lose the route since the parent ids change to strange ids which do not
> exist.
>
> I would like to send to a serial port the routingTable. How can I do hat? I
> have seen that there is an interface CollectionDebug to send the logging
> information to the UART, but I do not know how to do it.
>
> Thank you very much.
>
> Sofia
>
>
> ------------------------------
> Disfruta de un resumen diario de tu Hotmail en tu móvil Movistar. ¡Accede
> ya! <http://serviciosmoviles.es.msn.com/hotmail/movistar.aspx>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help