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?

Thanks,

Tao

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

Reply via email to