diff --git a/TestBenchFramework/BenchControl/TestMethods/iPerlCommunication/TestMethod.cs b/TestBenchFramework/BenchControl/TestMethods/iPerlCommunication/TestMethod.cs index f303d3834..653ff95d4 100644 --- a/TestBenchFramework/BenchControl/TestMethods/iPerlCommunication/TestMethod.cs +++ b/TestBenchFramework/BenchControl/TestMethods/iPerlCommunication/TestMethod.cs @@ -3,6 +3,7 @@ /// Author: Milan Hanajík /// using System; +using System.IO.Ports; using System.Collections.Generic; using log4net; using TBF.BenchControl; @@ -35,6 +36,27 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication public void Initialize() { + if (DebugLevel == Entities.DebugMode.Normal) + { + /// Check whether RFID serial ports are free + SerialPort rfidPort; + rfidPort = new SerialPort(string.Format("COM{0}", testMethodCfg.RfidPortNrBoard1), 9600, Parity.None, 8, StopBits.One); + rfidPort.Open(); + rfidPort.Close(); + + rfidPort = new SerialPort(string.Format("COM{0}", testMethodCfg.RfidPortNrBoard2), 9600, Parity.None, 8, StopBits.One); + rfidPort.Open(); + rfidPort.Close(); + + rfidPort = new SerialPort(string.Format("COM{0}", testMethodCfg.RfidPortNrBoard3), 9600, Parity.None, 8, StopBits.One); + rfidPort.Open(); + rfidPort.Close(); + + rfidPort = new SerialPort(string.Format("COM{0}", testMethodCfg.RfidPortNrBoard4), 9600, Parity.None, 8, StopBits.One); + rfidPort.Open(); + rfidPort.Close(); + } + Version ver = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; rfidDataLogger.Fatal("------------------------------------------------------------------------"); rfidDataLogger.FatalFormat("Test Bench Framework ver. {0}.{1}.{2}", ver.Major, ver.Minor, ver.Build); diff --git a/TestBenchFramework/Properties/AssemblyInfo.cs b/TestBenchFramework/Properties/AssemblyInfo.cs index 62d67ebf9..ecc69c56a 100644 --- a/TestBenchFramework/Properties/AssemblyInfo.cs +++ b/TestBenchFramework/Properties/AssemblyInfo.cs @@ -29,5 +29,5 @@ using System.Runtime.InteropServices; // Build Number // Revision // -[assembly: AssemblyVersion("1.5.103.1")] -[assembly: AssemblyFileVersion("1.5.103.1")] +[assembly: AssemblyVersion("1.5.105.1")] +[assembly: AssemblyFileVersion("1.5.105.1")]