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

QSerialPortInfo: returns the empty list of ports on the ARM9 platform from Atmel.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 4.8.5
    • Serial Port
    • None
    • * Platform: Atmel AT91SAM9G45 (400 Mhz ARM9), 64 Mb SDRAM, 256 Mb NAND
      * Linux 3.2.18
      * Buildroot 2013.05

    Description

      This platform contains real serial ports: ttyS[0-2] but availablePorts() returns empty list.

      QtSerialPort is compiled with libudev support.

      The utility udevadm (through remote ssh session), e.g. for /dev/ttyS1 returns:

      $udevadm info -a --name=/dev/ttyS1

      looking at device '/devices/platform/atmel_usart.1/tty/ttyS1':
      KERNEL=="ttyS1"
      SUBSYSTEM=="tty"
      DRIVER==""

      looking at parent device '/devices/platform/atmel_usart.1':
      KERNELS=="atmel_usart.1"
      SUBSYSTEMS=="platform"
      DRIVERS=="atmel_usart"

      looking at parent device '/devices/platform':
      KERNELS=="platform"
      SUBSYSTEMS==""
      DRIVERS==""

      Problem that the current implementation of a enumerator from QSerialPortInfo ignores all "tty" devices from the "platform" subsystem.

      After commenting of a line "canAppendToList = false;" from the file "qserialportinfo_unix.cpp":

      ...
                              } else if (subsys == QLatin1String("platform")) { // Platform 'pseudo' bus for legacy device.
                                  // Skip this devices because this type of subsystem does
                                  // not include a real physical serial device.
                                  //canAppendToList = false;
                              }
      ...
      

      the problem was resolved.

      Attachments

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

        Activity

          People

            lpapp Laszlo Papp
            kuzulis Denis Shienkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes