public void WriteData(TransmissionMode transmissionMode, ValidationMode validationMode, string msg) { var checkSum = validatorPool.get(validationMode).calculate(msg); _logger.Log(LogLevel.Trace, "Checksum: " + checkSum.ToString()); senderPool.get(transmissionMode).SendMessage(comPort, msg + checkSum, validationMode); _logger.Log(LogLevel.Trace, transmissionMode.ToString() + " data sent to port " + comPort.PortName); }
internal void comPort_DataReceived(object sender, SerialDataReceivedEventArgs e) { _logger.Log(Constants.LogLevel.Trace, "Incoming data recieved"); _view.AddMessage("[Rx] " + _service.RecieveData()); }