How to write a driver for a new serial device Look for a open source driver from Linux, BSD, etc. Subclass from SerialPort and implement its functions. Use builtin testing tool to check whether it really works.