On Fri, Oct 2, 2009 at 12:38 AM, giorgio <[email protected]> wrote:
> I use collection protocol to send message from nodes to a node root and I try
> to understand the quality of the link between a node and his neighbor .To do
> this I use call CtpInfo.getNeighborLinkQuality(adr); and I obtain a strange
> (for me) thing :
> Node Id   3  Padre 1  Link Quality 20
> Node Id   5  Padre 1  Link Quality 65535
> Node Id   7  Padre 1  Link Quality 65535
>
> where node id 3 test the quality of the link with node id 1 and
>  node id 5 test the quality of the link with node id 3 and
>  node id 7 test the quality of the link with node id 5.
> Also change the order of the node i obtain always a low link quality of the
> base station or root node and I don't know why ? is it normal ?


Here is the relevant code in CtpRoutingEngineP.nc:

    command uint16_t CtpInfo.getNeighborLinkQuality(uint8_t n) {
      return (n < routingTableActive)? call
LinkEstimator.getLinkQuality(routingTable[n].neighbor):0xffff;
    }

and the link estimator returns eetx of the link, where eetx is 10*(etx-1)

> And is it possible to send with collection protocol data to a particular node
> and not to the root :I ask this because collection protocol offers some
> utilities very useful but I must send data from a node to another node that it
> isn't the node root .

That is not possible with collection. However, the collection does
support multiple roots but you have no control over which root will
get the message.

- om_p

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

Reply via email to