HCommAir 1.0.9.18

There is a newer version of this package available.
See the version list below for details.
dotnet add package HCommAir --version 1.0.9.18                
NuGet\Install-Package HCommAir -Version 1.0.9.18                
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="HCommAir" Version="1.0.9.18" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HCommAir --version 1.0.9.18                
#r "nuget: HCommAir, 1.0.9.18"                
#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 HCommAir as a Cake Addin
#addin nuget:?package=HCommAir&version=1.0.9.18

// Install HCommAir as a Cake Tool
#tool nuget:?package=HCommAir&version=1.0.9.18                

HCommAir

Hantas air tool device communication library

How to use

1. Common

  1. Install using nuget.(https://www.nuget.org/packages/HCommAir/)
  2. Add 'using' HComm and HCommAir reference.
using HComm.Common;
using HCommAir;
using HCommAir.Manager;
using HCommAir.Tools;
  1. Create the HCommInterface object like this.
private HCommAirInterface HCommAir { get; } = new HCommAirInterface();
  1. Set event and implement event
HCommAir.ChangedConnect += OnChangedConnect;
HCommAir.ReceivedMsg += OnReceivedMsg;
...
private void OnChangedConnect(HcToolInfo info, ConnectionState state){...}
private void OnReceivedMsg(HcToolInfo info, Command cmd, int addr, int[] values){...}
  1. Start
HCommAir.Start();

2. Register / UnRegister tools

  1. Get scanned/register tool list
// get all scanned tools
var scanTools = HCommAir.GetScannedTools();
// get all registered tools
var registerTools = HCommAir.GetRegisteredTools();
  1. Register
// get scan tool first item
var item = scanTools[0];
// register item
HCommAir.RegisterTool(item);
// save file (path = user custom)
HCommAir.SaveRegisterTools(path);
  1. Un-Register
// get register tool first item
var item = registerTools[0];
// register item
HCommAir.UnRegisterTool(item);
// save file (path = user custom)
HCommAir.SaveRegisterTools(path);
  1. Load register tool
// load file (path = user custom)
HCommAir.LoadRegisterTools(path);

3. Session

  1. Get session
// get all sessions
var allSession = HCommAir.GetAllSessions();
// get session (item = tool information item)
var session = HCommAir.GetSession(item);
  1. Used command
session.GetParam(1, 10);          // GET parameter values. Start address = 1, Count = 10
session.SetParam(1, 0);           // SET parameter value. Set address = 1, value = 0
session.GetInfo();                // GET device information (Automatically called when a command is not transmitted for a certain period of time while connected to the device.)
session.SetRealTime(4002, 1);     // SET event real-time monitoring event value = 0 (stop), value = 1 (start)
session.SetGraph(4100, 1);        // SET event graph monitoring event value = 0 (stop), value = 1 (start)
session.GetState(3300, 14);       // GET current tool status
session.GetGraph(4200, 1);        // GET graph monitoring data (AD Only)
  1. Received message implement
private void OnReceivedMsg(HcToolInfo info, Command cmd, int addr, int[] values)
{
    // tool information
    Console.WriteLine($@"IP address: {info.Ip}");
    Console.WriteLine($@"MAC: {info.Mac}");
    // check command
    switch( cmd )
    {
        case Command.Read:
            // parameter READ acknowledge
            break;
        case Command.Mor:
            // device monitoring data
            break;
        case Command.Write:
            // parameter WRITE acknowledge
            break;
        case Command.Info:
            // device INFORMATION acknowledge
            break;
        case Command.Graph:
            // graph monitoring data
            break;
        case Command.GraphRes:      // MDTC only
            // graph monitoring result data
            break;
        case Command.GraphAd:       // AD only
            // graph monitoring data
            break;
        case Command.Error:
            // error
            break;
        default:
            break;
    }
}

History

v1.0.9

  • Driver model update (PT->BPT)
  • Scan state method feature added
  • Scan duplicate port check
  • Minor bug fixed

v1.0.7

  • HComm library version update (v1.2.7)
  • Save register file bug fixed
  • Network interface change function added
  • Tool scanning model type bug fixed

v1.0.6

  • HComm library version update (v1.2.6)

v1.0.5

  • Session USB serial port connect function added

v1.0.4

  • Session queue count property added

v1.0.3

  • Tool session max queue size and max block size bug fixed

v1.0.2

  • Tool session remove bug fixed

v1.0.1

  • Get session list function added

v1.0.0

  • Release Hantas communication library
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

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.9.48 181 12/21/2023
1.0.9.47 105 12/21/2023
1.0.9.46 114 12/21/2023
1.0.9.45 121 12/21/2023
1.0.9.44 102 12/21/2023
1.0.9.43 144 8/24/2023
1.0.9.42 148 5/30/2023
1.0.9.41 151 5/24/2023
1.0.9.40 149 5/24/2023
1.0.9.39 211 3/23/2023
1.0.9.38 230 3/22/2023
1.0.9.37 310 1/6/2023
1.0.9.36 321 1/6/2023
1.0.9.35 297 1/6/2023
1.0.9.34 292 12/19/2022
1.0.9.34-beta.2 100 12/19/2022
1.0.9.34-beta.1 95 12/19/2022
1.0.9.33 304 12/12/2022
1.0.9.32 310 12/7/2022
1.0.9.32-beta.1 94 12/7/2022
1.0.9.31 408 10/7/2022
1.0.9.30 428 9/22/2022
1.0.9.29 467 5/27/2022
1.0.9.29-alpha.4 128 5/26/2022
1.0.9.29-alpha.3 118 5/26/2022
1.0.9.29-alpha.2 128 5/26/2022
1.0.9.29-alpha.1 123 5/26/2022
1.0.9.28 489 4/8/2022
1.0.9.27 453 4/8/2022
1.0.9.26 459 4/8/2022
1.0.9.25 453 4/8/2022
1.0.9.25-beta.1 132 4/8/2022
1.0.9.24 466 4/8/2022
1.0.9.24-beta.4 119 3/17/2022
1.0.9.24-beta.3 118 3/15/2022
1.0.9.24-beta.2 115 3/15/2022
1.0.9.24-beta.1 120 3/15/2022
1.0.9.23 464 2/21/2022
1.0.9.22 446 2/18/2022
1.0.9.21 453 1/21/2022
1.0.9.20 282 12/30/2021
1.0.9.20-beta.2 126 12/30/2021
1.0.9.19 296 12/27/2021
1.0.9.19-beta.1 133 12/27/2021
1.0.9.18 316 11/18/2021
1.0.9.17 315 11/16/2021
1.0.9.17-beta.2 171 11/15/2021
1.0.9.17-beta.1 166 11/15/2021
1.0.9.16 333 11/11/2021
1.0.9.15 379 10/29/2021
1.0.9.14 385 9/8/2021
1.0.9.14-alpha.1 149 9/7/2021
1.0.9.13 386 7/28/2021
1.0.9.12-alpha.1 206 7/27/2021
1.0.9.11 406 7/26/2021
1.0.9.11-alpha.1 166 7/23/2021
1.0.9.10 372 7/23/2021
1.0.9.10-alpha.2 178 7/23/2021
1.0.9.10-alpha.1 188 7/23/2021
1.0.9.9 413 7/21/2021
1.0.9.9-alpha.1 214 7/21/2021
1.0.9.8 357 7/15/2021
1.0.9.8-alpha.1 168 7/15/2021
1.0.9.7 355 6/23/2021
1.0.9.6-alpha.2 179 6/22/2021
1.0.9.6-alpha.1 178 6/22/2021
1.0.9.5 414 6/22/2021
1.0.9.4 375 6/21/2021
1.0.9.3 378 6/18/2021
1.0.9.2 410 6/15/2021
1.0.9.2-alpha.1 195 6/15/2021
1.0.9.1 392 6/14/2021
1.0.9.1-alpha.9 212 6/14/2021
1.0.9.1-alpha.8 216 6/14/2021
1.0.9.1-alpha.7 146 6/9/2021
1.0.9.1-alpha.6 176 6/9/2021
1.0.9.1-alpha.5 141 6/8/2021
1.0.9.1-alpha.4 146 6/8/2021
1.0.9.1-alpha.3 148 6/8/2021
1.0.9.1-alpha.2 144 6/8/2021
1.0.9.1-alpha.1 160 6/8/2021
1.0.9.1-alpha 153 6/8/2021
1.0.9 210 6/1/2021
1.0.8.1 446 3/12/2021
1.0.8 451 3/12/2021
1.0.7.8 461 3/12/2021
1.0.7.7 377 3/12/2021
1.0.7.6 430 3/12/2021
1.0.7.6-alpha.10 162 4/15/2021
1.0.7.6-alpha.9 152 4/15/2021
1.0.7.6-alpha.8 173 4/14/2021
1.0.7.6-alpha.7 151 4/14/2021
1.0.7.6-alpha.6 149 4/14/2021
1.0.7.6-alpha.5 158 4/14/2021
1.0.7.6-alpha.4 155 4/14/2021
1.0.7.6-alpha.3 157 4/14/2021
1.0.7.6-alpha.2 159 4/14/2021
1.0.7.6-alpha 219 4/12/2021
1.0.7.5 449 2/24/2021
1.0.7.4 420 2/24/2021
1.0.7.3 429 2/18/2021
1.0.7.2 375 2/18/2021
1.0.7.1 372 2/17/2021
1.0.7 364 2/17/2021
1.0.6 370 2/17/2021
1.0.5 373 2/17/2021
1.0.4 380 2/17/2021
1.0.3 358 2/16/2021
1.0.2 405 2/10/2021
1.0.1 414 2/10/2021
1.0.0 387 2/4/2021