I have uploaded the software to the device (CB3S) but have no idea how to set the configuration.
I have already come to the conclusion that the device does not have tuyaMCU
I have a backup and in openbeken I made a gpio download
Please help
Info:GEN:sta:rssi=-40,ssid=SLOWIK__NET,bssid=74:4d:28:35:df:99,channel=1,cipher_type:CCMP
Info:MAIN:Time 271, idle 188009/s, free 74088, MQTT 0(17), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MAIN:Time 272, idle 187357/s, free 74088, MQTT 0(17), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MAIN:Time 273, idle 197708/s, free 65456, MQTT 0(17), bWifi 1, secondsWithNoPing -1, socks 3/38
Info:MAIN:Time 274, idle 186689/s, free 74088, MQTT 0(17), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MAIN:Time 275, idle 191472/s, free 74088, MQTT 0(17), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MAIN:Time 276, idle 187902/s, free 74088, MQTT 0(17), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MAIN:Time 277, idle 188376/s, free 74088, MQTT 0(17), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MAIN:Time 278, idle 191407/s, free 74088, MQTT 0(17), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MAIN:Time 279, idle 181846/s, free 74088, MQTT 0(17), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MAIN:Time 280, idle 184827/s, free 74088, MQTT 0(17), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:GEN:dhcp=0 ip=192.168.50.118 gate=192.168.50.1 mask=255.255.255.0 mac=cc:8c:bf:2a:d6:2e
Info:GEN:sta: 1, softap: 0, b/g/n
Info:GEN:sta:rssi=-40,ssid=SLOWIK__NET,bssid=74:4d:28:35:df:99,channel=1,cipher_type:CCMP
Info:MAIN:Time 281, idle 189010/s, free 74088, MQTT 0(17), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MAIN:Time 282, idle 191437/s, free 74088, MQTT 0(17), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MAIN:Time 283, idle 191076/s, free 74088, MQTT 0(17), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MAIN:Time 284, idle 188042/s, free 74088, MQTT 0(17), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MQTT:mqtt_host empty, not starting mqtt
Info:MAIN:Time 285, idle 188153/s, free 74088, MQTT 0(18), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MAIN:Time 286, idle 189867/s, free 74088, MQTT 0(18), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MAIN:Time 287, idle 190630/s, free 74088, MQTT 0(18), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MAIN:Time 288, idle 192019/s, free 74088, MQTT 0(18), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MAIN:Time 289, idle 190044/s, free 74088, MQTT 0(18), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MAIN:Time 290, idle 188062/s, free 74088, MQTT 0(18), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:GEN:dhcp=0 ip=192.168.50.118 gate=192.168.50.1 mask=255.255.255.0 mac=cc:8c:bf:2a:d6:2eDebug: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 165, idle 190831/s, free 71616, MQTT 0(9), 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 166, idle 184689/s, free 71616, MQTT 0(9), 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 167, idle 194207/s, free 71616, MQTT 0(9), 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 168, idle 197143/s, free 71616, MQTT 0(9), 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 169, idle 192383/s, free 71616, MQTT 0(9), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MQTT:mqtt_host empty, not starting mqtt
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 170, idle 187298/s, free 71616, MQTT 0(10), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:GEN:dhcp=0 ip=192.168.50.118 gate=192.168.50.1 mask=255.255.255.0 mac=cc:8c:bf:2a:d6:2e
Info:GEN:sta: 1, softap: 0, b/g/n
Info:GEN:sta:rssi=-40,ssid=SLOWIK__NET,bssid=74:4d:28:35:df:99,channel=1,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 171, idle 181870/s, free 71616, MQTT 0(10), 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 172, idle 180801/s, free 71616, MQTT 0(10), 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 173, idle 191603/s, free 71616, MQTT 0(10), 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 174, idle 183545/s, free 71616, MQTT 0(10), 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 175, idle 188058/s, free 71616, MQTT 0(10), 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 176, idle 187547/s, free 71616, MQTT 0(10), 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 177, idle 181489/s, free 71616, MQTT 0(10), 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 178, idle 188010/s, free 71616, MQTT 0(10), 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 179, idle 189110/s, free 71616, MQTT 0(10), 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 180, idle 182672/s, free 71616, MQTT 0(10), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:GEN:dhcp=0 ip=192.168.50.118 gate=192.168.50.1 mask=255.255.255.0 mac=cc:8c:bf:2a:d6:2edivadiow wrote:.
p.kaczmarek2 wrote:.There is information that it is not TuyaMCU after all.
In that case, try GPIODoctor to search for pin roles.
GPIODoctor in OpenBeken - a convenient way to find out GPIO roles in an IoT device
p.kaczmarek2 wrote:Is that P6 and P9 are relays or buttons? Because you wrote in such a way that I don't understand.
GPIO Doctor only looks for basic pins such as relays for switching, LEDs or there buttons (inputs). You can ignore the channel, it is not important, what matters is which pin is what.
You will not find the delay time there, because it results from the algorithm, which unfortunately will have to be prepared somehow on the OBK...
I will write figuratively - GPIODoctor is simply an overlay on pins, imagine that in pins you set the relay mode on each pin in turn and check if it works. This is what you do in GPIoDoctor.
PSlowik wrote:.I understand that what I read from the tuya platform is not useful ? because there were given dpid :/ I ask because I do not fully understand the operation of this
divadiow wrote:I see that you have previously provided a Tuya configuration file, but were you able to make a full backup of the factory firmware before flashing the OBK? The GPIO assignment is often printed in the boot log.
divadiow wrote:.Thank you. I don't think I saw anything helpful, but this time
Code: TextLog in, to see the code
p.kaczmarek2 wrote:Remember that at this stage we are just looking for GPIO roles - where is the relay, where is the diode, etc. There is no device logic at this point. Rather, you will need to do this logic yourself in OBK. I wouldn't expect this to work as a roller shutter controller right off the bat now.
TL;DR: With 100 % of Tuya heartbeat packets missing, your CB3S roller-shutter board is GPIO-driven, not TuyaMCU. "At this stage we are just looking for GPIO roles" [Elektroda, p.kaczmarek2, post #21618983] Map the pins with GPIODoctor, then add relay-timing logic in autoexec.bat.
Why it matters: Correct pin mapping prevents relay overlap that can burn out the motor.
• SoC/Module: Tuya CB3S (BK7231N WiFi + BLE) [Elektroda, divadiow, post #21618892] • Relays: P6 = Open, P9 = Close [Elektroda, PSlowik, post #21618909] • Touch buttons: P24 = Open, P7 = Close, Stop — still unmapped [Elektroda, PSlowik, post #21618916] • LEDs: P14 (Open LED), P23 (Close LED), P26 (WiFi LED, active-low) [Elektroda, PSlowik, post #21618916] • Firmware profile: oem-bk7231n-curtain-rj-1.1.0 (Tuya SDK 2.3.1) [Elektroda, PSlowik, post #21619158]
startDriver GPIODoctor.autoexec.bat and save. A 20-pin scan averages 30 s [GPIODoctor README].AddPinRole P6 Rel 1 and AddPinRole P9 Rel 2, then in autoexec add:
setChannelPWM 1 0; setChannelPWM 2 0
linkChannel 1 2 toggle
Linking toggles the other relay OFF whenever one is activated, emulating factory interlock [Elektroda, p.kaczmarek2, post #21620297]SetChannelTimer 1 20000 and SetChannelTimer 2 20000 for a 20 s cut-off, matching dpID 10 default [Elektroda, PSlowik, post #21618802]save + reboot between major role changes.heartbeat_valid = 1 after reboot [Elektroda, p.kaczmarek2, post #21618831]bk7231tools backup --port COMx --baud 115200, and save the 2 MB binary. The boot log you saved earlier already shows version 1.0.1 [Elektroda, PSlowik, post #21618996]
addClockEvent 05:00 07:00 setPin 11 1
addClockEvent 07:01 04:59 setPin 11 0
Requires NTP enabled (setNTP 1 pool.ntp.org) [Elektroda, PSlowik, post #21618827]