OpenBK7231T_App icon indicating copy to clipboard operation
OpenBK7231T_App copied to clipboard

ln882HKI becomes unresponsive after 2 hours

Open geniusled opened this issue 1 year ago • 7 comments

Describe the bug After running the device for 2 hours, it becomes unresponsive. the following can be observed:

  • not connected to wifi anymore
  • ofcourse, no more mqtt
  • doesnt respond to button press anymore (relay,light)
  • lights stay on last state

Firmware:

  • Version OpenLN882H_1.17.516.bin (Build on Mar 23 2024 18:37:28 version LN882H_Test)
  • Device tuya power monitor socket (BSD01) (relay+button+2leds+BL0937)
  • Chip/model: Lightning LN882HKI (module labelled WL2S)
  • Device config (copied from web application / config)

{ "vendor": "Tuya", "bDetailed": "0", "name": "Full Device Name Here", "model": "enter short model name here", "chip": "LN882H", "board": "TODO", "flags": "1152", "keywords": [ "TODO", "TODO", "TODO" ], "pins": { "0": "LED_n;0", "3": "Btn;0", "7": "BL0937CF1;0", "10": "WifiLED_n;0", "11": "Rel;0", "12": "BL0937CF;0", "19": "BL0937SEL;0" }, "command": "", "image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg", "wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html" }

To Reproduce Steps to reproduce the behavior:

  1. Power up device, on homeassistant notice the correct mqtt data
  2. wait ~ 2 hours
  3. look again at homeassistant, notice all data is unkown, the uptime value stopped at ~2h
  4. go to device web page, no response
  5. look at router webpage , device offline
  6. go to physical device, press button, no response
  7. perform power cycle of device, now its running again.

Screenshots If applicable, add screenshots to help explain your problem. image

Additional context Add any other context about the problem here.

  • the data was originally published every ~3seconds, which i found was alot. so i set command VCPPublishIntervals 60 60 to get updates every minute
  • the device was flashed via uart following this guide the only difference is i had to change the programming baud rate to 115200, a FW dump was also made prior to flashing
  • i will attempt to leave the web application page open with the logs tab open to see if theres any usefull logs when the device becomes unresponsive

geniusled avatar Mar 25 '24 15:03 geniusled

see this thread https://www.elektroda.com/rtvforum/topic4044482.html

divadiow avatar Mar 25 '24 15:03 divadiow

see this thread https://www.elektroda.com/rtvforum/topic4044482.html

I just did a quick read through and i cant say for sure the issues are the same. In that post is seems to focus on the webserver being slow after 30seconds and then being unresponsive. That is not my case.

The post does say they have a PR in progress so i will keep an eye out for a new release to see if there is any difference.

geniusled avatar Mar 25 '24 16:03 geniusled

Have you seen this? https://github.com/openshwprojects/OpenBL602/commit/c73dcaab7e73ab68b29bd20a3b5d4c0992902c1d Maybe I can backport it to OpenLN882H? https://github.com/openshwprojects/OpenLN882H/commit/15fde0f403e408eab6ffa31d0e5711e97c37afe2 Can you wait for next release (in 5 minutes) and check new binary?

openshwprojects avatar Mar 25 '24 17:03 openshwprojects

i just installed the LN882H_1.17.518 via OTA. i will report how it turns out.

digging deeper in the uptime information on the device and i noticed that both times it happened at 2am (EST time) not sure if this means anything. on the main web page, it also says

NTP driver is not started, daily energy stats disbled. Periodic Statistics disabled. Use startup command SetupEnergyStats to enable function.

i dont currently need energy stats so im leaving it as is.

geniusled avatar Mar 25 '24 18:03 geniusled

Hi just a quick feedback, So the plug worked for about 20h then it froze the same way again. (*.518)

I rebooted it and its been up for a few hours.

i just updated to *.522 as i see there has been somes changes on the LN882, ill report if theres any improvements

geniusled avatar Mar 27 '24 22:03 geniusled

the device has been up for a few days now with 1.17.522, so it seems the original issue has been resolved. it seems that the uptime sensor was a bit slow updating since then but thats not an issue for me. i just updated to 1.17.529 , ill see if this changes.

ill close this issue for now. Thanks you for the efforts of this project.

geniusled avatar Apr 01 '24 01:04 geniusled

Sorry to bring this up again. The device lasted for 2 days until it crashed again on 1.17.529

The device is inconveniently monitoring all my network stuff (nas,wifi,router,etc) so its quite inconvenient to power cycle it/reset.

would there be an option for a long press reset from the button?

geniusled avatar Apr 06 '24 00:04 geniusled

Devices have been relatively stable since, closing

geniusled avatar Oct 11 '24 01:10 geniusled