Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QCanBusDevice on a COM port?
Forum Update on Monday, May 27th 2025

QCanBusDevice on a COM port?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 693 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RogueWarrior
    wrote on last edited by
    #1

    Is it possible to open a QCanBusDevice that is a COM port? This product uses an FTDI USB-to-serial chip to make CAN bus available as a regular COM port which means it also works on Linux and OSX. https://gridconnect.com/usb-can-interface.html
    So how does the createDevice know where to look for the device? SocketCan looks at devices you can see with ifconfig. But a COM port would show up in /dev.

    aha_1980A 1 Reply Last reply
    0
    • R RogueWarrior

      Is it possible to open a QCanBusDevice that is a COM port? This product uses an FTDI USB-to-serial chip to make CAN bus available as a regular COM port which means it also works on Linux and OSX. https://gridconnect.com/usb-can-interface.html
      So how does the createDevice know where to look for the device? SocketCan looks at devices you can see with ifconfig. But a COM port would show up in /dev.

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @RogueWarrior, welcome to the forum.

      You can find the supported adapters here: http://doc.qt.io/qt-5/qtcanbus-backends.html

      It seems, the adapter you want to use is not SocketCAN compatible, so there is no very-easy way to use it right now.

      But you can implement your own plugin as described http://doc.qt.io/qt-5/qtcanbus-backends.html#implementing-a-custom-can-plugin and use with QtSerialBus.

      And if you go this way, you can even submit your code so it will be included in a later Qt version. I can help you with these steps, I just don't have enough time to write the plugin myself - and without hardware that's nearly impossible.

      Regards.

      Qt has to stay free or it will die.

      1 Reply Last reply
      2
      • R Offline
        R Offline
        RogueWarrior
        wrote on last edited by
        #3

        Thanks. I read that as well and I too don't have the time to write the plugin. I was hoping to find an off-the-shelf solution to this with OSX drivers. FYI, MacCAN is not a driver. It's a library.

        Looks like I'm stuck with developing directly on the target embedded system.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved