diff --git a/Stuff/Manuals/Front-Panel.xlsx b/Stuff/Manuals/Front-Panel-3.5.xlsx similarity index 100% rename from Stuff/Manuals/Front-Panel.xlsx rename to Stuff/Manuals/Front-Panel-3.5.xlsx diff --git a/Stuff/Manuals/WIFI-CAT-instruction.txt b/Stuff/Manuals/WIFI-CAT-instruction.txt deleted file mode 100644 index 5d22888..0000000 --- a/Stuff/Manuals/WIFI-CAT-instruction.txt +++ /dev/null @@ -1,10 +0,0 @@ -CAT система работает через виртуальную пару COM портов, это значит что клиентское приложение трансивера подключено к первому порту, -а любая другая программа, использующая CAT систему, подключается ко второму порту пары. -Происходит связка <-> COM <-> COM <-> WIFI клиент <-> Сеть <-> Трансивер - -1. Устанавливаем https://sourceforge.net/projects/com0com/ -2. На трансивере включаем WIFI CAT Server -3. В программе com0com активируем виртуальную пару, например COM10 (для приложений) и COM11 (для WIFI клиента) -4. Запускаем WiFi Client, выбираем COM порт (например COM11), IP-адрес трансивера, нажимаем соединиться. -5. Запускаем нужное приложение, выбираем парный COM-порт (например COM10), скороть порта любая, управление потоком - NONE -6. Готово diff --git a/Stuff/WIFIClient/.vs/UA3REO_WIFIClient/v16/.suo b/Stuff/WIFIClient/.vs/UA3REO_WIFIClient/v16/.suo deleted file mode 100644 index 7ee038f..0000000 Binary files a/Stuff/WIFIClient/.vs/UA3REO_WIFIClient/v16/.suo and /dev/null differ diff --git a/Stuff/WIFIClient/App.config b/Stuff/WIFIClient/App.config deleted file mode 100644 index 7d5fadc..0000000 --- a/Stuff/WIFIClient/App.config +++ /dev/null @@ -1,21 +0,0 @@ - - - - -
- - - - - - - - - COM11 - - - 192.168.0. - - - - \ No newline at end of file diff --git a/Stuff/WIFIClient/Program.cs b/Stuff/WIFIClient/Program.cs deleted file mode 100644 index 2e32afa..0000000 --- a/Stuff/WIFIClient/Program.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace UA3REO_WIFIClient -{ - static class Program - { - /// - /// Главная точка входа для приложения. - /// - [STAThread] - static void Main() - { - Application.EnableVisualStyles(); - Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new mainForm()); - } - } -} diff --git a/Stuff/WIFIClient/Properties/AssemblyInfo.cs b/Stuff/WIFIClient/Properties/AssemblyInfo.cs deleted file mode 100644 index 345fe5f..0000000 --- a/Stuff/WIFIClient/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// Общие сведения об этой сборке предоставляются следующим набором -// набора атрибутов. Измените значения этих атрибутов для изменения сведений, -// связанных со сборкой. -[assembly: AssemblyTitle("UA3REO_WIFIClient")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("UA3REO_WIFIClient")] -[assembly: AssemblyCopyright("Copyright © 2020")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми -// для компонентов COM. Если необходимо обратиться к типу в этой сборке через -// COM, следует установить атрибут ComVisible в TRUE для этого типа. -[assembly: ComVisible(false)] - -// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM -[assembly: Guid("e735bb25-0057-4e11-8e1c-81e260da430f")] - -// Сведения о версии сборки состоят из указанных ниже четырех значений: -// -// Основной номер версии -// Дополнительный номер версии -// Номер сборки -// Редакция -// -// Можно задать все значения или принять номера сборки и редакции по умолчанию -// используя "*", как показано ниже: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Stuff/WIFIClient/Properties/Resources.Designer.cs b/Stuff/WIFIClient/Properties/Resources.Designer.cs deleted file mode 100644 index b13917c..0000000 --- a/Stuff/WIFIClient/Properties/Resources.Designer.cs +++ /dev/null @@ -1,71 +0,0 @@ -//------------------------------------------------------------------------------ -// -// Этот код создан программным средством. -// Версия среды выполнения: 4.0.30319.42000 -// -// Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если -// код создан повторно. -// -//------------------------------------------------------------------------------ - -namespace UA3REO_WIFIClient.Properties -{ - - - /// - /// Класс ресурсов со строгим типом для поиска локализованных строк и пр. - /// - // Этот класс был автоматически создан при помощи StronglyTypedResourceBuilder - // класс с помощью таких средств, как ResGen или Visual Studio. - // Для добавления или удаления члена измените файл .ResX, а затем перезапустите ResGen - // с параметром /str или заново постройте свой VS-проект. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources - { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() - { - } - - /// - /// Возврат кэшированного экземпляра ResourceManager, используемого этим классом. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager - { - get - { - if ((resourceMan == null)) - { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("UA3REO_WIFIClient.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Переопределяет свойство CurrentUICulture текущего потока для всех - /// подстановки ресурсов с помощью этого класса ресурсов со строгим типом. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture - { - get - { - return resourceCulture; - } - set - { - resourceCulture = value; - } - } - } -} diff --git a/Stuff/WIFIClient/Properties/Resources.resx b/Stuff/WIFIClient/Properties/Resources.resx deleted file mode 100644 index af7dbeb..0000000 --- a/Stuff/WIFIClient/Properties/Resources.resx +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/Stuff/WIFIClient/Properties/Settings.Designer.cs b/Stuff/WIFIClient/Properties/Settings.Designer.cs deleted file mode 100644 index 537583d..0000000 --- a/Stuff/WIFIClient/Properties/Settings.Designer.cs +++ /dev/null @@ -1,50 +0,0 @@ -//------------------------------------------------------------------------------ -// -// Этот код создан программой. -// Исполняемая версия:4.0.30319.42000 -// -// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае -// повторной генерации кода. -// -//------------------------------------------------------------------------------ - -namespace UA3REO_WIFIClient.Properties { - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.5.0.0")] - internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { - - private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); - - public static Settings Default { - get { - return defaultInstance; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("COM11")] - public string com_port { - get { - return ((string)(this["com_port"])); - } - set { - this["com_port"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("192.168.0.")] - public string address { - get { - return ((string)(this["address"])); - } - set { - this["address"] = value; - } - } - } -} diff --git a/Stuff/WIFIClient/Properties/Settings.settings b/Stuff/WIFIClient/Properties/Settings.settings deleted file mode 100644 index 996e7a4..0000000 --- a/Stuff/WIFIClient/Properties/Settings.settings +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - COM11 - - - 192.168.0. - - - \ No newline at end of file diff --git a/Stuff/WIFIClient/UA3REO_WIFIClient.csproj b/Stuff/WIFIClient/UA3REO_WIFIClient.csproj deleted file mode 100644 index 5c6c456..0000000 --- a/Stuff/WIFIClient/UA3REO_WIFIClient.csproj +++ /dev/null @@ -1,83 +0,0 @@ - - - - - Debug - AnyCPU - {E735BB25-0057-4E11-8E1C-81E260DA430F} - WinExe - UA3REO_WIFIClient - UA3REO_WIFIClient - v4.7.2 - 512 - true - true - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - Form - - - mainForm.cs - - - - - mainForm.cs - - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - True - Resources.resx - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - Settings.settings - True - - - - - - - \ No newline at end of file diff --git a/Stuff/WIFIClient/UA3REO_WIFIClient.sln b/Stuff/WIFIClient/UA3REO_WIFIClient.sln deleted file mode 100644 index f24f89f..0000000 --- a/Stuff/WIFIClient/UA3REO_WIFIClient.sln +++ /dev/null @@ -1,25 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.30002.166 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UA3REO_WIFIClient", "UA3REO_WIFIClient.csproj", "{E735BB25-0057-4E11-8E1C-81E260DA430F}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {E735BB25-0057-4E11-8E1C-81E260DA430F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E735BB25-0057-4E11-8E1C-81E260DA430F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E735BB25-0057-4E11-8E1C-81E260DA430F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E735BB25-0057-4E11-8E1C-81E260DA430F}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {16FDDBBC-2648-4479-A39C-EC8E55DFD8D2} - EndGlobalSection -EndGlobal diff --git a/Stuff/WIFIClient/bin/Release/UA3REO_WIFIClient.exe b/Stuff/WIFIClient/bin/Release/UA3REO_WIFIClient.exe deleted file mode 100644 index 594af16..0000000 Binary files a/Stuff/WIFIClient/bin/Release/UA3REO_WIFIClient.exe and /dev/null differ diff --git a/Stuff/WIFIClient/bin/Release/UA3REO_WIFIClient.exe.config b/Stuff/WIFIClient/bin/Release/UA3REO_WIFIClient.exe.config deleted file mode 100644 index 7d5fadc..0000000 --- a/Stuff/WIFIClient/bin/Release/UA3REO_WIFIClient.exe.config +++ /dev/null @@ -1,21 +0,0 @@ - - - - -
- - - - - - - - - COM11 - - - 192.168.0. - - - - \ No newline at end of file diff --git a/Stuff/WIFIClient/bin/Release/UA3REO_WIFIClient.pdb b/Stuff/WIFIClient/bin/Release/UA3REO_WIFIClient.pdb deleted file mode 100644 index fca7462..0000000 Binary files a/Stuff/WIFIClient/bin/Release/UA3REO_WIFIClient.pdb and /dev/null differ diff --git a/Stuff/WIFIClient/mainForm.Designer.cs b/Stuff/WIFIClient/mainForm.Designer.cs deleted file mode 100644 index f956ed9..0000000 --- a/Stuff/WIFIClient/mainForm.Designer.cs +++ /dev/null @@ -1,134 +0,0 @@ -namespace UA3REO_WIFIClient -{ - partial class mainForm - { - /// - /// Обязательная переменная конструктора. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Освободить все используемые ресурсы. - /// - /// истинно, если управляемый ресурс должен быть удален; иначе ложно. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Код, автоматически созданный конструктором форм Windows - - /// - /// Требуемый метод для поддержки конструктора — не изменяйте - /// содержимое этого метода с помощью редактора кода. - /// - private void InitializeComponent() - { - this.label1 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.connectButton = new System.Windows.Forms.Button(); - this.label4 = new System.Windows.Forms.Label(); - this.statusLabel = new System.Windows.Forms.Label(); - this.portComboBox = new System.Windows.Forms.ComboBox(); - this.addressTextBox = new System.Windows.Forms.TextBox(); - this.SuspendLayout(); - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(12, 9); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(62, 13); - this.label1.TabIndex = 0; - this.label1.Text = "COM Порт:"; - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(151, 9); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(115, 13); - this.label3.TabIndex = 2; - this.label3.Text = "IP-адрес трансивера:"; - // - // connectButton - // - this.connectButton.Location = new System.Drawing.Point(283, 24); - this.connectButton.Name = "connectButton"; - this.connectButton.Size = new System.Drawing.Size(85, 23); - this.connectButton.TabIndex = 3; - this.connectButton.Text = "Соединиться"; - this.connectButton.UseVisualStyleBackColor = true; - this.connectButton.Click += new System.EventHandler(this.connectButton_Click); - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(12, 60); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(44, 13); - this.label4.TabIndex = 4; - this.label4.Text = "Статус:"; - // - // statusLabel - // - this.statusLabel.AutoSize = true; - this.statusLabel.Location = new System.Drawing.Point(12, 73); - this.statusLabel.Name = "statusLabel"; - this.statusLabel.Size = new System.Drawing.Size(10, 13); - this.statusLabel.TabIndex = 5; - this.statusLabel.Text = "-"; - // - // portComboBox - // - this.portComboBox.FormattingEnabled = true; - this.portComboBox.Location = new System.Drawing.Point(12, 26); - this.portComboBox.Name = "portComboBox"; - this.portComboBox.Size = new System.Drawing.Size(121, 21); - this.portComboBox.TabIndex = 6; - this.portComboBox.DropDown += new System.EventHandler(this.portComboBox_DropDown); - // - // addressTextBox - // - this.addressTextBox.Location = new System.Drawing.Point(154, 27); - this.addressTextBox.Name = "addressTextBox"; - this.addressTextBox.Size = new System.Drawing.Size(123, 20); - this.addressTextBox.TabIndex = 7; - // - // mainForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(386, 98); - this.Controls.Add(this.addressTextBox); - this.Controls.Add(this.portComboBox); - this.Controls.Add(this.statusLabel); - this.Controls.Add(this.label4); - this.Controls.Add(this.connectButton); - this.Controls.Add(this.label3); - this.Controls.Add(this.label1); - this.Name = "mainForm"; - this.Text = "UA3REO Transceiver Client"; - this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.mainForm_FormClosing); - this.Load += new System.EventHandler(this.mainForm_Load); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Button connectButton; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label statusLabel; - private System.Windows.Forms.ComboBox portComboBox; - private System.Windows.Forms.TextBox addressTextBox; - } -} - diff --git a/Stuff/WIFIClient/mainForm.cs b/Stuff/WIFIClient/mainForm.cs deleted file mode 100644 index c5daf7f..0000000 --- a/Stuff/WIFIClient/mainForm.cs +++ /dev/null @@ -1,161 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; -using System.IO.Ports; -using System.Threading; -using System.Net.Sockets; - -namespace UA3REO_WIFIClient -{ - public partial class mainForm : Form - { - public static SerialPort port = new SerialPort(); - private Thread mainThread = new Thread(new ThreadStart(thread_loop)); - public static TcpClient tcp_client = new TcpClient(); - public static System.Windows.Forms.Label statusLabelStatic; - public static string address = ""; - - public mainForm() - { - InitializeComponent(); - statusLabelStatic = statusLabel; - } - - private void mainForm_Load(object sender, EventArgs e) - { - scanPorts(); - addressTextBox.Text = Properties.Settings.Default.address; - portComboBox.Text = Properties.Settings.Default.com_port; - } - private void scanPorts() - { - portComboBox.Items.Clear(); - foreach (string lport in SerialPort.GetPortNames()) - portComboBox.Items.Add(lport); - } - - private void portComboBox_DropDown(object sender, EventArgs e) - { - scanPorts(); - } - - private void mainForm_FormClosing(object sender, FormClosingEventArgs e) - { - mainThread.Abort(); - Properties.Settings.Default.address = addressTextBox.Text; - Properties.Settings.Default.com_port = portComboBox.Text; - Properties.Settings.Default.Save(); - if (port.IsOpen) - port.Close(); - } - - private void connectButton_Click(object sender, EventArgs e) - { - if (!port.IsOpen) - { - port = new SerialPort(portComboBox.SelectedItem.ToString(), 38400, Parity.None, 8); - port.ReadTimeout = 5000; - port.Encoding = Encoding.ASCII; - port.ReadBufferSize = 65000; - try - { - port.Open(); - port.ReadExisting(); - } - catch - { - statusLabel.Text = "Ошибка открытия порта"; - } - } - if (tcp_client.Connected) tcp_client.Close(); - try - { - tcp_client.ReceiveTimeout = 5000; - tcp_client.SendTimeout = 5000; - tcp_client.NoDelay = true; - } - catch { } - connect(); - address = addressTextBox.Text; - try { mainThread.Start(); } catch { } - } - - public static void setStatus(string text) - { - try - { - statusLabelStatic.Invoke((MethodInvoker)delegate - { - // Running on the UI thread - Console.WriteLine(text); - statusLabelStatic.Text = text; - }); - } - catch { } - } - - public static void connect() - { - try - { - setStatus("Соединяюсь с трансивером"); - tcp_client = new TcpClient(); - tcp_client.Connect(address, 6784); - setStatus("Соединение установлено, жду команды"); - } - catch (Exception e) - { - Console.WriteLine(e.Message); - setStatus(e.Message); - } - } - - public static void thread_loop() - { - ASCIIEncoding ascii = new ASCIIEncoding(); - string buffer = ""; - while (true) - { - if (port.BytesToRead > 0 || buffer.IndexOf(";") > 0) - { - buffer += port.ReadExisting(); - if (buffer.IndexOf(";") > 0) - { - string command = buffer.Substring(0, buffer.IndexOf(";")); - buffer = buffer.Substring(buffer.IndexOf(";") + 1); - - command = command.Trim()+"\n"; - if (command != "") - { - setStatus("Получена команда: " + command.Trim()); - byte[] send_buffer = ascii.GetBytes(command); - try - { - Console.WriteLine("Отправляю на сервер: " + ascii.GetString(send_buffer).Trim()); - tcp_client.GetStream().Write(send_buffer, 0, command.Length); - } - catch - { connect(); } - } - } - } - if(tcp_client.Connected && tcp_client.GetStream().DataAvailable) - { - int len = tcp_client.Available; - byte[] read_buffer = new byte[len]; - tcp_client.GetStream().Read(read_buffer, 0, len); - string answer = ascii.GetString(read_buffer); - setStatus("Получен ответ: " + answer); - port.Write(answer); - } - Thread.Sleep(1); - } - } - } -} diff --git a/Stuff/WIFIClient/mainForm.resx b/Stuff/WIFIClient/mainForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/Stuff/WIFIClient/mainForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file