'Set communication parameters on opened port.'

def _reconfigure_port(self, force_update=True):

    super(VTIMESerial, self)._reconfigure_port()
    fcntl.fcntl(self.fd, fcntl.F_SETFL, 0)
    if (self._inter_byte_timeout is not None):
        vmin = 1
        vtime = int((self._inter_byte_timeout * 10))
    elif (self._timeout is None):
        vmin = 1
        vtime = 0
    else:
        vmin = 0
        vtime = int((self._timeout * 10))
    try:
        orig_attr = termios.tcgetattr(self.fd)
        (iflag, oflag, cflag, lflag, ispeed, ospeed, cc) = orig_attr
    except termios.error as msg:
        raise serial.SerialException('Could    not    configure    port:    {}'.format(msg))
    if ((vtime < 0) or (vtime > 255)):
        raise ValueError('Invalid    vtime:    {!r}'.format(vtime))
    cc[termios.VTIME] = vtime
    cc[termios.VMIN] = vmin
    termios.tcsetattr(self.fd, termios.TCSANOW, [iflag, oflag, cflag, lflag, ispeed, ospeed, cc])
