Qt can protocol on windows desktop ?
-
Qt creator has sample example of qt can bus to transmit and receive frames over CAN protocol. The example doesn't let me connect to any device , as there is no CAN device connected to the desktop .
As physical CAN bus only uses a pair of wires ( CAN_H and CAN_L) , how can I have these wires connected to the desktop? Or do I have to use USB2CAN adapter to tranmit the frames ?
PS: I have a non-commercial version of QT tools . -
Hi @Nouman, and welcome!
@Nouman said in Qt can protocol on windows desktop ?:
As physical CAN bus only uses a pair of wires ( CAN_H and CAN_L) , how can I have these wires connected to the desktop? Or do I have to use USB2CAN adapter to tranmit the frames ?
Your PC doesn't understand what to do with the pair of wires. You need dedicated CAN hardware (like the USB-to-CAN adapter) to let your PC communicate on a CAN bus.
PS: I have a non-commercial version of QT tools .
This is fine. You can use the LGPLv3 license of Qt Serial Bus to write software for your CAN hardware.
-
Please see https://doc.qt.io/qt-5/qtcanbus-backends.html#can-bus-plugins for supported Hardware.
Regards