python-can plugin for CAN bus interfaces from EMS Dr. Thomas Wuensche e.K.
This plugin provides integration of EMS Dr. Thomas Wuensche CAN interfaces (CPC-USB, CPC-PCIe, etc.) into the python-can library. It supports both Classic CAN and CAN FD with the common bitrate configurations.
Dependencies
This project requires python-can (version >= 4.2). If it isn't automatically installed with this project, then you can manually install it using:
python -m pip install python-can
Install
Install python-can plugin 'can-wuensche' by running the following command in a terminal. Ensure that the file is in the current directory or provide the full path to the file:
python -m pip install can-wuensche.whl or
python -m pip install --no-index --find-links=can-wuensche.whl can_wuensche
Usage
Simply change the interface type of your can.Bus instance to "wuensche" and adjust the other values (channel) accordingly.
Examples to open a channel with interface from cpcconf.ini or specified directly.
Example 1 CAN: bus = can.Bus(interface="wuensche", channel="CHAN00", bitrate=500000)
Example 2 CAN: bus = can.Bus(interface="wuensche", channel='{ "CHAN" : {"InterfaceType" : "CPC-USB", "SerialNumber" : "9999999"}}', bitrate=500000)
Example 3 CAN FD: bus = can.Bus(interface="wuensche", channel="CHAN00", fd=1, nom_bitrate=1000000, data_bitrate=4000000)
Example 4 CAN FD: bus = can.Bus(interface="wuensche", channel="CHAN00", fd=1, f_clock=40000000, nom_tseg1=15, nom_tseg2=4, nom_sjw=3, nom_brp=2, data_tseg1=7, data_tseg2=2, data_sjw=1, data_brp=1)
Metadata
Release files for python-can-wuensche 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python_can_wuensche-1.0.0.tar.gz | 36.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_can_wuensche-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 74.0 kB
Release files / python_can_wuensche-1.0.0.tar.gz
| Download URL | python_can_wuensche-1.0.0.tar.gz |
|---|---|
| Size | 36.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4468c11f2af7037fecb33abb9a9d8eb68a6d5116e289bd0bbba1c76a6139644
|
|
BLAKE2b-256 checksum How to use checksums |
78657b2e677f3cf9d51be2cc29e2df0665493fe20a50906eab453a381391d157
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
Release files / python_can_wuensche-1.0.0-py3-none-any.whl
| Download URL | python_can_wuensche-1.0.0-py3-none-any.whl |
|---|---|
| Size | 37.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b39fd6e67b1423c883bdca207b8e973a717385db3a15cffa0302129ba2864e4e
|
|
BLAKE2b-256 checksum How to use checksums |
a85eefea41acf4e1eadc955bd461fc70f715f3a354680ef4d938e18d8515a9bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|