Unsolved QCanBusDevice on a COM port?
-
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. -
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.
-
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.