Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4906

Python • Re: Help with reading multiple CAN messages with python

$
0
0
If you don't want to run 2 instances of your program, 1 per can bus channel, the Use multiple threads. One for the main program, and 1 thread per can bus channel.


https://www.geeksforgeeks.org/multithre ... hon-set-1/
Great suggestion, I will give this a try, thank you!

I was at the point of that being the next step to try, was running a separate instance of the program for each CAN message, admittedly have not tried it yet though as I would like it to all be within one program.

Statistics: Posted by CPD — Wed Jun 26, 2024 10:03 am



Viewing all articles
Browse latest Browse all 4906

Trending Articles