hardbyte / hardbyte/python-can

Etas interface failed

Đang mở
#1,263 2 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
Hello, I'm trying using ETAS ES581.3 for CAN interface
I've installed BOA Distribution Package 16.12.2021 in my computer
I try to create EtasBus or run detect search available configs
But it will go to ValueError in etas __init__.py line 25
`CSI_CreateProtocolTree(ctypes.c_char_p(b""), nodeRange, ctypes.byref(self.tree))`

Please check the problem or the correct installation for ETAS interface

### To Reproduce
Here is my code
```
import can
from can.interfaces.etas import EtasBus
def main():
configs = can.interface.detect_available_configs(interfaces="etas")
for c in configs:
print(c)
bus = EtasBus(channel='ETAS://USB/ES581:45239', bitrate=500000, fd=False, data_bitrate=2000000)
print(bus)
```

### Additional context

OS and version: Windows 10
Python version: 3.7.4
python-can version: 4.0.0
python-can interface/s (if applicable): ETAS 581.3

Traceback and logs

```
Traceback (most recent call last):
File "C:\Users\A50044\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\A50044\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "E:\bls2\venv\lib\site-packages\can\logger.py", line 224, in
main()
File "E:\bls2\venv\lib\site-packages\can\logger.py", line 194, in main
bus = _create_bus(results, can_filters=_parse_filters(results), **additional_config)
File "E:\bls2\venv\lib\site-packages\can\logger.py", line 111, in _create_bus
return Bus(parsed_args.channel, **config) # type: ignore
File "E:\bls2\venv\lib\site-packages\can\interface.py", line 120, in __new__
bus = cls(channel, *args, **kwargs)
File "E:\bls2\venv\lib\site-packages\can\interfaces\etas\__init__.py", line 25, in __init__
CSI_CreateProtocolTree(ctypes.c_char_p(b""), nodeRange, ctypes.byref(self.tree))
ValueError: Procedure probably called with too many arguments (16 bytes in excess)
```

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.