logo elektroda
logo elektroda
X
logo elektroda

Gosund Nite Bird WB4 - Issues Flashing Tasmota Firmware, No Feedback

domio33 2118 29
Best answers

How can I flash a newer Gosund Nite Bird WB4 bulb when the usual UART wiring gives no feedback from the controller?

Your newer WB4 likely uses a different Realtek W701H/CUCO-KK-R-V1.2 module, so the old ESP-style pinout will not work. The W701H version needs RX and IO0 pulled up to 3.3 V continuously to enter flashing mode, with VDD33 to 3.3 V, AGND to GND, TXLOG to adapter RX, RXLOG to adapter TX, and CEN briefly pulled to AGND or the metal shell to reset the chip [#20514563][#21438564][#21699333] One reply also notes that on this module RX is GPIO13 [#21438564] For software, use OpenBK/OpenRTL87X0C UART binaries and the AmebaZ2 PG Tool or ltchiptool to read flash/ROM and then flash the firmware [#21699333]
Generated by the language model.
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20367145
    domio33
    Level 28  
    Hi all,
    I have a problem with changing the software on the tasmote in the gosund bulb wb4.

    Despite soldering in the leads I still have no feedback communication from the controller.

    Below I insert pictures I found on a German forum :


    Gosund Nite Bird WB4 - Issues Flashing Tasmota Firmware, No Feedback

    And here my bulb


    Gosund Nite Bird WB4 - Issues Flashing Tasmota Firmware, No Feedback

    As you can see, mine is newer (?) , does not have the signed pins , although the board looks identical.

    Question whether the controller may have been changed and therefore does not detect my computer, or have been routed differently pins ?

    Anybody here has changed the software in this bulb ?
    I would appreciate an answer :) .
  • ADVERTISEMENT
  • #2 20371810
    p.kaczmarek2
    Moderator Smart Home
    What WiFi module is in there? More pictures please, you have not shown the WiFi module on the front and I can't see its designation.
    Helpful post? Buy me a coffee.
  • #3 20514563
    maxikaaz86
    Level 12  
    @domio33
    @p.kaczmarek2
    I will dig up the topic because I just happen to have a few of these bulbs and at some point the manufacturer changed the ESP to W701H(?). Also, I could not find a module that looks the same or similar on the Tuya website.
    Gosund Nite Bird WB4 - Issues Flashing Tasmota Firmware, No Feedback .
  • #4 21379255
    p.kaczmarek2
    Moderator Smart Home
    Helpful post? Buy me a coffee.
  • #6 21438564
    divadiow
    Level 38  
    @maxikaaz86 has de-soldered the CUCO-KK-R-V1.2 module and kindly provided us with a pic of the rear, which I now post

    Image of the desoldered CUCO-KK-R-V1.2 module with visible pin markings.
    The image shows the backside of the CUCO-KK-R-V1.2 electronic module with visible pin labels and connection instructions.

    This W701H module requires 2 IOs to be pulled to 3.3v

    Code: Text
    Log in, to see the code


    RX is GPIO13
  • #7 21699333
    LeMaxime
    Level 7  
    Spoiler:

    03.10.2025 - All in this spoiler is OUTDATED,saved for history
    I flashed it using the method above, but there's a problem. The RGB LEDs are fully controllable, both color and brightness. But the white LEDs can only be turned on and off, without brightness control. They turn on immediately at maximum brightness. The RGB LEDs are controlled by PWM, so if I set the GPIO that turns the white LEDs on and off to PWM, the bulb resets instantly. So I guess I need to look for a dimmer on a different pin?

    My config(WIP)
    
    {
      "vendor": "Gosund",
      "bDetailed": "0",
      "name": "Nitebird Gosund Smart Bulb Color WB4",
      "model": "WB4",
      "chip": "RTL87X0C",
      "board": "TODO",
      "flags": "17040384",
      "keywords": [
        "TODO",
        "TODO",
        "TODO"
      ],
      "pins": {
        "3": "PWM;3",
        "4": "PWM;1",
        "11": "PWM;2",
        "17": "PWM;4"
      },
      "command": "",
      "image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg",
      "wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html"
    }


    Box photo:
    Gosund Nite Bird WB4 - Issues Flashing Tasmota Firmware, No Feedback
    Gosund Nite Bird WB4 - Issues Flashing Tasmota Firmware, No Feedback
    Gosund Nite Bird WB4 - Issues Flashing Tasmota Firmware, No Feedback
    Gosund Nite Bird WB4 - Issues Flashing Tasmota Firmware, No Feedback

    Bulb case photo:
    Gosund Nite Bird WB4 - Issues Flashing Tasmota Firmware, No Feedback

    Bulb board photo:
    Gosund Nite Bird WB4 - Issues Flashing Tasmota Firmware, No Feedback
    Gosund Nite Bird WB4 - Issues Flashing Tasmota Firmware, No Feedback

    Cuko-KK-R-V1.2 Pinout(W701 module):
    Gosund Nite Bird WB4 - Issues Flashing Tasmota Firmware, No Feedback

    LEDs board:
    Gosund Nite Bird WB4 - Issues Flashing Tasmota Firmware, No Feedback


    Preparing to flashing OpenBK:
    (PIN on board -> UART)
    VDD33 -> +3.3V
    AGND -> GND
    TXLOG -> RX
    RXLOG -> TX
    
    RX -> +3.3V(or VDD33 on module) (to enter flashing mode, must be connected all the time)
    IO0 -> +3.3V(or VDD33 on module) (to enter flashing mode, must be connected all the time)
    
    CEN -> AGND or module metal shell (only momentarily to reset the chip)


    Use OpenBK binaries for UART RTL87X0C (for example OpenRTL87X0C_1.18.187.bin)

    Backup stock firmware:
    Use https://github.com/libretiny-eu/ltchiptool:
    Settings: 115200 baud rate,Chip family - Realtek AmebaZ2
    Then use "Read flash" and "Read ROM"


    How to flash:
    Use AmebaZ2 PG Tool(u can download one in attached files) and set settings like this:
    Gosund Nite Bird WB4 - Issues Flashing Tasmota Firmware, No Feedback


    Config:
    {
      "vendor": "Gosund",
      "bDetailed": "0",
      "name": "Nitebird Gosund RGB+W Smart LED Bulb",
      "model": "WB4",
      "chip": "RTL87X0C",
      "board": "CUCO-KK-R-V1.2",
      "flags": "17040384",
      "keywords": [
        "tuya",
        "lamp"
      ],
      "pins": {
        "3": "PWM;3",
        "4": "PWM;1",
        "11": "PWM;2",
        "17": "PWM;4"
      },
      "command": "powersave 1",
      "image": "https://obrazki.elektroda.pl/8358343600_1759248710.png",
      "wiki": "https://www.elektroda.com/rtvforum/topic3946504.html"
    }


    Tip:
    If you plan to add that bulb in Home Assistant and want correct working Cool White LEDs - remove Flag 24 AFTER Home Assistant Discovery
    Attachments:
    • AmebaZII_PGTool_v1.2.47.exe (317.5 KB) You must be logged in to download this attachment.
  • #8 21699629
    divadiow
    Level 38  
    Code: Text
    Log in, to see the code


    this is the IO that is white LED?
  • #9 21699636
    p.kaczmarek2
    Moderator Smart Home
    So this is RGBW device, not RGBCW? It's a shame there is not more information in the first post.

    The bulb may reset if it was designed to run in either RGB or CW, and you try to run it with both RGB and CW at the same time. It overloads. Or maybe it needs powersave...
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #10 21699770
    LeMaxime
    Level 7  
    >>21699629
    yes
    >>21699636
    yes.bulb box says that bulb is "RGB+W"
    "The bulb may reset if it was designed to run in either RGB or CW, and you try to run it with both RGB and CW at the same time. It overloads. Or maybe it needs powersave..."
    RGB led was off when im trying to change type from 'Rel' to 'PWM'
    PowerSave 1 doesnt help
  • ADVERTISEMENT
  • #12 21700845
    LeMaxime
    Level 7  
    >>21700820 well maybe white led using another pin for brightness control?
    I'll pick up two more of these bulbs today, if I could get a dump and look at the configuration with Tuya...
  • #13 21701811
    divadiow
    Level 38  
    yes, a dump would be interesting I suppose. Was white definitely brightness-controllable with factory firmware? I assume so.
  • #14 21704263
    LeMaxime
    Level 7  
    divadiow wrote:
    Was white definitely brightness-controllable with factory firmware?

    Yes,i checked this
    so now im searching for original firmware backup tool
  • #16 21704330
    LeMaxime
    Level 7  
    >>21704315 yes,i run it
    "58384/2097152 bytes | 2.25 KB/s | ETA 14:56"
    sooooooooooo long xddd
    ive used 115200 baud so wait a little bit
  • #18 21704347
    LeMaxime
    Level 7  
    >>21704335
    well looks like itchiptool can read flash too so i can finally upload a stock Tuya firmware,thats backup contains my Wi-Fi Las_Vegas and password for it, and also attached to my Tuya account(dont worry,its test account,only that bulb attached to him)
    ive attached a few files:
    WB4Full_flash.bin - full flash backup from itchiptool
    WB4Rom.bin - ROM backup from itchiptool
    WB4_Script.bin - full flash(?) backup from ur script

    also i checked md5 hashes - itchiptool and ur script has the same md5 hashes
    Attachments:
    • WB4_Script.bin (2 MB) You must be logged in to download this attachment.
    • WB4Rom.bin (384 KB) You must be logged in to download this attachment.
    • WB4Full_flash.bin (2 MB) You must be logged in to download this attachment.
  • #19 21704350
    divadiow
    Level 38  
    OK. downloaded. will test shortly :)

    Added after 21 [minutes]:

    I am pleased to report both full backups are identical. I was able to flash, it boots and pairs with Tuya. Here is boot log

    Code: Text
    Log in, to see the code


    no automatic pin extraction though
  • #20 21704379
    LeMaxime
    Level 7  
    >>21704350 Damn, I was hoping the dump would help, but alas. Any ideas how control white leds xd?
  • #21 21704382
    divadiow
    Level 38  
    could allow PWM on PA10 I guess to see what it does. It would need a custom build
  • ADVERTISEMENT
  • #22 21704401
    LeMaxime
    Level 7  
    >>21704382 well, building is too hard for me so cant help with that(
  • #23 21704403
    divadiow
    Level 38  
    just a thought, please try setting PA17 as white PWM
  • #24 21704430
    insmod
    Level 31  
    Tuya RTL sdk doesn't allow PA10 as PWM. It was a moot point though, since it's a hardware limitation.
    const static pwm_dev_t tkl_pwm_switch[PWM_DEV_NUM][4] = {
        [0] = {
            {.pin = PA_0, .obj = NULL},
            {.pin = PA_11, .obj = NULL},
            {.pin = PA_20, .obj = NULL},
            {.pin = NC, .obj = NULL},
        },
        [1] = {
            {.pin = PA_1, .obj = NULL},
            {.pin = PA_12, .obj = NULL},
            {.pin = NC, .obj = NULL},
        },
        [2] = {
            {.pin = PA_2, .obj = NULL},
            {.pin = PA_14, .obj = NULL},
            {.pin = NC, .obj = NULL},
        },
        [3] = {
            {.pin = PA_3, .obj = NULL},
            {.pin = PA_15, .obj = NULL},
            {.pin = NC, .obj = NULL},
        },
        [4] = {
            {.pin = PA_4, .obj = NULL},
            {.pin = PA_16, .obj = NULL},
            {.pin = NC, .obj = NULL},
        },
        [5] = {
            {.pin = PA_17, .obj = NULL},
            {.pin = NC, .obj = NULL},
        },
        [6] = {
            {.pin = PA_18, .obj = NULL},
            {.pin = NC, .obj = NULL},
        },
        [7] = {
            {.pin = PA_13, .obj = NULL},
            {.pin = PA_19, .obj = NULL},
            {.pin = PA_23, .obj = NULL},
            {.pin = NC, .obj = NULL},
        }
    };
    
  • #25 21704431
    divadiow
    Level 38  
    also, there's this flag to play with (if PA17 is right)

    Code: Text
    Log in, to see the code
  • #26 21704580
    LeMaxime
    Level 7  
    >>21704403
    well,so strange
    i flashed second bulb and set PA17 as white PWM on 4 channel - its worked, white LEDs fully controllable(turn on/off and brightness)
    and PA10 al relay not working
    but with first buld that magic not worked
    IO17 pin in CUCO-KK-R-V.1.2 module is PA17 in OpenBK,correct?
  • #27 21704896
    divadiow
    Level 38  
    ah good.

    this was in boot log

    Code: Text
    Log in, to see the code


    LeMaxime wrote:
    IO17 pin in CUCO-KK-R-V.1.2 module is PA17 in OpenBK,correct?


    yes

    Added after 1 [hours] 36 [minutes]:

    is there continuity between IO10 and IO17 on the one that doesn't work? tiny bit of solder linking the two?

    Close-up of PCB pin labels with a red U-shaped marker drawn on it
  • #28 21705019
    LeMaxime
    Level 7  
    >>21704896
    lmao, i found that i broke 2 pads on first bulb- IO17 and IO19
    repaired them and now brightess control available on both bulbs

    but still few funny things
    1)If i use Flag 24 - LED Temperature Slider control RGB LEDs(that slider turn on RGB LEDs and setting them to white color) and control thier brightness,in Home Assistant i see bulb entity and can control colors and brightness RGB LEDs -
    Spoiler:
    IoT device interface showing diagnostics, controls, and light switch status

    2)If i disable Flag 24 - LED Temparature Slider control white LEDs brightness, but there is no bulb entity in Home Assistant -
    Spoiler:
    Interface panel showing RTL87XXC device info, diagnostics, and event log


    But if firstly i set Flag 24 and after remove him - control still appears in Home Assistant and EVEN i can choose white LEDs and control their brightness
    so funny
  • #30 21708972
    LeMaxime
    Level 7  
    I've updated my post a bit, I hope it helps those who want to flash this light bulb.

Topic summary

✨ The discussion addresses difficulties flashing Tasmota firmware on the Gosund Nite Bird WB4 smart bulb due to lack of communication feedback from the controller despite soldered leads. The bulb's internal board appears similar to older versions but lacks labeled pins, suggesting a possible hardware revision. It is noted that the manufacturer may have replaced the original ESP WiFi module with a W701H variant, complicating detection and flashing. The W701H module, also referenced as CUCO-KK-R-V1.2, requires specific pin connections for flashing: VDD33 to 3.3V, AGND to ground, TXLOG to RX, RXLOG to TX, with RX (GPIO13) and IO0 pulled to 3.3V continuously to enter flashing mode, and CEN momentarily grounded to reset. Additional resources include pinout guides and datasheets for WBR2, WBR3, WBRU, and W701-VA2-CG chips, which are relevant for Home Assistant integration and firmware flashing.
Generated by the language model.

FAQ

TL;DR: 2 IO lines must be held at 3.3 V to flash the W701H; “requires 2 IOs to be pulled to 3.3v.” This FAQ fixes no‑feedback flashing and pin mapping on Gosund Nite Bird WB4. [Elektroda, divadiow, post #21438564]

Why it matters: It turns a "no serial output" bulb into a locally controlled RGB+W light that works with OpenBeken and Home Assistant.

Quick Facts

How do I identify the Wi‑Fi/MCU inside my Gosund Nite Bird WB4?

Open the bulb and check the module silkscreen: CUCO‑KK‑R‑V1.2 with Realtek RTL87X0C is common on newer WB4 units. In OpenBeken, select the RTL87X0C UART build and use the provided pin template with PWM on pins 3, 4, 11, and 17. [Elektroda, LeMaxime, post #21699333]

How do I put the W701H/RTL87X0C into flashing mode when I get no serial feedback?

Wire VDD33 to 3.3 V and AGND to GND; cross TXLOG↔RX and RXLOG↔TX. Hold RX and IO0 at 3.3 V continuously, then momentarily pull CEN to GND to reset. The module then responds over UART; RX corresponds to GPIO13. [Elektroda, divadiow, post #21438564]

What’s the safest way to back up stock Tuya firmware before flashing?

Use ltchiptool. Set 115200 baud and select chip family Realtek AmebaZ2. Run Read Flash and Read ROM to save full images, which you can later restore. This preserves Wi‑Fi credentials and Tuya activation data. [Elektroda, LeMaxime, post #21699333]

Which OpenBeken firmware file should I flash on WB4?

Flash an OpenBK build for UART RTL87X0C, for example OpenRTL87X0C_1.18.187.bin. After flashing, apply the WB4 pin config with PWM mapped to 3, 4, 11, and 17 for RGB+W control. [Elektroda, LeMaxime, post #21699333]

Why does the bulb reboot when I set PA10 to PWM?

PA10 is not a PWM‑capable pin in the Tuya RTL SDK for this SoC, so enabling PWM there triggers errors and resets. "Tuya RTL sdk doesn’t allow PA10 as PWM." Use a supported PWM like PA17 for the White channel. [Elektroda, insmod, post #21704430]

Which pin actually dims the White LEDs on WB4?

Use PA17 as a PWM output for the White channel. Users confirmed full on/off and brightness control after assigning White to PA17, while PA10 did not work for PWM. [Elektroda, LeMaxime, post #21704580]

I can switch White on/off but not dim—what should I check first?

Inspect the module for damaged pads or lifted traces, especially IO17/IO19 on CUCO‑KK‑R‑V1.2. Repairing broken pads restored PWM brightness on two bulbs. Hardware faults can mimic firmware misconfiguration. [Elektroda, LeMaxime, post #21705019]

The bulb resets when I try RGB and White together—what’s going on?

WB4 is RGB+W, not RGBCW. Driving both heavy loads simultaneously can cause overcurrent and resets. Try lowering power usage or enabling power‑saving features to reduce load during testing. [Elektroda, p.kaczmarek2, post #21699636]

What is Tuya on these bulbs?

Tuya is the stock IoT platform and firmware that handles BLE/Wi‑Fi pairing, product keys, and lighting control. Boot logs show Tuya tasks, product IDs, and BLE advertising during activation. [Elektroda, divadiow, post #21704350]

What is OpenBeken (OpenBK)?

OpenBeken is an open firmware for cloud‑free control of smart devices like WB4. For RTL87X0C, you flash an OpenBK UART build, set pin roles, and integrate with Home Assistant. [Elektroda, LeMaxime, post #21699333]

How do I wire and flash WB4 quickly? (3‑step How‑To)

  1. Back up: ltchiptool @115200, AmebaZ2, Read Flash + Read ROM.
  2. Enter flash: Hold RX+IO0 at 3.3 V; pulse CEN to GND; connect UART to TXLOG/RXLOG.
  3. Flash OpenBK RTL87X0C UART build; set PWM pins 3, 4, 11, 17; save and reboot. [Elektroda, LeMaxime, post #21699333]

Home Assistant shows no bulb entity after I disable Flag 24. How do I fix it?

Enable Flag 24 for initial Home Assistant Discovery so an entity appears. After discovery completes, remove Flag 24 to restore correct Cool White behavior while keeping the entity. [Elektroda, LeMaxime, post #21699333]

How long does a full backup take over 115200 UART?

At 115200, transfer speed is about 2.25 KB/s. A 2 MB flash dump can take roughly 15 minutes, so be patient or increase baud if supported. [Elektroda, LeMaxime, post #21704330]

Where can I find a pinout/datasheet for W701‑VA2‑CG/WBRx‑class modules?

See the linked guide covering WBR2, WBR3, WBRU, and W701‑VA2‑CG pinouts, datasheets, and flashing steps suitable for Home Assistant use. [Elektroda, p.kaczmarek2, post #21379255]

What pin mapping does Tuya’s stock firmware suggest for PWM on WB4?

A Tuya boot log shows PWM pins indexed as 4, 11, 3, and 17. This aligns with OpenBeken templates that map RGB+W across those four PWM outputs. [Elektroda, divadiow, post #21704350]

Why can’t I find the exact module on Tuya’s site?

The vendor revised the design from ESP to W701H, and the exact module variant may not match Tuya’s public listings. Expect CUCO‑KK‑R‑V1.2 with Realtek on newer batches. [Elektroda, maxikaaz86, post #20514563]
Generated by the language model.
ADVERTISEMENT