REV 1.0  2010-12-14        Proprietary and Confidential    www.impinj
Copyright © 2010, Impinj, Inc.
Impinj, Octane, and Speedway are either
registered trademarks or trademarks of Impinj, Inc.
For more information, contact rfid_info@impinj
Octane 1.0 C# SDK Workbook
2.              Proprietary and Confidential    Revision 1.0, Copyright © 2010 Impinj, Inc.
Contents
Introduction (4)
Key Features (4)
Getting Started with the Octane SDK (4)
Pre Workshop Tasks (4)
Task 1 Computer and Reader (4)
Task 2–Unzip SDK (5)
Task 3 – Install Visual C# 2010 Express (5)
Task 4 – Exercise Examples (5)
Task 5 Preparing 7 Settings 10
Query, Save, and Load Settings (11)
Read Tags Synchronously (13)
Read Tags Asynchronously (15)
Read Tags Using Periodic Trigger (17)
Read Tags Using GEN 2 Filter (18)
Read User Memory (20)
Read Serialized TID (22)
Tag Access (24)
Program EPC (25)
Program User Memory (26)
Kill Tags .....................................................................................................................................28 GPIO 30
General Purpose Inputs (31)
General Purpose Outputs (34)
Subscribe, Test Power, and Thread (36)
Subscribing to Reader Events (36)
Power Ramp (37)
Proper Threading Technique using Windows Presentation Format (WPF) (40)
Notices: (45)
Octane 1.0 SDK C# Workbook
Revision 1.0, Copyright © 2010 Impinj, Inc.            Proprietary and Confidential        3.
Figures
Figure 1 Speedway Reader Connections (5)
Figure 3 Viewing Codin in C# OctaneSdk Sample (6)
Figure 4 Visual Studio New Project Dialog Box (7)
Figure 5 Visual Studio Adding References for OctandSdk (8)
Figure 6 Visual Studio Add Reference Dialog Box (8)
Figure 7 Adding Impinj.OctaneSdk Reference to C#.NET Program.cs ......................................... 8 Figure 8 EPC Gen 2 tag memory banks including EPC (1, or 01 in binary), TID (2, or 10) and
User (3 or 11). (13)
Figure 9 Memory and features available on Monza 4 models (13)
Figure 10 Impinj GPIO Connectivity Box (31)
Figure 11 New WFP Project Dialog (40)
Figure 12 WPF Code form (40)
Figure 13 WPF Form Example (41)
Octane 1.0 C# SDK Workbook
4.              Proprietary and Confidential    Revision 1.0, Copyright © 2010 Impinj, Inc.
Introduction
The Octane SDK includes the core library that increases the usability of the Impinj Reader by simplifying the creation of Reader applications. It does this by acting as a wrapper for extracting, modifying, and the application of a Reader’s Low Level Reader Protocol (LLRP) settings. This provides high-level control over Reader settings, tag query, and tag-write operations which reduces the effort necessary to manipulate Reader functionality.
Font Group Example Style
Code command Example 1 Reader =>
File names
sdkOctanesdk.zip  Example code
using  Impinj.OctaneSdk; namespace  QueryReaderSettings
Key Features
The core library is delivered in multiple programming languages and is completed by a variety of documentation. On-Reader applications (C++ only) are written in the same manner as off-Reader ap
plications, and all programming languages have a consistent implementation. The documentation is available in traditional online help .chm  files, and also includes examples and templates:
• Speedway Reader API
• C#, C++ Linux
• Examples, Templates, and Online Help
Getting Started with the Octane SDK
The Octane SDK is delivered in binary form as a DLL. Sample content is delivered as source code. Before the exercises in this workbook can be accomplished, the SDK must be unzipped. Visual Studio 2010 (VS2010) C# Express must be installed.
Pre Workshop Tasks
Task 1 Computer and Reader
1. Acquire a computer and Revolution Reader, and then network them together.
2. To complete the tag access exercise, a Reader antenna and a few tags are required. Use Monza 4
tags if available, but any EPC GEN 2 type will work.
3. Connect the GPIO board or GPIO Connector Box to the multi-purpose DE15 connector, and
connect the Reader antenna to port 1 as shown in Figure 1 below.
Octane 1.0 SDK C# Workbook
Revision 1.0, Copyright © 2010 Impinj, Inc.            Proprietary and Confidential        5.
Figure 1 Speedway Reader Connections
Task 2–Unzip SDK
1. Octanesdk.zip  contains the libraries, technical reference (Help text), and this Workbook.
2. Unzip the file to a local directory.
Note: This tutorial is included with the OctaneSdk. If you update to a new OctaneSdk  version, check the OctaneSdk  web page for a current version of this document.
Task 3 – Install Visual C# 2010 Express
To install VS2010 C# Express, complete the following steps:
1.
Download and run the VS2010 installer, here:
www.microsoft/express/downloads/#2010-Visual-CS  .
2. Restart your computer to complete the installation process. .
3. Launch VS2010 and allow it to complete the one-time initialization process. This should take about 2 to 3 minutes.
Task 4 – Exercise Examples
1. From VS2010, select File, then Open Project.
2. Select the /octane/cs/sdk/OctaneSdk.sln . file.
3. Complete the file conversion. (This sample file was built using VS 2008.)

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。