Take a look at this to understand the protocol between hard- and software.
Runs on Unix and creates a virtual serial port that can be opened by CubeControl. Only responds to OK, (h)elp and (v)ersion right now.