joBr99 / nspanel-issue-graveyard

place to move waiting for content issues to and to keep the search a bit cleaned up
0 stars 0 forks source link

[BUG] update to 3.4.0 never ends #47

Closed jpgimenez closed 1 year ago

jpgimenez commented 1 year ago

PROBLEM DESCRIPTION

A clear and concise description of what the problem is. The update to 3.4.0 never ends, and the NSPanel screen is showing the same progress bar for days now.

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

- [ ] Go to Settings>Add-ons>AppDaemon>Log and then, provide the output of the log during your issue/bug occurs:

2022-09-18 21:01:25.108775 INFO AppDaemon: App initialization complete 2022-09-18 21:01:27.199095 INFO nspanel-2: MQTT callback for: {'topic': 'tele/quincho_nspanel/RESULT', 'wildcard': None, 'payload': '{"CustomRecv":"event,startup,41,us-p"}'} 2022-09-18 21:01:27.201056 INFO nspanel-2: Received Message from Screen: event,startup,41,us-p 2022-09-18 21:01:27.203815 INFO nspanel-2: Sending MQTT Message: X 2022-09-18 21:01:27.210945 INFO nspanel-2: Update Pre-Check failed Tasmota Driver Version: None Panel Version: 41 2022-09-18 21:01:27.212981 INFO nspanel-2: Startup Event 2022-09-18 21:01:27.243047 INFO nspanel-2: Sending MQTT Message: time~21:01~��� Bohemio 2022-09-18 21:01:27.271669 INFO nspanel-2: Sending MQTT Message: date~Sunday, 18 September 2022 2022-09-18 21:01:27.276373 INFO nspanel-2: Sending MQTT Message: timeout~20 2022-09-18 21:01:27.281982 INFO nspanel-2: Sending MQTT Message: dimmode~20~100~6371 2022-09-18 21:01:27.286931 INFO nspanel-2: Started rendering of page None with type screensaver 2022-09-18 21:01:27.289372 INFO nspanel-2: Sending MQTT Message: pageType~screensaver 2022-09-18 21:01:27.317544 INFO nspanel-2: Sending MQTT Message: weatherUpdate~���~15.3��C~Sun~���~21.8��C~Mon~���~21.2��C~Tue~���~19.4��C~Wed~���~20.8��C~~ 2022-09-18 21:01:27.322834 INFO nspanel-2: Sending MQTT Message: color~0~65535~65535~65535~35957~65535~65535~65535~65535~65535~33759~31728~31728~35957~65535~65535~65535~65535~65535~65535~65535~65535 2022-09-18 21:02:00.068135 INFO nspanel-1: Sending MQTT Message: time~21:02~ 2022-09-18 21:02:00.106124 INFO nspanel-2: Sending MQTT Message: time~21:02~��� Bohemio 2022-09-18 21:02:16.554396 INFO nspanel-2: Started rendering of page None with type screensaver 2022-09-18 21:02:16.610706 INFO nspanel-2: Previous message repeated 1 times 2022-09-18 21:02:16.611295 INFO nspanel-2: Sending MQTT Message: weatherUpdate~���~15.1��C~Sun~���~21.8��C~Mon~���~21.2��C~Tue~���~19.4��C~Wed~���~20.8��C~~ 2022-09-18 21:02:16.628956 INFO nspanel-2: Sending MQTT Message: color~0~65535~65535~65535~31728~65535~65535~65535~65535~65535~33759~31728~31728~35957~65535~65535~65535~65535~65535~65535~65535~65535 2022-09-18 21:02:16.651273 INFO nspanel-1: Sending MQTT Message: weatherUpdate~���~15.1��C~Sun~���~21.8��C~Mon~���~21.2��C~Tue~���~19.4��C~Wed~���~20.8��C~~ 2022-09-18 21:02:16.655562 INFO nspanel-1: Sending MQTT Message: color~0~65535~65535~65535~31728~65535~65535~65535~65535~65535~33759~31728~31728~35957~65535~65535~65535~65535~65535~65535~65535~65535 2022-09-18 21:03:00.073286 INFO nspanel-2: Sending MQTT Message: time~21:03~��� Bohemio 2022-09-18 21:03:00.085295 INFO nspanel-1: Sending MQTT Message: time~21:03~ 2022-09-18 21:04:00.116680 INFO nspanel-1: Sending MQTT Message: time~21:04~ 2022-09-18 21:04:00.133673 INFO nspanel-2: Sending MQTT Message: time~21:04~��� Autobuses 2022-09-18 21:05:00.119635 INFO nspanel-2: Sending MQTT Message: time~21:05~��� Autobuses 2022-09-18 21:05:00.147076 INFO nspanel-1: Sending MQTT Message: time~21:05~


### TO REPRODUCE
_Steps to reproduce the behavior:_
* update to 3.4.0
* update never ends

### EXPECTED BEHAVIOUR
_A clear and concise description of what you expected to happen._
* update should end or raise some error

### SCREENSHOTS
_If applicable, add screenshots/pictures to help explain your problem._
![image](https://user-images.githubusercontent.com/118895/190934011-aecd1d8c-b738-459e-8142-13f5714946d3.png)

### ADDITIONAL CONTEXT
_Add any other context about the problem here._
I'm using esphome, this is the log from esphome dashboard:

[21:03:56][D][nspanel_lovelace_upload:156]: Requesting URL: http://nspanel.pky.eu/lovelace-ui/github/nspanel-us-p-v3.4.0.tft [21:03:58][D][nspanel_lovelace_upload:188]: Updating Nextion [21:03:58][D][nspanel_lovelace:098]: Sending: whmi-wris 7765044,115200,1 [21:03:58][D][nspanel_lovelace_upload:206]: Waiting for upgrade response [21:04:00][D][nspanel_lovelace_upload:211]: Upgrade response is [] [21:04:00][D][nspanel_lovelace_upload:216]: preparation for tft update failed 0 "" [21:04:00][D][nspanel_lovelace_upload:274]: Restarting Nextion [21:04:00][D][nspanel_lovelace:098]: Sending: rest INFO kitchen-nspanel.local: Ping timed out! INFO Disconnected from ESPHome API for kitchen-nspanel.local WARNING Disconnected from API INFO Successfully connected to kitchen-nspanel.local [21:05:00][D][nspanel_lovelace:108]: Sending custom command: time~21:05~


I have 2 NSPanels, I tried the update only on one of them, now I don't want to break the other one... updates were working smoothly in the  past.

### PANEL / FIRMWARE VERION
_Please add the Panel/Firmware Version you are using (EU, US-L or US-P)_
US-P
tianzhuang55 commented 1 year ago

me as well, and the update stuck. Tried restart the naspanel and the display says system data error. Update again and stuck again.

joBr99 commented 1 year ago

You can try to flash https://nspanel.pky.eu/test.tft in between.

@tianzhuang55 tasmota or esphome?

tianzhuang55 commented 1 year ago

tasmota

joBr99 commented 1 year ago

You can also try to flash test.tft, if your keep having issues with flashing you can try lowering the serial speed in the berry driver. Restart tasmota after a failed flash or changes to the berry driver.

around line 155:

                        log("FLH: Send (High Speed) flash start")
                        self.flash_start_millis = tasmota.millis()
                        self.sendnx(string.format("whmi-wris %d,115200,res0",self.flash_size))
                        #self.sendnx(string.format("whmi-wris %d,921600,res0",self.flash_size))
                        #self.ser = serial(17, 16, 921600, serial.SERIAL_8N1)
                    elif size(msg)==1 && msg[0]==0x08
jpgimenez commented 1 year ago

You can try to flash https://nspanel.pky.eu/test.tft in between.

@tianzhuang55 tasmota or esphome?

Hi, I already tried the test.tft and still stuck on the same step, on esphome I can change baud rate on the yaml, should I try lowering to 57600?

tianzhuang55 commented 1 year ago

Dear all, I tried local flash and it’s ok now. It’s the problem of network instead of firmware to me. Sorry for the false alarm!

joBr99 commented 1 year ago

@jpgimenez

I cannot tell you much about the flashing on esphome, but did you try to power cycle the device? As long it is in this screen with the progress bar it isn't possible to start a new flashing progress, you need to abort it by power cycling it. This will lead into a System Data Error Message on the screen. With this error message you are able to start over with flashing.

jpgimenez commented 1 year ago

@jpgimenez

I cannot tell you much about the flashing on esphome, but did you try to power cycle the device? As long it is in this screen with the progress bar it isn't possible to start a new flashing progress, you need to abort it by power cycling it. This will lead into a System Data Error Message on the screen. With this error message you are able to start over with flashing.

confirmed, this fixes the issue, maybe a network problem put the device on that state and power cycling it was the only way to fix it