logo elektroda
logo elektroda
X
logo elektroda

Qiachip Smart Switch - BK7231N / CB2S - interior, programming

p.kaczmarek2 67377 302
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #301 21703356
    p.kaczmarek2
    Moderator Smart Home
    Tuya uses cheap components and without OpenBeken Power Save, your capacitors may degrade quickly: https://www.elektroda.com/rtvforum/topic3898805.html
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #302 21703437
    Tilator
    Level 11  
    p.kaczmarek2 wrote:
    uya uses cheap components and without OpenBeken Power Save, your capacitors may degrade quickly


    Thanks. That was important and I did not know it.

    I have bought more than 10 of these devices. One of them did litteraly blow in my hands after just some minutes use. It was not even flashed with any other but original FW.

    Afterwards I found out, the capacitor was damaged. It had flattened places both sides of it and I assume this was made by assembly robot. It was sqeezed slightly too much and broken already.

    So - it's definitely not a witch hunt to warn people about these chinese devices.

    B.T.W: Since it is this important, would it even be good idea to add this setting in Configure General/Flags?
  • #303 21706375
    Tilator
    Level 11  
    One more thing about this chip temperature and device health:

    Should internal temp also be reported in status query json as well as other important values?

Topic summary

The discussion centers on the teardown and custom firmware programming of the Qiachip Smart Switch featuring the CB2S module based on the BK7231N chip, distinct from the BK7231T. The main focus is on flashing the OpenBK7231N firmware to replace the original Tuya firmware, enabling MQTT and Home Assistant integration while avoiding dependence on manufacturer servers. Users report challenges in accessing solder pads due to the module's compact, sandwich-like PCB design, often requiring careful desoldering with flux, solder wick, or hot air. Programming requires connecting 3.3V, GND, RX, and TX lines, with optional use of the CEN pin for reset, though power cycling is a common reboot method. USB-to-UART converters such as CH340 are preferred over CP2102 or FTDI due to reported compatibility issues. Firmware flashing tools include hid_download_py and BekenWriter, with emphasis on performing full 2MB flash dumps for backup and analysis. Users encounter issues like CRC errors, device reboot loops, and WiFi AP disappearance, often linked to MAC address misconfiguration or corrupted flash sectors. Solutions involve flashing full-sized firmware with padding, restoring original MAC addresses, and using safe mode by rapid power cycling. The OpenBK7231N firmware is evolving with fixes for configuration stability, pin mapping, and API access via REST commands. Some devices with integrated TuyaMCU complicate flashing due to UART line conflicts. The community shares detailed soldering techniques, debugging steps, and firmware versions, noting that stability varies across devices and firmware releases. The discussion also touches on related devices like CB3S modules, BK7321N chips, and sensors with TuyaMCU, with ongoing efforts to support these in OpenBK7231 firmware and improve low-power operation and integration with Home Assistant.
Summary generated by the language model.
ADVERTISEMENT