hardbyte / hardbyte/python-can

Multiple CAN message thread sending the cycle time is not reliable

Đang mở
#1,729 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
1.6k
Fork
697
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.