Welcome To Our Support Portal

Browse Impinj resources for help with FAQ, downloads, quick links, and more.


Submit a request

LTK XML for Java and C#

Follow


Download Impinj LTK XML ExampleDownload File

 

LtkXml example shows how to work with the LTK (LLRP libraries) by defining the RO Spec and Reader Configurations in XML.  LTK users will be able to configure the reader using XML instead of having to deal with coding complicated objects.  Currently, Java and C# have been implemented. 

Once the XML configuration files are defined the user can work with the event handlers provided by the sample to create their own LTK application. Here are some the things to know when creating LtkXml programs using the provided example:

1) Build the example:

Java

C#

Run java\build.bat

(Java JDK 1.7 or greater)

The java example files can be built in an IDE such as Eclipse or NetBeans.

 Open solution file    cs\ ltkxml.sln in Visual   Studio 2010 or greater.

2) Run the example:

    1. Edit reader speedway-XX-XX-XX in each batch file.
    2. See how the command line arguments select the RO Spec and Reader Config XML files.

Java

C#

Run loc.bat, trans.bat, or inv.bat

(Java JRE 1.7 or greater)

Run loc.bat, trans.bat, or inv.bat

3) Look at main program:

    1.  See how the reader is started up.
    2.  Also, how events are received from the event handler.

Java

C#

Edit com\impinj\ltkxml\LtkXmlEndpoint.java

Edit LtkXml\Program.cs

4) Edit the LtkXml example base class:

    1.  See how the helper methods that contain code for the main program simplifies connect, start, stop, enable extensions, etc. 
    2. This base class can be shared by a user’s custom main class and modified as needed.

Java

C#

Edit com\impinj\ltkxml\LtkXmlEndpoint.java

Edit LtkXml\Program.cs

5) Look at the XML samples:

File(s)

Purpose

InventoryRO.xml

Basic Inventory RO spec

LocationRO.xml  and LocationConfig.xml

xArray Location RO spec and Reader Config


Was this article helpful?
0 out of 0 found this helpful

Comments

Impinj (NASDAQ: PI) wirelessly connects billions of everyday items such as apparel, medical supplies, and automobile parts to consumer and business applications such as inventory management, patient safety, and asset tracking. The Impinj platform uses RAIN RFID, delivering information about items to the digital world and enabling the Internet of Things.