EMCL.Framing.Hdlc 0.4.1

dotnet add package EMCL.Framing.Hdlc --version 0.4.1
                    
NuGet\Install-Package EMCL.Framing.Hdlc -Version 0.4.1
                    
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="EMCL.Framing.Hdlc" Version="0.4.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EMCL.Framing.Hdlc" Version="0.4.1" />
                    
Directory.Packages.props
<PackageReference Include="EMCL.Framing.Hdlc" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add EMCL.Framing.Hdlc --version 0.4.1
                    
#r "nuget: EMCL.Framing.Hdlc, 0.4.1"
                    
#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.
#:package EMCL.Framing.Hdlc@0.4.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=EMCL.Framing.Hdlc&version=0.4.1
                    
Install as a Cake Addin
#tool nuget:?package=EMCL.Framing.Hdlc&version=0.4.1
                    
Install as a Cake Tool

EMCL

An extensible DLMS/COSEM library for .NET 10: Logical Name client sessions, a COSEM object model, binary codecs, and independent transport adapters.

Installation

dotnet add package EMCL --prerelease

For reproducible builds, specify the selected published version with --version. The EMCL package references all library components. Individual components can also be installed separately:

Package Purpose
EMCL Composition of objects, Wrapper/HDLC client channels, and endpoints
EMCL.Core DLMS values, identifiers, descriptors, and extension contracts
EMCL.Protocol A-XDR, ACSE, LN APDUs, block transfer, and pluggable security
EMCL.Client LN associations, GET/SET/ACTION, notifications, and catalog reading
EMCL.Objects COSEM catalog, association import, and local handlers
EMCL.Framing.Hdlc HDLC type 3, CRC, LLC, and segmentation
EMCL.Framing.Wrapper Wrapper v1
EMCL.Transport TCP, Serial, Stream, and replaceable APDU channels

Local execution example

using EMCL.Composition;
using EMCL.Core.Objects;
using EMCL.Core.Operations;
using EMCL.Core.Values;
using EMCL.Objects.Definitions;

var device = new EmclBuilder().Build("meter-1");
var register = device.Add(
    CosemClassIds.Register, RegisterMembers.Version0,
    LogicalName.Parse("1.0.1.8.0.255"));
register.State.Set(RegisterMembers.Attributes.Value,
    DlmsValue.Number(DlmsType.UInt32, 12345));

var result = await device.Pipeline.ExecuteAsync(
    new(CosemOperationKind.Read, CosemClassIds.Register,
        register.LogicalName, RegisterMembers.Attributes.Value),
    device.LocalContext);
Console.WriteLine(result.Value!.AsUInt64());

Supported features

  • GET/SET/ACTION, selective access, service-specific block transfer, and General Block Transfer.
  • Association LN v1/v3: catalog import and streaming object_list reading.
  • None, LLS, HLS High, HLS GMAC and HLS Kuznyechik CTR/CMAC. Custom security protocols can implement ILnSecurityProtocol.
  • Selectable COSEM, SPODES 4 and preliminary SPODES 5 profiles. The SPODES profiles recognize 26 and 57 exact class versions respectively.
  • Confirmed and unconfirmed Push on associated clients or pre-established channels, including Wrapper/UDP.
  • Wrapper and HDLC over TCP, Serial, or a custom transport.
  • Optional HDLC MAX INFO TX/RX negotiation with asymmetric byte limits and separate proposed, received, and effective diagnostics; receive windows of 1–7 frames and a one-frame transmit window.
  • Local Data, Register, Extended Register, Demand Register, Register Activation, Clock, Profile Generic, and Association LN, as well as custom classes.
  • Preservation of unknown classes and versions, original DLMS tags, and association rights.
  • XML API documentation and separate .snupkg debug symbol packages.

Each outgoing HDLC APDU must fit a single negotiated information frame. Serial starts exchanging data at the configured baud rate. Server applications supply the session and connect their device adapters.

EMCL.Transport uses System.IO.Ports. EMCL.Protocol uses BouncyCastle.Cryptography.

License

MIT. Copyright (c) 2026 Alexey Tyapkin. The complete text is in the LICENSE file inside the package.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on EMCL.Framing.Hdlc:

Package Downloads
EMCL

Composition and extension entry points for the EMCL DLMS/COSEM library.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.4.1 67 11/23/2026
0.4.0 310 11/14/2026
0.3.1 114 11/11/2026
0.3.0 102 11/11/2026
0.2.3 142 11/9/2026
0.2.2 108 11/9/2026
0.2.1 81 11/9/2026
0.2.0 112 11/8/2026
0.1.1 107 11/2/2026
0.1.0 141 11/2/2026