FwUpdateBuilder: - Modified DateTime for sorting reports yyyy-MM-dd
This commit is contained in:
@@ -19,7 +19,7 @@ namespace Xylem.Common.Hardware.Interfaces.Ports.SerialPorts
|
||||
{
|
||||
|
||||
private ILogger _byteDataLogger;
|
||||
internal ILogger _asciiDataLogger;
|
||||
internal ILogger AsciiDataLogger;
|
||||
|
||||
/// <inheritdoc />
|
||||
public virtual event EventHandler<BasePortDataEventArgs> OnRawRecordReceived;
|
||||
@@ -95,7 +95,7 @@ namespace Xylem.Common.Hardware.Interfaces.Ports.SerialPorts
|
||||
//assign thread to loop
|
||||
_receiveThread = new Thread(ReadingThreadLoop) { Name = $"{Ident} Reading thread" };
|
||||
|
||||
_asciiDataLogger = NLogHelper.CreateOrGetMultiLogger(Ident, "", "LedRawData", "TargetLedRawDataBase", "LedRawDataBase");
|
||||
AsciiDataLogger = NLogHelper.CreateOrGetMultiLogger(Ident, "", "LedRawData", "TargetLedRawDataBase", "LedRawDataBase");
|
||||
_byteDataLogger = NLogHelper.CreateOrGetMultiLogger(Ident, "", "UartSerialPort", "COMBase", "BaseSerialPort");
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ namespace Xylem.Common.Hardware.Interfaces.Ports.SerialPorts
|
||||
public void RefreshLogger()
|
||||
{
|
||||
|
||||
_asciiDataLogger = NLogHelper.CreateOrGetMultiLogger(Ident, "", "LedRawData", "TargetLedRawDataBase", "LedRawDataBase");
|
||||
AsciiDataLogger = NLogHelper.CreateOrGetMultiLogger(Ident, "", "LedRawData", "TargetLedRawDataBase", "LedRawDataBase");
|
||||
_byteDataLogger = NLogHelper.CreateOrGetMultiLogger(Ident, "", "UartSerialPort", "COMBase", "BaseSerialPort");
|
||||
|
||||
|
||||
@@ -441,7 +441,7 @@ namespace Xylem.Common.Hardware.Interfaces.Ports.SerialPorts
|
||||
}
|
||||
if (RecordStreamingRawData)
|
||||
{
|
||||
_asciiDataLogger.Trace($"{rxStringRecord}");
|
||||
AsciiDataLogger.Trace($"{rxStringRecord}");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -629,7 +629,7 @@ namespace Xylem.Common.Hardware.Interfaces.Ports.SerialPorts
|
||||
/// - Doubling of sync byte in protocol behind sync byte itself implemented
|
||||
/// </remarks>
|
||||
/// <remarks date="2022-Feb-25" author="T.Wiedebusch, R.Drabesch">
|
||||
/// - Flush buffer as MOXA sometimes takes two messages and combines these two one!
|
||||
/// - Flush buffer as MOXA sometimes takes two messages and combines these to one!
|
||||
/// As the Genesis needs a separated wake-up message with a following delay before the
|
||||
/// real payload message, this causes a lot of trouble.
|
||||
/// </remarks>
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Xylem.Common.Hardware.Interfaces.Ports.SerialPorts
|
||||
public class IrdaSerialPort : BaseSerialPort
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public IrdaSerialPort(String ident, SerialPort serialPort, TransmitPortSettings setting)
|
||||
public IrdaSerialPort(String ident, SerialPort serialPort, TransmitPortSettings setting)
|
||||
: base(ident, serialPort, setting)
|
||||
{
|
||||
}
|
||||
@@ -22,21 +22,19 @@ namespace Xylem.Common.Hardware.Interfaces.Ports.SerialPorts
|
||||
/// - wakeup burst pattern changed from 2 times 0xF0 to 4 times 0x01,
|
||||
/// - required delay from 500µs to 1ms between wakeup burst and data.
|
||||
/// </remarks>
|
||||
/// <remarks date="2022-Jun-28" author="T.Wiedebusch">
|
||||
/// - Removed comments and one delay (was at 2 x 1 ms).
|
||||
/// </remarks>
|
||||
protected override void SpecificPortWrite(Byte[] tx)
|
||||
{
|
||||
//send wake up burst
|
||||
var wakeUpBurst = new Byte[] { 0x01, 0x01, 0x01, 0x01 };
|
||||
PhysicalWrite(wakeUpBurst);
|
||||
Thread.Sleep(1);
|
||||
//delay at least 500 µs with 0f *8
|
||||
//PhysicalWrite(delayPattern);
|
||||
//Thread.Sleep(1);
|
||||
|
||||
//delay at least 500 µs
|
||||
Thread.Sleep(1);
|
||||
|
||||
|
||||
//send the IrDA record
|
||||
PhysicalWrite(tx);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace Xylem.Common.Hardware.Interfaces.Ports.SerialPorts
|
||||
|
||||
public ILogger GetRawLogger()
|
||||
{
|
||||
return _asciiDataLogger;
|
||||
return AsciiDataLogger;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user