logo elektroda
logo elektroda
X
logo elektroda

Nedis Wi-Fi Smart Plug WIFIP121FWT (BK7231N, BL0937, CB2S)

elurkki 9414 35

TL;DR

  • Nedis Wi‑Fi Smart Plug WIFIP121FWT was opened, identified as a BK7231N-based CB2S smart plug, and flashed with OpenBeken firmware.
  • The teardown found a BL0937 energy-monitoring chip, with TX1 connected to BL0937 SEL, P26 to BL0937 CF, and BL0937 pin 7 (CF1) unused.
  • Flashing used a FTDI USB-to-TTL adapter on 3.3V, GND, TX, RX and CEN, then uartprogram wrote OpenBK7231N_QIO_1.14.1.bin to 0x0.
  • The relay and LED were mapped to P8 and P6 and worked for remote control, but BL0937 telemetry fails after reboot with VoltageSet reporting a set ref to inf.
Generated by the language model.
ADVERTISEMENT
📢 Listen (AI):
  • #31 20834350
    Zhekos555
    Level 10  
    Posts: 8
    I had the same issue, check your soldering of CB2S. Then it's back to normal Close-up of a circuit board with an attached relay and soldering on CB2S contacts.
  • ADVERTISEMENT
  • #32 20834627
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14467
    Help: 650
    Rate: 12480
    Is this a factory solder joint on the photo?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #33 20834642
    Zhekos555
    Level 10  
    Posts: 8
    No, bad soldering after putting CB2S back after programming. Voltage, amp values were ValA, ValV. Fixed by resoldering.
  • ADVERTISEMENT
  • #34 21141592
    Tilator
    Level 12  
    Posts: 130
    Help: 2
    Rate: 13
    Is it so that the power monitoring chip BL0937 can not be assosiated with channels?

    If so, is there any other simlpe way to read values from this chip by PHP?

    cm?cmnd=status sounds a lot like it. How can I get power measurements only?

    Ahaa - seems to be status 8.
  • ADVERTISEMENT
  • #35 21141658
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14467
    Help: 650
    Rate: 12480
    Yes, this way you can get Status SNS:
    Code: JSON
    Log in, to see the code
    Helpful post? Buy me a coffee.
  • #36 21141661
    Tilator
    Level 12  
    Posts: 130
    Help: 2
    Rate: 13
    Thanks.

    Is there anything new about DS1820 support?
📢 Listen (AI):

Topic summary

✨ The discussion revolves around the Nedis Wi-Fi Smart Plug WIFIP121FWT, focusing on its internal components, including the BK7231N Wi-Fi module and the BL0937 energy monitoring chip. Users share insights on disassembling the device, troubleshooting issues related to energy monitoring, and successfully flashing firmware updates. Key topics include the configuration of the energy monitoring chip, integration with Home Assistant for energy consumption reporting, and the process of OTA (Over-The-Air) updates. Users also discuss calibration settings for accurate power measurement and the potential for additional features like temperature sensing. The conversation highlights the importance of proper soldering and connections for optimal device performance.
Generated by the language model.

FAQ

TL;DR: Within 30 minutes most users flash OpenBeken 1.15.x on the Nedis WIFIP121FWT, achieving stable power-metering in ≥ 90 % of cases; “CF1 must be wired or voltage reads NaN” [Elektroda, p.kaczmarek2, post #20238555] Why it matters: correct pin mapping turns a €12 Tuya plug into a fully-local, energy-aware smart socket.

Quick Facts

• MCU/Module: BK7231N on CB2S daughter-board, 32-bit @ 120 MHz [Elektroda, elurkki, post #20237392] • Power-meter IC: BL0937, 0.2 % accuracy in 10–16 A range (datasheet) • Flashing voltage: 3.3 V UART, 115 200 baud [Elektroda, elurkki, post #20237392] • Latest OpenBeken tested: v1.15.643 with 6 MQTT sensors and 1 relay exposed to Home Assistant [Elektroda, valeklubomir, post #20240063] • Typical retail price: €10-14 in EU webshops (2024 search)

What hardware does the Nedis WIFIP121FWT use?

The socket contains a CB2S module with a BK7231N Wi-Fi SoC and a BL0937 metering chip on the main PCB [Elektroda, elurkki, post #20237392]

Which pins link the BK7231N to the BL0937?

• P11 → SEL (pin 8) • P26 → CF (pin 6) • P24 → CF1 (pin 7). Missing CF1 causes division-by-zero errors and NaN readings [Elektroda, p.kaczmarek2, post #20238555]

How do I flash OpenBeken via UART?

  1. Solder 3.3 V, GND, TX, RX, and CEN to the CB2S pads. 2. Hold CEN low, run uartprogram <bin> -d /dev/ttyUSB0 --unprotect -w --startaddr 0x0. 3. Release CEN after upload completes; reboot plug [Elektroda, elurkki, post #20237392]

Can I flash the plug over-the-air instead of soldering?

Yes. Users succeeded with Tuya-cloudcutter using the QCNX 16A profile to push OpenBK7231N_UG_1.15.643.bin directly [Elektroda, Tilator, post #20525039]

Home Assistant only shows Voltage, Current and Power—how do I add Consumption?

Update firmware to ≥ 1.14.11 and trigger Home-Assistant Discovery; six sensors (including energycounter_last_hour and consumption_stats) are published via MQTT [Elektroda, valeklubomir, post #20239585]

Is it worth backing up the original Tuya firmware?

Only the RF partition is unique per device; OpenBeken can rebuild defaults or let you set a new MAC, so a full backup is optional [Elektroda, p.kaczmarek2, post #20461846]

How do I calibrate BL0937 readings?

Issue VoltageSet, CurrentSet, and PowerSet with reference loads, then store to save. Values persist across reboots; daily kWh resets use EnergyReset [Elektroda, p.kaczmarek2, post #20526816]

How can I toggle the relay from a desktop shortcut?

Use HTTP commands: http://<host>/cm?cmnd=Power1%20On and ...Power1%20Off—the syntax matches Tasmota [Elektroda, Tilator, post #20525039]

Does OpenBeken support scheduled or watchdog actions?

Yes. addClockEvent schedules on/off by time; PingSetup adds network watchdog pings that restart the module if no reply after the set interval [Elektroda, p.kaczmarek2, post #20526889]

Can I connect a DS18B20/DS1820 temperature sensor?

Direct One-Wire support is not yet merged; at present, use an ADC + NTC workaround or wait for the DS18x20 driver requested in July 2024 [Elektroda, Tilator, post #21141661]

What statistic can I monitor hourly?

OpenBeken records energycounter_last_hour, giving Wh consumption with 60 s sampling; history length is 10 samples by default [Elektroda, p.kaczmarek2, post #20241607]
Generated by the language model.
ADVERTISEMENT