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

Setting CAN bus bitrate with socketcan returns error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.0
    • Fix Version/s: None
    • Component/s: SerialBus: CAN Bus
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      Using the socketcan plugin, setting CAN bus bitrate like

      canDevice->setConfigurationParameter(QCanBusDevice::BitRateKey, 1000000);

      returns message

      qt.canbus.plugins.socketcan: Cannot apply parameter: 4 with value: 1000000

      Libsocketcan is installed, application has root rights.

      Can be reproduced using the can example in module serialbus: [CAN Bus example | Qt Serial Bus 5.15.2|https://doc.qt.io/qt-5/qtserialbus-can-example.html] 

      • start the application with root rights
      • in the connector:
        • select plugin socketcan
        • specify can interface can0
        • click "ok" to connect

      See also: Qt Forum thread

        Attachments

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

          Activity

            People

            Assignee:
            aha_1980 André Hartmann
            Reporter:
            lera Raphaela Leucht
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes