pine64 / bl_iot_sdk

BL602 SDK (Pine64 fork)
https://pine64.github.io/bl602-docs/
Apache License 2.0
134 stars 58 forks source link

Sleep modes samples #69

Closed DurandA closed 3 years ago

DurandA commented 3 years ago

Has anyone played with the sleep modes (Idle Power Saving Mode and Sleep Mode)?

I just received a board and I am looking to measure current (using a uCurrent) in the various modes.

YafeiJin commented 3 years ago

@DurandA wifi connected or not?

DurandA commented 3 years ago

I'm mostly interested in deep sleep but will measure other modes as well. I am not sure what low power modes are compatible with keeping the WiFi.

YafeiJin commented 3 years ago

Okey, it is simple. Hibernate: Only wake up by GPIOs in Alway-on-Domain, and RTC, <0.5uA@3.3v PDS7: Wake up by GPIOs, ACOMP and RTC, <12uA@3.3v

DurandA commented 3 years ago

@YafeiJin Thank you. I see that you are working for Bouffalo Lab, thank you for your involvement with the open-source community.

Do you also have some power figures when scaling the CPU clock? Also can you elaborate on the use of PDS2? According to the manual the CPU power domain is off but the WiFi/BLE PHY/MAC are enabled. Can this be used to maintain the WiFi connection while the CPU is sleeping?

YafeiJin commented 3 years ago

@DurandA For CPU part, 22mA@192MHz, 2mA@<10MHz; Yes, it's doable. But commonly, it will be involved many custom development.

DurandA commented 3 years ago

@YafeiJin Thank you.