hardbyte / hardbyte/python-can

Can't open CAN Bus for Vector Device interface.

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

描述

### Describe the bug
VectorBus has default app_name "CANalyzer" causing issue finding channels that haven't been associated yet to that app_name.

### To Reproduce
Install drivers for the device first.
Connect a Vector VN1630 device or similar.

```
import can

bus = can.Bus(bustype='vector', channel=0, bitrate=500000)
# can.interfaces.vector.exceptions.VectorInitializationError: xlGetChannelIndex failed (XL_ERR_HW_NOT_PRESENT) [Error Code 129]
# python-can version 4.2
```

### Expected behavior
No errors on runtime

### Additional context

OS and version: Windows
python-can version: 4.2
python-can interface/s (if applicable): VN1630A

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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