hardbyte / hardbyte/python-can

Unable to receive correct data

Đang mở
#1,254 9 bình luận 0 reaction 0 người được giao Xem trên GitHub
backend:kvaser 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
Not receiving correct data from can interface

### To Reproduce
Send a single message through kvaser can channel 0 using
```python
msg = can.Message(arbitration_id=0x131, dlc = 6, data=[1, 2, 3, 12, 10, 11], is_error_frame=False, is_extended_id=False)
bus.send(msg)
```

Using kvaser can channel 1 interface
```python
for msg in bus
print (msg)
```

Same as the documentation

### Expected behavior
We should be receiving dlc = 6 data = 1 2 3 12 10 11
I read dlc =4 Error frame data = 20 28 00 00 (irrespective of what data is being sent)

### Additional context

OS and version: win10
Python version: py3.10.2
python-can version: 3.3.4
python-can interface/s (if applicable): kvaser, bitrate 500000

This also happens if you send data through pcan pci bus and receive data on kvaser. Doesn't work the other way around.

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.