python-can icon indicating copy to clipboard operation
python-can copied to clipboard

Can't open CAN Bus for Vector Device interface.

Open nateimig18 opened this issue 2 years ago • 3 comments

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

nateimig18 avatar May 12 '23 01:05 nateimig18

I got the same execption raise!

zhangshengping avatar May 24 '23 03:05 zhangshengping

it does work now? I got the same problem

YongjinZhang-Eaton avatar Feb 01 '24 02:02 YongjinZhang-Eaton

Excuse me, is there a solution now

StarsLighttheWay avatar Aug 18 '24 03:08 StarsLighttheWay