https://github.com/baseflow/sick-rfid
https://github.com/baseflow/sick-rfid
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/baseflow/sick-rfid
- Owner: Baseflow
- License: mit
- Created: 2024-03-26T13:45:44.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-11T08:01:28.000Z (over 1 year ago)
- Last Synced: 2025-06-22T06:55:21.115Z (9 months ago)
- Language: C#
- Size: 51.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SICK.RFU610.SDK
This is an SDK to communicate with the SICK RFU610 RFID reader over ethernet.
It simplifies communication with the reader by providing an interface to read tags.
Developers can use this SDK to integrate the reader into their applications.
Features include:
- Connect to the reader over ethernet
- Read tags
- Disconnect from the reader
Eventually, the we would like to support more features such as writing tags, configuring the reader, and more.
## Installation
Installation via Package Manager Console in Visual Studio:
```powershell
PM> Install-Package SickRfid
```
Installation via .NET CLI:
```console
> dotnet add package SickRfid
```
## Usage
The SDK is very easy to use. Here is an example of how to read tags:
```csharp
using SickRfid;
public class Program
{
public async static void Main()
{
// Replace the IP address with the IP address of your reader
var disconnectedReader = new SickRfidControllerBuilder("192.168.1.45").Build();
// Connect to the reader
var connectedReader = await disconnectedReader.ConnectAsync();
// Read a tag. This starts the scanner, reads a tag within the timeout, and stops the scanner.
var tagId = await connectedReader.ScanRfidAsync();
// Print the tag ID
Console.WriteLine($"Tag ID: {tagId}");
}
}
```
Under the hood, `connectedReader.ScanRfidAsync()` calls three methods itself.
It is possible to call these methods separately if you need more control over the process:
```csharp
using SickRfid;
public class Program
{
public async static void Main()
{
var disconnectedReader = new SickRfidControllerBuilder("192.168.1.45").Build();
var connectedReader = await disconnectedReader.ConnectAsync();
// Start the scanner
await connectedReader.StartAsync();
// Read a tag
await connectedReader.ReadAsync();
// Stop the scanner
await connectedReader.StopAsync();
Console.WriteLine($"Tag ID: {tagId}");
}
}
```