hardbyte / python-can

The can package provides controller area network support for Python developers
https://python-can.readthedocs.io
GNU Lesser General Public License v3.0
1.31k stars 604 forks source link

An error occurred when kvaser cantool was invoked #1872

Open hanlfa opened 1 month ago

hanlfa commented 1 month ago

Describe the bug

Connect the kvaser tool to the ecu. Use vector to observe that the ecu normally sends and receives messages. However, the connection is normal when the host computer invokes the kcaser. However, using the send method reported an error.

[ERROR] Connection:Function canWrite failed-Error in parameter[Error Code -1 ]

code:client.change_session(3)

Occasional problems,sometimes it work good.

To Reproduce

Expected behavior

Additional context

OS and version: Python version: python-can version: python-can interface/s (if applicable):

Traceback and logs ```python def func(): return "hello, world!" ```
zariiii9003 commented 1 month ago

Example code and traceback would be helpful