joBr99 / nspanel-lovelace-ui

Custom Firmware for NsPanel with the design of HomeAssistant's lovelace UI in mind, works with Tasmota.
GNU General Public License v3.0
863 stars 187 forks source link

[BUG] FlashNextion cannot finish flashing. #456

Closed bartlomiejborzucki closed 1 year ago

bartlomiejborzucki commented 1 year ago

PROBLEM DESCRIPTION

I have my NSPanel with tasmota 12.1.1.2(nspanel). I use your tutorial to prepare my NSPanel to use your code. When I start to flash firmware to Nextion Screen, I get these logs message from console:

21:19:17.240 BRY: GC by type string:98 class:2 proto:37 instance:33 map:6 list:4 closure:38 ntvclos:1 module:0 comobj:0
21:19:17.312 FLH: HTTP Respose is 200 OK or 206 Partial Content
21:19:17.315 FLH: Flash file size: 7673196
21:19:17.322 NXP: Nextion command sent = bytes('4452414B4A485355594447424E434A48474A4B534842444EFFFFFF')
21:19:17.328 NXP: Nextion command sent = bytes('7265636D6F643D30FFFFFF')
21:19:17.333 NXP: Nextion command sent = bytes('7265636D6F643D30FFFFFF')
21:19:17.339 NXP: Nextion command sent = bytes('636F6E6E656374FFFFFF')

(more logs below) and that's all. The screen has default template from sonoff and console prints no more relevant logs. I waited about 30 minutes. I also updated berry drivers and restarted nspanel and I got the same result. Furthermore, I use this firmware during flashing: http://ota.tasmota.com/tasmota32/release/tasmota32-nspanel.bin I also try this command: UpdateDriverVersion https://raw.githubusercontent.com/joBr99/nspanel-lovelace-ui/main/tasmota/autoexec.be Logs:

1:38:51.326 CMD: UpdateDriverVersion https://raw.githubusercontent.com/joBr99/nspanel-lovelace-ui/main/tasmota/autoexec.be
21:38:51.330 SRC: WebConsole from 192.168.2.135
21:38:51.333 CMD: Grp 0, Cmd 'UPDATEDRIVERVERSION', Idx 1, Len 85, Pld -99, Data 'https://raw.githubusercontent.com/joBr99/nspanel-lovelace-ui/main/tasmota/autoexec.be'
21:38:51.348 RSL: RESULT = {"UpdateDriverVersion":"Done"}
21:38:52.541 HTP: Connected in 1141 ms, stack low mark 2580
21:38:52.544 Sucessfully downloaded nspanel-lovelace-ui berry driver
21:38:53.404 Sucessfully written nspanel-lovelace-ui berry driver
21:38:53.980 NXP: Initializing Driver
21:38:53.990 RSL: RESULT = {"nlui_driver_update":"succeeded"}

After reboot the same result :( I also removed autoexec.bac file

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:

Log output here: 00:00:00.527 Project tasmota - Tasmota Version 12.1.1.2(nspanel)-2_0_4_1(2022-09-10T15:18:02) 00:00:00.528 ETH: No ETH MDC and/or ETH MDIO GPIO defined 00:00:00.901 BRY: GC from 7712 to 6487 bytes, objects freed 19/89 (in 1 ms) - slots from 116/137 to 88/137 00:00:00.902 BRY: GC timing (us) 1:243 2:425 3:448 4:6 5:27 total:1149 00:00:00.903 BRY: GC by type string:34 class:1 proto:5 instance:18 map:6 list:4 closure:10 ntvclos:1 module:0 comobj:0 00:00:00.938 BRY: GC from 12979 to 12199 bytes, objects freed 14/160 (in 1 ms) - slots from 160/167 to 132/167 00:00:00.939 BRY: GC timing (us) 1:178 2:586 3:222 4:6 5:28 total:1020 00:00:00.940 BRY: GC by type string:71 class:1 proto:13 instance:18 map:7 list:5 closure:18 ntvclos:1 module:0 comobj:0 00:00:01.092 NXP: Initializing Driver 00:00:01.099 BRY: Successfully loaded 'autoexec.be' 00:00:01.552 WIF: Checking connection... 00:00:01.553 WIF: Attempting connection... 00:00:02.043 WIF: Connecting to AP1 BlackMesa_Portal Channel 8 BSSId 7C:10:C9:64:26:C2 in mode 11n as tasmota-C82E14-3604... 00:00:02.074 WIF: Checking connection... 00:00:02.076 WIF: Attempting connection... 00:00:04.091 WIF: Checking connection... 00:00:04.093 WIF: Connected 00:00:04.354 HTP: Web server active on tasmota-C82E14-3604 with IP address 192.168.1.29 00:00:04.816 NTP: Sync time... 00:00:04.909 RTC: UTC 2022-09-11T20:12:59, DST 2022-03-27T02:00:00, STD 2022-10-30T03:00:00 21:12:59.001 RTC: Synced by NTP 21:13:00.538 RSL: INFO1 = {"Info1":{"Module":"NSPanel","Version":"12.1.1.2(nspanel)","FallbackTopic":"cmnd/DVES_C82E14_fb/","GroupTopic":"cmnd/tasmotas/"}} 21:13:00.553 RSL: INFO2 = {"Info2":{"WebServerMode":"Admin","Hostname":"tasmota-C82E14-3604","IPAddress":"192.168.1.29"}} 21:13:00.557 RSL: INFO3 = {"Info3":{"RestartReason":"Software reset CPU","BootCount":28}} 21:13:00.571 RSL: RESULT = {"POWER1":"OFF"} 21:13:00.574 RSL: POWER1 = OFF 21:13:00.576 RSL: RESULT = {"POWER2":"OFF"} 21:13:00.578 RSL: POWER2 = OFF 21:13:00.591 TFS: File 'autoexec.bat' not found 21:13:02.298 HTP: Main Menu 21:13:02.733 QPC: Reset 21:13:04.158 HTP: Consoles 21:13:04.725 APP: Boot Count 28 21:13:04.739 BRY: GC from 20952 to 14399 bytes, objects freed 39/217 (in 3 ms) - slots from 248/289 to 152/289 21:13:04.741 BRY: GC timing (us) 1:566 2:1206 3:981 4:5 5:30 total:2788 21:13:04.743 BRY: GC by type string:94 class:1 proto:23 instance:22 map:5 list:2 closure:23 ntvclos:1 module:0 comobj:0 21:13:04.749 RSL: STATE = {"Time":"2022-09-11T21:13:04","Uptime":"0T00:00:10","UptimeSec":10,"Heap":157,"SleepMode":"Dynamic","Sleep":0,"LoadAvg":246,"MqttCount":0,"Berry":{"HeapUsed":14,"Objects":217},"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"BlackMesa_Portal","BSSId":"7C:10:C9:64:26:C2","Channel":8,"Mode":"11n","RSSI":82,"Signal":-59,"LinkCount":1,"Downtime":"0T00:00:04"}} 21:13:04.791 RSL: SENSOR = {"Time":"2022-09-11T21:13:04","ANALOG":{"Temperature1":30.0},"TempUnit":"C"} 21:13:05.810 CFG: Saved, Count 41, Bytes 4096 21:13:09.747 RSL: config = {"ip":"192.168.1.29","dn":"Tasmota","fn":["Tasmota","",null,null,null,null,null,null],"hn":"tasmota-C82E14-3604","mac":"7C87CEC82E14","md":"NSPanel","ty":0,"if":0,"ofln":"Offline","onln":"Online","state":["OFF","ON","TOGGLE","HOLD"],"sw":"12.1.1.2","t":"tasmota_C82E14","ft":"%prefix%/%topic%/","tp":["cmnd","stat","tele"],"rl":[1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"swc":[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],"swn":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"btn":[0,0,0,0,0,0,0,0],"so":{"4":0,"11":0,"13":0,"17":0,"20":0,"30":0,"68":0,"73":0,"82":0,"114":0,"117":0},"lk":0,"lt_st":0,"sho":[0,0,0,0],"sht":[[0,0,0],[0,0,0],[0,0,0],[0,0,0]],"ver":1} 21:13:09.756 RSL: sensors = {"sn":{"Time":"2022-09-11T21:13:09","ANALOG":{"Temperature1":30.0},"TempUnit":"C"},"ver":1} 21:13:20.607 WIF: Checking connection... 21:13:40.607 WIF: Checking connection... 21:13:43.180 HTP: Console 21:13:47.421 CMD: FlashNextion http://nspanel.pky.eu/lui-release.tft 21:13:47.424 SRC: WebConsole from 192.168.2.135 21:13:47.427 CMD: Grp 0, Cmd 'FLASHNEXTION', Idx 1, Len 37, Pld -99, Data 'http://nspanel.pky.eu/lui-release.tft' 21:13:47.438 RSL: RESULT = {"FlashNextion":"Done"} 21:13:47.488 FLH: host: nspanel.pky.eu, port: 80, get: /lui-release.tft 21:13:47.544 FLH: Connected:true 21:13:47.652 FLH: Retry 2 21:13:47.674 BRY: GC from 28833 to 20904 bytes, objects freed 18/229 (in 3 ms) - slots from 197/289 to 163/289 21:13:47.676 BRY: GC timing (us) 1:638 2:1406 3:1465 4:5 5:30 total:3544 21:13:47.679 BRY: GC by type string:98 class:1 proto:23 instance:27 map:5 list:4 closure:24 ntvclos:1 module:0 comobj:0 21:13:47.823 BRY: GC from 41814 to 20952 bytes, objects freed 342/230 (in 35 ms) - slots from 277/351 to 163/289 21:13:47.826 BRY: GC timing (us) 1:1102 2:1249 3:32233 4:5 5:79 total:34668 21:13:47.831 BRY: GC by type string:98 class:1 proto:23 instance:28 map:5 list:4 closure:24 ntvclos:1 module:0 comobj:0 21:13:47.976 BRY: GC from 41949 to 20904 bytes, objects freed 345/229 (in 39 ms) - slots from 278/351 to 163/289 21:13:47.982 BRY: GC timing (us) 1:1237 2:1168 3:35786 4:6 5:86 total:38283 21:13:47.987 BRY: GC by type string:98 class:1 proto:23 instance:27 map:5 list:4 closure:24 ntvclos:1 module:0 comobj:0 21:13:48.129 BRY: GC from 41814 to 20952 bytes, objects freed 342/230 (in 36 ms) - slots from 277/351 to 163/289 21:13:48.133 BRY: GC timing (us) 1:1077 2:1259 3:32962 4:5 5:79 total:35382 21:13:48.138 BRY: GC by type string:98 class:1 proto:23 instance:28 map:5 list:4 closure:24 ntvclos:1 module:0 comobj:0 21:13:48.279 BRY: GC from 41949 to 20904 bytes, objects freed 345/229 (in 35 ms) - slots from 278/351 to 163/289 21:13:48.282 BRY: GC timing (us) 1:1240 2:1189 3:32937 4:5 5:80 total:35451 21:13:48.286 BRY: GC by type string:98 class:1 proto:23 instance:27 map:5 list:4 closure:24 ntvclos:1 module:0 comobj:0 21:13:48.428 BRY: GC from 41814 to 20952 bytes, objects freed 342/230 (in 34 ms) - slots from 277/351 to 163/289 21:13:48.431 BRY: GC timing (us) 1:1147 2:1230 3:31375 4:6 5:109 total:33867 21:13:48.435 BRY: GC by type string:98 class:1 proto:23 instance:28 map:5 list:4 closure:24 ntvclos:1 module:0 comobj:0 21:13:48.579 BRY: GC from 41949 to 20904 bytes, objects freed 345/229 (in 32 ms) - slots from 278/351 to 163/289 21:13:48.582 BRY: GC timing (us) 1:1331 2:1235 3:29417 4:5 5:87 total:32075 21:13:48.586 BRY: GC by type string:98 class:1 proto:23 instance:27 map:5 list:4 closure:24 ntvclos:1 module:0 comobj:0 21:13:48.653 FLH: HTTP Respose is 200 OK or 206 Partial Content 21:13:48.656 FLH: Flash file size: 7673196 21:13:48.662 NXP: Nextion command sent = bytes('4452414B4A485355594447424E434A48474A4B534842444EFFFFFF') 21:13:48.669 NXP: Nextion command sent = bytes('7265636D6F643D30FFFFFF') 21:13:48.676 NXP: Nextion command sent = bytes('7265636D6F643D30FFFFFF') 21:13:48.680 NXP: Nextion command sent = bytes('636F6E6E656374FFFFFF')



### TO REPRODUCE
_Steps to reproduce the behavior:_

### EXPECTED BEHAVIOUR
_A clear and concise description of what you expected to happen._

### SCREENSHOTS
_If applicable, add screenshots/pictures to help explain your problem._

### ADDITIONAL CONTEXT
_Add any other context about the problem here._

### PANEL / FIRMWARE VERION
EU
joBr99 commented 1 year ago

Can you try to reseat the ribbon cable to the nextion screen? Could be a connection issue.

joBr99 commented 1 year ago

joBr99/nspanel-issue-graveyard#48

https://user-images.githubusercontent.com/29555657/186522568-f4b3af94-9d1c-45e0-a653-ada07ac47b78.png

bartlomiejborzucki commented 1 year ago

It works. Thanks a lot

immynona commented 1 year ago

Can this be reopened? I have the same issue but with newest Tasmota / autoexec.be and checked display ribbon cable. Screen shows „System data Error“. Spent lots of time searching for a solution / working Version combinations. Nothing worked yet unfortunately 😔

joBr99 commented 1 year ago

Since you've checked your ribbon cable; you most likely don't have the same issue. Can you message me on discord? https://discord.com/invite/98V7qp4

joBr99 commented 1 year ago

Can you try flashing with this command: FlashNextionAdv3 http://nspanel.pky.eu/lui.tft ?

immynona commented 1 year ago

Can you try flashing with this command: FlashNextionAdv3 http://nspanel.pky.eu/lui.tft ?

Yes, result is the same 😕

IMG_0129

joBr99 commented 1 year ago

Hey, try to downgrade to tasmota 12.2.0 for now.

Just use this as OTA Url in the Tasmota upgrade firmware dialog: http://ota.tasmota.com/tasmota32/release-12.2.0/tasmota32-nspanel.bin