Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. InnoMakerUsb2CanLib

InnoMakerUsb2CanLib

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
4 Posts 3 Posters 220 Views
  • 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.
  • rzuccaR Offline
    rzuccaR Offline
    rzucca
    wrote on last edited by
    #1

    I wrote a programme for writing/reading data to/from a device over CAN.

    It works fine when I use PEAK CAN as an interface because I can use the inbuilt QCanBus plugin.
    I had less luck when trying to use the innomaker USB2CAN interface because I am not able to link and compile the InnoMakerUsb2CanLib dynamic libraries.

    Any advice?

    jsulmJ 1 Reply Last reply
    0
    • rzuccaR rzucca

      I wrote a programme for writing/reading data to/from a device over CAN.

      It works fine when I use PEAK CAN as an interface because I can use the inbuilt QCanBus plugin.
      I had less luck when trying to use the innomaker USB2CAN interface because I am not able to link and compile the InnoMakerUsb2CanLib dynamic libraries.

      Any advice?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @rzucca said in InnoMakerUsb2CanLib:

      I am not able to link and compile the InnoMakerUsb2CanLib dynamic libraries

      Any more information? Like error messages, OS, Qt version? Did you build these libraries? If you downloaded prebuild libraries - were they built using same compiler?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • rzuccaR Offline
        rzuccaR Offline
        rzucca
        wrote on last edited by
        #3

        Hello. Sorry for the missing information, I was just at the start and having difficulties to link the inno prebuilt library (.h, lib, dll) to my project.
        I'm using Qt 6.8.2 MSVC2022 for Windows and I got the libraries at the GitHub page of INNO-MAKER/usb2can
        After some trial and lots of errors, I found out how to link the libraries and connect to the target.
        For reference, if anyone reading is having the same difficulties as I, I added the following lines to the pro file:

        win32: LIBS += -L$$PWD/include/ -lInnoMakerUsb2CanLib

        INCLUDEPATH += $$PWD/''
        DEPENDPATH += $$PWD/''

        I still can't send or read CAN messages, though. I am afraid, it has more to do with my lack of skills (coupled with to non-existing library documentation) and is not strictly a technical problem I have with Qt. The only thing I know is that the driver function sendInnoMakerDeviceBuf is returning false

        1 Reply Last reply
        1
        • aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by aha_1980
          #4

          @rzucca have you already seen https://github.com/INNO-MAKER/usb2can/tree/master/For Windows/QT/QT/QTInnoMaker ?

          That looks like an useful example for you.

          Regards

          Qt has to stay free or it will die.

          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