logo elektroda
logo elektroda
X
logo elektroda

[Solved] ERC2202 - chip CB2S (BK7231N) pin configuration after firmware successfully replaced

jtefstefan 1488 4
ADVERTISEMENT
  • #1 20651669
    jtefstefan
    Level 2  

    I have a kinetic energy dual controller (ERC2202) with CB2S inside. After I flashed it with a wrong firmware using tuya cloudcutter, I reflashed it with OpenBK7231N_QIO_1.17.179.bin (using wires).
    I can access it through the web UI.
    When I use the physical button, the relays work, but I cannot figure out what its configuration is in order to make the relays work in the app.

    I tried to get the initial tuya GPIO, but it only says that there is no relevant information in the generated JSON.

    If it helps with something: before flashing it, I connected it to the cloud and got from the tuya debug device the datapoints for the switches. These were 1 and 2.

    Let me know what other info I can provide in order to make it work from the app.

    Thank you!

    ERC2202 - chip CB2S (BK7231N) pin configuration after firmware successfully replaced ERC2202 - chip CB2S (BK7231N) pin configuration after firmware successfully replaced
  • ADVERTISEMENT
  • Helpful post
    #2 20651842
    p.kaczmarek2
    Moderator Smart Home

    Hello, your device is most likely a TuyaMCU device. You need to prepare autoexec.bat for OpenBeken. Please read this thread for details:
    https://www.elektroda.com/rtvforum/topic3971440.html

    The general rule is that the relay will not work with the button after flashing with OBK with a blank device configuration. If it is working, it means that both the relay and the button are connected to the TuyaMCU, and the device itself is using TuyaMCU.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20654713
    jtefstefan
    Level 2  

    Thank you for pointing me in the right direction. It worked!

    I created autoexec.bat and added:

    startDriver TuyaMCU
    setChannelType 1 toggle
    linkTuyaMCUOutputToChannel 1 bool 1
    setChannelType 2 toggle
    linkTuyaMCUOutputToChannel 2 bool 2

  • ADVERTISEMENT
  • #4 20654953
    p.kaczmarek2
    Moderator Smart Home

    I am happy to hear it's working.

    By the way, it's surprising for me that Tuya is using TuyaMCU even for simple two relay devices. What's wrong with simple GPIO-based control? Strange. It seems like an unnecessary way to complicate the device more.
    Helpful post? Buy me a coffee.
  • #5 20934639
    jtefstefan
    Level 2  

    Solved using:
    I created autoexec.bat and added

    startDriver TuyaMCU
    setChannelType 1 toggle
    linkTuyaMCUOutputToChannel 1 bool 1
    setChannelType 2 toggle
    linkTuyaMCUOutputToChannel 2 bool 2


    Thank you!
ADVERTISEMENT