ZeroRfid.Adapters.Abstractions 1.1.0

dotnet add package ZeroRfid.Adapters.Abstractions --version 1.1.0
                    
NuGet\Install-Package ZeroRfid.Adapters.Abstractions -Version 1.1.0
                    
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="ZeroRfid.Adapters.Abstractions" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ZeroRfid.Adapters.Abstractions" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="ZeroRfid.Adapters.Abstractions" />
                    
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 ZeroRfid.Adapters.Abstractions --version 1.1.0
                    
#r "nuget: ZeroRfid.Adapters.Abstractions, 1.1.0"
                    
#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 ZeroRfid.Adapters.Abstractions@1.1.0
                    
#: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=ZeroRfid.Adapters.Abstractions&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=ZeroRfid.Adapters.Abstractions&version=1.1.0
                    
Install as a Cake Tool

ZeroRfid

ZeroPlatform Tier License: MIT .NET Multi-Targeting Zero External Dependencies NuGet Version

ZeroRfid is a high-throughput, sovereign RFID reader communication, tag streaming, and edge processing library for .NET with zero external dependencies in its core. Built for industrial manufacturing, smart warehouse gates, and conveyor tracking, it delivers Ports & Adapters hardware isolation, sliding-window deduplication, portal gate vector direction detection, and a realistic scenario-based simulator.


๐ŸŒŸ Sub-Packages & Architecture

graph TD
    App[WinForms / WebApi / Worker] --> Core[ZeroRfid.Core]
    App --> Pipeline[ZeroRfid.Pipeline]
    
    subgraph Hardware Adapters
        Pure[ZeroRfid.Protocols.Pure] --> Core
        Zebra[ZeroRfid.Adapters.Zebra] --> AdaptersBase[ZeroRfid.Adapters.Abstractions]
        Impinj[ZeroRfid.Adapters.Impinj] --> AdaptersBase
        Hopeland[ZeroRfid.Adapters.Hopeland] --> AdaptersBase
        Sim[ZeroRfid.Simulator] --> Core
        AdaptersBase --> Core
    end

    Pipeline --> Core
Package Description Target Frameworks
ZeroRfid.Core Sovereign interfaces (IRfidReader, IRfidMemoryAccess, IRfidGpioController), normalized TagReadEvent, EPC hex codecs, and GS1 TDS decoders. netstandard2.0;net462;net8.0
ZeroRfid.Adapters.Abstractions Extensible vendor SDK adapter base classes, event synchronization, and raw hardware unit normalizers. netstandard2.0;net462;net8.0
ZeroRfid.Pipeline High-throughput streaming filters: sliding-window tag deduplication, RSSI threshold cut-off, and real-time portal gate vector direction detection. netstandard2.0;net462;net8.0
ZeroRfid.Simulator Scenario-based virtual reader (warehouse gate passing, conveyor belts, shelf bursts, virtual memory banks & GPIO) for hardware-free development. netstandard2.0;net462;net8.0

๐Ÿ“ฆ Installation

Install via the .NET CLI:

dotnet add package ZeroRfid.Core
dotnet add package ZeroRfid.Pipeline
dotnet add package ZeroRfid.Simulator
dotnet add package ZeroRfid.Adapters.Abstractions

๐Ÿš€ Quick Start

1. Connecting and Streaming Tags with the Simulator

using ZeroRfid.Core.Abstractions;
using ZeroRfid.Core.Models;
using ZeroRfid.Simulator;

// 1. Initialize simulator reader with a warehouse gate scenario
var options = new SimulatorOptions
{
    Scenario = SimulationScenario.WarehouseGateInbound,
    TagCount = 10,
    EmissionIntervalMs = 25
};

await using IRfidReader reader = new SimulatorRfidReader("READER-GATE-01", options);
await reader.ConnectAsync();

// 2. Start continuous inventory
await reader.StartInventoryAsync();

// 3. Stream tags asynchronously with cancellation
using var cts = new CancellationTokenSource(TimeSpan.FromSeconds(5));
await foreach (TagReadEvent tag in reader.ReadTagsAsync(cts.Token))
{
    Console.WriteLine($"[Scanned] EPC={tag.Epc} | Ant={tag.AntennaId} | RSSI={tag.Rssi:F1} dBm");
}

2. High-Throughput Sliding-Window Deduplication

using ZeroRfid.Pipeline.Deduplication;

var dedupFilter = new TagDeduplicationFilter(new DeduplicationOptions
{
    SlidingWindow = TimeSpan.FromSeconds(1),
    RssiMode = RssiAggregationMode.Maximum
});

dedupFilter.TagAppeared += (_, tag) =>
{
    Console.WriteLine($"โœ… New tag detected: {tag.Epc} on Antenna {tag.AntennaId}");
};

dedupFilter.TagDisappeared += (_, tag) =>
{
    Console.WriteLine($"โณ Tag left RF zone: {tag.Epc} after {tag.ReadCount} total reads");
};

// Process incoming raw tags (duplicates within 1 second are automatically suppressed)
TagReadEvent? emitted = await dedupFilter.ProcessAsync(rawTag);

3. Portal Gate Vector Direction Detection (Inbound / Outbound)

using ZeroRfid.Pipeline.Direction;

using var gateResolver = new PortalGateDirectionResolver(
    inboundAntenna: 1, 
    outboundAntenna: 2, 
    passageWindow: TimeSpan.FromSeconds(3));

gateResolver.DirectionResolved += (_, eval) =>
{
    Console.WriteLine($"๐Ÿšช Portal Transit: Tag {eval.Epc} -> {eval.Direction} ({eval.Confidence * 100:F0}% confidence)");
};

// Feed stream of antenna detections
await gateResolver.ProcessAsync(tagEvent);

4. Tag Memory Operations & Industrial GPIO

if (reader is IRfidMemoryAccess mem)
{
    // Rewrite tag EPC
    await mem.WriteEpcAsync("30340001A1B2C3D4E5F60001", "E28011602000000011223344");
}

if (reader is IRfidGpioController gpio)
{
    // Activate industrial tower light on GPO Pin 1
    await gpio.SetGpoAsync(pinIndex: 1, isHigh: true);
}

๐Ÿ“„ License

MIT License ยฉ 2026 Phong Vรต. Part of the ZeroPlatform project.

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 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.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 is compatible.  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.

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.1.0 90 9/22/2026
1.0.0 95 9/15/2026