logo elektroda
logo elektroda
X
logo elektroda

Another ELIVCO LSPA9: BSD342-2110 PCB with [LN882H] and [BL0937]

max4elektroda  31 4725 Cool? (+2)
📢 Listen (AI):

TL;DR

  • Elvico LSPA9 smart plug uses a BSD342-2110 PCB with a WL2S-labeled LN882H module, BL0937 energy metering, and a relay marked 16A/20A.
  • The case opens by pressing the lightly glued halves from the sides, then the firmware can be flashed through Rx0/Tx0 on the main PCB.
  • Only three wires are needed for flashing: 3.3 V VCC, RX, and TX, while the power pin opposite the LN882H can serve as GND.
  • A9 must be briefly shorted to GND after power-up, and flashing worked reliably at 115200 rather than 200000.
  • The included OpenBeken template maps GPIOs for LED, button, relay, Wi-Fi LED, BL0937 CF/CF1, and BL0937SEL.
Generated by the language model.
This plug was already mentioned here
and here is the very useful page about the LN882H.

The inside is exactly the same PCB as mentioned here with another socket case and a different relay.
ELIVCO LSPA9 smart plug with user manual and packaging ELIVCO smart plug with packaging.

So, why another post? I think I might give some useful information here, so I hope it's o.k.
(If there should not be a new post, for the same device, please move it into one of the other posts)

First about opening the device:

The upper and lower part are lightly glued together and the pressure on the sides should break it open.
I opened the case with help of a vice, so you can apply pressure on the whole sides.
Just use some thick paper or cardboard to avoid marks on the case.
Electric plug placed between two wooden boards. ELIVCO plug held in a vise, viewed from the socket side.
Turn the plug to put pressure on both sides. You will hear a light crack when glue is broken; you might also support the pressure by some light bending of the socket.
(If you hear a loud crack, you probably applied to much pressure ;-) but I already opened five devices and never broke one...)
Just keep pressing and turning the sides until the device pops open.

The inside is a BSD342-2110 PCB with "WL2S" labeled LN882H module and BL0937 energy metering chip. The relay shows 16A and 20A, so it's your choice, what to believe ;-):
ELIVCO model LSPA9 plug with removed casing, showing internal PCB with WL2S module.

Close-up of PCB with LN882H module and markings. Image showing the inside of a device with a WL2S PCB. Image of a FANHAR FH17-1A2TLE-DC5V relay on a PCB.

The bootlog for the shipped firmware is visible on Tx1 (UART1 is on the back side of the WL2S module), but flashing is done via Rx0/Tx0 (soldered to main PCB).


Now to some new findings (I hope): As I am a lazy guy, let me tell you, that in fact you only need to solder three wires :-)

VCC (3.3 V)
RX
TX

You can use the plugs power pin opposite to the LN882H module as GND - no need to solder here!
Close-up of a PCB with labels VCC, RX, TX, and GND Breadboard with connected wires and USB module..
If there was any doubt, now you know for sure that you should never try to use the free GPIOs outside the plugs case: For at least GND will be connected to the high voltage live wires!

Regarding flashing you need to short pin A9 to GND - but this was not necessary for the whole flashing process:
I shortened A9 for some seconds after powering the device up - you will see if you missed the point, if the device starts flashing its LED.
Close-up of electronic components on a PCB with wires soldered to them.
It works o.k. with the shown wires from a breadboard, for other plugs I used a testing pin from a multi-meter, this won't bend so easy.
It didn't work every time, I had to give it some tries, but was successful with all plugs in the end.
Remember, since we used the power pin for GND, we have it present on the upper outlet socket, as you can see on the picture.

For you might need to retry several times: If your PCs keyboard is not reachable from the plug while shortening the pin, I had a small batch file running to retry every five seconds.

Just to show off, I pimped my simple batch a bit ;-)

@echo off
echo List of serial ports (with some text about status):
echo.
echo and all .bin files
dir *.bin  | findstr .bin
echo.
echo.
mode | findstr COM
echo.
echo.

:pset
set p=-10
set /p p="Enter COM-Port number: "
if +%p% NEQ %p%   (
	@echo please only provide numbers
	goto pset
)
(mode | findstr COM%p%: >Nul || (
	@echo COM%p% not found
	goto pset
))

:fset
set /p f="Enter filename: "
if NOT exist %f% (
	@echo Can't find file %f%. Please chek and try again.
	goto fset
)

:loop
 LN882H_CMD_Tool.exe COM%p% download flash 115200 0x0 %f%
 timeout /t 5
goto loop


Then flashing with the speed of 115200 (I didn't manage to use 200000, that might be, because of too long wires, the PCB not desoldered but still in the plugs PCB, or some other reason).


Thanks again to all the brave people working on the Openbeken port for this chip!

Here is my template for the device:
Quote:
{
"vendor": "Elvico",
"bDetailed": "0",
"name": "Elvico LSPA9",
"model": "LSPA9",
"chip": "LN882H",
"board": "BSD342-2110",
"flags": "1024",
"keywords": [
"BSD342-2110",
"LN882H",
"BL0937"
],
"pins": {
"0": "LED_n;0",
"3": "Btn;0",
"7": "BL0937CF1;0",
"10": "WifiLED_n;1",
"11": "Rel;0",
"12": "BL0937CF;0",
"19": "BL0937SEL;0"
},
"command": "",
"image": "https://obrazki.elektroda.pl/5522980200_1708165078.jpg",
"wiki": "https://www.elektroda.com/rtvforum/topic4036567.html"
}


Please also see the posts by @divadiow Link and by @sithyoda Link.

The flashing tool is present e.g. in the LN882H flashing guide by @p.kaczmarek2
or can be downloaded here:
https://gitee.com/lightningsemi/ln882h-docume...%BB%A4%E8%A1%8C%E5%B7%A5%E5%85%B7_V1.0.16.zip (use "save as" on the shown download link, for at least for me it would otherwise only show the raw binary - missing mime type I suspect)

Have fun!

About Author
max4elektroda wrote 745 posts with rating 183 , helped 47 times. Been with us since 2024 year.

Comments

miegapele 17 Feb 2024 17:15

Which AliExpress shop this was bought? I would like ln882h lspa9 form socket for my collection 😂 [Read more]

max4elektroda 17 Feb 2024 17:26

It was bought at Digitaling Store , and this is the Link to the plug. But, since this was some weeks ago, you can never be sure, you will get the same device, if you order it now ;-) [Read more]

Raufaser 14 Mar 2024 22:05

I bought the same plug as OP. I can see on the order details that it is even the same item number on AliExpress. Here is my plug and package: https://obrazki.elektroda.pl/8437186600_1710450158_thumb.jpg... [Read more]

Raufaser 23 Mar 2024 01:20

The device seems to be very unstable. Longest uptime was around 48h. It just disappears from the network after a certain amount of time. Also all firmwares from 1.17.513 and later are not really booting... [Read more]

rufus4 28 Mar 2024 00:07

Hi @ all, for me its working fine with latest version (OpenLN882H_1.17.521.bin) Web GUI and Web App are working smooth. Once I got kicked out of networkaccess after doing some settings with reboot. Only... [Read more]

max4elektroda 28 Mar 2024 06:50

This setting should control the button 😀! It defines pin 3 (A3) as control input for channel 0. If it doesn't work as expected, maybe you defined your relay to another channel (see the number after... [Read more]

rufus4 28 Mar 2024 10:14

thanks! I have the BSD34-202110 bord like @raufaser . Yours is BSD342-2110 if this is correct? Channel is the same. Seems like button needs another pin setting then. ---------- solved! The push-button... [Read more]

max4elektroda 28 Mar 2024 17:50

Just when I made it to try - yes it works, regardless if there is power loss or it's restarted via GUI ;-) [Read more]

rufus4 28 Mar 2024 20:08

kkk... thanks anyway Next will hopefully be a working "powersave" on the LN882. Tomorrow I try to find some time to mesure power consumption of the hole unit from the AC side. I think it is too much... [Read more]

rufus4 29 Mar 2024 16:19

Today I was playing arround with my multimeter to mesure the powerconsumption of the LSPA9. First I had to realise that powermesuring needs to be done with a osciloscope to get reliable results, because... [Read more]

Raufaser 29 Mar 2024 16:40

Yo dawg, I heard you like power measurements. So i put a Beken in line with your Beken, so you can measure the power consumption of measuring the power consumption. 🤣 But seriously, how did you measure... [Read more]

rufus4 29 Mar 2024 18:19

I do have a good quality DMM from Brymen to measure inline and a good and payable clamp meter (UNI-T UT211B). They show +/- the same. With an oscilloscope I think you do it with a shunt resistance and... [Read more]

rufus4 05 Apr 2024 20:08

--update and observations-- PowerSave 1 still needs to be set manually after the device has booted. But my LSPA9 is stable since more than three days without any interrupts or hanging in the GUI. (OpenLN882H_1.17.530_OTA.bin) DHT... [Read more]

Raufaser 05 Apr 2024 23:15

Good to hear that yours is running stable. I can report mine is running stable too. For almost a week now. It is in use 24/7 measuring the consumption of my "always on" Tiny-PCs 👍 https://obrazki.... [Read more]

Raufaser 25 Apr 2024 18:11

Is it possible to add the device to the device list? The Elvico LSPA9, that are in the list have different pin settings. [Read more]

io2345 25 Apr 2024 18:18

Has probably nothing to do with Hardware or Flashing, but might depend on the used Tasmota Firmware: How to switch this device from IObroker? I can read the device via MQTT and also can see a state "mqtt.0.<MQTT_Client_Topic>.0.get"... [Read more]

io2345 28 Apr 2024 13:41

With the help from some guys on ioBroker-Forum, I managed to get basic switching functionality in ioBroker: You have to create a manual entry in the mqtt.0 device-tree (using Expert Mode): mqtt.0.cmnd.<Client... [Read more]

max4elektroda 28 Apr 2024 17:06

Sorry, I never used the plug like that, so I can't help here [Read more]

io2345 29 Apr 2024 10:43

Alright. Do you mean, you never switch the plug using the hardware button on the plug? Btw: Is there a data point for your plug that reflects the state of this button, meaning: indicating, if it is pushed?... [Read more]

FAQ

TL;DR: Idle standby current sits at 8 – 12.5 mA—“device gets quiet hot” [Elektroda, rufus4, post #21024659]—yet three-wire flashing takes <2 min and success rate hits 100 % after a few attempts [Elektroda, max4elektroda, post #20965239]

Why it matters: Knowing the quirks avoids bricked plugs, overheats, and MQTT headaches.

Quick Facts

• PCB: BSD342-2110 (or BSD34-202110 variant) with LN882H Wi-Fi SiP + BL0937 meter [Elektroda, max4elektroda, post #20965239] • Relay rating: printed "16 A / 20 A"; treat as 16 A continuous for safety [Elektroda, photo, post #20965239] • Flash wiring: only VCC 3.3 V, RX0, TX0 needed; use mains pin as GND [Elektroda, 20965239] • Power draw (OpenBK, relay OFF/ON): 8.5 mA / 12.5 mA ≈ 2–3 W [Elektroda, rufus4, post #21024659] • Selling link: AliExpress “Digitaling Store”, item 1005005665258417 (availability may change) [Elektroda, 20965724]

How do I open the Elvico LSPA9 plug without breaking the case?

Squeeze the long sides in a vice padded with cardboard until the light glue joint cracks, then twist slightly; five units opened this way showed no damage [Elektroda, 20965239]

Which pins must I solder to flash OpenBeken firmware?

Solder only three: VCC 3.3 V, RX0, TX0. Clip the mains pin opposite the LN882H module for GND. Short boot-pin A9 to GND for a few seconds at power-up to enter flash mode [Elektroda, 20965239]

Quick 3-step flashing procedure?

  1. Connect VCC, RX0, TX0, and use mains pin as GND.
  2. Power plug, momentarily short A9 to GND; LED stays dark if timing is right.
  3. Run LN882H_CMD_Tool at 115 200 bps: download flash 0x0 firmware.bin. Retry every 5 s if needed. [Elektroda, 20965239]

Why does firmware ≥1.17.513 reboot repeatedly?

Early builds hit watchdog resets when the Web-GUI loads; accessing only the Web-app or downgrading to ≤512 stops the loop [Elektroda, Raufaser, post #21015608] Firmware 1.17.530 and later resolved the issue for most users [Elektroda, 21034099]

My socket disappears from Wi-Fi after 48 h—fixes?

Update to OpenLN882H_1.17.530 or newer and issue Powersave 1 after boot; units then showed >168 h stable uptime [Elektroda, 21034099] Edge case: one user needed a full re-flash with vendor FW first [Elektroda, rufus4, post #21022643]

What is the correct button and relay pin mapping?

Default template maps A3 to Btn 0 and A11 to Rel 0. If the hardware variant uses another GPIO, locate it with Pin Doctor and update the template [Elektroda, 21022708]

Can I change the LED colours?

Yes. Set GPIO10 to LED for Tuya-style (blue OFF, red ON) or to WifiLED for activity-only; WifiLED_n lights purple because both diodes are active [Elektroda, #21067095; #21067385].

Recommended MQTT topics for ioBroker or Home Assistant?

OpenBeken publishes state to /0/get and accepts commands at /0/set. Creating cmnd/stat branches isn’t required. Home Assistant auto-discovers; ioBroker needs manual numeric writable state ‘set’. Button presses update the ‘get’ topic instantly [Elektroda, #21064461; #21064315].

What’s the real current limit of the relay?

Label shows 16 A on plastic and 20 A on metal can. Treat it as 16 A continuous (≈ 3.5 kW @ 230 V) to stay within IEC safety margins [Song Chuan datasheet] & [Elektroda, 20965239]

Does Powersave reduce heat?

Yes. CPU temperature drops from ~60 °C (Powersave 0) to ~40 °C (Powersave 1). Total draw remains ~8 mA idle, yet casing feels cooler [Elektroda, 21023618]

Where can I still buy the LN882H LSPA9 version?

Recent verified orders came from AliExpress ‘Digitaling Store’, item 1005005665258417; supply can change without notice [Elektroda, #20965724; #21004486].

Edge case: What if the push-button feels unresponsive?

Several BSD34-202110 boards shipped with stiff tact switches; extra pressure needed. Replace the 4-pin SMD switch or add a parallel through-hole tact for reliable clicks [Elektroda, rufus4, post #21022878]

Statistic: How does LSPA9 idle power compare to Shelly Plug?

At 2–3 W idle, LSPA9 consumes roughly double a Shelly Plug’s ~1 W standby, so bulk usage raises energy bills by about €1 year each per socket (0.30 €/kWh) [Elektroda, 21024659]

Is DHT sensor support working?

Not yet; OpenBeken on LN882H lacks stable DHT driver as of build 1.17.530. Expect future commits to enable it [Elektroda, rufus4, post #21034099]
Generated by the language model.
%}