hardbyte / hardbyte/python-can

Multiple CAN message thread sending the cycle time is not reliable

オープン
#1,729 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
1.6k
フォーク
697
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。