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
Forum Update on Monday, May 27th 2025

InnoMakerUsb2CanLib

Scheduled Pinned Locked Moved Solved 3rd Party Software
4 Posts 3 Posters 247 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.
  • R Offline
    R Offline
    rzucca
    wrote on 13 Feb 2025, 13:41 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?

    J 1 Reply Last reply 13 Feb 2025, 13:52
    0
    • R rzucca
      13 Feb 2025, 13:41

      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?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 13 Feb 2025, 13:52 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
      • R Offline
        R Offline
        rzucca
        wrote on 19 Feb 2025, 07:33 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
        • A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 19 Feb 2025, 08:26 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
          • R rzucca has marked this topic as solved 9 days ago

          3/4

          19 Feb 2025, 07:33

          • Login

          • Login or register to search.
          3 out of 4
          • First post
            3/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved