hardbyte / hardbyte/python-can

Multiple CAN message thread sending the cycle time is not reliable

Open
#1,729 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.6k
Forks
697
PR merge metrics
No merged PRs in 30d

Description

Hello Developer

I am try to use the Lib to period sending message, now when I periodic sending about 35 CAN message with different ID and different sending cycle. And there is already 42 active thread. The sending period become not reliable.

In these threads, there is a message is sending defined 50ms.
The average period is seems correct, but the message are not sending with 50ms+-.
![image](https://github.com/hardbyte/python-can/assets/33739292/4a49cfa7-4be4-4750-a796-7d1810709b5d)

For now I've tried to send the same cycle messages in a thread. After done this, the active thread is 28, still have larget number.

Is there any tricky way to solved the issue?

Thank you,
Rowe

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.