InnoMakerUsb2CanLib
-
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?
-
@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?
-
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
-
@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