Read a serial port.