Owner manual
Building On-Reader Applications
114 On Reader Applications
Building On-Reader Applications
Requirements
The following items are needed to run APIs on the reader.
The MercuryAPI SDK v1.11 or later.
(available on rfid.thingmagic.com/devkit)
The M6 On-Reader cross-compiler environment
(available on rfid.thingmagic.com/devkit)
A host PC running a modern Linux distribution.
– Tested with Ubuntu 12.04 LTS
An M6 or Astra-EX Reader.
GCC version 4.4.3 or 4.5.2. GCC v4.6 fails to build LTK library.
A method of getting the compiled application onto the M6:
– A directory on the PC exported via the Network File System (NFS) that the reader
can mount remotely and install
Via NFS Mount. This allows you to share files
between the two devices. In our example, we will assume the /tmp directory is
shared OR
– An FTP or HTTP server to serve the compiled binary so you can fetch the files
Via
wget utility on the M6.
Instructions
Use the following procedure to set up the reader to run API applications.
To run code on the reader:
1. Install the cross compiler and other binary utilities for the PC. See
Installing the Cross
Compiler Environment.
2. Develop and test your code on the PC as you would with any MercuryAPI C client
application.
3. Cross-compile the code on the PC for the target system i.e., the reader. See
Compiling an Application.
4. Install and run your code on the reader. See Installing the Application on the M6 and
Running an On-Reader Application