ZeroRfid.Simulator
1.1.0
dotnet add package ZeroRfid.Simulator --version 1.1.0
NuGet\Install-Package ZeroRfid.Simulator -Version 1.1.0
<PackageReference Include="ZeroRfid.Simulator" Version="1.1.0" />
<PackageVersion Include="ZeroRfid.Simulator" Version="1.1.0" />
<PackageReference Include="ZeroRfid.Simulator" />
paket add ZeroRfid.Simulator --version 1.1.0
#r "nuget: ZeroRfid.Simulator, 1.1.0"
#:package ZeroRfid.Simulator@1.1.0
#addin nuget:?package=ZeroRfid.Simulator&version=1.1.0
#tool nuget:?package=ZeroRfid.Simulator&version=1.1.0
ZeroRfid
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 | Versions 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. |
-
.NETFramework 4.6.2
- ZeroRfid.Core (>= 1.1.0)
-
.NETStandard 2.0
- ZeroRfid.Core (>= 1.1.0)
-
net8.0
- ZeroRfid.Core (>= 1.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.