Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
4.8.5
-
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.