add Firmware check
This commit is contained in:
@@ -155,7 +155,7 @@
|
||||
</site>
|
||||
<site name="MeterProcessState" id="2">
|
||||
<application path="/" applicationPool="Clr4IntegratedAppPool">
|
||||
<virtualDirectory path="/" physicalPath="C:\Users\SZLATEV\source\repos\laa_production\Common\Service\MeterProcessState" />
|
||||
<virtualDirectory path="/" physicalPath="C:\Users\drabesch_ro\Repo\lab\la_operations\laa_production\Common\Service\MeterProcessState" />
|
||||
</application>
|
||||
<bindings>
|
||||
<binding protocol="http" bindingInformation="*:56011:localhost" />
|
||||
|
||||
@@ -65,19 +65,19 @@ namespace CordoPlot
|
||||
{
|
||||
decoder.DecodeMsg(t[1].Trim());
|
||||
IMeasurementRecord recordToAdd;
|
||||
if (decoder.DataBendDetectTest.IsValid)
|
||||
if (decoder.DataBendDetectTest != null && decoder.DataBendDetectTest.IsValid)
|
||||
{
|
||||
decoder.DataBendDetectTest.ReceivedTime = recived;
|
||||
decoder.DataBendDetectTest.SyncMarkRecord = currentSyncmark;
|
||||
recordToAdd = decoder.DataBendDetectTest ;
|
||||
}
|
||||
else if (decoder.DataCalib.IsValid)
|
||||
else if (decoder.DataCalib != null && decoder.DataCalib.IsValid)
|
||||
{
|
||||
decoder.DataCalib.ReceivedTime = recived;
|
||||
decoder.DataCalib.SyncMarkRecord = currentSyncmark;
|
||||
recordToAdd = decoder.DataCalib;
|
||||
}
|
||||
else if (decoder.DataFlowTest.IsValid)
|
||||
else if (decoder.DataFlowTest != null && decoder.DataFlowTest.IsValid)
|
||||
{
|
||||
decoder.DataFlowTest.ReceivedTime = recived;
|
||||
decoder.DataFlowTest.SyncMarkRecord = currentSyncmark;
|
||||
@@ -126,6 +126,11 @@ namespace CordoPlot
|
||||
}
|
||||
|
||||
|
||||
foreach (var item in collection )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
double[] dataX = { 1, 2, 3, 4, 5 };
|
||||
|
||||
@@ -810,29 +810,27 @@ namespace CordonelAssemblyLine.Model
|
||||
|
||||
if (_skipProcessSteps == null || !_skipProcessSteps.SkipFWCheck)
|
||||
{
|
||||
foreach (var item in checkAppsIdVersion)
|
||||
if (!meter.InstalledFwVersion.HasValue || !checkAppsIdVersion.Any())
|
||||
{
|
||||
try
|
||||
{
|
||||
var meterFWApp = meter.MeterAppListVersion.First(a => item.Key == a.AppId);
|
||||
if (meterFWApp.Version != item.Value)
|
||||
{
|
||||
SetState($"Falsche FW, bitte Updaten! AppId:{item.Key} sollte {item.Value} haben, hat aber {meterFWApp.Version}");
|
||||
meter.WriteLog(State);
|
||||
lblS06Color = _progressError;
|
||||
return false;
|
||||
}
|
||||
lblS06Text = meterFWApp.StrVersion;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
SetState("Fehler beim auslesen der FW");
|
||||
meter.WriteLog(State);
|
||||
lblS06Text = State;
|
||||
lblS06Color = _progressError;
|
||||
return false;
|
||||
}
|
||||
SetState("Fehler beim auslesen der FW");
|
||||
meter.WriteLog(State);
|
||||
lblS06Text = State;
|
||||
lblS06Color = _progressError;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (meter.InstalledFwVersion.Value != checkAppsIdVersion.FirstOrDefault().Value)
|
||||
|
||||
{
|
||||
SetState($"Falsche FW, bitte Updaten! FW sollte {checkAppsIdVersion.FirstOrDefault().Value} haben, hat aber {meter.InstalledFwVersion.Value}");
|
||||
meter.WriteLog(State);
|
||||
lblS06Color = _progressError;
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Binary file not shown.
+3
-3
@@ -197,11 +197,11 @@ namespace ProductionUiCordonel.ProductionProcesses.Actions
|
||||
UserControl.lblText.Content = "Lut not correct";
|
||||
}
|
||||
));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var meterFWApp = Meter.MeterAppListVersion.First(a => a.AppId == 24);
|
||||
|
||||
if (!string.IsNullOrEmpty(res[9]) && meterFWApp.StrVersion.Replace(".", "") != uint.Parse(res[9]).ToString("X4"))
|
||||
if (string.IsNullOrEmpty(res[9]) || !Meter.InstalledFwVersion.HasValue || Meter.InstalledFwVersion.Value != uint.Parse(res[9]))
|
||||
{
|
||||
currentProcessState = ProductionProcessState.Error;
|
||||
|
||||
|
||||
@@ -126,7 +126,7 @@
|
||||
FROM [CordonelMeterSizes]
|
||||
WHERE [Dn_VakoID] = SUBSTRING([Identnr].[VakoCode], 4, 2)) AS [NewNennweiteID]
|
||||
, [lut].[FileCrc] AS [LutCrc]
|
||||
, fw.FWVersionHex as FWVersion
|
||||
, fw.Version as FWVersion
|
||||
FROM [Cordonel_AssignedPicking] AS [MapOrder]
|
||||
LEFT OUTER JOIN [MapPcbIdToSerialNumber] AS [map]
|
||||
ON [MapOrder].[CordonelAssignedPicking_PcbId] = [map].[MapPcbIdToSerialNumber_PcbId]
|
||||
|
||||
Reference in New Issue
Block a user