-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add output of print progress / remaining time to serial interface... - or release the sources for the MKS_GD_TFT28_V4_0? #13
Comments
You could do a PR in the original repo and I would integrate it in this FW. |
Hi Kisslorand, My suggestion is the following:
If the source were available, I would have tested this myself, as I'm not sure whether:
|
Would you prefer to have the time in seconds or rather in H:M:S (hours, minutes, seconds) format? On the other hand, there's a PR that would make the original repo to support the TFT you have.
|
Thank you, this is awesome! I just tested your FW from above. Unitl now, I polled the status by M27 or M27 C only every 10 seconds, which is enough for a status output, I think. Best regards and thank you,i |
|
oh, cool! |
This did the trick! Instead of one line, we now get three as a response: 21:09:00.709 -> Print time: 40 elapsed, 0 remaining, 0 total but that is fine! Thank you so much! |
That's by design. "buf" was too short(55 bytes) and I broke the message into pieces. However, if needed, I can make to have all the info in one single line (just removing the '\n' from the first lines and leave it only at the end of the last info) |
Actually, the length of the buffer was what I expected to be the problem: Apart from that, it works really well now, and is awesome! |
That can be split further (but kept in the same line in the response) if needed or just simply use a bigger buffer. Whichever you prefer, I'll do it.
Thanks for the kind words, I am glad that my work finds home in more printers than just mine. |
Actually, I don't know what is the more elegant way to do it - maybe sending out in multiple steps may keep the tft busy for a longer time, which we would want to avoid? If so, then increasing the buffer may be the better way to go? Your FW helped me a lot! While looking for a TFT FW newer then the stock one to support newer marlin versions, your build was the one that was the most up-to-date, and I really appreciate that you are actively maintaining it! |
Don't worry about the TFT being busy, I implemented the DMA transfer, so the load is lifted from the MCU.
The work is not mine, it is ciotto who did the implementation for the GD32F305, I just fixed some bugs that it had. My extra work for these TFTs is the patching of the bootloader to remove the annoying long beep at boot and to simplify the FW update procedure (no fake files and folders needed, no need to reupload every time the bmp and icons folder). The only testing I would need is with the newest TFT that has an ILI9488 display driver. |
I'm using your latest TFT firmware for the MKS_GD_TFT28_V4_0 (Artillery Sidewinder X2), and it works very well.
I added an ESP8266 to the "wifi" serial port on the MKS_GD_TFT28_V4_0, in order to get the current printer status into my smart home.
Now, the print progress (and caculated from that, the remaining print time) is very unprecise, as "M27" only reports the current position in the g-code file. The values reported by the TFT are much more precise, but I can not access them through serial commands.
I identified how I could add this output, for example by adding a new "M27 T" command or similar to interfaceCmd.c.
I would like to try this, but I can't find the sources of the current FW in your repository, and the original BTT-TFT repo does not include the MKS_GD_TFT28_V4_0 yet. Would it be possible to publish the current version sources?
The text was updated successfully, but these errors were encountered: