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.

ZigBee入网的问题,求指点(急,急,急)

f8wConfig.cfg文件里,

默认信道值为:-DDEFAULT_CHANLIST=0x00100000  // 20 - 0x14

默认PANID的值为:    -DZDAPP_CONFIG_PAN_ID=0xC465

为什么在应用层读取到的值PANID 为0xFFFE ,信道值为0x00呢????

以下是在应用层执行的程序:

HalUARTWrite(1,&asc_16[_NIB.nwkPanId/4096],1);
HalUARTWrite(1,&asc_16[_NIB.nwkPanId%4096/256],1);
HalUARTWrite(1,&asc_16[_NIB.nwkPanId%256/16],1);
HalUARTWrite(1,&asc_16[_NIB.nwkPanId%16],1);
HalUARTWrite(1,&asc_16[_NIB.nwkLogicalChannel%256/16],1);
HalUARTWrite(1,&asc_16[_NIB.nwkLogicalChannel%16],1);