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?

Is there a QML API available for QCanBus?

Scheduled Pinned Locked Moved Solved General and Desktop
serialqmlcanc++
4 Posts 3 Posters 1.4k 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.
  • A Offline
    A Offline
    Aras
    wrote on 7 Sept 2016, 20:20 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 7 Sept 2016, 20:52 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
      • A Offline
        A Offline
        Aras
        wrote on 7 Sept 2016, 21:02 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
        • T Offline
          T Offline
          tekojo
          wrote on 8 Sept 2016, 06:41 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

          3/4

          7 Sept 2016, 21:02

          • 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