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:
- Edit reader speedway-XX-XX-XX in each batch file.
- 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:
- See how the reader is started up.
- 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:
- See how the helper methods that contain code for the main program simplifies connect, start, stop, enable extensions, etc.
- 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 |
Comments
Article is closed for comments.