Interface between the SUNIX SDC Expansion Board Software and python-can
Project description
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
thinkedgecan-0.1.0.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for thinkedgecan-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75f065128f9316679e313875bda62e8922b29407c5cbd69096d130d95f098b3e |
|
MD5 | ca9112287c17e8a0602fac93903a8de3 |
|
BLAKE2b-256 | 9123a6c87ae3d386290d4e3b5ab7f55e5be13b69cace9b7b1185a5e01c24a784 |