CSLibrary2026 0.0.1
.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.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package CSLibrary2026 --version 0.0.1
NuGet\Install-Package CSLibrary2026 -Version 0.0.1
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="0.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CSLibrary2026" Version="0.0.1" />
<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 0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CSLibrary2026, 0.0.1"
#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@0.0.1
#: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=0.0.1
#tool nuget:?package=CSLibrary2026&version=0.0.1
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 communication with CSL RFID readers.
Supported Readers
| Reader | Connection | Description |
|---|---|---|
| CS108 | Bluetooth LE | Handheld UHF RFID Reader |
| CS710S | Bluetooth LE | Fixed UHF RFID Reader |
| CS203XL | TCP/IP | Fixed UHF RFID Reader |
Features
- Bluetooth LE (BLE) communication via Plugin.BLE
- Multi-reader support (CS108, CS710S, CS203XL)
- Barcode scanning integration
- Battery & notification management
- Rich RFID operations: inventory, read/write, lock/kill, filtering
Supported Platforms
- .NET Standard 2.0 — Xamarin.Forms, .NET MAUI, and other .NET Standard compatible frameworks
- .NET 10 — .NET 10+ applications
Installation
dotnet add package CSLibrary2026
Or add to your .csproj:
<PackageReference Include="CSLibrary2026" Version="0.0.1" />
Quick Start
1. Connect to a Reader
using CSLibrary;
// Create the RFID reader instance
var reader = new CSLibrary.RFIDReader.ClassRFID();
// Discover devices via Bluetooth LE
var adapter = new Plugin.BLE.Adapter.Adapter();
var devices = await adapter.DiscoverDevicesAsync();
// Connect to the first device
await reader.ConnectAsync(adapter, devices[0]);
2. Subscribe to Events
// RFID tag inventory callback
reader.OnAsyncCallback += (sender, e) =>
{
if (e.type == CSLibrary.Constants.CallbackType.TAG_RANGING)
{
Console.WriteLine($"EPC: {e.info.epc}");
}
};
// Reader state change callback
reader.OnStateChanged += (sender, e) =>
{
Console.WriteLine($"State: {e.state}");
};
3. Start Inventory
// Set power level (0–3000 = 0–30.00 dBm)
reader.SetPowerLevel(3000);
// Start inventory
reader.StartOperation(CSLibrary.RFIDReader.Operation.TAG_RANGING);
// Stop after some time
reader.StopOperation();
API Overview
Connection
| Method | Description |
|---|---|
ConnectAsync(IAdapter, IDevice) |
Connect to a BLE reader |
DisconnectAsync() |
Disconnect from the reader |
Battery & Notifications
| Method | Description |
|---|---|
GetCurrentBatteryLevel() |
Get battery level |
ClearEventHandler() |
Clear all callback events |
Events:
OnVoltageEvent— Battery level changesOnKeyEvent— Hotkey presses
RFID Operations
Start operations:
reader.StartOperation(Operation.TAG_RANGING); // Inventory
reader.StartOperation(Operation.TAG_READ); // Read tags
reader.StartOperation(Operation.TAG_READ_TID); // Read TID bank
reader.StartOperation(Operation.TAG_READ_USER); // Read USER bank
reader.StartOperation(Operation.TAG_WRITE); // Write tags
reader.StartOperation(Operation.TAG_LOCK); // Lock tag
reader.StartOperation(Operation.TAG_KILL); // Kill tag
reader.StopOperation(); // Stop continuous operation
Power & Frequency:
reader.SetPowerLevel(uint pwrlevel); // Set power (0–3000)
reader.GetActiveMaxPowerLevel(); // Get max power
reader.SetCurrentLinkProfile(uint profile); // Set link profile
reader.SetCountry(string countryName); // Set country frequency
reader.SetCountry(string countryName, int ch);// Set country + fixed channel
Singulation Algorithms:
reader.SetCurrentSingulationAlgorithm(SingulationAlgorithm.FIXEDQ);
reader.SetFixedQParms(FixedQParms parms);
reader.SetDynamicQParms(DynamicQParms parms);
reader.SetTagGroup(TagGroup tagGroup);
reader.SetPostMatchCriteria(SingulationCriterion[] criteria);
Callback Events:
OnAsyncCallback— Inventory / tag data (CallbackType.TAG_RANGING,TAG_SEARCHING)OnAccessCompleted— Read/write/lock resultOnStateChanged— RFID reader state (RFState.IDLE,RFState.BUSY,INITIALIZATION_COMPLETE)
Barcode Scanner
var barcode = new CSLibrary.Barcode.ClassBarCode();
barcode.OnCapturedNotify += (sender, e) => Console.WriteLine($"Barcode: {e.Barcode}");
barcode.Start();
barcode.Stop();
barcode.FactoryReset();
Events:
OnCapturedNotify— Captured barcode dataOnStateChanged— Scanner state (BarcodeState.IDLE,BUSY)
Reader Properties
reader.SelectedChannel; // Current channel
reader.SelectedRegionCode; // Current region code
reader.IsHoppingChannelOnly; // Hopping-only mode
reader.IsFixedChannelOnly; // Fixed-channel-only mode
reader.DeviceType; // Reader type (Machine enum)
reader.ChipSetID; // Chipset ID
Project Structure
CSLibrary2026/
├── Source/
│ ├── CSLibrary.cs # Main library entry point
│ ├── BluetoothProtocol/ # BLE protocol (send/receive/connect)
│ ├── BluetoothIC/ # Bluetooth IC wrapper
│ ├── BarcodeReader/ # Barcode scanning (Class, Constants, Events, Structures)
│ ├── Battery/ # Battery management
│ ├── Notification/ # System notifications
│ ├── HAL/
│ │ ├── Plugin.BLE/ # Primary BLE backend (active)
│ │ ├── MvvmCross.Plugin.BLE/ # MvvmCross BLE backend
│ │ └── btframework/ # wclBluetoothFramework DLLs
│ └── RFIDReader/
│ └── CSLUnifiedAPI/
│ └── Basic_API/
│ ├── CS108/ # CS108 reader API
│ └── CS710S/ # CS710S reader API
└── Properties/
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. |
| .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)
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 |