Hello All
This is my first post here so I hope everything will be OK.
Since last weekend I'm experimenting with a smart WiFi socket based on a CB2S module with chip BK7231N
And everything is working as expected.
To have accurate time I wanted to use NTP and also to learn about the script autoexec.bat (nice name btw.)
I made this autoexec.bat
PowerSave 1
StartDriver ntp
ntp_setServer 10.0.0.138 (I use my modem as NTP server)
ntp_setLatlong xx.xxxxx2 xx.xxxxx1 (in reality my position)
ntp_timeZoneOfs 1
waitFor NTPState 1
I rebooted the socket and everything seems to work fine until I saw that my CPU temperature was much! higher then
normal. (almost twice as high)
So I removed all the NTP settings from autoexec.bat and just left PowerSave 1 in it, and rebooted.
Again still high CPU temperature...
I cleared the whole autoexec.bat, rebooted and in the WEBgui in 'Execute Custom command' I gave the command PowerSave 1
and left it overnight and to my surprise the temperature was back to normal...
To be sure I placed PowerSave 1 back in autoexec.bat and left it for a few hours, and guess what... again high CPU temperature.
To be clear in all cases the WEBgui was closed and no other traffic to the socket, strange thing is that in both cases in the logfile it says
it is in powersafe mode, but there is a clear difference when PowerSave 1 is in autoexec.bat or given manually.
For me it looks that PowerSafe 1 is not executed in autoexec.bat, or maybe I'm missing out on something, then my apology for the trouble.
I did a search but could not find anything on this topic.
All the tests where done without NTP, BTW. is it possible to give the NTP sync a time interval? now NTP does a sync every minute this also could
give problems for PowerSafe.
I think an interval from an hour is more then enough, maybe this is already possible but I could not find it, then again my apology for the trouble.
Other small thing is that I do not use MQTT for control to the socket but via WEB requests and when I gave the status command for network
settings this showed up;
The gateway and DNS do not have the right IPaddress, I think this is more a display thing, I can connect to devices outside my local network, so I guess
gateway and DNS are OK, but they just display wrong in the status overview.
Keep up the good work on this fantastic project, I ordered more smart WiFi devices to flash to OpenBeken
Greetings Mark
AI: Could you please specify the operating system or firmware version running on your smart WiFi socket?
Built on Jan 12 2025 20:06:02 version 1.18.20
Online for 2 hours, 50 minutes and 9 seconds
Device MAC: 10:5A:17:34:C8:92
Short name: Slaapkamer, Chipset BK7231N
AI: Are there any error messages or logs generated when the PowerSave command is executed in autoexec.bat? If so, could you share them?
There are no error messages in the LOG file, it even says (from my mind) "PowerSafe set to 1"
This is my first post here so I hope everything will be OK.
Since last weekend I'm experimenting with a smart WiFi socket based on a CB2S module with chip BK7231N
And everything is working as expected.
To have accurate time I wanted to use NTP and also to learn about the script autoexec.bat (nice name btw.)

I made this autoexec.bat
PowerSave 1
StartDriver ntp
ntp_setServer 10.0.0.138 (I use my modem as NTP server)
ntp_setLatlong xx.xxxxx2 xx.xxxxx1 (in reality my position)
ntp_timeZoneOfs 1
waitFor NTPState 1
I rebooted the socket and everything seems to work fine until I saw that my CPU temperature was much! higher then
normal. (almost twice as high)
So I removed all the NTP settings from autoexec.bat and just left PowerSave 1 in it, and rebooted.
Again still high CPU temperature...
I cleared the whole autoexec.bat, rebooted and in the WEBgui in 'Execute Custom command' I gave the command PowerSave 1
and left it overnight and to my surprise the temperature was back to normal...

To be sure I placed PowerSave 1 back in autoexec.bat and left it for a few hours, and guess what... again high CPU temperature.

To be clear in all cases the WEBgui was closed and no other traffic to the socket, strange thing is that in both cases in the logfile it says
it is in powersafe mode, but there is a clear difference when PowerSave 1 is in autoexec.bat or given manually.

For me it looks that PowerSafe 1 is not executed in autoexec.bat, or maybe I'm missing out on something, then my apology for the trouble.
I did a search but could not find anything on this topic.
All the tests where done without NTP, BTW. is it possible to give the NTP sync a time interval? now NTP does a sync every minute this also could
give problems for PowerSafe.
I think an interval from an hour is more then enough, maybe this is already possible but I could not find it, then again my apology for the trouble.
Other small thing is that I do not use MQTT for control to the socket but via WEB requests and when I gave the status command for network
settings this showed up;

The gateway and DNS do not have the right IPaddress, I think this is more a display thing, I can connect to devices outside my local network, so I guess
gateway and DNS are OK, but they just display wrong in the status overview.
Keep up the good work on this fantastic project, I ordered more smart WiFi devices to flash to OpenBeken

Greetings Mark
AI: Could you please specify the operating system or firmware version running on your smart WiFi socket?
Built on Jan 12 2025 20:06:02 version 1.18.20
Online for 2 hours, 50 minutes and 9 seconds
Device MAC: 10:5A:17:34:C8:92
Short name: Slaapkamer, Chipset BK7231N
AI: Are there any error messages or logs generated when the PowerSave command is executed in autoexec.bat? If so, could you share them?
There are no error messages in the LOG file, it even says (from my mind) "PowerSafe set to 1"