logo elektroda
logo elektroda
X
logo elektroda

OpenBeken on WiFi Smoke Detectors (Tuya CBU Chip) - ESP8266 Alternative, MQTT & Setup

toboxx 25200 162
ADVERTISEMENT
  • #1 20335782
    toboxx
    Level 3  
    I bought 4 Wifi Smoke detectors, hoping they would contain ESP8266, but they contain a different type of CPU. I was able to download openbeken successfully with uartprogram using OpenBK7231N_QIO_1.15.182.bin.

    Wifi and MQTT work, but the device is not in the supported devices list. How to proceed? The Tuya-Commands of older versions of this device can be seen here:

    https://templates.blakadder.com/YG400A.html

    How can I get the Smoke Detecting part running with openbeken?

    Regards!

    OpenBeken on WiFi Smoke Detectors (Tuya CBU Chip) - ESP8266 Alternative, MQTT & Setup OpenBeken on WiFi Smoke Detectors (Tuya CBU Chip) - ESP8266 Alternative, MQTT & Setup OpenBeken on WiFi Smoke Detectors (Tuya CBU Chip) - ESP8266 Alternative, MQTT & Setup
  • ADVERTISEMENT
  • #2 20335917
    p.kaczmarek2
    Moderator Smart Home
    Hello, this is related topic:
    Motion sensor with BK7231N
    but judging from that:
    OpenBeken on WiFi Smoke Detectors (Tuya CBU Chip) - ESP8266 Alternative, MQTT & Setup
    I'd suggest that autoexec.bat (create file in LittleFS):
    
    startDriver TuyaMCU
    startDriver tmSensor
    setChannelType 1 readonly
    // link dpid to channel 1
    linkTuyaMCUOutputToChannel 1 val 1
    setChannelType 4 readonly
    // link dpid to channel 4
    linkTuyaMCUOutputToChannel 4 val 4
    setChannelType 14 readonly
    // link dpid to channel 14
    linkTuyaMCUOutputToChannel 14 val 14
    

    Reboot and then remember that TuyaMCU only wakes up module when something happen.... (so WiFi module will go offline after some time).... and check what are the values?

    Also please post full log from Web App here so I can see if TuyaMCU communication happens...
    Helpful post? Buy me a coffee.
  • #3 20336193
    toboxx
    Level 3  
    Thanks for the quick answer!

    Here is some output from the web console:

    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1511, idle 471258/s, free 77040, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1512, idle 471045/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1513, idle 469552/s, free 65560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1514, idle 460164/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1515, idle 475531/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1516, idle 469258/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1517, idle 466264/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1518, idle 462853/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1519, idle 467565/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1520, idle 470959/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:GEN:dhcp=0 ip=192.168.207.164 gate=192.168.207.1 mask=255.255.255.0 mac=fc:67:1f:6b:17:5e 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-80,ssid=ToBoX,bssid=2c:91:ab:f8:37:43 ,channel=11,cipher_type:CCMP
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1521, idle 465071/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1522, idle 466884/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1523, idle 466777/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1524, idle 465439/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1525, idle 472224/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1526, idle 461350/s, free 76952, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1527, idle 467360/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1528, idle 469039/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1529, idle 470598/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1530, idle 457684/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:GEN:dhcp=0 ip=192.168.207.164 gate=192.168.207.1 mask=255.255.255.0 mac=fc:67:1f:6b:17:5e 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-80,ssid=ToBoX,bssid=2c:91:ab:f8:37:43 ,channel=11,cipher_type:CCMP
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1531, idle 464330/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1532, idle 469037/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1533, idle 471123/s, free 77040, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1534, idle 464503/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1535, idle 471074/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1536, idle 467582/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1537, idle 470041/s, free 68648, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1538, idle 463508/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1539, idle 464966/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1540, idle 466922/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:GEN:dhcp=0 ip=192.168.207.164 gate=192.168.207.1 mask=255.255.255.0 mac=fc:67:1f:6b:17:5e 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-79,ssid=ToBoX,bssid=2c:91:ab:f8:37:43 ,channel=11,cipher_type:CCMP
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1541, idle 459800/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1542, idle 462099/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1543, idle 470211/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1544, idle 469246/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1545, idle 462748/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1546, idle 473710/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1547, idle 472209/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1548, idle 465198/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1549, idle 475411/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1550, idle 474822/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:GEN:dhcp=0 ip=192.168.207.164 gate=192.168.207.1 mask=255.255.255.0 mac=fc:67:1f:6b:17:5e 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-79,ssid=ToBoX,bssid=2c:91:ab:f8:37:43 ,channel=11,cipher_type:CCMP
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1551, idle 462293/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1552, idle 473686/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1553, idle 468065/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1554, idle 471087/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1555, idle 463260/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1556, idle 470201/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:API:GET of api/pins
    Debug:API:GET of api/channels
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1557, idle 462037/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1558, idle 463437/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1559, idle 461175/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1560, idle 465987/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:GEN:dhcp=0 ip=192.168.207.164 gate=192.168.207.1 mask=255.255.255.0 mac=fc:67:1f:6b:17:5e 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-78,ssid=ToBoX,bssid=2c:91:ab:f8:37:43 ,channel=11,cipher_type:CCMP
    Debug:API:GET of api/pins
    Debug:API:GET of api/info
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1561, idle 444911/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1562, idle 469012/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1563, idle 460782/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1564, idle 471331/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1565, idle 470534/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1566, idle 468709/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1567, idle 458254/s, free 77040, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1568, idle 468543/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1569, idle 464278/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1570, idle 465935/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:GEN:dhcp=0 ip=192.168.207.164 gate=192.168.207.1 mask=255.255.255.0 mac=fc:67:1f:6b:17:5e 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-79,ssid=ToBoX,bssid=2c:91:ab:f8:37:43 ,channel=11,cipher_type:CCMP
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1571, idle 456282/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1572, idle 468744/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 1573, idle 467098/s, free 77256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    


    Here is the output of the LOG-TX pin:

    
    
    V:BK7231N_1.0.1
    REG:cpsr     spsr     r13      r14
    SVC:000000D3          00401C1C 000033AC
    IRQ:000000d2 00000010 00401e0c 000c5930 
    FIR:000000d1 00000010 00401ffc 00086d6c 
    SYS:000000df          0040192c 00000158 
    ST:00010001
    J 0x10000
    bk_misc_init_start_type 1 10001
    prvHeapInit-start addr:0x4132c8, size:118072
    [Flash]id:0xeb6015
    sctrl_sta_ps_init
    cset:0 0 0 0
    Entering initLog()...
    Commands registered!
    initLog() done!
    
    Main_Init_Before_Delay done
    
    Main_Init_Delay
    
    delaying start
    bandgap_calm_in_efuse=0x64
    [load]bandgap_calm=0x64->0x24,vddig=4->5
    [FUNC]rwnxl_init
    [bk]tx_txdesc_flush
    [FUNC]intc_init
    [FUNC]calibration_main
    gpio_level=1,txpwr_state=15
                               user define rfcali mode:1 
    #Startup delayed 0ms#
    get rfcali_mode:1
    #Startup delayed 10ms#
    #Startup delayed 20ms#
    #Startup delayed 30ms#
    #Startup delayed 40ms#
    #Startup delayed 50ms#
    #Startup delayed 60ms#
    #Startup delayed 70ms#
    #Startup delayed 80ms#
    #Startup delayed 90ms#
    #Startup delayed 100ms#
    #Startup delayed 110ms#
    #Startup delayed 120ms#
    #Startup delayed 130ms#
    #Startup delayed 140ms#
    #Startup delayed 150ms#
    #Startup delayed 160ms#
    #Startup delayed 170ms#
    #Startup delayed 180ms#
    #Startup delayed 190ms#
    #Startup delayed 200ms#
    #Startup delayed 210ms#
    #Startup delayed 220ms#
    #Startup delayed 230ms#
    #Startup delayed 240ms#
    #Startup delayed 250ms#
    #Startup delayed 260ms#
    #Startup delayed 270ms#
    #Startup delayed 280ms#
    #Startup delayed 290ms#
    #Startup delayed 300ms#
    #Startup delayed 310ms#
    #Startup delayed 320ms#
    #Startup delayed 330ms#
    #Startup delayed 340ms#
    calibration_main over
                         flash txpwr table:0xf
    dif g and n20 ID in flash:4
    dif g and n40 ID in flash:4
    read txpwr tab from flash success
    temp in flash is:250
    xtal in flash is:28
    xtal_cali:28
    --init_xtal = 28
                    #Startup delayed 350ms#
    [FUNC]ps_init
    [FUNC]func_init_extended OVER!!!
    
    start_type:1
    Version:
    Initializing TCP/IP stack
    #Startup delayed 360ms#
    app_init finished
    #Startup delayed 370ms#
    Info:MAIN:Main_Init_Before_Delay
    Info:CFG:####### Boot Count 7 #######
    Warn:C#Startup delayed 380ms#
    FG:CFG_InitAndLoad: Correct config has been loaded with 4 changes count.
    Error:CMD:no file #Startup delayed 390ms#
    early.bat err -2
    Info:GEN:PIN_SetupPins pins have been set up.
    Info:MAIN:Main_Init_Befor#Startup delayed 400ms#
    e_Delay done
    Info:MAIN:Main_Init_Delay
    #Startup delayed 410ms#
    #Startup delayed 420ms#
    #Startup delayed 430ms#
    #Startup delayed 440ms#
    #Startup delayed 450ms#
    #Startup delayed 460ms#
    #Startup delayed 470ms#
    #Startup delayed 480ms#
    #Startup delayed 490ms#
    #Startup delayed 500ms#
    #Startup delayed 510ms#
    #Startup delayed 520ms#
    #Startup delayed 530ms#
    #Startup delayed 540ms#
    #Startup delayed 550ms#
    #Startup delayed 560ms#
    #Startup delayed 570ms#
    #Startup delayed 580ms#
    #Startup delayed 590ms#
    #Startup delayed 600ms#
    #Startup delayed 610ms#
    #Startup delayed 620ms#
    #Startup delayed 630ms#
    #Startup delayed 640ms#
    #Startup delayed 650ms#
    #Startup delayed 660ms#
    #Startup delayed 670ms#
    #Startup delayed 680ms#
    #Startup delayed 690ms#
    #Startup delayed 700ms#
    #Startup delayed 710ms#
    #Startup delayed 720ms#
    #Startup delayed 730ms#
    #Startup delayed 740ms#
    
    starting....
    
    Main_Init_Delay done
    Info:MAIN:Main_Init_Delay done
    Info:MAIN:Main_Init_After_Delay
    Info:MAIN:Using SSID [ToBoX]
    Info:MAIN:Using Pass [XXXXXXXXXXXXXX]
    Info:MQTT:MQTT_RegisterCallback called for bT obk1F6B175E/ subT obk1F6B175E/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/obk1F6B175E/ subT cmnd/obk1F6B175E/+
    Info:MAIN:Started TuyaMCU.
    Info:MAIN:Started tmSensor.
    Info:GEN:Channel 1 type changed to readonly
    Error:CMD:cmd // NOT found (args link dpid to channel 1)
    Info:GEN:Channel 4 type changed to readonly
    Error:CMD:cmd // NOT found (args link dpid to channel 4)
    Info:GEN:Channel 14 type changed to readonly
    Error:CMD:cmd // NOT found (args link dpid to channel 14)
    Info:MAIN:Main_Init_After_Delay done
    cal_bias!
    cal dpll!
    temperature_type=1
                      temp_code:-14 - adc_code:328 - adc_trend:[13]:250->[5]:330
    Info:MAIN:Time 1, idle 681776/s, free 82544, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 2, idle 481710/s, free 82544, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 3, idle 482063/s, free 82544, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 4, idle 481929/s, free 82544, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 5, idle 481928/s, free 82544, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
    Info:MAIN:ssid:ZZZZZZZZZ key:XXXXXXXXXX
    normal_connect
    supplicant_main_exiting
    supplicant_exit_done
    [sa_sta]MM_RESET_REQ
    [bk]tx_txdesc_flush
    [sa_sta]ME_CONFIG_REQ
    [sa_sta]ME_CHAN_CONFIG_REQ
    [sa_sta]MM_START_REQ
    hapd_intf_add_vif,type:2, s:0, id:0
    wpa_dInit
    wpa_supplicant_req_scan
    Setting scan[retry16] request: 0.100000 sec
    MANUAL_SCAN_REQ
    enter low level!
    mac fc:67:1f:6b:17:5e
    leave low level!
    net_wlan_add_netif done!, vif_idx:0
    wpa_supplicant_scan
    wpa_drv_scan
    wpa_send_scan_req
    ht in scan
    scan_start_req_handler
    Info:MAIN:Time 6, idle 476794/s, free 76888, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 7, idle 483231/s, free 74984, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
    wpa_driver_scan_cb
    wpa_get_scan_rst:6
    cipher2security 2 2 16 16
                             wpa_supplicant_connect
    Cancelling scan request
    wpa_driver_associate
    ssid:ZZZZZZZ, 1
    found scan rst rssi -71 < -50
    dis ht_support
    no ht in scan
    scan_start_req_handler
    aready open
    aready open
    Info:MAIN:Time 8, idle 292241/s, free 71912, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 9, idle 0/s, free 71912, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 10, idle 0/s, free 71912, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
    Info:GEN:dhcp=0 ip=0.0.0.0 gate=0.0.0.0 mask=0.0.0.0 mac=fc:67:1f:6b:17:5e 
    Info:GEN:sta: 0, softap: 0, b/g/n
    Info:MAIN:wl_status 3
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTING
    me_set_ps_disable:840 0 0 1 0 3
    sm_auth_send:1
    sm_auth_handler
    ht NOT in assoc req
    sm_assoc_rsp_handler
    rc_init: station_id=0 format_mod=0 pre_type=0 short_gi=0 max_bw=0
                                                                     rc_init: nss_max=0 mcs_max=255 r_idx_min=0 r_idx_max=11 no_samples=10
                                                                                                                                          ---------SM_CONNECT_IND_ok
    wpa_driver_assoc_cb
    Cancelling scan request
    __l2_packet_send: ret 0
    __l2_packet_send: ret 0
    hapd_intf_add_key CCMP
    add sta_mgmt_get_sta
    sta:0, vif:0, key:0
    sta_mgmt_add_key
    add hw key idx:24
    hapd_intf_add_key CCMP
    add is_broadcast_ether_addr
    sta:255, vif:0, key:2
    add hw key idx:2
    ctrl_port_hdl:1
    me_set_ps_disable:840 0 0 0 0 3
    sta_ip_start
    
    configuring interface mlan (with DHCP client)WARN: TCPIP mutex is NOT locked (1) caller 5808B
    WARN: TCPIP mutex is NOT locked (1) caller 5808B
    Info:MAIN:wl_status 10
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED
    ip_addr: a4cfa8c0
    Info:MAIN:wl_status 11
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED
    
    new ie: 0 : 54 6f 42 6f 58 
    new ie: 1 : 82 84 8b 96 8c 12 98 24 
    new ie: 3 : 6 
    new ie: 30 : 1 0 0 f ac 4 1 0 0 f ac 4 1 0 0 f ac 2 c 0 
    new ie: 2d : ad 9 3 ff ff 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 
    
    Info:MAIN:Time 11, idle 153878/s, free 74568, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 12, idle 481112/s, free 74392, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:MQTT:mqtt_userName openbeken
    mqtt_pass XXXXXXXX
    mqtt_clientID obk1F6B175E
    mqtt_host 192.168.207.240:1883
    Info:MAIN:Time 13, idle 476069/s, free 62632, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:MQTT:mqtt_connection_cb: Successfully connected
    Info:MQTT:mqtt_subscribed to obk1F6B175E/+/set
    Info:MQTT:mqtt_subscribed to cmnd/obk1F6B175E/+
    Info:MQTT:MQTT client "obk1F6B175E" request cb: err 0
    Info:MQTT:MQTT client "obk1F6B175E" request cb: err 0
    Info:MAIN:Time 14, idle 456677/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 15, idle 462612/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 16, idle 469618/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 17, idle 470674/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 18, idle 479993/s, free 62824, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:MAIN:Time 19, idle 483450/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 20, idle 479732/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:GEN:dhcp=0 ip=192.168.207.164 gate=192.168.207.1 mask=255.255.255.0 mac=fc:67:1f:6b:17:5e 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-74,ssid=ZZZZZZZ,bssid=50:e6:36:ee:69:9c ,channel=6,cipher_type:CCMP
    Info:MAIN:Time 21, idle 463491/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 22, idle 470233/s, free 65912, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:MAIN:Time 23, idle 473819/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 24, idle 476846/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 25, idle 469907/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 26, idle 477904/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 27, idle 484614/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 28, idle 468688/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 29, idle 465803/s, free 74304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:MAIN:Time 30, idle 471764/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:GEN:dhcp=0 ip=192.168.207.164 gate=192.168.207.1 mask=255.255.255.0 mac=fc:67:1f:6b:17:5e 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-74,ssid=ZZZZZZZZ,bssid=50:e6:36:ee:69:9c ,channel=6,cipher_type:CCMP
    Info:MAIN:Time 31, idle 476829/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Boot complete time reached (30 seconds)
    Info:CFG:####### Set Boot Complete #######
    Info:MAIN:Time 32, idle 465698/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 33, idle 476070/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 34, idle 480546/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:CMD:loglevel set 6
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 35, idle 957228/s, free 65912, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 36, idle 469830/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 37, idle 464953/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 38, idle 477769/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 39, idle 480985/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 40, idle 484251/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:GEN:dhcp=0 ip=192.168.207.164 gate=192.168.207.1 mask=255.255.255.0 mac=fc:67:1f:6b:17:5e 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-74,ssid=ZZZZZZZZ,bssid=50:e6:36:ee:69:9c ,channel=6,cipher_type:CCMP
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 41, idle 465852/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 42, idle 477212/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 43, idle 480250/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 44, idle 484891/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 45, idle 463093/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 46, idle 475065/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 47, idle 480916/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 48, idle 483465/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 49, idle 468156/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 50, idle 478702/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:GEN:dhcp=0 ip=192.168.207.164 gate=192.168.207.1 mask=255.255.255.0 mac=fc:67:1f:6b:17:5e 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-73,ssid=ZZZZZZZ,bssid=50:e6:36:ee:69:9c ,channel=6,cipher_type:CCMP
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 51, idle 475237/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 52, idle 485636/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 53, idle 468077/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 54, idle 945056/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 55, idle 477291/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 56, idle 478716/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 57, idle 476620/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 58, idle 480219/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 59, idle 483325/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 60, idle 475534/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:GEN:dhcp=0 ip=192.168.207.164 gate=192.168.207.1 mask=255.255.255.0 mac=fc:67:1f:6b:17:5e 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-74,ssid=ZZZZZZZ,bssid=50:e6:36:ee:69:9c ,channel=6,cipher_type:CCMP
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 61, idle 479017/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 62, idle 488516/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 63, idle 483722/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 64, idle 474971/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 65, idle 485754/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 66, idle 479134/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 67, idle 485151/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 68, idle 474525/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 69, idle 484055/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 0, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=0
    Info:MAIN:Time 70, idle 483982/s, free 74520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:GEN:dhcp=0 ip=192.168.207.164 gate=192.168.207.1 mask=255.255.255.0 mac=fc:67:1f:6b:17:5e 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-73,ssid=ZZZZZZZZZ,bssid=50:e6:36:ee:69:9c ,channel=6,cipher_type:CCMP
    
  • ADVERTISEMENT
  • #4 20336206
    Ipn00tic
    Level 8  
    this topic interests me! I bought 2 of the same and I have the same problem, in the same situation. I'll stay tuned to the topic because I need the same help.
  • #5 20336218
    p.kaczmarek2
    Moderator Smart Home
    @toboxx , for some reason your log does not contain TuyaMCU messages.
    Did you artificially powered up the WiFi chip?
    You should disconnect all programming wires now and "wake up" device by pressing a test button, so it tries to report smoke by UART and then show log.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #6 20336230
    toboxx
    Level 3  
    Yes, I removed the 3.3V line, but the device remained ON. Other thing that is strange: I don't see a second chip that looks like a MCU. Shouldn't there be the OpenBeken chip AND a second Chip that runs the TuyaMCU? I only see a 10 pin chip near the smoke detecting unit with pads GND, PA0, PA2 and VCC.

    I know ESP8266 and ESP32 designs pretty well but the whole OpenBeken / Tuya-World is new to me, so sorry for asking dumb questions or doing stupid things...

    OpenBeken on WiFi Smoke Detectors (Tuya CBU Chip) - ESP8266 Alternative, MQTT & Setup OpenBeken on WiFi Smoke Detectors (Tuya CBU Chip) - ESP8266 Alternative, MQTT & Setup OpenBeken on WiFi Smoke Detectors (Tuya CBU Chip) - ESP8266 Alternative, MQTT & Setup OpenBeken on WiFi Smoke Detectors (Tuya CBU Chip) - ESP8266 Alternative, MQTT & Setup OpenBeken on WiFi Smoke Detectors (Tuya CBU Chip) - ESP8266 Alternative, MQTT & Setup

    Added after 2 [hours]:

    Even after 2 hours of battery operation and no wires attached, the device is still running. I can access the web interface, and it is "connected online" in MQTT. Should I run one of the other devices with standard firmware and attach some log wires?
  • #7 20336460
    p.kaczmarek2
    Moderator Smart Home
    Then maybe your device is very different than the one at linked Blakadder website.
    Maybe you have non-TuyaMCU version.
    Can you check where the traces of RX and TX from WiFi module go?
    Can you check where the smoke sensor and the buttons are connected?
    We can make it supported directly, without TuyaMCU....

    PS: We just got working basis sleep/power saving mode on BK... that will be useful for you
    Helpful post? Buy me a coffee.
  • #8 20336680
    toboxx
    Level 3  
    I did my best:

    I managed to find the following connections:

    Pin 6: RX2 (indicated on board) Pin 7: Log TX (indicated on board) Pin 15: TX (indicated on board) Pin 16: RX (indicated on board) Pin 17: Reset Button on side, accessible through hole Pin 18: RST on Pin-Header with RX/TX/RX2/VCC/GND Pin 19: Tamper-Switch on backside Pin 21: see below

    The Test-Button seems to be connected to the other 10pin chip only. The 10pin chip seems to also have connections to the LED and Photoreceptor inside the black smoke detection chamber.

    Probably the magic happens with Pin 21 on the CBU, it is the only connection between the 10pin chip and the CBU that I found (there is a 1k resistor in this connection).

    Hope that helps. Anything more I could check? Does anyone know what the black part with 3 connections might be?
  • ADVERTISEMENT
  • #9 20339020
    p.kaczmarek2
    Moderator Smart Home
    
    21	P15	I/O	Common GPIO, which can be reused as SPI_CS (Correspond to Pin 13 of the IC)
    

    You can do two things now.
    Try setting P15 to digital input or something in OBK and try getting some measurement (but that would require activating the smoke sensor?)

    Or retry TuyaMCU approach and double-check with USB to UART converter all those RX/TX lines. This is strange, but I always saw those smoke sensors using TuyaMCU and not connecting to WiFi module sensors directly.
    Helpful post? Buy me a coffee.
  • #10 20339155
    toboxx
    Level 3  
    When I set P15 to Digital Input, I see that it goes high during test-alarm:

    obk1F6B175E/0/get 0
    obk1F6B175E/0/get 1
    obk1F6B175E/0/get 0

    I measured the voltage on all pins with your open firmware and with stock firmware. VCC (PIN14) is always 3.3V, also on stock firmware when the device is not reachable on Wifi.

    All pins are low except:
    PIN 6 7: High on open firmware, 0 on stock firmware
    PIN 11: 0 on open firmware, 2.6V on stock firmware (?)
    PIN14: 3.3V
    PIN 15 16: High on open firmware, 0 on stock firmware
    PIN 17: 0 on open firmware, high on stock firmware
    PIN 18: high on both firmwares
    PIN 19: 0 on open firmware, high on stock firmware
    PIN 20: 1.7V on open firmware (?), 0 on stock firmware
    PIN 21: 0 on both firmwares, goes high when testing alarm for 1 second

    Added after 6 [hours] 16 [minutes]:

    Here is the log output of the original firmware, after pressing the test button.
  • #11 20342170
    Ipn00tic
    Level 8  
    This equipment doesn't look like a tuyaMCU, it just has a 10-pin chip with the inscription BA50F1V V5K00KG3 .

    in pin settings:
    9 dinput (back cover button)
    17 LED (front red LED)
    15 dinput (high while smoke is inside)
    28 dinput (reset button, high but stays low after being pressed for 3 seconds. then it goes back to high)

    The front button doesn't seem to have a connection with the CBU chip, it just silences the buzzer and does the test. and it does it without needing configuration as well as the blue LED.

    I didn't find connection of the blue LED with the chip but it is doing its function without configuration.

    The red LED must be turned on with the lid button to warn that it is not well fitted??!??!

    I don't know what to do with the reset button, does it only reset the original firmware settings or does it have another function?

    The firmware does not automatically send the dinput to be read on the home assistant like it does with a relay or led, I don't know how to write the code in the home assistant discovery configuration for pin 15 dinput to appear on the home assistant when it detects smoke.
  • #12 20342287
    p.kaczmarek2
    Moderator Smart Home
    Are you sure it doesn't publish dInput? From what I can see, it's enabled for both "broadcast self state every minute" and for onChange publishes:
    OpenBeken on WiFi Smoke Detectors (Tuya CBU Chip) - ESP8266 Alternative, MQTT & Setup

    Added after 1 [seconds]:

    Are you sure it doesn't publish dInput? From what I can see, it's enabled for both "broadcast self state every minute" and for onChange publishes:
    OpenBeken on WiFi Smoke Detectors (Tuya CBU Chip) - ESP8266 Alternative, MQTT & Setup
    Helpful post? Buy me a coffee.
  • #13 20342288
    toboxx
    Level 3  
    Ipn00tic,

    thanks for helping with this device. Some notes:
    - there must be some way to detect battery low voltage, currently I have no idea how it is being done
    - I guess that the wifi controller sleeps for 8 hours to then wake up and do some heartbeat signaling, but apart from that it seems to sleep until the 10pin chip wakes it up. The wifi controller can distinguish between "there is really smoke" and "the test button was pressed". I don't know if there is some kind of serial protocol between the 2 chips or if it is being done using the standard digital inputs.

    Looking forward to your ideas...
  • #14 20342297
    p.kaczmarek2
    Moderator Smart Home
    You will need to enable PowerSave for this device. We're currently working on that with @btsimonh

    Or maybe even Deep Sleep, idk, PowerSave might not be enough. But Deep Sleep is not ready yet.

    Regarding battery, is ADC3 used? Maybe set ADC role to that pin and check if it reads anything
    Helpful post? Buy me a coffee.
  • #15 20343015
    Ipn00tic
    Level 8  
    with this configuration
    OpenBeken on WiFi Smoke Detectors (Tuya CBU Chip) - ESP8266 Alternative, MQTT & Setup

    appears like this
    OpenBeken on WiFi Smoke Detectors (Tuya CBU Chip) - ESP8266 Alternative, MQTT & Setup
    in home assistant I only automatically discover the LED that appears as an on/off relay. or else I don't know how to look for the dinput in the home assistant....
  • #16 20343241
    p.kaczmarek2
    Moderator Smart Home
    @Ipn00tic it seems I now understand what you are asking for.
    If you are asking for automatic configuration, then it's just not implemented yet.
    You have to write the YAML yourself.
    OpenBeken will publish dInput value at the obkName/channelName/get topic, you can receive that value and handle it however you like.
    Helpful post? Buy me a coffee.
  • #17 20343281
    Ipn00tic
    Level 8  
    I don't know how to write YAML. But I think your answer helped. I'll search for YAML configurations that look identical and try to write that YAML. Should I write the YAML in the firmware in Home Assistant discovery or inside the Home Assistant itself?
  • #18 20343294
    p.kaczmarek2
    Moderator Smart Home
    Yaml is written in configuration.yaml of Home Assistant.

    For a true/false value, you most likely need a "binary_sensor".

    To get the "binary_sensor", use obkDeviceName/channelNumberFordInput/get MQTT topic.
    Helpful post? Buy me a coffee.
  • #19 20344778
    Ipn00tic
    Level 8  
    The device ran out of batteries in 3 hours. I don't know if it's just missing power save or sleep deep. Could there be some excessive consumption, some pin permanently sending current?!

    The measurements they made of open firmware and stock firmware show differences in pin feeding.

    I see in the dyock firmware that it has a battery percentage meter, in the open firmware it will be necessary to maybe start some driver?

    The board only has a 10-pin chip, I looked for its description on the internet but I didn't find anything about it.
  • #20 20344843
    p.kaczmarek2
    Moderator Smart Home
    Most of battery powered devices are using TuyaMCU which enables/disables WiFi module only when it needs to report the state, so we don't have advanced power saving, but adding a PowerSave command in short startup command might help. With PowerSave enabled, device will half-sleep as long as you don't keep it awake with having the HTTP page or logs page constantly open.

    The PowerSave command was added 5 days ago, see related PR:
    https://github.com/openshwprojects/OpenBK7231T_App/pull/542

    More power saving updates coming soon.
    Helpful post? Buy me a coffee.
  • #21 20348627
    Ipn00tic
    Level 8  
    @toboxx How is your device in terms of autonomy?
    The "powersave" command helped but even then the battery doesn't last more than 24 hours.
    How is yours?
  • #22 20348689
    p.kaczmarek2
    Moderator Smart Home
    If so, then you must most likely wait for the deep sleep functionality.
    I will forward it to @btsimonh , who did great job on power save.

    The issue here is that, as I said, almost all of devices are using TuyaMCU to control power of WiFi module so deep sleep is not a top priority, but we will try to add it for you and cases like yours.
    Helpful post? Buy me a coffee.
  • #23 20348719
    toboxx
    Level 3  
    Ipn00tic wrote:
    @toboxx How is your device in terms of autonomy?
    The "powersave" command helped but even then the battery doesn't last more than 24 hours.
    How is yours?

    Just a few hours runtime as well. But it is obvious that 2 AAA cells cannot keep the WiFi online for a much longer time. We definitely need the deepest sleep mode available and only wake up when smoke is detected (original firmware seems to wake up every 8 hours, maybe watchdog functionality plus battery check).

    I will look into this after Christmas.
  • #24 20396120
    DSF4ever
    Level 6  
    Hi Guys!

    this topic interests me! I bought 2 of the same and I have the same problem, in the same situation. I'll stay tuned to the topic because I need the same help. No, you don't have a Déjà-vu, I simply copied the text from above, because I couldn't find better words :-)

    @p.kaczmarek2: I cannot offer much contribution in coding, measuring etc., but if it's helpful for you I could send over such a WiFi Smoke Detector Tuya (CBU chip) to you. I guess that would make things easier, isn't it? As long as not all secrets are revealed I cannot not use it anyway. And as soon as it works as expected (MQTT messages for smoke detection, test button, tamper, battery,..and as well deep sleep) I need to order for my house a couple more. So I will not miss this one. In case you are interested, please send me a private message with your address. Then you should get it in a week or so.

    cheers
  • #25 20396137
    p.kaczmarek2
    Moderator Smart Home
    Hey @DSF4ever , thanks, that's a great idea. I can accept such a donation, we just received a TreatLife switches from a user and made a video about them:



    Just please note, can you first check your shipping postage cost to Poland? Because, maybe, it would be easier and cheaper for you to just make a Paypal donation....

    A video about smoke sensor would be a great addition to our channel.
    Helpful post? Buy me a coffee.
  • #26 20396165
    DSF4ever
    Level 6  
    Hi,

    costs for the packet is 9,90 Euro. That fits to my budget very well!

    best regards
  • #27 20396192
    p.kaczmarek2
    Moderator Smart Home
    Well, from what I can see, we can get a smoke sensor for about 90 zl in Poland, which is about 19 Euro..
    OpenBeken on WiFi Smoke Detectors (Tuya CBU Chip) - ESP8266 Alternative, MQTT & Setup
    It's up to you, if you want to send a sensor for a teardown article (and maybe also video - who knows), then send me a PM here and I will reply to you with my shipping address. Thanks!
    Helpful post? Buy me a coffee.
  • #28 20396901
    p.kaczmarek2
    Moderator Smart Home
    @Ipn00tic we have a progress, there is a DeepSleep command, already works on N but not yet on T. It basically turns off WiFi module for given time and then module reboots and can do a single measurement and get back to deep sleep again.
    Please see discussion here:
    https://www.elektroda.com/rtvforum/topic3945688.html
    Helpful post? Buy me a coffee.
  • #29 20434069
    DSF4ever
    Level 6  
    Hello!
    I found some time to play around with my Smoke Detector and can confirm that "DeepSleep" works quite well on my OpenBK7231N (running OpenBK version 1.15.422). As soon as I get a "connected = online" via MQTT I fire back 30 seconds later from my OpenHAB a "DeepSleep = 21600" to keep the Smoke Detector sleeping for 6 hours. With a switch (On/Off) in this OpenHAB rule I can decide if the Smoke Detector will run another DeepSleep cycle or stays online for a firmware upgrade or configuration change.

    And unfortunately this I can confirm as well (from p.kaczmarek2 in another discussion):
    "By the way, it seems that "wake up on GPIO" works only on T and not on N."
    When the Smoke Detector is in DeepSleep I could not wake it up in any way. Batteries out and in excepted.

    @p.kaczmarek2: hopefully the Smoke Detector is soon in your hand to be able to disclose more secrets.

    best regards
  • #30 20462248
    toboxx
    Level 3  
    @p.kaczmarek2 It does not make sense to send a smoke detector from Germany to Poland, it is almost cheaper if you buy one yourself. Do you have PayPal? I would donate 10 Euros, if someone else also jumps in you can buy a device for yourself.

    If you are interested, send me your PayPal address via pm.

Topic summary

The discussion revolves around the integration of OpenBeken firmware with Tuya CBU chip-based WiFi smoke detectors, specifically the YG400A-W model. Users share experiences with flashing the firmware, configuring MQTT, and troubleshooting issues related to smoke detection and battery management. Key challenges include the device's inability to wake up from deep sleep to report smoke detection, the need for proper pin configuration, and the implementation of battery monitoring. Solutions discussed include using specific pin roles, setting up autoexec.bat for device behavior, and the potential for GPIO and timer wake-up functionality in future firmware updates. Users also express interest in creating a network of interconnected smoke detectors for enhanced alarm capabilities.
Summary generated by the language model.
ADVERTISEMENT