Jump to content

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

      • Help Us Improve Cura – Join the Ultimaker Research Program
        🚀 Help Shape the Future of Cura and Digital Factory – Join Our Power User Research Program!
        We’re looking for active users of Cura and Digital Factory — across professional and educational use cases — to help us improve the next generation of our tools.
        Our Power User Research Program kicks off with a quick 15-minute interview to learn about your setup and workflows. If selected, you’ll be invited into a small group of users who get early access to features and help us shape the future of 3D printing software.

        🧪 What to Expect:
        A short 15-minute kickoff interview to help us get to know you If selected, bi-monthly research sessions (15–30 minutes) where we’ll test features, review workflows, or gather feedback Occasional invites to try out early prototypes or vote on upcoming improvements
        🎁 What You’ll Get:
         
        Selected participants receive a free 1-year Studio or Classroom license Early access to new features and tools A direct voice in what we build next
        👉 Interested? Please fill out this quick form
        Your feedback helps us make Cura Cloud more powerful, more intuitive, and more aligned with how you actually print and manage your workflow.
        Thanks for being part of the community,

        — The Ultimaker Software Team
        • 0 replies
      • Cura 5.10 stable released!
        The full stable release of Cura 5.10 has arrived, and it brings support for the new Ultimaker S8, as well as new materials and profiles for previously supported UltiMaker printers. Additionally, you can now control your models in Cura using a 3D SpaceMouse and more!
          • Like
        • 18 replies
    ×
    ×
    • Create New...