This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

z-stack路由发现

Other Parts Discussed in Thread: Z-STACK

TI工程师:

       z-stack中路由发现的一个重要参数是路由代价(或者叫路由成本),我查到z-stack中路由代价有2种计算依据:(1)以某个数值(资料里说是7)代表单跳的路由代价,那么总的路由代价就是总跳数乘以7;(2)以单跳间的链路质量LQI表示路由代价,取值0~7,则总的路由代价等于各单跳路由代价的总和。

       并且有资料指出这两种路由代价选择的依据是:nwkReportConstantCost的取值,我用的z-stack的版本是2.3.0,我在NLMEDE.h文件的枚举ZNwkAttributes_t中发现了nwkReportConstantCost的定义,那么请问该参数是在哪里被赋值的?

        如果我要选用以LQI来计算路由代价的方式,我该如何设置呢?