8258休眠问题

Discussions on BLE related products, including standard BLE devices, BLE mesh, and Apple HomeKit products
Post Reply
leqibike
Posts: 1
Joined: Thu Nov 15, 2018 12:29 pm

Mon Jul 08, 2019 2:55 pm

bls_pm_setSuspendMask (SUSPEND_DISABLE);在代码里面加入了前面这句,但是鼠标还是会在播放语音的时候进入休眠,这个设置貌似没有起作用,不知道为什么
TL_kidd.zhu
Posts: 9
Joined: Wed May 10, 2017 3:57 pm

Thu Jul 11, 2019 6:12 pm

Hi,
bls_pm_setSuspendMask(SUSPEND_DISABLE) API只是用於設定adv state 與 conn state slave role 空閒時間MCU可以進入睡眠。
除此之外呼叫cpu_sleep_wakeup() API ,也可以讓系統進入deep sleep, 請檢察代碼是否呼叫cpu_sleep_wakeup() API
Post Reply