hardbyte / hardbyte/python-can

Vector CAN not able to communicate

Open
#1,573 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.6k
Forks
697
PR merge metrics
No merged PRs in 30d

Description

Hello all,

I have installed Python can on Windows 10. This machine has a vector CAN (VN5620) XL driver and VN5620 drivers installed.

This is my can.conf file
![image](https://user-images.githubusercontent.com/52689334/233769553-e7f74b7f-6f91-44df-814c-bc1d43fb857f.png)

This is my channel mapping in vector Canoe tool

I use CAN1 VN5620 1 Channel 5 in my Canoe

When I run this command:

>>> with can.Bus() as bus:
... for msg in bus:
... print(msg.data)

I get error:

Traceback (most recent call last):
File "", line 1, in
File "C:\Users\lp91kor\.conda\envs\CANfuzzing\lib\site-packages\can\interface.py", line 127, in __new__
bus = cls(channel, *args, **kwargs)
File "C:\Users\lp91kor\.conda\envs\CANfuzzing\lib\site-packages\can\util.py", line 337, in wrapper
return f(*args, **kwargs)
File "C:\Users\lp91kor\.conda\envs\CANfuzzing\lib\site-packages\can\interfaces\vector\canlib.py", line 187, in __init__
channel_index = self._find_global_channel_idx(
File "C:\Users\lp91kor\.conda\envs\CANfuzzing\lib\site-packages\can\interfaces\vector\canlib.py", line 361, in _find_global_channel_idx
hw_type, hw_index, hw_channel = self.get_application_config(
File "C:\Users\lp91kor\.conda\envs\CANfuzzing\lib\site-packages\can\interfaces\vector\canlib.py", line 868, in get_application_config
raise VectorInitializationError(
**can.interfaces.vector.exceptions.VectorInitializationError: xlGetApplConfig failed (Vector HW Config: Channel '5' of application 'python-can' is not assigned to any interface) [Error Code 255]**

Can anyone help me resolve this issue ?

Note I have installed all the vector can drivers on this machine.
Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.