Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-66460

QtSerialPort not working with USB serial printer on Linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 5.10.1
    • Serial Port
    • None
    • Qt 5.10.1

      Ubuntu Linux 17.10

    Description

      I have an EPSON TM-9T88V printer. The printer has a USB interface which shows up on Linux as a printer device:

      crw-rw---- 1 root lp 180, 1 Feb 16 15:27 /dev/usb/lp1

      I am able to communicate with the printer device as if it was a serial port from shell commands or minicom. But when opening the device using QSeriaLport::open() , it fails with the error "Inappropriate ioctl for device".

      I suspect there is a check somewhere for the device being a tty or it is trying to set a parameter like the baud rate which is not supported.

      Maybe this isn't really a Qt bug since it is not a true serial port, but it would be very useful if I could use QSerialPort with this device and not have to use OS-level APIs.

      Could you point me to the code in QSerialPort that might be causing this to fail?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kuzulis Denis Shienkov
            tranter Jeff Tranter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes