hardbyte / hardbyte/python-can

Vector 1610 wont connect, XL will

Đang mở
#1,494 8 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
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ả

### Describe the bug

I started using the CanCaseXL channel 1 and it worked right away. I moved to a Vector 1630 using Channel 3. Now I get the following error for using channel 1 or 3. The mapping looks correct, is there an issue with the 1630?

Exception has occurred: VectorInitializationError
xlGetApplConfig failed (Vector HW Config: Channel '1' of application 'mf' is not assigned to any interface) [Error Code 255]
can.interfaces.vector.exceptions.VectorInitializationError: xlGetApplConfig failed (XL_ERROR) [Error Code 255]

During handling of the above exception, another exception occurred:

File "D:\Users\mflood\OneDrive\CAN_Decoder\MFCan.py", line 78, in CAN_Driver
self.CANbus = can.Bus(interface='vector',
File "D:\Users\mflood\OneDrive\CAN_Decoder\Receive_all.py", line 76, in
MFCan.CAN_Driver() #attach the vector driver
can.interfaces.vector.exceptions.VectorInitializationError: xlGetApplConfig failed (Vector HW Config: Channel '1' of application 'mf' is not assigned to any interface) [Error Code 255]
![snap002772](https://user-images.githubusercontent.com/24959139/214097375-f9c8ae5d-37d8-4f2c-bbbb-c7362cd0fd88.jpg)
![snap002773](https://user-images.githubusercontent.com/24959139/214098596-5955b261-7be9-41f6-b5a8-38da169f160e.jpg)

### To Reproduce

### Expected behavior

### Additional context

OS and version: win10, py38
Python version: 3.8
python-can version: 4.1
python-can interface/s (if applicable): Vector 1630A

Traceback and logs

```python
def func():
return "hello, world!"
```

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.