Installation Manual Part 2

Installation manual Reader 82
Modications, misprints and errors excepted.
English
7. Programming the Reader
7.1. Preparation
For the integration of the reader into an existing application on Windows, Linux for operation as a standalone device
with embedded Linux appropriate libraries and header les are located on the CD in the subdirectory / API.
The user has the choice to use the appropriate target system library for Windows or Linux, or to implement KBRP
according to the supplied protocol specication ((A)) in its target application.
The RFIDDemoApp directory contains sample projects for Windows, Linux and embedded Linux that demonstrate the
programming in C #, C + + and VB.Net. These examples are based on the use of the library functions. This is a console
application that shows how the connection is established to the reader and how tags are read, GPIOs used and action
lists are built.
The examples have been tested on Windows 7 and Debian 6.0. Before the programs are compiled, the environment
must be adapted. Copy the folder / AP and / RFIDDemoApp in your user directory. For the preparation of programs for
an Embedded Linux, an Embedded Linux Development Kit must be installed. For more information on the installation,
please see Chapter 7.6.
Note
The example is based on the connection parameters from the factory default settings of the IO cards. This may need
to be adapted to your building in the reader and in the source code of the program.
The necessary libraries for the programs can either be stored in the respective program folder or the default library
folder of the operating system.
Now, the programs can be created using the following procedure.
7.2. Using the examples with Windows
The C #, C + + and VB.Net folder containing the example programs and project les for Visual Studio 2010 based on
the ReaderDllDotNet. Download the appropriate project le and compile the program.
7.3. Using the examples with Linux
The same source code can be used in Linux. A distinction is made as follows:
7.4. Using the examples with Linux on a PC
The program is built in the / RFIDDemoApp / Linux with the command make. If the compiler nds all the necessary data,
the program Console Linux demo is created in the same folder.
LibReaderLib.so the library from the / API / Linux as root (su + root password) is still needed for the program, this le
can be copied to the / urs / lib (libReaderLib.so cp / usr / lib ) or will be stored in the folder with the source code. Then
the program with. / Console Linux demo can be started.
7.5. Using on an embedded system
If the example is to be complied for the embedded system of an ETL or ELC reader, the ELDK must be installed for the
corresponding target System on Linux. The process for this is described in Chapter 7.7. The cross compiler creates the
program for the target system.
Note
The program created will only run on the target system.
To start the compilation process please use the le from the respective folder
(RFIDDemoApp\RRU4-ELC-XX or ..\RRU4-ETL-XX).