logo elektroda
logo elektroda
X
logo elektroda

Teardown of TOMZN TOML-VA 63A Wifi Protector: BL0942 Chip and Taoplus CBU BK7231N Module

Zogdan 4449 12
ADVERTISEMENT
  • Helpful post
    #1 20564531
    Zogdan
    Level 9  
    Just a quick teardown.

    This meter has voltage, leak current, power protection.

    Teardown of TOMZN TOML-VA 63A Wifi Protector: BL0942 Chip and Taoplus CBU BK7231N Module

    Opening is easy, just remove 2 screws from the back.

    Teardown of TOMZN TOML-VA 63A Wifi Protector: BL0942 Chip and Taoplus CBU BK7231N Module

    Remove ribbon cable
    Teardown of TOMZN TOML-VA 63A Wifi Protector: BL0942 Chip and Taoplus CBU BK7231N Module

    Connectors for coil, voltage and relays
    Teardown of TOMZN TOML-VA 63A Wifi Protector: BL0942 Chip and Taoplus CBU BK7231N Module

    Teardown of TOMZN TOML-VA 63A Wifi Protector: BL0942 Chip and Taoplus CBU BK7231N Module

    Power measuring chip BL0942
    Teardown of TOMZN TOML-VA 63A Wifi Protector: BL0942 Chip and Taoplus CBU BK7231N Module

    Wifi module Taoplus CBU BK7231N
    Teardown of TOMZN TOML-VA 63A Wifi Protector: BL0942 Chip and Taoplus CBU BK7231N Module

    https://www.taopluschina.com/products/cbu-wi-fi--bluetooth-module

    Power supply
    Teardown of TOMZN TOML-VA 63A Wifi Protector: BL0942 Chip and Taoplus CBU BK7231N Module

    LCD board
    Teardown of TOMZN TOML-VA 63A Wifi Protector: BL0942 Chip and Taoplus CBU BK7231N Module

    Controller ESSEMI ES8P5066 MCU
    Teardown of TOMZN TOML-VA 63A Wifi Protector: BL0942 Chip and Taoplus CBU BK7231N Module
    https://www.essemi.com/uploads/20211013/c4d18e635537d1d3f442a5eae036a2dc.pdf

    Although it has a BK7231N, I think this is a no go to run openbeken. ←←← ( Not true, read on below :)
  • ADVERTISEMENT
  • Helpful post
    #2 20564722
    p.kaczmarek2
    Moderator Smart Home
    Hello, this device can easily run OBK. We have similar devices supported.
    This is a TuyaMCU device with CBU WiFi module.
    Teardown of TOMZN TOML-VA 63A Wifi Protector: BL0942 Chip and Taoplus CBU BK7231N Module
    UART is here:
    Pin numberSymbolI/O typeFunction
    15TX1I/OUART_TX1, which is used for transmitting user data and corresponds to Pin 27 of the IC. For the MCU solution, please refer to CBx Module.
    16RX1I/OUART_RX1, which is used for receiving user data and corresponds to Pin 26 of the IC. For the MCU solution, please refer to CBx Module.

    You can clearly see UART1 traces on the photo:
    Teardown of TOMZN TOML-VA 63A Wifi Protector: BL0942 Chip and Taoplus CBU BK7231N Module
    This device is using TuyaMCU to communicate between MCU and WiFI module:
    Teardown of TOMZN TOML-VA 63A Wifi Protector: BL0942 Chip and Taoplus CBU BK7231N Module
    Here's TuyaMCU analyzer:
    https://www.elektroda.com/rtvforum/topic3970199.html#20528459

    In order to support this device, you may need to first do UART capture on RX/TX lines at 9600 or 115200 baud, so we know dpIDs of variables, of course in a safe manner (the device can be at live potential so you would need isolation or something), and then flash OBK.

    You can flash OBK by temporary severing UART RX/TX connection to MCU, otherwise it would interfere with flashing. Then flash OBK, then connect back UART.

    Then you can configure TuyaMCU on OBK.

    You could also skip the packets capture step and flash OBK and then try just seeing what OBK receives, it may also work.

    In worst case you can always restore Tuya firmware from backup.

    Here's a sample topic about similar device:
    OpenBK7231T (WB3S) Config for Hiking DDS238-2 Smart Meter: Tasmota Guide & Teardown
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20646877
    Zogdan
    Level 9  
    Thank you, this is helpful, since I only have exactly one of this device, and installed, i'd rather not use that for reverse engineering. But it is a good tip to buy 2 at once of these devices to play around.
  • #4 20683679
    Zogdan
    Level 9  
    Some updates:

    I needed to use CEN to get BK7231Flasher to work. No need to desolder anything: just disconnect the ribbon cable to the lcd board

    READING firmware 115200 Fails, needed to set baud rate to 9600 to read original firmware

    ----------------------
    
    Getting bus success!
    Going to set baud rate setting (9600)!
    Will try to read device flash MID (for unprotect N):
    Flash MID loaded: 1560EB
    Will now search for Flash def in our database...
    Flash def found! For: 1560EB
    Flash information: mid: 1560EB, icName: TH25Q_16HB, manufacturer: TH, szMem: 1000000, szSR: 2, cwUnp: 0, cwEnp: 7, cwMsk: 407C, sb: 2, lb: 5, cwdRd: 05-35-FF-FF, cwdWr: 01-FF-FF-FF
    Entering SetProtectState(True)...
    sr: 7c
    sr: 7c
    final sr: 7c
    msk: 407c
    cw: 0, sb: 2, lb: 5
    bfd: 0
    sr: 0
    sr: 0
    final sr: 0
    msk: 407c
    cw: 0, sb: 2, lb: 5
    bfd: 0
    SetProtectState(True) success!
    
    ...reading......................
    
    Basic read operation finished, but now it's time to verify...
    Starting CRC check for 512 sectors, starting at offset 00
    CRC matches 0xAC225207!
    All read!
    Loaded total 0x200000 bytes
    Wrote 2097152 to readResult_BK7231N_QIO_t_2023-06-8--18-30-42.bin
    Backup 2MB created, now will attempt to extract OBK config.
    It's not an OBK config, header is bad
    OBK config not found.
    Backup 2MB created, now will attempt to extract Tuya config.
    Tuya config extractor - magic is at 2023424
    Saving debug Tuya decryption data to lastRawDecryptedStrings.bin
    Malformed key?
    Malformed key?
    Malformed key?
    Tuya keys extraction has found 15 keys
    Tuya config extracted and shown.
    MAC seems to be 1C:90:FF:4F:.:..
    

    -----------------
    WRITING OpenBK 1.17.175 was possible at 115200

    autoexec.bat: (taken as a start from EARU EAMPDW-TY-63)

    startDriver TuyaMCU
    startDriver NTP
    setChannelType 1 toggle
    linkTuyaMCUOutputToChannel 16 1 1
    setChannelType 2 Voltage_div10
    setChannelType 3 Power
    setChannelType 4 Current_div1000
    setChannelType 5 EnergyTotal_kWh_div100
    linkTuyaMCUOutputToChannel 1 0 5
    linkTuyaMCUOutputToChannel 6 RAW_TAC2121C_VCP
    


    So far confirmed:

    Voltage 226.90V (ch 2)
    Power 25W (ch 3)
    Current 0.1100A (ch 4)
    EnergyTotal 423.67kWh (ch 5)

    Todo:

    Read temperature
    Read Leakage current

    Set overvoltage, undervoltage, overcurrent, overtemperature, leakage current

    Fun fact: if Wifi is successfully connected, it rapidly flashes, instead of the EARU EAMPDW-TY-63
  • #5 20684076
    p.kaczmarek2
    Moderator Smart Home
    Good job on the progress. The meter seems very useable now.

    Some devices might require getting WiFi state 0x04 (connected to cloud) before they sent all the data. Make sure you have MQTT on or simulate it with:
    
    tuyaMcu_defWiFiState 4 
    

    command.

    Can you post Web App log of TuyaMCU events? That could show us which dpIDs are remaining to be decoded.
    Helpful post? Buy me a coffee.
  • #6 20686194
    Zogdan
    Level 9  
    Cycle :
    power on -> switch on -> Total power 423.6 KW
    switch on -> voltage 220v temp 28 deg. c, current 0.1 A


    Settings :
    Overvoltage 269 V
    Undervoltage 200 V
    Current limit : 19 A
    Leak current setting : 25 mA
    Hight temp limit : 65 degrees Celcius




    Info:MQTT:Channel has changed! Publishing 2222 to channel 2 :No change in channel 4 (still set to 0) - ignoring:No change in channel 3 (still set to 0) - ignoring
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 01 02 00 04 00 00 A5 81 3E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 1, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 42369:No change in channel 5 (still set to 42369) - ignoring
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0D 02 00 04 00 00 00 00 24 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 13, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 65 02 00 04 00 00 01 15 92 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 277:Time 7, idle 172510/s, free 71992, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 :Time 8, idle 110569/s, free 72328, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 :Time 9, idle 0/s, free 72328, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes:Time 10, idle 0/s, free 72328, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 :dhcp=0 ip=0.0.0.0 gate=0.0.0.0 mask=0.0.0.0 mac=1c:90:ff:1f:22:21:sta: 0, softap: 0, b/g/n:Main_OnWiFiStatusChange - WIFI_STA_CONNECTING - 1:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
    Info:NTP:NTP_SendRequest: Unable to send message:Time 11, idle 36888/s, free 72464, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:NTP:NTP_SendRequest: Unable to send message:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4:Time 12, idle 222937/s, free 72312, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:mqtt_userName homeassistant
    mqtt_pass 
    mqtt_clientID tomzn_toml
    mqtt_host 192.168.1.220:1883:Time 13, idle 186128/s, free 72224, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:NTP:Seconds since Jan 1 1900 = 3900486673
    Info:NTP:Unix time  : 1691497873
    Info:NTP:Local Time : 2023/08/08 12:31:13:Time 14, idle 185062/s, free 72416, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 15, idle 183261/s, free 72416, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 16, idle 186625/s, free 72200, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 3/38 :Time 17, idle 191719/s, free 72416, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes:Time 18, idle 186773/s, free 72416, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 19, idle 188256/s, free 72416, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 20, idle 185713/s, free 72416, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 :dhcp=0 ip=192.168.1.63 gate=192.168.1.1 mask=255.255.255.0 mac=1c:90:ff:1f:22:21:sta: 1, softap: 0, b/g/n:sta:rssi=-54,ssid=AirC24,bssid=1a:e8:29:36:a8:ff,channel=9,cipher_type:CCMP:Time 21, idle 193249/s, free 72416, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes:Time 22, idle 190060/s, free 72416, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 23, idle 187230/s, free 72416, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 24, idle 187040/s, free 72416, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 25, idle 189765/s, free 72416, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes:Time 26, idle 189646/s, free 72416, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 27, idle 184836/s, free 72416, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 0C 06 00 00 08 08 AB 00 00 00 00 00 00 D6 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 19 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 6, dataType 0-DP_TYPE_RAW and 8 data bytes:CHANNEL_Set channel 2 has changed to 2219 (flags 0)
    Info:MQTT:Channel has changed! Publishing 2219 to channel 2 :No change in channel 4 (still set to 0) - ignoring
    :No change in channel 3 (still set to 0) - ignoring
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 01 02 00 04 00 00 A5 81 3E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 1, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 42369:No change in channel 5 (still set to 42369) - ignoring
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0D 02 00 04 00 00 00 00 24 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 13, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 65 02 00 04 00 00 01 18 95 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 280:Time 28, idle 188269/s, free 72416, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:mqtt_userName homeassistant
    mqtt_pass 
    mqtt_clientID tomzn_toml
    mqtt_host 192.168.1.220:1883
    Info:MQTT:mqtt_connection_cb: Successfully connected
    Info:MQTT:mqtt_subscribed to tomzn_toml/+/set
    Info:MQTT:mqtt_subscribed to bekens/+/set
    Info:MQTT:mqtt_subscribed to cmnd/tomzn_toml/+
    Info:MQTT:mqtt_subscribed to cmnd/bekens/+
    Info:MQTT:mqtt_subscribed to tomzn_toml/+/get:Time 29, idle 160772/s, free 60720, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes:Time 30, idle 177758/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :dhcp=0 ip=192.168.1.63 gate=192.168.1.1 mask=255.255.255.0 mac=1c:90:ff:1f:22:21:sta: 1, softap: 0, b/g/n:sta:rssi=-55,ssid=AirC24,bssid=1a:e8:29:36:a8:ff,channel=9,cipher_type:CCMP
    e) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0D 02 00 04 00 00 00 00 24 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 13, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 0C 06 00 00 08 08 AE 00 00 00 00 00 00 D9 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 19 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 6, dataType 0-DP_TYPE_RAW and 8 data bytes:CHANNEL_Set channel 2 has changed to 2222 (flags 0)
    Info:MQTT:Channel has changed! Publishing 2222 to channel 2 
    Info:MQTT:Publishing val 2222 to tomzn_toml/2/get retain=0:No change in channel 4 (still set to 0) - ignoring
    :No change in channel 3 (still set to 0) - ignoring
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 13 03 00 10 07 00 20 65 01 00 00 D5 29 00 00 2D 1E 00 00 00 19 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 27 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 19, dataType 3-DP_TYPE_STRING and 16 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 0C 01 00 01 00 1C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 10 01 00 01 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 16, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: :No change in channel 1 (still set to 0) - ignoring
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 65 02 00 04 00 00 01 18 95 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 280
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 06 09 05 00 02 08 00 27 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 13 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 5-DP_TYPE_BITMAP and 2 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 10 11 00 00 0C 03 01 00 0D 04 01 00 19 05 01 00 41 AC 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 23 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 17, dataType 0-DP_TYPE_RAW and 12 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 12 00 00 10 01 01 00 13 03 01 01 0D 04 01 00 C8 08 00 00 0A 45 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 27 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 18, dataType 0-DP_TYPE_RAW and 16 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 10 11 00 00 0C 03 01 00 0D 04 01 00 19 05 01 00 41 AC 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 23 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 17, dataType 0-DP_TYPE_RAW and 12 data bytes:Time 31, idle 182833/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic tomzn_toml/2/get:Time 32, idle 117014/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 33, idle 191080/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 12 00 00 10 01 01 00 13 03 01 01 0D 04 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 4 and got checksum 110:Time 34, idle 189126/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 35, idle 182116/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 36, idle 191622/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 37, idle 189539/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes:Time 38, idle 190053/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 39, idle 186236/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 40, idle 191473/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :dhcp=0 ip=192.168.1.63 gate=192.168.1.1 mask=255.255.255.0 mac=1c:90:ff:1f:22:21:sta: 1, softap: 0, b/g/n:sta:rssi=-54,ssid=AirC24,bssid=1a:e8:29:36:a8:ff,channel=9,cipher_type:CCMP:Time 41, idle 185190/s, free 72200, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes:Time 42, idle 191131/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 43, idle 184245/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 44, idle 187153/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 45, idle 191298/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes:Time 46, idle 191303/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 47, idle 184908/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 48, idle 189030/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 49, idle 188532/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 0C 06 00 00 08 08 A0 00 00 00 00 00 00 CB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 19 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 6, dataType 0-DP_TYPE_RAW and 8 data bytes:CHANNEL_Set channel 2 has changed to 2208 (flags 0)
    Info:MQTT:Channel has changed! Publishing 2208 to channel 2 
    Info:MQTT:Publishing val 2208 to tomzn_toml/2/get retain=0:No change in channel 4 (still set to 0) - ignoring
    :No change in channel 3 (still set to 0) - ignoring
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 01 02 00 04 00 00 A5 81 3E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 1, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 42369:No change in channel 5 (still set to 42369) - ignoring
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0D 02 00 04 00 00 00 00 24 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 13, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 65 02 00 04 00 00 01 19 96 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 281
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 09 05 00 01 00 1D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 5-DP_TYPE_BITMAP and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 10 01 00 01 01 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 16, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: :CHANNEL_Set channel 1 has changed to 1 (flags 0)
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to tomzn_toml/1/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic tomzn_toml/2/get:Time 50, idle 191089/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :dhcp=0 ip=192.168.1.63 gate=192.168.1.1 mask=255.255.255.0 mac=1c:90:ff:1f:22:21:sta: 1, softap: 0, b/g/n:sta:rssi=-52,ssid=AirC24,bssid=1a:e8:29:36:a8:ff,channel=9,cipher_type:CCMP
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic tomzn_toml/1/get:Time 51, idle 134040/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 52, idle 189002/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 53, idle 189724/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes:Time 54, idle 188912/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 55, idle 184934/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 56, idle 191670/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 57, idle 186807/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes:Time 58, idle 188233/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 59, idle 186734/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 60, idle 189285/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :dhcp=0 ip=192.168.1.63 gate=192.168.1.1 mask=255.255.255.0 mac=1c:90:ff:1f:22:21:sta: 1, softap: 0, b/g/n:sta:rssi=-53,ssid=AirC24,bssid=1a:e8:29:36:a8:ff,channel=9,cipher_type:CCMP:Time 61, idle 200975/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes:Time 62, idle 190954/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 63, idle 185763/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 64, idle 189392/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 65, idle 190482/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes:Time 66, idle 190572/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 67, idle 184946/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 68, idle 189608/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :Time 69, idle 190755/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes:Time 70, idle 187735/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing -1, socks 2/38 :dhcp=0 ip=192.168.1.63 gate=192.168.1.1 mask=255.255.255.0 mac=1c:90:ff:1f:22:21:sta: 1, softap: 0, b/g/n:sta:rssi=-54,ssid=AirC24,bssid=1a:e8:29:36:a8:ff,channel=9,cipher_type:CCMP
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 0C 06 00 00 08 08 9C 00 00 5A 00 00 17 38 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 19 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 6, dataType 0-DP_TYPE_RAW and 8 data bytes:CHANNEL_Set channel 2 has changed to 2204 (flags 0)
    Info:MQTT:Channel has changed! Publishing 2204 to channel 2 
    Info:MQTT:Publishing val 2204 to tomzn_toml/2/get retain=0:CHANNEL_Set channel 4 has changed to 90 (flags 0)
    Info:MQTT:Channel has changed! Publishing 90 to channel 4 
    Info:MQTT:Publishing val 90 to tomzn_toml/4/get retain=0:CHANNEL_Set channel 3 has changed to 23 (flags 0)
    Info:MQTT:Channel has changed! Publishing 23 to channel 3 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic tomzn_toml/2/get
    Info:MQTT:Publishing val 23 to tomzn_toml/3/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 01 02 00 04 00 00 A5 81 3E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 1, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 42369:No change in channel 5 (still set to 42369) - ignoring
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0D 02 00 04 00 00 00 00 24 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 13, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 65 02 00 04 00 00 01 1A 97 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 282:Time 71, idle 214150/s, free 63808, MQTT 1(2), bWifi 1, secondsWithNoPing 1, socks 3/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic tomzn_toml/4/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic tomzn_toml/3/get:Time 72, idle 110477/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 2, socks 2/38 :Time 73, idle 191653/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 3, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes:Time 74, idle 190080/s, free 72224, MQTT 1(2), bWifi 1, secondsWithNoPing 4, socks 3/38 
    Info:NTP:Seconds since Jan 1 1900 = 3900486734
    Info:NTP:Unix time  : 1691497934
    Info:NTP:Local Time : 2023/08/08 12:32:14:Time 75, idle 183174/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 5, socks 2/38 :Time 76, idle 185988/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 6, socks 2/38 :Time 77, idle 192194/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 7, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes:Time 78, idle 190880/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 8, socks 2/38 :Time 79, idle 186831/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 9, socks 2/38 :Time 80, idle 193367/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 10, socks 2/38 :dhcp=0 ip=192.168.1.63 gate=192.168.1.1 mask=255.255.255.0 mac=1c:90:ff:1f:22:21:sta: 1, softap: 0, b/g/n:sta:rssi=-53,ssid=AirC24,bssid=1a:e8:29:36:a8:ff,channel=9,cipher_type:CCMP:Time 81, idle 185466/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 11, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes:Time 82, idle 191690/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 12, socks 2/38 :Time 83, idle 184056/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 13, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 03 00 00 05 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 3 (WiFiState) with 7 bytes:Time 84, idle 190112/s, free 72112, MQTT 1(2), bWifi 1, secondsWithNoPing 14, socks 2/38 :Time 85, idle 188615/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 15, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes:Time 86, idle 189455/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 16, socks 2/38 :Time 87, idle 184368/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 17, socks 2/38 :Time 88, idle 190448/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 18, socks 2/38 :Time 89, idle 192204/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 19, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes:Time 90, idle 190041/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 20, socks 2/38 :dhcp=0 ip=192.168.1.63 gate=192.168.1.1 mask=255.255.255.0 mac=1c:90:ff:1f:22:21:sta: 1, softap: 0, b/g/n:sta:rssi=-53,ssid=AirC24,bssid=1a:e8:29:36:a8:ff,channel=9,cipher_type:CCMP:Time 91, idle 182155/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 21, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 0C 06 00 00 08 08 A2 00 00 5A 00 00 17 3E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 19 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 6, dataType 0-DP_TYPE_RAW and 8 data bytes:CHANNEL_Set channel 2 has changed to 2210 (flags 0)
    Info:MQTT:Channel has changed! Publishing 2210 to channel 2 
    Info:MQTT:Publishing val 2210 to tomzn_toml/2/get retain=0:No change in channel 4 (still set to 90) - ignoring
    :No change in channel 3 (still set to 23) - ignoring
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic tomzn_toml/2/get
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 01 02 00 04 00 00 A5 81 3E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 1, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 42369:No change in channel 5 (still set to 42369) - ignoring
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0D 02 00 04 00 00 00 00 24 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 13, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 65 02 00 04 00 00 01 1B 98 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 283:Time 92, idle 188554/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 22, socks 2/38 :Time 93, idle 157403/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 23, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes:Time 94, idle 189816/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 24, socks 2/38 :Time 95, idle 184515/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 25, socks 2/38 :Time 96, idle 189189/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 26, socks 2/38 :Time 97, idle 191389/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 27, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes:Time 98, idle 188757/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 28, socks 2/38 :Time 99, idle 182572/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 29, socks 2/38 :Time 100, idle 192768/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 30, socks 2/38 :dhcp=0 ip=192.168.1.63 gate=192.168.1.1 mask=255.255.255.0 mac=1c:90:ff:1f:22:21:sta: 1, softap: 0, b/g/n:sta:rssi=-54,ssid=AirC24,bssid=1a:e8:29:36:a8:ff,channel=9,cipher_type:CCMP:Time 101, idle 376623/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 31, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes:Time 102, idle 192251/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 32, socks 2/38 :Time 103, idle 188227/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 33, socks 2/38 :Time 104, idle 189229/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 34, socks 2/38 :Time 105, idle 192467/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 35, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes:Time 106, idle 190753/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 36, socks 2/38 :Time 107, idle 182835/s, free 72416, MQTT 1(2), bWifi 1, secondsWithNoPing 37, socks 2/38 
    


    Unique Messages only :

    
    55 AA 03 00 00 01 01 04 
    55 AA 03 03 00 00 05 
    55 AA 03 07 00 05 09 05 00 01 00 1D 
    55 AA 03 07 00 05 0C 01 00 01 00 1C 
    55 AA 03 07 00 05 10 01 00 01 00 20 
    55 AA 03 07 00 05 10 01 00 01 01 21 
    55 AA 03 07 00 06 09 05 00 02 08 00 27 
    55 AA 03 07 00 08 01 02 00 04 00 00 A5 81 3E 
    55 AA 03 07 00 08 0D 02 00 04 00 00 00 00 24 
    55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    55 AA 03 07 00 08 65 02 00 04 00 00 01 15 92 
    55 AA 03 07 00 08 65 02 00 04 00 00 01 18 95 
    55 AA 03 07 00 08 65 02 00 04 00 00 01 19 96 
    55 AA 03 07 00 08 65 02 00 04 00 00 01 1A 97 
    55 AA 03 07 00 08 65 02 00 04 00 00 01 1B 98 
    55 AA 03 07 00 0C 06 00 00 08 08 9C 00 00 5A 00 00 17 38 
    55 AA 03 07 00 0C 06 00 00 08 08 A0 00 00 00 00 00 00 CB 
    55 AA 03 07 00 0C 06 00 00 08 08 A2 00 00 5A 00 00 17 3E 
    55 AA 03 07 00 0C 06 00 00 08 08 AB 00 00 00 00 00 00 D6 
    55 AA 03 07 00 0C 06 00 00 08 08 AE 00 00 00 00 00 00 D9 
    55 AA 03 07 00 10 11 00 00 0C 03 01 00 0D 04 01 00 19 05 01 00 41 AC 
    55 AA 03 07 00 14 12 00 00 10 01 01 00 13 03 01 01 0D 04 01 00 C8 08 00 00 0A 45 
    55 AA 03 07 00 14 12 00 00 10 01 01 00 13 03 01 01 0D 04 55 AA 03 00 00 01 01 04 
    55 AA 03 07 00 14 13 03 00 10 07 00 20 65 01 00 00 D5 29 00 00 2D 1E 00 00 00 19 
    


    and decoded :

    
    55 AA	03	00		00 01	01	04	
    HEADER	VER=03	Heartbeat		LEN	01	CHK	
    
    55 AA	03	03		00 00		05	
    HEADER	VER=03	WifiState		LEN		CHK	
    
    55 AA	03	07		00 05	09 05 00 01 00 		1D	
    HEADER	VER=03	State		LEN	fnId=9 Bitmap V=0	CHK	
    
    55 AA	03	07		00 05	0C 01 00 01 00 		1C	
    HEADER	VER=03	State		LEN	fnId=12 Bool V=0	CHK	
    
    55 AA	03	07		00 05	10 01 00 01 00 		20	
    HEADER	VER=03	State		LEN	fnId=16 Bool V=0	CHK	
    
    55 AA	03	07		00 05	10 01 00 01 01 		21	
    HEADER	VER=03	State		LEN	fnId=16 Bool V=1	CHK	
    
    55 AA	03	07		00 06	09 05 00 02 0800 		27	
    HEADER	VER=03	State		LEN	fnId=9 Bitmap V=08 00	CHK	
    
    55 AA	03	07		00 08	01 02 00 04 0000A581 		3E	
    HEADER	VER=03	State		LEN	fnId=1 Val V=42369	CHK	
    
    55 AA	03	07		00 08	0D 02 00 04 00000000 		24	
    HEADER	VER=03	State		LEN	fnId=13 Val V=0	CHK	
    
    55 AA	03	07		00 08	0F 02 00 04 00000000 		26	
    HEADER	VER=03	State		LEN	fnId=15 Val V=0	CHK	
    
    55 AA	03	07		00 08	65 02 00 04 00000115 		92	
    HEADER	VER=03	State		LEN	fnId=101 Val V=277	CHK	
    
    55 AA	03	07		00 08	65 02 00 04 00000118 		95	
    HEADER	VER=03	State		LEN	fnId=101 Val V=280	CHK	
    
    55 AA	03	07		00 08	65 02 00 04 00000119 		96	
    HEADER	VER=03	State		LEN	fnId=101 Val V=281	CHK	
    
    55 AA	03	07		00 08	65 02 00 04 0000011A 		97	
    HEADER	VER=03	State		LEN	fnId=101 Val V=282	CHK	
    
    55 AA	03	07		00 08	65 02 00 04 0000011B 		98	
    HEADER	VER=03	State		LEN	fnId=101 Val V=283	CHK	
    
    55 AA	03	07		00 0C	06 00 00 08 089C00005A000017 		38	
    HEADER	VER=03	State		LEN	fnId=6 Raw V=08 9C 00 00 5A 00 00 17	CHK	
    
    55 AA	03	07		00 0C	06 00 00 08 08A0000000000000 		CB	
    HEADER	VER=03	State		LEN	fnId=6 Raw V=08 A0 00 00 00 00 00 00	CHK	
    
    55 AA	03	07		00 0C	06 00 00 08 08A200005A000017 		3E	
    HEADER	VER=03	State		LEN	fnId=6 Raw V=08 A2 00 00 5A 00 00 17	CHK	
    
    55 AA	03	07		00 0C	06 00 00 08 08AB000000000000 		D6	
    HEADER	VER=03	State		LEN	fnId=6 Raw V=08 AB 00 00 00 00 00 00	CHK	
    
    55 AA	03	07		00 0C	06 00 00 08 08AE000000000000 		D9	
    HEADER	VER=03	State		LEN	fnId=6 Raw V=08 AE 00 00 00 00 00 00	CHK	
    
    55 AA	03	07		00 10	11 00 00 0C 0301000D0401001905010041 		AC	
    HEADER	VER=03	State		LEN	fnId=17 Raw V=03 01 00 0D 04 01 00 19 05 01 00 41	CHK	
    
    55 AA	03	07		00 14	12 00 00 10 010100130301010D040100C80800000A 		45	
    HEADER	VER=03	State		LEN	fnId=18 Raw V=01 01 00 13 03 01 01 0D 04 01 00 C8 08 00 00 0A	CHK	
    
    55 AA	03	07		00 14	12 00 00 10 010100130301010D0455AA0300000101 		04	
    HEADER	VER=03	State		LEN	fnId=18 Raw V=01 01 00 13 03 01 01 0D 04 55 AA 03 00 00 01 01	CHK	
    
    55 AA	03	07		00 14	13 03 00 10 07002065010000D52900002D1E000000 		19	
    HEADER	VER=03	State		LEN	fnId=19 Str V=CHK	
    
  • ADVERTISEMENT
  • #7 20686225
    p.kaczmarek2
    Moderator Smart Home
    So, this looks like temperature:
    
    
    55 AA	03	07		00 08	65 02 00 04 0000011A 		97	
    HEADER	VER=03	State		LEN	fnId=101 Val V=282	CHK	
    
    55 AA	03	07		00 08	65 02 00 04 0000011B 		98	
    HEADER	VER=03	State		LEN	fnId=101 Val V=283	CHK	
    

    They are always using one digit precision, so 283 is 28.3 . We already have channel type for that: https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/channelTypes.md
    Helpful post? Buy me a coffee.
  • #8 20686413
    Zogdan
    Level 9  
    OK, that works indeed, just add
    
    linkTuyaMCUOutputToChannel 101 0 6
    setChannelType 6 Temperature_div10
    

    to your autoexec.bat

    Now I try (using https://cryptii.com/pipes/binary-to-text) to find out the rest.

    FnId 17, 18, 19 are raw bitmasks, so need decoding.

    I assumed we use 32-bit unsigned (BE) as is used by fnId=1 (total Power) but we may try INT16

    
    fnId=18 Raw V= 01 01 00 13 03 01 01 0D 04 01 00 C8 08 00 00 0A	
    INT32 => 16842771 50397453 67174600 134217738
    INT16 => 257 19 769 269 1025 200 2048 10
    
    fnId=17 Raw V=03 01 00 0D 04 01 00 19 05 01 00 41
    INT32 => 50397197 67174425 83951681
    INT16 => 769 13 1025 25 1281 65
    


    That was for:
    Overvoltage 269 V, Undervoltage 200 V, Current limit: 19 A, Leak current setting: 25 mA, High temp limit: 65 degrees Celsius

    Both make a bit of sense:
    fnId 18 has 19 (A), 269 (V), 200 (V)
    fnId 17 has 25 (mA), 65 (Degrees)

    Any hint on how to proceed from here? I will set all values differently and check fnId 17 and 18 again and report back.
    fnId 19 puzzles me being a string, but I can't decode.

    I do have the original firmware if that helps.


    Added after 5 [hours] 58 [minutes]:

    Now set :
    MaxV = 269 V
    MinV = 197 V
    MaxA = 14 A
    MaxLeak = 23mA
    MaxTemp = 63 DegC


    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 65 02 00 04 00 00 01 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 256
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 06 09 05 00 02 08 00 27 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 13 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 5-DP_TYPE_BITMAP and 2 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 10 11 00 00 0C 03 01 00 0D 04 01 00 19 05 01 00 41 AC 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 23 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 17, dataType 0-DP_TYPE_RAW and 12 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 12 00 00 10 01 01 00 11 03 01 01 0D 04 01 00 C5 08 00 00 0A 40 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 27 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 18, dataType 0-DP_TYPE_RAW and 16 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 10 11 00 00 0C 03 01 00 0D 04 01 00 19 05 01 00 41 AC 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 23 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 17, dataType 0-DP_TYPE_RAW and 12 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 12 00 00 10 01 01 00 11 03 01 01 0D 04 01 00 C5 08 00 00 0A 40 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 27 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 18, dataType 0-DP_TYPE_RAW and 16 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 10 11 00 00 0C 03 01 00 0D 04 01 00 19 05 01 00 41 AC 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 23 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 17, dataType 0-DP_TYPE_RAW and 12 data bytes
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic tomzn_toml/2/get
    pe 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0D 02 00 04 00 00 00 00 24 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 13, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 0C 06 00 00 08 08 A5 00 00 00 00 00 00 D0 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 19 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 6, dataType 0-DP_TYPE_RAW and 8 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 13 03 00 10 07 00 20 65 01 00 00 D5 29 00 00 2D 1E 00 00 00 19 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 27 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 19, dataType 3-DP_TYPE_STRING and 16 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 0C 01 00 01 00 1C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 10 01 00 01 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 16, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 65 02 00 04 00 00 01 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 256
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 06 09 05 00 02 08 00 27 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 13 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 5-DP_TYPE_BITMAP and 2 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 10 11 00 00 0C 03 01 00 0D 04 01 00 19 05 01 00 41 AC 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 23 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 17, dataType 0-DP_TYPE_RAW and 12 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 12 00 00 10 01 01 00 0F 03 01 01 0D 04 01 00 C5 08 00 00 0A 3E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 27 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 18, dataType 0-DP_TYPE_RAW and 16 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 10 11 00 00 0C 03 01 00 0D 04 01 00 19 05 01 00 41 AC 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 23 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 17, dataType 0-DP_TYPE_RAW and 12 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 12 00 00 10 10 11 00 00 0C 03 01 00 0D 04 01 00 19 05 01 00 41 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 65 and got checksum 161
    Info:TuyaMCU:Consumed 1 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) AC 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 12 00 00 10 01 01 00 0F 03 01 01 0D 04 01 00 C5 08 00 00 0A 3E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 27 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 18, dataType 0-DP_TYPE_RAW and 16 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 10 11 00 00 0C 03 01 00 0D 04 01 00 19 05 01 00 41 AC 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 23 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 17, dataType 0-DP_TYPE_RAW and 12 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 12 00 00 10 01 01 00 0F 03 01 01 0D 04 01 00 C5 08 00 00 0A 3E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 27 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 18, dataType 0-DP_TYPE_RAW and 16 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 10 11 00 00 0C 03 01 00 0D 04 01 00 19 05 01 00 41 AC 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 23 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 17, dataType 0-DP_TYPE_RAW and 12 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 12 00 00 10 01 01 00 0F 03 01 01 0D 04 01 00 C5 08 00 00 0A 3E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 27 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 18, dataType 0-DP_TYPE_RAW and 16 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 01 02 00 04 00 00 A5 81 3E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 1, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 42369
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 0B 01 00 01 00 1B 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0D 02 00 04 00 00 00 00 24 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 13, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 0C 06 00 00 08 08 A5 00 00 00 00 00 00 D0 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 19 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 6, dataType 0-DP_TYPE_RAW and 8 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 13 03 00 10 07 00 20 65 01 00 00 D5 29 00 00 2D 1E 00 00 00 19 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 27 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 19, dataType 3-DP_TYPE_STRING and 16 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 0C 01 00 01 00 55 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 85 and got checksum 28
    Info:TuyaMCU:Consumed 7 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) AA 03 00 00 01 01 04 
    channel 4 (still set to 0) - ignoring
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 13 03 00 10 07 00 20 65 01 00 00 D5 29 00 00 2D 1E 00 00 00 19 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 27 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 19, dataType 3-DP_TYPE_STRING and 16 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 0C 01 00 01 00 1C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 10 01 00 01 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 16, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 65 02 00 04 00 00 01 02 7F 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 258
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 06 09 05 00 02 08 00 27 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 13 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 5-DP_TYPE_BITMAP and 2 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 10 11 00 00 0C 03 01 00 0D 04 01 00 17 05 01 00 41 AA 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 23 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 17, dataType 0-DP_TYPE_RAW and 12 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 12 00 00 10 01 01 00 0E 03 01 01 0D 04 01 00 C5 08 00 00 0A 3D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 27 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 18, dataType 0-DP_TYPE_RAW and 16 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 10 11 00 00 0C 03 01 00 0D 04 01 00 17 05 01 00 41 AA 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 23 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 17, dataType 0-DP_TYPE_RAW and 12 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 12 00 00 05 10 01 00 01 00 20 55 AA 03 07 00 08 0F 02 00 04 00 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 0 and got checksum 140
    Info:TuyaMCU:Consumed 4 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 00 00 00 26 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 65 02 00 04 00 00 01 02 7F 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 258
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 06 09 05 00 02 08 00 27 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 13 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 5-DP_TYPE_BITMAP and 2 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 10 11 00 00 0C 03 01 00 0D 04 01 00 16 05 01 00 41 A9 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 23 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 17, dataType 0-DP_TYPE_RAW and 12 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 12 00 00 10 01 01 00 0E 03 01 01 0D 04 01 00 C5 08 00 00 0A 3D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 27 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 18, dataType 0-DP_TYPE_RAW and 16 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 10 11 00 00 0C 03 01 00 0D 04 01 00 16 05 01 00 41 A9 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 23 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 17, dataType 0-DP_TYPE_RAW and 12 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 12 00 00 10 01 01 00 0E 03 01 01 0D 04 01 00 C5 08 00 00 0A 3D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 27 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 18, dataType 0-DP_TYPE_RAW and 16 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 10 11 00 00 0C 03 01 00 0D 04 01 00 16 05 01 00 41 A9 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 23 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 17, dataType 0-DP_TYPE_RAW and 12 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 12 00 00 10 01 01 00 0E 03 01 01 0D 04 01 00 C5 08 00 00 0A 3D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 27 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 18, dataType 0-DP_TYPE_RAW and 16 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 10 11 00 00 0C 03 01 00 0D 04 01 00 16 05 01 00 41 A9 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 23 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 17, dataType 0-DP_TYPE_RAW and 12 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 12 00 00 10 01 01 00 0E 03 01 01 0D 04 01 00 C5 08 00 00 0A 3D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 27 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 18, dataType 0-DP_TYPE_RAW and 16 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 10 11 00 00 0C 03 01 00 0D 04 01 00 16 05 01 00 41 A9 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 23 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 17, dataType 0-DP_TYPE_RAW and 12 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 12 00 00 10 01 01 00 0E 03 01 01 0D 04 01 00 C5 08 00 00 0A 3D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 27 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 18, dataType 0-DP_TYPE_RAW and 16 data bytes
    Info:TuyaMCU:TuyaMCU packet too large, 177 > 128
    Info:TuyaMCU:Consumed 11 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 65 02 00 04 00 00 01 03 80 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 259
    Info:MQTT:Channel has changed! Publishing 259 to channel 6 
    Info:MQTT:Publishing val 259 to tomzn_toml/6/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 06 09 05 00 02 08 00 27 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 13 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 5-DP_TYPE_BITMAP and 2 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 10 11 00 00 0C 03 01 00 0D 04 01 00 17 05 01 00 41 AA 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 23 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 17, dataType 0-DP_TYPE_RAW and 12 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 12 00 00 10 01 01 00 0E 03 07 00 10 11 00 00 0C 03 01 00 0D 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 4 and got checksum 151
    Info:TuyaMCU:Consumed 8 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 01 00 17 05 01 00 41 AA 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 12 00 00 10 01 01 00 0E 03 01 01 0D 04 01 00 C5 08 00 00 0A 3D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 27 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 18, dataType 0-DP_TYPE_RAW and 16 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 10 11 00 00 0C 03 01 00 0D 04 01 00 17 05 01 00 41 AA 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 23 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 17, dataType 0-DP_TYPE_RAW and 12 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 12 00 00 10 01 01 00 0E 03 01 01 0D 04 01 00 C5 08 00 00 0A 3D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 27 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 18, dataType 0-DP_TYPE_RAW and 16 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 10 11 00 00 0C 03 01 00 0D 04 01 00 17 05 01 00 41 AA 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 23 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 17, dataType 0-DP_TYPE_RAW and 12 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 12 00 00 10 01 01 00 0E 03 01 01 0D 04 01 00 C5 08 00 00 0A 3D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 27 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 18, dataType 0-DP_TYPE_RAW and 16 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 10 11 00 00 0C 03 01 00 0D 04 01 00 17 05 01 00 41 AA 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 23 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 17, dataType 0-DP_TYPE_RAW and 12 data bytes
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic tomzn_toml/6/get
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 12 55 AA 03 01 00 2A 7B 22 70 22 3A 22 65 65 76 34 71 66 6C 74 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 116 and got checksum 158
    Info:TuyaMCU:Consumed 29 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 61 76 38 77 63 38 37 65 22 2C 22 76 22 3A 22 31 2E 30 2E 30 22 2C 22 6D 22 3A 32 7D D9 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 01 00 2A 7B 22 70 22 3A 22 65 65 76 34 71 66 6C 74 61 76 38 77 63 38 37 65 22 2C 22 76 22 3A 22 31 2E 30 2E 30 22 2C 22 6D 22 3A 32 7D D9 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 1 (QueryProductInformation) with 49 bytes
    Info:TuyaMCU:TuyaMCU_ParseQueryProductInformation: received {"p":"eev4qfltav8wc87e","v":"1.0.0","m":2}
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 02 00 00 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 2 (MCUconf) with 7 bytes
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: TUYA_CMD_MCU_CONF, TODO!
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 03 00 00 05 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 3 (WiFiState) with 7 bytes
    command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0D 02 00 04 00 00 00 00 24 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 13, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 0C 06 00 00 08 08 A3 00 00 00 00 00 00 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 19 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 6, dataType 0-DP_TYPE_RAW and 8 data bytes
    Info:MQTT:Channel has changed! Publishing 2211 to channel 2 
    Info:MQTT:Publishing val 2211 to tomzn_toml/2/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 13 03 00 10 07 00 20 65 01 00 00 D5 29 00 00 2D 1E 00 00 00 19 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 27 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 19, dataType 3-DP_TYPE_STRING and 16 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 0C 01 00 01 00 1C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 10 01 00 01 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 16, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 65 02 00 04 00 00 01 04 81 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 260
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 06 09 05 00 02 08 00 27 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 13 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 5-DP_TYPE_BITMAP and 2 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 10 11 00 00 0C 03 01 00 0D 04 01 00 17 05 01 00 3F A8 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 23 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 17, dataType 0-DP_TYPE_RAW and 12 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 12 00 00 10 01 01 00 0E 03 01 01 0D 04 01 00 C5 08 00 00 0A 3D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 27 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 18, dataType 0-DP_TYPE_RAW and 16 data bytes
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic tomzn_toml/2/get
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 10 11 00 00 0C 03 01 00 0D 04 55 AA 03 07 00 0C 06 00 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 0 and got checksum 102
    Info:TuyaMCU:Consumed 11 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 00 08 08 A4 00 00 00 00 00 00 CF 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 01 02 00 04 00 00 A5 81 3E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 1, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 42369
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0D 02 00 04 00 00 00 00 24 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 13, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 65 02 00 04 00 00 01 04 81 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 260
    


    Focus on fnId 18 :
    01 01 00 0E 03 01 01 0D 04 01 00 C5 08 00 00 0A => 257 14 A 769 269 V 1025 197 V 2048 10

    Focus on fnId 17 :
    03 01 00 0D 04 01 00 17 05 01 00 3F => 769 13 1025 23 mA 1281 63 DegC

    So that is confirmed.

    Interesting :
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 10 11 00 00 0C 03 01 00 0D 04 55 AA 03 07 00 0C 06 00 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 0 and got checksum 102
    Info:TuyaMCU:Consumed 11 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 00 08 08 A4 00 00 00 00 00 00 CF 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 01 02 00 04 00 00 A5 81 3E 
    


    and

    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 14 12 55 AA 03 01 00 2A 7B 22 70 22 3A 22 65 65 76 34 71 66 6C 74 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 116 and got checksum 158
    Info:TuyaMCU:Consumed 29 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 61 76 38 77 63 38 37 65 22 2C 22 76 22 3A 22 31 2E 30 2E 30 22 2C 22 6D 22 3A 32 7D D9 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 01 00 2A 7B 22 70 22 3A 22 65 65 76 34 71 66 6C 74 61 76 38 77 63 38 37 65 22 2C 22 76 22 3A 22 31 2E 30 2E 30 22 2C 22 6D 22 3A 32 7D D9 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 1 (QueryProductInformation) with 49 bytes
    Info:TuyaMCU:TuyaMCU_ParseQueryProductInformation: received {"p":"eev4qfltav8wc87e","v":"1.0.0","m":2}
    
  • #9 20722622
    SVA
    Level 2  

    I have 20 of these breakers and it is a pain to solder the pins to program it. Is there an easier way?
    Also, when I set up pairing, I only get fast-blinking (which means it is in EZ pairing mode, works with BLE) but I can't get it to do AP mode. I tried pressing all buttons for a long time but no avail.
    Thirdly, when I go to configure the device using the buttons, I get the option to change over-voltage, under-voltage, leak-current, temperature, and there is another option (default is 5 and I can change it from 0 to 7). What is this option?

    Thanks a ton in advance

    Added after 10 [minutes]:

    Also, the default firmware automatically turns the breaker on after a power failure (after 30s if the under-voltage protection is turned off, else in 5s), any way to make it start up in off mode?
  • ADVERTISEMENT
  • #10 20722779
    Zogdan
    Level 9  

    Quote:
    I have 20 of these breakers and it is a pain to solder the pins to program it. Is there an easier way?


    No, just disconnect the ribbon cable (which disconnects the module from the main processor). You may check if there is a direct connection of the required pins to the ribbon cable, and create a custom ribbon cable. Or create a clamp yourself.


    Quote:
    Also, when I setup pairing, I only get fast-blinking (which means it is in EZ pairing mode, works with BLE) but I can't get it to do AP mode. I tried pressing all buttons for a long time but no avail


    That is weird, with no config openbeken should be in AP mode. Try disconnecting power 5 times, that should force AP mode.


    Quote:
    Thirdly, when I go to configure the device using the buttons, I get the option to change over-voltage, under-voltage, leak-current, temperature and there is another option (default is 5 and I can change it from 0 to 7). What is this option?


    Interesting, I do not have that option, do you have the same board? It might be recovery time (after reset due to exception state overvoltage etc)
    Quote:

    Also, the default firmware automatically turns the breaker on after a power failure (after 30s if the under-voltage protection is turned off, else in 5s), any way to make it startup in off mode?


    Not sure.
  • #11 20722833
    SVA
    Level 2  
    Zogdan wrote:
    That is weird, with no config openbeken should be in AP mode. Try disconnecting power 5 times, that should force AP mode.

    This is the default firmware, I tried disconnecting power multiple times, it still goes into fast pairing mode (BLE)

    Like you mentioned, I would need to sacrifice one plug to use the ribbon cable and solder the pins to it. I think I do get the rx/tx on the ribbon cable (not sure about the power though)


    Added after 58 [minutes]:

    Zogdan wrote:
    Interesting, I do not have that option, do you have the same board ? It might be recovery time (after reset due to exception state overvoltage etc)

    You were absolutely right, this is the timeout for auto-on after a power failure. Setting this to 0 will make the breaker bootup after power failure and stay off,
  • #12 20722903
    p.kaczmarek2
    Moderator Smart Home
    What does the manual say? Some Tuya devices have different methods of enabling AP Tuya pairing mode. Can you post manual pictures here?
    Helpful post? Buy me a coffee.
  • #13 20723396
    SVA
    Level 2  

    Here is the manual, it doesn't even talk about the reconnect time setting (which is the last setting)
    Instruction manual for a protective device with a kilowatt-hour meter. Instructions on wiring, monitoring, and networking steps for a protective device.

Topic summary

The discussion revolves around the teardown of the TOMZN TOML-VA 63A Wifi Protector, which features the BL0942 power measuring chip and the Taoplus CBU BK7231N WiFi module. Users share insights on the device's capabilities, including voltage, leak current, and power protection. The device is identified as a TuyaMCU device, and users discuss methods for firmware reading and UART communication. There are mentions of challenges in programming the device, including issues with pairing modes and settings for over-voltage, under-voltage, and temperature limits. The conversation also touches on the need for multiple devices for reverse engineering and the use of specific commands to interact with the device's firmware.
Summary generated by the language model.
ADVERTISEMENT