logo elektroda
logo elektroda
X
logo elektroda

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

io2345 2064 81
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
  • #61 21905773
    io2345
    Level 9  
    Posts: 265
    Help: 1
    Rate: 7
    >>21905674
    Sorry for my limited computer science knowledge. There are four files in the ZIP archive. Will they solve the problem? And what do I do with these four files? Where should they be placed?
  • ADVERTISEMENT
  • #62 21905787
    divadiow
    Level 38  
    Posts: 4933
    Help: 430
    Rate: 875
    I don't know if it will solve the problems, but worth a go?

    OpenBK7238_tuyamcu2_e9646026b83a.rbl

    http://<deviceip>/ota

    Screenshot of a web page with file selection and a red “START OTA” bar.
  • #63 21905806
    leonardojc
    Level 10  
    Posts: 8
    It seems to work.
    except I have to press the physical button to access the module's configuration website, and it's only active for 10 seconds.

    
    Info:MAIN:Time 12, idle 398834/s, free 106760, 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 (GetDPCache) len 10
    Info:TuyaMCU:ProcessIncoming: received TUYA_CMD_GET_DPCACHE, sending empty cache reply
    Info:TuyaMCU:Received: 55 AA 03 24 00 00 26 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 36 (SetRSSI) len 7
    Info:TuyaMCU:ProcessIncoming: received TUYA_CMD_SET_RSSI, so sending back signal strength
    Info:TuyaMCU:Received: 55 AA 03 22 00 10 17 02 00 04 00 00 00 00 18 02 00 04 00 00 00 00 6F 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 34 (ReportStatusSync) len 23
    Info:TuyaMCU:ParseState: id 23 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 0
    Info:TuyaMCU:ParseState: id 24 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 0
    Info:TuyaMCU:ProcessIncoming: TUYA_CMD_REPORT_STATUS_SYNC replying success
    
  • #64 21905879
    divadiow
    Level 38  
    Posts: 4933
    Help: 430
    Rate: 875
    leonardojc wrote:
    and it's only active for 10 seconds.


    yes, this is the problem with TuyaMCU battery devices. The TuyaMCU will cut power after a certain period of time to save battery.

    There's probably some way to keep it active though, like when Tuya firmware is in pairing mode.

    do any of these commands, sent before it sleeps, keep it awake?

    addRepeatingEventUID 3 40 903 uartSendHex 55AA000300010003
    - EZ pairing mode
    addRepeatingEventUID 3 40 903 uartSendHex 55AA000300010104
    - AP pairing mode
    addRepeatingEventUID 3 40 903 uartSendHex 55AA000300010609
    - EZ + AP coexist mode

    cancelRepeatingEvent 903
    to cancel any of them
  • ADVERTISEMENT
  • #65 21905880
    io2345
    Level 9  
    Posts: 265
    Help: 1
    Rate: 7
    >>21905806
    leonardojc wrote:
    ...and it's only active for 10 seconds


    That's good for a battery powered device, it shall fall asleep after reporting values.

    leonardojc, which dpIDs did you use for the autoexec.bat? Are 102 for temperature, 103 for humidity and 104 for battery state the correct settings?
  • #66 21905900
    leonardojc
    Level 10  
    Posts: 8
    Thanks for your reply.

    But I'm not receiving the temperature, humidity, and battery data.

    divadiow wrote:
    do any of these commands, sent before it sleeps, keep it awake?


    Yes, this command keeps the module active.
    
    addRepeatingEventUID 3 40 903 uartSendHex 55AA000300010003
    


    io2345 wrote:
    leonardojc, which dpIDs did you use for the autoexec.bat? Are 102 for temperature, 103 for humidity and 104 for battery state the correct settings?


    Yes, my startup commands are:

    
    startDriver TuyaMCU
    setChannelLabel 1 "Temperature"
    setChannelLabel 2 "Humidity"
    setChannelLabel 3 "Battery"
    linkTuyaMCUOutputToChannel 102 val 1
    linkTuyaMCUOutputToChannel 103 val 2
    linkTuyaMCUOutputToChannel 104 val 3
    setChannelType 1 temperature_div10
    setChannelType 2 Humidity
    setChannelType 3 Battery
    
  • #67 21905971
    io2345
    Level 9  
    Posts: 265
    Help: 1
    Rate: 7
    leonardojc wrote:
    But I'm not receiving the temperature, humidity, and battery data.

    If your readings for temperature etc. are still zero, this could mean two things: divadiows firmware isn't working as expected, or the dpIDs are wrong - although they should be right according to Tuya Developers log.

    @divadiow : How can we check if the firmware does what it is supposed to do? Maybe this firmware was only intended as first step on the way to success, establishing the correct communication between WiFi module and MCU?
  • #68 21905989
    divadiow
    Level 38  
    Posts: 4933
    Help: 430
    Rate: 875
    hmm. not entirely sure. the response this build is giving to dpcache request might be wrong. I need a BK7238/battery device using v3 protocol I think to test.

    I have this https://www.elektroda.com/rtvforum/topic4133895.html. I'll see if it's a good candidate to test with tonight

    Added after 1 [minutes]:

    or maybe real coders like @insmod can already see what's wrong before I can look properly later
  • ADVERTISEMENT
  • #69 21906213
    insmod
    Level 31  
    Posts: 1366
    Help: 163
    Rate: 429
    Perhaps send 0x90 command manually?
  • #70 21906229
    io2345
    Level 9  
    Posts: 265
    Help: 1
    Rate: 7
    insmod wrote:
    Perhaps send 0x90 command manually?

    You mean like "tuyaMcu_sendCmd 0x90 01". Or send something different to 01?
    And what would an expected response be like?
  • #72 21906547
    divadiow
    Level 38  
    Posts: 4933
    Help: 430
    Rate: 875
    With OpenBK7238_tuyamcu2_e9646026b83a I was getting values for temp/hum (though they don't make sense because they need to be used to calculate moisture - somehow). My device is v3 protocol, battery and doesn't need tmsensor driver.

    Screenshot showing “OpenBK7238_8C428848” with humidity and temperature readings.

    Another change though, attached. Please ota to this version

    tuyamcu2_e9646026b83a: OBK often queried state repeatedly and missed the short MCU wake window.
    tuyamcu2_9ca530ba6f50: OBK sends Wi-Fi/cloud state early, gets the ACK, then receives the DP report.

    https://github.com/openshwprojects/OpenBK7231...mmit/9ca530ba6f50cdc8396e390601d843390e5a468b
    Attachments:
    • OpenBK7231T_App_tuyamcu2_9ca530ba6f50_OpenBK7238.zip (2.13 MB) You must be logged in to download this attachment.
  • #73 21906554
    divadiow
    Level 38  
    Posts: 4933
    Help: 430
    Rate: 875
    also, take a note of your autoexec content before ota. I'm still finding LFS gets wiped
  • #74 21906999
    io2345
    Level 9  
    Posts: 265
    Help: 1
    Rate: 7
    Tried it again (using latest divadiow firmware) without success, values are still zero.
    Issued the command "tuyaMcu_sendQueryState" again on the command line.
    Log is this - does it tell anything new?
    
    Info:MAIN:Main_Init_Before_Delay
    Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 6 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: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 542917/s, free 127384, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 2, idle 392721/s, free 127384, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 3, idle 393723/s, free 127384, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 4, idle 396617/s, free 127384, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 5, idle 393624/s, free 127384, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Registered for wifi changes
    Info:MAIN:Connecting to SSID [Wifi2800]
    Info:MAIN:Time 6, idle 0/s, free 119528, 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 351133/s, free 120776, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 8, idle 393056/s, free 120776, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 9, idle 392674/s, free 120776, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 10, idle 396351/s, free 120776, 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 392937/s, free 120776, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Registered for wifi changes
    Info:MAIN:Connecting to SSID [Wifi2800]
    Info:MAIN:Time 12, idle 369246/s, free 119360, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
    Info:MAIN:Time 13, idle 328621/s, free 106848, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 14, idle 400042/s, free 119480, 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 404037/s, free 105240, 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:MQTT:Publishing val TH03Pro5 to TH03Pro5/host retain=0
    Info:MAIN:Time 16, idle 383023/s, free 113712, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:Publishing val OpenBK7238 tuyamcu2_9ca530ba6f50 May 19 2026 20:06:59 to TH03Pro5/build retain=0
    Info:MAIN:Time 17, idle 386138/s, free 113384, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:Publishing val c8:47:8c:42:88:48 to TH03Pro5/mac retain=0
    Info:MAIN:Time 18, idle 390107/s, free 113464, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:Publishing val 18.60 to TH03Pro5/temp retain=0
    Info:MAIN:Time 19, idle 396296/s, free 112904, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Error:HTTP:http_fn_cmd_tool: len 0
    Info:MQTT:Publishing val Wifi2800 to TH03Pro5/ssid retain=0
    Info:MAIN:Time 20, idle 393216/s, free 104872, MQTT 1(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=-72,ssid=Wifi2800,bssid=2c:3a:fd:ce:a8:2e,channel=13,cipher_type:CCMP
    Info:MQTT:Publishing val 0 to TH03Pro5/datetime retain=0
    Info:MAIN:Time 21, idle 400339/s, free 113712, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:Publishing val 2 to TH03Pro5/sockets retain=0
    Info:MAIN:Time 22, idle 399196/s, free 113712, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Error:HTTP:http_fn_cmd_tool: len 22
    Info:MQTT:Publishing val -71 to TH03Pro5/rssi retain=0
    Info:MAIN:Time 23, idle 393505/s, free 101072, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MQTT:Publishing val 23 to TH03Pro5/uptime retain=0
    Info:MAIN:Time 24, idle 394846/s, free 105408, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:Publishing val 113824 to TH03Pro5/freeheap retain=0
    Info:MAIN:Time 25, idle 398721/s, free 113704, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:Publishing val 192.168.0.18 to TH03Pro5/ip retain=0
    Info:MAIN:Time 26, idle 395656/s, free 114768, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:Channel has changed! Publishing 0 to channel 1
    Info:MQTT:Publishing val 0 to TH03Pro5/1/get retain=0
    Info:MAIN:Time 27, idle 393203/s, free 114776, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:Channel has changed! Publishing 0 to channel 2
    Info:MQTT:Publishing val 0 to TH03Pro5/2/get retain=0
    Info:MAIN:Time 28, idle 393911/s, free 114776, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:Channel has changed! Publishing 0 to channel 3
    Info:MQTT:Publishing val 0 to TH03Pro5/3/get retain=0
    Info:MAIN:Time 29, idle 386985/s, free 114552, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 30, idle 391940/s, free 114888, MQTT 1(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=-72,ssid=Wifi2800,bssid=2c:3a:fd:ce:a8:2e,channel=13,cipher_type:CCMP
    Info:MAIN:Time 31, idle 396164/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 32, idle 406853/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 33, idle 397922/s, free 113216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 34, idle 396873/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 35, idle 398182/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 36, idle 403383/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 37, idle 394676/s, free 113216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 38, idle 399024/s, free 113216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 39, idle 393970/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 40, idle 396060/s, free 114888, MQTT 1(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=-73,ssid=Wifi2800,bssid=2c:3a:fd:ce:a8:2e,channel=13,cipher_type:CCMP
    Info:MAIN:Time 41, idle 397945/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 42, idle 396582/s, free 113216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 43, idle 396652/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 44, idle 394044/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 45, idle 395306/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 46, idle 395770/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 47, idle 389830/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 48, idle 387944/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 49, idle 395969/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 50, idle 389080/s, free 113216, MQTT 1(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=-72,ssid=Wifi2800,bssid=2c:3a:fd:ce:a8:2e,channel=13,cipher_type:CCMP
    Info:MAIN:Time 51, idle 391470/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 52, idle 394696/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 53, idle 390839/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 54, idle 387936/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 55, idle 390643/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 56, idle 405730/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 57, idle 393496/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 58, idle 385807/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 59, idle 368840/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 60, idle 370233/s, free 114888, MQTT 1(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=-72,ssid=Wifi2800,bssid=2c:3a:fd:ce:a8:2e,channel=13,cipher_type:CCMP
    Info:MAIN:Time 61, idle 374248/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 62, idle 371576/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 63, idle 377145/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 64, idle 374721/s, free 114240, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 65, idle 372468/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 66, idle 377651/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 67, idle 384421/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 68, idle 382559/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 69, idle 389848/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 70, idle 390907/s, free 114800, MQTT 1(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=-72,ssid=Wifi2800,bssid=2c:3a:fd:ce:a8:2e,channel=13,cipher_type:CCMP
    Info:MAIN:Time 71, idle 386194/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 72, idle 381662/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 73, idle 391373/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/24 
    Info:MAIN:Time 74, idle 384388/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 2, socks 2/24 
    Info:MAIN:Time 75, idle 389050/s, free 113216, MQTT 1(1), bWifi 1, secondsWithNoPing 3, socks 2/24 
    Info:MAIN:Time 76, idle 391084/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 4, socks 2/24 
    Info:MAIN:Time 77, idle 383695/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 5, socks 2/24 
    Info:MAIN:Time 78, idle 381431/s, free 114800, MQTT 1(1), bWifi 1, secondsWithNoPing 6, socks 2/24 
    Info:MAIN:Time 79, idle 387255/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 7, socks 2/24 
    Info:MAIN:Time 80, idle 386695/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 8, 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=-71,ssid=Wifi2800,bssid=2c:3a:fd:ce:a8:2e,channel=13,cipher_type:CCMP
    Info:MAIN:Time 81, idle 386350/s, free 113216, MQTT 1(1), bWifi 1, secondsWithNoPing 9, socks 2/24 
    Info:MAIN:Time 82, idle 386622/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 10, socks 2/24 
    Info:MAIN:Time 83, idle 389383/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 11, socks 2/24 
    Info:MAIN:Time 84, idle 384675/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 12, socks 2/24 
    Info:MAIN:Time 85, idle 383571/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 13, socks 2/24 
    Info:MAIN:Time 86, idle 384637/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 14, socks 2/24 
    Info:MAIN:Time 87, idle 386172/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 15, socks 2/24 
    Info:MAIN:Time 88, idle 393007/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 16, socks 2/24 
    Info:MAIN:Time 89, idle 382192/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 17, socks 2/24


    Would a new communication log for the serial communication be of help?
  • #75 21907012
    leonardojc
    Level 10  
    Posts: 8
    Hi, I'm having the same problem; the values are still zero. (Using the latest divadiow firmware.)
    I've attached photos of my device.
    Underneath the LCD screen are two integrated circuits: one is the LCD controller and the other is the TuyaMCU.


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

    TH03 Pro Temperature Humidity Sensor Compatibility with OpenBeken Integration (possibly)
  • ADVERTISEMENT
  • #76 21907059
    io2345
    Level 9  
    Posts: 265
    Help: 1
    Rate: 7
    >>21907012 The communication between the MCU and WiFi module is broken now in the latest firmware version. Although a dual realtime UART capture is being carried out, the only messages received are

    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      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   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      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   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK   
    ...


    Just to be sure, I tried the first firmware version as well. Same communication log
  • #77 21907070
    divadiow
    Level 38  
    Posts: 4933
    Help: 430
    Rate: 875
    Hmm. Not really sure what next to try

    Added after 2 [hours] 6 [minutes]:

    any different?
    Attachments:
    • OpenBK7231T_App_tuyamcu2_fcacdfa0b9bc_OpenBK7238.zip (2.13 MB) You must be logged in to download this attachment.
  • #78 21907175
    io2345
    Level 9  
    Posts: 265
    Help: 1
    Rate: 7
    >>21907070 Thank you for the efforts, but unfortunately nothing has changed
  • #79 21907384
    io2345
    Level 9  
    Posts: 265
    Help: 1
    Rate: 7
    There might be even more to it. I flashed back to Standard-OBK-Firmware, with which I already did a dual UART capture (see here: Link) and expected to get the normal communication log again. But now I get there the same log as above, with only lots of
    Sent by WiFi module:
    55 AA   00   00      00 00      FF   
    HEADER   VER=00   Heartbeat      LEN      CHK


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

    >>21907384 Did now flash (not OTA) the standard OBK firmware and verified, that communication was established again. Then flashed latest Divadiow-firmware (the QIO-Version). And now we are back with working communication (I guess):

    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   
    
    Sent by WiFi module:
    55 AA   00   02      00 00      01   
    HEADER   VER=00   McuConf      LEN      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   03      00 01   00   03   
    HEADER   VER=00   WifiState      LEN   00   CHK   
    
    Received by WiFi module:
    55 AA   03   03      00 00      05   
    HEADER   VER=03   WifiState      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   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   03      00 00      05   
    HEADER   VER=03   WifiState      LEN      CHK   
    
    Sent by WiFi module:
    55 AA   00   03      00 01   04   07   
    HEADER   VER=00   WifiState      LEN   04   CHK   
    
    Received by WiFi module:
    55 AA   03   24      00 00      26   
    HEADER   VER=03   Unk      LEN      CHK   
    
    Sent by WiFi module:
    55 AA   00   24      00 01   C1   E5   
    HEADER   VER=00   Unk      LEN   C1   CHK   
    
    Received by WiFi module:
    55 AA   03   22      00 15   66020004000000DC670200040000003A6804000102   97   
    HEADER   VER=03   Unk      LEN   66020004000000DC670200040000003A6804000102   CHK   
    
    Sent by WiFi module:
    55 AA   00   23      00 01   01   24   
    HEADER   VER=00   Unk      LEN   01   CHK


    To my surprise I couldn't open an access point - but found instead, that all config settings and even autoexec.bat survived the two flashings.
    Webpage-Log is this:
    
    n_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: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 515639/s, free 127384, MQTT 0(0), bWifi 0, 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 2, idle 365584/s, free 127384, 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 382123/s, free 127384, 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: module self-processing mode, no MCU GPIO pins
    Info:TuyaMCU:Received: 55 AA 03 04 00 00 06 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 4 (WiFiReset) len 7
    Info:TuyaMCU:ProcessIncoming: 0x04 replying
    Info:MAIN:Time 4, idle 391490/s, free 127384, 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 5, idle 395597/s, free 127384, 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 119528, 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 298380/s, free 120544, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 8, idle 392486/s, free 120544, 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 9, idle 388664/s, free 114608, 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:TuyaMCU:Received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
    Info:MQTT:Publishing val TH03Pro5 to TH03Pro5/host retain=0
    Info:MAIN:Time 10, idle 383959/s, free 114776, MQTT 1(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:MQTT:Publishing val OpenBK7238 tuyamcu2_9ca530ba6f50 May 19 2026 20:06:59 to TH03Pro5/build retain=0
    Info:MAIN:Time 11, idle 393903/s, free 109968, 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:MQTT:Publishing val c8:47:8c:42:88:48 to TH03Pro5/mac retain=0
    Info:MAIN:Time 12, idle 392336/s, free 106464, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:Publishing val 17.40 to TH03Pro5/temp retain=0
    Info:MAIN:Time 13, idle 400203/s, free 114776, 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:MQTT:Publishing val Wifi2800 to TH03Pro5/ssid retain=0
    Info:MAIN:Time 14, idle 389174/s, free 114768, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:Publishing val 0 to TH03Pro5/datetime retain=0
    Info:MAIN:Time 15, idle 381815/s, free 113216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:Publishing val 2 to TH03Pro5/sockets retain=0
    Info:MAIN:Time 16, idle 397042/s, free 114776, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:Publishing val -61 to TH03Pro5/rssi retain=0
    Info:MAIN:Time 17, idle 388633/s, free 114776, 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:MQTT:Publishing val 17 to TH03Pro5/uptime retain=0
    Info:MAIN:Time 18, idle 390833/s, free 114240, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:Publishing val 114888 to TH03Pro5/freeheap retain=0
    Info:MAIN:Time 19, idle 391996/s, free 114768, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:Publishing val 192.168.0.18 to TH03Pro5/ip retain=0
    Info:MAIN:Time 20, idle 394386/s, free 113096, MQTT 1(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:MQTT:Channel has changed! Publishing 0 to channel 1
    Info:MQTT:Publishing val 0 to TH03Pro5/1/get retain=0
    Info:MAIN:Time 21, idle 394589/s, free 114776, 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:MQTT:Channel has changed! Publishing 0 to channel 2
    Info:MQTT:Publishing val 0 to TH03Pro5/2/get retain=0
    Info:MAIN:Time 22, idle 384972/s, free 114776, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:Channel has changed! Publishing 0 to channel 3
    Info:MQTT:Publishing val 0 to TH03Pro5/3/get retain=0
    Info:MAIN:Time 23, idle 393112/s, free 114776, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 24, idle 387843/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 25, idle 390469/s, free 114888, 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 26, idle 395595/s, free 114240, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 27, idle 395665/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 28, idle 391679/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 29, idle 393528/s, free 104328, 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 30, idle 390193/s, free 105928, MQTT 1(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=-54,ssid=Wifi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MAIN:Time 31, idle 390861/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 32, idle 390357/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 33, idle 391731/s, free 114888, 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 34, idle 392996/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 35, idle 383038/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 36, idle 387295/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 37, idle 388917/s, free 114888, 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 38, idle 385514/s, free 106584, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 39, idle 390273/s, free 113216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 40, idle 402113/s, free 114888, MQTT 1(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=-58,ssid=Wifi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MAIN:Time 41, idle 385718/s, free 114888, 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 42, idle 388262/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 43, idle 386224/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 44, idle 387215/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 45, idle 397895/s, free 114888, 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 46, idle 394239/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 47, idle 391044/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 48, idle 384915/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 49, idle 387819/s, free 114888, 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 50, idle 390725/s, free 113216, MQTT 1(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=-58,ssid=Wifi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MAIN:Time 51, idle 394522/s, free 102264, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 52, idle 394356/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 53, idle 391922/s, free 114888, 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 54, idle 392380/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 55, idle 392090/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 56, idle 390272/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 57, idle 387704/s, free 114888, 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 58, idle 387810/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 59, idle 394867/s, free 106584, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 60, idle 390957/s, free 114888, MQTT 1(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=-61,ssid=Wifi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MAIN:Time 61, idle 391794/s, free 114888, 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 393028/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 63, idle 383241/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 64, idle 392302/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 65, idle 369265/s, free 114888, 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 365609/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 67, idle 360040/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/24 
    Info:MAIN:Time 68, idle 365311/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 2, socks 2/24 
    Info:MAIN:Time 69, idle 370680/s, free 114888, MQTT 1(1), 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 367085/s, free 114888, MQTT 1(1), 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=-58,ssid=Wifi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MAIN:Time 71, idle 359788/s, free 102256, MQTT 1(1), bWifi 1, secondsWithNoPing 5, socks 3/24 
    Info:MAIN:Time 72, idle 370088/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 6, socks 2/24 
    Info:MAIN:Time 73, idle 361823/s, free 114888, MQTT 1(1), 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 364523/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 8, socks 2/24 
    Info:MAIN:Time 75, idle 368384/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 9, socks 2/24 
    Info:MAIN:Time 76, idle 366909/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 10, socks 2/24 
    Info:MAIN:Time 77, idle 364595/s, free 102136, MQTT 1(1), bWifi 1, secondsWithNoPing 11, 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 78, idle 380848/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 12, socks 2/24 
    Info:MAIN:Time 79, idle 377755/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 13, socks 2/24 
    Info:MAIN:Time 80, idle 399974/s, free 113216, MQTT 1(1), 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 383491/s, free 106584, MQTT 1(1), 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 392431/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 16, socks 2/24 
    Info:MAIN:Time 83, idle 387175/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 17, socks 2/24 
    Info:MAIN:Time 84, idle 391270/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 18, socks 2/24 
    Info:MAIN:Time 85, idle 397334/s, free 114888, MQTT 1(1), 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 387645/s, free 102136, MQTT 1(1), bWifi 1, secondsWithNoPing 20, socks 3/24 
    Info:MAIN:Time 87, idle 382115/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 21, socks 2/24 
    Info:MAIN:Time 88, idle 385352/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 22, socks 2/24 
    Info:MAIN:Time 89, idle 395044/s, free 113216, MQTT 1(1), 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 397093/s, free 114888, MQTT 1(1), 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=-57,ssid=Wifi2800,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MAIN:Time 91, idle 392131/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 25, socks 2/24 
    Info:MAIN:Time 92, idle 400292/s, free 114888, MQTT 1(1), bWifi 1, secondsWithNoPing 26, socks 2/24 


    Active time is indeed only a few seconds, as indicated by leonardojc.

    Sadly, readings are still all zero.
  • #80 21907886
    leonardojc
    Level 10  
    Posts: 8
    I think the missing command is the one that tells the TuyaMCU to send the temperature and humidity data.
    Perhaps we could re-flash the original firmware and capture the serial commands?
  • #81 21908024
    io2345
    Level 9  
    Posts: 265
    Help: 1
    Rate: 7
    >>21907886 We have the logs on original Tuya firmware already, one line at end of Post 46 and one in Post 48. It's just that I mixed up lines, so where it says "sent" it should say "received" and vice versa.
    I tried to sort and correct them manually.

    This first part is identically, only the payload of the "55 AA 03 00" lines differ (not sure, if this is a problem or not):

    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   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
    
    Sent by WiFi module:
    55 AA   00   02      00 00      01   
    HEADER   VER=00   McuConf      LEN      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   03      00 01   04   07   
    HEADER   VER=00   WifiState      LEN   04   CHK   
    
    Received by WiFi module:
    55 AA   03   03      00 00      05   
    HEADER   VER=03   WifiState      LEN      CHK


    From there on I'm not sure if the order of the commands is sorted correctly for the original firmware's log. It might be like this:

    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   22      00 15   66020004000000FA67020004000000576804000102   D2   
    HEADER   VER=03   Unk      LEN   66020004000000FA67020004000000576804000102   CHK
    
    Sent by WiFi module:
    55 AA   00   24      00 01   CE   F2   
    HEADER   VER=00   Unk      LEN   CE   CHK   
    
    Sent by WiFi module:
    55 AA   00   23      00 01   01   24   
    HEADER   VER=00   Unk      LEN   01   CHK


    Probably the values for Temp+Hum+Batt are in this block: 66020004000000FA67020004000000576804000102
    The same block is received with the OBK firmware, only that there isn't "D2" at the end but "97", and that there are several commands inbetween (some more QueryInitStatus, Heartbeat, Unk and WifiState). Maybe not a problem.

    Might also be, that the values are there already, and just dpIDs 102, 103 and 104 are wrong.

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

    >>21908024 Just an idea: What, if the block with the values isn't decoded at all on the device itself, but on Tuya servers or on the frontend (SmartLife-App)?
  • #82 21909297
    io2345
    Level 9  
    Posts: 265
    Help: 1
    Rate: 7
    While reading the thread again from page 2 on I found, that @insmod already presented the solution here Link by splitting the data and inserting tuya header.
    I would assume, that this procedure "only" has to be implemented in 7238-firmware.
    Is there a way to get things started? This, for sure, is a case for the developers

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