logo elektroda
logo elektroda
X
logo elektroda

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

valeklubomir 11676 49
ADVERTISEMENT
  • #31 20862306
    Osrx
    Level 5  
    Each at a time of controller output remains high forever:
    "24": "Rel;1",
    "26": "Rel_n;1"

    Also relay coil input remains or high or negative. But not fall to 0.

    Here I measure one of controller output:
    Digital multimeter showing -3.05 V next to an electronic module with test probes.

    I use latest firmware: Build: Build on Dec 13 2023 21:51:33 version 1.17.343
    And configuration from (Tongou) TO-Q-SY-JWT Switch and Meter for DIN Rail.

    I'm newbie in OpenBK so may be somewhere I do something wrong.
  • ADVERTISEMENT
  • #32 20862316
    p.kaczmarek2
    Moderator Smart Home
    Well, it looks like you have configured the GPIOs as a "dumb" relays, the ones that just copy the channel value to GPIO (in _n version, it's a negated value). This will not work as expected, as it's not a bridge.
    If you want to use our bridge driver, then you have to choose the bridge driver pins:
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/ioRoles.md
    Here are bridge pins:
    Table showing motor/relay bridge control signals and their function descriptions.
    Please try to choose them, then reboot (so driver can autostart) and recheck if it behaves differently.

    Added after 1 [minutes]:

    PS: Once you configure it as I said, assuming it works better, can you post your config so I can update the old one? You've got the Rel/Rel_n from old config, correct? We need to fix it.
    Helpful post? Buy me a coffee.
  • #33 20862361
    Osrx
    Level 5  
    You are absolutely right! But I'm copy configuration from site. =(

    My config was:

    "pins": {
    "9": "LED_n;1",
    "15": "WifiLED_n;0",
    "17": "Btn;1",
    "24": "Rel;1",
    "26": "Rel_n;1"
    },

    Now I change it to:
    "pins": {
    "9": "LED_n;1",
    "15": "WifiLED_n;0",
    "17": "Btn;1",
    "24": "BridgeFWD;1",
    "26": "BridgeREV;1"
    },

    Also may be it should be fixed for similar relays:
    (Tuya) Circuit breaker with bridge relay (TOMZ-TOB9-63M)
    and
    [BK7231N - CBU] EARU Electric RDCBC/TJ-2P DIN-rail relay/energy meter


    BUT after I made this, switch stop latch contacts at all.
    I have no oscilloscope to check if impulse appear and how long it is. I think it's length not enough.
    I've check my relay driver and it's marked as 762a. So I think that it's the same.

    Also if I change output type to Rel and Rel_n all become work but also start to heating.
    May be there is another output type where I can change output delay?
  • #34 20862369
    p.kaczmarek2
    Moderator Smart Home
    So the config in database is outdated? Ok, I can update it.

    I don't know much about bridge driver, but there is a BridgePulseLength that can be put in startup command or in autoexec.bat, it can be used to adjust the pulse length of bridge driver, maybe you need to calibrate that?
    During testing, you can also use BridgePulseLength at runtime at Web App console or in execute command field.
    Helpful post? Buy me a coffee.
  • #35 20862425
    Osrx
    Level 5  
    Debug:API:POST to api/cmnd
    Debug:CMD:cmd [BridgePulseLength 100]
    Error:CMD:cmd BridgePulseLength NOT found (args 100)
    Info:CMD:[WebApp Cmd 'BridgePulseLength 100' Result] Unknown command

    also i try to add this string: "BridgePulseLength 100"
    To autoexec.bat.
    Nothing.

    I feel myself dumb.
  • #36 20862439
    p.kaczmarek2
    Moderator Smart Home
    Well, you mean you get that:
    Screenshot of Command Tool with an unknown command error.
    That means bridge driver is not running. Look here:
    Screenshot of the user interface for the BK7231T_WB3S_WhiteStripWindows controller.
    What do you have running there?

    If I set bridge pins, look:
    Screenshot of the BK7231T_WB3S_WhiteStripWindows interface.
    and I reboot my device, I get:
    Screenshot showing a diagnostic message about drivers.
    and then command works:
    Screenshot of Command Tool for BK7231T_WB3S_WhiteStripWindows.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #37 20862560
    Osrx
    Level 5  
    Exact!
    0 drivers active, total 34

    But I add Bridge pins to configuration, and reboot not once after add it.


    Thank you for your support!
  • #38 20862565
    p.kaczmarek2
    Moderator Smart Home
    Well, do you have older version or something? In worst case... you can start driver manually with startDriver...
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #39 20862676
    Osrx
    Level 5  
    As I said before
    Build on Dec 13 2023 21:51:33 version 1.17.343

    No ideas...
  • #40 20862696
    p.kaczmarek2
    Moderator Smart Home
    Ok , do what happens when you do startDriver Bridge in command line?
    Helpful post? Buy me a coffee.
  • #41 20862770
    przemsi_ele
    Level 11  
    >>20862225
    Are you sure you have a good template?
    This topic has already been discussed somewhere before.
    Someone wrote that he had REL and REL_i set and it actually worked, but the result was constant power supply to the coil through the bridge. I had this happen to me in the first phase. The coil was heating up and the whole device was hot (My Tongou TO-Q-SY1-JWT)
    I corrected the template by selecting HBridge instead of Rel and the heating of the relay coil ended.

    it was like that
      "pins": {
        "9": "LED_n;1",
        "15": "WifiLED_n;0",
        "17": "Btn;1",
        "24": "Rel;1",
        "26": "Rel_n;1"
      },


    it worked but it got hot

    now I have this
      "pins": {
        "9": "LED_n;1",
        "15": "WifiLED_n;0",
        "17": "Btn;1",
        "24": "BridgeFWD;1",
        "26": "BridgeREV;1"
      },


    and the problem is over
  • #42 20863693
    Osrx
    Level 5  
    >>20862696

    Hello again!

    Yes, after executing command: "startDriver Bridge", driver loaded and all start to work like a charm!
    Strange, that driver was not loaded automatically, so I've add it to the autoexec.bat. Now all work as expected.

    Thank you very much for supporting!
  • ADVERTISEMENT
  • #43 20864052
    p.kaczmarek2
    Moderator Smart Home
    Bridge driver should be starting automatically, unless you have disabled autostart in flags....
    Helpful post? Buy me a coffee.
  • #44 20935273
    robert21965
    Level 3  
    Hi, i flashed my to-q-sy1-jwt with serial cable and make an update to the last version 1.17.432 and it works after the configuration with the build in Application.

    i checked the metering and it was completly wrong, now the power-calibration is the next current, voltage, power.

    now the metering is correct with load, but without load it is about 3-4 Watt.

    can this also calibrated?

    Regards
    robert
  • #45 20935400
    p.kaczmarek2
    Moderator Smart Home
    I think there is a flag to auto-zero the measurement when the relay is off. That's not perfect, but maybe it can help?"
    Helpful post? Buy me a coffee.
  • #46 20935560
    robert21965
    Level 3  
    Ok, this is not the best way, but it helps a little bit
  • #47 20936153
    p.kaczmarek2
    Moderator Smart Home
    Is only power non-zero with no load, or is the current non-zero as well?
    Helpful post? Buy me a coffee.
  • #48 20936206
    robert21965
    Level 3  
    current is also non-zero with none load

    Added after 5 [hours] 5 [minutes]:

    Screenshot of electrical parameters including frequency, voltage, current, active power, apparent power, reactive power, power factor, and energy consumption.
  • #49 20942245
    robert21965
    Level 3  
    I have a second tongou with 25a and metering and there is still the same problem, now with the newest firmware 1.17.441.
    The flag 38 is not realy an option, because of a poweroutage, the device starts ang goes in the poweron status.

    But this is not recognize by the firmware an still no metering is active.
  • #50 21089267
    onkel11
    Level 5  
    So according to all hints here my template is:

    Code: JSON
    Log in, to see the code


    all works, device is not getting hot.
    Only the power measurement must be adjusted - like at any other tasmota device too.

Topic summary

The discussion revolves around the TONGOU TO-Q-SY1-JWT DIN Rail WiFi switch, which utilizes the BK7231N chipset and incorporates a BL0942 chip for power metering. Users share experiences with firmware flashing, pin configuration, and relay operation. Key issues include the relay not switching correctly, overheating due to incorrect configurations, and the need for proper driver implementation. Solutions involve adjusting pin assignments to use BridgeFWD and BridgeREV instead of Rel and Rel_n, ensuring the bridge driver starts automatically, and calibrating power measurements. Users also discuss desoldering techniques and the challenges faced during the flashing process.
Summary generated by the language model.
ADVERTISEMENT