Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. CAN protocol using Qt
Forum Updated to NodeBB v4.3 + New Features

CAN protocol using Qt

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 3 Posters 1.5k Views 1 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.
  • N Offline
    N Offline
    Nilesh Prakash Kokane
    wrote on last edited by
    #1

    Hi,

    I'm developing a system which has a CAN protocol interface but haven't found the corresponding libraries as in the case of Qserialport, can anyone please point me to the smaple code from where I can derive my appication

    Regards

    Nilesh Kokane

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Qt does not have built-in support for the CAN protocol. You need to look for external libraries or create your own.

      (Z(:^

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kuschky
        wrote on last edited by
        #3

        Hi, there exists nothing in Qt. But it's easy to implement it by your self. I did implement a Qt wrapper for handle CAN messages. My CAN wrapper wraps the socket provided by the libsocketcan which provides a CAN socket which can be used similar to linux network sockets. To get the libsocketcan working you need also the hardware specific driver for your CAN interface installed.

        1 Reply Last reply
        0
        • N Offline
          N Offline
          Nilesh Prakash Kokane
          wrote on last edited by
          #4

          Hi sierdzio,
          Hi kuschky,

          Thanks for your valuable suggestions.

          kuschky, I'm using a linux on my embedded board and just checked the boot logs to conform CAN module is enabled and is fine.

          As i'm new to Qt can you please point out the sample code for the same.
          Also is CAN implementation the same way as to implementing i2c in Qt by writing on file systems(dev/i2c-0), or using CAN-utilities installed on the board will make my work simpler.

          Nilesh Kokane

          1 Reply Last reply
          0

          • Login

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