Hi,

I am using an i.MX6 device with on-board and USB serial ports.
When udev is not available QtSerialPortInfo::availablePorts does not
return a list containing both kind of devices.

The function availablePortsBySysfs() does only add USB devices to the
list because the device path does not contain "pnp", "platform", "usb"
or "pci". Device path in this case is
"/sys/devices/soc0/soc.1/2000000.aips-bus/2000000.spba-bus/2020000.serial/tty/ttymxc0".

Afterwards the function availablePortsByFiltersOfDevices() is only
called if the serial port list is still empty. If you have connected a
USB serial port the list is not empty and thus the on-board ports are
missing.

How should I fix this?
There are two options in my opinion:
1. Extend availablePortsBySysfs to also handle the on-board serial ports
2. Merge the lists returned by availablePortsByFiltersOfDevices and
availablePortsBySysfs regardless if one of these is empty.

Best Regards

Rainer
_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to