ferdikurnazdm.Blocks.SmithProtocol 1.0.2

dotnet add package ferdikurnazdm.Blocks.SmithProtocol --version 1.0.2                
NuGet\Install-Package ferdikurnazdm.Blocks.SmithProtocol -Version 1.0.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ferdikurnazdm.Blocks.SmithProtocol" Version="1.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ferdikurnazdm.Blocks.SmithProtocol --version 1.0.2                
#r "nuget: ferdikurnazdm.Blocks.SmithProtocol, 1.0.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ferdikurnazdm.Blocks.SmithProtocol as a Cake Addin
#addin nuget:?package=ferdikurnazdm.Blocks.SmithProtocol&version=1.0.2

// Install ferdikurnazdm.Blocks.SmithProtocol as a Cake Tool
#tool nuget:?package=ferdikurnazdm.Blocks.SmithProtocol&version=1.0.2                

Smith Protocol

  /$$$$$$                /$$   /$$     /$$                               
 /$$__  $$              |__/  | $$    | $$                               
| $$  \__/ /$$$$$$/$$$$  /$$ /$$$$$$  | $$$$$$$                          
|  $$$$$$ | $$_  $$_  $$| $$|_  $$_/  | $$__  $$                         
 \____  $$| $$ \ $$ \ $$| $$  | $$    | $$  \ $$                         
 /$$  \ $$| $$ | $$ | $$| $$  | $$ /$$| $$  | $$                         
|  $$$$$$/| $$ | $$ | $$| $$  |  $$$$/| $$  | $$                         
 \______/ |__/ |__/ |__/|__/   \___/  |__/  |__/                         
                                                                         
                                                                         
                                                                         
 /$$$$$$$                       /$$                                   /$$
| $$__  $$                     | $$                                  | $$
| $$  \ $$ /$$$$$$   /$$$$$$  /$$$$$$    /$$$$$$   /$$$$$$$  /$$$$$$ | $$
| $$$$$$$//$$__  $$ /$$__  $$|_  $$_/   /$$__  $$ /$$_____/ /$$__  $$| $$
| $$____/| $$  \__/| $$  \ $$  | $$    | $$  \ $$| $$      | $$  \ $$| $$
| $$     | $$      | $$  | $$  | $$ /$$| $$  | $$| $$      | $$  | $$| $$
| $$     | $$      |  $$$$$$/  |  $$$$/|  $$$$$$/|  $$$$$$$|  $$$$$$/| $$
|__/     |__/       \______/    \___/   \______/  \_______/ \______/ |__/

This block manage the communication with accuload by smith protocol

Description

This block ensure serialize and deserialize the smith queries for acculoads(flow computers)

Getting Started

Dependencies

  • .NET 4.7.2 Framework
  • .NET Dependency Injection >=9.0.0

Installing

  • Install Library with Package Manager script or on Nuget GUI.

Executing program

Serialize
SmithProtocolApi smithProtocolApi = new SmithProtocolApi();
Query sendQuery = new Query();
sendQuery.Address = 1;
sendQuery.Command = Command.RQ;
sendQuery.Text = string.Empty;
string serializedQuery = string.Empty;
Exception exception;
if(!smithProtocolApi.TrySerialize(sendQuery, out serializedQuery, out exception)){
    throw exception;
}
Deserialize
SmithProtocolApi smithProtocolApi = new SmithProtocolApi();
string query = "receivedQueryFromDevice";
Query deserializedQuery;
Exception exception;
if (!smithProtocolApi.TryDeserialize(query, out deserializedQuery, out exception)) {
    throw exception;
}
Console.WriteLine(deserializedQuery.Adress.ToString());
Console.WriteLine(deserializedQuery.Command.ToString());
Console.WriteLine(deserializedQuery.Text.ToString());

Authors

Ferdi Kurnaz Contact

Version History

  • 0.1
    • Initial Release

License

This project is licensed under the [MIT] License

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 93 12/20/2024
1.0.1 85 12/20/2024
1.0.0 91 12/20/2024

added dll commit xml