Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Completed port to SerialPortComponents

  • Loading branch information...
commit 14921a22566a3002f9d534971b75b05b92ef2b26 1 parent b5cad51
@ashawnbandy authored
Showing with 835 additions and 5 deletions.
  1. +20 −0 ConsoleApplication1/ConsoleApplication1.sln
  2. BIN  ConsoleApplication1/ConsoleApplication1.v11.suo
  3. +6 −0 ConsoleApplication1/ConsoleApplication1/App.config
  4. +58 −0 ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.csproj
  5. +103 −0 ConsoleApplication1/ConsoleApplication1/Program.cs
  6. +36 −0 ConsoleApplication1/ConsoleApplication1/Properties/AssemblyInfo.cs
  7. BIN  ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.exe
  8. +6 −0 ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.exe.config
  9. BIN  ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.pdb
  10. BIN  ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.vshost.exe
  11. +6 −0 ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.vshost.exe.config
  12. +11 −0 ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.vshost.exe.manifest
  13. +5 −0 ConsoleApplication1/ConsoleApplication1/obj/Debug/ConsoleApplication1.csproj.FileListAbsolute.txt
  14. BIN  ConsoleApplication1/ConsoleApplication1/obj/Debug/ConsoleApplication1.exe
  15. BIN  ConsoleApplication1/ConsoleApplication1/obj/Debug/ConsoleApplication1.pdb
  16. BIN  ConsoleApplication1/ConsoleApplication1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  17. 0  ...leApplication1/ConsoleApplication1/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
  18. 0  ...leApplication1/ConsoleApplication1/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
  19. 0  ...leApplication1/ConsoleApplication1/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
  20. +20 −0 ConsoleServerRunner/ConsoleServerRunner.sln
  21. BIN  ConsoleServerRunner/ConsoleServerRunner.v11.suo
  22. +6 −0 ConsoleServerRunner/ConsoleServerRunner/App.config
  23. +58 −0 ConsoleServerRunner/ConsoleServerRunner/ConsoleServerRunner.csproj
  24. +15 −0 ConsoleServerRunner/ConsoleServerRunner/Program.cs
  25. +36 −0 ConsoleServerRunner/ConsoleServerRunner/Properties/AssemblyInfo.cs
  26. +6 −0 ConsoleServerRunner/ConsoleServerRunner/bin/Debug/ConsoleServerRunner.exe.config
  27. BIN  ConsoleServerRunner/ConsoleServerRunner/bin/Debug/ConsoleServerRunner.vshost.exe
  28. +6 −0 ConsoleServerRunner/ConsoleServerRunner/bin/Debug/ConsoleServerRunner.vshost.exe.config
  29. +11 −0 ConsoleServerRunner/ConsoleServerRunner/bin/Debug/ConsoleServerRunner.vshost.exe.manifest
  30. +1 −0  ConsoleServerRunner/ConsoleServerRunner/obj/Debug/ConsoleServerRunner.csproj.FileListAbsolute.txt
  31. BIN  ConsoleServerRunner/ConsoleServerRunner/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  32. 0  ...leServerRunner/ConsoleServerRunner/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
  33. 0  ...leServerRunner/ConsoleServerRunner/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
  34. 0  ...leServerRunner/ConsoleServerRunner/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
  35. +6 −0 SerialPortComponents/ConsoleApplication1/App.config
  36. +58 −0 SerialPortComponents/ConsoleApplication1/ConsoleApplication1.csproj
  37. +16 −0 SerialPortComponents/ConsoleApplication1/Program.cs
  38. +36 −0 SerialPortComponents/ConsoleApplication1/Properties/AssemblyInfo.cs
  39. BIN  SerialPortComponents/ConsoleApplication1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  40. 0  ...PortComponents/ConsoleApplication1/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
  41. 0  ...PortComponents/ConsoleApplication1/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
  42. 0  ...PortComponents/ConsoleApplication1/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
  43. BIN  SerialPortComponents/ConsoleApplication1/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache
  44. 0  ...rtComponents/ConsoleApplication1/obj/Release/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
  45. 0  ...rtComponents/ConsoleApplication1/obj/Release/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
  46. 0  ...rtComponents/ConsoleApplication1/obj/Release/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
  47. +6 −0 SerialPortComponents/ConsoleRunner/App.config
  48. +61 −0 SerialPortComponents/ConsoleRunner/ConsoleRunner.csproj
  49. +20 −0 SerialPortComponents/ConsoleRunner/Program.cs
  50. +36 −0 SerialPortComponents/ConsoleRunner/Properties/AssemblyInfo.cs
  51. BIN  SerialPortComponents/ConsoleRunner/bin/Release/ConsoleRunner.exe
  52. +6 −0 SerialPortComponents/ConsoleRunner/bin/Release/ConsoleRunner.exe.config
  53. BIN  SerialPortComponents/ConsoleRunner/bin/Release/ConsoleRunner.pdb
  54. BIN  SerialPortComponents/ConsoleRunner/bin/Release/SerialPortSlice.dll
  55. BIN  SerialPortComponents/ConsoleRunner/bin/Release/SerialPortSlice.pdb
  56. BIN  SerialPortComponents/ConsoleRunner/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  57. 0  SerialPortComponents/ConsoleRunner/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
  58. 0  SerialPortComponents/ConsoleRunner/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
  59. 0  SerialPortComponents/ConsoleRunner/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
  60. +8 −0 SerialPortComponents/ConsoleRunner/obj/Release/ConsoleRunner.csproj.FileListAbsolute.txt
  61. BIN  SerialPortComponents/ConsoleRunner/obj/Release/ConsoleRunner.csprojResolveAssemblyReference.cache
  62. BIN  SerialPortComponents/ConsoleRunner/obj/Release/ConsoleRunner.exe
  63. BIN  SerialPortComponents/ConsoleRunner/obj/Release/ConsoleRunner.pdb
  64. BIN  SerialPortComponents/ConsoleRunner/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache
  65. 0  SerialPortComponents/ConsoleRunner/obj/Release/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
  66. 0  SerialPortComponents/ConsoleRunner/obj/Release/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
  67. 0  SerialPortComponents/ConsoleRunner/obj/Release/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
  68. +27 −4 SerialPortComponents/Receiver/Receiver.cs
  69. +1 −1  SerialPortComponents/Receiver/ReceiverExceptions.cs
  70. BIN  SerialPortComponents/Receiver/bin/Release/Receiver.dll
  71. BIN  SerialPortComponents/Receiver/bin/Release/Receiver.pdb
  72. BIN  SerialPortComponents/Receiver/obj/Release/Receiver.dll
  73. BIN  SerialPortComponents/Receiver/obj/Release/Receiver.pdb
  74. +9 −0 SerialPortComponents/Receiver/obj/Release/ReceiverSlice.csproj.FileListAbsolute.txt
  75. BIN  SerialPortComponents/Receiver/obj/Release/ReceiverSlice.csprojResolveAssemblyReference.cache
  76. +117 −0 SerialPortComponents/SerialPortSlice/SerialPortService.cs
  77. +3 −0  SerialPortComponents/SerialPortSlice/SerialPortSlice.csproj
  78. BIN  SerialPortComponents/SerialPortSlice/bin/Release/EventSlice.dll
  79. BIN  SerialPortComponents/SerialPortSlice/bin/Release/EventSlice.pdb
  80. BIN  SerialPortComponents/SerialPortSlice/bin/Release/Receiver.dll
  81. BIN  SerialPortComponents/SerialPortSlice/bin/Release/Receiver.pdb
  82. BIN  SerialPortComponents/SerialPortSlice/bin/Release/SerialPortSlice.dll
  83. BIN  SerialPortComponents/SerialPortSlice/bin/Release/SerialPortSlice.pdb
  84. BIN  SerialPortComponents/SerialPortSlice/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache
  85. +9 −0 SerialPortComponents/SerialPortSlice/obj/Release/SerialPortSlice.csproj.FileListAbsolute.txt
  86. BIN  SerialPortComponents/SerialPortSlice/obj/Release/SerialPortSlice.csprojResolveAssemblyReference.cache
  87. BIN  SerialPortComponents/SerialPortSlice/obj/Release/SerialPortSlice.dll
  88. BIN  SerialPortComponents/SerialPortSlice/obj/Release/SerialPortSlice.pdb
  89. +6 −0 SerialPortComponents/ServerComponents.sln
  90. BIN  SerialPortComponents/ServerComponents.v11.suo
View
20 ConsoleApplication1/ConsoleApplication1.sln
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2012
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApplication1", "ConsoleApplication1\ConsoleApplication1.csproj", "{6A167076-81FC-463A-9CE6-1F20E7E4F07A}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {6A167076-81FC-463A-9CE6-1F20E7E4F07A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6A167076-81FC-463A-9CE6-1F20E7E4F07A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6A167076-81FC-463A-9CE6-1F20E7E4F07A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6A167076-81FC-463A-9CE6-1F20E7E4F07A}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
View
BIN  ConsoleApplication1/ConsoleApplication1.v11.suo
Binary file not shown
View
6 ConsoleApplication1/ConsoleApplication1/App.config
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <startup>
+ <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
+ </startup>
+</configuration>
View
58 ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.csproj
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{6A167076-81FC-463A-9CE6-1F20E7E4F07A}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>ConsoleApplication1</RootNamespace>
+ <AssemblyName>ConsoleApplication1</AssemblyName>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="App.config" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
View
103 ConsoleApplication1/ConsoleApplication1/Program.cs
@@ -0,0 +1,103 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ConsoleApplication1
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ A aObject = new A();
+ B bObject = new B();
+ C cObject = new C();
+ A cObjectAsA = new A();
+
+ go(aObject);
+ go(bObject);
+ go(cObject);
+ go(cObjectAsA);
+ // go((C)cObjectAsA); Invalid Cast
+ go((A)bObject);
+
+ Console.Write("---\n");
+
+ doSomething(aObject);
+ doSomething(bObject);
+ doSomething(cObject);
+ doSomething(cObjectAsA);
+ //doSomething((C)cObjectAsA); Invalid Cast
+ doSomething((A)bObject);
+
+ Console.Read();
+
+ }
+
+ static void go(A myEvent)
+ {
+ Console.Write("I am an A " + myEvent.X + "\n");
+ }
+
+ static void go(B myEvent)
+ {
+ Console.Write("I am a B" + myEvent.X + " " + myEvent.Y + "\n");
+ }
+
+ static void go(C myEvent)
+ {
+ Console.Write("I am a C" + myEvent.X + " " + myEvent.Z + "\n");
+ }
+
+ static void doSomething(A myEvent)
+ {
+ switch (myEvent.X)
+ {
+ case 1:
+ Console.Write("I am also an A. " + myEvent.X + "\n");
+ break;
+ case 2:
+ Console.Write("I am also a B. " + ((B)myEvent).Y + "\n");
+ break;
+ case 3:
+ Console.Write("I am also a C. " + ((C)myEvent).Z + "\n");
+ break;
+ }
+ }
+ }
+
+ class A
+ {
+ public int X = 1;
+
+ public A()
+ {
+ }
+
+ public A(int x_val)
+ {
+ X = x_val;
+ }
+ }
+
+ class B: A
+ {
+ public B()
+ : base(2)
+ {
+ }
+ public int Y = 2;
+ }
+
+ class C: A
+ {
+ public C()
+ : base(3)
+ {
+ }
+ public int Z = 3;
+ }
+
+
+}
View
36 ConsoleApplication1/ConsoleApplication1/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("ConsoleApplication1")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("ConsoleApplication1")]
+[assembly: AssemblyCopyright("Copyright © 2012")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("1f64c83b-a31b-48d5-8934-6e29a2c231f1")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
View
BIN  ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.exe
Binary file not shown
View
6 ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.exe.config
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <startup>
+ <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
+ </startup>
+</configuration>
View
BIN  ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.pdb
Binary file not shown
View
BIN  ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.vshost.exe
Binary file not shown
View
6 ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.vshost.exe.config
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <startup>
+ <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
+ </startup>
+</configuration>
View
11 ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.vshost.exe.manifest
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
+ <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
+ <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
+ <security>
+ <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
+ <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
+ </requestedPrivileges>
+ </security>
+ </trustInfo>
+</assembly>
View
5 ...pplication1/ConsoleApplication1/obj/Debug/ConsoleApplication1.csproj.FileListAbsolute.txt
@@ -0,0 +1,5 @@
+\\VBOXSVR\src\cecs491\ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.exe.config
+\\VBOXSVR\src\cecs491\ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.exe
+\\VBOXSVR\src\cecs491\ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.pdb
+\\VBOXSVR\src\cecs491\ConsoleApplication1\ConsoleApplication1\obj\Debug\ConsoleApplication1.exe
+\\VBOXSVR\src\cecs491\ConsoleApplication1\ConsoleApplication1\obj\Debug\ConsoleApplication1.pdb
View
BIN  ConsoleApplication1/ConsoleApplication1/obj/Debug/ConsoleApplication1.exe
Binary file not shown
View
BIN  ConsoleApplication1/ConsoleApplication1/obj/Debug/ConsoleApplication1.pdb
Binary file not shown
View
BIN  ...Application1/ConsoleApplication1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown
View
0  ...soleApplication1/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
No changes.
View
0  ...soleApplication1/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
No changes.
View
0  ...soleApplication1/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
No changes.
View
20 ConsoleServerRunner/ConsoleServerRunner.sln
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2012
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleServerRunner", "ConsoleServerRunner\ConsoleServerRunner.csproj", "{743D2EA4-F6C8-4822-90F3-382B9C0A40AF}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {743D2EA4-F6C8-4822-90F3-382B9C0A40AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {743D2EA4-F6C8-4822-90F3-382B9C0A40AF}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {743D2EA4-F6C8-4822-90F3-382B9C0A40AF}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {743D2EA4-F6C8-4822-90F3-382B9C0A40AF}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
View
BIN  ConsoleServerRunner/ConsoleServerRunner.v11.suo
Binary file not shown
View
6 ConsoleServerRunner/ConsoleServerRunner/App.config
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <startup>
+ <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
+ </startup>
+</configuration>
View
58 ConsoleServerRunner/ConsoleServerRunner/ConsoleServerRunner.csproj
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{743D2EA4-F6C8-4822-90F3-382B9C0A40AF}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>ConsoleServerRunner</RootNamespace>
+ <AssemblyName>ConsoleServerRunner</AssemblyName>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="App.config" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
View
15 ConsoleServerRunner/ConsoleServerRunner/Program.cs
@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ConsoleServerRunner
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ }
+ }
+}
View
36 ConsoleServerRunner/ConsoleServerRunner/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("ConsoleServerRunner")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("ConsoleServerRunner")]
+[assembly: AssemblyCopyright("Copyright © 2012")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("76ca1a65-f59f-44ce-8b4a-1e943a755538")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
View
6 ConsoleServerRunner/ConsoleServerRunner/bin/Debug/ConsoleServerRunner.exe.config
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <startup>
+ <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
+ </startup>
+</configuration>
View
BIN  ConsoleServerRunner/ConsoleServerRunner/bin/Debug/ConsoleServerRunner.vshost.exe
Binary file not shown
View
6 ConsoleServerRunner/ConsoleServerRunner/bin/Debug/ConsoleServerRunner.vshost.exe.config
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <startup>
+ <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
+ </startup>
+</configuration>
View
11 ConsoleServerRunner/ConsoleServerRunner/bin/Debug/ConsoleServerRunner.vshost.exe.manifest
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
+ <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
+ <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
+ <security>
+ <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
+ <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
+ </requestedPrivileges>
+ </security>
+ </trustInfo>
+</assembly>
View
1  ...erverRunner/ConsoleServerRunner/obj/Debug/ConsoleServerRunner.csproj.FileListAbsolute.txt
@@ -0,0 +1 @@
+\\VBOXSVR\src\cecs491\ConsoleServerRunner\ConsoleServerRunner\bin\Debug\ConsoleServerRunner.exe.config
View
BIN  ...ServerRunner/ConsoleServerRunner/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown
View
0  ...soleServerRunner/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
No changes.
View
0  ...soleServerRunner/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
No changes.
View
0  ...soleServerRunner/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
No changes.
View
6 SerialPortComponents/ConsoleApplication1/App.config
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <startup>
+ <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
+ </startup>
+</configuration>
View
58 SerialPortComponents/ConsoleApplication1/ConsoleApplication1.csproj
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{1BC62981-E0E0-4DEB-95F2-A46510F143A4}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>ConsoleApplication1</RootNamespace>
+ <AssemblyName>ConsoleApplication1</AssemblyName>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="App.config" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
View
16 SerialPortComponents/ConsoleApplication1/Program.cs
@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ConsoleApplication1
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+
+ }
+ }
+}
View
36 SerialPortComponents/ConsoleApplication1/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("ConsoleApplication1")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("ConsoleApplication1")]
+[assembly: AssemblyCopyright("Copyright © 2012")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("f6159257-6b67-49c4-af58-2a17a9ee6955")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
View
BIN  ...rtComponents/ConsoleApplication1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown
View
0  ...soleApplication1/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
No changes.
View
0  ...soleApplication1/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
No changes.
View
0  ...soleApplication1/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
No changes.
View
BIN  ...Components/ConsoleApplication1/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown
View
0  ...leApplication1/obj/Release/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
No changes.
View
0  ...leApplication1/obj/Release/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
No changes.
View
0  ...leApplication1/obj/Release/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
No changes.
View
6 SerialPortComponents/ConsoleRunner/App.config
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <startup>
+ <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
+ </startup>
+</configuration>
View
61 SerialPortComponents/ConsoleRunner/ConsoleRunner.csproj
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{F47ACBB8-EA27-41FC-99D9-C4955AEB6B5C}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>ConsoleRunner</RootNamespace>
+ <AssemblyName>ConsoleRunner</AssemblyName>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="SerialPortSlice">
+ <HintPath>F:\cecs491\SerialPortComponents\SerialPortSlice\obj\Release\SerialPortSlice.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="App.config" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
View
20 SerialPortComponents/ConsoleRunner/Program.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Threading;
+using SerialPortSlice;
+namespace ConsoleRunner
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ SerialPortService s = SerialPortService.getServicer();
+ s.run();
+ Thread.Sleep(60000);
+ s.stop();
+ }
+ }
+}
View
36 SerialPortComponents/ConsoleRunner/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("ConsoleRunner")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("ConsoleRunner")]
+[assembly: AssemblyCopyright("Copyright © 2012")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("3ba6e495-194f-4538-82d0-c9cb7b91c1eb")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
View
BIN  SerialPortComponents/ConsoleRunner/bin/Release/ConsoleRunner.exe
Binary file not shown
View
6 SerialPortComponents/ConsoleRunner/bin/Release/ConsoleRunner.exe.config
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <startup>
+ <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
+ </startup>
+</configuration>
View
BIN  SerialPortComponents/ConsoleRunner/bin/Release/ConsoleRunner.pdb
Binary file not shown
View
BIN  SerialPortComponents/ConsoleRunner/bin/Release/SerialPortSlice.dll
Binary file not shown
View
BIN  SerialPortComponents/ConsoleRunner/bin/Release/SerialPortSlice.pdb
Binary file not shown
View
BIN  SerialPortComponents/ConsoleRunner/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown
View
0  ...ts/ConsoleRunner/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
No changes.
View
0  ...ts/ConsoleRunner/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
No changes.
View
0  ...ts/ConsoleRunner/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
No changes.
View
8 SerialPortComponents/ConsoleRunner/obj/Release/ConsoleRunner.csproj.FileListAbsolute.txt
@@ -0,0 +1,8 @@
+\\VBOXSVR\src\cecs491\SerialPortComponents\ConsoleRunner\bin\Release\ConsoleRunner.exe.config
+\\VBOXSVR\src\cecs491\SerialPortComponents\ConsoleRunner\bin\Release\ConsoleRunner.exe
+\\VBOXSVR\src\cecs491\SerialPortComponents\ConsoleRunner\bin\Release\ConsoleRunner.pdb
+\\VBOXSVR\src\cecs491\SerialPortComponents\ConsoleRunner\bin\Release\SerialPortSlice.dll
+\\VBOXSVR\src\cecs491\SerialPortComponents\ConsoleRunner\bin\Release\SerialPortSlice.pdb
+\\VBOXSVR\src\cecs491\SerialPortComponents\ConsoleRunner\obj\Release\ConsoleRunner.csprojResolveAssemblyReference.cache
+\\VBOXSVR\src\cecs491\SerialPortComponents\ConsoleRunner\obj\Release\ConsoleRunner.exe
+\\VBOXSVR\src\cecs491\SerialPortComponents\ConsoleRunner\obj\Release\ConsoleRunner.pdb
View
BIN  ...rtComponents/ConsoleRunner/obj/Release/ConsoleRunner.csprojResolveAssemblyReference.cache
Binary file not shown
View
BIN  SerialPortComponents/ConsoleRunner/obj/Release/ConsoleRunner.exe
Binary file not shown
View
BIN  SerialPortComponents/ConsoleRunner/obj/Release/ConsoleRunner.pdb
Binary file not shown
View
BIN  ...alPortComponents/ConsoleRunner/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown
View
0  .../ConsoleRunner/obj/Release/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
No changes.
View
0  .../ConsoleRunner/obj/Release/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
No changes.
View
0  .../ConsoleRunner/obj/Release/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
No changes.
View
31 SerialPortComponents/Receiver/Receiver.cs
@@ -5,6 +5,7 @@
using System.Threading.Tasks;
using System.IO.Ports;
using System.IO;
+using System.Threading;
using FridayThe13th;
using EventSlice;
@@ -18,6 +19,7 @@ public class Receiver
public string portName { get; private set; }
public int TTL { get; private set; }
+
private const int DEFAULT_TTL = 10;
private const int COM_READ_TIMEOUT_DEFAULT = 500; //milliseconds
private const int COM_READ_TIMEOUT_SPRIAL = 100; //additional ms to allow for response on next go-'round
@@ -29,14 +31,15 @@ public class Receiver
private int firmwareVersion { get; set; }
private string commandPreamble { get; set; }
private TextReader textReader { get; set; }
+ private int goState = 1;
- public Receiver(SerialPort serialPort, String portName)
+ public Receiver(SerialPort serialPort, String portName, Dispatcher dispatcher)
{
Dictionary<int, string> configFiles = new Dictionary<int, string>();
this.TTL = DEFAULT_TTL;
this.serialPort = serialPort;
this.portName = portName;
- // this.dispatcher = dispatcher;
+ this.dispatcher = dispatcher;
int fw_ver = INFO();
if (fw_ver < 0)
@@ -98,9 +101,27 @@ public int INFO()
}
+ public void shutdown()
+ {
+ goState = 0;
+ for (int i = 0; i <= 5; i++)
+ {
+
+ if (goState == -1)
+ {
+ //dispatcher.enque(new RealTimeEvents.SerialPortEvent(RealTimeEventType.DEL_RECEIVER, this));
+ serialPort.Close();
+ return;
+ }
+ Thread.Sleep(500);
+ }
+ //dispatcher.enque(new RealTimeEvents.SerialPortEvent(RealTimeEventType.DEL_RECEIVER, this));
+ serialPort.Close();
+ }
+
public async Task readHandler()
{
- while (true)
+ while (goState > 0)
{
var ret = string.Empty;
var buffer = new char[1]; // Not the most efficient...
@@ -121,7 +142,9 @@ public int INFO()
{
TTL--;
} */
- }
}
+ goState = -1;
}
+
}
+}
View
2  SerialPortComponents/Receiver/ReceiverExceptions.cs
@@ -6,7 +6,7 @@
namespace ReceiverSlice
{
- class ReceiverExceptions: Exception
+ public class ReceiverExceptions: Exception
{
public Boolean fatal {get; private set;}
public string text { get; private set; }
View
BIN  SerialPortComponents/Receiver/bin/Release/Receiver.dll
Binary file not shown
View
BIN  SerialPortComponents/Receiver/bin/Release/Receiver.pdb
Binary file not shown
View
BIN  SerialPortComponents/Receiver/obj/Release/Receiver.dll
Binary file not shown
View
BIN  SerialPortComponents/Receiver/obj/Release/Receiver.pdb
Binary file not shown
View
9 SerialPortComponents/Receiver/obj/Release/ReceiverSlice.csproj.FileListAbsolute.txt
@@ -7,3 +7,12 @@ F:\cecs491\SerialPortComponents\Receiver\bin\Release\EventSlice.pdb
F:\cecs491\SerialPortComponents\Receiver\bin\Release\FridayThe13th.pdb
F:\cecs491\SerialPortComponents\Receiver\obj\Release\Receiver.dll
F:\cecs491\SerialPortComponents\Receiver\obj\Release\Receiver.pdb
+\\VBOXSVR\src\cecs491\SerialPortComponents\Receiver\bin\Release\Receiver.dll
+\\VBOXSVR\src\cecs491\SerialPortComponents\Receiver\bin\Release\Receiver.pdb
+\\VBOXSVR\src\cecs491\SerialPortComponents\Receiver\bin\Release\EventSlice.dll
+\\VBOXSVR\src\cecs491\SerialPortComponents\Receiver\bin\Release\FridayThe13th.dll
+\\VBOXSVR\src\cecs491\SerialPortComponents\Receiver\bin\Release\EventSlice.pdb
+\\VBOXSVR\src\cecs491\SerialPortComponents\Receiver\bin\Release\FridayThe13th.pdb
+\\VBOXSVR\src\cecs491\SerialPortComponents\Receiver\obj\Release\ReceiverSlice.csprojResolveAssemblyReference.cache
+\\VBOXSVR\src\cecs491\SerialPortComponents\Receiver\obj\Release\Receiver.dll
+\\VBOXSVR\src\cecs491\SerialPortComponents\Receiver\obj\Release\Receiver.pdb
View
BIN  SerialPortComponents/Receiver/obj/Release/ReceiverSlice.csprojResolveAssemblyReference.cache
Binary file not shown
View
117 SerialPortComponents/SerialPortSlice/SerialPortService.cs
@@ -3,10 +3,127 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using System.IO.Ports;
+using System.IO;
+using System.Threading;
+
+using ReceiverSlice;
+using EventSlice;
namespace SerialPortSlice
{
+
public class SerialPortService
{
+ private static SerialPortService iam = null;
+ private Thread serviceThread = null;
+ private Dictionary<String, Receiver> receivers = new Dictionary<String, Receiver>();
+ private Dispatcher d = new Dispatcher();
+
+ private int serviceTime = 0;
+
+ private SerialPortService()
+ {
+ }
+
+ public static SerialPortService getServicer()
+ {
+ if (iam != null)
+ {
+ iam = new SerialPortService();
+ }
+ System.Diagnostics.Debug.Assert(iam != null);
+ return iam;
+ }
+
+ public void run()
+ {
+ if (serviceThread != null)
+ {
+ serviceThread = new Thread(new ThreadStart(this.serialPortsService));
+ }
+ }
+
+ public void stop()
+ {
+ if (serviceThread != null && serviceThread.IsAlive)
+ {
+ int waitTimeForShutdown = receivers.Count;
+ serviceTime = 0;
+
+ for (int i = 0; i <= waitTimeForShutdown; i++)
+ {
+ if (serviceTime == -1)
+ {
+ serviceThread.Abort();
+ serviceThread = null;
+ return;
+ }
+ }
+ serviceThread.Abort();
+ serviceThread = null;
+ }
+ }
+
+ private void serialPortsService()
+ {
+ serviceTime = 1000;
+ do {
+ //check for new COM ports... if there's one that we don't have check to see if it is really a VR2C receiver attached or something else
+ foreach (string c in System.IO.Ports.SerialPort.GetPortNames())
+ {
+ if (!receivers.ContainsKey(c))
+ {
+ //!!! We need the default values for the serial port.
+ SerialPort availableCOMPort = new SerialPort(c, 9600);
+ try
+ {
+ Receiver r = new Receiver(availableCOMPort, c, d);
+ receivers.Add(c, r);
+ }
+ catch (ReceiverExceptions e)
+ {
+ //!!!TODO
+ }
+
+ }
+ }
+
+ //check for COM ports that have disappeared or have TTL = 0
+ foreach (String r in receivers.Keys)
+ {
+ if (Array.IndexOf(SerialPort.GetPortNames(), r) == -1)
+ {
+ receivers.Remove(r);
+ Receiver tbr;
+ if (receivers.TryGetValue(r, out tbr))
+ {
+ // d.enque((new RealTimeEvents.SerialPortEvent(RealTimeEventType.DEL_RECEIVER, tbr)));
+ }
+ }
+ }
+
+ //if TTL = 0, it means that this port has been misbehaving consistently
+ //removing it now effectively restarts it during the next service loop
+ foreach (Receiver r in receivers.Values)
+ {
+ if (r.TTL <= 0)
+ {
+ receivers.Remove(r.portName);
+ // d.enque(new RealTimeEvents.SerialPortEvent(RealTimeEventType.DEL_RECEIVER, r));
+ }
+ }
+ Thread.Sleep(serviceTime);
+ } while (serviceTime > 0);
+
+ foreach (Receiver r in receivers.Values)
+ {
+ r.shutdown();
+ receivers.Remove(r.portName);
+ }
+ serviceTime = -1;
+ }
}
+
+
}
View
3  SerialPortComponents/SerialPortSlice/SerialPortSlice.csproj
@@ -30,6 +30,9 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
+ <Reference Include="EventSlice">
+ <HintPath>F:\cecs491\SerialPortComponents\EventSlice\obj\Release\EventSlice.dll</HintPath>
+ </Reference>
<Reference Include="Receiver">
<HintPath>..\Receiver\obj\Release\Receiver.dll</HintPath>
</Reference>
View
BIN  SerialPortComponents/SerialPortSlice/bin/Release/EventSlice.dll
Binary file not shown
View
BIN  SerialPortComponents/SerialPortSlice/bin/Release/EventSlice.pdb
Binary file not shown
View
BIN  SerialPortComponents/SerialPortSlice/bin/Release/Receiver.dll
Binary file not shown
View
BIN  SerialPortComponents/SerialPortSlice/bin/Release/Receiver.pdb
Binary file not shown
View
BIN  SerialPortComponents/SerialPortSlice/bin/Release/SerialPortSlice.dll
Binary file not shown
View
BIN  SerialPortComponents/SerialPortSlice/bin/Release/SerialPortSlice.pdb
Binary file not shown
View
BIN  ...PortComponents/SerialPortSlice/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown
View
9 SerialPortComponents/SerialPortSlice/obj/Release/SerialPortSlice.csproj.FileListAbsolute.txt
@@ -0,0 +1,9 @@
+\\VBOXSVR\src\cecs491\SerialPortComponents\SerialPortSlice\obj\Release\SerialPortSlice.csprojResolveAssemblyReference.cache
+\\VBOXSVR\src\cecs491\SerialPortComponents\SerialPortSlice\bin\Release\SerialPortSlice.dll
+\\VBOXSVR\src\cecs491\SerialPortComponents\SerialPortSlice\bin\Release\SerialPortSlice.pdb
+\\VBOXSVR\src\cecs491\SerialPortComponents\SerialPortSlice\bin\Release\EventSlice.dll
+\\VBOXSVR\src\cecs491\SerialPortComponents\SerialPortSlice\bin\Release\Receiver.dll
+\\VBOXSVR\src\cecs491\SerialPortComponents\SerialPortSlice\bin\Release\EventSlice.pdb
+\\VBOXSVR\src\cecs491\SerialPortComponents\SerialPortSlice\bin\Release\Receiver.pdb
+\\VBOXSVR\src\cecs491\SerialPortComponents\SerialPortSlice\obj\Release\SerialPortSlice.dll
+\\VBOXSVR\src\cecs491\SerialPortComponents\SerialPortSlice\obj\Release\SerialPortSlice.pdb
View
BIN  ...mponents/SerialPortSlice/obj/Release/SerialPortSlice.csprojResolveAssemblyReference.cache
Binary file not shown
View
BIN  SerialPortComponents/SerialPortSlice/obj/Release/SerialPortSlice.dll
Binary file not shown
View
BIN  SerialPortComponents/SerialPortSlice/obj/Release/SerialPortSlice.pdb
Binary file not shown
View
6 SerialPortComponents/ServerComponents.sln
@@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventSlice", "EventSlice\Ev
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SerialPortSlice", "SerialPortSlice\SerialPortSlice.csproj", "{0B974514-BAC1-4A83-86CD-061AC22688AA}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleRunner", "ConsoleRunner\ConsoleRunner.csproj", "{F47ACBB8-EA27-41FC-99D9-C4955AEB6B5C}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -25,6 +27,10 @@ Global
{0B974514-BAC1-4A83-86CD-061AC22688AA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0B974514-BAC1-4A83-86CD-061AC22688AA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0B974514-BAC1-4A83-86CD-061AC22688AA}.Release|Any CPU.Build.0 = Release|Any CPU
+ {F47ACBB8-EA27-41FC-99D9-C4955AEB6B5C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F47ACBB8-EA27-41FC-99D9-C4955AEB6B5C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F47ACBB8-EA27-41FC-99D9-C4955AEB6B5C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F47ACBB8-EA27-41FC-99D9-C4955AEB6B5C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
View
BIN  SerialPortComponents/ServerComponents.v11.suo
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.