logo elektroda
logo elektroda
X
logo elektroda
Dostępna jest polska wersja

Czy wolisz polską wersję strony elektroda?

Nie, dziękuję Przekieruj mnie tam

TUYAMCU curtain WiFi module: no HEARTBEAT, BK RX/TX unused, PAD14/PAD25

rt400yuval 72 1
ADVERTISEMENT
  • #1 21878123
    rt400yuval
    Level 3  
    Hi.
    I have two WIFI modules for curtain, the modules come with TUYAMCU and CB3S BK chip.
    One of the modules does not work at all (it arrived defective) and I managed to burn it in the second one.
    I can't get the TUYA driver to work. No matter what I tried, I don't get a HEARTBEAT in log.
    I disassembled the defective module to understand where all the GPIOS go and I see that RX and TX in the BK chip are not connected to anything, while PAD 14 and PAD25 go to TUYAMCU.
    And in CONFIG I didn't find anywhere how to configure the RX and TX of the TUYAMCU.
    I suspect that I don't have any communication with the TUYA chip because of this.
    I would appreciate help on how to use this module.
    By the way, before I burned I backed up the firmware and connected the module to the TUYA app at first, where I saw that the module was indeed working. I also managed to export the DP IDS from the TUYA cloud.
    {
    
      "result": {
    
        "model": {
    
          "modelId": "eu2emk",
    
          "services": [
    
            {
    
              "name": "Default Service",
    
              "description": "",
    
              "code": "",
    
              "actions": [],
    
              "events": [],
    
              "properties": [
    
                {
    
                  "abilityId": 1,
    
                  "accessMode": "rw",
    
                  "code": "control",
    
                  "name": "Curtain Switch (Channel 1)",
    
                  "description": "",
    
                  "extensions": {
    
                    "iconName": "icon-a_power",
    
                    "attribute": "1280"
    
                  },
    
                  "typeSpec": {
    
                    "type": "enum",
    
                    "range": ["open", "stop", "close"]
    
                  }
    
                },
    
                {
    
                  "abilityId": 8,
    
                  "accessMode": "rw",
    
                  "code": "control_back",
    
                  "name": "Motor Direction",
    
                  "description": "",
    
                  "extensions": {
    
                    "iconName": "icon-dp_loop",
    
                    "attribute": "1024"
    
                  },
    
                  "typeSpec": {
    
                    "type": "enum",
    
                    "range": ["forward", "back"]
    
                  }
    
                },
    
                {
    
                  "abilityId": 10,
    
                  "accessMode": "rw",
    
                  "code": "tr_timecon",
    
                  "name": "Travel Time Setting",
    
                  "description": "",
    
                  "extensions": {
    
                    "iconName": "icon-dp_time2",
    
                    "attribute": "1024"
    
                  },
    
                  "typeSpec": {
    
                    "type": "value",
    
                    "min": 1,
    
                    "max": 120,
    
                    "step": 1,
    
                    "scale": 0,
    
                    "unit": "seconds"
    
                  }
    
                }
    
              ]
    
            }
    
          ]
    
        }
    
      },
    
      "success": true,
    
      "t": 1775333992021,
    
      "tid": "a2fb1313306311f1b9c19e6068def229"
    
    }


    Green PCB with traces, solder pads, and red markings highlighting points labeled “14” and “25”.
    Green PCB with a labeled “WIFI” module and an IC, showing traces and SMD components
    AI: What firmware/build are you running on the CB3S now (for example OpenBeken version), and can you post your current config/template plus the exact TUYA/UART commands or settings you already tried?
    Built on Mar 31 2026 18:02:39 version 1.18.282

    startDriver TuyaMCU
    tuyaMcu_defWiFiState 4
    linkTuyaMCUOutputToChannel 1 4 1
    linkTuyaMCUOutputToChannel 8 4 2
    linkTuyaMCUOutputToChannel 10 2 3
    

    AI: Can you share the exact module/device model or clear PCB photos/log output from boot, especially showing PAD14/PAD25 connections and the log where no HEARTBEAT appears?
    Info:MAIN:Time 25, idle 351869/s, free 67976, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 26, idle 190128/s, free 56280, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MAIN:Time 27, idle 367936/s, free 55360, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MAIN:Time 28, idle 172097/s, free 67760, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MAIN:Time 29, idle 185260/s, free 67976, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:mqtt_host empty, not starting mqtt
    Info:MAIN:Time 30, idle 175285/s, free 67760, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:GEN:dhcp=0 ip=192.168.1.137 gate=192.168.0.1 mask=255.255.254.0 mac=80:64:7c:9a:4e:fe
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-49,ssid=AAA-IoT,bssid=da:b3:70:19:8f:9f,channel=11,cipher_type:CCMP
    Info:CMD:[WebApp Cmd 'loglevel 3' Result] OK
    Info:MAIN:Time 31, idle 174586/s, free 67976, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 32, idle 173932/s, free 67976, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 33, idle 177512/s, free 67976, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Debug:CMD:loglevel set 6
    Info:CMD:[WebApp Cmd 'loglevel 6' Result] OK
    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 34, idle 176658/s, free 67976, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    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 192679/s, free 67976, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    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 178191/s, free 67976, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    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 175838/s, free 67976, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    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 176425/s, free 67976, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    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 173870/s, free 67976, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    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 176143/s, free 67976, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.1.137 gate=192.168.0.1 mask=255.255.254.0 mac=80:64:7c:9a:4e:fe
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-51,ssid=AAA-IoT,bssid=da:b3:70:19:8f:9f,channel=11,cipher_type:CCMP
    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 169436/s, free 67976, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    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 176835/s, free 67976, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    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 174642/s, free 67976, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    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 173656/s, free 67976, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Debug:API:POST to api/cmnd
    Debug:CMD:cmd [loglevel 4]
    Debug:CMD:loglevel set 4
    Info:CMD:[WebApp Cmd 'loglevel 4' Result] OK
    Info:MAIN:Time 45, idle 186635/s, free 67976, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:mqtt_host empty, not starting mqtt
    Info:MAIN:Time 46, idle 175234/s, free 67760, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MAIN:Time 47, idle 178428/s, free 67976, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 48, idle 190155/s, free 67976, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 49, idle 174938/s, free 67976, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 50, idle 176564/s, free 59368, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:GEN:dhcp=0 ip=192.168.1.137 gate=192.168.0.1 mask=255.255.254.0 mac=80:64:7c:9a:4e:fe
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-49,ssid=AAA-IoT,bssid=da:b3:70:19:8f:9f,channel=11,cipher_type:CCMP
    Info:MAIN:Time 51, idle 173811/s, free 67976, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 52, idle 177397/s, free 67976, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 53, idle 178913/s, free 67976, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 54, idle 178207/s, free 59376, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Debug:API:POST to api/cmnd
    Debug:CMD:cmd [logfeature 23 0]
    Debug:CMD:logfeature set 0x037FFDFF
    Info:CMD:[WebApp Cmd 'logfeature 23 0' Result] OK
    Info:MAIN:Time 55, idle 174877/s, free 67976, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 56, idle 177293/s, free 67976, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 57, idle 179694/s, free 67976, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 58, idle 185230/s, free 67976, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Debug:API:POST to api/cmnd
    Debug:CMD:cmd [logfeature 8 0]
    Debug:CMD:logfeature set 0x037FFCFF
    Info:CMD:[WebApp Cmd 'logfeature 8 0' Result] OK
    Debug:CMD:cmd [logfeature 2 0]
    Debug:CMD:logfeature set 0x037FFCFB
    Info:CMD:[WebApp Cmd 'logfeature 2 0' Result] OK
    Debug:CMD:cmd [logfeature 10 0]
    Info:MAIN:Time 59, idle 170241/s, free 67672, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 2/38
  • ADVERTISEMENT
  • #2 21878331
    p.kaczmarek2
    Moderator Smart Home
    Have you tried 115200 baud?

    Can you do Tuya config extraction?
    https://www.youtube.com/watch?v=WunlqIMAdgw&ab_channel=Elektrodacom
    Helpful post? Buy me a coffee.
ADVERTISEMENT