Fill out above information andin all cases attach yourklippy.logfile (use zip to compress it, if too big). Pasting yourprinter.cfgis not needed Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there
I am using a baud rate of 115200 and have not made any modifications to the time synchronization. The printed model is complex, and at a fixed time, there will always be negative rtt values, followed by timer too close. I have also checked the clock sending and receiving times for time synchronization, and it seems that they are not using the same time source? This negative rtt will only appear when I print it
This is from your log. We do not support unofficial versions with unknown modifications unless one can demonstrate that the same error also occurs in the pristine Klipper mainline.
For debugging purposes, I modified the parameters that should have been input on the command line and added some print() to debug, without making any changes to the working logic of Klipper
Thank you for your answer,but the system load calculation is not correct.Due to a problem with my wireless driver module ,ther are five processes in state D.Therefore,the system load after booting is above 5,but the CPU is very idle.As shown in your picture, i think the reason for the timer too close is due to communication load. i doubled the baud rate and the problem was solved.i’m even more curious why alow baud rate causes the RTTcalculation tobe negative. i can’t see the problem from the communication code.
The serial port receiving time of the sending queue should not be earlier than the MCU’s reply time, which is the eventtime of update_deceive_seq.
so i think delta = eventtime - sq->last_receive_sent_time is a constant positive number