Support for mock serial port