Fix bug in serial port. Add select com port.