Python Script with Multithreading and CAN Bus Communication Does Not Terminate
I am working on a Python script that sets up communication between multiple Electronic Control Units (ECU1 and ECU2) using the python-can library. The script is designed to read messages from a BLF file, filter them based on specific IDs, and handle them using separate threads for each ECU. However, the script does not terminate as expected and seems to get stuck after printing “main_ECU done”,”filtering done”,”ECU1 Thread has finished”.