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

Czy wolisz polską wersję strony elektroda?

Nie, dziękuję Przekieruj mnie tam

Configuring Tuya eWeLink WiFi 4CH RF Smart Switch Module TYEB 4ch-RF : Step-by-Step Guide

kinziulisKinziulisLT 6750 15
ADVERTISEMENT
  • ADVERTISEMENT
  • #2 20557208
    p.kaczmarek2
    Moderator Smart Home
    Hello, are you asking how to configure with Tuya app or how to configure with OpenBeken?

    For OpenBeken, you would need to attach USB to UART tool first, so you can burn the firmware to the CB3S.

    Can you show a real photo of your device? Is the module inside CB3S, like in the seller photo?
    Helpful post? Buy me a coffee.
  • #3 20557601
    kinziulisKinziulisLT
    Level 5  
    i already flashed,

    yes it is CB3S

    "pins": {
    "6": "Rel;2",
    "24": "Rel;1",
    "26": "Rel;3"
    },

    where is rel 4 ?
  • ADVERTISEMENT
  • Helpful post
    #4 20557638
    p.kaczmarek2
    Moderator Smart Home
    Well, do you have 2MB firmware backup? If you send me a backup, I can try extracting GPIO configuration for you.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #5 20557715
    kinziulisKinziulisLT
    Level 5  
    See if it's messed up I'll take another board. I have some.
    And I'll send you an image.

    Sorry for the bad English

    if possible find Buttons Gpio
  • Helpful post
    #6 20558276
    p.kaczmarek2
    Moderator Smart Home
    This binary is not a valid BK device image. Have you erased it first? Please do not erase before doing backup.

    Please choose correct platform for your firmware, BK7231T for WB3S, and BK7231N for CB3S.

    Please take a device with Tuya firmware and just do "Read" or "Read and Write".
    Helpful post? Buy me a coffee.
  • #7 20558341
    kinziulisKinziulisLT
    Level 5  
    ok
    i do it

    Added after 6 [hours] 28 [minutes]:

    New file
    Attachments:
    • readResult_BK7231N_QIO_2023-28-4--06-36-24.bin (2 MB) You must be logged in to download this attachment.
  • #8 20558439
    kinziulisKinziulisLT
    Level 5  
    Write in your instructions, before updating, you need to cut off the TX and RX.
  • ADVERTISEMENT
  • Helpful post
    #9 20558834
    p.kaczmarek2
    Moderator Smart Home
    Thank you. Text description:
    Quote:

    - Relay (channel 1) on P24
    - Relay (channel 2) on P6
    - Relay (channel 3) on P26
    - Relay (channel 4) on P14
    - WiFi LED on P22
    - Button (channel 1) on P8
    - Button (channel 2) on P9
    - Button (channel 3) on P10
    - Button (channel 4) on P11
    - Pair/Toggle All Pin on P7

    OBK json (in Web App -> Import tab):
    Code: JSON
    Log in, to see the code
    Helpful post? Buy me a coffee.
  • #10 20559485
    kinziulisKinziulisLT
    Level 5  
    nice !
  • #11 20559686
    p.kaczmarek2
    Moderator Smart Home
    No problem, don't forget to try out our features, like PowerSave 1 to save energy, or startDriver SSDP to make device visible in Windows network places. Use startup command or autoexec.bat to run them at startup.
    Helpful post? Buy me a coffee.
  • #12 20597618
    kinziulisKinziulisLT
    Level 5  
    Hello again,
    This device has an RF channel, can it be "revived"? Most of my clients are writing about it.

    Added after 1 [hours] 45 [minutes]:

    I have a power supply version of 85-250 V, K1 and K2 are not working. I'm adding a backup 85-250 V version
    Attachments:
    • readResult_BK7231N_QIO_2023-28-5--13-29-09.bin (2 MB) You must be logged in to download this attachment.
  • #13 20815697
    kinziulisKinziulisLT
    Level 5  

    From time to time, the WiFi functionality stops working on the time module; it only responds to power on/off. How can I find the cause?
  • #14 20978836
    maiwai1900
    Level 2  
    >>20597618
    Do you know how to use the RF433
  • #15 20991145
    bor1970
    Level 2  
    Hi!
    Do you know how to use the RF433 ?
  • #16 21247206
    danielgeisenhoff
    Level 1  
    Hi

    How did you manage to flash this device?

    I only get "Getting bus failed," even after resetting the device.

    Many thanks.

Topic summary

✨ The discussion revolves around configuring the Tuya eWeLink WiFi 4CH RF Smart Switch Module (TYEB 4ch-RF), specifically the CB3S model. Users inquire about the configuration process, including flashing firmware and GPIO pin assignments. Key points include the need for a USB to UART tool for firmware burning, the importance of using the correct firmware platform (BK7231T for WB3S and BK7231N for CB3S), and troubleshooting tips for RF channel functionality. Users also discuss issues with WiFi connectivity and the necessity of proper backup procedures before firmware updates. Additional features like energy-saving modes and device visibility in network places are mentioned.
Generated by the language model.

FAQ

TL;DR: To set up the TYEB 4CH‑RF with OpenBeken, pick the right chip (2 variants) and “Choose correct platform for your firmware.” Back up before flashing, then apply the GPIO map shown below. [Elektroda, p.kaczmarek2, post #20558276]

Why it matters: This FAQ helps CB3S/WB3S owners fix flashing errors and reliably configure all channels and buttons.

Quick Facts

How do I configure the TYEB 4CH‑RF in OpenBeken?

Assign GPIOs per the known map. Relays: P24, P6, P26, P14. Buttons: P8, P9, P10, P11. WiFi LED: P22 using WifiLED_n. Set P7 as Btn_Tgl_All to toggle all channels or pair. You can also import the posted JSON via Web App → Import. [Elektroda, p.kaczmarek2, post #20558834]

Which GPIOs are the local buttons and the Pair/Toggle‑All input?

Buttons are on P8, P9, P10, and P11 (Btn;1–Btn;4). The Pair/Toggle‑All input is P7. Map it as Btn_Tgl_All;0 to toggle all relays or enter pairing. [Elektroda, p.kaczmarek2, post #20558834]

How do I flash OpenBeken on a CB3S without errors?

  1. In your flasher, select BK7231N for CB3S (WB3S uses BK7231T).
  2. Read a full backup before writing any new image.
  3. Write the firmware and reboot to complete. “Please choose correct platform for your firmware, BK7231T for WB3S, and BK7231N for CB3S.” [Elektroda, p.kaczmarek2, post #20558276]

Which pins do I wire for USB‑UART flashing on CB3S?

Open the case to access the CB3S module and attach a USB‑to‑UART adapter. Use it to burn the OpenBeken firmware to the module as instructed. This board is designed to be flashed over UART. [Elektroda, p.kaczmarek2, post #20557208]

I get “Getting bus failed” when flashing—what should I try?

Isolate the UART lines from the rest of the circuit during the update. Disconnect or cut the on‑board TX/RX paths so the adapter has exclusive access, then retry flashing. Reconnect once flashing succeeds. [Elektroda, kinziulisKinziulisLT, post #20558439]

Why does my Tuya backup read as an “invalid BK device image”?

This occurs if you erase before backing up or use the wrong platform. Do not erase first. Verify the correct platform (BK7231N for CB3S, BK7231T for WB3S), then read a backup and proceed. “Please do not erase before doing backup.” [Elektroda, p.kaczmarek2, post #20558276]

Can the 433 MHz RF on the TYEB 4CH‑RF be used with OpenBeken?

The shared GPIO map does not assign any RF input, so RF isn’t enabled by that config. To use RF, you must identify the RF receiver hardware and its data pin, then map or add support. The thread does not post a working RF setup. [Elektroda, p.kaczmarek2, post #20558834]

WiFi sometimes stops working until power‑cycling—how do I diagnose it?

First confirm you flashed the correct platform. Reflash with BK7231N for CB3S (or BK7231T for WB3S) if uncertain. Always back up before changes. Platform mismatch or a bad image can cause instability. “Please choose correct platform for your firmware.” [Elektroda, p.kaczmarek2, post #20558276]

Where can I get a ready‑to‑import OpenBeken JSON for this board?

Use the JSON posted in the thread. Open the OpenBeken Web App, go to Import, and paste the provided JSON to auto‑assign pins and LED. [Elektroda, p.kaczmarek2, post #20558834]

How do I set up the WiFi LED?

Assign P22 to WifiLED_n in OpenBeken. The “_n” indicates active‑low, so the LED turns on when the pin is low. This maps the on‑board WiFi indicator correctly. [Elektroda, p.kaczmarek2, post #20558834]

What’s the simplest way to toggle all four relays with one button?

Map P7 as Btn_Tgl_All;0. A press toggles all channels together, and the pin can also serve for pairing modes if supported. This complements the per‑channel buttons. [Elektroda, p.kaczmarek2, post #20558834]

What’s the difference between CB3S and WB3S when flashing?

CB3S uses BK7231N, while WB3S uses BK7231T. Choose the matching platform in your flasher or the image will be wrong. “BK7231T for WB3S, and BK7231N for CB3S.” [Elektroda, p.kaczmarek2, post #20558276]

K1/K2 don’t work on my 85–250 V version—what should I check?

That variant may have different wiring. One user reported K1/K2 inoperative on the 85–250 V board and shared a backup. Compare or extract its GPIOs, then remap your config accordingly. Hardware revisions can change pin assignments. [Elektroda, kinziulisKinziulisLT, post #20597618]

Can you extract my GPIO map from a firmware backup?

Yes. Provide a full 2 MB backup from a Tuya‑flashed unit, and the GPIO configuration can be extracted for pin mapping. This accelerates correct relay and button setup. [Elektroda, p.kaczmarek2, post #20557638]

How can I save energy and make the switch discoverable on Windows?

Enable PowerSave 1 to reduce energy use and run startDriver SSDP for Windows discovery. Add them to startup or autoexec.bat. “startDriver SSDP to make device visible in Windows network places.” [Elektroda, p.kaczmarek2, post #20559686]
Generated by the language model.
ADVERTISEMENT