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. Qt can protocol on windows desktop ?
Forum Updated to NodeBB v4.3 + New Features

Qt can protocol on windows desktop ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 805 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.
  • N Offline
    N Offline
    Nouman
    wrote on last edited by
    #1

    Qt creator has sample example of qt can bus to transmit and receive frames over CAN protocol. The example doesn't let me connect to any device , as there is no CAN device connected to the desktop .
    As physical CAN bus only uses a pair of wires ( CAN_H and CAN_L) , how can I have these wires connected to the desktop? Or do I have to use USB2CAN adapter to tranmit the frames ?
    PS: I have a non-commercial version of QT tools .

    JKSHJ aha_1980A 2 Replies Last reply
    0
    • N Nouman

      Qt creator has sample example of qt can bus to transmit and receive frames over CAN protocol. The example doesn't let me connect to any device , as there is no CAN device connected to the desktop .
      As physical CAN bus only uses a pair of wires ( CAN_H and CAN_L) , how can I have these wires connected to the desktop? Or do I have to use USB2CAN adapter to tranmit the frames ?
      PS: I have a non-commercial version of QT tools .

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi @Nouman, and welcome!

      @Nouman said in Qt can protocol on windows desktop ?:

      As physical CAN bus only uses a pair of wires ( CAN_H and CAN_L) , how can I have these wires connected to the desktop? Or do I have to use USB2CAN adapter to tranmit the frames ?

      Your PC doesn't understand what to do with the pair of wires. You need dedicated CAN hardware (like the USB-to-CAN adapter) to let your PC communicate on a CAN bus.

      PS: I have a non-commercial version of QT tools .

      This is fine. You can use the LGPLv3 license of Qt Serial Bus to write software for your CAN hardware.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      5
      • N Nouman

        Qt creator has sample example of qt can bus to transmit and receive frames over CAN protocol. The example doesn't let me connect to any device , as there is no CAN device connected to the desktop .
        As physical CAN bus only uses a pair of wires ( CAN_H and CAN_L) , how can I have these wires connected to the desktop? Or do I have to use USB2CAN adapter to tranmit the frames ?
        PS: I have a non-commercial version of QT tools .

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Nouman

        Please see https://doc.qt.io/qt-5/qtcanbus-backends.html#can-bus-plugins for supported Hardware.

        Regards

        Qt has to stay free or it will die.

        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