hardbyte / hardbyte/python-can

Cannnot receive can-fd message with PCAN

オープン
#1,859 コメント 1 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。