CSLibrary2026 2.0.0-beta.2
.NET 10.0
This package targets .NET 10.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
This is a prerelease version of CSLibrary2026.
dotnet add package CSLibrary2026 --version 2.0.0-beta.2
NuGet\Install-Package CSLibrary2026 -Version 2.0.0-beta.2
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="CSLibrary2026" Version="2.0.0-beta.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CSLibrary2026" Version="2.0.0-beta.2" />
<PackageReference Include="CSLibrary2026" />
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 CSLibrary2026 --version 2.0.0-beta.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CSLibrary2026, 2.0.0-beta.2"
#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 CSLibrary2026@2.0.0-beta.2
#: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=CSLibrary2026&version=2.0.0-beta.2&prerelease
#tool nuget:?package=CSLibrary2026&version=2.0.0-beta.2&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CSLibrary2026
CSL RFID Reader Library for .NET — supporting Bluetooth LE and TCP/IP communication with CSL RFID readers.
Supported Readers
| Reader | Connection |
|---|---|
| CS108 | Bluetooth LE |
| CS468 | Bluetooth LE |
| CS710S | Bluetooth LE |
| CS203XL | Bluetooth LE / TCP/IP |
Supported Platforms
- .NET Standard 2.0 — Xamarin.Forms, .NET MAUI, and other .NET Standard compatible frameworks
- .NET 10 — .NET 10+ applications
- .NET 10 Windows — Windows desktop applications (TCP/IP support)
Features
- Bluetooth LE (BLE) communication via Plugin.BLE
- TCP/IP connectivity for fixed readers (Windows desktop)
- Multi-reader support across CSL RFID readers
- Rich RFID operations: inventory, read/write, lock/kill, filtering
- Barcode scanning integration
- Battery & notification management
Installation
dotnet add package CSLibrary2026
Or add to your .csproj:
<PackageReference Include="CSLibrary2026" Version="1.0.0-beta.1" />
Quick Start
1. Connect to a Reader
Bluetooth LE (CS108, CS468, CS710S, CS203XL)
using CSLibrary;
// Create the reader instance
var reader = new HighLevelInterface();
// Discover BLE devices
var deviceFinder = new DeviceFinder();
deviceFinder.OnDeviceFound += (sender, device) =>
{
Console.WriteLine($"Found: {device.Name}");
};
await deviceFinder.StartScanAsync();
// Connect to a BLE reader
await reader.ConnectAsync(adapter, device, MODEL.CS108);
TCP/IP (CS203XL — Network API)
using CSLibrary;
// Create the reader instance
var reader = new HighLevelInterface();
// Connect via TCP/IP (CS203XL Network API)
await reader.ConnectAsync("192.168.1.100", 2000);
2. Subscribe to Events
// RFID tag inventory callback
reader.rfid.OnAsyncCallback += (sender, e) =>
{
if (e.type == Constants.CallbackType.TAG_RANGING)
{
Console.WriteLine($"EPC: {e.info.epc}");
}
};
// Reader state change callback
reader.OnReaderStateChanged += (sender, e) =>
{
Console.WriteLine($"State: {e.state}");
};
3. Start Inventory
// Set power level (0–3000 = 0–30.00 dBm)
reader.rfid.SetPowerLevel(3000);
// Start inventory
reader.rfid.StartOperation(RFIDReader.Operation.TAG_RANGING);
// Stop after some time
reader.rfid.StopOperation();
API Overview
Connection
| Method | Description |
|---|---|
ConnectAsync(IAdapter, IDevice, MODEL) |
Connect to a BLE reader |
ConnectAsync(string ipAddress, int port) |
Connect to a TCP/IP reader |
DisconnectAsync() |
Disconnect from the reader |
RFID Operations
Start operations:
reader.rfid.StartOperation(Operation.TAG_RANGING); // Inventory
reader.rfid.StartOperation(Operation.TAG_READ); // Read tags
reader.rfid.StartOperation(Operation.TAG_READ_TID); // Read TID bank
reader.rfid.StartOperation(Operation.TAG_READ_USER); // Read USER bank
reader.rfid.StartOperation(Operation.TAG_WRITE); // Write tags
reader.rfid.StartOperation(Operation.TAG_LOCK); // Lock tag
reader.rfid.StartOperation(Operation.TAG_KILL); // Kill tag
reader.rfid.StopOperation(); // Stop continuous operation
Power & Frequency:
reader.rfid.SetPowerLevel(uint pwrlevel); // Set power (0–3000)
reader.rfid.GetActiveMaxPowerLevel(); // Get max power
reader.rfid.SetCurrentLinkProfile(uint profile); // Set link profile
reader.rfid.SetCountry(string countryName); // Set country frequency
reader.rfid.SetCountry(string countryName, int ch);// Set country + fixed channel
Singulation Algorithms:
reader.rfid.SetCurrentSingulationAlgorithm(SingulationAlgorithm.FIXEDQ);
reader.rfid.SetFixedQParms(FixedQParms parms);
reader.rfid.SetDynamicQParms(DynamicQParms parms);
reader.rfid.SetTagGroup(TagGroup tagGroup);
reader.rfid.SetPostMatchCriteria(SingulationCriterion[] criteria);
Callback Events:
reader.rfid.OnAsyncCallback— Inventory / tag data (CallbackType.TAG_RANGING,TAG_SEARCHING)reader.rfid.OnAccessCompleted— Read/write/lock resultreader.OnReaderStateChanged— RFID reader state
Battery & Notifications
reader.GetCurrentBatteryLevel(); // Get battery level
reader.ClearEventHandler(); // Clear all callback events
reader.notification.OnVoltageEvent += ... // Battery level changes
reader.notification.OnKeyEvent += ... // Hotkey presses
Barcode Scanner
reader.barcode.OnCapturedNotify += (sender, e) => Console.WriteLine($"Barcode: {e.Barcode}");
reader.barcode.Start();
reader.barcode.Stop();
Events:
OnCapturedNotify— Captured barcode dataOnStateChanged— Scanner state
Project Structure
CSLibrary2026/
├── Source/
│ ├── CSLibrary.cs # Main library entry point
│ ├── Transport/ # Transport layer abstraction
│ │ ├── ITransport.cs # Transport interface
│ │ ├── BLETransport.cs # BLE transport (Plugin.BLE)
│ │ └── TCPTransport.cs # TCP transport
│ ├── BluetoothProtocol/ # BLE protocol (send/receive/connect)
│ ├── HAL/
│ │ ├── Plugin.BLE/ # BLE backend for MAUI
│ │ └── TCPIP/ # TCP/IP backend for Windows desktop
│ ├── RFIDReader/
│ │ └── CSLUnifiedAPI/
│ │ └── Basic_API/
│ │ ├── CS108/ # CS108 / CS468 reader API (Rx000)
│ │ └── CS710S/ # CS710S / CS203XL reader API (E710/E910)
│ ├── BarcodeReader/ # Barcode scanning
│ ├── Battery/ # Battery management
│ └── Notification/ # System notifications
└── Properties/
Architecture
CSLibrary2026 uses a transport abstraction layer (ITransport) to support both Bluetooth LE and TCP/IP connections:
HighLevelInterface
├── rfid — RFID operations (inventory, read/write, lock/kill)
├── barcode — Barcode scanning
├── notification — Battery, key events
└── _transport — ITransport (BLETransport or TCPTransport)
ITransport
├── ConnectAsync() — Connect via BLE or TCP
├── SendAsync() — Send command data
├── Disconnect() — Close connection
└── SetReceiveCallback() — Handle incoming data
License
MIT License. See LICENSE for details.
Links
- GitHub Repository: https://github.com/cslrfid/CSLibrary2026
- NuGet Package: https://www.nuget.org/packages/CSLibrary2026
| 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 was computed. 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 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-windows7.0 is compatible. |
| .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 was computed. 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.
-
.NETStandard 2.0
- Plugin.BLE (>= 3.0.0)
-
net10.0
- Plugin.BLE (>= 3.0.0)
-
net10.0-windows7.0
- Plugin.BLE (>= 3.0.0)
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 |
|---|---|---|
| 2.0.0-beta.2 | 54 | 4/16/2026 |
| 2.0.0-beta.1 | 48 | 4/16/2026 |
| 1.0.0-beta.13 | 53 | 4/16/2026 |
| 1.0.0-beta.12 | 52 | 4/16/2026 |
| 1.0.0-beta.11 | 55 | 4/16/2026 |
| 1.0.0-beta.5 | 48 | 4/16/2026 |
| 1.0.0-beta.4 | 45 | 4/16/2026 |
| 1.0.0-beta.3 | 52 | 4/16/2026 |
| 1.0.0-beta.2 | 51 | 4/16/2026 |
| 1.0.0-beta.1 | 66 | 4/1/2026 |
| 0.0.1 | 103 | 3/31/2026 |