libosdp-sys 3.2.1

Sys crate for https://github.com/goToMain/libosdp
Documentation
# Python Examples

To run the samples, you have to install the following python packages:

```sh
python3 -m pip install pyserial libosdp
```

Then you can run start the CP/PD service as,

```sh
./examples/python/cp_app.py /dev/ttyUSB0 --baudrate 115200
# (or)
./examples/python/pd_app.py /dev/ttyUSB0 --baudrate 115200
```

## Note:

To test how the CP and PD would potentially interact with each other, you can
ask socat to create a pair of psudo terminal devices that are connected to each
other and use that as a serial channel for libosdp communications.

To do this run:

```sh
socat pty,raw,echo=0,nonblock,link=/tmp/ttyS0 pty,raw,echo=0,nonblock,link=/tmp/ttyS1
```

While the above command is running, you can use `/tmp/ttyS0` and `/tmp/ttyS1` to
start your CP and PD app as,

```
./examples/python/cp_app.py /tmp/ttyS0
./examples/python/pd_app.py /tmp/ttyS1
```