New User - Unable to connect to Prusa MK3
Hello. I am a new user looking to move from Octoprint to Repetier-Server. So far I am not able to connect to my Prusa MK3s. Details are;
- Prusa MK3s connected via usb to Intel based NUC running Ubuntu 20.04.2 LTS
- Repetier-Server Free 1.1.2
Octoprint connects flawlessly with the following settings;
- Serial Port: /dev/ttyACM0
- Baud: 115200
My first attempt at R-S connection settings;
- Firmware: Marlin
- Connection Method: Serial Connection
- Device/Port: /dev/serial/by-id/...
- Baud: 115200
- RTS: Low to High
- DTR: Low to High
- Buffering: 127
No connection can be made. I have also modified device/port info to match the physical usb address as well as the same ttyACM0 that works with octoprint. I have tried autodetect for the baud. I have tried all variants of RTS/DTR. I have used all variants of the buffering options. It still errors out. The System Error reported; "error: Reading serial connection failed: End of file. Closing connection" This repeats every 2 seconds. The printer itself stays in a continuous reboot loop while the connection is attempted.
I have read through the FAQs and troubleshooting articles. I did not find anything that pointed to a solution.
Thanks in advance for any and all help figuring this out.
-Rob
- Prusa MK3s connected via usb to Intel based NUC running Ubuntu 20.04.2 LTS
- Repetier-Server Free 1.1.2
Octoprint connects flawlessly with the following settings;
- Serial Port: /dev/ttyACM0
- Baud: 115200
My first attempt at R-S connection settings;
- Firmware: Marlin
- Connection Method: Serial Connection
- Device/Port: /dev/serial/by-id/...
- Baud: 115200
- RTS: Low to High
- DTR: Low to High
- Buffering: 127
No connection can be made. I have also modified device/port info to match the physical usb address as well as the same ttyACM0 that works with octoprint. I have tried autodetect for the baud. I have tried all variants of RTS/DTR. I have used all variants of the buffering options. It still errors out. The System Error reported; "error: Reading serial connection failed: End of file. Closing connection" This repeats every 2 seconds. The printer itself stays in a continuous reboot loop while the connection is attempted.
I have read through the FAQs and troubleshooting articles. I did not find anything that pointed to a solution.
Thanks in advance for any and all help figuring this out.
-Rob
Comments
Anyway moving on --
I had and randomly have the issue(s) you describe primarily on printers running firmware that is older than Marline 2.0.x aka Marline 1.x like many printers do.
In my case there were a few things I did to drastically improve overall USB performance. It would be helpful if you could specify what NUC you have and how it connects - built in USB ports? How many are there? etc.
Anyway this article (it's for Raspberry but even if you use another NUC it applies): https://www.repetier-server.com/knowledgebase/undervoltage-and-throtteling-of-pi/
Take special note of the Solutions section where you void the "5v" line on USB adapters. If you ever noticed when you switch the printer off but it's connected to your NUC and the printer screen or some sensors stay on -- that is because it's leeching 5V. This can cause noise and dirty signals depending on the power source and is also just annoying - I suggest at first taping over the 5V line, this made my USB in general so much more stable on all my 3D Printers.
Next -- when setting up the printer under the USB Select the correct USB port listed (not the default one it picks, make sure to use a direct link to the tty/SO USB port) and also set the baud to 115200 for the Prusa MK3.
Make sure to pick the correct firmware type in the "Add Printer" options too and then test. If it throws an error change the firmware to something else, change it back to the correct and hit "retest", most of the time this will cause it to fix and jump to the next stage of testing just fine. Happens regularly to me and then works fine.
There are also a few versions of the Prusa stock firmware that have some buffer issues which cause problems, there is a forum post about it: https://forum.prusaprinters.org/forum/original-prusa-i3-mk3s-mk3-general-discussion-announcements-and-releases/octoprint-issues-and-tips/
Otherwise with main power enabled your settings should work. Just make sure octoprint is not running same time or both might try to connect same time and break communication to each other.
1) I had done everything short of removing Octoprint completely to make sure it wasn't holding the port hostage. I stopped the service, powered down the printer, pulled the USB cable, reboot the server....everything I could think of.
2) When I left the server overnight, Octoprint was connected happily and I had stopped attempted connections from the RS wizard (although I left the wizard page still up). There should not have been any action that would have forcibly closed the port of Octoprint, and made it available for RS.
My next experiment was going to be install RS on my windows laptop and double check that I could connect that way. But since it figured itself out, I never tried it. Sorry for anybody stumbling on this thread looking for help with a similar issue. I didn't come to a definitive conclusion. For the sake of completeness, I will answer the questions from the posts above;
@luis84
- I am not sure the NUC model number, but the configuration is Intel Core i7-5557U @ 3.10GHz x4, 6GB memory. Should not be possible to run into any undervolt or CPU throttling issues. It has 4 on board USB ports for which the Prusa is connected directly. I also have an old cheap USB hub as I did run out of ports (keyboard/mouse/webcam/etc). I will be adding a Prusa Mini to the mix here shortly.
- I originally tried all combinations of ports. The default selection (/dev/serial/by-id/usb-Prusa...) is what I connected with. I don't have tty/SO USB port. I think the equivalent to what I see is /dev/serial/by-path/... And yes as I mentioned I had been using 115200 from the start and is how it is connected now.
- As I said above, I did get an error that I had the wrong FW type even though it is set correctly as Marlin. I switched back and forth as you suggested, but I could get this error to go away, so I just accepted it with this error. Later in my configuration, I used "autodetect values from firmware" and it seemed to work fine. The FW version on my printer is up to date, so I don't thing those old FW bugs apply to my case.
@Repetier
- Thanks for the comment on the port visibility when powered down. This option is not visible during the wizard. But it is worth noting that my printer was powered on the entire time I was trying to connect, so this had no bearing on my issues.
- I agree. Like I said above, I am pretty sure this comes down to the OS and Octoprint not releasing the port. See my comments on what I had tried to force the port free. I could not find a way to list port active status from the OS to confirm if it was available for RS to connect to.
Again, thanks to both of your the time responding.
-Rob
You should not run into under voltage with a full NUC but if you use a USB HUB I highly suggest an active hub with it's own power supply or you may start to get lost packets / resends and comm errors which can cause failed prints, blobs, zits, etc.
Anyway welcome to the RS world. I am a huge fan now. I recently got successfully running and it's a beauty, the core to RS is insanely light and stable, hats off to the devs.
(I hope it's ok i tagged folks in this - I am new here and in the same situation (trying to switch from octoprint to RH so I can run some manual G-code commands, experiment with plotting and blades via inkscape, all of which requires feedback of the tolshead and steppers positions and values).
I installed RH on my 32-bit Raspberry Pi 3B v1.2, and I am just trying to get through the initial setup where I add the printer.
I have disabled octoprint service via `sudo systemctl stop octoprint` and ModemControl as well as there was a warning regarding this service after installing RH via commandline.
I've tried all these device paths - almost all of which have an effect on the printer when picked :
- /dev/tty/S0
- /dev/tty/ACM0
- /dev/serial/by-path/platform-3f980000.usb-usb-0:1.5:1.0
- /dev/serial/by-id/usb-Prusa_Research__prusa3d.com__Original_Prusa_i3_MK3_CZPX5121X004XK31935-if00
I've also tried the auto-configuration as well as manual configurations - what happens is the printer LCD just continually blinks as if it is repeatedly restarting or being connected to. This goes on even after the connection fails with error "no understandable response on this port - please check baud rate and firmware", and only stops when I hit the "Abort" button in the configuration wizard.The printer has worked fine with octoprint and I'm not sure what else could be interfering - are there more services that OctoPrint has going on that could be interfering?
Thank you in advance for any help.