private Communicator() { _serialPort = new SerialPort(); _serialPort.ReadTimeout = 2000; _serialSettings = new SerialPortSettings(); _serialSettings.BaudRate = _serialPort.BaudRate; _serialSettings.DataBits = _serialPort.DataBits; _serialSettings.Parity = _serialPort.Parity; _serialSettings.PortName = _serialPort.PortName; _serialSettings.StopBits = _serialPort.StopBits; _logger = LogManager.GetCurrentClassLogger(); }