Cardreader commands – O'Neil microFlash Series User Manual

Page 85

Advertising
background image

User Manual and Technical Guide The O'Neil microFlash Series of Printers

CardReader Commands

75

CardReader Commands

Operational Commands

All operational commands for the magnetic/smart card reader peripheral are
IMMEDIATE commands, taking the form of Easy Print commands
(bracketed by “{“ and “}”) and preceded by the ESC (1Bh) character.
Responses vary by command. All operational commands are two
characters, followed by:

!

command complete, no data is expected in response

?

command complete, response with data expected

:

data for peripheral follows

In addition, the reader has configuration options which can be semi-
“permanently” set in Flash for LED usage, Magnetic Stripe and Smart Card
reader. Format for these configuration commands follows the self-writing
three character configuration commands (similar to IR related configuration
commands). In all cases, the printer will respond with either a NAK
(N<crc>}, or a WACK (W<crc>) indicating the printer is busy writing to
flash followed by an ACK (A<crc>). The CRC is the common CRC-16.

General Reader Operational Commands

The card reader has two LEDS, red and green that may be used to give a
visual status to the user for either magnetic cards or smart cards. In
addition, the printer can be polled for general card reader status as well as
the current state of the LEDs. Semicolons separate elements of the returned
status:
Command: {RS?}

Status – returns power, card inserted, and LED
status as follows:
P:0/1 for smart card (ICC) power off or on
S:0/1 for card not seated or seated

7

Advertising