A python-can interface driver for Sontheim Industrie Elektronik CAN bus interfaces
Project description
This module is a plugin for the python-can. module, that allows the use of CAN interfaces that rely on the Sontheim Industrie Elektronik (SIE) MTAPI drivers (windows only). These include the SIE CANfox (including rebranded versions such as that by IFM), SIE CANUSB, etc.
Installation
Install using pip:
$ pip install python-can-sontheim
Usage
In general, useage is largely the same as with the main python-can library, using the interface designation of “sontheim”. When integrating the sontheim interface into scripts, it is possible to import constants, device deisgnations etc from the python-can-sontheim module using “import can_sontheim”. For the majority of the use cases, using an SIE interface is as simple as amending any python-can examples with the lines shown below:
Create python-can bus with the SIE CANfox USB interface:
import can
from can_sontheim import devices
bus = can.Bus(interface="sontheim", channel=devices.CANfox.CAN1, bitrate=250000, echo=False)
Some examples are present in the python-can-sontheim/examples directory in the repository, and more complete documentation specific to the SIE interfaces and driver will be uploaded to this module in due course.
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
File details
Details for the file python-can-sontheim-0.1.3.tar.gz
.
File metadata
- Download URL: python-can-sontheim-0.1.3.tar.gz
- Upload date:
- Size: 1.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd03ff3cae71a6a0f43900d5fa43cf1907fd5c93902238a3509af5856a0bacdb |
|
MD5 | f3f7254f7e37088cd4d8669e4884cd8b |
|
BLAKE2b-256 | e57f65760ecc836c144967d6f96b57bc6da1b736f85a1aa725e58a6225fa793e |
File details
Details for the file python_can_sontheim-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: python_can_sontheim-0.1.3-py3-none-any.whl
- Upload date:
- Size: 1.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e57835aad764d227864fe7c7efb1dc6dc49a1e936cb89f3701e941a03db3396 |
|
MD5 | 6c8d4fcfa76d0a91a27b6483726c00e9 |
|
BLAKE2b-256 | a7337198f286c3162d21cae78e127d842bf6fb14b410f9c84f8c2a6c18892296 |