add open close serial port