Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Using PeakCan with QCanBus



  • Hello there,
    I am using Qt version 5.8. I am trying to use the QCanBus framework with PeakCan USB and PCIE devices connected to my PC, like here: http://doc.qt.io/qt-5/qtserialbus-peakcan-overview.html
    The problem is I cannot find any device at this line:

    QCanBusDevice *device = QCanBus::instance()->createDevice(
        QStringLiteral("peakcan"), QStringLiteral("usb0"));
    

    I tried several usb 0, 1, 2 etc same as pcie0, 1.... Is there a way using this framework to figure out which device is connected? The devices work properly with Pcan framework in C# for a long time. I would appreciate all help!



  • In case anyone faces this issue- I forgot to place the PCANBasic.dll file next to the executable.



  • In case anyone faces this issue- I forgot to place the PCANBasic.dll file next to the executable.


Log in to reply