hardbyte / python-can

The can package provides controller area network support for Python developers
https://python-can.readthedocs.io
GNU Lesser General Public License v3.0
1.27k stars 597 forks source link

Can't open CAN Bus for Vector Device interface. #1591

Open nateimig18 opened 1 year ago

nateimig18 commented 1 year ago

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

zhangshengping commented 1 year ago

I got the same execption raise!

YongjinZhang-Eaton commented 8 months ago

it does work now? I got the same problem

StarsLighttheWay commented 1 month ago

Excuse me, is there a solution now