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入网时,信标广播的周期如何控制

zigbee入网时,信标广播的周期如何控制。使用公司的程序,发现信标过很久才发出一个;对比zigbee标准协议,Router未加入网络就会周期性的发出beacon,600ms-2000ms左右吧。这个广播周期如何控制?

  • 有两个办法,一种你可以手动的去打开或者关闭beacon request的发送,

    uint8 ZDApp_StartJoiningCycle( void )
    {
    if ( devState == DEV_INIT || devState == DEV_NWK_DISC )
    {
    continueJoining = TRUE;
    ZDApp_NetworkInit( 0 );

    return ( TRUE );
    }
    else
    return ( FALSE );
    }

    /*********************************************************************
    * @fn ZDApp_StopJoiningCycle()
    *
    * @brief Stops the joining or rejoining process of a device.
    *
    * @param none
    *
    * @return TRUE if joining stopped, FALSE if joining or rejoining
    */
    uint8 ZDApp_StopJoiningCycle( void )
    {
    if ( devState == DEV_INIT || devState == DEV_NWK_DISC || devState == DEV_NWK_BACKOFF )
    {
    continueJoining = FALSE;
    return ( TRUE );
    }
    else
    return ( FALSE );
    }

    另外一种你可以通过使能MANAGED_SCAN,单次发送beacon request