Serial Port Communication Plugin

Does anyone knows a serial port communication plugin or could guide me in the code to read from and write to a serial port?

Thanks ins advance