hardbyte / hardbyte/python-can

PCAN fails when PCAN_ERROR_ILLDATA is read via ReadFD

Đang mở
#1,849 0 bình luận 1 reaction 0 người được giao Xem trên GitHub
bug
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ả

### Describe the bug
When there is an invalid frame on CAN bus (in our case CAN FD), PCAN first reports result PCAN_ERROR_ILLDATA and then it send the error frame. If the PCAN_ERROR_ILLDATA is not ignored, python-can throws an exception.

### To Reproduce
A packet like the one in this screenshot has to be received.
![image](https://github.com/user-attachments/assets/c82a149d-329a-49c6-ad11-6e712c59824d)

### Expected behavior
python-can should ignore the PCAN_ERROR_ILLDATA because it carries no useful information. The error can be then detected by the error frame which PCAN generates right after.

### Additional context

OS and version: Windows 11
Python version: Python 3.12
python-can version: Latest commit in main - c7121310253c42c6410a70bc8b4f27a51b8b4411
python-can interface/s (if applicable): PCAN-USB FD (using pcan interface)

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.