hardbyte / hardbyte/python-can

Vector CAN not able to communicate

オープン
#1,573 コメント 10 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
1.6k
フォーク
697
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。