Unsolved how to using thread with canbus
-
This post is deleted! -
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
-
@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! -
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!