-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade Failed for Nextion 10" Intelligent Series Display #19
Comments
Hey. Try lower upload_baud rate. |
I did try 9600 upload_baud rate. It resulted in the same problem. Let me know if there is anyway I can help in analyzing the issue. |
Interesting what is this:
|
This is connection string. But it is longer than I have and it is totally valid. |
Upload not working also at NX8048P070_011R(RTP) |
Hi,
|
@Chronocento Your baudrate is 115200. Do not change that. You can play with upload_baud. Also you can try to power circle the unit before doing the upgrade. I have not touched that code for quite a long time. I need to add some better debug logging for upload process. |
That's exactly what I've tried ( I know that you didn't change anything, and that's the strange thing: I remember that the last time I tried it (some months ago) it was working :( |
I agree that it can be unstable as it was just an experiment. |
Hi Jevgeni Kiski,
I have installed the package using 'pip3 install nextion' as described in the https://pypi.org/project/nextion/ page.
I am getting the following error during the upgrade.
Can you suggest how to resolve the below error?
Let me know if you need more details logs.
Regards,
Karthik
=========
Detailed Log
karthik@karthik:~/nextion_hmi$ nextion-fw-upload -b 9600 -ub 115200 /dev/ttyUSB0 ./Display.tft
2020-12-26 18:13:04,846 INFO nextion.nextion.client Connecting: /dev/ttyUSB0, baud: 9600
2020-12-26 18:13:05,396 INFO nextion.nextion.protocol.base Connected to serial
2020-12-26 18:13:05,764 INFO nextion.nextion.client Address: 4113-0
2020-12-26 18:13:05,766 INFO nextion.nextion.client Detected model: NX1060P101_011R
2020-12-26 18:13:05,767 INFO nextion.nextion.client Firmware version: 132
2020-12-26 18:13:05,768 INFO nextion.nextion.client Serial number: 55163401B399E55C
2020-12-26 18:13:05,768 INFO nextion.nextion.client Flash size: 131072000-0
2020-12-26 18:13:05,871 ERROR nextion.nextion.client Unknown data received: b'636f6d6f6b20312c343131332d302c4e5831303630503130315f303131522c3133322c31303530312c353531363334303142333939453535432c3133313037323030302d30'
2020-12-26 18:13:05,932 INFO nextion.nextion.client Successfully connected to the device
2020-12-26 18:13:05,933 INFO nextion.nextion.client About to upload 1550856 bytes
2020-12-26 18:13:06,268 INFO nextion.nextion.client Reconnecting at new baud rate: 115200
2020-12-26 18:13:06,371 ERROR nextion.nextion.protocol.base Connection lost
2020-12-26 18:13:07,308 INFO nextion.nextion.protocol.base Connected to serial
2020-12-26 18:13:08,311 ERROR root Failed to upload firmware
Traceback (most recent call last):
File "/home/karthik/.local/lib/python3.8/site-packages/nextion/console_scripts/upload_firmware.py", line 14, in upload
await nextion.upload_firmware(args.file, args.upload_baud)
File "/home/karthik/.local/lib/python3.8/site-packages/nextion/client.py", line 371, in upload_firmware
res = await self.read_packet(timeout=1)
File "/home/karthik/.local/lib/python3.8/site-packages/nextion/client.py", line 215, in read_packet
return await asyncio.wait_for(self._connection.read(), timeout=timeout)
File "/usr/lib/python3.8/asyncio/tasks.py", line 490, in wait_for
raise exceptions.TimeoutError()
asyncio.exceptions.TimeoutError
======================
Detailed Log with Verbose Option
karthik@karthik:~/nextion_hmi$ nextion-fw-upload -b 9600 -ub 115200 -v /dev/ttyUSB0 ./Display.tft
2020-12-26 18:21:51,117 INFO nextion.nextion.client Connecting: /dev/ttyUSB0, baud: 9600
2020-12-26 18:21:51,657 INFO nextion.nextion.protocol.base Connected to serial
2020-12-26 18:21:51,659 DEBUG nextion.nextion.protocol.nextion sent: b'DRAKJHSUYDGBNCJHGJKSHBDN'
2020-12-26 18:21:51,735 DEBUG nextion.nextion.protocol.nextion received: b'1a'
2020-12-26 18:21:51,876 DEBUG nextion.nextion.protocol.nextion sent: b'connect'
2020-12-26 18:21:52,013 DEBUG nextion.nextion.protocol.nextion sent: b'\xff\xffconnect'
2020-12-26 18:21:52,025 DEBUG nextion.nextion.protocol.nextion received: b'636f6d6f6b20312c343131332d302c4e5831303630503130315f303131522c3133322c31303530312c353531363334303142333939453535432c3133313037323030302d30'
2020-12-26 18:21:52,026 INFO nextion.nextion.client Address: 4113-0
2020-12-26 18:21:52,027 INFO nextion.nextion.client Detected model: NX1060P101_011R
2020-12-26 18:21:52,028 INFO nextion.nextion.client Firmware version: 132
2020-12-26 18:21:52,028 INFO nextion.nextion.client Serial number: 55163401B399E55C
2020-12-26 18:21:52,029 INFO nextion.nextion.client Flash size: 131072000-0
2020-12-26 18:21:52,029 DEBUG nextion.nextion.protocol.nextion sent: b'bkcmd=3'
2020-12-26 18:21:52,132 DEBUG nextion.nextion.protocol.nextion received: b'636f6d6f6b20312c343131332d302c4e5831303630503130315f303131522c3133322c31303530312c353531363334303142333939453535432c3133313037323030302d30'
2020-12-26 18:21:52,133 DEBUG nextion.nextion.protocol.nextion received: b'01'
2020-12-26 18:21:52,134 ERROR nextion.nextion.client Unknown data received: b'636f6d6f6b20312c343131332d302c4e5831303630503130315f303131522c3133322c31303530312c353531363334303142333939453535432c3133313037323030302d30'
2020-12-26 18:21:52,135 DEBUG nextion.nextion.protocol.nextion sent: b'get sleep'
2020-12-26 18:21:52,191 DEBUG nextion.nextion.protocol.nextion received: b'7100000000'
2020-12-26 18:21:52,192 INFO nextion.nextion.client Successfully connected to the device
2020-12-26 18:21:52,192 INFO nextion.nextion.client About to upload 1550856 bytes
2020-12-26 18:21:52,192 DEBUG nextion.nextion.protocol.nextion sent: b'sleep=0'
2020-12-26 18:21:52,270 DEBUG nextion.nextion.protocol.nextion received: b'01'
2020-12-26 18:21:52,422 DEBUG nextion.nextion.protocol.nextion sent: b'usup=1'
2020-12-26 18:21:52,466 DEBUG nextion.nextion.protocol.nextion received: b'01'
2020-12-26 18:21:52,468 DEBUG nextion.nextion.protocol.nextion sent: b'ussp=0'
2020-12-26 18:21:52,548 DEBUG nextion.nextion.protocol.nextion received: b'01'
2020-12-26 18:21:52,549 DEBUG nextion.nextion.protocol.nextion sent: b'whmi-wri 1550856,115200,0'
2020-12-26 18:21:52,550 INFO nextion.nextion.client Reconnecting at new baud rate: 115200
2020-12-26 18:21:52,671 ERROR nextion.nextion.protocol.base Connection lost
2020-12-26 18:21:53,546 INFO nextion.nextion.protocol.base Connected to serial
2020-12-26 18:21:54,548 ERROR root Failed to upload firmware
Traceback (most recent call last):
File "/home/karthik/.local/lib/python3.8/site-packages/nextion/console_scripts/upload_firmware.py", line 14, in upload
await nextion.upload_firmware(args.file, args.upload_baud)
File "/home/karthik/.local/lib/python3.8/site-packages/nextion/client.py", line 371, in upload_firmware
res = await self.read_packet(timeout=1)
File "/home/karthik/.local/lib/python3.8/site-packages/nextion/client.py", line 215, in read_packet
return await asyncio.wait_for(self._connection.read(), timeout=timeout)
File "/usr/lib/python3.8/asyncio/tasks.py", line 490, in wait_for
raise exceptions.TimeoutError()
asyncio.exceptions.TimeoutError
===========
Package Version
karthik@karthik:~/nextion_hmi$ pip3 list | grep nextion
nextion 1.7.1
The text was updated successfully, but these errors were encountered: