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. how to using thread with canbus
Forum Updated to NodeBB v4.3 + New Features

how to using thread with canbus

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 871 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.
  • V Offline
    V Offline
    victor wang
    wrote on last edited by
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Qt 5.8 includes a SerialBus module - which makes this task much simpler. I recommend upgrading to Qt 5.8 if you can.

      Usage for CanBus: example

      (Z(:^

      V 1 Reply Last reply
      2
      • sierdzioS sierdzio

        Qt 5.8 includes a SerialBus module - which makes this task much simpler. I recommend upgrading to Qt 5.8 if you can.

        Usage for CanBus: example

        V Offline
        V Offline
        victor wang
        wrote on last edited by
        #3

        @sierdzio
        I will consider to try it.
        But not now, i have to finished this task in a short time i have no time to using 5.8.
        Anyway thanks for telling me this!

        1 Reply Last reply
        0
        • BuckwheatB Offline
          BuckwheatB Offline
          Buckwheat
          wrote on last edited by
          #4

          Hi!

          You can use QThread to handle processing the CANbus. Yes, the new CANbus makes this easier but if you want to handle the CAN outside of your main event loop the only way is in a worker thread. Just make sure you create and open your CANbus backend in the running thread so the CANbus signals get processed in your thread!

          Dave Fileccia

          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