-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[BUG] No response displayed for M503 in Terminal (Response ~2500 characters) #1267
[BUG] No response displayed for M503 in Terminal (Response ~2500 characters) #1267
Comments
I can confirm this behavior. @digant73 |
Would be easier to allow "knownEcho" to be shown in Terminal, I just cannot find a way to do it. I cannot find where are they suppressed from "dmaL2Cache". |
I wrote that to you |
In "menu.c" "parseACK()" is called where "syncL2CacheFromL1(SERIAL_PORT)" fills "dmaL2Cache". The "knownEcho" elements must be removed somewhere from "dmaL2Cache" since they are not shown in terminal (except "echo:busy: processing" that is not supposed to get to Terminal). BTW, just issue a G28 in Terminal, and you will see "echo:busy: processing" so I am not sure about that list ("knownEcho") elements not visible in Terminal. Later edit: in the meantime tested your solution, not working. I get a ton of message/popup beeps without any visual on the screen and the Terminal doesn't show the full response for M503, only the last few characters. The character count of M503 response is ~2500 characters, the count of M503 S0 is ~1500 characters |
Unfortunately, I won't help you anymore. |
It is not about me but thx for your preciuos time. |
I can't help, this is where my knowledge ends :-( |
no changes were made on Terminal related to gcode handling. Also M503 correctly works on my side (5 pages of output) |
M503 S0 works for me too, the plain M503 gives me trouble. Radek8 also confirmed this behaviour. |
From the pictures I can see it has much less response characters than in my situation. Also this TFT uses different MCU than mine. This one is with STM32F207 and mine has STM32F107. My TFT has no issue to display the response from M503 S0 which has around 1500 characters opposed to the ~2500 characters it gets from the simple M503 gcode (no S0 parameter). |
So there is a problem with your TFT and others like mine work well. What is your screen size? |
It is the original 2.8" TFT (STM32F107VC) on the Artillery Sidewinder X1. |
I can confirm the same behavior as kisslorand. |
If I send the M503 command from the PC via Wifi, the response is correct and complete. |
Can u send a picture?
Radek <[email protected]> schrieb am Mi. 18. Nov. 2020 um 15:03:
… If I send the M503 command from the PC via Wifi, the response is correct
and complete.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1267 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AM6XKZCTDASRA2A6A3KYGJLSQPH4XANCNFSM4TZDYL7Q>
.
|
I'll send in the evening |
Not sure how many characters it is, but on my TFT28 M503 gives me 6 pages |
Strange. So it works on my machine, but not on yours. I will test another machine and let you know... |
What Marlin version are you on? infoHost.rx_ok[SERIAL_PORT] should be set to "true" in "Serial.c" -> "void USART_IRQHandler(uint8_t port)" if "(dmaL1Data[port].cache[wIndex-1] == '\n')". |
Marlin 2.0.7.2 from Oct. 22nd. I guess this is the date where this firmware version has been released officially. I must say that I always use 115200 baud rate and set the TFT connection as the first serial connection and -1 or nothing as the second serial connection. Let me know in case I can help somehow but must add, that I am no developer. So may it is more work for you to explain to me what I have to do, than the amount of work I can do;-) |
Problem solved, the size of the response for M503 didn't fit the DMA and Terminal buffer. Solved it by enlarging those buffers. |
May I ask a solution to the problem? |
Are you going to make a PR for this? |
I fixed it for my printer, others might check if it is OK with theirs. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
When an M503 gcode is issued in Terminal there's no response shown. Actually only the last few characters are shown:
cho: M410 S1
OK P:15 B:15
Steps to reproduce
Expected behavior
The full response for M503
Actual behavior
Only the last few characters are shown:
Rcv: cho: M410 S1
Rcv: OK P:15 B:15
Hardware Variant
MKS TFT clone on Artillery Sidewinder X1 with SKR 1.4Turbo mainboard
TFT Firmware Version & Main Board Firmware details
TFT FW: 0.0.26.1, Marlin 2.7.2
Additional Information
When M503 S0 is issued the response is full.
The text was updated successfully, but these errors were encountered: