logo elektroda
logo elektroda
X
logo elektroda

TOMZN WIFI Smart ATS BL602 SDV-002_V1.2 OpenBeken: Switch Flips A to B on Reboot

lamero345 123 2
ADVERTISEMENT
  • #1 21769124
    lamero345
    Level 2  
    Name: TOMZN WIFI Smart ATS

    Url: https://www.aliexpress.com/item/1005010017712057.html

    Module: BL602 Module SDV-002_V1.2

    Photos:

    TOMZN automatic transfer switch with red dial and labeled power sources A and BSDV-002_V1.2 printed circuit board with electronic components and connectors. Disassembled electromagnetic relay with coils and visible wiring

    Connection: Connecting a wire to R2 and connecting it to VCC during power on is enough to put the module in BOOT mode as described here. TX, RX, VCC and GND pins are as described

    SDV-002_V1.2 PCBs with pinout diagram and function descriptions in table.

    With BK7231GUIFlashTool v154 I'm not able to flash It. I flashed with BouffaloLabDevCube v1.9.0.

    BuffaloLabDevCube settings: partition_cfg_2M.toml, OpenBL602_1.18.214.bin, bl_factory_params_IoTKitA_40M.dts and boot2_isp_release.bin

    Logs: Before flash the module I get these values from UART log

    
    GPIO config is :
    cfg->wifi_led = 200
    cfg->led_status = 0
    cfg->led_ch_status = 1
    cfg->backlight_en    = 0
    cfg->backlight_init  = 0
    cfg->backlight_level = 0
    cfg->backlight_pin   = 200
    cfg->led_level = 0
    cfg->led0 = 12
    cfg->led1 = 200
    cfg->led2 = 200
    cfg->led3 = 200
    cfg->relay_type  = 0
    cfg->lr0_on  = 200
    cfg->lr0_off = 200
    cfg->lr1_on  = 200
    cfg->lr1_off = 200
    cfg->lr2_on  = 200
    cfg->lr2_off = 200
    cfg->lr3_on  = 200
    cfg->lr3_off = 200
    cfg->lr_pulse_width = 30
    cfg->lr_interval_width = 250
    cfg->all_on_off = 200
    cfg->relay0 = 2
    cfg->relay1 = 200
    cfg->relay2 = 200
    cfg->relay3 = 200
    cfg->key0 = 14
    cfg->key1 = 200
    cfg->key2 = 200
    cfg->key3 = 200
    


    Template:
    
    {
      "vendor": "TOMZN",
      "bDetailed": "1",
      "name": "WIFI Smart ATS",
      "model": "TOQ7E-125/4 220V",
      "chip": "BL602",
      "board": "SDV-002_V1.2",
      "keywords": [
        "switch",
        "relay",
        "button",
        "bl602"
      ],
      "pins": {
        "2": "Rel;1",
        "14": "Btn;1",
        "12": "LED;1"
      }
    }
    


    This is my first experience with Openbeken firmware. Tell me if something was wrong :)
    When I reboot the ATS, the switch switch from A to B for some milliseconds. How to fix?
  • ADVERTISEMENT
  • #3 21769675
    insmod
    Level 29  
    >>21769124
    Do you remember what the problem was with BK7231GUIFlashTool?
ADVERTISEMENT