-
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
[Q] How to set up Advanced_OK? #2870
Comments
I am seeing that #2840 was merged but it looks like the bin files were not updated, could this be my issue. Do I need to generate my own new bin files to include it? |
@V1EngineeringInc |
Thank you let me see what I can do. Is buffsize=4 okay, would more be better? I have had 2 printers completely go haywire mid-print, and all of them show random gcode errors a couple of times a print that does not seem to affect anything. (and those are not valid errors, just random characters missing that are not actually missing). |
a buffsize of 4 is OK (I also use this value on one of my printer). If you get some errors sometimes then it could be an issue on your HW. Try to disable advanced_ok on TFT side (advanced_ok set to 0 in config.ini or even from the Feature menu) and verify if the issue is no more present. |
Yeah, so far using the marlin side I get no errors, but that was only one day of testing. I will run 6 printers today and test again. Updating my fork now to run the newer code. |
Sorry, I still have not updated. It took a few days but each one of my 6 printers failed randomly. Changed to Marlin mode and no issues yet at all. I don't even get the "unknown command, or prevent long extrusion errors". I think there is something wrong with advanced ok in the current compiled binaries. |
Yep. I fixed the GitHub Actions/firmware building last month in #2862, but the "Build Binaries" Action will run after the next PR merge/commit since the |
Okay, thank you for the clarification. |
Okay, they updated the binaries, that saves me some work. I will reload and test them again. |
Nope first one just lost it mind 3-4 hours after flashing. I have them all running the info screen. Everything showed all zeros when it happened. I can try to take a picture next time but the printer sounds horrible while it is happening. It just looses its position and can't move, both steppers making tons of noise and not moving. Any suggestions? Do you guys do long prints, or run your printers multiple prints in a row? I am not running superfast, 55mm/s with a 0.5nozzle with .35 layers. CoreXY, maybe that makes a difference? |
I am running that printer again with advanced ok turned off in the menu, and nothing else changed to see what happens. |
ok. let us know the result with advanced ok disabled on TFT side. I suspect more an issue on mainboard when multiple gcodes have to be read by mainboard (advanced ok used) |
It crashed with Advanced OK off of as well. I will try it one more time today to confirm. |
Could you tell me which hardware you are using? (Motherboard and TFT version) |
@V1EngineeringInc |
Sorry I have been distant. Post xmas rush is insane. Turning off Advanced ok on the TFT keeps the touch side working fine. Flip that switch and it fails within a few hours. I have a skr pro, tft e3 v3 on all the printers.
It will be a few days until I can experiment, I am running the farm hard right now and can't afford to lose a printer right now. |
The proposed FW doesn't use ADVANCED_OK at all but delivers all the advantages of it and more. It does it in a dynamic way, based on the load of the TFT. |
I think we talked about this before. I can not stray from the main open source software. I can not ship a board to my customers that I can not check what is on it. I am willing to test your changes but I will not ship it until it gets merged back into BTT main. |
OK, the hardware should be no problem.
Could you tell me what you mean with "spazzed out"? What actually happens? Any messages on the TFT? NOTE: kisslorand is not a reliable player, he made many false claims and blocks the people who found that his code was slow, buggy and unreliable. He doesn't understand peer review and open source software, better stay clear of his closed source FW. |
@V1EngineeringInc as far as I understood, while waiting for a deep troubleshooting from our side, at least you can use the (old) logic based on a single gcode at a time without any issue on your prints. |
Sparky and Il Duce... inseparable... |
Just getting back to it. 1- I have it set to 1024 now, so go less? 2- the debug screen shows all good number the whole time until it doesn't. I have run the same exact file several times, sometimes it makes it, other times it does not. Not in the same place or any pattern like that. The same file I have ran thousands of other times. Spazzed out - the gantry moves out of the way a bit and both directional steppers just grind back and forth and the gantry does not move other than shaking violently. (coreXY). Crud...I took a picture of the debug screen when it last freaked out. I can't find it I really do not want to do that to any of the printers again. It is bound to break something. |
1024 is excellent! No need to set it to a lower value.
Here a test (designed by @digant73) to help diagnose serial communication issues.
Now when you go to the monitoring menu a test will be executed that test the serial communication, you should see quite high numbers of commands being send and received. If the communication fails, then the numbers will go down or even become 0. You should be able to exit the the screen without issues.
OK, strange, this means that the TFT is continuing to feed commands to the motherboard. Could it be that the motherboard rebooted for some reason? @digant73 The TFT can detect a motherboard restart and will reconnect, but this does not affect the ongoing print process. The TFT will continue to feed data to the motherboard without warning, which could cause unpredictable results. Perhaps that is what is happening here. |
@rondlh TFT feeds data to the mainboard if the mainboard is providing an ACK reporting free slots. It is even possible that the mainboard is not blocking the TFT when needed. |
@V1EngineeringInc could you please provide some files for which you had the issue with advanced ok enabled? I probably found the possible cause (I already had suspects on that) and I need to make some tests before. If it will be confirmed by testing, the issue seems to be on some mainboards (even on a fast board such as btt bx) not able to properly read/buffer contiguous (with no gap) messages sent by the TFT when the mainboard is also performing printing tasks. Probably the issue is also accentuated in case more serial ports are available/configured in the mainboard (Marlin has to scan multiple ports). With some real printing files I got only a single unknown/corrupted message error reported on TFT always at the beginning of the print. Forcing the TFT to insert a gap between contiguous messages should solve the issue. @rondlh I saw that your PR (DMA Serial Reading to Circular buffer #26328) was merged on Marlin repo. I have a BTT SE-BX mainboard based on stm32h7x (so not affected by the improvements made by your PR on some STM32Fx). With that mainboard I occasionally had some reported unknown/corrupted message errors on TFT. I'm making some testing on TFT providing some delay on TFT before retrieving a next command to process and send to mainboard but even with 40ms of delay I got the issue |
What files would you like? |
simply a gcode file which you had the issue with |
This is the last one I was using, but I am almost certain it has happened with all my gcode files. |
thanks. I will also use it in my testing |
@V1EngineeringInc |
@V1EngineeringInc Just made a lot of testing. On the printer with a LED strip and an ST chip (printer biqu BX) I got sometimes 1 or 2 errors when printing your provided gcode file (a 2 hours printing) with On another printer not based on an ST chip I never have any kind of errors even with advanced_ok enabled (using also the same baudrate of 250K on both printers). In the meanwhile (just today Feb 28) a new TFT fw has been released fixing some bugs, improving speed and adding also the new |
Awesome, thank you for confirming and doing such a deep dive. I will make some changes. Another side effect I had not noticed was my SD cards fail to recognize after a few prints. Sometimes I can trick it to see them again by selecting USB, then TFT, backing out, then SD card again. If not I have to reboot and it works fine. I will try what you suggested when I get some time. I have to update my Marlin git builder, and the TFT builder I use though so it might take a while I made a few changes and just have not had the time to sit down and brings things fully up to date. |
@V1EngineeringInc no problem, take the time you need and if possible let us know the results (even possible bugs) with the new TFT fw. |
I have read the config.ini section a bunch of times and I have to be doing something wrong. A couple of my printers have randomly spazzed out since switching to advaced_ok.
I have tried a bunch of different values, can someone give me a hint on what works for you?
In the config.ini file for the TFT advanced ok is enabled, and are the TX slots needing to be changed or is that only for when Marlin does not have it enabled?
The text was updated successfully, but these errors were encountered: