EMCL.Objects 0.2.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package EMCL.Objects --version 0.2.3
                    
NuGet\Install-Package EMCL.Objects -Version 0.2.3
                    
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.Objects" Version="0.2.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EMCL.Objects" Version="0.2.3" />
                    
Directory.Packages.props
<PackageReference Include="EMCL.Objects" />
                    
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.Objects --version 0.2.3
                    
#r "nuget: EMCL.Objects, 0.2.3"
                    
#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.Objects@0.2.3
                    
#: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.Objects&version=0.2.3
                    
Install as a Cake Addin
#tool nuget:?package=EMCL.Objects&version=0.2.3
                    
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, and GET/SET block transfer
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 normal, selective access, automatic GET block assembly, and negotiated SET block transfer.
  • Association LN v1/v3: catalog import and streaming object_list reading.
  • None, LLS, and HLS High (AES-128 challenge-response) authentication.
  • 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; one-frame windows.
  • 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.

Short Name, protected APDUs, HLS SHA-256/GMAC, ACTION block transfer, GBT, and a ready-to-use server session are not implemented yet. Each outgoing HDLC APDU must fit a single negotiated information frame. Serial starts exchanging data at the configured baud rate; IEC 62056-21 sign-on is not performed.

EMCL.Transport uses System.IO.Ports. The other library projects have no external NuGet dependencies beyond EMCL components.

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 (2)

Showing the top 2 NuGet packages that depend on EMCL.Objects:

Package Downloads
EMCL.Client

Transport-independent Logical Name client sessions for DLMS/COSEM.

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 69 11/23/2026
0.4.0 316 11/14/2026
0.3.1 123 11/11/2026
0.3.0 110 11/11/2026
0.2.3 147 11/9/2026
0.2.2 116 11/9/2026
0.2.1 99 11/9/2026
0.2.0 118 11/8/2026
0.1.1 124 11/2/2026
0.1.0 153 11/2/2026