Indy Read/Write Sample Application

Updated: January 27, 2010


Description:

This document details the use of the sample Read/Write
( readwrite.exe ) program included with the Indy RFID SDK
source distribution.

The  Read/Write program allows the user to perform tag 
access protocol read, write, or blockerase operations on 
ISO 18000-6C tags.

Source Code:

The source code for the  Read/Write sample can be found within the
SDK source distribution under the directory:

host/rfid_library/samples/readwrite


Binary Code:

The SDK source distribution does not contain a sample binary and it
is up to the user to perform compilation of the code based on their
platform.  The easiest way to accomplish this is by following the
detailed installation and compile instructions provided in:

Indy_Host_Library_SDK_Getting_Started_Guide

A successful build of the SDK source distribution will result in an
executable being produced for the Read/Write program.  The
executable file will be named:

readwrite.exe

It will be located in the directory:

host/rfid_library/samples/readwrite


Using the Read/Write program:

1) Command Line Arguments and Command Line Help

To print the Read/Write command line help screen, just enter the 
executable name with -h or -?, and the following help will be 
displayed.

Usage:  readwrite [-h|?] [-rwe=READ|WRITE|ERASE]  [-mb=USER|RES|EPC|TID] [-so=<value>] [-wl=<value>]
  where:
        -h or -? will display this usage
        -rwe     specifies the read/write/erase operation to perform
                     (default is WRITE)
        -mb      specifies the tag memory bank (default is EPC)
        -so      specifies the starting offset in the memory bank
                     (default is 2)
        -wl      specifies the number of 16-bit words to read/write.
                     Can not be greater than 1024, (default is 6)



2) Command Line Argument Details

-h or -?  Displays the help screen
          
-rwe     Optional argument, default is WRITE.  This argument specifies which
         tag access protocol operation (READ or WRITE or ERASE) that should
         be executed. 
               
-mb      Optional argument, default is EPC.  This argument  defines which tag 
         memory bank (USER or RES or EPC or TID)is to be read/written/erased.

-so      Optional argument, default is 2.  This argument defines the tag memory
         bank starting offset where the read/write/erase should begin.
         
-wl      Optional argument, default is 6.  This argument specifies the number
         of 16-bit words to read/written/erased.
