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. Using PeakCan with QCanBus
Forum Updated to NodeBB v4.3 + New Features

Using PeakCan with QCanBus

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 649 Views 1 Watching
  • 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.
  • B Offline
    B Offline
    Bremenpl
    wrote on last edited by
    #1

    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!

    lprzenioslo.zut.edu.pl

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bremenpl
      wrote on last edited by
      #2

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

      lprzenioslo.zut.edu.pl

      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