Open edwardtfn opened 3 days ago
@nikls2, are you able to download that file from your computer when typing that url (http://192.168.3.50:8080/nspanelblank.tft) in your browser? When you do that, does the file have the same size as the original one? What if you select one of the other models for downloading the TFT directly from GitHub? Logs are welcome... 😉
Another thing you could try is to temporarily use arduino framework for the TFT transfer... Just add this to your panel's Yaml, flash it, and try the transfer again (and don't forget to share the new logs):
esp32:
framework:
type: arduino
Hi @edwardtfn Thanks for your quick answer and the new issue.
I can download the files in the browser and they are what they should be (downloaded correctly from github and checked the size). I setup a faster webserver in the network as well.
I changed the framework to arduino and tried again.
I share logs with different settings: Framework: arduino File: blank Source: github logs_arduino_blank_git.txt
Framework: arduino File: blank Source: local server logs_arduino_blank_local49.txt
Framework: arduino File: EU Source: github logs_arduino_eu_git.txt
Framework: arduino File: US Source: local server logs_arduino_us_local49.txt
And here my configuration, as there could be something wrong as well: config.txt
Any Ideas? I'm very happy for any Ideas and can try more things... Thanks!
It is either crashing when trying to get the file from your server or isn't getting the file correctly:
[13:03:48][D][nextion.upload.arduino:156]: URL: http://192.168.3.49:8080/nspanelus.tft
[13:03:48][D][nextion.upload.arduino:185]: Baud rate: 115200
[13:03:48][D][nextion.upload.arduino:213]: Connected
[13:03:48][D][nextion.upload.arduino:218]: Requesting URL: http://192.168.3.49:8080/nspanelus.tft
[13:03:49][D][nextion.upload.arduino:244]: TFT file size: 0 bytes
[13:03:49][E][nextion.upload.arduino:246]: File size check failed.
[13:03:49][D][nextion.upload.arduino:247]: Close HTTP connection
I'm not at home right now, so will try to look at this again later and come back to you, but meanwhile, could you please comment out that line related to the add-on heat and try again? Maybe freeing up a bit of memory may help, although all the logs points to a connectivity (to the http server) issue.
Hi, I commented out the line with the heat add-on and tried again. The logs are exactly the same. From my browser I can download the file and on the server (php running on linux) I see the GET from the NSPanels'IP (exactly like when I'm getting the file with the browser).
The issue looks to be related to some network issue. For some reason your panel cannot get the file from the server:
[12:48:42][D][nextion.upload.arduino:154]: Nextion TFT upload requested
[12:48:42][D][nextion.upload.arduino:155]: Exit reparse: NO
[12:48:42][D][nextion.upload.arduino:156]: URL: http://192.168.3.49:8080/nspanelblank.tft
[12:48:42][D][nextion.upload.arduino:185]: Baud rate: 115200
[12:48:42][D][nextion.upload.arduino:213]: Connected
[12:48:42][D][nextion.upload.arduino:218]: Requesting URL: http://192.168.3.49:8080/nspanelblank.tft
[12:48:43][D][nextion.upload.arduino:244]: TFT file size: 0 bytes
[12:48:43][E][nextion.upload.arduino:246]: File size check failed.
[12:48:43][D][nextion.upload.arduino:247]: Close HTTP connection
[12:52:52][D][nextion.upload.arduino:154]: Nextion TFT upload requested
[12:52:52][D][nextion.upload.arduino:155]: Exit reparse: NO
[12:52:52][D][nextion.upload.arduino:156]: URL: https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/v4.3.11/hmi/nspanel_us.tft
[12:52:52][D][nextion.upload.arduino:185]: Baud rate: 115200
[12:52:52][D][nextion.upload.arduino:213]: Connected
[12:52:52][D][nextion.upload.arduino:218]: Requesting URL: https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/v4.3.11/hmi/nspanel_us.tft
WARNING nspanel-kitchen @ 192.168.3.42: Connection error occurred: [Errno 104] Connection reset by peer
INFO Processing unexpected disconnect from ESPHome API for nspanel-kitchen @ 192.168.3.42
WARNING Disconnected from API
INFO Successfully connected to nspanel-kitchen @ 192.168.3.42 in 0.010s
INFO Successful handshake with nspanel-kitchen @ 192.168.3.42 in 0.024s
[12:55:12][D][nextion.upload.arduino:154]: Nextion TFT upload requested
[12:55:12][D][nextion.upload.arduino:155]: Exit reparse: NO
[12:55:12][D][nextion.upload.arduino:156]: URL: https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/v4.3.11/hmi/nspanel_blank.tft
[12:55:12][D][nextion.upload.arduino:185]: Baud rate: 115200
[12:55:12][D][nextion.upload.arduino:213]: Connected
[12:55:12][D][nextion.upload.arduino:218]: Requesting URL: https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/v4.3.11/hmi/nspanel_blank.tft
WARNING nspanel-kitchen @ 192.168.3.42: Connection error occurred: [Errno 104] Connection reset by peer
INFO Processing unexpected disconnect from ESPHome API for nspanel-kitchen @ 192.168.3.42
WARNING Disconnected from API
INFO Successfully connected to nspanel-kitchen @ 192.168.3.42 in 0.014s
INFO Successful handshake with nspanel-kitchen @ 192.168.3.42 in 0.021s
[13:03:32][D][nextion.upload.arduino:154]: Nextion TFT upload requested
[13:03:32][D][nextion.upload.arduino:155]: Exit reparse: NO
[13:03:32][D][nextion.upload.arduino:156]: URL: http://192.168.3.49:8080/nspanelus.tft
[13:03:32][D][nextion.upload.arduino:185]: Baud rate: 115200
[13:03:32][D][nextion.upload.arduino:213]: Connected
[13:03:32][D][nextion.upload.arduino:218]: Requesting URL: http://192.168.3.49:8080/nspanelus.tft
[13:03:32][D][nextion.upload.arduino:244]: TFT file size: 0 bytes
[13:03:32][E][nextion.upload.arduino:246]: File size check failed.
[13:03:32][D][nextion.upload.arduino:247]: Close HTTP connection
So, your panel is restarting when trying to connect to GitHub (which I've seeing before when DNS is not accessible) and isn't getting a valid response when it requests the file size from your local server.
I would suggest you to try another local server (Home Assistant itself is a quite reliable option) and double check if your panel's network settings (subnet, dns, etc.) are valid.
Hi @edwardtfn I fight with a similiar Issue and don't know what else I could try. I allow me to share my logs as well and hope you have a tipp how to bring my Display to comply. Thanks!
_Originally posted by @nikls2 in https://github.com/Blackymas/NSPanel_HA_Blueprint/issues/1781#issuecomment-2377993406_