bouffalolab / bl_iot_sdk

BL602/BL702 SDK. Any technical topic, please access the following link.
http://bbs.bouffalolab.com
Apache License 2.0
260 stars 170 forks source link

power consumption in BLE only mode #44

Open mikewen opened 3 years ago

mikewen commented 3 years ago

What's the power consumption in BLE only mode?

Can BL602 hold GPIO status during sleep?

I was looking at: ble_controller_sleep Do you think the more accurate comments should be: // if >=0, means not allow sleep ?

pdsLevel , pdsCfgLevel in bl_pds.c give us ideas on different power down levels, can you explain a bit more?

YafeiJin commented 3 years ago

@mikewen Low Power mode is much complex, and the brief info as the following

Clock control: GLB clock control for each peripheral device, small range of power saving, fast response speed Sleep control(PDS): Contains 4 levels of PDS1/2/3/7,wide range of power saving, medium response speed Deep Sleep Control(HBN): Contains 4 levels of HBN0/1/2/3,global power saving, long response time

GPIO status can be hold with PDS mode. ble_controller_sleep is supposed to sleep RF part during interval to reduce the power consumption, and current SDK have not implement the whole feature. Cause the power consumption is related to use case, we just provide the simple data in datasheet: Screen Shot 2021-02-20 at 11 51 41 AM