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

(P)CAN device id is not exposed

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • 6.0.0
    • None
    • SerialBus: CAN Bus
    • 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

          For Gerrit Dashboard: QTBUG-65195
          # Subject Branch Project Status CR V

          Activity

            People

              aha_1980 André Hartmann
              szendvics Marcell Varga
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes