logo elektroda
logo elektroda
X
logo elektroda

TOMZN 1P 63A Circuit Breaker Power Monitoring DIN Relay [BL0942][CBU-N][BK7321N]

tomanyusers 3051 9
ADVERTISEMENT
  • #1 20312347
    tomanyusers
    Level 3  
    Just a quick teardown. You have to drill out the rivets to disassemble so it's a bit of a pain in the ass.

    I have not tried to flash it just yet (ran out of time), I'll post the updates when I have. The old versions had an ESP but the new versions are using a CBU-N Module.

    TOMZN 1P 63A Circuit Breaker Power Monitoring DIN Relay [BL0942][CBU-N][BK7321N] TOMZN 1P 63A Circuit Breaker Power Monitoring DIN Relay [BL0942][CBU-N][BK7321N] TOMZN 1P 63A Circuit Breaker Power Monitoring DIN Relay [BL0942][CBU-N][BK7321N] TOMZN 1P 63A Circuit Breaker Power Monitoring DIN Relay [BL0942][CBU-N][BK7321N]


    Using a BL0942 Metering IC.
    Using a CBU-N Module, from what I understand this is a BK7321N

    I still need to confirm but I think the pinouts are:
    
    Pin Number	Symbol		Pin On IC	Use
    8			P8			24			Btn
    9			P7			23			LED_n
    10			P6			22			Wifi LED_n
    11			P26						Relay On
    12			P24						Relay Off
    
  • ADVERTISEMENT
  • #2 20313677
    p.kaczmarek2
    Moderator Smart Home
    Finally a device with much more powerful relay.

    If I remember correctly, I was able to flash CB2S module connected to BL0942 without removing BL0942. It was in case of LSPA9 smart socket with power metering - the newest version, BK7231N one. There is also an older version of LSPA9 in the market, which is using WB2S and BL0937, but it doesn't really matter.
    Anyway, try to flash this device and let us know if it worked for you. I hope it won't be too problematic.

    PS: so one of the ICs is BL0942, what is the other one? The one used in power supply section? I'm just curious.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20313952
    tomanyusers
    Level 3  
    I was able to read the flash and dump the factory flash however I was unable to program it with bk_writer1.60.

    I keep getting a "deprotecting flash FAILED" error. Is this a known error or am I doing something wrong? Do I need to flash the unit from a linux PC using hid_download_py?

    The power supply IC looks like an ICW4009, never seen this one before.
  • #4 20313970
    p.kaczmarek2
    Moderator Smart Home
    No, just install python on windows. Details are in the repository.

    bkWriter 1.60 is problematic when it comes to N chips, it could work, but hid_download_py is better
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #5 20314068
    tomanyusers
    Level 3  
    Managed to get it flashed and get the wifi, LED's and buttons set up.

    The issue I'm having is it is a latching relay. How do I set this up? So I toggle one pin to energize the relay and toggle another to de-energise the relay.
  • ADVERTISEMENT
  • #6 20315534
    p.kaczmarek2
    Moderator Smart Home
    You might need to use scripting for that.

    First link the two buttons to dummy, unused channel (let's say 20):
    TOMZN 1P 63A Circuit Breaker Power Monitoring DIN Relay [BL0942][CBU-N][BK7321N]
    Then, in LittleFS tool of Web App, create autoexec cfg:
    TOMZN 1P 63A Circuit Breaker Power Monitoring DIN Relay [BL0942][CBU-N][BK7321N]
    TOMZN 1P 63A Circuit Breaker Power Monitoring DIN Relay [BL0942][CBU-N][BK7321N]
    Add script:
    TOMZN 1P 63A Circuit Breaker Power Monitoring DIN Relay [BL0942][CBU-N][BK7321N]
    
    // addEventHandler  buttonEventName pinid cmd
    addEventHandler OnClick 8 SetChannel 1 1
    addEventHandler OnClick 9 SetChannel 1 0
    

    Reboot.
    Helpful post? Buy me a coffee.
  • #8 20318513
    p.kaczmarek2
    Moderator Smart Home
    Sorry, I am not sure if I understand correctly. Is the solution in post #6 correct? It's just making two buttons control single relay, it's not the same as the issue in https://github.com/openshwprojects/OpenBK7231T_App/issues/469 .
    I might have misunderstood your requirement. Can you clarify?
    Helpful post? Buy me a coffee.
  • #9 20318867
    tomanyusers
    Level 3  
    The Relay is a latching type.
    So you need to toggle one pin (P26) high then low to open the relay.
    Then, toggle another pin (P24) high then low to close the relay.

    The relay needs to be powered only for changing contact position.
    Then the relay holds the last position without power.
  • #10 20319368
    p.kaczmarek2
    Moderator Smart Home
    So I misunderstood you. My script was not a solution to the problem.

    I could write a driver for you, but @valeklubomir most likely have it running already, so maybe let's wait for his release.
    Helpful post? Buy me a coffee.

Topic summary

The discussion revolves around the TOMZN 1P 63A Circuit Breaker Power Monitoring DIN Relay, focusing on its disassembly, flashing, and relay control. Users report challenges in flashing the device, particularly with the CBU-N module and the BL0942 metering IC. One user successfully flashed the device but encountered issues with configuring a latching relay, requiring toggling of specific pins (P26 for energizing and P24 for de-energizing). Solutions involve scripting to manage relay states and utilizing tools like hid_download_py for flashing. The power supply IC identified is ICW4009.
Summary generated by the language model.
ADVERTISEMENT