On Fri, Sep 4, 2009 at 2:41 PM, Tao Liu <[email protected]> wrote:
> Hi all,
>
> I am studying the source code of MultihopLQI, a multihop routing
> protocol in TinyOS 2.1.0 (tos/lib/net/lqi). In its routing engine
> (LqiRoutingEngineP.nc), the LQI value of beacon messages are adjusted
> using the following function:
>
>
>   uint16_t adjustLQI(uint8_t val) {
>     uint16_t result = (80 - (val - 50));
>     result = (((result * result) >> 3) * result) >> 3;
>     return result;
>   }
>
> The adjusted LQI value is used as the "cost" from current node to the
> neighboring node from which the beacon message is sent.
>
> I don't understand the reason of the adjustment. Could some one give
> me some pointer about why the LQI value has to be adjusted before use?

Here is one answer from Joe:
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-September/012040.html

- om_p

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

Reply via email to