OsTech Source Code Examples

We have some source code examples that show how to communicate with OsTech devices via RS232 in several progamming languages.

C and C++

Download C and C++ example

Two examples for communication with OsTech devices: One is written in C and belongs to a rather old version of our display. However, the protocol is still the same. It needs functions for sending and receiving characters over RS232. Those are not included as they are platform dependent.

The second example is written in C++ and more complete. It belongs to the linux version of our current display software. If the functions for the serial interface are replaced, it can be used on other platforms, too.

Python

Download Python example

Our python functions, to communicate with OsTech devices in binary mode. Some examples are included. The python module for serial communcation (https://pypi.org/project/pyserial) is required.