Jump to content
Ultimaker Community of 3D Printing Experts

Ultimaker Cura 4.11 doesn't allow selection of the ttyUSB port

Recommended Posts

Posted · Ultimaker Cura 4.11 doesn't allow selection of the ttyUSB port

My computer is a Toshiba laptop running Ubuntu 20.04, my printer is a Creality CR10S.  My Linux is up to date.

I replaced the motherboard for my printer, a Creality CR10S.  I couldn't get Ultimake Cura to find it.  After much googling around, and some low level type work on my laptop, I discovered that the connection was on ttyUSB0, and that using Arduino GUI terminal function, the board was working at 115200 baud.  Then I went to GitHub and retrieved the software for Ultimaker

In the software source code I found: 

The line that shows this is in the Ultimaker source code: .  
the file is Cura-master/plugins/USBPrinting/USBPrinterOutputDeviceManager.py

133            # set CURA_DEVICENAMES=USB[1-9] -> e.g. not matching /dev/ttyUSB0
134            pattern = environ.get('CURA_DEVICENAMES')
135           if pattern and not search(pattern, port[0]):
136                continue


There are several issues with this.  First of all, port scanning is very poor practice.  If ports are in use, the system can be disrupted and may result in catastrophic failures, especially in systems used for production.  Second, it presupposes the way ports are named.  Thus a change in the OS would demand a change in your software.  The better approach is like that of Android where you can choose the port from a list, and for production, an editable entry in the configuration with appropriate comment on port selection.

  • Link to post
    Share on other sites

    Posted · Ultimaker Cura 4.11 doesn't allow selection of the ttyUSB port

    Since no Ultimaker printers use "USB printing" the plugin has not seen any updates or fixes for years and my understanding (after reading posts here and on GitHub) is that it isn't likely to be updated.  The main alternative is using RaspberryPI and Octoprint.

    The problems that occur when printing via USB are not unique to Cura.  Pronterface and Repetier Host have issues as well.  I was sort of enamored with printing via USB and tried to write my own program.  It quickly turned into a quagmire and I ended up throwing it all away in favor of a program that is a front end for the printer and controls the printing from the SD card.  It's much better when the printer can just pull the next line of code when it needs it rather than going through buffer over-runs and under-runs.


  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

    • Our picks

      • Ultimaker showcase | April 2022 | 4pm CEST | 10am EDT
        I'm excited because I've personally produced this showcase event, so if you are curious what else I'm up to nowadays, come check it out and say hi in the chat! It would mean a lot! 
          • Thanks
          • Like
        • 4 replies
      • New here? Get ahead with a free onboarding course
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 12 replies
    • Create New...