OpenBK7231T_App icon indicating copy to clipboard operation
OpenBK7231T_App copied to clipboard

LN882h in smartplug model WHDZ01 Does not join my wifi

Open jn-safe4 opened this issue 6 months ago • 7 comments

Firmware: OpenLN882H_1.18.131 Smartplug model: WHDZ01 PCB markings: WH_EU_(N) V08 2024/07/31 Chip: LN882H

The plug was previously used with Cozylife.

I am able to upload the firmware successfully. It starts the initial AP, and I can access it through 192.168.4.1.

I have tried connecting it to my home network with WPA2: SSID: "Mew" Password: "Password14"

However, I haven't been able to find any new devices on my network.

Using safemode to reconfig, I also tried connecting it to my phone's hotspot with no password: SSID: "Mew3"

It does not connect there either.

From the UART console, on every power cycle, I get the following output: "Console init ok! ready"

To Reproduce Flash the firmware (I have been using Itchiptool v4.12) Configure Wi-Fi through the AP (192.168.4.1) Power cycle the device Observe that it does not connect to the Wi-Fi network i can see from the power draw that it's in normal operation, not boot mode (100mA vs 24mA)

jn-safe4 avatar Jul 08 '25 21:07 jn-safe4

I have a similar problem with all of my LN882H-based devices that don't have the IC on a separate module (i.e. the LN882H is on the main PCB).

I have 3 LN882H smart outlets and 3 LN882H smart bulbs, all of which operate normally once they successfully connect to WiFi. However, getting them to initially connect and having the configuration page load often requires power cycling them 2 or 3 times, and sometimes (especially with the bulbs), 10 or more times. As noted, once these device successfully connect initially, their function is stable. Even when not connected to WiFi, OpenBeken continues to work properly otherwise; the LED bulbs light up at their previous setting and intensity, and the button, relay and LED on the smart outlets also work.

I can provide firmware dumps and images of the devices' boards upon request if it would be helpful in diagnosing this. The model number of the smart outlets is RMC003

OothecaPickle avatar Jul 11 '25 04:07 OothecaPickle

Hmm. Strange. I think i was up to 5 reboots after config without ever seeing it on the network. maby i should just keept on.

I sort of gave up on that and have now 90% writen my own firmware. it was not to bad. exept for not beeing able to (know how) to do the ISR for the pulses. from the power chip.

just found out now while writing that the pins that the pulses are connected to; PB4 and PB5 dont support interrupts

jonasnic avatar Jul 11 '25 09:07 jonasnic

I have a similar problem with all of my LN882H-based devices that don't have the IC on a separate module (i.e. the LN882H is on the main PCB).

I have 3 LN882H smart outlets and 3 LN882H smart bulbs, all of which operate normally once they successfully connect to WiFi. However, getting them to initially connect and having the configuration page load often requires power cycling them 2 or 3 times, and sometimes (especially with the bulbs), 10 or more times. As noted, once these device successfully connect initially, their function is stable. Even when not connected to WiFi, OpenBeken continues to work properly otherwise; the LED bulbs light up at their previous setting and intensity, and the button, relay and LED on the smart outlets also work.

I can provide firmware dumps and images of the devices' boards upon request if it would be helpful in diagnosing this. The model number of the smart outlets is RMC003

I figured out the problem (in my case)! Setting a static IP via the configuration page has completely resolved all connection problems on my bulbs and outlets. Apparently it had something to do with DHCP. 🤔 🤷🏻‍♂️

OothecaPickle avatar Jul 11 '25 09:07 OothecaPickle

Nice. Im so close to finishing myown so will continue, but im glad you had progress on this

jonasnic avatar Jul 11 '25 09:07 jonasnic

I see i have mixed my work and personal account.. but im am also jn-safe4

jonasnic avatar Jul 11 '25 09:07 jonasnic

https://github.com/openshwprojects/OpenBK7231T_App/actions/runs/16367844373/job/46249571054?pr=1724

could give this a go?

divadiow avatar Jul 18 '25 11:07 divadiow

From the UART console, on every power cycle, I get the following output: "Console init ok! ready"

Probably to late, but which uart did you use? LN882H has two: uart 0(A3/A2) and uart 1 (B8/B9), sometimes the naming is exchanged. But it would be B8/B9 (in fact only Tx, so B9) to get the logs from OpenLN882H firmware

MaxineMuster avatar Aug 02 '25 07:08 MaxineMuster