On Tue, Jun 17, 2008 at 5:42 AM, jiwen zhang <[EMAIL PROTECTED]> wrote:
> Hello Omprakash :
>
>    maybe i don't express my problems distinctly .
>
>    1 .  the field "etx" in the struct route_info_t . Is it the current
> node's ETX through it's parent  ? or is it the parent's ETX ?

That neighbor's ETX or the cost from that neighbor to the root. If
that neighbor is the parent, then it would be the cost from the parent
to the root.

>    2.  what are the meaning of commands "getNeighborLinkQuality(uint8_t
> neighbor)" and "getNeighborRouteQuality(uint8_t neighbor)" in the interface
> of CtpInfo ?
>         in my opinion , the command "getNeighborLinkQuality" returns the ext
> between the current node and one neighbor in routetable , and the
> command
>         "getNeighborRouteQuality" returns the etx between current node and
> root throught the neighbor . am i right ? can you expalin it detailedly ?

You are right.

>    3 . i have seen the implementation of the interface CtpInfo , and the
> command getNeighborRouteQuality which is
>     command uint16_t CtpInfo.getNeighborRouteQuality(uint8_t n) {
>       return (n < routingTableActive)? call
> LinkEstimator.getLinkQuality(routingTable[n].neighbor) +
> routingTable[n].info.etx:0xfffff;
>     }
>
> if it returns the value of the neighbor's ETX through this neighbor's parent
> , i think it should be changed into :
>     command uint16_t CtpInfo.getNeighborRouteQuality(uint8_t n) {
>       return (n < routingTableActive)?  routingTable[n].info.etx:0xfffff;
>     }
> because routingTable[n].info.etx is the neighbor's ETX through this
> neighbor's parent , why do you add the link quality between the current node
> and this neighbor ?

What we are trying to do is return the path quality from the current
node, through the given neighbor, to the root. So, we need to add the
cost from the node to the parent (link quality) to the cost from the
parent to the root (getNeighborRouteQuality).

- om_p
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to