Metadata-Version: 2.1
Name: thinkedgecan
Version: 0.1.0
Summary: Interface between the SUNIX SDC Expansion Board Software and python-can
Keywords: CAN,can-bus,python-can,sunix
Author-email: Lukas Schreiber <lukas.schreiber@ifos-gmbh.de>
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: Linux
Requires-Dist: python-can >= 4.0.0, < 5

## System requirements

* Hardware: ThinkEdge SE50
* Operating system: Ubuntu 20.04 GA

## Installation

1. Download and unzip the drivers from [Lenovo][zip]
2. 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.
3. Run `pip install path/to/thinkedgecan`.


## Usage

Refer to the [documentation of `python-can`][candocs] for general usage.

Create the `Bus` object with the following code:

```python
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.

[zip]: https://download.lenovo.com/consumer/iot/l1ind04s11avc_tese50.zip
[candocs]: https://python-can.readthedocs.io/

