logo elektroda
logo elektroda
X
logo elektroda

Qiachip Smart Switch - BK7231N / CB2S - interior, programming

p.kaczmarek2 69243 310
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
📢 Listen (AI):
  • #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?
  • ADVERTISEMENT
  • #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?
  • #304 21707382
    p.kaczmarek2
    Moderator Smart Home
    We've been considering enabling powersave by default but there were some reports (in the early years) saying that it causes problems....

    We can add temperature in tasmota json, isn't it currently included there? @max4elektroda
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #305 21707775
    max4elektroda
    Level 21  
    The Chip temperature is in fact only shown in MQTT and not as a "sensor" in JSON "SSN" status.
    We might add it there, but it would not be following Tasmota then ;-).
    Just kidding - what would you propose as sensor name? "Chip" - "MCU" - "internal" ... ???
  • #306 21707925
    p.kaczmarek2
    Moderator Smart Home
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #308 21707986
    p.kaczmarek2
    Moderator Smart Home
    This is good question. Should we... fake it and use ESP32 so Tasmota apps can read it?
    Helpful post? Buy me a coffee.
  • #309 21707993
    max4elektroda
    Level 21  
    I would not. In the end it's just the "sensors" name. But you decide :-)
    And: shall it be present in any case, or make it configurable?
  • #310 21707997
    p.kaczmarek2
    Moderator Smart Home
    Always show it, we don't have flash space to add configuration option, and I don't think it can hurt to show it. So probably use ESP32 name, so apps working with Tasmota can work
    Helpful post? Buy me a coffee.
  • #311 21709766
    max4elektroda
    Level 21  
    PR changed, will always use "ESP32" as "sensor":

    E.G. on an BL602:
    
    max@max-PC:~$ curl  -w '\n' "http://192.168.0.68/cm?cmnd=STATUS%208"
    {"StatusSNS":{"Time":"1970-01-01T00:00:00","ESP32":{"Temperature": 27.3},"TempUnit":"C"}}
    max@max-PC:~$ 
    
📢 Listen (AI):

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