logo elektroda
logo elektroda
X
logo elektroda

[YT] Dynamic sleep (PowerSave 1) for BK7231T/BK7231N/W600/W800 - reducing power usage of WiFi module

p.kaczmarek2 
Mobile phone showing PowerSave feature enabled in the OpenBeken app, next to an energy meter.
Dynamic power saving can be used to reduce energy consumption of the WiFi module. It can also reduce the heating of board and increase stability of the device. Sometimes power saving may be required for some cheapest Tuya devices, because their power supplies are not able to provide larger currents for longer times and will degrade their capacitors quickly when under higher load. Dynamic power saving is not a deep sleep, the WiFi module is still online when powersave is enabled. It can still respond quickly to MQTT and HTTP packets.

Here's a quick powersave demonstration in OpenBeken:



Keep in mind that power save may be reduced if you, for example, keep your constantly-refreshing Web App log open.

See our other videos at:
https://www.youtube.com/@elektrodacom
See our devices list:
https://openbekeniot.github.io/webapp/devicesList.html

About Author
p.kaczmarek2
p.kaczmarek2 wrote 11864 posts with rating 9949 , helped 568 times. Been with us since 2014 year.

Comments

cyrax4 02 Dec 2023 12:12

kaczmarek, I would like to ask if it is possible in your firmware to programatically (or anyhow) completely turn off wifi? My goal is to disable wifi after boot+300seconds to prevent overheating and... [Read more]

p.kaczmarek2 02 Dec 2023 12:38

There is no such command because no one has requested anything like that before. I can add such command easily if W600 SDK supports such a feature. Have you tried looking at our W600 SDK? Or, BK7231 SDK,... [Read more]

cyrax4 02 Dec 2023 13:22

Hm, thanks, I try to check. By SDK are you referring to "Tuya IoTOS" SDK at github or is there any other SDK that I haven't found? It is the BK7231N. I checked now deepsleep/pindeepsleep which could... [Read more]

io2345 20 May 2024 14:41

As to tell from the title, this command can not be used for LN882H Chipset, right? Or is it meanwhile implemented there? [Read more]

p.kaczmarek2 20 May 2024 14:46

I think it was implemented on LN882H in some form, but we had some WiFi issues with that and the PowerSave startup was delayed programmatically after the WiFi connect event. @max4elektroda may also know... [Read more]

io2345 20 May 2024 15:07

Thank you for your fast response. I tried it on the command line, and temperature dropped from 54°C to 44°C. But first I couldn't get it permanent via Config -> Change Startup command text. After a reboot,... [Read more]

divadiow 20 May 2024 15:10

just noticed this big LN882H SDK commit https://gitee.com/lightningsemi/ln882h/commit/b2d811378d07960f3800d8b3f0ac3145f961f127 I wonder if there's anything in there that may affect our powersave/wifi... [Read more]

divadiow 08 Sep 2024 09:35

@dedamraz re PowerSave on W800, I notice OBK uses W800 SDK v0.00.04 | 2020/06/04 . The latest appears to be W800 SDK v1.00.10 | 2023/08/25 the full translated changelog: ========================================================== |... [Read more]

p.kaczmarek2 08 Sep 2024 09:38

That's good find, we've spoke about it with @dedamraz yesterday. What a coincidence. Can you link to that new SDK so I can give it a go? Or at least to try.... because at the moment even I don't know... [Read more]

divadiow 08 Sep 2024 09:42

alas, not so much of a coincidence ;) @dedamraz mentioned it elsewhere to me and I was having a look around this morning. https://www.winnermicro.com/upload/1/editor/1692954953451.rar [Read more]

io2345 29 Nov 2024 13:49

Maybe this is the right place to ask the question from here: Link In my opinion the powersave is not working on that chip-type (BK7231N). Regardless if I put any value or leave the field blank, temperature... [Read more]