hardbyte / hardbyte/python-can

Etas interface failed

未关闭
#1,263 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Python
星标
1.6k
派生
697
PR 合并指标
30 天内没有已合并 PR

描述

### 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)
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。