hardbyte / hardbyte/python-can

Not able to transmit more than 8bytes single frame in can bus using python

Đang mở
#1,582 5 bình luận 0 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
I am trying to transmit more than 8 bytes of single frame size(CAN FD) for classci CAN channel using can.Message.
Also using Vector Canoe Application on Windows.

### To Reproduce

```python
with concurrent.futures.ThreadPoolExecutor() as executor:
future = executor.submit(self.listen_for_port, port=port)

msg0 = can.Message(arbitration_id=0x580, dlc=15, is_fd=True,
is_extended_id=True, bitrate_switch=True,
data=[3, 3, 3, 3, 3, 3, 3, 3, 3, 3])

msg1 = can.Message(arbitration_id=0x582, dlc=15, is_fd=True,
is_extended_id=True, bitrate_switch=True,
data=[3, 3, 3, 3, 3, 3, 3, 3, 3, 3])

messages = [msg0, msg1]
vbus1.send_messages(messages, 1000)
time.sleep(2)
udp_frames = future.result()
```
I am getting below error when data is more than 8.

![verror](https://user-images.githubusercontent.com/22471567/235314730-4eff6924-7a86-45b3-bf79-8ae7744967ff.PNG)

When data is 8 or less than 8, transmission works

![can message-canoe](https://user-images.githubusercontent.com/22471567/235314750-b6c7096e-4837-4920-95b5-46321a3120f1.PNG)

### Expected behavior
Should be able to see more tahn 8 bytes of data on canoe can channel when data=[3, 3, 3, 3, 3, 3, 3, 3, 3, 3]

### Additional context

OS and version: Windows
Python version: 3.7.9
python-can version: 4.2.0
python-can interface/s (if applicable):

I though initially the issue is on isotp protocol so raised issue in Python-can-isotp repository but after few discussion suggestion was to raise issue in Python-can layer
For more detail: https://github.com/pylessard/python-can-isotp/issues/85

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.