ESP32在从DEEP SLEEP唤醒后如何快速连接到BLE peripheral ?

qycfat
Posts: 1
Joined: Sat May 11, 2019 3:56 am

ESP32在从DEEP SLEEP唤醒后如何快速连接到BLE peripheral ?

Postby qycfat » Sat May 11, 2019 4:57 am

RT, 我用ESP32做了个遥控器,在没有动作时会进入DEEP SLEEP,但在从DEEP SLEEP唤醒后重新连接到BLE peripheral 要经历SCAN,然后连接。这段时间要近2秒,有办法缩短这个时间吗?或是可以直接用peripheral 的MAC地址连接?另外吐槽下ESP32,唤醒时电流近100MA,根本无法用CR2032

mad462
Posts: 1
Joined: Fri Jun 25, 2021 1:16 am

Re: ESP32在从DEEP SLEEP唤醒后如何快速连接到BLE peripheral ?

Postby mad462 » Fri Jun 25, 2021 1:19 am

同样遇到这个问题,用BLE做了一个键盘,平时没动进入低功耗,每次唤醒需要将近2S。不知道有没有什么办法缩短时间

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: ESP32在从DEEP SLEEP唤醒后如何快速连接到BLE peripheral ?

Postby ESP_Gargamel » Mon Jun 28, 2021 7:45 am

menuconfig 里 Bootloader config -> Skip image validation when exiting deep sleep,这个勾上,可以快一点。

Who is online

Users browsing this forum: Google [Bot] and 32 guests