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 协调器PAN ID问题

Other Parts Discussed in Thread: Z-STACK

如题:

           Z-stack协调器如何建立一个指定pan ID的网络。

  • 可以更改f8wConfig.cfg中的

    -DZDAPP_CONFIG_PAN_ID=0xFFFF

    也可以

    //You need to add the compile options NV_INIT and set the NV copy of the channel number and PanId:
    
    zgDefaultChannelList = MyNewDesiredChannel;
    
    osal_nv_write(ZCD_NV_CHANLIST, 0, osal_nv_item_len( ZCD_NV_CHANLIST ), &zgDefaultChannelList);
    
    zgConfigPANID = MyNewPanId;
    
    osal_nv_write(ZCD_NV_PANID, 0, osal_nv_item_len( ZCD_NV_PANID ), &zgConfigPANID);