logo elektroda
logo elektroda
X
logo elektroda

TuyaSmartlife Temp-Humidity Sensor (BK7238, AU5068XA) Pinout for OpenBK Firmware

leon22heart 1737 93
ADVERTISEMENT
  • #91 21844759
    leon22heart
    Level 3  
    >>21844730

    Just a clarification . Today as i opened the pc ( board is always connected to ground and vcc of the usb uart ) i had working temp and hum ( Temperature:22.7C Humidity:45% )
    So i believe that a complete shutdown and power disconnection also affects the tests in an no known yet way . So for any test from now on , i will uart flash , wire disconnect and reconnect and then post logs .

    dle 355641/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 132, socks 2/24 
    Info:MAIN:Time 204, idle 400127/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 133, socks 2/24 
    Info:MAIN:Time 205, idle 399524/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 134, socks 2/24 
    Info:MAIN:Time 206, idle 398835/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 135, socks 2/24 
    Info:MAIN:Time 207, idle 400312/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 136, socks 2/24 
    Info:MAIN:Time 208, idle 400747/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 137, socks 2/24 
    Info:MAIN:Time 209, idle 397824/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 138, socks 2/24 
    Info:MAIN:Time 210, idle 403731/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 139, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.144 gate=192.168.1.1 mask=255.255.255.0 mac=e4:ae:e4:19:1b:ee
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-63,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MAIN:Time 211, idle 400288/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 140, socks 2/24 
    Info:GEN:No change in channel 0 (still set to 227) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 45) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:22.7C Humidity:45%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1475 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1475.976563 and percentage 0.000000%
    Info:MAIN:Time 212, idle 428366/s, free 120568, MQTT 1(1), bWifi 1, secondsWithNoPing 141, socks 2/24 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/voltage/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/battery/get
    Info:MAIN:Time 213, idle 349502/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 142, socks 2/24 
    Info:MAIN:Time 214, idle 390064/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 143, socks 2/24 
    Info:MAIN:Time 215, idle 391517/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 144, socks 2/24 
    Info:MAIN:Time 216, idle 396186/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 145, socks 2/24 
    Info:MAIN:Time 217, idle 388007/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 146, socks 2/24 
    Info:MAIN:Time 218, idle 390304/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 147, socks 2/24 
    Info:MAIN:Time 219, idle 390422/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 148, socks 2/24 
    Info:MAIN:Time 220, idle 390655/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 149, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.144 gate=192.168.1.1 mask=255.255.255.0 mac=e4:ae:e4:19:1b:ee
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-61,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MAIN:Time 221, idle 392351/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 150, socks 2/24 
    Info:GEN:No change in channel 0 (still set to 227) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 45) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:22.7C Humidity:45%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1476 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1476.562500 and percentage 0.000000%
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/voltage/get
    Info:MAIN:Time 222, idle 420009/s, free 119136, MQTT 1(1), bWifi 1, secondsWithNoPing 151, socks 2/24 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/battery/get
    Info:MAIN:Time 223, idle 350926/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 152, socks 2/24 
    Info:MAIN:Time 224, idle 395815/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 153, socks 2/24 
    Info:MAIN:Time 225, idle 400459/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 154, socks 2/24 
    Info:MAIN:Time 226, idle 400083/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 155, socks 2/24 
    Info:MAIN:Time 227, idle 375595/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 156, socks 2/24 
    Info:CMD:[WebApp Cmd 'loglevel 3' Result] OK
    Info:MAIN:Time 228, idle 403930/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 157, socks 2/24 
    Info:MAIN:Time 229, idle 393447/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 158, socks 2/24 
    Info:MAIN:Time 230, idle 396635/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 159, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.144 gate=192.168.1.1 mask=255.255.255.0 mac=e4:ae:e4:19:1b:ee
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-61,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MAIN:Time 231, idle 390835/s, free 120552, MQTT 1(1), bWifi 1, secondsWithNoPing 160, socks 2/24 
    Info:GEN:No change in channel 0 (still set to 227) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 45) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:22.7C Humidity:45%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1476 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1476.562500 and percentage 0.000000%
    Info:MAIN:Time 232, idle 398153/s, free 119720, MQTT 1(1), bWifi 1, secondsWithNoPing 161, socks 3/24 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/voltage/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/battery/get
    Info:MAIN:Time 233, idle 348531/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 162, socks 2/24 
    Info:MAIN:Time 234, idle 397692/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 163, socks 2/24 
    Debug:CMD:loglevel set 6
    Info:CMD:[WebApp Cmd 'loglevel 6' Result] OK
    Debug:DRV:DRV_BATTERY : Measurement will run in  6 cycle
    Info:MAIN:Time 235, idle 396014/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 164, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  5 cycle
    Info:MAIN:Time 236, idle 396485/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 165, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  4 cycle
    Info:MAIN:Time 237, idle 368963/s, free 122016, MQTT 1(1), bWifi 1, secondsWithNoPing 166, socks 3/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  3 cycle
    Info:MAIN:Time 238, idle 372089/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 167, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  2 cycle
    Info:MAIN:Time 239, idle 375512/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 168, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  1 cycle
    Info:MAIN:Time 240, idle 367161/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 169, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.144 gate=192.168.1.1 mask=255.255.255.0 mac=e4:ae:e4:19:1b:ee
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-61,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Debug:DRV:DRV_BATTERY : Measurement will run in  0 cycle
    Info:MAIN:Time 241, idle 380591/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 170, socks 2/24 
    Debug:SENSOR:SHT3X : Wrote SHT4x/GXHTV4 measure command 0xE0
    Debug:SENSOR:SHT3X : Read: temp=0X6335 (CRC1=0XC9 - calculated:0XC9) hum=0X6928 (CRC2=0X28 - calculated:0X28)
    Info:GEN:CHANNEL_Set channel 0 has changed to 228 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 228 to channel 0 
    Info:MQTT:Publishing val 228 to TEMP4/0/get retain=0
    Info:GEN:No change in channel 1 (still set to 45) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:22.8C Humidity:45%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/0/get
    Debug:DRV:DRV_BATTERY : ADC binary Measurement : 2526.000000 and channel 0
    Debug:DRV:DRV_BATTERY : Calculation with param : 2400.000000 4096.000000 1.000000
    Debug:DRV:DRV_BATTERY : Ref battery: 1000.000000, rest battery -519.921875
    Info:MQTT:Publishing val 1480 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1480.078125 and percentage 0.000000%
    Debug:DRV:DRV_BATTERY : Measurement will run in  9 cycle
    Info:MAIN:Time 242, idle 403041/s, free 120568, MQTT 1(1), bWifi 1, secondsWithNoPing 171, socks 2/24 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/voltage/get
    Debug:MQTT:channelSet topic 4216500 with arg 228
    Debug:MQTT:channelSet topic 4216500 with arg 1480
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/battery/get
    Debug:MQTT:channelSet topic 4216500 with arg 0
    Debug:DRV:DRV_BATTERY : Measurement will run in  8 cycle
    Info:MAIN:Time 243, idle 328027/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 172, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  7 cycle
    Info:MAIN:Time 244, idle 374004/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 173, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  6 cycle
    Info:MAIN:Time 245, idle 373285/s, free 109584, MQTT 1(1), bWifi 1, secondsWithNoPing 174, socks 3/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  5 cycle
    Info:MAIN:Time 246, idle 373171/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 175, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  4 cycle
    Info:MAIN:Time 247, idle 367816/s, free 121928, MQTT 1(1), bWifi 1, secondsWithNoPing 176, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  3 cycle
    Info:MAIN:Time 248, idle 735712/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 177, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  2 cycle
    Info:MAIN:Time 249, idle 365612/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 178, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  1 cycle
    Info:MAIN:Time 250, idle 371945/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 179, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.144 gate=192.168.1.1 mask=255.255.255.0 mac=e4:ae:e4:19:1b:ee
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-62,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Debug:API:POST to api/cmnd
    Debug:CMD:cmd [reboot]
    Info:CMD:CMD_Restart: will reboot in 3
    Info:CMD:[WebApp Cmd 'reboot' Result] OK
    Debug:DRV:DRV_BATTERY : Measurement will run in  0 cycle
    Info:MAIN:Time 251, idle 374700/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing 180, socks 2/24 
    Info:MAIN:Module reboot in 2...
    Debug:SENSOR:SHT3X : Wrote SHT4x/GXHTV4 measure command 0xE0
    Debug:SENSOR:SHT3X : Read: temp=0X633F (CRC1=0X12 - calculated:0X12) hum=0X6900 (CRC2=0X17 - calculated:0X17)
    Info:GEN:No change in channel 0 (still set to 228) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 45) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:22.8C Humidity:45%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Debug:DRV:DRV_BATTERY : ADC binary Measurement : 2525.000000 and channel 0
    Debug:DRV:DRV_BATTERY : Calculation with param : 2400.000000 4096.000000 1.000000
    Debug:DRV:DRV_BATTERY : Ref battery: 1000.000000, rest battery -520.507813
    Info:MQTT:Publishing val 1479 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1479.492188 and percentage 0.000000%
    Debug:DRV:DRV_BATTERY : Measurement will run in  9 cycle
    Info:MAIN:Time 252, idle 392495/s, free 120336, MQTT 1(1), bWifi 1, secondsWithNoPing 181, socks 2/24 
    Info:MAIN:Module reboot in 1...
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/voltage/get
    Debug:MQTT:channelSet topic 4216500 with arg 1479
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/battery/get
    Debug:MQTT:channelSet topic 4216500 with arg 0
    Info:MAIN:Main_Init_Before_Delay
    Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 13 changes count.
    Info:NTP:CLOCK driver initialized.
    Error:CMD:no file early.bat err -2
    Info:SENSOR:SHT3x: using pins 24 (SCL) and 17 (SDA)
    Info:SENSOR:SHT: Detecting sensor type...
    Info:SENSOR:DEBUG SHT_DetectSensorType() testing for SHT4x/GXHTV4 serial: 0x89 got ACK
    Info:SENSOR:SHT: 0x89 cmd: SNB=[FFF24305], CRC=[E0,D0]
    Info:SENSOR:SHT: ✓ Detected SHT4X/GXHTV4 (Valid CRC - Serial via 0x89: FFF24305)
    Info:SENSOR:SHT4X sensor detected
    Error:SENSOR:Only supported on SHT3x
    Info:MAIN:Started SHT3X.
    Info:MAIN:Started Battery.
    Info:GEN:PIN_SetupPins pins have been set up.
    Info:MAIN:Main_Init_Before_Delay done
    Info:MAIN:Main_Init_Delay
    Info:GEN:CHANNEL_Set channel 41 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 41 
    Info:MAIN:Main_Init_Delay done
    Info:MAIN:Main_Init_After_Delay
    Info:MAIN:Using SSID [LOLIDAS24TP_IOT]
    Info:MAIN:Using Pass [22leon22heart22]
    Info:MQTT:MQTT_RegisterCallback called for bT TEMP4/ subT TEMP4/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT bekens/ subT bekens/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/TEMP4/ subT cmnd/TEMP4/+
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/bekens/ subT cmnd/bekens/+
    Info:MQTT:MQTT_RegisterCallback called for bT TEMP4/ subT TEMP4/+/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:Time 1, idle 533470/s, free 134760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:GEN:CHANNEL_Set channel 0 has changed to 227 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 227 to channel 0 
    Info:GEN:CHANNEL_Set channel 1 has changed to 45 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 45 to channel 1 
    Info:SENSOR:SHT3X_Measure: Temperature:22.7C Humidity:45%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:DRV:DRV_BATTERY : ADC Value low device not on battery
    Info:DRV:DRV_BATTERY : battery voltage : 613.476563 and percentage 0.000000%
    Info:MAIN:Time 2, idle 421568/s, free 134672, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 3, idle 356436/s, free 134672, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 4, idle 394576/s, free 134672, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 5, idle 392435/s, free 134672, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Registered for wifi changes
    Info:MAIN:Connecting to SSID [LOLIDAS24TP_IOT]
    Info:MAIN:Time 6, idle 42858/s, free 128072, 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 318118/s, free 115264, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 8, idle 380462/s, free 119584, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:mqtt_userName leon22heart
    mqtt_pass ********
    mqtt_clientID TEMP4
    mqtt_host raspi5-home:1883
    Info:MQTT:mqtt_host raspi5-home is being resolved by gethostbyname
    Info:MAIN:Time 9, idle 379810/s, free 122008, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:mqtt_host raspi5-home resolution SUCCESS
    Info:MAIN:Time 10, idle 382082/s, free 121936, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.144 gate=192.168.1.1 mask=255.255.255.0 mac=e4:ae:e4:19:1b:ee
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-62,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MQTT:mqtt_connection_cb: Successfully connected
    Info:MQTT:mqtt_subscribed to TEMP4/+/set
    Info:MQTT:mqtt_subscribed to bekens/+/set
    Info:MQTT:mqtt_subscribed to cmnd/TEMP4/+
    Info:MQTT:mqtt_subscribed to cmnd/bekens/+
    Info:MQTT:mqtt_subscribed to TEMP4/+/get
    Info:MQTT:mqtt_subscribed to homeassistant/+
    Info:MAIN:Time 11, idle 377754/s, free 109592, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:GEN:CHANNEL_Set channel 0 has changed to 228 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 228 to channel 0 
    Info:MQTT:Publishing val 228 to TEMP4/0/get retain=0
    Info:GEN:No change in channel 1 (still set to 45) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:22.8C Humidity:45%
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/0/get
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1475 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1475.390625 and percentage 0.000000%
    Info:MAIN:Time 12, idle 426618/s, free 120560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/voltage/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/battery/get
    Info:MAIN:Time 13, idle 321397/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 14, idle 364954/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 15, idle 366022/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 16, idle 372906/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 17, idle 367653/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 18, idle 368675/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 19, idle 373399/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 20, idle 380138/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.144 gate=192.168.1.1 mask=255.255.255.0 mac=e4:ae:e4:19:1b:ee
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-61,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MAIN:Time 21, idle 388244/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:No change in channel 0 (still set to 228) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 45) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:22.8C Humidity:45%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1476 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1476.562500 and percentage 0.000000%
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/voltage/get
    Info:MAIN:Time 22, idle 419770/s, free 119128, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/battery/get
    Info:MAIN:Time 23, idle 348777/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 24, idle 402663/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 25, idle 385444/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 26, idle 400189/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 27, idle 384582/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 28, idle 387993/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 29, idle 391784/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 30, idle 397286/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.144 gate=192.168.1.1 mask=255.255.255.0 mac=e4:ae:e4:19:1b:ee
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-61,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MAIN:Time 31, idle 388358/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:CHANNEL_Set channel 0 has changed to 229 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 229 to channel 0 
    Info:MQTT:Publishing val 229 to TEMP4/0/get retain=0
    Info:GEN:No change in channel 1 (still set to 45) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:22.9C Humidity:45%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/0/get
    Info:MQTT:Publishing val 1482 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1482.421875 and percentage 0.000000%
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/voltage/get
    Info:MAIN:Time 32, idle 430782/s, free 120672, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/battery/get
    Info:MAIN:Time 33, idle 339052/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 34, idle 399576/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 35, idle 386654/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 36, idle 399424/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 37, idle 396858/s, free 113280, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 38, idle 390439/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 39, idle 403673/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 40, idle 394226/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.144 gate=192.168.1.1 mask=255.255.255.0 mac=e4:ae:e4:19:1b:ee
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-62,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MAIN:Time 41, idle 392994/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:No change in channel 0 (still set to 229) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 45) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:22.9C Humidity:45%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1478 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1478.906250 and percentage 0.000000%
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/voltage/get
    Info:MAIN:Time 42, idle 428920/s, free 119128, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/battery/get
    Info:MAIN:Time 43, idle 332297/s, free 122128, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 44, idle 375997/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 45, idle 361556/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 46, idle 368115/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 47, idle 368892/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 48, idle 362647/s, free 111656, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 49, idle 358948/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:SENSOR:Sensor type set to SHT3X
    Info:CMD:[WebApp Cmd 'SHT_SetType 3' Result] OK
    Info:MAIN:Time 50, idle 370803/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.144 gate=192.168.1.1 mask=255.255.255.0 mac=e4:ae:e4:19:1b:ee
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-61,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MAIN:Time 51, idle 377593/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:No change in channel 0 (still set to 229) - ignoring
    
    Info:GEN:CHANNEL_Set channel 1 has changed to 40 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 40 to channel 1 
    Info:MQTT:Publishing val 40 to TEMP4/1/get retain=0
    Info:SENSOR:SHT3X_Measure: Temperature:22.9C Humidity:40%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/1/get
    Info:MQTT:Publishing val 1477 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1477.148438 and percentage 0.000000%
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/voltage/get
    Info:MAIN:Time 52, idle 411978/s, free 120672, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/battery/get
    Info:MAIN:Time 53, idle 334638/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 54, idle 389824/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 55, idle 391137/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 56, idle 382239/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 57, idle 381742/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 58, idle 390345/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 59, idle 385475/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 60, idle 385309/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.144 gate=192.168.1.1 mask=255.255.255.0 mac=e4:ae:e4:19:1b:ee
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-62,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MAIN:Time 61, idle 392668/s, free 120672, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:No change in channel 0 (still set to 229) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 40) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:22.9C Humidity:40%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1484 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1484.765625 and percentage 0.000000%
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/voltage/get
    Info:MAIN:Time 62, idle 415822/s, free 109280, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/battery/get
    Info:SENSOR:SHT : Status : 63 5C
    Info:CMD:[WebApp Cmd 'SHT_GetStatus ' Result] OK
    Info:MAIN:Time 63, idle 342705/s, free 120672, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 64, idle 381722/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 65, idle 389462/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 66, idle 398437/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 67, idle 391161/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/24 
    Info:MAIN:Time 68, idle 398569/s, free 122216, MQTT 1(1), bWifi 1, secondsWithNoPing 2, socks 2/24 
    
  • ADVERTISEMENT
  • #92 21845594
    leon22heart
    Level 3  
    Reflashed everything from 1st driver and posted logs. Post was discarded for being too long. If anyone wants a specific driver and firmware test, please ask.
  • ADVERTISEMENT
  • #93 21845928
    max4elektroda
    Level 23  
    Thank you so much for your tests.
    I still can't see, under which conditions the sensor acts like an SHT3x (meaning: reporting a valid serial ( != 00000000) and writing temp/hum values after SHT3x style measurement commands (0x24 0x16)).
    I can see it sometimes in your logs, but trying to get to that point again doesn't seem to work.
    Or did you find a reliable way during your tests?

    Also tried to buy the sensor, but sadly its not possible (shop not present in Germany and even if I order in Greek, as soon as I enter a German address, it switches to German shop...).

    So, let's stop this tests here, I will concentrate on building an SHT3/SHT4 driver to work with GXHTV4 as SHT4, so basically removing unnecessary code from the last version.
  • #94 21846081
    leon22heart
    Level 3  
    >>21845928 I believe that I found the most reliable way to flash and post logs. Will try to post again tomorrow the logs; today I was converting 5 BL602 smart switches. Check if anything is interesting and demands investigation, and afterwards commit your final draft for the driver. Let's make it as stable as possible.

Topic summary

The discussion centers on a Tuya/Smartlife temperature and humidity sensor based on the BK7238 chip with AU5068XA marking, purchased from Temu. The original firmware was successfully backed up and replaced with OpenBK firmware (version 238T). The device connects to a router and provides access to a WebGUI. The main challenge is identifying and troubleshooting the sensor pinout to obtain temperature and humidity readings using the OpenBK firmware. The user shared UART flasher logs indicating successful communication with the BK7238 chip at a baud rate of 921600 and flash memory identification. The inquiry seeks guidance on pin mapping and sensor interfacing for data acquisition under the OpenBK environment.
Summary generated by the language model.
ADVERTISEMENT