Jump to content

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

      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
          • Like
        • 2 replies
      • UltiMaker Cura 5.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 26 replies
    ×
    ×
    • Create New...