EMCL.Protocol
0.2.3
See the version list below for details.
dotnet add package EMCL.Protocol --version 0.2.3
NuGet\Install-Package EMCL.Protocol -Version 0.2.3
<PackageReference Include="EMCL.Protocol" Version="0.2.3" />
<PackageVersion Include="EMCL.Protocol" Version="0.2.3" />
<PackageReference Include="EMCL.Protocol" />
paket add EMCL.Protocol --version 0.2.3
#r "nuget: EMCL.Protocol, 0.2.3"
#:package EMCL.Protocol@0.2.3
#addin nuget:?package=EMCL.Protocol&version=0.2.3
#tool nuget:?package=EMCL.Protocol&version=0.2.3
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_listreading. - 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
.snupkgdebug 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 | Versions 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. |
-
net10.0
- EMCL.Core (>= 0.2.3)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on EMCL.Protocol:
| Package | Downloads |
|---|---|
|
EMCL.Objects
COSEM object catalogs, Association LN import, and local operation handlers. |
|
|
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.