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. Is there a QML API available for QCanBus?
Forum Updated to NodeBB v4.3 + New Features

Is there a QML API available for QCanBus?

Scheduled Pinned Locked Moved Solved General and Desktop
serialqmlcanc++
4 Posts 3 Posters 1.5k Views 2 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.
  • ArasA Offline
    ArasA Offline
    Aras
    wrote on last edited by
    #1

    I need to implement a service in my application to handle CAN bus communication. QCanBus seems perfect for what I need to do, and I found a really good sample app showcasing how it can be used. It works great on Linux.

    What I do not fully grasp yet is what is the best way to integrate that service into my existing QML application. I look at a few documentation on how to integrate C++ with QML but not sure if that is the right way to do it. I am wondering if there is a QML API for QCanBus available that I may have looked over, or if not, I would appreciate any pointers about how to implement this service and integrate it into my existing QML app.

    1 Reply Last reply
    1
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      From the looks of it, there's currently no QML API for QCanBus.

      Depending on what you want to do with it, you could write a QObject wrapper in order to encapsulate the functions you need and call QCanBus from there.

      Hope it helps.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3
      • ArasA Offline
        ArasA Offline
        Aras
        wrote on last edited by
        #3

        What I want to do is relatively simple (I hope). I need to initialize a CAN bus connection, read messages, send messages and handle errors.
        I will try to write a simple QML wrapper and see how it goes. Thanks!

        1 Reply Last reply
        2
        • tekojoT Offline
          tekojoT Offline
          tekojo
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          3

          • Login

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