Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QCanBus - DLC (Data Length Code) automatically calculated from payload?
robro last edited by
I used to work with an API from Kvaser for a CanBus interface.
Here I had to enter the Data Length Code for every message I wanted to write to the bus.
Do I understand right, that this is not even possible with QCanBus and that the Data Length Code is automatically calculated here from the size of the payload?
(very short answer) yes:
DLC = payload.size()