hardbyte / hardbyte/python-can
Vector CAN not able to communicate
- Vorherrschende Sprache
- Python
- Sterne
- 1.6k
- Forks
- 697
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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

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
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.