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 158 12/21/2023
1.0.9.47 77 12/21/2023
1.0.9.46 84 12/21/2023
1.0.9.45 91 12/21/2023
1.0.9.44 73 12/21/2023
1.0.9.43 133 8/24/2023
1.0.9.42 118 5/30/2023
1.0.9.41 128 5/24/2023
1.0.9.40 121 5/24/2023
1.0.9.39 180 3/23/2023
1.0.9.38 206 3/22/2023
1.0.9.37 282 1/6/2023
1.0.9.36 294 1/6/2023
1.0.9.35 263 1/6/2023
1.0.9.34 264 12/19/2022
1.0.9.34-beta.2 88 12/19/2022
1.0.9.34-beta.1 86 12/19/2022
1.0.9.33 275 12/12/2022
1.0.9.32 280 12/7/2022
1.0.9.32-beta.1 84 12/7/2022
1.0.9.31 380 10/7/2022
1.0.9.30 401 9/22/2022
1.0.9.29 430 5/27/2022
1.0.9.29-alpha.4 116 5/26/2022
1.0.9.29-alpha.3 107 5/26/2022
1.0.9.29-alpha.2 114 5/26/2022
1.0.9.29-alpha.1 114 5/26/2022
1.0.9.28 459 4/8/2022
1.0.9.27 426 4/8/2022
1.0.9.26 432 4/8/2022
1.0.9.25 426 4/8/2022
1.0.9.25-beta.1 121 4/8/2022
1.0.9.24 439 4/8/2022
1.0.9.24-beta.4 108 3/17/2022
1.0.9.24-beta.3 109 3/15/2022
1.0.9.24-beta.2 105 3/15/2022
1.0.9.24-beta.1 112 3/15/2022
1.0.9.23 436 2/21/2022
1.0.9.22 421 2/18/2022
1.0.9.21 425 1/21/2022
1.0.9.20 258 12/30/2021
1.0.9.20-beta.2 117 12/30/2021
1.0.9.19 266 12/27/2021
1.0.9.19-beta.1 119 12/27/2021
1.0.9.18 292 11/18/2021
1.0.9.17 294 11/16/2021
1.0.9.17-beta.2 164 11/15/2021
1.0.9.17-beta.1 159 11/15/2021
1.0.9.16 303 11/11/2021
1.0.9.15 340 10/29/2021
1.0.9.14 352 9/8/2021
1.0.9.14-alpha.1 142 9/7/2021
1.0.9.13 363 7/28/2021
1.0.9.12-alpha.1 197 7/27/2021
1.0.9.11 373 7/26/2021
1.0.9.11-alpha.1 159 7/23/2021
1.0.9.10 347 7/23/2021
1.0.9.10-alpha.2 170 7/23/2021
1.0.9.10-alpha.1 180 7/23/2021
1.0.9.9 381 7/21/2021
1.0.9.9-alpha.1 206 7/21/2021
1.0.9.8 333 7/15/2021
1.0.9.8-alpha.1 158 7/15/2021
1.0.9.7 327 6/23/2021
1.0.9.6-alpha.2 159 6/22/2021
1.0.9.6-alpha.1 165 6/22/2021
1.0.9.5 380 6/22/2021
1.0.9.4 353 6/21/2021
1.0.9.3 355 6/18/2021
1.0.9.2 374 6/15/2021
1.0.9.2-alpha.1 184 6/15/2021
1.0.9.1 360 6/14/2021
1.0.9.1-alpha.9 201 6/14/2021
1.0.9.1-alpha.8 203 6/14/2021
1.0.9.1-alpha.7 135 6/9/2021
1.0.9.1-alpha.6 159 6/9/2021
1.0.9.1-alpha.5 131 6/8/2021
1.0.9.1-alpha.4 135 6/8/2021
1.0.9.1-alpha.3 139 6/8/2021
1.0.9.1-alpha.2 133 6/8/2021
1.0.9.1-alpha.1 145 6/8/2021
1.0.9.1-alpha 144 6/8/2021
1.0.9 193 6/1/2021
1.0.8.1 414 3/12/2021
1.0.8 423 3/12/2021
1.0.7.8 435 3/12/2021
1.0.7.7 357 3/12/2021
1.0.7.6 400 3/12/2021
1.0.7.6-alpha.10 151 4/15/2021
1.0.7.6-alpha.9 143 4/15/2021
1.0.7.6-alpha.8 162 4/14/2021
1.0.7.6-alpha.7 141 4/14/2021
1.0.7.6-alpha.6 139 4/14/2021
1.0.7.6-alpha.5 147 4/14/2021
1.0.7.6-alpha.4 144 4/14/2021
1.0.7.6-alpha.3 147 4/14/2021
1.0.7.6-alpha.2 149 4/14/2021
1.0.7.6-alpha 193 4/12/2021
1.0.7.5 421 2/24/2021
1.0.7.4 394 2/24/2021
1.0.7.3 404 2/18/2021
1.0.7.2 341 2/18/2021
1.0.7.1 344 2/17/2021
1.0.7 341 2/17/2021
1.0.6 338 2/17/2021
1.0.5 340 2/17/2021
1.0.4 352 2/17/2021
1.0.3 336 2/16/2021
1.0.2 382 2/10/2021
1.0.1 392 2/10/2021
1.0.0 361 2/4/2021