hardbyte / hardbyte/python-can

Kvaser: multiple canIoCtlInit calls fail with canERR_PARAM (-1) on Kvaser Leaf Light v2

Đang mở
#2,051 0 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ả

**Environment**
- python-can: 4.6.1
- Hardware: Kvaser Leaf Light v2 (S/N 87702)
- OS: Windows 11
- Python: 3.12

**Description**
Initializing a KvaserBus fails with CANLIBOperationError on multiple canIoCtlInit
calls during __init__. The following ioctls all fail with Error Code -1 (canERR_PARAM):
- canIOCTL_SET_TIMER_SCALE
- canIOCTL_SET_LOCAL_TXECHO
- canIOCTL_SET_LOCAL_TXACK

**Reproduction**
bus = can.Bus(interface='kvaser', channel=0, bitrate=500000)

**Traceback**
CANLIBOperationError: Function canIoCtl failed - Error in parameter [Error Code -1]
at canlib.py:568 -> canIOCTL_SET_LOCAL_TXACK

**Notes**
Kvaser CANKing connects successfully to the same device on the same channel
with Init Access mode. The device is detected correctly, python-can lists it
as channel 0. The failure is in the ioctl calls after canOpenChannel succeeds.

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.