
The Octane SDK is a software API from Impinj that significantly reduces the amount of time it takes to write RFID applications. It's an extension of the LLRP Toolkit (LTK) that simplifies development by handling many of the details for you. Here are some of the details: Supported Language C# for PC application development on Microsoft Windows Requirements
1. Download the Octane SDK from the Impinj Support Portal. 2. Create a new Visual Studio console project. 3. Create a new sub-directory under your project called 'lib'. 4. Extract the SDK files (.DLL) to the lib directory. 5. Add references to these libraries by selecting Project->Add Reference from the menu. |
C# Sample Code:
using System;
using Impinj.OctaneSdk;
namespace OctaneSdkExamples
{
class Program
{
// Create an instance of the ImpinjReader class.
static ImpinjReader reader = new ImpinjReader();
static void Main(string[] args)
{
try
{
// This example show the minimum program required to read tags.
// If you require more control over the reader settings,
// take a look at the ReadTags example.
// Connect to the reader.
// Change the ReaderHostname constant in SolutionConstants.cs
// to the IP address or hostname of your reader.
reader.Connect(SolutionConstants.ReaderHostname);
// Assign the TagsReported event handler.
// This specifies which method to call
// when tags reports are available.
reader.TagsReported += OnTagsReported;
// Apply the default settings.
reader.ApplyDefaultSettings();
// Start reading.
reader.Start();
// Wait for the user to press enter.
Console.WriteLine("Press enter to exit.");
Console.ReadLine();
// Stop reading.
reader.Stop();
// Disconnect from the reader.
reader.Disconnect();
}
catch (OctaneSdkException e)
{
// Handle Octane SDK errors.
Console.WriteLine("Octane SDK exception: {0}", e.Message);
}
catch (Exception e)
{
// Handle other .NET errors.
Console.WriteLine("Exception : {0}", e.Message);
}
}
static void OnTagsReported(ImpinjReader sender, TagReport report)
{
// This event handler is called asynchronously
// when tag reports are available.
// Loop through each tag in the report
// and print the data.
foreach (Tag tag in report)
{
Console.WriteLine("EPC : {0} ", tag.Epc);
}
}
}
}