logo elektroda
logo elektroda
X
logo elektroda

OpenBeken BK7231N - Deactivate Wi-Fi permanently?

luca98michel 366 3
ADVERTISEMENT
Treść została przetłumaczona german » english Zobacz oryginalną wersję tematu
  • #1 21423247
    luca98michel
    Level 2  
    Hello together

    I'm currently working on minimising the power consumption in my flat and have bought power metering sockets from Aliexpress.
    These contain CB2S chips, i.e. BK7231N and BL0937 current measurement modules.
    I reflashed the BK7231N with Openbeken to create a customised script (autoexe.bat). It was important that it runs offline, as there is no constant Wi-Fi at home.

    The idea is that the sockets switch off over time at a threshold value defined by me and go into PinDeepSleep. This continues until the button on the socket gives a signal to wake up.

    This allows me to reduce the standby current of the connected devices to practically 0. When the socket is in operation, the CB2S jumps between a consumption of about 50mA -70mA. I guess because I deliberately didn't specify the presence of Wi-Fi, it searches for it again every second or so and goes to 70mA consumption.

    My question now: Can I switch off the Wi-Fi via the Autoexe in OpenBeken constantly and only set the threshold values in "save mode" via the AP of the socket? I haven't found anything about this in the forum or the command list.

    Thanks for the info and best regards
    Luca
  • ADVERTISEMENT
  • #2 21562511
    herby2012
    Level 2  
    Hello Luca,
    What you have in mind doesn't seem entirely logical to me. 1. you have switched on the socket. The load draws current. If the line falls below the value you have specified, the CB2S switches to DeepSleep. This means that I always have to press the button to switch on the load. This is the same behaviour as a countdown timer, except that power is measured for the time.
    Then you need to know that you have no control over the GPIOs in AP mode. In AP mode you can only configure the Wi-Fi. And you need to know that when you bring the CB2S out of DeepSleep via a button, the module automatically wants to access a WLAN. You also need to know that the second Wi-Fi cannot be used by default in the current openBK.
    You can check this by pressing and holding the Power On/Off button 5 times in succession. The AP will then open to perform the Wi-Fi configuration.

    Hope that helps you for now.

    What you have described can be better solved with a power strip with a consumer function. You set the current value appropriately and then switch off not only the load, but also the entire socket. You just have to move the measuring electronics from the input side to the consumer side, then both are switched off and you have to intervene manually to switch them on again, but you would have to do that with the button from the DeepSleep.

    Herby
  • ADVERTISEMENT
  • #3 21562529
    xury
    Automation specialist
    A current consumption of around 50-70 mA is impossible, it must be an error. Where do you get this data from? From measurements on the smart socket itself?
    Yes, 70 mA is possible for the circuit, but on the voltage side of 3.3 V which gives 0.0231 W.
    If it were 50 -70 mA on the AC side, the consumption would be between 11 W and 16 W, which is impossible.
  • #4 21568766
    luca98michel
    Level 2  
    Hello you two

    Exactly, in principle it is a countdown based on the current measurement.
    I have made 2 different versions, one of which can only be switched on again manually using the button on the smart socket and a version in which I connect a 433 MHz receiver to an interrupt/wakeup pin on the CB2S. Very energy efficient and both work perfectly.

    herby2012 wrote:
    Then you need to know that you have no control over the GPIOs in AP mode

    Then deactivating in "normal" mode will probably not work, thanks.

    xury wrote:
    Yes, 70 mA is possible for the circuit, but 3.3 V on the voltage side, which results in 0.0231 W.

    Yes, the 70 mA current is what the CB2S itself consumes, which I would like to switch off when not in use. I know this is a low consumption, calculated on the power, I just want to optimise the whole thing as far as is technically possible.
ADVERTISEMENT