Hi,
Thanks for the explanation. I have another question wrt CTP. I would
like to send the node id of the parent as part of the message structure
(mviz_msg) of the MViz application. However, CTP doesn't seem to provide a
command where I can get the am_addr_t of the direct parent, based on my
understanding of CtpForwardingEngineP. Would calling
UnicastNameFreeRouting.nextHop() return the same value as that in
CtpForwardingEngineP if I were to call this in the MViz application itself,
since I'd like to get the node id of the direct parent? If it doesn't, what
would I have to do to get the node id of the parent?
Thanks once again.
Regards,
Azhar
From: Philip Levis <[EMAIL PROTECTED]>
To: Muhammad Azhar <[EMAIL PROTECTED]>
CC: [email protected]
Subject: Re: [Tinyos-help] Collection vs CTP (TinyOS 2)
Date: Tue, 8 May 2007 20:35:35 -0700
On May 8, 2007, at 7:49 PM, Muhammad Azhar wrote:
Hi,
I read TEP 119 (Collection) which says:
An implementation of this TEP (i.e. TEP119) can be found in
tinyos-2.x/tos/lib/net/ctp and tinyos-2.x/tos/lib/net/le, in the CTP
protocol. ........ This implementation is a reference implementation, and
is not the only possibility. It consists of three major components, which
are wired together to form a CollectionC: LinkEstimatorP,
CtpTreeRoutingEngineP, and CtpForwardingEngineP.
Thus, if my assumption that CollectionC is "made up" from ctp and link
estimator is right, why does the MViz application also "use" CtpP when it
has already "used" CollectionC. I'm sorry if this question is unclear,
but I really don't know how to put it well, 'coz when I compared it to
the MultihopOscilloscope application, it simply defines CollectionC to do
its routing and sending of data packets.
If you look how MViz wires to CTP, it only accesses the CtpInfo interface,
which gives routing information. This is how MViz reports link qualities.
Note, for example, the MultihopOscilloscope doesn't, because it only sends
data and doesn't need internal routing state.
Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help