openshwprojects / OpenBK7231T_App

Open source firmware (Tasmota/Esphome replacement) for BK7231T, BK7231N, BL2028N, T34, XR809, W800/W801, W600/W601, BL602 and LN882H
https://openbekeniot.github.io/webapp/devicesList.html
1.43k stars 253 forks source link

Powersave might not be working on BL602 #1157

Open giedriuslt opened 6 months ago

giedriuslt commented 6 months ago

Describe the bug Powersave might not be working on BL602

Firmware:

Power save command on BL602 end here in SDK current SDK for OpenBK

int wifi_mgmr_api_fw_powersaving(int mode) { return wifi_mgmr_api_common_msg(WIFI_MGMR_EVENT_FW_POWERSAVING, (void)0x1, (void)0x2); }

So it does not depend on mode parameter and does something, but can't be hanged. Official sdk has fixed this.

divadiow commented 5 months ago

is this an easy fix?

divadiow commented 5 months ago

Probably a silly question but is moving to the latest SDK entirely a big task?

giedriuslt commented 5 months ago

latest sdk has quite some changes in the structure, so app needs to be modified. I tried, but got stuck. I might return to that some time later. Also modifying existing sdk to pass the power save parameter does not seem to influence power use in any way.

divadiow commented 5 months ago

I wonder if the Ai-Thinker SDK is better. https://github.com/Ai-Thinker-Open/Ai-Thinker-WB2