Details
-
Suggestion
-
Resolution: Done
-
P3: Somewhat important
-
None
-
cddb6d87d120f869b8e4a742a5b950fffef8d399
Description
The QCanBusDeviceInfo.name() function only provides information regarding the connection point (like USB1, USB2, PCI1). With this is the device identification is based on the startup of the USB hubs.
Connecting order && assignment:
PCAN-USB_A : usb0
PCAN-USB_B : usb1
PCAN-USB_C : usb2
PCAN-USB_C : usb0
PCAN-USB_A : usb1
PCAN-USB_B : usb2
This issue happens when you have a prepared hw.: for example device with ID:0x14 is diagnostics, 0x15 is measurement and so on, and you connect the devices via an external USB-Hub.
Proposal: Expose the device id, on the QCanBusDeviceInfo.deviceId() function.
The device ID can be accessed via this way:
http://www.peak-system.com/forum/viewtopic.php?f=41&t=814
Update the QCanBusDevice::createDeviceInfo() function to pass the device id.
This will keep the backward compatibility of the current applications used to select the devices via name && provide the deviceId to the appDev for device management operations.
Attachments
Issue Links
- relates to
-
QTBUG-82115 Port PCAN QCanBusDeviceInfo creation to TPCANChannelInformation
-
- Closed
-