hardbyte / hardbyte/python-can

Vector CAN not able to communicate

Đang mở
#1,573 10 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
1.6k
Fork
697
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.