Interface between the SUNIX SDC Expansion Board Software and python-can
Project description
This plugin adds support for the ThinkEdge SE50's CAN-bus controller to the python-can library.
Specifically, the ThinkEdge SE50 provides a CAN-bus connection via a SUNIX Industry card.
System requirements
- Hardware: ThinkEdge SE50
- Operating system: Ubuntu 20.04 GA
Installation
- Download and unzip the drivers from Lenovo
- This folder contains a PDF with the name "SDC Expansion Board SDK Document1.0.2-linux.pdf". Follow the instructions inside the PDF to install the driver and to check the driver status. You can disregard all instructions that come after.
- Run
pip install path/to/thinkedgecan.
Usage
Refer to the documentation of python-can for general usage.
Create the Bus object with the following code:
from can import ThreadSafeBus
with ThreadSafeBus(interface="sunix", baudrate=500) as bus:
...
For the baudrate, you can choose one of 125, 250, 500 and 1000 kbit/s. All devices on a CAN-bus must use the same baudrate.
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 thinkedgecan-0.1.2.tar.gz.
File metadata
- Download URL: thinkedgecan-0.1.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f35f94d9cdb333eb9cd6ec513d31ff85f28ecb1d7d258786b945688a64bd654
|
|
| MD5 |
dc7df0c5c36e94f71043fa54410b6dd5
|
|
| BLAKE2b-256 |
b37744524b26d2f2e53b2cc8971c93f0b55be97eec245b93682b23b2ead2fe5b
|
File details
Details for the file thinkedgecan-0.1.2-py3-none-any.whl.
File metadata
- Download URL: thinkedgecan-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65cc524d2c4c61c3a1046c3b8d05c2fefc8f5024d6ff0204e5f8cea233c25474
|
|
| MD5 |
a3bb89eadf99d692754304ce2f4e5abc
|
|
| BLAKE2b-256 |
c1958a2edf6a3de9e42634e83093e2584790f5b96cb54f7339e437f77bd34477
|