logo elektroda
logo elektroda
X
logo elektroda

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

leon22heart 1743 93
ADVERTISEMENT
  • #61 21839639
    leon22heart
    Level 3  
    >>21839632 with pins set as sht3 sda and sck ?

    Well something strange happened . Went for a full uart flash just to eliminate factors . rebooted and

    mqtt_pass ********
    mqtt_clientID TEMP4
    mqtt_host raspi5-home:1883
    Info:MQTT:mqtt_host raspi5-home is being resolved by gethostbyname
    Info:MAIN:Time 14, idle 401641/s, free 122312, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:mqtt_host raspi5-home resolution SUCCESS
    Info:MAIN:Time 15, idle 395846/s, free 122256, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 16, idle 414180/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 17, idle 414707/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 18, idle 397562/s, free 114232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:CMD:[WebApp Cmd 'loglevel 3' Result] OK
    Info:MAIN:Time 19, idle 397186/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 20, idle 405386/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.66 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=-60,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MAIN:Time 21, idle 405725/s, free 109912, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:SENSOR:SHT3X : Wrote command 0xE0
    Info:SENSOR:SHT3X : Read buffer: 65 82 BB 78 F4 CB (101 130 187 120 244 203)
    Info:SENSOR:GXHTV4 - try CHTX style calculation: Temp=25.43 - Hum=73.23
    Info:GEN:CHANNEL_Set channel 0 has changed to 243 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 243 to channel 0 
    Info:MQTT:Publishing val 243 to TEMP4/0/get retain=0
    Info:GEN:No change in channel 1 (still set to 53) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:24.3C Humidity:53%
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/0/get
    Info:MAIN:Time 22, idle 395133/s, free 122224, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 23, idle 401374/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 24, idle 412982/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 25, idle 427474/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 26, idle 419438/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 27, idle 417315/s, free 122240, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 28, idle 427661/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 29, idle 418977/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 30, idle 414442/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.66 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 400753/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:SENSOR:SHT3X : Wrote command 0xE0
    Info:SENSOR:SHT3X : Read buffer: 65 61 29 78 E2 2E (101 97 41 120 226 46)
    Info:SENSOR:GXHTV4 - try CHTX style calculation: Temp=25.34 - Hum=16.20
    Info:GEN:No change in channel 0 (still set to 243) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 53) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:24.3C Humidity:53%
    Info:MAIN:Time 32, idle 798567/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 33, idle 375068/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 


    and stop start

    nfo:CMD:[WebApp Cmd 'stopDriver SHT3X' Result] OK
    Info:MAIN:Time 119, idle 429288/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing 48, socks 2/24 
    Info:MAIN:Time 120, idle 412319/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing 49, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.66 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=-60,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MAIN:Time 121, idle 418509/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing 50, socks 2/24 
    Info:MAIN:Time 122, idle 414326/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing 51, socks 2/24 
    Info:MAIN:Time 123, idle 419376/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing 52, socks 2/24 
    Info:MAIN:Time 124, idle 420168/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing 53, socks 2/24 
    Info:MAIN:Time 125, idle 425688/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing 54, socks 2/24 
    Info:MAIN:Time 126, idle 385997/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing 55, socks 2/24 
    Info:MAIN:Time 127, idle 387061/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing 56, socks 2/24 
    Info:MAIN:Time 128, idle 378851/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing 57, socks 2/24 
    Info:MAIN:Time 129, idle 380590/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing 58, socks 2/24 
    Info:SENSOR:SHT3x: using pins 24 (SCL) and 17 (SDA)
    Info:SENSOR:SHT: Detecting sensor type...
    Info:SENSOR:DEBUG SHT_DetectSensorType() testing for SHT3x: 0x36 got ACK, 0x82 got ACK
    Info:SENSOR:SHT3X cmd: SNB=[656A7A49], CRC=[C3,E1]
    Info:SENSOR:SHT: ✓ Detected SHT3X (Valid CRC - Serial: 656A7A49)
    Info:SENSOR:SHT3X sensor detected
    Info:SENSOR:SHT : Status : 65 6A
    Info:MAIN:Started SHT3X.
    Info:CMD:[WebApp Cmd 'startDriver SHT3X' Result] OK
    Info:MAIN:Time 130, idle 392560/s, free 114232, MQTT 1(1), bWifi 1, secondsWithNoPing 59, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.66 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 131, idle 786517/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing 60, socks 2/24 
    Info:MAIN:Time 132, idle 393277/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing 61, socks 2/24 
    Info:SENSOR:SHT3X : Wrote command 0x24 0x16
    Info:SENSOR:SHT3X : Read buffer: 65 6A C3 7A 49 E1 (101 106 195 122 73 225)
    Info:GEN:No change in channel 0 (still set to 243) - ignoring
    
    Info:GEN:CHANNEL_Set channel 1 has changed to 47 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 47 to channel 1 
    Info:MQTT:Publishing val 47 to TEMP4/1/get retain=0
    Info:SENSOR:SHT3X_Measure: Temperature:24.3C Humidity:47%
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/1/get
    Info:MAIN:Time 133, idle 405696/s, free 122448, MQTT 1(1), bWifi 1, secondsWithNoPing 62, socks 2/24 
    Info:MAIN:Time 134, idle 403716/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing 63, socks 2/24 
    Info:MAIN:Time 135, idle 418881/s, free 122448, MQTT 1(1), bWifi 1, secondsWithNoPing 64, socks 2/24 
    Info:MAIN:Time 136, idle 423428/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing 65, socks 2/24 
    Info:MAIN:Time 137, idle 432311/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing 66, socks 2/24 
    Info:MAIN:Time 138, idle 850698/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing 67, socks 2/24 
    Info:MAIN:Time 139, idle 404605/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing 68, socks 2/24 
    Info:MAIN:Time 140, idle 388805/s, free 121920, MQTT 1(1), bWifi 1, secondsWithNoPing 69, socks 3/24 
    Info:GEN:dhcp=0 ip=192.168.1.66 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 141, idle 385656/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing 70, socks 2/24 
    Info:MAIN:Time 142, idle 381306/s, free 122536, MQTT 1(1), bWifi 1, secondsWithNoPing 71, socks 2/24 


    Shouldn't the serial remain constant due to the CRC check ?
  • ADVERTISEMENT
  • #62 21839671
    max4elektroda
    Level 23  
    leon22heart wrote:
    Shouldn't the serial remain constant due to the CRC check ?

    Yes, that's what I would expect/hoped.
    It really is strange: First log shows, sensor is identified as GXHTV4 - and showing "reasonable" values:

    Info:SENSOR:SHT3X : Wrote command 0xE0
    Info:SENSOR:SHT3X : Read buffer: 65 61 29 78 E2 2E (101 97 41 120 226 46)
    Info:SENSOR:GXHTV4 - try CHTX style calculation: Temp=25.34 - Hum=16.20
    Info:GEN:No change in channel 0 (still set to 243) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 53) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:24.3C Humidity:53%


    second log after "restart" - detects an SHT3X - still reasonable values:
    
    Info:SENSOR:SHT3X : Wrote command 0x24 0x16
    Info:SENSOR:SHT3X : Read buffer: 65 6A C3 7A 49 E1 (101 106 195 122 73 225)
    Info:GEN:No change in channel 0 (still set to 243) - ignoring
    
    Info:GEN:CHANNEL_Set channel 1 has changed to 47 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 47 to channel 1 
    Info:MQTT:Publishing val 47 to TEMP4/1/get retain=0
    Info:SENSOR:SHT3X_Measure: Temperature:24.3C Humidity:47%
    


    Very strange ...
  • #63 21839679
    leon22heart
    Level 3  
    >>21839671 No changes during reboot. I refuse to believe that a uart flash affects serial detection

    Info:SENSOR:SHT3x: using pins 24 (SCL) and 17 (SDA)
    Info:SENSOR:SHT: Detecting sensor type...
    Info:SENSOR:DEBUG SHT_DetectSensorType() testing for SHT3x: 0x36 got ACK, 0x82 got ACK
    Info:SENSOR:SHT3X cmd: SNB=[656A7A49], CRC=[C3,E1]
    Info:SENSOR:SHT: ✓ Detected SHT3X (Valid CRC - Serial: 656A7A49)
    Info:SENSOR:SHT3X sensor detected
    Info:SENSOR:SHT : Status : 65 6A
    Info:MAIN:Started SHT3X.
    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 [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 543276/s, free 134776, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:SENSOR:SHT3X : Wrote command 0x24 0x16
    Info:SENSOR:SHT3X : Read buffer: 65 6A C3 7A 49 E1 (101 106 195 122 73 225)
    Info:GEN:CHANNEL_Set channel 0 has changed to 243 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 243 to channel 0 
    Info:GEN:CHANNEL_Set channel 1 has changed to 47 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 47 to channel 1 
    Info:SENSOR:SHT3X_Measure: Temperature:24.3C Humidity:47%
    Info:MAIN:Time 2, idle 393908/s, free 134776, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 3, idle 399527/s, free 134776, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 4, idle 410596/s, free 134776, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 5, idle 410886/s, free 134776, 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 45475/s, free 127648, 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 308333/s, free 128040, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 8, idle 426865/s, free 107104, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 3/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 416131/s, free 122160, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:mqtt_host raspi5-home resolution SUCCESS
    Info:MAIN:Time 10, idle 382568/s, free 109480, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:GEN:dhcp=0 ip=192.168.1.66 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=-60,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 388856/s, free 122384, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:SENSOR:SHT3X : Wrote command 0x24 0x16
    Info:SENSOR:SHT3X : Read buffer: 65 6A C3 7A 49 E1 (101 106 195 122 73 225)
    Info:GEN:No change in channel 0 (still set to 243) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 47) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:24.3C Humidity:47%
    Info:MAIN:Time 12, idle 428355/s, free 122384, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 13, idle 388422/s, free 122384, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 14, idle 416182/s, free 122384, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 15, idle 414772/s, free 122384, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 16, idle 425259/s, free 122384, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 17, idle 416715/s, free 122384, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 18, idle 414954/s, free 122384, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 19, idle 388559/s, free 113448, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 20, idle 389195/s, free 122384, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.66 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=-60,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MAIN:Time 21, idle 399258/s, free 122384, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 


    new uart flash . Pin roles are set in the obk file . Log is the 1st boot after the flash

    Info:MAIN:Time 25, idle 413561/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 26, idle 413753/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 27, idle 417707/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 28, idle 410442/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 29, idle 414864/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 30, idle 387728/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.66 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 375168/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:SENSOR:SHT3X : Wrote command 0xE0
    Info:SENSOR:SHT3X : Read buffer: 66 70 76 76 8E 85 (102 112 118 118 142 133)
    Info:SENSOR:GXHTV4 - try CHTX style calculation: Temp=26.03 - Hum=46.27
    Info:GEN:CHANNEL_Set channel 0 has changed to 250 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 250 to channel 0 
    Info:MQTT:Publishing val 250 to TEMP4/0/get retain=0
    Info:GEN:CHANNEL_Set channel 1 has changed to 51 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 51 to channel 1 
    Info:MQTT:Publishing val 51 to TEMP4/1/get retain=0
    Info:SENSOR:SHT3X_Measure: Temperature:25.0C Humidity:51%
    Info:MAIN:Time 32, idle 386178/s, free 120432, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/0/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/1/get
    Info:MAIN:Time 33, idle 401303/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 34, idle 414543/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 35, idle 423523/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 36, idle 427699/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 37, idle 416723/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 38, idle 420380/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 39, idle 420808/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 40, idle 413597/s, free 120632, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.66 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 41, idle 425811/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:SENSOR:SHT3X : Wrote command 0xE0
    Info:SENSOR:SHT3X : Read buffer: 66 73 25 76 57 09 (102 115 37 118 87 9)
    Info:SENSOR:GXHTV4 - try CHTX style calculation: Temp=26.03 - Hum=14.63
    Info:GEN:No change in channel 0 (still set to 250) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 51) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:25.0C Humidity:51%
    Info:MAIN:Time 42, idle 429499/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 43, idle 384368/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 44, idle 419038/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 45, idle 420763/s, free 121688, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 46, idle 418156/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 47, idle 419537/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 48, idle 408565/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 49, idle 414177/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 50, idle 416169/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.66 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 51, idle 406559/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:SENSOR:SHT3X : Wrote command 0xE0
    Info:SENSOR:SHT3X : Read buffer: 66 68 8C 76 7E 07 (102 104 140 118 126 7)
    Info:SENSOR:GXHTV4 - try CHTX style calculation: Temp=26.01 - Hum=54.87
    Info:GEN:No change in channel 0 (still set to 250) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 51) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:25.0C Humidity:51%
    Info:MAIN:Time 52, idle 432387/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 53, idle 399411/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 54, idle 420769/s, free 114000, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 55, idle 420661/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 56, idle 421352/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 


    after a single reboot

    Info:MAIN:Main_Init_Before_Delay
    Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 1 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 SHT3x: 0x36 got ACK, 0x82 got ACK
    Info:SENSOR:SHT3X cmd: SNB=[65FC790E], CRC=[5C,66]
    Info:SENSOR:SHT: ✓ Detected SHT3X (Valid CRC - Serial: 65FC790E)
    Info:SENSOR:SHT3X sensor detected
    Info:SENSOR:SHT : Status : 65 FC
    Info:MAIN:Started SHT3X.
    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 [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 571667/s, free 134776, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:SENSOR:SHT3X : Wrote command 0x24 0x16
    Info:SENSOR:SHT3X : Read buffer: 65 FC 5C 79 0E 66 (101 252 92 121 14 102)
    Info:GEN:CHANNEL_Set channel 0 has changed to 247 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 247 to channel 0 
    Info:GEN:CHANNEL_Set channel 1 has changed to 47 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 47 to channel 1 
    Info:SENSOR:SHT3X_Measure: Temperature:24.7C Humidity:47%
    Info:MAIN:Time 2, idle 416215/s, free 134776, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 3, idle 395138/s, free 134776, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 4, idle 408493/s, free 134776, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 5, idle 405556/s, free 134776, 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 44388/s, free 128176, 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 324114/s, free 127960, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 8, idle 409480/s, free 119656, 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 415685/s, free 109456, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MQTT:mqtt_host raspi5-home resolution SUCCESS
    Info:MAIN:Time 10, idle 401868/s, free 113720, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.66 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 405040/s, free 122304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 


    I dont get it .
  • ADVERTISEMENT
  • #64 21839688
    divadiow
    Level 38  
    Whaaat. So it's actually just an SHT3x or...not
  • #65 21839690
    leon22heart
    Level 3  
    >>21839688 After a full uart flash its is SHT4 . After a reboot its SHT3 and remains like this across reboots.

    Added after 19 [minutes]:

    Setting it forcefully to SHT4 mode gives readings that are a little off . I have another sensor in the same room which uses CHT8310 sensor . Its readings are closer to the sht3 ones

    Mind of that they are 1m apart and one is without a case ( the sht3-4)

    Info:CMD:[WebApp Cmd 'logfeature 22 1' Result] OK
    Info:SENSOR:SHT3X : Wrote command 0x24 0x16
    Info:SENSOR:SHT3X : Read buffer: 65 FC 5C 79 0E 66 (101 252 92 121 14 102)
    Info:SENSOR:SHT3X_Measure: Temperature:24.7C Humidity:47%
    Info:SENSOR:Sensor type set to GXHTV4
    Info:CMD:[WebApp Cmd 'SHT_SetType 5' Result] OK
    Info:SENSOR:SHT3X : Wrote command 0xE0
    Info:SENSOR:SHT3X : Read buffer: 65 FC 5C 79 0E 66 (101 252 92 121 14 102)
    Info:SENSOR:GXHTV4 - try CHTX style calculation: Temp=25.73 - Hum=36.12
    Info:SENSOR:SHT3X_Measure: Temperature:24.7C Humidity:53%
    Info:SENSOR:SHT3X : Wrote command 0xE0
    Info:SENSOR:SHT3X : Read buffer: 65 FC 5C 79 0E 66 (101 252 92 121 14 102)
    Info:SENSOR:GXHTV4 - try CHTX style calculation: Temp=25.73 - Hum=36.12
    Info:SENSOR:SHT3X_Measure: Temperature:24.7C Humidity:53%
    Info:SENSOR:SHT3X : Wrote command 0xE0
    Info:SENSOR:SHT3X : Read buffer: 65 FC 5C 79 0E 66 (101 252 92 121 14 102)
    Info:SENSOR:GXHTV4 - try CHTX style calculation: Temp=25.73 - Hum=36.12
    Info:SENSOR:SHT3X_Measure: Temperature:24.7C Humidity:53%
    Info:SENSOR:SHT3X : Wrote command 0xE0
    Info:SENSOR:SHT3X : Read buffer: 65 FC 5C 79 0E 66 (101 252 92 121 14 102)
    Info:SENSOR:GXHTV4 - try CHTX style calculation: Temp=25.73 - Hum=36.12
    Info:SENSOR:SHT3X_Measure: Temperature:24.7C Humidity:53%


    and the 8310

    Info:CMD:[WebApp Cmd 'logfeature 10 1' Result] OK
    Info:CMD:[WebApp Cmd 'logfeature 21 1' Result] OK
    Info:CMD:[WebApp Cmd 'logfeature 22 1' Result] OK
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:DRV:DRV_BATTERY : battery voltage : 3435.000000 and percentage 100.000000%
    Info:SENSOR:DRV_CHT83XX_ReadEnv: Temperature:23.562500C Humidity:58.145141%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:DRV:DRV_BATTERY : battery voltage : 3418.898437 and percentage 100.000000%
  • #66 21839718
    max4elektroda
    Level 23  
    leon22heart wrote:
    >>21839688 After a full uart flash its is SHT4 . After a reboot its SHT3 and remains like this across reboots.

    I can only think that it "generates" a serial after some time, so on first run it reports "000000" (which my code interprets as "GXHTV4") and later presents the "serial", so interpreted as SH3x.

    Question is, why on the first tests, SHT3x driver did not work?!?!
  • ADVERTISEMENT
  • #67 21839720
    leon22heart
    Level 3  
    >>21839718 The only thing that is different this time is that I made a full flash and set the pins in the OBK file for ease of the process. Before, at one point I started using the OTA updates for speed and manually configured pins for each test. Last time I made a full flash was in the post you proposed to use OTA for speed.

    Should I flash a generic battery build and see if anything is different?

    This is the OBK I use

    Screenshot of FormOBKConfig showing Wi‑Fi/MQTT fields and a GPIO pin mapping table on the right.
  • #68 21839726
    max4elektroda
    Level 23  
    leon22heart wrote:
    Should i flash a generic battery build and see if anything is different ?

    Yes, maybe it will simply work now?!?
  • #69 21839738
    leon22heart
    Level 3  
    >>21839726

    Used OpenBK7238_QIO_1.18.261_battery . Same OBK

    Info:MAIN:Main_Init_Before_Delay
    Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 0 changes count.
    Info:CFG:CFG_SetDefaultLEDCorrectionTable: setting defaults
    Info:NTP:CLOCK driver initialized.
    Error:CMD:no file early.bat err -2
    Info:SENSOR:SHT : Status : 00 00
    Info:MAIN:Started SHT3X.
    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 [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 412046/s, free 131728, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:GEN:CHANNEL_Set channel 0 has changed to -450 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing -450 to channel 0 
    Info:GEN:No change in channel 1 (still set to 0) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:-45.0C Humidity:0%
    Info:MAIN:Time 2, idle 419524/s, free 131728, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 3, idle 403625/s, free 131728, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 4, idle 409003/s, free 131728, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 5, idle 409158/s, free 131728, 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 43953/s, free 124600, 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 360322/s, free 125168, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 8, idle 404709/s, free 125168, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 9, idle 408686/s, free 125168, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 10, idle 410507/s, free 125168, 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=e4:ae:e4:19:1b:ee
    Info:GEN:sta: 0, softap: 0, b/g/n
    Info:MAIN:Time 11, idle 406197/s, free 125168, 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:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
    Info:CMD:[WebApp Cmd 'logfeature 1 1' Result] OK
    Info:CMD:[WebApp Cmd 'logfeature 11 1' Result] OK
    Info:CMD:[WebApp Cmd 'logfeature 4 1' Result] OK
    Info:CMD:[WebApp Cmd 'logfeature 5 1' Result] OK
    Info:CMD:[WebApp Cmd 'logfeature 18 1' Result] OK
    Info:CMD:[WebApp Cmd 'logfeature 21 1' Result] OK
    Info:GEN:No change in channel 0 (still set to -450) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 0) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:-45.0C Humidity:0%
    Info:MAIN:Time 12, idle 342502/s, free 124952, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 13, idle 396092/s, free 124952, 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 14, idle 406009/s, free 119072, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:mqtt_host raspi5-home resolution SUCCESS
    Info:MAIN:Time 15, idle 380066/s, free 119016, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 16, idle 402786/s, free 110976, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 17, idle 400559/s, free 119296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 18, idle 407845/s, free 119296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 19, idle 412954/s, free 110352, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 20, idle 389682/s, free 119296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.66 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=-59,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP


    Your firmware OpenBK7238_QIO_GXHT4x_v01 . Same OBK

    Info:MAIN:Main_Init_Before_Delay
    Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 1 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 SHT3x: 0x36 got ACK, 0x82 got ACK
    Info:SENSOR:SHT3X cmd: SNB=[00000000], CRC=[81,81]
    Info:SENSOR:SHT: Detected serial "00000000" in SHT3X cmd - assuming GXHTV4)
    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:SHT3X sensor detected
    Info:SENSOR:SHT : Status : FF F2
    Info:MAIN:Started SHT3X.
    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 [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 565585/s, free 134864, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:SENSOR:SHT3X : Wrote command 0xE0
    Info:SENSOR:SHT3X : Read buffer: 67 0F 54 74 04 FD (103 15 84 116 4 253)
    Info:SENSOR:GXHTV4 - try CHTX style calculation: Temp=26.43 - Hum=32.99
    Info:GEN:CHANNEL_Set channel 0 has changed to 254 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 254 to channel 0 
    Info:GEN:CHANNEL_Set channel 1 has changed to 50 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 50 to channel 1 
    Info:SENSOR:SHT3X_Measure: Temperature:25.4C Humidity:50%
    Info:MAIN:Time 2, idle 986408/s, free 134864, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 3, idle 1383785/s, free 134864, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 4, idle 412045/s, free 134864, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 5, idle 412622/s, free 134864, 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 41589/s, free 127752, 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 366569/s, free 128312, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 8, idle 411594/s, free 128312, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 9, idle 410258/s, free 128312, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 10, idle 409841/s, free 128312, 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=e4:ae:e4:19:1b:ee
    Info:GEN:sta: 0, softap: 0, b/g/n
    Info:MAIN:Time 11, idle 411067/s, free 128312, 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:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
    Info:SENSOR:SHT3X : Wrote command 0xE0
    Info:SENSOR:SHT3X : Read buffer: 66 DF A4 74 E7 6F (102 223 164 116 231 111)
    Info:SENSOR:GXHTV4 - try CHTX style calculation: Temp=26.30 - Hum=64.24
    Info:GEN:CHANNEL_Set channel 0 has changed to 253 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 253 to channel 0 
    Info:GEN:CHANNEL_Set channel 1 has changed to 51 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 51 to channel 1 
    Info:SENSOR:SHT3X_Measure: Temperature:25.3C Humidity:51%
    Info:MAIN:Time 12, idle 332339/s, free 119792, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 13, idle 403410/s, free 128096, 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 14, idle 421625/s, free 121600, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MQTT:mqtt_host raspi5-home resolution SUCCESS
    Info:MAIN:Time 15, idle 404189/s, free 122144, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 16, idle 402633/s, free 122424, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 17, idle 422971/s, free 122424, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    


    Clearly your changes affected the sht3 driver. If not then we stumbled in something that is either by design by the devs on how a driver and pins are initialized or a bug.
    Practically for me the goal is achieved since we have temp hum readings. On the other hand i find it difficult to merge the changes into the git tree unless we troubleshoot the issue. In my opinion its an issue that is partially closed but not fully.
    Unless we name it partial support for the star sht3 based temp sensor and leave it there.
  • #70 21840720
    divadiow
    Level 38  
    @leon22heart was this bought from Ali Express? If yes, do you have a link to the exact product page please? I'd be interested to know what the score is with this GV4 sensor, assuming I get one.
  • #72 21842194
    leon22heart
    Level 3  
    Can I ask a favor? Is it possible in the future tests any firmware compiled to include the battery driver? It would also make the battery tests easier.
    Also, the sensor is identified sometimes during reboots as gv4 and sometimes as sht3. I would like to propose a delay before identifying the sensor so as to see if it affects the serial detection.
  • #73 21842255
    max4elektroda
    Level 23  
    Sorry I was busy the last days, so I didn't make any progress here.

    But I had some time today to work on the driver again. I also found a pdf document for GXHTV4 claiming exactly the same commands as SHT4X.

    “Command Overview” table listing GXHTV4 hex commands, returned bytes, and function descriptions.


    But we know by now, at least handling of command requesting the serial number used for SHT3x works different on a "real" SHT4x and your chip.

    So my actual approach is to switch the detection: first asking for a serial with SHT4 command "0x89".

    While SHT4x and GXHTV4 should answer with a serial number 4 bytes + 2 CRC bytes), SHT3x will interpret this as "soft reset" and reading 6 bytes will lead to only six "FF"s read.

    As requested, battery driver is included
  • #75 21842592
    leon22heart
    Level 3  
    >>21842255 Thank your effort. I also only found time today to further multiboot the device , check logs and behavior . As i see it newer devices are slowly coming out so new solutions are needed and that takes time . Will flash and report behavior .

    Ps1 UART flashed and rebooted . Sensor is recognized as SHT4X

    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: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: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 500259/s, free 134760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:GEN:CHANNEL_Set channel 0 has changed to 245 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 245 to channel 0 
    Info:GEN:CHANNEL_Set channel 1 has changed to 39 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 39 to channel 1 
    Info:SENSOR:SHT3X_Measure: Temperature:24.5C Humidity:39%
    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 : -1.341797 and percentage 0.000000%
    Info:MAIN:Time 2, idle 377014/s, free 134760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 3, idle 348603/s, free 134760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 4, idle 366844/s, free 134760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 5, idle 366185/s, free 134760, 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 10367/s, free 128152, 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
    Debug:CMD:loglevel set 6
    Info:CMD:[WebApp Cmd 'loglevel 6' Result] OK
    Debug:DRV:DRV_BATTERY : Measurement will run in  4 cycle
    Info:MAIN:Time 7, idle 279540/s, free 127952, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  3 cycle
    Info:MAIN:Time 8, idle 346337/s, free 127952, 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
    Debug:DRV:DRV_BATTERY : Measurement will run in  2 cycle
    Info:MAIN:Time 9, idle 338730/s, free 122072, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:mqtt_host raspi5-home resolution SUCCESS
    Debug:DRV:DRV_BATTERY : Measurement will run in  1 cycle
    Info:MAIN:Time 10, idle 355371/s, free 122016, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.66 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=-75,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/+
    Debug:DRV:DRV_BATTERY : Measurement will run in  0 cycle
    Info:MAIN:Time 11, idle 691890/s, free 113992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:SENSOR:SHT3X : Wrote SHT4x/GXHTV4 measure command 0xE0
    Debug:SENSOR:SHT3X : Read: temp=0X65D4 (CRC1=0X63 - calculated:0X63) hum=0X5EAA (CRC2=0X2C - calculated:0X2C)
    Info:GEN:CHANNEL_Set channel 0 has changed to 246 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 246 to channel 0 
    Info:MQTT:Publishing val 246 to TEMP4/0/get retain=0
    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:24.6C Humidity:40%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:DRV:DRV_BATTERY : ADC Value low device not on battery
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/0/get
    Debug:DRV:DRV_BATTERY : ADC binary Measurement : -1.000000 and channel 0
    Debug:DRV:DRV_BATTERY : Calculation with param : 2400.000000 4096.000000 2.290000
    Debug:DRV:DRV_BATTERY : Ref battery: 1000.000000, rest battery -2001.341797
    Info:MQTT:Publishing val -1 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : -1.341797 and percentage 0.000000%
    Debug:DRV:DRV_BATTERY : Measurement will run in  9 cycle
    Info:MAIN:Time 12, idle 350966/s, free 112104, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:MQTT:channelSet topic 4216500 with arg 246
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/1/get
    Debug:MQTT:channelSet topic 4216500 with arg 40
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/voltage/get
    Debug:MQTT:channelSet topic 4216500 with arg -1
    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 13, idle 337841/s, free 122296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  7 cycle
    Info:MAIN:Time 14, idle 362709/s, free 122296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  6 cycle
    Info:MAIN:Time 15, idle 367787/s, free 122296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  5 cycle
    Info:MAIN:Time 16, idle 368611/s, free 122296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  4 cycle
    Info:MAIN:Time 17, idle 369190/s, free 122296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  3 cycle
    Info:MAIN:Time 18, idle 363550/s, free 121680, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  2 cycle
    Info:MAIN:Time 19, idle 374514/s, free 122296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  1 cycle
    Info:MAIN:Time 20, idle 360820/s, free 122296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.66 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=-75,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 21, idle 365990/s, free 122296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:SENSOR:SHT3X : Wrote SHT4x/GXHTV4 measure command 0xE0
    Debug:SENSOR:SHT3X : Read: temp=0X65E6 (CRC1=0XC4 - calculated:0XC4) hum=0X5FD0 (CRC2=0XFB - calculated:0XFB)
    Info:GEN:No change in channel 0 (still set to 246) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 40) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:24.6C Humidity:40%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:DRV:DRV_BATTERY : ADC Value low device not on battery
    Debug:DRV:DRV_BATTERY : ADC binary Measurement : -1.000000 and channel 0
    Debug:DRV:DRV_BATTERY : Calculation with param : 2400.000000 4096.000000 2.290000
    Debug:DRV:DRV_BATTERY : Ref battery: 1000.000000, rest battery -2001.341797
    Info:MQTT:Publishing val -1 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : -1.341797 and percentage 0.000000%
    Debug:DRV:DRV_BATTERY : Measurement will run in  9 cycle
    Info:MAIN:Time 22, idle 379747/s, free 118968, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/voltage/get
    Debug:MQTT:channelSet topic 4216500 with arg -1
    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 23, idle 340348/s, free 120624, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  7 cycle
    Info:MAIN:Time 24, idle 355406/s, free 120624, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  6 cycle
    Info:MAIN:Time 25, idle 363480/s, free 122296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  5 cycle
    Info:MAIN:Time 26, idle 368448/s, free 122296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  4 cycle
    Info:MAIN:Time 27, idle 365605/s, free 122296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  3 cycle
    Info:MAIN:Time 28, idle 367427/s, free 122296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  2 cycle
    Info:MAIN:Time 29, idle 366842/s, free 122296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  1 cycle
    Info:MAIN:Time 30, idle 365475/s, free 122000, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.66 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=-74,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 31, idle 372837/s, free 122296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:SENSOR:SHT3X : Wrote SHT4x/GXHTV4 measure command 0xE0
    Debug:SENSOR:SHT3X : Read: temp=0X65EE (CRC1=0X7D - calculated:0X7D) hum=0X5E85 (CRC2=0X84 - calculated:0X84)
    Info:GEN:No change in channel 0 (still set to 246) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 40) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:24.6C Humidity:40%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:DRV:DRV_BATTERY : ADC Value low device not on battery
    Debug:DRV:DRV_BATTERY : ADC binary Measurement : -1.000000 and channel 0
    Debug:DRV:DRV_BATTERY : Calculation with param : 2400.000000 4096.000000 2.290000
    Debug:DRV:DRV_BATTERY : Ref battery: 1000.000000, rest battery -2001.341797
    Info:MQTT:Publishing val -1 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : -1.341797 and percentage 0.000000%
    Debug:DRV:DRV_BATTERY : Measurement will run in  9 cycle
    Info:MAIN:Time 32, idle 369994/s, free 120408, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/voltage/get
    Debug:MQTT:channelSet topic 4216500 with arg -1
    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 33, idle 342638/s, free 122296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  7 cycle
    Info:MAIN:Time 34, idle 365063/s, free 122296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  6 cycle
    Info:MAIN:Time 35, idle 369661/s, free 122296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  5 cycle
    Info:MAIN:Time 36, idle 363670/s, free 122296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  4 cycle
    Info:MAIN:Time 37, idle 371125/s, free 122296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  3 cycle
    Info:MAIN:Time 38, idle 359817/s, free 122296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  2 cycle
    Info:MAIN:Time 39, idle 367231/s, free 122296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  1 cycle
    Info:MAIN:Time 40, idle 360670/s, free 122296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.66 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=-74,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 41, idle 359643/s, free 109672, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Debug:SENSOR:SHT3X : Wrote SHT4x/GXHTV4 measure command 0xE0
    Debug:SENSOR:SHT3X : Read: temp=0X660B (CRC1=0X64 - calculated:0X64) hum=0X5FF2 (CRC2=0X1F - calculated:0X1F)
    Info:GEN:CHANNEL_Set channel 0 has changed to 247 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 247 to channel 0 
    Info:MQTT:Publishing val 247 to TEMP4/0/get retain=0
    Info:GEN:No change in channel 1 (still set to 40) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:24.7C Humidity:40%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:DRV:DRV_BATTERY : ADC Value low device not on battery
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/0/get
    Debug:DRV:DRV_BATTERY : ADC binary Measurement : -1.000000 and channel 0
    Debug:DRV:DRV_BATTERY : Calculation with param : 2400.000000 4096.000000 2.290000
    Debug:DRV:DRV_BATTERY : Ref battery: 1000.000000, rest battery -2001.341797
    Info:MQTT:Publishing val -1 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : -1.341797 and percentage 0.000000%
    Debug:DRV:DRV_BATTERY : Measurement will run in  9 cycle
    Info:MAIN:Time 42, idle 347358/s, free 120640, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Debug:MQTT:channelSet topic 4216500 with arg 247
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/voltage/get
    Debug:MQTT:channelSet topic 4216500 with arg -1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/battery/get
    Debug:MQTT:channelSet topic 4216500 with arg 0


    2nd reboot

    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: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: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 501982/s, free 134760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:GEN:CHANNEL_Set channel 0 has changed to 245 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 245 to channel 0 
    Info:GEN:CHANNEL_Set channel 1 has changed to 39 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 39 to channel 1 
    Info:SENSOR:SHT3X_Measure: Temperature:24.5C Humidity:39%
    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 : -1.341797 and percentage 0.000000%
    Info:MAIN:Time 2, idle 377326/s, free 134760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 3, idle 348877/s, free 134760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 4, idle 366828/s, free 134760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 5, idle 366216/s, free 134760, 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 10357/s, free 128152, 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 295175/s, free 127936, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 8, idle 357307/s, free 115312, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 3/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 362215/s, free 122056, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:mqtt_host raspi5-home resolution SUCCESS
    Info:MAIN:Time 10, idle 342391/s, free 122000, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.66 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=-74,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 353226/s, free 101352, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:GEN:No change in channel 0 (still set to 245) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 39) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:24.5C Humidity:39%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:DRV:DRV_BATTERY : ADC Value low device not on battery
    Info:MQTT:Publishing val -1 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : -1.341797 and percentage 0.000000%
    Info:MAIN:Time 12, idle 357832/s, free 112320, 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 345235/s, free 122280, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 14, idle 354262/s, free 122280, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 15, idle 350365/s, free 122280, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 16, idle 359180/s, free 122280, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 17, idle 361636/s, free 122192, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 18, idle 356554/s, free 122280, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 19, idle 351911/s, free 122280, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 20, idle 357913/s, free 122280, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.66 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=-73,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MAIN:Time 21, idle 366174/s, free 122280, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:No change in channel 0 (still set to 245) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 39) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:24.5C Humidity:39%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:DRV:DRV_BATTERY : ADC Value low device not on battery
    Info:MQTT:Publishing val -1 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : -1.341797 and percentage 0.000000%
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/voltage/get
    Info:MAIN:Time 22, idle 371413/s, free 120624, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/battery/get


    3rd boot

    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: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: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 511165/s, free 134760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:GEN:CHANNEL_Set channel 0 has changed to 246 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 246 to channel 0 
    Info:GEN:CHANNEL_Set channel 1 has changed to 40 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 40 to channel 1 
    Info:SENSOR:SHT3X_Measure: Temperature:24.6C Humidity:40%
    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 : -1.341797 and percentage 0.000000%
    Info:MAIN:Time 2, idle 381202/s, free 134760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 3, idle 328615/s, free 134760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 4, idle 344430/s, free 134760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 5, idle 346826/s, free 134760, 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 9102/s, free 127624, 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 286137/s, free 119672, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 8, idle 373349/s, free 115352, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 3/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 353179/s, free 113792, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:mqtt_host raspi5-home resolution SUCCESS
    Info:MAIN:Time 10, idle 334155/s, free 113736, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.66 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=-73,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 354750/s, free 114016, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:No change in channel 0 (still set to 246) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 40) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:24.6C Humidity:40%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:DRV:DRV_BATTERY : ADC Value low device not on battery
    Info:MQTT:Publishing val -1 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : -1.341797 and percentage 0.000000%
    Info:MAIN:Time 12, idle 375575/s, free 120648, 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 724220/s, free 122320, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 14, idle 373102/s, free 120104, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 15, idle 368663/s, free 112472, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 16, idle 378863/s, free 112464, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 17, idle 359194/s, free 114008, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 18, idle 365058/s, free 122312, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 19, idle 365304/s, free 120304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 20, idle 366351/s, free 122312, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.66 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=-72,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MAIN:Time 21, idle 361695/s, free 122312, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:No change in channel 0 (still set to 246) - ignoring
    
    Info:GEN:CHANNEL_Set channel 1 has changed to 39 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 39 to channel 1 
    Info:MQTT:Publishing val 39 to TEMP4/1/get retain=0
    Info:SENSOR:SHT3X_Measure: Temperature:24.6C Humidity:39%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:DRV:DRV_BATTERY : ADC Value low device not on battery
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/1/get
    Info:MQTT:Publishing val -1 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : -1.341797 and percentage 0.000000%
    Info:MAIN:Time 22, idle 358912/s, free 120664, 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 23, idle 331966/s, free 122312, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 24, idle 361664/s, free 122312, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
  • #76 21843593
    leon22heart
    Level 3  
    Small update. After 15 reboots the sensor is always recognized as SHT4X. Its readings match closely those of an analog temp-hum meter. So I conclude that the driver is stable, accurate and can be pushed to the git tree.
    So I need some final help for the BAT_ADC and BAT_RELAY. By inspecting the board I conclude that there is no BAT_RELAY (matches the Tuya firmware, which does not give %, only high, mid, low readings).
    I think I identified the BAT_ADC but I have a reading of varying voltage ranging from 1501–1512 mV. Is it a possibly correct reading based on that the line is a resistor divider?
    Using 2 AAA batteries that give 3550 mV on my other sensor using BK7231N.

    After confirming this, will proceed to a presentation guide, full tear-down and obk profile.
  • #77 21843607
    max4elektroda
    Level 23  
    I'm sorry to say that I never did anything related to battery.
    From the images I would also rule out any relay but I'm no help regarding battery driver.

    But on reading the temperature: If you want to use the device with battery, you will probably need to send MCU into deep sleep for some minutes before waking up, reading, do something with the read values and go back to sleep.
    The original firmware sleeps for 240 seconds between readings.
    But, since you don't send your data into tuya cloud, you need some target to "store" the read values...



    If you could do me a favor:
    Could you try the attached firmware?

    It's a "plain" SHT3X version with one additional command "SHT_GetSerial".
    If I'm right, the device should not give correct readings after a start but using SHT_GetSerial should (on first run) display serial 00000000, later another one, and this should somehow switch the sensor to SHT3X mode, if I understood the logs right...

    That's just for me to see if my thesis is correct.
  • #78 21843610
    max4elektroda
    Level 23  
    Next days I will strip down the driver a bit, I think we can now agree that SHT4x mode also works fine on GXHTV4, so all special handling for a third "family" GXHTV4 can be deleted.
  • #79 21843612
    leon22heart
    Level 3  
    >>21843607 Anything you want to test . Also i use a template in HA to store temp values. Will test afterwards the PinDeepSleep , CHT_Cycle and CHT_Alert function behavior

    max4elektroda wrote:
    Next days I will strip down the driver a bit, I think we can now agree that SHT4x mode also works fine on GXHTV4, so all special handling for a third "family" GXHTV4 can be deleted.


    I agree. Better have a SHT4X driver for all chips.


    Info:MAIN:Module reboot in 2...
    Info:MAIN:Time 14, idle 418483/s, free 108712, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Module reboot in 1...
    Info:MAIN:Main_Init_Before_Delay
    Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 12 changes count.
    Info:NTP:CLOCK driver initialized.
    Error:CMD:no file early.bat err -2
    Info:SENSOR:SHT : Status : 00 00
    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 559594/s, free 129536, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:GEN:CHANNEL_Set channel 0 has changed to -450 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing -450 to channel 0 
    Info:GEN:No change in channel 1 (still set to 0) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:-45.0C Humidity:0%
    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 : 641.015625 and percentage 0.000000%
    Info:MAIN:Time 2, idle 444817/s, free 129448, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 3, idle 378729/s, free 129448, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 4, idle 417025/s, free 129448, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 5, idle 416606/s, free 129448, 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 45962/s, free 122328, 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 325471/s, free 122672, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 8, idle 406263/s, free 122672, 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 414509/s, free 116160, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:mqtt_host raspi5-home resolution SUCCESS
    Info:MAIN:Time 10, idle 381200/s, free 108432, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.66 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=-68,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 390607/s, free 108712, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:No change in channel 0 (still set to -450) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 0) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:-45.0C Humidity:0%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1554 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1554.492188 and percentage 0.000000%
    Info:MAIN:Time 12, idle 450348/s, free 115128, 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 347003/s, free 117016, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 14, idle 389964/s, free 117016, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 15, idle 391392/s, free 96088, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 16, idle 388648/s, free 117016, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 17, idle 380527/s, free 117016, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 18, idle 392663/s, free 117016, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 19, idle 401998/s, free 117016, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 20, idle 415132/s, free 116384, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:GEN:dhcp=0 ip=192.168.1.66 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=-69,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MAIN:Time 21, idle 414585/s, free 117016, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:No change in channel 0 (still set to -450) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 0) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:-45.0C Humidity:0%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1560 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1560.351563 and percentage 0.000000%
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/voltage/get
    Info:MAIN:Time 22, idle 454600/s, free 113928, 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 369206/s, free 117016, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 24, idle 412706/s, free 116384, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 25, idle 402509/s, free 117016, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 26, idle 418345/s, free 117016, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 27, idle 409550/s, free 117016, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 28, idle 416961/s, free 117016, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 29, idle 415313/s, free 116400, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 30, idle 418312/s, free 117016, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:dhcp=0 ip=192.168.1.66 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=-68,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MAIN:Time 31, idle 396844/s, free 117016, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:No change in channel 0 (still set to -450) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 0) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:-45.0C Humidity:0%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1568 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1568.554688 and percentage 0.000000%
    Info:MAIN:Time 32, idle 455983/s, free 115128, 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 33, idle 354690/s, free 117016, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 34, idle 407077/s, free 116400, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 35, idle 412955/s, free 117016, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 36, idle 421278/s, free 117016, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 37, idle 412747/s, free 117016, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    
  • #80 21843743
    max4elektroda
    Level 23  
    Hi, could you please test, if the new command
    SHT_GetSerial
    Will give an answer and especially, if it changes the sensor to answer to SHT3x temperature/ humidity commands?
  • #81 21843753
    leon22heart
    Level 3  
    >>21843743 Sorry, thought that the command was executed at boot automatically. Will test and post in about 3 hours.

    PS1 result of SHT_GetSerial .I don't see any visible change in Temp-Hum readings.

    Info:GEN:sta:rssi=-55,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 231, idle 417117/s, free 117104, MQTT 1(1), bWifi 1, secondsWithNoPing 160, socks 2/24 
    Debug:API:POST to api/cmnd
    Debug:CMD:cmd [SHT_GetSerial ]
    Debug:SENSOR:SHT3X read serial: SNB=[00000000], CRC=[81,81]
    Info:SENSOR:SHT3X Serial: 00000000 (Valid CRC)
    Info:CMD:[WebApp Cmd 'SHT_GetSerial ' Result] OK
    Info:GEN:No change in channel 0 (still set to -450) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 0) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:-45.0C Humidity:0%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Debug:DRV:DRV_BATTERY : ADC binary Measurement : 3207.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 -120.898438
    Info:MQTT:Publishing val 1879 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1879.101563 and percentage 0.000000%
    Debug:DRV:DRV_BATTERY : Measurement will run in  9 cycle
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/voltage/get
    Info:MAIN:Time 232, idle 443653/s, free 114016, MQTT 1(1), bWifi 1, secondsWithNoPing 161, socks 2/24 
    Debug:MQTT:channelSet topic 4219280 with arg 1879
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/battery/get
    Debug:MQTT:channelSet topic 4219280 with arg 0
    Debug:DRV:DRV_BATTERY : Measurement will run in  8 cycle
    Info:MAIN:Time 233, idle 346816/s, free 117104, MQTT 1(1), bWifi 1, secondsWithNoPing 162, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  7 cycle
    Info:MAIN:Time 234, idle 387216/s, free 117104, MQTT 1(1), bWifi 1, secondsWithNoPing 163, socks 2/24 
    Debug:DRV:DRV_BATTERY : Measurement will run in  6 cycle
    Info:MAIN:Time 235, idle 391511/s, free 117104, MQTT 1(1), bWifi 1, secondsWithNoPing 164, socks 2/24 
  • ADVERTISEMENT
  • #82 21844162
    max4elektroda
    Level 23  
    Thanks for testing, this sensor is still a mystery to me. While here ...
    leon22heart wrote:
    Info:SENSOR:SHT3x: using pins 24 (SCL) and 17 (SDA)
    Info:SENSOR:SHT: Detecting sensor type...
    Info:SENSOR:DEBUG SHT_DetectSensorType() testing for SHT3x: 0x36 got ACK, 0x82 got ACK
    Info:SENSOR:SHT3X cmd: SNB=[65FC790E], CRC=[5C,66]
    Info:SENSOR:SHT: ✓ Detected SHT3X (Valid CRC - Serial: 65FC790E)
    Info:SENSOR:SHT3X sensor detected
    Info:SENSOR:SHT : Status : 65 FC
    Info:MAIN:Started SHT3X.
    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
    [... snipp ...]
    Info:HTTP:TCP server listening
    Info:MAIN:Time 1, idle 571667/s, free 134776, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:SENSOR:SHT3X : Wrote command 0x24 0x16
    Info:SENSOR:SHT3X : Read buffer: 65 FC 5C 79 0E 66 (101 252 92 121 14 102)
    Info:GEN:CHANNEL_Set channel 0 has changed to 247 (flags 0)


    ... and here

    leon22heart wrote:
    Info:SENSOR:SHT3X : Wrote command 0x24 0x16
    Info:SENSOR:SHT3X : Read buffer: 65 FC 5C 79 0E 66 (101 252 92 121 14 102)
    Info:SENSOR:SHT3X_Measure: Temperature:24.7C Humidity:47%



    It acts (and "answers") like an SHT3x

    now it doesn't?!?

    But it works as SHT4x, so let's leave it as it is for now.
  • #83 21844181
    leon22heart
    Level 3  
    >>21844162 The only thing different than before is the full UART flash and, after a point, setting the pins from OBK file during flash and not from GUI.
    Will try tomorrow to flash each firmware with a pin-blank OBK file and gather logs and flash firmware with pins in OBK in order to compare them. Any specific firmware you want me to test or should I go with all of them?
  • #84 21844217
    max4elektroda
    Level 23  
    No, the only "academic" question is how we managed to get the sensor to act like an SHT3x one, even if usually it works like an SHT4x one.
    I hoped we would by sending the serial command, but this (alone) won't work, obviously. Maybe one other test would be, if after sending the serialGet and rebooting, if the serial delivered "changed" as in the logs before and this does the trick?

    But since we have a working config, distinguishing it by first testing for an SHT4x and then for SHT3, this would be only trying to "reproduce" the results, so no stress for doing this kind of tests.
    It would only be to find a way (if we can) to switch GXHTV4 to "SHT3X mode"...
  • #85 21844231
    leon22heart
    Level 3  
    >>21844217 If I remember from the lofs the serial changed only after a full UART flash. One other case I can think is the OTA update and when you flash a build that is not the same as the one you fully UART flashed.
    For example after UART flashing the official battery build I then started OTA flashing your firmwares. Maybe there is some incompatibility there that affects the driver behavior.
    I think the driver started working correctly only after I UART flashed your firmware.
  • #86 21844238
    max4elektroda
    Level 23  
    That would be easy to check. Actually you have the non working test version. If you ota to the working one you had before, will it start working again?
  • #87 21844445
    leon22heart
    Level 3  
    >>21844238 Very interesting. First boot after ota to OpenBK7238_Next_SHT4x_try

    Info:OTA:close OTA, additional 0x200 FF added 
    Info:OTA:19e000
    Info:OTA:close OTA, addr 0x19e400
    Debug:OTA:445952 total bytes written
    Debug:API:POST to api/reboot
    Debug:API:Rebooting in 3 seconds...
    Debug:DRV:DRV_BATTERY : Measurement will run in  2 cycle
    Debug:CFG:CFG_CalcChecksum: header size 4, total size 3584, rem size 3580
    Debug:CFG:HAL_Configuration_SaveConfigMemory: saved 3584 bytes to 1970176
    Info:MAIN:Time 109, idle 405340/s, free 116992, MQTT 0(1), bWifi 1, secondsWithNoPing 43, socks 2/24 
    Info:MAIN:Module reboot in 2...
    Debug:DRV:DRV_BATTERY : Measurement will run in  1 cycle
    Info:MAIN:Time 110, idle 397863/s, free 117080, MQTT 0(1), bWifi 1, secondsWithNoPing 44, 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=-65,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MAIN:Module reboot in 1...
    orrect 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 540209/s, free 134760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:GEN:CHANNEL_Set channel 0 has changed to 1299 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1299 to channel 0 
    Info:GEN:CHANNEL_Set channel 1 has changed to 26 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 26 to channel 1 
    Info:SENSOR:SHT3X_Measure: Temperature:129.9C Humidity:26%
    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 : 600.000000 and percentage 0.000000%
    Info:MAIN:Time 2, idle 959190/s, free 134672, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 3, idle 351714/s, free 134672, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 4, idle 390271/s, free 134672, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 5, idle 389922/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 42986/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_DISCONNECTED - 2
    Info:MAIN:Time 7, idle 366741/s, free 128896, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 8, idle 395115/s, free 128896, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 9, idle 395251/s, free 128896, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 10, idle 395651/s, free 128896, 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=e4:ae:e4:19:1b:ee
    Info:GEN:sta: 0, softap: 0, b/g/n
    Info:MAIN:Time 11, idle 394822/s, free 128112, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Registered for wifi changes
    Info:MAIN:Connecting to SSID [LOLIDAS24TP_IOT]
    Info:GEN:No change in channel 0 (still set to 1299) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 26) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:129.9C Humidity:26%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:DRV:DRV_BATTERY : battery voltage : 1487.109375 and percentage 0.000000%
    Info:MAIN:Time 12, idle 389331/s, free 126424, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
    Info:MAIN:Time 13, idle 303153/s, free 127864, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 14, idle 398697/s, free 127864, 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 15, idle 397528/s, free 113784, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:mqtt_host raspi5-home resolution SUCCESS
    Info:MAIN:Time 16, idle 368503/s, free 121920, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    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 17, idle 381966/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 18, idle 395955/s, free 122112, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 19, idle 394276/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 20, idle 388710/s, free 122200, 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=-65,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MAIN:Time 21, idle 386807/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:No change in channel 0 (still set to 1299) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 26) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:129.9C Humidity:26%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1487 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1487.695313 and percentage 0.000000%
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/voltage/get
    Info:MAIN:Time 22, idle 413694/s, free 120656, 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 326807/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 24, idle 369308/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 25, idle 399334/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 26, idle 396321/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 27, idle 391530/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 28, idle 393419/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 29, idle 391911/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 30, idle 397404/s, free 122200, 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=-64,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MAIN:Time 31, idle 388274/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:No change in channel 0 (still set to 1299) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 26) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:129.9C Humidity:26%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1486 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1486.523438 and percentage 0.000000%
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/voltage/get
    Info:MAIN:Time 32, idle 424940/s, free 104808, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/battery/get
    Info:MAIN:Time 33, idle 349081/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 34, idle 389487/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 35, idle 403819/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 36, idle 392128/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 37, idle 370567/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 38, idle 381609/s, free 121584, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 


    and 2nd boot after

    Info:MAIN:Module reboot in 1...
    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 539808/s, free 134760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:GEN:CHANNEL_Set channel 0 has changed to 1299 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1299 to channel 0 
    Info:GEN:CHANNEL_Set channel 1 has changed to 26 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 26 to channel 1 
    Info:SENSOR:SHT3X_Measure: Temperature:129.9C Humidity:26%
    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 : 624.023438 and percentage 0.000000%
    Info:MAIN:Time 2, idle 419003/s, free 134672, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 3, idle 351727/s, free 134672, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 4, idle 389847/s, free 134672, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 5, idle 390397/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 36604/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 320174/s, free 127864, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 8, idle 383558/s, free 127864, 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 396189/s, free 121968, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:mqtt_host raspi5-home resolution SUCCESS
    Info:MAIN:Time 10, idle 383258/s, free 113624, 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=-64,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 385523/s, free 113904, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:No change in channel 0 (still set to 1299) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 26) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:129.9C Humidity:26%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1501 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1501.757813 and percentage 0.000000%
    Info:MAIN:Time 12, idle 425967/s, free 107696, MQTT 1(1), bWifi 1, secondsWithNoPing -1, 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 13, idle 325234/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 14, idle 378232/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 15, idle 382604/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 16, idle 391275/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 17, idle 373286/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 18, idle 391251/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 19, idle 380936/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 20, idle 383627/s, free 122208, 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=-64,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MAIN:Time 21, idle 386392/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:No change in channel 0 (still set to 1299) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 26) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:129.9C Humidity:26%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1502 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1502.929688 and percentage 0.000000%
    Info:MAIN:Time 22, idle 417328/s, free 120320, 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 23, idle 357717/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 24, idle 399534/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 25, idle 393178/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 26, idle 406675/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 27, idle 390362/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 28, idle 401994/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 29, idle 396162/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 30, idle 400542/s, free 122208, 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=-64,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MAIN:Time 31, idle 397745/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:No change in channel 0 (still set to 1299) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 26) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:129.9C Humidity:26%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1503 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1503.515625 and percentage 0.000000%
    Info:MAIN:Time 32, idle 418908/s, free 120552, 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 33, idle 347627/s, free 122120, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 34, idle 390843/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 35, idle 365871/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 36, idle 371240/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 37, idle 370590/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 38, idle 366232/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 39, idle 361374/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 40, idle 367149/s, free 122208, 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=-64,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MAIN:Time 41, idle 370735/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:No change in channel 0 (still set to 1299) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 26) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:129.9C Humidity:26%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1503 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1503.515625 and percentage 0.000000%
    Info:MAIN:Time 42, idle 386309/s, free 120320, 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 43, idle 348195/s, free 104984, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 44, idle 746508/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 


    Its clear . OTA was messing the drivers. If you want me to test older firmwares just for curiousity's sake tell me.
  • #88 21844467
    max4elektroda
    Level 23  
    In this situation, were version 4 is detected but not working: can you try if it now answers to SHT3X commands by setting it to version 3 (if this command is present in this version, I lost track a little):

    SHT_SetType 3
  • #89 21844515
    leon22heart
    Level 3  
    >>21844467 3 commands SHT_SetType 3 , SHT_SetType 4 , SHT_SetType 5

    SHT_SetType 3

    Info:MAIN:Time 6909, idle 388057/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing 6843, socks 2/24 
    Info:MAIN:Time 6910, idle 372259/s, free 121592, MQTT 1(1), bWifi 1, secondsWithNoPing 6844, socks 3/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 6911, idle 373591/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing 6845, socks 2/24 
    Info:GEN:No change in channel 0 (still set to 1299) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 26) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:129.9C Humidity:26%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1493 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1493.554688 and percentage 0.000000%
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/voltage/get
    Info:MAIN:Time 6912, idle 391294/s, free 120552, MQTT 1(1), bWifi 1, secondsWithNoPing 6846, socks 2/24 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/battery/get
    Info:MAIN:Time 6913, idle 338219/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing 6847, socks 2/24 
    Info:CMD:CMD_Restart: will reboot in 3
    Info:CMD:[WebApp Cmd 'reboot' Result] OK
    Info:MAIN:Time 6914, idle 378933/s, free 122208, MQTT 1(1), bWifi 1, secondsWithNoPing 6848, socks 2/24 
    Info:MAIN:Module reboot in 2...
    Info:MAIN:Time 6915, idle 392402/s, free 120536, MQTT 1(1), bWifi 1, secondsWithNoPing 6849, socks 2/24 
    Info:MAIN:Module reboot in 1...
    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 509130/s, free 134760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:GEN:CHANNEL_Set channel 0 has changed to 1299 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1299 to channel 0 
    Info:GEN:CHANNEL_Set channel 1 has changed to 26 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 26 to channel 1 
    Info:SENSOR:SHT3X_Measure: Temperature:129.9C Humidity:26%
    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 : 618.750000 and percentage 0.000000%
    Info:MAIN:Time 2, idle 395125/s, free 134672, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 3, idle 329782/s, free 134672, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 4, idle 367899/s, free 134672, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 5, idle 368314/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 39232/s, free 127544, 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 312360/s, free 127888, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 8, idle 381048/s, free 127888, 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 384419/s, free 113072, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MQTT:mqtt_host raspi5-home resolution SUCCESS
    Info:MAIN:Time 10, idle 385611/s, free 113648, 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 373633/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:No change in channel 0 (still set to 1299) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 26) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:129.9C Humidity:26%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1487 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1487.695313 and percentage 0.000000%
    Info:MAIN:Time 12, idle 421840/s, free 112040, 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 345127/s, free 120560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 14, idle 397614/s, free 120560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 15, idle 383531/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 16, idle 407936/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 17, idle 396972/s, free 109176, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 18, idle 397713/s, free 122232, 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 19, idle 391198/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 20, idle 394003/s, free 122232, 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 21, idle 396806/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:No change in channel 0 (still set to 1299) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 26) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:129.9C Humidity:26%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1490 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1490.625000 and percentage 0.000000%
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/voltage/get
    Info:MAIN:Time 22, idle 433011/s, free 119144, 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 343916/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 24, idle 364490/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 25, idle 362109/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 26, idle 395094/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 27, idle 390512/s, free 119920, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 28, idle 396513/s, free 120560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 29, idle 386600/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 30, idle 392468/s, free 120560, 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 31, idle 390494/s, free 120560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:No change in channel 0 (still set to 1299) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 26) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:129.9C Humidity:26%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1496 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1496.484375 and percentage 0.000000%
    Info:MAIN:Time 32, idle 411479/s, free 118672, 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 33, idle 341767/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 34, idle 380114/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 35, idle 385236/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 36, idle 398040/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    


    SHT_SetType 4

    Info:MAIN:Time 157, idle 394265/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing 91, socks 2/24 
    Info:MAIN:Time 158, idle 393314/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing 92, socks 2/24 
    Info:MAIN:Time 159, idle 407598/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing 93, socks 2/24 
    Info:MAIN:Time 160, idle 391756/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing 94, 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 161, idle 393960/s, free 121600, MQTT 1(1), bWifi 1, secondsWithNoPing 95, socks 3/24 
    Info:CMD:CMD_Restart: will reboot in 3
    Info:CMD:[WebApp Cmd 'reboot' Result] OK
    Info:GEN:No change in channel 0 (still set to 1299) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 26) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:129.9C Humidity:26%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1492 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1492.968750 and percentage 0.000000%
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/voltage/get
    Info:MAIN:Time 162, idle 392110/s, free 119144, MQTT 1(1), bWifi 1, secondsWithNoPing 96, socks 2/24 
    Info:MAIN:Module reboot in 2...
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic TEMP4/battery/get
    Info:MAIN:Time 163, idle 362807/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing 97, socks 2/24 
    Info:MAIN:Module reboot in 1...
    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 506968/s, free 134760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:GEN:CHANNEL_Set channel 0 has changed to 1299 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1299 to channel 0 
    Info:GEN:CHANNEL_Set channel 1 has changed to 26 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 26 to channel 1 
    Info:SENSOR:SHT3X_Measure: Temperature:129.9C Humidity:26%
    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 : 619.335938 and percentage 0.000000%
    Info:MAIN:Time 2, idle 395341/s, free 134672, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 3, idle 329769/s, free 134672, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 4, idle 367901/s, free 134672, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 5, idle 368309/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 42161/s, free 127544, 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 317938/s, free 119416, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 8, idle 391402/s, free 112144, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 3/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 384255/s, free 110600, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:mqtt_host raspi5-home resolution SUCCESS
    Info:MAIN:Time 10, idle 379354/s, free 109312, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 3/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: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 383153/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:No change in channel 0 (still set to 1299) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 26) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:129.9C Humidity:26%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1495 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1495.898438 and percentage 0.000000%
    Info:MAIN:Time 12, idle 429141/s, free 120344, 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 334736/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 14, idle 390407/s, free 113928, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 15, idle 399960/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 16, idle 399085/s, free 112256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 17, idle 397153/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 18, idle 396215/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 19, idle 397016/s, free 109608, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 20, idle 389872/s, free 122232, 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=-63,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MAIN:Time 21, idle 387568/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:No change in channel 0 (still set to 1299) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 26) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:129.9C Humidity:26%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1496 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1496.484375 and percentage 0.000000%
    Info:MAIN:Time 22, idle 428090/s, free 120576, 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 23, idle 351977/s, free 119976, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:SENSOR:Sensor type set to SHT4X
    Info:CMD:[WebApp Cmd 'SHT_SetType 4' Result] OK
    Info:MAIN:Time 24, idle 387772/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 25, idle 364619/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 26, idle 366858/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 27, idle 380812/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 28, idle 402004/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 29, idle 381712/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 30, idle 392856/s, free 122144, 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=-63,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MAIN:Time 31, idle 390609/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:No change in channel 0 (still set to 1299) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 26) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:129.9C Humidity:26%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1498 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1498.828125 and percentage 0.000000%
    Info:MAIN:Time 32, idle 425199/s, free 120344, 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 33, idle 350433/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 34, idle 393357/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    


    SHT_SetType 5

    Info:MAIN:Time 71, idle 385589/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing 5, socks 2/24 
    Info:CMD:CMD_Restart: will reboot in 3
    Info:CMD:[WebApp Cmd 'reboot' Result] OK
    Info:GEN:No change in channel 0 (still set to 1299) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 26) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:129.9C Humidity:26%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1500 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1500.585938 and percentage 0.000000%
    Info:MAIN:Time 72, idle 429514/s, free 120576, MQTT 1(1), bWifi 1, secondsWithNoPing 6, socks 2/24 
    Info:MAIN:Module reboot in 2...
    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 73, idle 329270/s, free 122232, MQTT 1(1), bWifi 1, secondsWithNoPing 7, socks 2/24 
    Info:MAIN:Module reboot in 1...
    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 506674/s, free 134760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:GEN:CHANNEL_Set channel 0 has changed to 1299 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1299 to channel 0 
    Info:GEN:CHANNEL_Set channel 1 has changed to 26 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 26 to channel 1 
    Info:SENSOR:SHT3X_Measure: Temperature:129.9C Humidity:26%
    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 : 618.750000 and percentage 0.000000%
    Info:MAIN:Time 2, idle 394782/s, free 134672, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 3, idle 329752/s, free 134672, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 4, idle 368319/s, free 134672, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 5, idle 367836/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 39597/s, free 127544, 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 307502/s, free 115240, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 8, idle 382917/s, free 127864, 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 389371/s, free 121888, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MQTT:mqtt_host raspi5-home resolution SUCCESS
    Info:MAIN:Time 10, idle 380000/s, free 121832, 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=-63,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 385192/s, free 122112, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:GEN:No change in channel 0 (still set to 1299) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 26) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:129.9C Humidity:26%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1492 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1492.968750 and percentage 0.000000%
    Info:MAIN:Time 12, idle 423126/s, free 112008, 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 353309/s, free 122112, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 14, idle 380713/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 15, idle 393272/s, free 113896, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:SENSOR:Sensor type set to GXHTV4
    Info:CMD:[WebApp Cmd 'SHT_SetType 5' Result] OK
    Info:MAIN:Time 16, idle 379609/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 17, idle 388709/s, free 121992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 18, idle 387160/s, free 120528, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 19, idle 390843/s, free 107904, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:MAIN:Time 20, idle 389834/s, free 109576, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/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 21, idle 386572/s, free 109576, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/24 
    Info:SENSOR:GXHTV4 - try CHTX style calculation: Temp=124.97 - Hum=87.60
    Info:GEN:No change in channel 0 (still set to 1299) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 26) - ignoring
    
    Info:SENSOR:SHT3X_Measure: Temperature:129.9C Humidity:26%
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:MQTT:Publishing val 1494 to TEMP4/voltage/get retain=0
    Info:MQTT:Publishing val 0 to TEMP4/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 1494.726563 and percentage 0.000000%
    Info:MAIN:Time 22, idle 414375/s, free 120312, 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 23, idle 323402/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 24, idle 366692/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 25, idle 371809/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 26, idle 367795/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 27, idle 363147/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 28, idle 363490/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 29, idle 366646/s, free 121992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    Info:MAIN:Time 30, idle 397740/s, free 122200, 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=-63,ssid=LOLIDAS24TP_IOT,bssid=9c:05:d6:ba:e3:ee,channel=11,cipher_type:CCMP
    Info:MAIN:Time 31, idle 385025/s, free 122200, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/24 
    
  • #90 21844730
    max4elektroda
    Level 23  
    I still can't see the difference...

    One (last?) try could be

    Setting to type 3 and then calling get status, which is not called for SHT4x during startup

    SHT_SetType 3
    SHT_GetStatus

    Thanks for your patience...

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