Topic

FAQ
Login Register
泰凌微休眠后无法搜索到蓝牙设备
Dec 30, 2021 09:56

/

A

/A

我通过cpu_sleep_wakeup(SUSPEND_MODE,PM_WAKEUP_PAD,0);让设备进入暂停模式后,无法通过app搜索到蓝牙设备,我需要设置那些参数呢?




1 replies
TL_hk Dec 30, 2021 10:53
0
/A

直接调用cpu_sleep_wakeup(SUSPEND_MODE,PM_WAKEUP_PAD,0);会让设备直接挂起,停止运行;


可以参考remote/sample,在广播和连接态调用bls_pm_setSuspendMask (SUSPEND_ADV | DEEPSLEEP_RETENTION_ADV | SUSPEND_CONN | DEEPSLEEP_RETENTION_CONN);由协议栈决定是否进入低功耗模式;


建议阅读AN_19011501-C5_Telink Kite BLE SDK Developer Handbook chapter 4.低功耗管理。


Related topics
No related topics
Author's other topics
No more topics