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.

关于路由表什么时候会刷新的问题

Other Parts Discussed in Thread: CC2530

TI的工程师您好,在给路由设备添加日志时从串口定义一个命令用来打印路由表中的rtgTable[i].nextHopAddress和rtgTable[i].dstAddress。

有遇到两个问题:

1、打印出来的路由表怎么就只有28项,自己定义的是40项,通过IAR调试看路由表也有40项,问下协议栈是否哪个地方有限制了?

2、设备入网后打印的路由表这两项的值全是默认值0xFFFE,入网后不会刷新吗,至少到协调器的路径都没有保存下来?

手动将协调器下电,设备会发路由请求这是协调器上电回复下,再打印路由表,就又有到协调器路径保存到表中了。

所以问下路由表刷新需要什么条件?如果有自动刷新需要多长时间。

谢谢了

Z-Stack2.5.1.a

CC2530

  • // Routing table
    rtgEntry_t rtgTable[MAX_RTG_ENTRIES];

    /* Number of entries in the regular routing table plus additional
    * entries for route repair
    */
    -DMAX_RTG_ENTRIES=40

    协议栈内默认是40

    您现在的网络拓扑是怎样的?

  • 您好,目前先测试,就加了5个设备,一个终端是通过路由入网,其余的直接通过协调器入网,设备都在两米内。

    还有请教一个其他问题邻居表中的linkInfo中的值有具体的参数标准码,什么范围内是较好的

    typedef struct
    {
    uint8 txCounter; // Counter of transmission success/failures
    uint8 txCost; // Average of sending rssi values if link staus is enabled
    // i.e. NWK_LINK_STATUS_PERIOD is defined as non zero
    uint8 rxLqi; // average of received rssi values
    // needs to be converted to link cost (1-7) before used
    uint8 inKeySeqNum; // security key sequence number
    uint32 inFrmCntr; // security frame counter..
    uint16 txFailure; // higher values indicate more failures
    } linkInfo_t;

    谢谢