06.01.2015 Views

INfinity 510 Protocol Reference Guide - Sirit

INfinity 510 Protocol Reference Guide - Sirit

INfinity 510 Protocol Reference Guide - Sirit

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 5 – Embedded Reader Applications<br />

EMBEDDED READER APPLICATIONS<br />

The <strong>INfinity</strong> <strong>510</strong> supports embedded user applications such as python<br />

scripts or Java applications. These applications can be developed on an<br />

external host and then loaded onto the reader. This section describes how<br />

to load an embedded application.<br />

DEVELOPING APPLICATION CODE<br />

User Application Types Supported<br />

The IDentity <strong>510</strong>0 supports both Python and Java user applications. Python<br />

applications may be either in script format (.py) or compiled (.pyc). Java<br />

applications may either be class files (.class) or jar files (.jar).<br />

The reader’s Python version is 2.4.2. The virtual machine for running<br />

applications coded in Java is compatible with the J2SE specification. The<br />

reader’s JRE (Java runtime) is version 1.4.2.<br />

Directories Available for User Applications<br />

Users may use both /tmp (stored in RAM) and /apps/bin (stored in<br />

Flash) for their applications. Files and directories can be created and<br />

written to in these directories. Users may not “cd” to these directories, so it<br />

is advised that users use the fully qualified pathnames when referring to<br />

files in these directories.<br />

User applications may use up to 16MB of the RAM file system (/tmp). Files<br />

stored in this file system are removed after a reboot. Other maintenance of<br />

this file system is up to the user.<br />

User applications can use up to 5.4MB of the Flash file system<br />

(/apps/bin). These files are preserved over a reboot. Due to the limited<br />

number of write cycles for a flash file system, users should avoid adding<br />

files to the /apps/bin directory that are dynamically modified.<br />

Registering for Reader Events<br />

Events can also be registered by user applications. The Reader listens for<br />

Event connections on its local port 50008. User applications can connect to<br />

this port and will receive a channel id to use to register Events via the<br />

reader.register_event() command.<br />

36 <strong>INfinity</strong> <strong>510</strong> <strong>Protocol</strong> <strong>Reference</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!