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

Setting CAN bus bitrate with socketcan returns error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.0
    • SerialBus: CAN Bus
    • None
    • 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

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change