python-can icon indicating copy to clipboard operation
python-can copied to clipboard

The can package provides controller area network support for Python developers

Results 291 python-can issues
Sort by recently updated
recently updated
newest added

- Remove BaseIOHandler and use generics instead to narrow types. - Add missing type annotations log formats. Other than `can.io.mf4`, this does pass mypy in strict mode.

file-io
QA

While i tried to update and finish the changes in [PR 1702](https://github.com/hardbyte/python-can/pull/1702) i saw some basic change that are quite usefull but are not the trace file version 1.1 changes...

The canable 2.0 project has extended the slcan interface to add support for CAN-FD frames and bitrate switching (see https://github.com/normaldotcom/canable2-fw). I needed this support for my work so I've implemented...

Using the can library with async enabled `Notifier` change the thread which all callbacks is called from. Without async, the notifier callbacks are run in the thread of the can...

bug

The can rx message handler in `class Notifier` is creating tasks when runs in async mode and gets a coroutine callback. https://github.com/hardbyte/python-can/blob/5d62394006f42d1bf98e159fe9bb08d10e47e6eb/can/notifier.py#L143-L148 However the python docs is clear that the...

bug

This PR adds support for Pcapng files to the I/O module Related to #1403, pcap should be rather simple to implement based on these changes. - **Factor out common SocketCAN...

BLF files have metadata objects that encode useful information such as CAN channel mapping configuration. This PR provides the minimal additions to the BLFReader class to support extracting that data...

### Describe the bug Negative time occurs when recording many channles CAN messages and channel changes ### To Reproduce # 创建自定义日志记录器 log_writer = can.Logger('test.asc') def handle_message(msg): print(msg) log_writer.on_message_received(msg) _can =...

bug

Hi everyone, I’m currently working on a test bench that communicates over CAN and CAN FD using a PCAN-USB Pro FD interface. Sending standard CAN messages like 0x214 works perfectly...

bug

If a `Notifier` is created using an asyncio loop, any errors that occurs in the receive callbacks will not call the `Listener._on_error()` callback. It does when not running asyncio. Looking...

bug