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.

CC2530如何在没有协调器的情况下定时唤醒?

Other Parts Discussed in Thread: CC2530

在有协调器的情况下可定时唤醒,实现数据定时上传。

但是一旦协调器断电,CC2530就一直处在搜索网络的状态,软件可以设置其进入深度睡眠,但是只能通过外部中断唤醒。

有没有定时唤醒的方法,让设备唤醒并尝试组网,组网失败继续休眠的方法?

  • /*
     * ZDApp_StopJoiningCycle
     *    - Stops the joining or rejoining process of a device.
     *
     *    returns  TRUE if joining stopped, FALSE if joining or rejoining
     */
    extern uint8 ZDApp_StopJoiningCycle( void );

  • uint8 ZDApp_StopJoiningCycle( void )
    {
    if ( devState == DEV_INIT || devState == DEV_NWK_DISC )
    {
    continueJoining = FALSE;
    return ( TRUE );
    }
    else
    return ( FALSE );
    }

    当协调器跟终端节点连上之后,协调器再断电,那么终端节点的devState == DEV_NWK_ORPHAN ,上述函数应该无效吧?