hardbyte / hardbyte/python-can

Cannnot receive can-fd message with PCAN

未关闭
#1,859 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Python
星标
1.6k
派生
697
PR 合并指标
30 天内没有已合并 PR

描述

### Describe the bug

I am trying to receive CAN-FD messages using the PCAN interface. However, an error occurs during initialization, and I cannot proceed with receiving messages in CAN-FD mode.

### To Reproduce

import can
self.can_bus0 = can.interface.Bus(channel='PCAN_USBBUS1', bustype='pcan', bitrate=500000, data_bitrate=2000000, fd=True)

Upon running this initialization, the following error occurs:
raise PcanError(self._get_formatted_error(result))
can.interfaces.pcan.pcan.PcanError: An unknown error has occurred

### Expected behavior

The CAN interface should initialize correctly in CAN-FD mode and allow message reception.

### Additional context

OS and version: Windows 10
Python version: 3.6.8
python-can version: 3.3.4
python-can interface: PCAN (PCAN-USB)

Traceback and logs

import can
self.can_bus0 = can.interface.Bus(channel='PCAN_USBBUS1', bustype='pcan', bitrate=500000, data_bitrate=2000000, fd=True)

Traceback:
raise PcanError(self._get_formatted_error(result))
can.interfaces.pcan.pcan.PcanError: An unknown error has occurred

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。