python-can plugin for CAN bus interfaces from EMS Dr. Thomas Wuensche e.K.
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_can_wuensche-1.0.0.tar.gz.
File metadata
- Download URL: python_can_wuensche-1.0.0.tar.gz
- Upload date:
- Size: 36.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4468c11f2af7037fecb33abb9a9d8eb68a6d5116e289bd0bbba1c76a6139644
|
|
| MD5 |
79109723ced00f491ab59869e970fdb7
|
|
| BLAKE2b-256 |
78657b2e677f3cf9d51be2cc29e2df0665493fe20a50906eab453a381391d157
|
File details
Details for the file python_can_wuensche-1.0.0-py3-none-any.whl.
File metadata
- Download URL: python_can_wuensche-1.0.0-py3-none-any.whl
- Upload date:
- Size: 37.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b39fd6e67b1423c883bdca207b8e973a717385db3a15cffa0302129ba2864e4e
|
|
| MD5 |
1c320058f6d8e6bcb070b182beabd87a
|
|
| BLAKE2b-256 |
a85eefea41acf4e1eadc955bd461fc70f715f3a354680ef4d938e18d8515a9bf
|