logo elektroda
logo elektroda
X
logo elektroda

EARU SMTONOFF 3 Phase Energy Meter (CB3S/BK7231N) - 100A Firmware Backup

vincenzoernst1 2505 25
ADVERTISEMENT
  • #1 21114037
    vincenzoernst1
    Level 6  
    This TUYA device is also labeled:
    - EARU EAEMP3-100-TY-W
    - SMTONOFF 3P4W G100A

    it has a RN8302B energy meter chip.

    EARU smart three-phase energy meter with display.

    SMTONOFF G100A smart energy meter with Wi-Fi functionality.

    I used the Itchiptool for communication, since its WAY better (than hiddownloader tool) when using Linux.

    Backup:
    Quote:
    Itchiptool flash read BK7231 backup.bin -d /dev/ttyUSB0

    Flash:
    Quote:
    ltchiptool flash write OpenBK7231N_QIO_1.17.308.bin -d /dev/ttyUSB0



    For now i see these IDs:

    
    Info:TuyaMCU:ParseState: id 127 type 4-enum len 1
    Info:TuyaMCU:ParseState: byte 0
    Info:TuyaMCU:Received: 55 AA 03 07 00 05 80 04 00 01 00 93 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 12
    Info:TuyaMCU:ParseState: id 128 type 4-enum len 1
    Info:TuyaMCU:ParseState: byte 0
    Info:TuyaMCU:Received: 55 AA 03 07 00 05 81 04 00 01 00 94 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 12
    Info:TuyaMCU:ParseState: id 129 type 4-enum len 1
    Info:TuyaMCU:ParseState: byte 0
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 0D 02 00 04 00 00 00 00 24 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 13 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 0
    Info:TuyaMCU:Received: 55 AA 03 07 00 05 10 01 00 01 01 21 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 12
    Info:TuyaMCU:ParseState: id 16 type 1-bool len 1
    Info:TuyaMCU:ParseState: byte 1
    Info:TuyaMCU:Received: 55 AA 03 07 00 0C 06 00 00 08 09 29 00 01 B7 00 00 66 73 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 19
    Info:TuyaMCU:ParseState: id 6 type 0-raw len 8
    Info:TuyaMCU:Received: 55 AA 03 07 00 0C 07 00 00 08 00 00 00 00 00 00 00 00 24 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 19
    Info:TuyaMCU:ParseState: id 7 type 0-raw len 8
    Info:TuyaMCU:Received: 55 AA 03 07 00 0C 08 00 00 08 00 00 00 00 00 00 00 00 25 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 19
    Info:TuyaMCU:ParseState: id 8 type 0-raw len 8
    Info:TuyaMCU:Received: 55 AA 03 07 00 13 71 00 00 0F 09 29 00 01 B7 00 03 FC 00 00 00 03 E8 C3 32 65 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 26
    Info:TuyaMCU:ParseState: id 113 type 0-raw len 15
    Info:TuyaMCU:Received: 55 AA 03 07 00 13 72 00 00 0F 00 00 00 00 00 00 00 00 00 00 00 03 E8 C3 32 7D 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 26
    Info:TuyaMCU:ParseState: id 114 type 0-raw len 15
    Info:TuyaMCU:Received: 55 AA 03 07 00 13 73 00 00 0F 00 00 00 00 00 00 00 00 00 00 00 03 E8 C3 32 7E 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 26
    Info:TuyaMCU:ParseState: id 115 type 0-raw len 15
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 6F 02 00 04 00 00 00 66 EC 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 111 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 102
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 70 02 00 04 00 00 00 00 87 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 112 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 0
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 76 02 00 04 00 00 03 E8 78 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 118 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 1000
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 01 02 00 04 00 00 00 04 1C 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 1 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 4
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 6E 02 00 04 00 00 00 00 85 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 110 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 0
    5
    Info:TuyaMCU:ParseState: id 17 type 0-raw len 4
    Info:TuyaMCU:ParseState: int32 83951701
    Info:TuyaMCU:Received: 55 AA 03 07 00 18 12 00 00 14 01 01 03 20 03 01 01 13 04 01 00 AF 02 00 00 14 05 00 00 00 53 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 31
    Info:TuyaMCU:ParseState: id 18 type 0-raw len 20
    Info:TuyaMCU:Received: 55 AA 03 07 00 10 7E 00 00 0C 01 00 00 00 02 00 00 14 03 00 00 64 21 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 23
    Info:TuyaMCU:ParseState: id 126 type 0-raw len 12
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 77 02 00 04 00 00 00 05 93 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 119 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 5
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 78 02 00 04 00 00 00 14 A3 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 120 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 20
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 79 02 00 04 00 00 00 14 A4 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 121 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 20
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 7A 02 00 04 00 00 00 14 A5 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 122 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 20
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 7B 02 00 04 00 00 00 03 95 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 123 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 3
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 7C 02 00 04 00 00 00 05 98 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 124 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 5
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 7D 02 00 04 00 00 00 0A 9E 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 125 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 10
    Info:TuyaMCU:Received: 55 AA 03 07 00 05 09 05 00 01 00 1D 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 12
    Info:TuyaMCU:ParseState: id 9 type 5-bitmap len 1
    Info:TuyaMCU:ParseState: byte 0
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 28 A6 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 103 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 40
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 69 02 00 04 00 00 00 00 80 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 105 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 0
    Info:TuyaMCU:Received: 55 AA 03 07 00 14 6A 03 00 10 45 77 41 41 41 41 41 41 41 41 41 41 41 41 3D 3D DC 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 27
    Info:TuyaMCU:ParseState: id 106 type 3-str len 16
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 6D 03 00 04 41 41 41 38 80 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 109 type 3-str len 4
    Info:TuyaMCU:ParseState: int32 1094795576
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 0D 02 00 04 00 00 00 00 24 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 13 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 0
    Info:TuyaMCU:Received: 55 AA 03 07 00 05 0C 01 00 01 00 1C 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 12
    Info:TuyaMCU:ParseState: id 12 type 1-bool len 1
    Info:TuyaMCU:ParseState: byte 0
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 66 02 00 04 00 00 00 00 7D 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 102 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 0
    Info:TuyaMCU:Received: 55 AA 03 07 00 05 68 01 00 01 00 78 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 12
    Info:TuyaMCU:ParseState: id 104 type 1-bool len 1
    Info:TuyaMCU:ParseState: byte 0
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 69 02 00 04 00 00 00 00 80 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    
    


     id 1 
     type 2-val len 4
    int32 4
    
    id 6 
    type 0-raw len 8
    
     id 7 
     type 0-raw len 8
    
     id 8 
     type 0-raw len 8
    
     id 9 
     type 5-bitmap len 1
    byte 0
    
    id 12 
    type 1-bool len 1
    byte 0
    
    id 13 
    type 2-val len 4
    int32 0
    
     id 16 
     type 1-bool len 1
     byte 1
    
    id 17 
    type 0-raw len 4
     int32 83951701
    
     id 18 
     type 0-raw len 20
    
    id 103 
    type 2-val len 4
     int32 40      counts up
    
    id 102
    type 2-val len 4
    int32 0
    
    id 104 type 1-bool len 1
    byte 0
    
    id 105 
    type 2-val len 4
     int32 0
    
    id 106 
    type 3-str len 16
    
    id 109 
    type 3-str len 4
    int32 1094795576
    
    id 110 
    type 2-val len 4
    int32 0
    
    id 111 
    type 2-val len 4
     int32 102
    
    id 112 
    type 2-val len 4
    int32 0
    
     id 113 
     type 0-raw len 15
     
      id 114 
      type 0-raw len 15
      
     id 115 
     type 0-raw len 15
    
    id 118 
    type 2-val len 4
     int32 1000
    
    id 119 
    type 2-val len 4
     int32 5
    
    id 120 
    type 2-val len 4
    int32 20
    
     id 121 
     type 2-val len 4
     int32 20
    
     id 122
     type 2-val len 4
    int32 20
    
     id 123 
     type 2-val len 4
     int32 3
    
    id 124 
    type 2-val len 4
     int32 5
    
    
     id 125 
     type 2-val len 4
     int32 10
    
    id 126 
    type 0-raw len 12
    
    id 127 
    type 4-enum len 1
     byte 0
    
    id 128 
    type 4-enum len 1
    byte 0
    
    id 129 
    type 4-enum len 1
     byte 0
    



    Attached: orig fw backup
  • ADVERTISEMENT
  • #2 21115612
    vincenzoernst1
    Level 6  

    atm i can't find any connection from dpid to any values. I started tuya driver at startup and tested a 100w bulb connected 3 phases but no values are near to some match.....???!!!
  • #3 21134949
    p.kaczmarek2
    Moderator Smart Home
    I haven't seen your post. You should have sent me a link.

    Isn't this a RAW type packet with VCP?
    
    Info:TuyaMCU:ParseState: id 8 type 0-raw len 8
    Info:TuyaMCU:Received: 55 AA 03 07 00 13 71 00 00 0F 09 29 00 01 B7 00 03 FC 00 00 00 03 E8 C3 32 65 
    

    Maybe RAW_TAC2121C_VCP?

    We actually have it supported...
    
    
    						// voltage
    						iVal = data[ofs + 0 + 4] << 8 | data[ofs + 1 + 4];
    						CHANNEL_SetFirstChannelByType(ChType_Voltage_div10, iVal);
    						// current
    						iVal = data[ofs + 3 + 4] << 8 | data[ofs + 4 + 4];
    						CHANNEL_SetFirstChannelByType(ChType_Current_div1000, iVal);
    						// power
    						iVal = data[ofs + 6 + 4] << 8 | data[ofs + 7 + 4];
    						CHANNEL_SetFirstChannelByType(ChType_Power, iVal);
    

    if packet is:
    55 AA 03 07 00 13 71 00 00 0F 09 29 00 01 B7 00 03 FC 00 00 00 03 E8 C3 32 65
    then payload is:
    FC 00 00 00 03 E8 C3 32

    FC 00 may be 252V?
    Hexadecimal to decimal conversion shows a result of 252.

    Added after 57 [seconds]:

    See:
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/autoexecExamples.md
    Try TAC2121C_VCP for dpID 6 or 8
    Helpful post? Buy me a coffee.
  • #4 21135582
    vincenzoernst1
    Level 6  
    Thanks for the reply.

    252V would be a forbidden voltage in Europe. ;-) whatever I had attached it might have been 252W.

    I, right now, have an ESP module installed, so I can grep only data from there. Anyway, it shouldn't be different on the bus.

    What info do you need?

    update: no, i have to correct myself: 254V would be illegal in Europe, but 252V would also damage 1st grid devices.
  • Helpful post
    #5 21135819
    divadiow
    Level 34  
    uart boot log from that fw backup

    Code: Text
    Log in, to see the code
  • #6 21137413
    divadiow
    Level 34  
    vincenzoernst1 wrote:
    I used the Itchiptool for communication, since its WAY better (than hiddownloader tool) when using Linux


    There's also an official Beken Linux flasher available from the links in here https://www.elektroda.com/rtvforum/topic4059172.html

    It'd be good to see someone's experiences with it posted. I will get round to it someday hopefully.
  • #7 21137484
    vincenzoernst1
    Level 6  
    Sorry but I didnt touch any Windoze and mono s**t for 20+ years. When will they (mostly the chinese) learn platform independent coding?
  • ADVERTISEMENT
  • #9 21137598
    vincenzoernst1
    Level 6  
    hmmm....ok....unknown program....nice.....what type of program/lang is this?
  • #10 21140239
    p.kaczmarek2
    Moderator Smart Home
    This is a new flasher by Beken, a version for Linux, I guess. But has anyone actually tried it to Linux? Does it flash well?


    If not, maybe our old trusted flasher?
    https://github.com/OpenBekenIOT/hid_download_py
    Guide:


    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #11 21141666
    vincenzoernst1
    Level 6  
    Quote:
    This is a new flasher by Beken, a version for Linux, I guess. But has anyone actually tried it on Linux? Does it flash well?
    never tried. i have concerns running untrusted software on my main devices....
  • Helpful post
    #12 21141668
    p.kaczmarek2
    Moderator Smart Home
    In case of hid_download_py, you can see the source code:
    https://github.com/OpenBekenIOT/hid_download_py
    Helpful post? Buy me a coffee.
  • #14 21147558
    vincenzoernst1
    Level 6  
    today i swaped back to the CB3S and will test the settings....

    Added after 30 [minutes]:

    finding:
    // Mains relay on-off - Dpid 16 switch" -> channel 1
    linkTuyaMCUOutputToChannel 16 bool 1
    setChannelType 1 toggle
    setChannelLabel 1 "Mains relay"


    the device saves the relay state @ power off!!!!

    @p.kaczmarek2

    didnt get any data. tryed with dpid6 and:

    
    linkTuyaMCUOutputToChannel 113 RAW_TAC2121C_VCP
    setChannelType 113 Voltage
    setChannelLabel 113 "Voltage"
    
    setChannelType 114 Power
    setChannelLabel 114 "Power"
    
    setChannelType 115 Current
    setChannelLabel 115 "Current"


    but did not understand the code correctly imho.

    it uses the dpid 113 and extracts the values of 113,114,115, right? so i need to try this with ANY raw data channel?

    but anyway. at least one value should pop up ( the voltage), since this 3 phase i shoudl getthe voltage 3 times (i have the voltage connected to all 3 inputs) ??
  • #15 21147732
    p.kaczmarek2
    Moderator Smart Home
    This is incorrect:
    
    
    setChannelType 113 Voltage
    setChannelLabel 113 "Voltage"
    
    setChannelType 114 Power
    setChannelLabel 114 "Power"
    
    setChannelType 115 Current
    setChannelLabel 115 "Current"
    

    We don't have that much channels. Please try using any other channel numbers, like channels 10, 11, 12, etc. Also set correct channel type. Please see samples:
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/autoexecExamples.md
    
    setChannelType 2 Voltage_div10
    setChannelType 3 Power
    setChannelType 4 Current_div1000
    linkTuyaMCUOutputToChannel 6 RAW_TAC2121C_VCP
    
    Helpful post? Buy me a coffee.
  • #16 21150088
    vincenzoernst1
    Level 6  
    got something:

    
    
    startDriver TuyaMCU
    //tuyaMcu_setBaudRate 115200
    tuyaMcu_defWiFiState 4
    
    // --------------confirmed----working------------------
    // Mains relay on-off - Dpid 16 switch" -> channel 1
    linkTuyaMCUOutputToChannel 16 bool 1
    setChannelType 1 toggle
    setChannelLabel 1 "Mains relay"
    
    //---------------------------------------------
    
    linkTuyaMCUOutputToChannel 6 RAW_TAC2121C_VCP
    setChannelType 10 Voltage_div10
    setChannelLabel 10 "Voltage"
    setChannelType 11 Power
    setChannelLabel 11 "Power"
    setChannelType 12 Current_div100
    setChannelLabel 12 "Current"
    
    
    linkTuyaMCUOutputToChannel 7 RAW_TAC2121C_VCP
    setChannelType 13 Voltage_div10
    setChannelLabel 13 "Voltage"
    setChannelType 14 Power
    setChannelLabel 14 "Power"
    setChannelType 15 Current_div100
    setChannelLabel 15 "Current"
    
    
    linkTuyaMCUOutputToChannel 8 RAW_TAC2121C_VCP
    setChannelType 16 Voltage_div10
    setChannelLabel 16 "Voltage"
    setChannelType 17 Power
    setChannelLabel 17 "Power"
    setChannelType 18 "Current_div100
    setChannelLabel 18 "Current"
    
    
    
    


    i attached a 160W bulb which results in ~0,6A on phase 1. but the outputs are not right at all. while voltage seems to be ok, but only on phase 1

    Screenshot of OpenBK7231N interface with active mains relay and parameter readings.


    i saw 1,0W once so maybe we need Current without div.
  • #17 21153026
    vincenzoernst1
    Level 6  
    oh. forgot to mention @p.kaczmarek2 in the last update post....
  • #18 21153135
    p.kaczmarek2
    Moderator Smart Home
    Or maybe just add mult 10 in linkTuyaMCUOutputToChannel and then use div channel type as a workaround...
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/commands.md
    Helpful post? Buy me a coffee.
  • #19 21158424
    vincenzoernst1
    Level 6  
    @p.kaczmarek2

    no change. still only the voltage is shown on one phase.

    i tried
    linkTuyaMCUOutputToChannel 6 RAW_TAC2121C_VCP 0 10 
    and
    linkTuyaMCUOutputToChannel 6 RAW_TAC2121C_VCP 1 10



    linkTuyaMCUOutputToChannel 6 RAW_TAC2121C_VCP 1 10
    setChannelType 10 Voltage_div10
    setChannelLabel 10 "Voltage"
    setChannelType 11 Power
    setChannelLabel 11 "Power"
    setChannelType 12 Current_div100
    setChannelLabel 12 "Current"
    
    
    linkTuyaMCUOutputToChannel 7 RAW_TAC2121C_VCP 1 10
    setChannelType 13 Voltage_div10
    setChannelLabel 13 "Voltage"
    setChannelType 14 Power
    setChannelLabel 14 "Power"
    setChannelType 15 Current_div100
    setChannelLabel 15 "Current"
    
    
    linkTuyaMCUOutputToChannel 8 RAW_TAC2121C_VCP 1 10
    setChannelType 16 Voltage_div10
    setChannelLabel 16 "Voltage"
    setChannelType 17 Power
    setChannelLabel 17 "Power"
    setChannelType 18 "Current_div100
    setChannelLabel 18 "Current"



    here is 160W attachted to phase1:

    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 43 (NetworkStatus) len 7
    Info:TuyaMCU:ProcessIncoming: (test for S09 calendar/IR device) received TUYA_CMD_NETWORK_STATUS 0x2B 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 2B 00 00 2D 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 43 (NetworkStatus) len 7
    Info:TuyaMCU:ProcessIncoming: (test for S09 calendar/IR device) received TUYA_CMD_NETWORK_STATUS 0x2B 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 2B 00 00 2D 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 43 (NetworkStatus) len 7
    Info:TuyaMCU:ProcessIncoming: (test for S09 calendar/IR device) received TUYA_CMD_NETWORK_STATUS 0x2B 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 2B 00 00 2D 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 43 (NetworkStatus) len 7
    Info:TuyaMCU:ProcessIncoming: (test for S09 calendar/IR device) received TUYA_CMD_NETWORK_STATUS 0x2B 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    -raw len 15
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 6F 02 00 04 00 00 00 9F 25 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 111 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 159
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 70 02 00 04 00 00 00 00 87 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 112 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 0
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 76 02 00 04 00 00 03 C9 59 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 118 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 969
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 01 02 00 04 00 00 00 15 2D 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 1 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 21
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 6E 02 00 04 00 00 00 00 85 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 110 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 0
    Info:TuyaMCU:Received: 55 AA 03 07 00 28 75 00 00 24 00 00 00 15 00 00 00 15 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 14 00 00 00 01 00 00 00 00 09 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 47
    Info:TuyaMCU:ParseState: id 117 type 0-raw len 36
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 11 00 00 04 05 01 00 55 81 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 17 type 0-raw len 4
    Info:TuyaMCU:ParseState: int32 83951701
    Info:TuyaMCU:Received: 55 AA 03 07 00 18 12 00 00 14 01 01 03 20 03 01 01 13 04 01 00 AF 02 00 00 14 05 00 00 00 53 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 31
    Info:TuyaMCU:ParseState: id 18 type 0-raw len 20
    Info:TuyaMCU:Received: 55 AA 03 07 00 10 7E 00 00 0C 01 00 00 00 02 00 00 14 03 00 00 64 21 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 23
    Info:TuyaMCU:ParseState: id 126 type 0-raw len 12
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 77 02 00 04 00 00 00 05 93 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 119 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 5
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 78 02 00 04 00 00 00 14 A3 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 120 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 20
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 79 02 00 04 00 00 00 14 A4 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 121 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 20
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 7A 02 00 04 00 00 00 14 A5 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 122 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 20
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 7B 02 00 04 00 00 00 03 95 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 123 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 3
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 7C 02 00 04 00 00 00 05 98 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 124 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 5
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 7D 02 00 04 00 00 00 0A 9E 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 125 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 10
    Info:TuyaMCU:Received: 55 AA 03 07 00 05 09 05 00 01 00 1D 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 12
    Info:TuyaMCU:ParseState: id 9 type 5-bitmap len 1
    Info:TuyaMCU:ParseState: byte 0
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 2C AA 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 103 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 44
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 69 02 00 04 00 00 00 00 80 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 105 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 0
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 03 00 00 05 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 3 (WiFiState) len 7
    Info:TuyaMCU:Received: 55 AA 03 2B 00 00 2D 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 43 (NetworkStatus) len 7
    Info:TuyaMCU:ProcessIncoming: (test for S09 calendar/IR device) received TUYA_CMD_NETWORK_STATUS 0x2B 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 2B 00 00 2D 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 43 (NetworkStatus) len 7
    Info:TuyaMCU:ProcessIncoming: (test for S09 calendar/IR device) received TUYA_CMD_NETWORK_STATUS 0x2B 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 2B 00 00 2D 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 43 (NetworkStatus) len 7
    Info:TuyaMCU:ProcessIncoming: (test for S09 calendar/IR device) received TUYA_CMD_NETWORK_STATUS 0x2B 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 2B 00 00 2D 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 43 (NetworkStatus) len 7
    Info:TuyaMCU:ProcessIncoming: (test for S09 calendar/IR device) received TUYA_CMD_NETWORK_STATUS 0x2B 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 07 00 05 09 05 00 01 00 1D 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 12
    Info:TuyaMCU:ParseState: id 9 type 5-bitmap len 1
    Info:TuyaMCU:ParseState: byte 0
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    nfo:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 123 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 3
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 7C 02 00 04 00 00 00 05 98 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 124 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 5
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 7D 02 00 04 00 00 00 0A 9E 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 125 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 10
    Info:TuyaMCU:Received: 55 AA 03 07 00 05 09 05 00 01 00 1D 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 12
    Info:TuyaMCU:ParseState: id 9 type 5-bitmap len 1
    Info:TuyaMCU:ParseState: byte 0
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 2E AC 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 103 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 46
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 69 02 00 04 00 00 00 00 80 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 105 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 0
    Info:TuyaMCU:Received: 55 AA 03 07 00 14 6A 03 00 10 45 77 41 41 41 41 41 41 41 41 41 41 41 41 3D 3D DC 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 27
    Info:TuyaMCU:ParseState: id 106 type 3-str len 16
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 6D 03 00 04 41 41 41 38 80 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 109 type 3-str len 4
    Info:TuyaMCU:ParseState: int32 1094795576
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 0D 02 00 04 00 00 00 00 24 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 13 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 0
    Info:TuyaMCU:Received: 55 AA 03 07 00 05 0C 01 00 01 00 1C 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 12
    Info:TuyaMCU:ParseState: id 12 type 1-bool len 1
    Info:TuyaMCU:ParseState: byte 0
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 66 02 00 04 00 00 00 00 7D 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 102 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 0
    Info:TuyaMCU:Received: 55 AA 03 07 00 05 68 01 00 01 00 78 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 12
    Info:TuyaMCU:ParseState: id 104 type 1-bool len 1
    Info:TuyaMCU:ParseState: byte 0
    Info:TuyaMCU:Received: 55 AA 03 07 00 08 69 02 00 04 00 00 00 00 80 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 105 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 0
    Info:MAIN:Time 5, idle 51400/s, free 77632, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:ssid:PHI Guest key:xah3shieh3
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 6, idle 179457/s, free 72376, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Boot complete time reached (5 seconds)
    Info:CFG:####### Set Boot Complete #######
    Info:TuyaMCU:Received: 55 AA 03 03 00 00 05 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 3 (WiFiState) len 7
    Info:MAIN:Time 7, idle 180996/s, free 72376, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 8, idle 87048/s, free 72688, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 9, idle 0/s, free 72688, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 10, idle 0/s, free 72688, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=0.0.0.0 gate=0.0.0.0 mask=0.0.0.0 mac=4c:a9:19:89:eb:51
    Info:GEN:sta: 0, softap: 0, b/g/n
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTING - 1
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
    Info:MAIN:Time 11, idle 89747/s, free 72832, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
    Info:MAIN:Time 12, idle 185385/s, free 72872, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:mqtt_host empty, not starting mqtt
    Info:MAIN:Time 13, idle 192378/s, free 72872, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 14, idle 192458/s, free 72656, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MAIN:Time 15, idle 186613/s, free 72872, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 16, idle 192891/s, free 72872, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 17, idle 191330/s, free 72872, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 18, idle 194150/s, free 64264, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MAIN:Time 19, idle 190176/s, free 72872, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 20, idle 192679/s, free 72872, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.123.111 gate=192.168.123.1 mask=255.255.255.0 mac=4c:a9:19:89:eb:51
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-68,ssid=PHI Guest,bssid=e2:79:c9:0a:49:2f,channel=5,cipher_type:CCMP
    Info:TuyaMCU:Received: 55 AA 03 2B 00 00 2D 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 43 (NetworkStatus) len 7
    Info:TuyaMCU:ProcessIncoming: (test for S09 calendar/IR device) received TUYA_CMD_NETWORK_STATUS 0x2B 
    Info:MAIN:Time 21, idle 187537/s, free 72872, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 22, idle 184656/s, free 72872, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 23, idle 194892/s, free 72872, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 24, idle 192085/s, free 72872, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 25, idle 191472/s, free 72872, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 26, idle 182495/s, free 72872, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 27, idle 203366/s, free 72872, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 28, idle 205696/s, free 72872, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:mqtt_host empty, not starting mqtt
    Info:MAIN:Time 29, idle 186519/s, free 72872, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 30, idle 190969/s, free 72872, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.123.111 gate=192.168.123.1 mask=255.255.255.0 mac=4c:a9:19:89:eb:51
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-66,ssid=PHI Guest,bssid=e2:79:c9:0a:49:2f,channel=5,cipher_type:CCMP
    Info:MAIN:Time 31, idle 190884/s, free 72872, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 32, idle 194597/s, free 72872, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 33, idle 191164/s, free 72872, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 34, idle 191710/s, free 72872, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 35, idle 189292/s, free 72872, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 36, idle 191104/s, free 72872, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:Received: 55 AA 03 2B 00 00 2D 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 43 (NetworkStatus) len 7
    Info:TuyaMCU:ProcessIncoming: (test for S09 calendar/IR device) received TUYA_CMD_NETWORK_STATUS 0x2B 
    Info:MAIN:Time 37, idle 189751/s, free 72872, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 38, idle 190646/s, free 72872, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 39, idle 189344/s, free 72872, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 40, idle 192776/s, free 72872, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.123.111 gate=192.168.123.1 mask=255.255.255.0 mac=4c:a9:19:89:eb:51
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-68,ssid=PHI Guest,bssid=e2:79:c9:0a:49:2f,channel=5,cipher_type:CCMP
    Info:MAIN:Time 41, idle 187612/s, free 72872, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 42, idle 191049/s, free 72872, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 43, idle 192117/s, free 72872, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 44, idle 191985/s, free 72872, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:mqtt_host empty, not starting mqtt
    Info:MAIN:Time 45, idle 192342/s, free 72872, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 46, idle 191963/s, free 72872, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 47, idle 192520/s, free 72872, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 48, idle 191549/s, free 72872, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 49, idle 192779/s, free 72872, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 50, idle 188635/s, free 72872, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.123.111 gate=192.168.123.1 mask=255.255.255.0 mac=4c:a9:19:89:eb:51
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-68,ssid=PHI Guest,bssid=e2:79:c9:0a:49:2f,channel=5,cipher_type:CCMP
    Info:TuyaMCU:Received: 55 AA 03 07 00 05 09 05 00 01 00 1D 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 12
    Info:TuyaMCU:ParseState: id 9 type 5-bitmap len 1
    Info:TuyaMCU:ParseState: byte 0
    Info:MAIN:Time 51, idle 184489/s, free 72872, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 52, idle 192751/s, free 72872, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:Received: 55 AA 03 2B 00 00 2D 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 43 (NetworkStatus) len 7
    Info:TuyaMCU:ProcessIncoming: (test for S09 calendar/IR device) received TUYA_CMD_NETWORK_STATUS 0x2B 
    Info:MAIN:Time 53, idle 201019/s, free 72872, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 54, idle 190852/s, free 72872, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 55, idle 196170/s, free 72872, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 56, idle 198782/s, free 72872, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 57, idle 189709/s, free 72872, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 58, idle 190056/s, free 72872, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 59, idle 191145/s, free 64264, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MAIN:Time 60, idle 202320/s, free 72872, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.123.111 gate=192.168.123.1 mask=255.255.255.0 mac=4c:a9:19:89:eb:51
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-68,ssid=PHI Guest,bssid=e2:79:c9:0a:49:2f,channel=5,cipher_type:CCMP
    Info:MQTT:mqtt_host empty, not starting mqtt
    Info:MAIN:Time 61, idle 187898/s, free 72872, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 62, idle 189544/s, free 72872, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 63, idle 196112/s, free 72872, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 64, idle 192500/s, free 72872, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 65, idle 205599/s, free 72872, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 66, idle 188176/s, free 72872, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 67, idle 190575/s, free 61176, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:CMD:[WebApp Cmd 'logfeature 1 1' Result] OK
    Info:MAIN:Time 68, idle 188291/s, free 64264, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:TuyaMCU:Received: 55 AA 03 2B 00 00 2D 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 43 (NetworkStatus) len 7
    Info:TuyaMCU:ProcessIncoming: (test for S09 calendar/IR device) received TUYA_CMD_NETWORK_STATUS 0x2B 
    Info:MAIN:Time 69, idle 185822/s, free 64264, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:CMD:[WebApp Cmd 'logfeature 1 0' Result] OK
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 70, idle 186483/s, free 72872, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.123.111 gate=192.168.123.1 mask=255.255.255.0 mac=4c:a9:19:89:eb:51
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-68,ssid=PHI Guest,bssid=e2:79:c9:0a:49:2f,channel=5,cipher_type:CCMP
    Info:MAIN:Time 71, idle 178664/s, free 72872, MQTT 0(4), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MAIN:Time 72, idle 194023/s, free 72872, MQTT 0(4), bWifi 1, secondsWithNoPing 2, socks 2/38 
    Info:MAIN:Time 73, idle 193666/s, free 72872, MQTT 0(4), bWifi 1, secondsWithNoPing 3, socks 2/38 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 74, idle 191632/s, free 72872, MQTT 0(4), bWifi 1, secondsWithNoPing 4, socks 2/38 
    Info:MAIN:Time 75, idle 192613/s, free 72872, MQTT 0(4), bWifi 1, secondsWithNoPing 5, socks 2/38 
    Info:MAIN:Time 76, idle 193856/s, free 72872, MQTT 0(4), bWifi 1, secondsWithNoPing 6, socks 2/38 
    Info:MAIN:Time 77, idle 200190/s, free 72872, MQTT 0(5), bWifi 1, secondsWithNoPing 7, socks 2/38 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 78, idle 189308/s, free 72872, MQTT 0(5), bWifi 1, secondsWithNoPing 8, socks 2/38 
    Info:MAIN:Time 79, idle 198312/s, free 72872, MQTT 0(5), bWifi 1, secondsWithNoPing 9, socks 2/38 
    Info:MAIN:Time 80, idle 190851/s, free 72872, MQTT 0(5), bWifi 1, secondsWithNoPing 10, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.123.111 gate=192.168.123.1 mask=255.255.255.0 mac=4c:a9:19:89:eb:51
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-68,ssid=PHI Guest,bssid=e2:79:c9:0a:49:2f,channel=5,cipher_type:CCMP
    Info:MAIN:Time 81, idle 186575/s, free 72872, MQTT 0(5), bWifi 1, secondsWithNoPing 11, socks 2/38 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 82, idle 194371/s, free 72872, MQTT 0(5), bWifi 1, secondsWithNoPing 12, socks 2/38 
    Info:MAIN:Time 83, idle 189216/s, free 72872, MQTT 0(5), bWifi 1, secondsWithNoPing 13, socks 2/38 
    Info:MAIN:Time 84, idle 190444/s, free 72872, MQTT 0(5), bWifi 1, secondsWithNoPing 14, socks 2/38 
    Info:TuyaMCU:Received: 55 AA 03 03 00 00 05 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 3 (WiFiState) len 7
    Info:TuyaMCU:Received: 55 AA 03 2B 00 00 2D 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 43 (NetworkStatus) len 7
    Info:TuyaMCU:ProcessIncoming: (test for S09 calendar/IR device) received TUYA_CMD_NETWORK_STATUS 0x2B 
    Info:MAIN:Time 85, idle 190164/s, free 72872, MQTT 0(5), bWifi 1, secondsWithNoPing 15, socks 2/38 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 86, idle 190419/s, free 72872, MQTT 0(5), bWifi 1, secondsWithNoPing 16, socks 2/38 
    Info:MAIN:Time 87, idle 193035/s, free 72872, MQTT 0(5), bWifi 1, secondsWithNoPing 17, socks 2/38 
    Info:MAIN:Time 88, idle 191765/s, free 72872, MQTT 0(5), bWifi 1, secondsWithNoPing 18, socks 2/38 
  • #20 21377686
    valstillhardt
    Level 3  
    It's a neat little device.

    I would love to see if there is any development going on :)

    One thing I'm curious about is, does the screen stop working when OpenBK7231T is flashed? Or is that independent?
  • Helpful post
    #21 21377743
    p.kaczmarek2
    Moderator Smart Home
    Screen is controlled via MCU, we only flash WiFi module. This device should work good in OBK. I have a guide for similar one with screen:
    https://www.elektroda.com/rtvforum/topic4088414.html
    Helpful post? Buy me a coffee.
  • #22 21379080
    valstillhardt
    Level 3  
    >>21377743 >>21377743

    Thanks for replying.
    The last person said only *one* phase voltage worked, so my question is: Has this been worked out, so that at least all three phases (V/A) are reporting correctly? If so, I'll buy one to try and modify it.
  • ADVERTISEMENT
  • #23 21379094
    p.kaczmarek2
    Moderator Smart Home
    Yes, it is solved now, I've mentioned it in related threads, here are links:
    https://www.elektroda.com/rtvforum/topic3936455-30.html#21337927
    https://www.elektroda.com/rtvforum/topic3995777-120.html#21365381
    Basically, now that VCP dpID type takes index of first channel (voltage), but also sets next channel (current) and next-next channel (power), as in title, VCP, Voltage Current Power.

    So you can multiple VCP dpIDs and they will work.

    All thanks to @DarkMan1 for sending me device so I can work on it.
    Helpful post? Buy me a coffee.
  • #24 21379200
    valstillhardt
    Level 3  
    >>21379094 >>21379094

    Thank you! Cool! I will order one and report back!
  • #25 21379234
    p.kaczmarek2
    Moderator Smart Home
    Sure, btw, if you can, document process step by step. Which one do you order - can you post offer screenshots? Once it arrives, can you make 2MB flash backup? I'll do my best to help you and make sure you'll get it supported well in cloud-free way.
    Helpful post? Buy me a coffee.
  • #26 21379331
    valstillhardt
    Level 3  
    >>21379234

    Yes, I can do that, considering I have the tools needed.
    I have a CH341A programmer, a FTDI/USB adapter, an oscilloscope w/2 channels, a soldering station and some other random less relevant stuff. I hope these will do the job.
    I'll update you once it arrives. Might take 3 weeks from now.

    Thanks in advance for your help!

Topic summary

The discussion revolves around the EARU SMTONOFF 3 Phase Energy Meter (CB3S/BK7231N) and its firmware backup process. Users are exploring communication with the device using the Itchiptool on Linux, noting issues with data retrieval from the TuyaMCU interface. Various packet types and channel configurations are discussed, including the use of the RN8302B energy meter chip. Participants share their experiences with different flashing tools, including a new Beken Linux flasher, and provide code snippets for setting up channel types and linking outputs. There are concerns about voltage readings and the need for correct channel configurations to obtain accurate data from the three-phase setup.
Summary generated by the language model.
ADVERTISEMENT