Closed Chronocento closed 3 years ago
My bet it is 9. =)
@Chronocento Please set nextion logger to debug level and send me all that is logged from start.
Here it is:
2020-07-30 17:38:52,516 - INFO - Connecting: /dev/ttyAMA0, baud: 115200 2020-07-30 17:38:52,520 - INFO - Connected to serial 2020-07-30 17:38:52,522 - DEBUG - sent: b'DRAKJHSUYDGBNCJHGJKSHBDN' 2020-07-30 17:38:52,526 - DEBUG - received: b'1a' 2020-07-30 17:38:52,568 - DEBUG - sent: b'connect' 2020-07-30 17:38:52,577 - DEBUG - received: b'636f6d6f6b20312c33303631342d302c4e58343833324b3033355f303131522c3135302c36313639392c444236393043313544333232333932442c3333353534343332' 2020-07-30 17:38:52,581 - INFO - Address: 30614-0 2020-07-30 17:38:52,583 - INFO - Detected model: NX4832K035_011R 2020-07-30 17:38:52,584 - INFO - Firmware version: 150 2020-07-30 17:38:52,584 - INFO - Serial number: DB690C15D322392D 2020-07-30 17:38:52,585 - INFO - Flash size: 33554432 2020-07-30 17:38:52,586 - DEBUG - sent: b'bkcmd=3' 2020-07-30 17:38:52,588 - DEBUG - received: b'01' 2020-07-30 17:38:52,590 - DEBUG - sent: b'get sleep' 2020-07-30 17:38:52,592 - DEBUG - received: b'7100000000' 2020-07-30 17:38:53,096 - ERROR - Command "get sleep" timeout. 2020-07-30 17:38:53,598 - INFO - Reconnecting 2020-07-30 17:38:53,599 - ERROR - Connection lost 2020-07-30 17:38:53,600 - INFO - Connecting: /dev/ttyAMA0, baud: 115200 2020-07-30 17:38:53,602 - INFO - Connected to serial 2020-07-30 17:38:53,603 - DEBUG - sent: b'DRAKJHSUYDGBNCJHGJKSHBDN' 2020-07-30 17:38:53,607 - DEBUG - received: b'1a' 2020-07-30 17:38:53,648 - DEBUG - sent: b'connect' 2020-07-30 17:38:53,657 - DEBUG - received: b'636f6d6f6b20312c33303631342d302c4e58343833324b3033355f303131522c3135302c36313639392c444236393043313544333232333932442c3333353534343332' 2020-07-30 17:38:53,659 - INFO - Address: 30614-0 2020-07-30 17:38:53,659 - INFO - Detected model: NX4832K035_011R 2020-07-30 17:38:53,660 - INFO - Firmware version: 150 2020-07-30 17:38:53,661 - INFO - Serial number: DB690C15D322392D 2020-07-30 17:38:53,662 - INFO - Flash size: 33554432 2020-07-30 17:38:53,662 - DEBUG - sent: b'bkcmd=3' 2020-07-30 17:38:53,664 - DEBUG - received: b'01' 2020-07-30 17:38:53,667 - DEBUG - sent: b'get sleep' 2020-07-30 17:38:53,669 - DEBUG - received: b'7100000000' 2020-07-30 17:38:54,173 - ERROR - Command "get sleep" timeout. 2020-07-30 17:38:54,675 - INFO - Reconnecting 2020-07-30 17:38:54,676 - ERROR - Connection lost
The sequence, as you can see, repeats continuously
Yes, I understand the problem now and it is pain to fix... They go against their spec. https://nextion.tech/instruction-set/
When instruction successful they must send 01ffffff
according to their spec when bkcmd
is set to 3
Hah actually they added new table: Return Codes not affected by bkcmd value, valid in all cases
So get
and sendme
are exceptions now.
According to unit tests it should be fixed
Did this solve the problem?
Hi Jevgeni, sorry for not having replied yet, I've been moved temporarily on other higher priority projects and I forgot to test and reply to you :( I hope to try your new version next week, and report back here
Sorry for being late! Just tested with a firmware compiled on Nextion Editor 1.61.1: works flawlessly! ;)
Then it was right decision to release 1.6.1 lib version.
Dear Jevgeni, hope you're enjoying summer, even in this difficult times given the COVID-19.
I'm here to bother you again because I noticed that your library appears to have some problems with the latest release of the Nextion Editor, version 1.61.1, whose changelog reads:
I think the problem lies in point 8; I noticed it when I compiled my project with this latest version of the editor, and I got these errors upon connecting:
I tried reverting back to version 1.60.1, recompile, and everything worked as before.
What do you think?