Log and replay serial port data