logo elektroda
logo elektroda
X
logo elektroda

[BK7231N - CBU] TONGOU TO-Q-SY1-JWT Din Rail Wifi Switch with power metering

valeklubomir 16584 61

TL;DR LABEL_AI_GENERATED

  • TONGOU TO-Q-SY1-JWT DIN-rail WiFi switch from AliExpress uses a BK7231N CBU module and includes power metering.
  • It uses a magnetic polarized relay driven by an MD7620 bridge driver; forward closes the contact and reverse opens it.
  • The relay needs a 100–200 ms pulse to change position, then holds its last state without power.
  • Pin mapping includes P9 relay status LED, P15 WiFi LED, P17 button, P24 bridge forward, and P26 bridge reverse.
  • OpenBK7231T_App firmware supports the platform, but MD7620 bridge-driver support is not finished yet.
AI summary based on the discussion. May contain errors.
ADVERTISEMENT
Listen:
  • #61 21823833
    divadiow
    Level 38  
    Posts: 5220
    Help: 449
    Rate: 918
    Sllaci01 wrote:
    This was originally the Ewelink version and it had voltage and current limitation, maximization.


    I am not aware of an equivalent ability within OpenBL602
  • ADVERTISEMENT
  • BL0942 driver not working; possible SPI wiring issue

    #62 21833136
    Sllaci01
    Level 4  
    Posts: 7
    Thanks for the info.
    I haven't had time to work on the project for a long time, but now I'm back

    Is it possible that this would implement current limitation?
    I think that for this it is necessary to monitor the current consumption and, if it is greater than the set value, the relay switches off.

    BL0942 driver can be loaded, but unfortunately it doesn't work.
    There are no values ​​read.
    And it doesn't accept commands, for example: "VoltageSet 230"
    Maybe it is possible that SPI is connected?

    Added after 4 [minutes]:


    Screenshot of an energy monitoring dashboard with voltage/current/power readings and a “Periodic Statistics” section.

    Added after 8 [minutes]:

    My startup:
    delay_s 5
    startDriver BL0942
    startDriver NTP
    ntp_timeZoneOfs 1
    SetupEnergyStats 1 30 120 0
    startDriver Bridge
    BridgePulseLength 100

    And need enable flag 26 ([UART]
Listen:

Topic summary

LABEL_AI_GENERATED
Discussion about flashing and configuring a TONGOU DIN-rail WiFi switch based on BK7231N CBU module with BL0942 power metering and a magnetic polarized relay driven through MD7620 bridge driver. The main topic is OpenBK7231T/OpenBK firmware support for the bridge relay, correct GPIO mapping, and startup commands. Initial configurations using Rel/Rel_n kept the relay coil continuously energized and caused overheating; the correct setup uses BridgeFWD and BridgeREV on the paired pins, with the bridge driver starting automatically after reboot or manually via startDriver Bridge. Users also discussed flashing methods without desoldering, UART/HID flashing tools, hot-air desoldering issues, SSDP discovery, and energy metering calibration problems such as non-zero idle readings, incorrect power calculation, and startup behavior after power outages. Later posts mention BL602 variants where bridge mode is not included in the default build and requires a special firmware build or pull request.
AI summary based on the discussion. May contain errors.

FAQ LABEL_AI_GENERATED

TL;DR: A 100–200 ms pulse is enough to flip the MD7620 latching relay, and “Bridge driver will start automatically after reboot” [Elektroda, valeklubomir, post #20448030] OpenBK v1.17.441 adds native Bridge support and fixes over-heating caused by continuous coil drive [Elektroda, robert21965, post #20942245]

Why it matters: Correct pin roles and pulse timing stop the relay from drawing >2 W as heat and extend module life.

Quick Facts

• Wi-Fi SoC: Beken BK7231N, 32-bit, 2.4 GHz [Elektroda, valeklubomir, post #20288620] • Relay driver: MD7620 H-bridge, 100–200 ms activation pulse [Elektroda, valeklubomir, post #20288620] • Metering IC: BL0942, ±1 % typical after calibration [Elektroda, valeklubomir, post #20288620] • Latest tested OpenBK: v1.17.441 (Jan 2024) [Elektroda, robert21965, post #20942245] • Flash speed: 921 600 bps UART; HID tool removes 100-attempt issue [Elektroda, romanfarki, post #20476727]

How do I enable the H-bridge driver in OpenBK?

  1. Set P24 to BridgeFWD;1 and P26 to BridgeREV;1. 2. Reboot so the Bridge driver autostarts. 3. If 0 drivers show, issue startDriver Bridge once [Elektroda, Osrx, post #20863693]

My relay stays energised and overheats—why?

Using Rel/Rel_n roles powers the coil continuously. Switch to BridgeFWD/BridgeREV roles so the driver sends a 100–200 ms pulse only [Elektroda, przemsi_ele, post #20862770]

Can I flash a CBU module without desoldering?

Yes. Solder 4–5 dupont wires (3V3, GND, RX, TX, CEN) on-board, hold CEN low, and flash with BK7231GUIFlashTool or hid_download_py [Elektroda, p.kaczmarek2, post #20797962]

How do I calibrate BL0942 measurements?

Supply a known resistive load, then issue EnergyCal Voltage , Current , Power . Repeat until readings match within ±1 % [Elektroda, robert21965, post #20935273]

Module reboots when measuring solar inverter output—why?

Negative current can exceed firmware assumptions and trip a watchdog, causing resets [Elektroda, thealphahelix, post #20475897] Bridge to a conventional load during testing.

How do I change the power-on state of relay and LED?

Open Configure Startup, set Channel 1 to –1 (restore last), 0 (off) or 1 (on); LED follows the relay channel [Elektroda, windo31, post #21591074]

Three-step flashing recap

  1. Hold CEN low and power the board.
  2. Run BK7231GUIFlashTool, select OpenBK .bin, click Flash.
  3. Release CEN; connect to the new Wi-Fi AP to finish setup [Elektroda, p.kaczmarek2, post #20797962]
AI summary based on the discussion. May contain errors.
ADVERTISEMENT