logo elektroda
logo elektroda
X
logo elektroda

TH03 Pro Temperature Humidity Sensor Compatibility with OpenBeken Integration (possibly)

io2345 1773 77
Best answers

Can the TH03 Pro temperature/humidity sensor be flashed with OpenBeken or another local firmware, and how should it be wired and configured?

Yes — the TH03 Pro is a TuyaMCU device with a CB3S Wi‑Fi module, so it can be used with OpenBeken after flashing the BK7231N side and mapping the MCU data points [#21834514][#21836406] For flashing, one user had to disconnect MCU pin 10 from the CB3S RX line (lifting the IC leg worked), then connect to the MCU_RX and MCU_TX pads, and power the board from the battery pads with 3 V on V+ and GND on V- [#21836406] After first boot, you only have a short window to open the OBK web UI before the MCU puts Wi‑Fi back to sleep, so you may need to pull and reinsert a battery a few times while configuring [#21836406] The working OBK setup is `startDriver TuyaMCU` plus `startDriver tmSensor`, with `linkTuyaMCUOutputToChannel 27 val 1` for temperature, `46 val 2` for humidity, and `101 enum 3` for battery state; suggested channel types are `Temperature_div10`, `Humidity`, and `ReadOnlyLowMidHigh` [#21836420][#21836447] For battery behavior, one user reported using flags 37 and 51, with reconnect times of 6–13 seconds, and the device still running fine after two months [#21837785]
Generated by the language model.
ADVERTISEMENT
  • #31 21891156
    io2345
    Level 9  
    Posts: 262
    Help: 1
    Rate: 6
    >>21891152 Tried that without further progress. Latest Flashtool also says "CheckRespond_FlashWrite4K: bad value returned?".
    What does it mean?

    I guess the Problem is this, right?:
    failed with serial.BytesToRead 0 (expected 15

    Hinzugefügt nach 1 [Stunden] 22 [Minuten]:

    @p.kaczmarek2 : Could you adress that to the developers? I put it in here: https://github.com/openshwprojects/BK7231GUIFlashTool/issues/21
  • ADVERTISEMENT
  • #33 21891237
    io2345
    Level 9  
    Posts: 262
    Help: 1
    Rate: 6
    >>21891223 Doesn't look promising either:

    [14:30:00] [INFO] CMD |C:\Users\Papa\Downloads\BKFIL\windows\bk_loader\bk_loader.dist\bk_loader.exe --initiator 1 --log_level 3 --log_path C:\Users\Papa\Downloads\BKFIL\data\log\bk_loader_log --flash_config_path_out C:\Users\Papa\Downloads\BKFIL\data\flutter_assets\assets\config\flash_config_out.yaml --bk_loader_config_path_out C:\Users\Papa\Downloads\BKFIL\data\flutter_assets\assets\config\bk_loader_config_out.yaml --bin_parser_path C:\Users\Papa\Downloads\BKFIL\data\flutter_assets\assets\config\bin_parser.yaml download -p COM7 -b 921600 --reset_baudrate 115200 --link_type 5 --reset_type 3 -i C:\Users\Papa\Downloads\OBK-FlasherBK7231_v313\firmwares\OpenBK7238_QIO_1.18.287.bin@0x0-0x132000 --pre_erase 1 --random_bin_path C:\Users\Papa\Downloads\BKFIL\data\random_bin\random.bin --reboot|
    [14:30:01] [WARN] 4.1.1.128
    [14:30:01] [WARN] comport: COM7
    [14:30:01] [WARN] link type: LINKCHECK.BOOTROM
    [14:30:01] [WARN] reset type: RESET_TYPE.MULTI
    [14:30:01] [WARN] getbus times: 100
    [14:30:01] [WARN] reboot: True
    [14:30:01] [WARN] link key: None
    [14:30:01] [WARN] work baudrate: 921600
    [14:30:01] [WARN] erase all: False
    [14:30:01] [INFO] Getting bus v2,specified LINKCHECK.BOOTROM...
    [14:30:01] [INFO] Get bus success, type: LINKCHECK.BOOTROM
    [14:30:02] [INFO] verifying chip product id...
    [14:30:02] [INFO] verifying chip product id OK.
    [14:30:02] [INFO] parse flash info...
    [14:30:02] [INFO] flash mid is 0x152085
    [14:30:02] [INFO] check BKAESRDM words in flash...
    [14:30:02] [INFO] check BKAESRDM words in flash OK.
    [14:30:02] [INFO] unprotect flash...
    [14:30:02] [INFO] unprotect flash OK.
    [14:30:02] [INFO] align start/end address...
    [14:30:02] [INFO] original start address: 0x0, length: 0x132000, aligned start address: 0x0, length: 0x132000,subsequent processing will be done using the aligned version of start address and length.
    [14:30:02] [INFO] set baudrate to 921600...
    [14:30:02] [INFO] [0] erase flash.
    [14:30:02] [INFO] [0] start: 0x0.
    [14:30:02] [INFO] [0] length: 0x132000.
    [14:30:02] [INFO] erase start address @0x0, end address @0x132000.
    [14:30:02] [INFO] DEVICE: BK, Status: Erasing Flash, Progress: 0
    [14:30:02] [INFO] DEVICE: BK, Status: Erasing Flash, Progress: 5
    [14:30:02] [INFO] DEVICE: BK, Status: Erasing Flash, Progress: 10
    [14:30:02] [INFO] DEVICE: BK, Status: Erasing Flash, Progress: 15
    [14:30:03] [INFO] DEVICE: BK, Status: Erasing Flash, Progress: 20
    [14:30:03] [INFO] DEVICE: BK, Status: Erasing Flash, Progress: 26
    [14:30:03] [INFO] DEVICE: BK, Status: Erasing Flash, Progress: 31
    [14:30:03] [INFO] DEVICE: BK, Status: Erasing Flash, Progress: 36
    [14:30:03] [INFO] DEVICE: BK, Status: Erasing Flash, Progress: 41
    [14:30:03] [INFO] DEVICE: BK, Status: Erasing Flash, Progress: 47
    [14:30:03] [INFO] DEVICE: BK, Status: Erasing Flash, Progress: 52
    [14:30:03] [INFO] DEVICE: BK, Status: Erasing Flash, Progress: 57
    [14:30:03] [INFO] DEVICE: BK, Status: Erasing Flash, Progress: 62
    [14:30:03] [INFO] DEVICE: BK, Status: Erasing Flash, Progress: 67
    [14:30:03] [INFO] DEVICE: BK, Status: Erasing Flash, Progress: 73
    [14:30:03] [INFO] DEVICE: BK, Status: Erasing Flash, Progress: 78
    [14:30:03] [INFO] DEVICE: BK, Status: Erasing Flash, Progress: 83
    [14:30:03] [INFO] DEVICE: BK, Status: Erasing Flash, Progress: 88
    [14:30:03] [INFO] DEVICE: BK, Status: Erasing Flash, Progress: 94
    [14:30:03] [INFO] DEVICE: BK, Status: Erasing Flash, Progress: 99
    [14:30:03] [INFO] end erase.
    [14:30:03] [INFO] [0] write flash.
    [14:30:03] [INFO] [0] start: 0x0.
    [14:30:03] [INFO] [0] length: 0x132000.
    [14:30:03] [INFO] write flash start @0x0, length: 0x132000
    [14:30:03] [INFO] DEVICE: BK, Status: Writing Flash, Progress: 0
    [14:30:04] [ERROR] Write sector @0x1000 fail, buf length: 0x1000
    [14:30:04] [INFO] write sector @0x1000 fail, retry
    [14:30:05] [ERROR] erase custom size fail @0x1000, size: 4096
    [14:30:05] [INFO] Getting bus v2,specified LINKCHECK.BOOTROM...
    [14:30:06] [INFO] Please reset the chip
    [14:30:06] [INFO] Waiting reset......
    [14:30:07] [INFO] Get bus success, type: LINKCHECK.BOOTROM
    [14:30:08] [ERROR] Write sector @0x1000 fail, buf length: 0x1000
    [14:30:08] [INFO] Getting bus v2,specified LINKCHECK.BOOTROM...
    [14:30:09] [INFO] Please reset the chip
    [14:30:09] [INFO] Waiting reset.....
    [14:30:11] [ERROR] Write sector @0x1000 fail, buf length: 0x1000
    [14:30:11] [INFO] Getting bus v2,specified LINKCHECK.BOOTROM...
    [14:30:12] [INFO] Please reset the chip
    [14:30:12] [INFO] Waiting reset......
    [14:30:14] [INFO] Get bus success, type: LINKCHECK.BOOTROM
    [14:30:15] [ERROR] Write sector @0x1000 fail, buf length: 0x1000
    [14:30:15] [INFO] Getting bus v2,specified LINKCHECK.BOOTROM...
    [14:30:15] [INFO] Please reset the chip
    [14:30:15] [INFO] Waiting reset......
    [14:30:17] [INFO] Get bus success, type: LINKCHECK.BOOTROM
    [14:30:18] [ERROR] Write sector @0x1000 fail, buf length: 0x1000
    [14:30:18] [INFO] Getting bus v2,specified LINKCHECK.BOOTROM...
    [14:30:19] [INFO] Please reset the chip
    [14:30:19] [INFO] Waiting reset......
    [14:30:20] [INFO] Get bus success, type: LINKCHECK.BOOTROM
    [14:30:21] [ERROR] Write sector @0x1000 fail, buf length: 0x1000
    [14:30:22] [ERROR] write sector @0x1000 by retry fail.
    [14:30:22] [ERROR] Write flash fail.
    [14:30:22] [INFO] do reboot from bootrom.
    [14:30:22] [ERROR] Download fail.
    [14:30:22] [INFO] Elapse time: 20.532138 seconds.
  • #34 21891334
    divadiow
    Level 38  
    Posts: 4911
    Help: 430
    Rate: 872
    maybe it's now just the TuyaMCU sending stuff to T1 RX that's getting in the way
  • #35 21891398
    io2345
    Level 9  
    Posts: 262
    Help: 1
    Rate: 6
    >>21891334 Surprisingly enough, that helped - thank you for suggesting. I detached MCUs pin 9 as well, and now I managed to flash - on the third attempt.
    Holy Moly, T1-3S is harder to defeat than CB-3S was.
  • #36 21894981
    io2345
    Level 9  
    Posts: 262
    Help: 1
    Rate: 6
    >>21891398 Must have wrecked the MCU while desoldering/resoldering connections. Connection to MQTT ok, but values are always zero.
  • #37 21895635
    divadiow
    Level 38  
    Posts: 4911
    Help: 430
    Rate: 872
    oh! is the MCU still sending to the T1-3S? Are the temp/hum values 0 in OBK too?
  • ADVERTISEMENT
  • #38 21895785
    io2345
    Level 9  
    Posts: 262
    Help: 1
    Rate: 6
    >>21895635 The device is flashed to OBK. I assume that the T1-3S module transmits what it receives, but the MCU does not send data. But it might have a different reason for malfunctioning as well...
    After inserting the battery the display shows reasonable temperature- and humidity-values, but the WiFi-symbol keeps running for some minutes, then stops. The OBK-page shows

    TH03 Pro Temperature Humidity Sensor Compatibility with OpenBeken Integration (possibly)

    The log on the Webpage shows this while the WiFi symbol is running and stops after that:

    Info:MAIN:Main_Init_Before_Delay
    Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 10 changes count.
    Info:NTP:CLOCK driver initialized.
    Error:CMD:no file early.bat err -2
    Info:GEN:PIN_SetupPins pins have been set up.
    Info:MAIN:Main_Init_Before_Delay done
    Info:MAIN:Main_Init_Delay
    Info:MAIN:Main_Init_Delay done
    Info:MAIN:Main_Init_After_Delay
    Info:MAIN:Using SSID [Wifi2800]
    Info:MAIN:Using Pass [Password]
    Info:MQTT:MQTT_RegisterCallback called for bT TH03Pro5/ subT TH03Pro5/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT TH03Pro5/ subT TH03Pro5/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/TH03Pro5/ subT cmnd/TH03Pro5/+
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/TH03Pro5/ subT cmnd/TH03Pro5/+
    Info:MQTT:MQTT_RegisterCallback called for bT TH03Pro5/ subT TH03Pro5/+/get
    Info:MQTT:MQTT_RegisterCallback called for bT homeassistant/ subT homeassistant/+
    Info:CMD:CMD_StartScript: started @startup at the beginning
    Info:CMD:CMD_StartScript: started autoexec.bat at the beginning
    Info:MAIN:Main_Init_After_Delay done
    Info:HTTP:TCP server listening
    Info:MAIN:Starting TuyaMCU.
    Info:MAIN:Started TuyaMCU.
    Info:MAIN:Starting tmSensor.
    Info:MAIN:Started tmSensor.
    Info:GEN:Channel 1 type changed to Temperature_div10
    Info:GEN:Channel 2 type changed to Humidity
    Info:GEN:Channel 3 type changed to ReadOnlyLowMidHigh
    Info:MAIN:Time 1, idle 539922/s, free 127368, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 01 00 37 7B 22 70 22 3A 22 78 65 61 67 69 6D 61 6E 74 62 37 64 37 61 70 62 22 2C 22 76 22 3A 22 31 2E 30 2E 30 22 2C 22 6D 22 3A 30 2C 22 6E 22 3A 31 2C 22 73 6D 22 3A 30 7D 24 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 1 (QueryProductInformation) len 62
    Info:TuyaMCU:ParseQueryProductInformation: received {"p":"xeagimantb7d7apb","v":"1.0.0","m":0,"n":1,"sm":0}
    Info:MAIN:Time 2, idle 382143/s, free 127368, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 3, idle 382552/s, free 127368, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 4, idle 383264/s, free 127368, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 5, idle 382552/s, free 127368, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:WiFi SSID: waiting for SSID switch 1/3 (using SSID1)
    Info:MAIN:Registered for wifi changes
    Info:MAIN:Connecting to SSID [Wifi2800]
    Info:MAIN:Time 6, idle 0/s, free 119512, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Boot complete time reached (5 seconds)
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_DISCONNECTED - 2
    Info:MAIN:Time 7, idle 382677/s, free 120760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 8, idle 412486/s, free 120760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 9, idle 413060/s, free 120760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 10, idle 413077/s, free 120760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=0.0.0.0 gate=0.0.0.0 mask=0.0.0.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 0, softap: 0, b/g/n
    Info:MAIN:Time 11, idle 409866/s, free 120760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:WiFi SSID: waiting for SSID switch 2/3 (using SSID1)
    Info:MAIN:Registered for wifi changes
    Info:MAIN:Connecting to SSID [Wifi2800]
    Info:MAIN:Time 12, idle 389640/s, free 119344, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
    Info:MAIN:Time 13, idle 333930/s, free 119512, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 02 00 00 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 2 (MCUconf) len 7
    Info:TuyaMCU:ProcessIncoming: TUYA_CMD_MCU_CONF, TODO!
    Info:MAIN:Time 14, idle 414276/s, free 119512, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:mqtt_userName mqtt
    mqtt_pass ********
    mqtt_clientID TH03Pro5
    mqtt_host 192.168.0.167:1883
    Info:MAIN:Time 15, idle 401456/s, free 113560, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:mqtt_connection_cb: Successfully connected
    Info:MQTT:mqtt_subscribed to TH03Pro5/+/set
    Info:MQTT:mqtt_subscribed to TH03Pro5/+/set
    Info:MQTT:mqtt_subscribed to cmnd/TH03Pro5/+
    Info:MQTT:mqtt_subscribed to cmnd/TH03Pro5/+
    Info:MQTT:mqtt_subscribed to TH03Pro5/+/get
    Info:MQTT:mqtt_subscribed to homeassistant/+
    Info:MAIN:Time 16, idle 405086/s, free 113856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 02 00 00 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 2 (MCUconf) len 7
    Info:TuyaMCU:ProcessIncoming: TUYA_CMD_MCU_CONF, TODO!
    Info:MAIN:Time 17, idle 409946/s, free 113856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 18, idle 419976/s, free 103880, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 19, idle 418713/s, free 113856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 20, idle 415459/s, free 113856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.212 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-78,ssid=Wifi2800,bssid=2c:3a:fd:ce:a8:2e,channel=13,cipher_type:CCMP
    Info:MAIN:Time 21, idle 418849/s, free 113768, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 22, idle 409592/s, free 113856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 23, idle 405175/s, free 113856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 24, idle 386895/s, free 113856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 25, idle 379523/s, free 112184, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 26, idle 388993/s, free 113184, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 27, idle 384770/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 28, idle 384073/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 29, idle 766095/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 30, idle 404864/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.212 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-79,ssid=Wifi2800,bssid=2c:3a:fd:ce:a8:2e,channel=13,cipher_type:CCMP
    Info:MAIN:Time 31, idle 414341/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 32, idle 413855/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 33, idle 418839/s, free 114208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 34, idle 411517/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 35, idle 413895/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 36, idle 415385/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 37, idle 409605/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 38, idle 415694/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 39, idle 415892/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 40, idle 410959/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.212 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-79,ssid=Wifi2800,bssid=2c:3a:fd:ce:a8:2e,channel=13,cipher_type:CCMP
    Info:MAIN:Time 41, idle 418260/s, free 113184, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 42, idle 414484/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 43, idle 414413/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 44, idle 411910/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 45, idle 415468/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 46, idle 416033/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 47, idle 417401/s, free 113184, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 48, idle 415739/s, free 113184, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 49, idle 419635/s, free 113184, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 50, idle 418077/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.212 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-79,ssid=Wifi2800,bssid=2c:3a:fd:ce:a8:2e,channel=13,cipher_type:CCMP
    Info:MAIN:Time 51, idle 407388/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 52, idle 415347/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 53, idle 407634/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 54, idle 405441/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 55, idle 410448/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 56, idle 408258/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 57, idle 398584/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 58, idle 400547/s, free 113184, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 59, idle 405779/s, free 113184, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 60, idle 405814/s, free 113184, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.212 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-79,ssid=Wifi2800,bssid=2c:3a:fd:ce:a8:2e,channel=13,cipher_type:CCMP
    Info:MAIN:Time 61, idle 411535/s, free 113184, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 62, idle 403109/s, free 113184, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 63, idle 411607/s, free 113184, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 64, idle 409185/s, free 113184, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 65, idle 404575/s, free 113184, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 66, idle 398687/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 67, idle 399620/s, free 101848, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 68, idle 416026/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 69, idle 400954/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 70, idle 416931/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.212 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-79,ssid=Wifi2800,bssid=2c:3a:fd:ce:a8:2e,channel=13,cipher_type:CCMP
    Info:MAIN:Time 71, idle 404938/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 72, idle 407591/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 73, idle 403555/s, free 114768, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/24 
    Info:MAIN:Time 74, idle 416625/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing 2, socks 2/24 
    Info:MAIN:Time 75, idle 407262/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing 3, socks 2/24 
    Info:MAIN:Time 76, idle 419493/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing 4, socks 2/24 
    Info:MAIN:Time 77, idle 388996/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing 5, socks 2/24 
    Info:MAIN:Time 78, idle 404687/s, free 113184, MQTT 1(1), bWifi 1, secondsWithNoPing 6, socks 2/24 
    Info:MAIN:Time 79, idle 397467/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing 7, socks 2/24 
    Info:MAIN:Time 80, idle 378156/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing 8, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.212 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-79,ssid=Wifi2800,bssid=2c:3a:fd:ce:a8:2e,channel=13,cipher_type:CCMP
    Info:MAIN:Time 81, idle 381734/s, free 104448, MQTT 1(1), bWifi 1, secondsWithNoPing 9, socks 2/24 
    Info:MAIN:Time 82, idle 389021/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing 10, socks 2/24 
    Info:MAIN:Time 83, idle 393039/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing 11, socks 2/24 
    Info:MAIN:Time 84, idle 418323/s, free 113184, MQTT 1(1), bWifi 1, secondsWithNoPing 12, socks 2/24 
    Info:MAIN:Time 85, idle 410046/s, free 113184, MQTT 1(1), bWifi 1, secondsWithNoPing 13, socks 2/24 
    Info:MAIN:Time 86, idle 421530/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing 14, socks 2/24 
    Info:MAIN:Time 87, idle 412161/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing 15, socks 2/24 
    Info:MAIN:Time 88, idle 405010/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing 16, socks 2/24 
    Info:MAIN:Time 89, idle 402452/s, free 114856, MQTT 1(1), bWifi 1, secondsWithNoPing 17, socks 2/24 
    

    Once the symbol stops running, it does not start again

    Finally, that's what I have in my MQTT-Broker:


    TH03 Pro Temperature Humidity Sensor Compatibility with OpenBeken Integration (possibly)


    Maybe I will try to flash the original Tuya-Firmware, but I have no hope that this will change things.
  • #39 21897411
    io2345
    Level 9  
    Posts: 262
    Help: 1
    Rate: 6
    >>21895785 We have reached a point where things are beginning to be interesting. The device is working fine with original Tuya firmware:


    Screenshot of the “T & H Sensor” app showing 20.6°C temperature and 48% humidity

    What to do next? Stay on Tuya or re-flash OBK? And why is the CB-3S and T1-3S Version reacting differently? The circuit layout and PCB of the device is the same (as far as I can tell) and has the same identifier. So both Wifi-devices should do just the same, don't they?
  • #40 21901455
    io2345
    Level 9  
    Posts: 262
    Help: 1
    Rate: 6
    Are there any known issues so far, that CB-3S and T1-3S Version behave differently?
  • #41 21904019
    io2345
    Level 9  
    Posts: 262
    Help: 1
    Rate: 6
    To tell from the log on Tuyas developer page (following this guide Link), the dpIDs for temperature, humidity and battery state on this model should be 102, 103 and 104. Tried those channels in OBK, but they did give zeros as well.
    Finally broke off one leg of the MCU from multiple bending due to constantly changing from original firmware to OBK and back. So I can't solve the riddle :-/
  • #42 21904026
    insmod
    Level 31  
    Posts: 1364
    Help: 161
    Rate: 426
    Just as a test, try "tuyaMcu_sendQueryState" command
  • #43 21904036
    io2345
    Level 9  
    Posts: 262
    Help: 1
    Rate: 6
    Can't do it, as the MCUs TX leg is missing now.
    Just for curiosity: what does tuyaMcu_sendQueryState do?
  • ADVERTISEMENT
  • #44 21904037
    insmod
    Level 31  
    Posts: 1364
    Help: 161
    Rate: 426
    It requests all dpIds and their values from MCU
  • #45 21904078
    divadiow
    Level 38  
    Posts: 4911
    Help: 430
    Rate: 872
    You could potentially solder a tiny lead bridge from the MCU leg stub to the pad perhaps to repair?
  • ADVERTISEMENT
  • #46 21904109
    io2345
    Level 9  
    Posts: 262
    Help: 1
    Rate: 6
    divadiow wrote:
    You could potentially solder a tiny lead bridge from the MCU leg stub to the pad perhaps to repair?


    Sadly the leg broke off right at the housing of the MCU. And the pad in fact was the first part to vanish - had the leg soldered with a short wire to the big MCU_TX Pad on the board, which has direct connection to the RX-Connector of the Wifi-module.

    Hinzugefügt nach 3 [Stunden] 36 [Minuten]:

    >>21904109 What may happen, if you can't accept things:

    MCU with broken leg:


    TH03 Pro Temperature Humidity Sensor Compatibility with OpenBeken Integration (possibly)

    Mill-cut with small tip:


    TH03 Pro Temperature Humidity Sensor Compatibility with OpenBeken Integration (possibly)

    Only remove as much plastic as necessary to expose the inner wire. Carefully clean the rest with a knife:


    TH03 Pro Temperature Humidity Sensor Compatibility with OpenBeken Integration (possibly)

    Solder a wire to the inner line with as little heat as possible:


    TH03 Pro Temperature Humidity Sensor Compatibility with OpenBeken Integration (possibly)

    Hard to believe, but it works. So, let's continue the story :-)


    TH03 Pro Temperature Humidity Sensor Compatibility with OpenBeken Integration (possibly)

    =================================================================================
    =================================================================================

    Hinzugefügt nach 29 [Minuten]:

    Before wrecking things again, I did some sniffing on the Tuya firmware communication:

    Sent by WiFi module:
    55 AA   03   00      00 01   01   04   
    HEADER   VER=03   Heartbeat      LEN   01   CHK   
    
    Sent by WiFi module:
    55 AA   03   01      00 37   7B2270223A2278656167696D616E7462376437617062222C2276223A22312E302E30222C226D223A302C226E223A312C22736D223A307D   24   
    HEADER   VER=03   Product      LEN   {"p":"xeagimantb7d7apb","v":"1.0.0","m":0,"n":1,"sm":0}   CHK   
    
    Sent by WiFi module:
    55 AA   03   02      00 00      04   
    HEADER   VER=03   McuConf      LEN      CHK   
    
    Sent by WiFi module:
    55 AA   03   03      00 00      05   
    HEADER   VER=03   WifiState      LEN      CHK   
    
    Sent by WiFi module:
    55 AA   03   22      00 15   66020004000000FA67020004000000576804000102   D2   
    HEADER   VER=03   Unk      LEN   66020004000000FA67020004000000576804000102   CHK



    But I manage only to sniff one of the lines and don't get any response on the other line. Ideas?
  • #47 21904259
    insmod
    Level 31  
    Posts: 1364
    Help: 161
    Rate: 426
    Heartbeat?
    This means that it's using default protocol, not low power one.
    You must remove "startdriver tmSensor" from autoexec.
  • #48 21904363
    io2345
    Level 9  
    Posts: 262
    Help: 1
    Rate: 6
    >>21904109 Finally managed to get the other line as well, Tuya firware still:

    Received by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Received by WiFi module:
    55 AA   00   01      00 00      00   
    HEADER   VER=00   Product      LEN      CHK   
    
    Received by WiFi module:
    55 AA   00   02      00 00      01   
    HEADER   VER=00   McuConf      LEN      CHK   
    
    Received by WiFi module:
    55 AA   00   03      00 01   04   07   
    HEADER   VER=00   WifiState      LEN   04   CHK   
    
    Received by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Received by WiFi module:
    55 AA   00   24      00 01   CE   F2   
    HEADER   VER=00   Unk      LEN   CE   CHK   
    
    Received by WiFi module:
    55 AA   00   23      00 01   01   24   
    HEADER   VER=00   Unk      LEN   01   CHK


    Hinzugefügt nach 1 [Stunden] 2 [Minuten]:

    insmod wrote:
    Just as a test, try "tuyaMcu_sendQueryState" command


    How to use that command?
    If I enter it on the webpage in CONFIG -> EXECUTE CUSTOM COMMAND it says "Error:CMD:cmd tuyaMcu_sendQueryState NOT found (args )
    Unknown command"
  • #49 21904437
    insmod
    Level 31  
    Posts: 1364
    Help: 161
    Rate: 426
    >>21904363
    Is TuyaMCU driver started?
    It should be registered on driver init.
  • #50 21904445
    io2345
    Level 9  
    Posts: 262
    Help: 1
    Rate: 6
    No, device is recently flashed with OBK. I only configured it to use the home Wifi.
    Alright, I have to create an autoexec.bat and start TuyaMCU driver by entering "startDriver TuyaMCU". Anything else?
  • #51 21904450
    insmod
    Level 31  
    Posts: 1364
    Help: 161
    Rate: 426
    For now, nothing.
    Check log after ~60 seconds, add tuyaMcu_sendQueryState after startdriver if there's still nothing.
  • #52 21904547
    io2345
    Level 9  
    Posts: 262
    Help: 1
    Rate: 6
    Full dual OBK-log (from boot until module deactivates itself) using MCU_Analyzer:

    Received by WiFi module:
    55 AA   03   00      00 01   00   03   
    HEADER   VER=03   Heartbeat      LEN   00   CHK   
    
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Sent by WiFi module:
    55 AA   00   01      00 00      00   
    HEADER   VER=00   Product      LEN      CHK   
    
    Received by WiFi module:
    55 AA   03   01      00 37   7B2270223A2278656167696D616E7462376437617062222C2276223A22312E302E30222C226D223A302C226E223A312C22736D223A307D   24   
    HEADER   VER=03   Product      LEN   {"p":"xeagimantb7d7apb","v":"1.0.0","m":0,"n":1,"sm":0}   CHK   
    
    Received by WiFi module:
    55 AA   03   02      00 00      04   
    HEADER   VER=03   McuConf      LEN      CHK   
    
    Sent by WiFi module:
    55 AA   00   02      00 00      01   
    HEADER   VER=00   McuConf      LEN      CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Received by WiFi module:
    55 AA   03   00      00 01   01   04   
    HEADER   VER=03   Heartbeat      LEN   01   CHK   
    
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Received by WiFi module:
    55 AA   03   03      00 00      05   
    HEADER   VER=03   WifiState      LEN      CHK   
    
    Sent by WiFi module:
    55 AA   00   03      00 01   00   03   
    HEADER   VER=00   WifiState      LEN   00   CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Received by WiFi module:
    55 AA   03   00      00 01   01   04   
    HEADER   VER=03   Heartbeat      LEN   01   CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Received by WiFi module:
    55 AA   03   00      00 01   01   04   
    HEADER   VER=03   Heartbeat      LEN   01   CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Received by WiFi module:
    55 AA   03   00      00 01   01   04   
    HEADER   VER=03   Heartbeat      LEN   01   CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Received by WiFi module:
    55 AA   03   00      00 01   01   04   
    HEADER   VER=03   Heartbeat      LEN   01   CHK   
    
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Received by WiFi module:
    55 AA   03   00      00 01   01   04   
    HEADER   VER=03   Heartbeat      LEN   01   CHK   
    
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Received by WiFi module:
    55 AA   03   00      00 01   01   04   
    HEADER   VER=03   Heartbeat      LEN   01   CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Received by WiFi module:
    55 AA   03   00      00 01   01   04   
    HEADER   VER=03   Heartbeat      LEN   01   CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Received by WiFi module:
    55 AA   03   00      00 01   01   04   
    HEADER   VER=03   Heartbeat      LEN   01   CHK   
    
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Received by WiFi module:
    55 AA   03   00      00 01   01   04   
    HEADER   VER=03   Heartbeat      LEN   01   CHK   
    
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Received by WiFi module:
    55 AA   03   00      00 01   01   04   
    HEADER   VER=03   Heartbeat      LEN   01   CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Received by WiFi module:
    55 AA   03   00      00 01   01   04   
    HEADER   VER=03   Heartbeat      LEN   01   CHK   
    
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Received by WiFi module:
    55 AA   03   00      00 01   01   04   
    HEADER   VER=03   Heartbeat      LEN   01   CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Received by WiFi module:
    55 AA   03   00      00 01   01   04   
    HEADER   VER=03   Heartbeat      LEN   01   CHK   
    
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Received by WiFi module:
    55 AA   03   00      00 01   01   04   
    HEADER   VER=03   Heartbeat      LEN   01   CHK   
    
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Received by WiFi module:
    55 AA   03   00      00 01   01   04   
    HEADER   VER=03   Heartbeat      LEN   01   CHK   
    
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Received by WiFi module:
    55 AA   03   00      00 01   01   04   
    HEADER   VER=03   Heartbeat      LEN   01   CHK   
    
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Received by WiFi module:
    55 AA   03   00      00 01   01   04   
    HEADER   VER=03   Heartbeat      LEN   01   CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Received by WiFi module:
    55 AA   03   00      00 01   01   04   
    HEADER   VER=03   Heartbeat      LEN   01   CHK   
    
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Received by WiFi module:
    55 AA   03   00      00 01   01   04   
    HEADER   VER=03   Heartbeat      LEN   01   CHK   
    
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Received by WiFi module:
    55 AA   03   00      00 01   01   04   
    HEADER   VER=03   Heartbeat      LEN   01   CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Received by WiFi module:
    55 AA   03   00      00 01   01   04   
    HEADER   VER=03   Heartbeat      LEN   01   CHK   
    
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK   
    
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    
    Received by WiFi module:
    55 AA   03   00      00 01   01   04   
    HEADER   VER=03   Heartbeat      LEN   01   CHK   
    
    Sent by WiFi module:
    55 AA   00   08      00 00      07   
    HEADER   VER=00   QueryInitStatus      LEN   INVALID date         CHK



    Log of the Web Application, starting from boot, then sending tuyaMCU_SendQueryState,:

    Info:MAIN:Main_Init_Before_Delay
    Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 2 changes count.
    Info:NTP:CLOCK driver initialized.
    Error:CMD:no file early.bat err -2
    Info:GEN:PIN_SetupPins pins have been set up.
    Info:MAIN:Main_Init_Before_Delay done
    Info:MAIN:Main_Init_Delay
    Info:MAIN:Main_Init_Delay done
    Info:MAIN:Main_Init_After_Delay
    Info:MAIN:Using SSID [WiFi2800]
    Info:MAIN:Using Pass [password]
    Info:MQTT:MQTT_RegisterCallback called for bT obk8C428848/ subT obk8C428848/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT obks/ subT obks/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/obk8C428848/ subT cmnd/obk8C428848/+
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/obks/ subT cmnd/obks/+
    Info:MQTT:MQTT_RegisterCallback called for bT obk8C428848/ subT obk8C428848/+/get
    Info:MQTT:MQTT_RegisterCallback called for bT homeassistant/ subT homeassistant/+
    Info:CMD:CMD_StartScript: started @startup at the beginning
    Info:CMD:CMD_StartScript: started autoexec.bat at the beginning
    Info:MAIN:Main_Init_After_Delay done
    Info:HTTP:TCP server listening
    Info:MAIN:Starting TuyaMCU.
    Info:MAIN:Started TuyaMCU.
    Info:MAIN:Time 1, idle 572285/s, free 128024, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 00 03 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 2, idle 411080/s, free 128024, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 01 00 37 7B 22 70 22 3A 22 78 65 61 67 69 6D 61 6E 74 62 37 64 37 61 70 62 22 2C 22 76 22 3A 22 31 2E 30 2E 30 22 2C 22 6D 22 3A 30 2C 22 6E 22 3A 31 2C 22 73 6D 22 3A 30 7D 24 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 1 (QueryProductInformation) len 62
    Info:TuyaMCU:ParseQueryProductInformation: received {"p":"xeagimantb7d7apb","v":"1.0.0","m":0,"n":1,"sm":0}
    Info:MAIN:Time 3, idle 377684/s, free 128024, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 02 00 00 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 2 (MCUconf) len 7
    Info:TuyaMCU:ProcessIncoming: TUYA_CMD_MCU_CONF, TODO!
    Info:MAIN:Time 4, idle 383318/s, free 128024, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 5, idle 383019/s, free 128024, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Registered for wifi changes
    Info:MAIN:Connecting to SSID [WiFi2800]
    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 0/s, free 120168, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Boot complete time reached (5 seconds)
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
    Info:MAIN:Time 7, idle 320775/s, free 121200, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 03 00 00 05 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 3 (WiFiState) len 7
    Info:MAIN:Time 8, idle 411878/s, free 121200, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:mqtt_host empty, not starting mqtt
    Info:MAIN:Time 9, idle 410601/s, free 115632, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Error:HTTP:http_fn_cmd_tool: len 22
    Info:MAIN:Time 10, idle 404842/s, free 107328, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.18 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-60,ssid=WiFi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MAIN:Time 11, idle 415673/s, free 115632, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 12, idle 404727/s, free 115632, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 13, idle 412656/s, free 103008, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    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 406382/s, free 107328, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 15, idle 406509/s, free 115632, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 16, idle 413157/s, free 115632, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 17, idle 406679/s, free 115632, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 398606/s, free 115632, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 19, idle 412776/s, free 115632, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 20, idle 405055/s, free 115632, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.18 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-59,ssid=WiFi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MAIN:Time 21, idle 405344/s, free 107328, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 406809/s, free 114984, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 23, idle 416301/s, free 115632, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 24, idle 407067/s, free 115632, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:mqtt_host empty, not starting mqtt
    Info:MAIN:Time 25, idle 415560/s, free 115632, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 414067/s, free 115632, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 27, idle 409640/s, free 115544, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 28, idle 405992/s, free 115632, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 29, idle 407566/s, free 115632, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 412304/s, free 105656, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.18 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-59,ssid=WiFi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MAIN:Time 31, idle 406314/s, free 115632, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 32, idle 411150/s, free 115632, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 33, idle 414069/s, free 115632, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 408189/s, free 115632, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 35, idle 408115/s, free 115632, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 36, idle 423003/s, free 115632, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 37, idle 402156/s, free 115632, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 414918/s, free 113960, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 39, idle 417184/s, free 115632, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 40, idle 411735/s, free 115632, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.18 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-60,ssid=WiFi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MQTT:mqtt_host empty, not starting mqtt
    Info:MAIN:Time 41, idle 409189/s, free 115632, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 422559/s, free 115632, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 43, idle 390070/s, free 115632, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 44, idle 386403/s, free 115632, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 45, idle 391703/s, free 115632, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 387492/s, free 115632, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 47, idle 393434/s, free 113960, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 48, idle 382371/s, free 115632, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 49, idle 381178/s, free 115632, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 393699/s, free 113960, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.18 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-60,ssid=WiFi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MAIN:Time 51, idle 410590/s, free 115632, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 52, idle 405212/s, free 115632, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 53, idle 410297/s, free 114984, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 3/24 
    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 414601/s, free 115632, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 55, idle 417449/s, free 115632, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 56, idle 417251/s, free 113960, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:mqtt_host empty, not starting mqtt
    Info:MAIN:Time 57, idle 407060/s, free 115632, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 408033/s, free 115632, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 59, idle 406369/s, free 113960, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 60, idle 411673/s, free 115632, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.18 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-59,ssid=WiFi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MAIN:Time 61, idle 408443/s, free 115632, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 414723/s, free 114984, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 63, idle 422059/s, free 115632, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 64, idle 418838/s, free 113960, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 65, idle 412163/s, free 115632, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 416723/s, free 115632, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 67, idle 415339/s, free 115632, MQTT 0(4), bWifi 1, secondsWithNoPing 1, socks 2/24 
    Info:MAIN:Time 68, idle 418626/s, free 115632, MQTT 0(4), bWifi 1, secondsWithNoPing 2, socks 2/24 
    Info:MAIN:Time 69, idle 398102/s, free 115632, MQTT 0(4), bWifi 1, secondsWithNoPing 3, socks 2/24 
    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 418423/s, free 115424, MQTT 0(4), bWifi 1, secondsWithNoPing 4, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.18 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-60,ssid=WiFi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MAIN:Time 71, idle 408152/s, free 115632, MQTT 0(4), bWifi 1, secondsWithNoPing 5, socks 2/24 
    Info:MAIN:Time 72, idle 384421/s, free 115632, MQTT 0(4), bWifi 1, secondsWithNoPing 6, socks 2/24 
    Info:MQTT:mqtt_host empty, not starting mqtt
    Info:MAIN:Time 73, idle 391094/s, free 113960, MQTT 0(5), bWifi 1, secondsWithNoPing 7, socks 2/24 
    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 384446/s, free 115632, MQTT 0(5), bWifi 1, secondsWithNoPing 8, socks 2/24 
    Info:MAIN:Time 75, idle 378205/s, free 115632, MQTT 0(5), bWifi 1, secondsWithNoPing 9, socks 2/24 
    Info:MAIN:Time 76, idle 383515/s, free 115632, MQTT 0(5), bWifi 1, secondsWithNoPing 10, socks 2/24 
    Info:MAIN:Time 77, idle 374524/s, free 115632, MQTT 0(5), bWifi 1, secondsWithNoPing 11, socks 2/24 
    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 382061/s, free 115632, MQTT 0(5), bWifi 1, secondsWithNoPing 12, socks 2/24 
    Info:MAIN:Time 79, idle 387291/s, free 115632, MQTT 0(5), bWifi 1, secondsWithNoPing 13, socks 2/24 
    Info:MAIN:Time 80, idle 390507/s, free 115632, MQTT 0(5), bWifi 1, secondsWithNoPing 14, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.18 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-58,ssid=WiFi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MAIN:Time 81, idle 395736/s, free 115632, MQTT 0(5), bWifi 1, secondsWithNoPing 15, socks 2/24 
    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 380095/s, free 113960, MQTT 0(5), bWifi 1, secondsWithNoPing 16, socks 2/24 
    Info:MAIN:Time 83, idle 382563/s, free 115632, MQTT 0(5), bWifi 1, secondsWithNoPing 17, socks 2/24 
    Info:MAIN:Time 84, idle 381148/s, free 115632, MQTT 0(5), bWifi 1, secondsWithNoPing 18, socks 2/24 
    Info:MAIN:Time 85, idle 381174/s, free 115632, MQTT 0(5), bWifi 1, secondsWithNoPing 19, socks 2/24 
    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 387484/s, free 115632, MQTT 0(5), bWifi 1, secondsWithNoPing 20, socks 2/24 
    Info:MAIN:Time 87, idle 388290/s, free 115632, MQTT 0(5), bWifi 1, secondsWithNoPing 21, socks 2/24 
    Info:MAIN:Time 88, idle 384344/s, free 115632, MQTT 0(5), bWifi 1, secondsWithNoPing 22, socks 2/24 
    Info:MQTT:mqtt_host empty, not starting mqtt
    Info:MAIN:Time 89, idle 387157/s, free 115632, MQTT 0(6), bWifi 1, secondsWithNoPing 23, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 90, idle 394864/s, free 113960, MQTT 0(6), bWifi 1, secondsWithNoPing 24, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.18 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-59,ssid=WiFi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MAIN:Time 91, idle 390775/s, free 115632, MQTT 0(6), bWifi 1, secondsWithNoPing 25, socks 2/24 
    Info:MAIN:Time 92, idle 409669/s, free 115632, MQTT 0(6), bWifi 1, secondsWithNoPing 26, socks 2/24 
    Info:MAIN:Time 93, idle 408178/s, free 115632, MQTT 0(6), bWifi 1, secondsWithNoPing 27, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 94, idle 402101/s, free 115632, MQTT 0(6), bWifi 1, secondsWithNoPing 28, socks 2/24 
    Info:MAIN:Time 95, idle 406085/s, free 115632, MQTT 0(6), bWifi 1, secondsWithNoPing 29, socks 2/24 
    Info:MAIN:Time 96, idle 415949/s, free 115632, MQTT 0(6), bWifi 1, secondsWithNoPing 30, socks 2/24  


    Does it tell us anything?

    Hinzugefügt nach 21 [Minuten]:

    I changed now autoexec.bat to the supposed values (according to TuyaDevelopersPage-Log):

    startDriver TuyaMCU
    
    setChannelLabel 1 "Temperatur"
    setChannelLabel 2 "Luftfeuchte"
    setChannelLabel 3 "Batterie"
    
    setChannelType 1 Temperature_div10
    linkTuyaMCUOutputToChannel 102 val 1
    setChannelType 2 Humidity
    linkTuyaMCUOutputToChannel 103 val 2
    setChannelType 3 ReadOnlyLowMidHigh
    linkTuyaMCUOutputToChannel 104 enum 3


    Readings are still zero

    Hinzugefügt nach 4 [Minuten]:

    One might get the impression, that this MCU-Type is using some additional technique in cojunction with T1-module - is it supposed to avoid people from flashing devices with alternative firmware?
  • #53 21904601
    insmod
    Level 31  
    Posts: 1364
    Help: 161
    Rate: 426
    Doubt it, probably just some new additions to protocol.
    I see that module receives 3 unknown commands, 22, 23 and 24.
    Add "tuyaMcu_defWiFiState 4" after startdriver, if it doesn't help - change 4 to 5.
  • #54 21904633
    io2345
    Level 9  
    Posts: 262
    Help: 1
    Rate: 6
    Tried it with this autoexec.bat:

    startDriver TuyaMCU
    tuyaMcu_defWiFiState 4
    tuyaMcu_sendQueryState

    And the Log was:

    Info:MAIN:Main_Init_Before_Delay
    Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 3 changes count.
    Info:NTP:CLOCK driver initialized.
    Error:CMD:no file early.bat err -2
    Info:GEN:PIN_SetupPins pins have been set up.
    Info:MAIN:Main_Init_Before_Delay done
    Info:MAIN:Main_Init_Delay
    Info:MAIN:Main_Init_Delay done
    Info:MAIN:Main_Init_After_Delay
    Info:MAIN:Using SSID [WiFi2800]
    Info:MAIN:Using Pass [password]
    Info:MQTT:MQTT_RegisterCallback called for bT obk8C428848/ subT obk8C428848/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT obks/ subT obks/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/obk8C428848/ subT cmnd/obk8C428848/+
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/obks/ subT cmnd/obks/+
    Info:MQTT:MQTT_RegisterCallback called for bT obk8C428848/ subT obk8C428848/+/get
    Info:MQTT:MQTT_RegisterCallback called for bT homeassistant/ subT homeassistant/+
    Info:CMD:CMD_StartScript: started @startup at the beginning
    Info:CMD:CMD_StartScript: started autoexec.bat at the beginning
    Info:MAIN:Main_Init_After_Delay done
    Info:HTTP:TCP server listening
    Info:MAIN:Starting TuyaMCU.
    Info:MAIN:Started TuyaMCU.
    Info:MAIN:Time 1, idle 571230/s, free 127968, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 00 03 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 2, idle 408418/s, free 127968, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 01 00 37 7B 22 70 22 3A 22 78 65 61 67 69 6D 61 6E 74 62 37 64 37 61 70 62 22 2C 22 76 22 3A 22 31 2E 30 2E 30 22 2C 22 6D 22 3A 30 2C 22 6E 22 3A 31 2C 22 73 6D 22 3A 30 7D 24 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 1 (QueryProductInformation) len 62
    Info:TuyaMCU:ParseQueryProductInformation: received {"p":"xeagimantb7d7apb","v":"1.0.0","m":0,"n":1,"sm":0}
    Info:MAIN:Time 3, idle 381098/s, free 127968, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 02 00 00 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 2 (MCUconf) len 7
    Info:TuyaMCU:ProcessIncoming: TUYA_CMD_MCU_CONF, TODO!
    Info:MAIN:Time 4, idle 382545/s, free 127968, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 5, idle 382592/s, free 127968, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Registered for wifi changes
    Info:MAIN:Connecting to SSID [WiFi2800]
    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 0/s, free 120128, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Boot complete time reached (5 seconds)
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4


    Then the log suddenly stopped.
    I will try again without "tuyaMcu_sendQueryState"

    Hinzugefügt nach 30 [Minuten]:

    Full Log with this autoexec.bat

    startDriver TuyaMCU
    tuyaMcu_defWiFiState 4

    can't be done. If this entry is in autoexec.bat, the device seems to hang upon reboot. You only have 4 or 5 seconds to do a lfs_format on command line, to get rid of it again.


    with "tuyaMcu_defWiFiState 5" I get a log, though:

    
    Info:MAIN:Main_Init_Before_Delay
    Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 3 changes count.
    Info:NTP:CLOCK driver initialized.
    Error:CMD:no file early.bat err -2
    Info:GEN:PIN_SetupPins pins have been set up.
    Info:MAIN:Main_Init_Before_Delay done
    Info:MAIN:Main_Init_Delay
    Info:MAIN:Main_Init_Delay done
    Info:MAIN:Main_Init_After_Delay
    Info:MAIN:Using SSID [WiFi2800]
    Info:MAIN:Using Pass [password]
    Info:MQTT:MQTT_RegisterCallback called for bT obk8C428848/ subT obk8C428848/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT obks/ subT obks/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/obk8C428848/ subT cmnd/obk8C428848/+
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/obks/ subT cmnd/obks/+
    Info:MQTT:MQTT_RegisterCallback called for bT obk8C428848/ subT obk8C428848/+/get
    Info:MQTT:MQTT_RegisterCallback called for bT homeassistant/ subT homeassistant/+
    Info:CMD:CMD_StartScript: started @startup at the beginning
    Info:CMD:CMD_StartScript: started autoexec.bat at the beginning
    Info:MAIN:Main_Init_After_Delay done
    Info:HTTP:TCP server listening
    Info:MAIN:Starting TuyaMCU.
    Info:MAIN:Started TuyaMCU.
    Info:MAIN:Time 1, idle 554706/s, free 128000, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 00 03 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 2, idle 384500/s, free 128000, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 01 00 37 7B 22 70 22 3A 22 78 65 61 67 69 6D 61 6E 74 62 37 64 37 61 70 62 22 2C 22 76 22 3A 22 31 2E 30 2E 30 22 2C 22 6D 22 3A 30 2C 22 6E 22 3A 31 2C 22 73 6D 22 3A 30 7D 24 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 1 (QueryProductInformation) len 62
    Info:TuyaMCU:ParseQueryProductInformation: received {"p":"xeagimantb7d7apb","v":"1.0.0","m":0,"n":1,"sm":0}
    Info:MAIN:Time 3, idle 408094/s, free 128000, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 02 00 00 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 2 (MCUconf) len 7
    Info:TuyaMCU:ProcessIncoming: TUYA_CMD_MCU_CONF, TODO!
    Info:MAIN:Time 4, idle 417113/s, free 128000, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 5, idle 417016/s, free 128000, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Registered for wifi changes
    Info:MAIN:Connecting to SSID [WiFi2800]
    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 0/s, free 120160, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Boot complete time reached (5 seconds)
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
    Info:MAIN:Time 7, idle 323403/s, free 112872, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 03 00 00 05 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 3 (WiFiState) len 7
    Info:MAIN:Time 8, idle 381839/s, free 112872, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:mqtt_host empty, not starting mqtt
    Info:MAIN:Time 9, idle 387800/s, free 115608, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 391346/s, free 115608, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.18 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-56,ssid=WiFi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MAIN:Time 11, idle 390675/s, free 113936, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 12, idle 409667/s, free 102984, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 13, idle 411528/s, free 115608, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 409468/s, free 113936, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 15, idle 418050/s, free 115608, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 16, idle 424275/s, free 115608, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 17, idle 424076/s, free 115608, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 419217/s, free 115608, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 19, idle 412972/s, free 115608, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 20, idle 404757/s, free 115608, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.18 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-56,ssid=WiFi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MAIN:Time 21, idle 409087/s, free 115312, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 415100/s, free 115608, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 23, idle 416482/s, free 113936, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 24, idle 412232/s, free 115608, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:mqtt_host empty, not starting mqtt
    Info:MAIN:Time 25, idle 416538/s, free 115608, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 406406/s, free 115608, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 27, idle 417292/s, free 115608, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 28, idle 401327/s, free 115608, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 29, idle 414422/s, free 114960, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 3/24 
    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 415885/s, free 115608, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.18 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-57,ssid=WiFi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MAIN:Time 31, idle 422355/s, free 115608, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 32, idle 401401/s, free 115608, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 33, idle 416747/s, free 115608, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 403518/s, free 115608, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 35, idle 420140/s, free 115608, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 36, idle 399841/s, free 115608, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 37, idle 415536/s, free 115608, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 417777/s, free 115608, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 39, idle 416223/s, free 115608, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 40, idle 413326/s, free 115608, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.18 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-57,ssid=WiFi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MQTT:mqtt_host empty, not starting mqtt
    Info:MAIN:Time 41, idle 418035/s, free 115608, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 381714/s, free 115608, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 43, idle 392285/s, free 115608, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 44, idle 400846/s, free 115608, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 45, idle 399455/s, free 115608, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 412451/s, free 114960, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 47, idle 423522/s, free 115608, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 48, idle 409997/s, free 115608, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 49, idle 413416/s, free 115608, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 399624/s, free 115608, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.18 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-57,ssid=WiFi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MAIN:Time 51, idle 420118/s, free 115608, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 52, idle 417850/s, free 113936, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 53, idle 383914/s, free 115608, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 390914/s, free 115608, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 55, idle 395967/s, free 114960, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 56, idle 417345/s, free 115608, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:mqtt_host empty, not starting mqtt
    Info:MAIN:Time 57, idle 406874/s, free 115608, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 411249/s, free 113936, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 59, idle 418717/s, free 115608, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 60, idle 411209/s, free 115608, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.18 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-57,ssid=WiFi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MAIN:Time 61, idle 420939/s, free 115608, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 411720/s, free 115608, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 63, idle 405700/s, free 115608, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 64, idle 404640/s, free 115608, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 65, idle 392639/s, free 115608, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 371750/s, free 113936, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 67, idle 391800/s, free 115608, MQTT 0(4), bWifi 1, secondsWithNoPing 1, socks 2/24 
    Info:MAIN:Time 68, idle 382233/s, free 115608, MQTT 0(4), bWifi 1, secondsWithNoPing 2, socks 2/24 
    Info:MAIN:Time 69, idle 383652/s, free 113936, MQTT 0(4), bWifi 1, secondsWithNoPing 3, socks 2/24 
    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 398624/s, free 115608, MQTT 0(4), bWifi 1, secondsWithNoPing 4, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.18 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-56,ssid=WiFi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MAIN:Time 71, idle 405555/s, free 115608, MQTT 0(4), bWifi 1, secondsWithNoPing 5, socks 2/24 
    Info:MAIN:Time 72, idle 397340/s, free 115608, MQTT 0(4), bWifi 1, secondsWithNoPing 6, socks 2/24 
    Info:MQTT:mqtt_host empty, not starting mqtt
    Info:MAIN:Time 73, idle 411652/s, free 98352, MQTT 0(5), bWifi 1, secondsWithNoPing 7, socks 3/24 
    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 405218/s, free 115608, MQTT 0(5), bWifi 1, secondsWithNoPing 8, socks 2/24 
    Info:MAIN:Time 75, idle 411987/s, free 115608, MQTT 0(5), bWifi 1, secondsWithNoPing 9, socks 2/24 
    Info:MAIN:Time 76, idle 422531/s, free 115608, MQTT 0(5), bWifi 1, secondsWithNoPing 10, socks 2/24 
    Info:MAIN:Time 77, idle 420646/s, free 107304, MQTT 0(5), bWifi 1, secondsWithNoPing 11, socks 2/24 
    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 405902/s, free 115608, MQTT 0(5), bWifi 1, secondsWithNoPing 12, socks 2/24 
    Info:MAIN:Time 79, idle 408483/s, free 113936, MQTT 0(5), bWifi 1, secondsWithNoPing 13, socks 2/24 
    Info:MAIN:Time 80, idle 404795/s, free 115608, MQTT 0(5), bWifi 1, secondsWithNoPing 14, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.18 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-56,ssid=WiFi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MAIN:Time 81, idle 406561/s, free 115608, MQTT 0(5), bWifi 1, secondsWithNoPing 15, socks 2/24 
    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 413080/s, free 115608, MQTT 0(5), bWifi 1, secondsWithNoPing 16, socks 2/24 
    Info:MAIN:Time 83, idle 419466/s, free 115608, MQTT 0(5), bWifi 1, secondsWithNoPing 17, socks 2/24 
    Info:MAIN:Time 84, idle 407401/s, free 115608, MQTT 0(5), bWifi 1, secondsWithNoPing 18, socks 2/24 
    Info:MAIN:Time 85, idle 393768/s, free 115608, MQTT 0(5), bWifi 1, secondsWithNoPing 19, socks 2/24 
    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 393290/s, free 115608, MQTT 0(5), bWifi 1, secondsWithNoPing 20, socks 2/24 
    Info:MAIN:Time 87, idle 409624/s, free 115608, MQTT 0(5), bWifi 1, secondsWithNoPing 21, socks 2/24 
    Info:MAIN:Time 88, idle 402580/s, free 113936, MQTT 0(5), bWifi 1, secondsWithNoPing 22, socks 2/24 
    
    
    
  • #55 21904681
    insmod
    Level 31  
    Posts: 1364
    Help: 161
    Rate: 426
    Don't know how to proceed.
    Found this thread, same problem: https://www.elektroda.com/rtvforum/topic4167927.html

    This is the answer:
    Sent by WiFi module:
    55 AA   03   22      00 15   66020004000000FA67020004000000576804000102   D2   
    HEADER   VER=03   Unk      LEN   66020004000000FA67020004000000576804000102   CHK

    Datapoints aren't reported as is, they are send via command 22. And i think command 23 is the request?
    To check, enter "tuyaMcu_sendCmd 0x23 01"

    If i split the data and insert tuya header before data, i can get valid values
    55 AA   03   22      00 15   66020004000000FA67020004000000576804000102   D2   
    HEADER   VER=03   Unk      LEN   66020004000000FA67020004000000576804000102   CHK   
    
    55 AA   03   07      00 07   66 02 00 04 000000FA       FA   
    HEADER   VER=03   State      LEN   dpId=102 Val V=250   CHK   
    
    55 AA   03   07      00 07   67 02 00 04 00000057       57   
    HEADER   VER=03   State      LEN   dpId=103 Val V=87   CHK   
    
    55 AA   03   07      00 04   68 04 00 01 02       02   
    HEADER   VER=03   State      LEN   dpId=104 Enum V=2   CHK   


    OBK doesn't support it (yet?)

    @p.kaczmarek2
  • #56 21904738
    io2345
    Level 9  
    Posts: 262
    Help: 1
    Rate: 6
    insmod wrote:
    tuyaMcu_sendCmd 0x23 01


    Tried that, entering it on the Webpage under "Custom command". Response is simply "OK".

    If it is supposed to change something in the log, it should be in here:

    Info:MAIN:Main_Init_Before_Delay
    Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 3 changes count.
    Info:NTP:CLOCK driver initialized.
    Error:CMD:no file early.bat err -2
    Info:GEN:PIN_SetupPins pins have been set up.
    Info:MAIN:Main_Init_Before_Delay done
    Info:MAIN:Main_Init_Delay
    Info:MAIN:Main_Init_Delay done
    Info:MAIN:Main_Init_After_Delay
    Info:MAIN:Using SSID [Wifi2800]
    Info:MAIN:Using Pass [password]
    Info:MQTT:MQTT_RegisterCallback called for bT obk8C428848/ subT obk8C428848/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT obks/ subT obks/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/obk8C428848/ subT cmnd/obk8C428848/+
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/obks/ subT cmnd/obks/+
    Info:MQTT:MQTT_RegisterCallback called for bT obk8C428848/ subT obk8C428848/+/get
    Info:MQTT:MQTT_RegisterCallback called for bT homeassistant/ subT homeassistant/+
    Info:CMD:CMD_StartScript: started @startup at the beginning
    Info:CMD:CMD_StartScript: started autoexec.bat at the beginning
    Info:MAIN:Main_Init_After_Delay done
    Info:HTTP:TCP server listening
    Info:MAIN:Starting TuyaMCU.
    Info:MAIN:Started TuyaMCU.
    Info:MAIN:Time 1, idle 574102/s, free 128024, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 00 03 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 2, idle 416032/s, free 128024, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 01 00 37 7B 22 70 22 3A 22 78 65 61 67 69 6D 61 6E 74 62 37 64 37 61 70 62 22 2C 22 76 22 3A 22 31 2E 30 2E 30 22 2C 22 6D 22 3A 30 2C 22 6E 22 3A 31 2C 22 73 6D 22 3A 30 7D 24 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 1 (QueryProductInformation) len 62
    Info:TuyaMCU:ParseQueryProductInformation: received {"p":"xeagimantb7d7apb","v":"1.0.0","m":0,"n":1,"sm":0}
    Info:MAIN:Time 3, idle 405387/s, free 128024, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 02 00 00 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 2 (MCUconf) len 7
    Info:TuyaMCU:ProcessIncoming: TUYA_CMD_MCU_CONF, TODO!
    Info:MAIN:Time 4, idle 411782/s, free 128024, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 5, idle 411597/s, free 128024, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Registered for wifi changes
    Info:MAIN:Connecting to SSID [Wifi2800]
    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 0/s, free 120168, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Boot complete time reached (5 seconds)
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
    Info:MAIN:Time 7, idle 339161/s, free 121200, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 03 00 00 05 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 3 (WiFiState) len 7
    Info:MAIN:Time 8, idle 406303/s, free 121200, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:mqtt_host empty, not starting mqtt
    Info:MAIN:Time 9, idle 402004/s, free 115632, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 401911/s, free 106672, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:GEN:dhcp=0 ip=192.168.0.18 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-61,ssid=Wifi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MAIN:Time 11, idle 411853/s, free 115632, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 12, idle 412106/s, free 115632, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:CMD:[WebApp Cmd 'loglevel 3' Result] OK
    Info:MAIN:Time 13, idle 412756/s, free 115632, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 413278/s, free 115632, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Error:HTTP:http_fn_cmd_tool: len 23
    Info:MAIN:Time 15, idle 403832/s, free 115632, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 16, idle 409047/s, free 115632, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 17, idle 414412/s, free 115632, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 421176/s, free 115632, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 19, idle 413039/s, free 105656, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 20, idle 416987/s, free 115632, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.0.18 gate=192.168.0.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-62,ssid=Wifi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MAIN:Time 21, idle 416247/s, free 115632, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 413540/s, free 115632, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24


    Probably there's nothing I can do from my side, to get things done - a case for developers, I guess?
  • #57 21905129
    leonardojc
    Level 10  
    Posts: 7
    Were you able to resolve this?
    I have the same device, but I can't get it to send temperature and humidity data.
    Module: T1-3S with BK7238

    {"p":"1ugtmglvvnwlun4a","v":"1.0.0","m":0,"n":1,"sm":0}u
    units send only heartbeats and WiFiState, never cmd 34

    most relevant app log:
    Info:TuyaMCU:Received: 55 AA 03 90 00 03 02 17 18 C6
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 144 (Unknown) len 10

    
    Info:MAIN:Starting TuyaMCU.
    Info:MAIN:Started TuyaMCU.
    Info:GEN:Channel 1 type changed to Temperature_div10
    Info:GEN:Channel 2 type changed to Humidity
    Info:GEN:Channel 3 type changed to ReadOnlyLowMidHigh
    Error:CMD:LFS_ReadFile: lfs is absent
    Info:CMD:CMD_StartScript: failed to get file autoexec.bat
    Info:MAIN:Main_Init_After_Delay done
    Info:HTTP:TCP server listening
    Info:MAIN:Time 1, idle 574957/s, free 127352, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 00 03 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MAIN:Time 2, idle 414101/s, free 127352, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 01 00 37 7B 22 70 22 3A 22 31 75 67 74 6D 67 6C 76 76 6E 77 6C 75 6E 34 61 22 2C 22 76 22 3A 22 31 2E 30 2E 30 22 2C 22 6D 22 3A 30 2C 22 6E 22 3A 31 2C 22 73 6D 22 3A 30 7D 75 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 1 (QueryProductInformation) len 62
    Info:TuyaMCU:ParseQueryProductInformation: received {"p":"1ugtmglvvnwlun4a","v":"1.0.0","m":0,"n":1,"sm":0}
    Info:MAIN:Time 3, idle 382739/s, free 127352, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 02 00 00 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 2 (MCUconf) len 7
    Info:TuyaMCU:ProcessIncoming: TUYA_CMD_MCU_CONF, TODO!
    Info:MAIN:Time 4, idle 382512/s, free 127352, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 5, idle 385063/s, free 127352, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Registered for wifi changes
    Info:MAIN:Connecting to SSID [OpenWrt]
    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 0/s, free 119792, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Boot complete time reached (5 seconds)
    Info:MAIN:Time 7, idle 329693/s, free 120896, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:TuyaMCU:Received: 55 AA 03 03 00 00 05 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 3 (WiFiState) len 7
    Info:MAIN:Time 8, idle 412135/s, free 120896, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
    Info:MAIN:Time 9, idle 395802/s, free 112504, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 408998/s, free 109416, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.38 gate=192.168.1.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-30,ssid=OpenWrt,bssid=b0:4e:26:ab:98:1a,channel=6,cipher_type:CCMP
    Info:MQTT:mqtt_userName mqtt_user
    mqtt_pass ********
    mqtt_clientID 
    mqtt_host 192.168.1.18:1883
    Info:MAIN:Time 11, idle 409194/s, free 102248, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MQTT:mqtt_connection_cb: Successfully connected
    Info:MQTT:mqtt_subscribed to /+/set
    Info:MQTT:mqtt_subscribed to bekens/+/set
    Info:MQTT:mqtt_subscribed to cmnd//+
    Info:MQTT:mqtt_subscribed to cmnd/bekens/+
    Info:MQTT:mqtt_subscribed to /+/get
    Info:MQTT:mqtt_subscribed to homeassistant/+
    Error:HTTP:http_fn_cmd_tool: len 0
    Info:MQTT:Publishing val obk7F6DDB to /host retain=0
    Info:MAIN:Time 12, idle 383927/s, free 106744, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 90 00 03 02 17 18 C6 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 144 (Unknown) len 10
    ....
    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 412494/s, free 115176, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 59, idle 423200/s, free 115176, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 60, idle 419251/s, free 115176, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.38 gate=192.168.1.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-35,ssid=OpenWrt,bssid=b0:4e:26:ab:98:1a,channel=6,cipher_type:CCMP
    Info:MAIN:Time 61, idle 410201/s, free 115176, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 416812/s, free 115176, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 63, idle 408094/s, free 115176, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 64, idle 417349/s, free 115176, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 65, idle 414528/s, free 115176, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 416216/s, free 114552, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 67, idle 419699/s, free 115176, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 68, idle 398712/s, free 115176, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 69, idle 401914/s, free 115176, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/24 
    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 385927/s, free 115176, MQTT 1(1), bWifi 1, secondsWithNoPing 2, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.38 gate=192.168.1.1 mask=255.255.255.0 mac=c8:47:8c:42:88:48
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-31,ssid=OpenWrt,bssid=b0:4e:26:ab:98:1a,channel=6,cipher_type:CCMP
    Info:MAIN:Time 71, idle 391921/s, free 115176, MQTT 1(1), bWifi 1, secondsWithNoPing 3, socks 2/24 
    Info:MAIN:Time 72, idle 384862/s, free 115176, MQTT 1(1), bWifi 1, secondsWithNoPing 4, socks 2/24 
    Info:MAIN:Time 73, idle 382247/s, free 114560, MQTT 1(1), bWifi 1, secondsWithNoPing 5, socks 3/24 
    Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    


    tuyaMCU sent captured packets

    [RX]- 00 
    [RX]- 55 AA 03 00 00 01 00 03 
    [RX]- 55 AA 03 01 00 37 7B 22 70 22 3A 22 31 75 67 74 
    6D 67 6C 76 76 6E 77 6C 75 6E 34 61 22 2C 22 76 
    22 3A 22 31 2E 30 2E 30 22 2C 22 6D 22 3A 30 2C 
    22 6E 22 3A 31 2C 22 73 6D 22 3A 30 7D 75 
    [RX]- 55 AA 03 02 00 00 04 
    [RX]- 55 AA 03 00 00 01 01 04 
    [RX]- 55 AA 03 03 00 00 05 
    [RX]- 55 AA 03 00 00 01 01 04 
    [RX]- 55 AA 03 03 00 00 05 
    [RX]- 55 AA 03 90 00 03 02 17 18 C6 
    [RX]- 55 AA 03 00 00 01 01 04 
    [RX]- 55 AA 03 00 00 01 01 04 
    [RX]- 55 AA 03 00 00 01 01 04 
    [RX]- 55 AA 03 00 00 01 01 04 
    
  • #59 21905667
    io2345
    Level 9  
    Posts: 262
    Help: 1
    Rate: 6
    >>21905167 I would certainly do it if I had the ability to. Or is this adressed to the developers anyway?
  • #60 21905674
    divadiow
    Level 38  
    Posts: 4911
    Help: 430
    Rate: 872
    io2345 wrote:
    Or is this adressed to the developers anyway?


    for anyone with the BK7238 device and is seeing unknown commands in logs.

    zip contain QIO and ota files

Topic summary

✨ The discussion centers on the compatibility of the TH03 Pro Temperature and Humidity Sensor with OpenBeken firmware or alternative firmware solutions that avoid communication with Chinese servers. The original inquiry highlights a lack of specific information or successful integration reports for the TH03 Pro model, despite existing threads on similar sensors. A respondent, without direct experience with the TH03 Pro, suggests an alternative sensor available on AliExpress, implying potential options for users seeking compatible hardware. The focus remains on achieving proper sensor functionality within open-source or privacy-conscious firmware environments.
Generated by the language model.
ADVERTISEMENT