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.

请教大神,ZHA1.2.2协议栈中怎样修改低功耗睡眠模式下的睡眠时间

Other Parts Discussed in Thread: CC2530, Z-STACK

你好!

     请教大神,在ZHA1.2.2协议栈中怎样修改低功耗睡眠模式下的睡眠时间?

    谢谢!

    注:用Z-Stack Home 1.2.2协议栈中的SampleDoorLock例程,芯片用CC2530。

  • 关于休眠的时间是有OSAL操作系统的调度来决定,每次休眠时间都是按照最新会发生的一个Event Timeout作为休眠时间。具体在协议栈hal_sleep函数中有说明。
    这个timeout主要分为两类,一类是应用层事件的timeout,另外一类是MAC层事件的timeout,
    1)应用层的timeout的时间,是在osal_pwrmgr_powerconserve( void )函数中,通过osal_next_timeout();获得的。
    2)MAC层的timeout时间,是通过halSleep( uint16 osal_timeout )函数里面,通过MAC_PwrNextTimeout();来获得的。