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.

路由地址管理器AddrMgr中index=0的短地址为什么=0xFFFE?

Genius 3030 points

AddrMgrEntry_t addrEntry;

uint16 NodeCnt=0;

for(int j=0; j<NWK_MAX_DEVICES; j++)
  {
    addrEntry.index = j;
    if (AddrMgrEntryGet( &addrEntry ))
    {
           NodeCnt++;
           HalLcdWriteStringValue("NodeCnt:", NodeCnt, 10, 2);

           UARTWriteStringValue( 0, "index:", addrEntry.index , 10, 1);
           UARTWriteStringValue( 0, "nwkAddr:", addrEntry.nwkAddr , 16, 1);
          
           HalUARTWrite(0, "\r\n" ,2);
    }
  }

以下是: 1 个coor, 2个router 入网得出的现象

a, 当router1连接到coor的时候,router1的地址管理器中index=0的短地址一直为:0xFFFE; 

b, router2连接到router1的时候,地址管理器中index=0处却没有地址;

c, 将router2直接连接到coor时,router2的地址管理器中index=0的短地址一直为:0xFFFE;

d, 将router1连接到router2的时候,地址管理器中index=0处却没有地址; 


想问一下为什么router直接连接到coor的时候其地址管理器中index=0的地址会一直是:0xFFFE ?