hardbyte / hardbyte/python-can

CAN-FD initialization error on PEAK device

Đang mở
#1,331 6 bình luận 0 reaction 0 người được giao Xem trên GitHub
backend:pcan 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
CAN-FD initialization error on PEAK device (PCANUSB-FD)
vector can works well with CAN-FD.

### To Reproduce
h_can = can.interface.Bus(bustype='pcan', channel='PCAN_USBBUS1', bitrate=500000, fd=True) # fail

### Expected behavior
return bus object address

### Additional context

OS and version: Windows10
Python version : 3.9.12
python-can version : 4.0.0
python-can interface/s (if applicable): PCAN-USB FD

Traceback and logs
none

none

import can

try:
# h_can = can.interface.Bus(bustype='pcan', channel='PCAN_USBBUS1', bitrate=500000) # pass
h_can = can.interface.Bus(bustype='pcan', channel='PCAN_USBBUS1', bitrate=500000, fd=True) # fail
# h_can = can.interface.Bus(bustype='vector', channel=2, bitrate=500000, fd=True) # pass
except:
h_can = None

if h_can is not None:
tx_msg = can.Message(arbitration_id=100, dlc= 12, data=[0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4], is_fd=True)
# tx_msg = can.Message(arbitration_id=100, dlc= 8, data=[0, 0, 0, 0, 0, 0, 0, 0])
h_can.send(tx_msg)

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.