Skip to content
  • Can J1939 Example

    Unsolved General and Desktop
    3
    0 Votes
    3 Posts
    429 Views
    Y

    @JKSH thanks for the reply.

    I want to implement DTC parsing and want to develop GUI based on data received through it.

    Mainly I want belwo 2 things to implement.
    1.DTC parsing to get SPN/FMI details.
    2.Decoding PGN and related details from received CAN frame.

  • PeakCAN Mingw

    Solved General and Desktop
    4
    0 Votes
    4 Posts
    945 Views
    aha_1980A

    Hi @wimschuiteman,

    Peak does not distinguish between 32 and 64 bit, the library is called pcanbasic.dll in both cases.

    So you need to use the correct one, 32 or 64 bit, depending on your Qt architecture.

  • 0 Votes
    2 Posts
    726 Views
    aha_1980A

    @MrBrightSide8: Please tell us more about your setup: Which Operating System are you using, which CAN hardware (and therefore which QCanBus plugin).

    Are you generating this error frame or does it occur without cause?

    Also, I noticed that the CAN bus example will freeze when it encounters an ErrorFrame. Is that an expected behavior?

    Of course this is not expected. I remember playing with error frames some weeks ago and cannot confirm your observation. Can you put a breakpoint when this happens and show me the contents of the error frame in the debugger window? Thanks.

  • 0 Votes
    4 Posts
    3k Views
    M

    Yes, you're right. Thanks.

  • 0 Votes
    7 Posts
    2k Views
    aha_1980A

    @MrBrightSide8 said in bool QCanBusDevice::connectDevice and QCanBus's createDevice always return true?:

    Yes, I can see it in vcanconf.exe in channel 1 and 2 of the CAN device.

    So you mean, channel 1 and 2 are the real hardware channels, right? Do you see virtual channels there also? (You could also post a screenshot of vcanconf.exe).

    If the channels 1 and 2 are the hardware CAN channels, you should be able to connect to "can0" or "can1". Unfortunately I don't have Vector CAN hardware at hand so I could always test using the virtual channels only.

    Is there anyway to determine the actual hardware connection in code?

    There is currently none, except using availableDevices() first.

  • 0 Votes
    6 Posts
    3k Views
    jeremy_kJ

    @Aras said in Help me write my first QML wrapper for a C++ class:

    I think you are right about this and the problem is that the line above is not executed. There is a problem though: I am using application manager, so my application does not have the conventional main function. I have am declaring ApplicationManagerWindow in QML and starting my application using appman command. I looked at the application manager docs but I could not find anything there. Do you know how I could make this C++ call if I am using appman?

    In that case, the registration needs to be done in a plugin.
    http://doc.qt.io/qt-5/qtqml-modules-cppplugins.html covers the process.

  • 1 Votes
    4 Posts
    1k Views
    tekojoT

    Hi @Aras
    I would maybe post to the interest mailing ( http://lists.qt-project.org/mailman/listinfo/interest ) list and ask around.
    With the Qt Automotive work happening, there might be someone else also thinking of CanBus and QML.

  • CAN ?

    Mobile and Embedded
    4
    0 Votes
    4 Posts
    1k Views
    C

    Has anyone worked with SocketCAN and QTserialbus module? I don't understand the whole CAN networking interface with yocto, Qt and SocketCAN. Can anybody help?