python-can
python-can copied to clipboard
The can package provides controller area network support for Python developers
I have written a code that receives a message for certain timeout, if the timeout exceeds and no message was sent it raises the CanTimeoutError flag. when i ran the...
def print_message(msg: can.Message) -> None: """Regular callback function. Can also be a coroutine.""" print(msg) async def main() -> None: """The main function that runs in the loop.""" with can.Bus( interface="pcan",...
### Describe the bug I created a bus as below: ``` if bustype1 != "None": if bustype1 == "pcan": channel1 = 'PCAN_USBBUS' + str(int(channel1)) else: channel1 = str(int(channel1) - 1)...
## Description up to exception list: There are some community posts, as well as some Python examples, suggest to create a bus object using the "with" statement. See also section...
Disclaimer: This is my first issue posted here, my apologies if I overlooked some guidelines/conventions! ### Describe the bug When logging CAN frames to file using ASCWriter, the format is...
python version: 3.9.13, python-can version: 4.0.0 I am trying to send a CAN message every millisecond using python-can to access Vector's CANalyzer software. Using the code below, I would expect...
```shell File "/opt/homebrew/Cellar/[email protected]/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ip', '-json', 'link', 'list', 'up']' returned non-zero exit status 255. win32com.client module required for usb2can The SYSTEC ucan...
haven't tested on hardware yet
Sorry, I have use the example attached in the sizedrotatinglogger documentation, what is the proper method to stop the can-log?
The parent class `BusABC` expects to be shutdown properly, checked via its `self._is_shutdown` flag during object deletion. But that flag is only set when the base class' `shutdown()` is called,...