User Manual and Technical Guide The O'Neil microFlash Series of Printers CardReader Commands 79
Smart Card Operational Commands
Since Smart Card applications and card types can vary widely, the printer
acts only as a conduit to the card, relaying commands to the card and
accepting data back from the card. Most cards require special commands of
their own. The commands shown here are commands to the reader, not to
the card. The card specific data sent to the printer as data along with these
reader commands is sent to the card and any response (data and/or status
word – a 2 byte sequence) from the card is returned to the host. Consult
ISO-7816 part 4 for T=0 commands to the smart card, which are included as
the data for the SR and SW commands to the card reader and meaning of
responses.
Command: {SP:data} Controls Power to the Smart card – requires data
Response for power ON: {SP:<ATR data>}
Where ATR data is Answer To Reset data
returned by card
Response for power OFF: {SP!}
SP data: 0 (zero) – Turn power off
1 (one) – Turn power on (printer returns ATR for
async card)
Command: {SW:data} ICC card write – requires command to be written
to card (ISO-7816)
Uses Sync or if Async, protocol selected at
configuration
Returns status response from card preceded by
{SW!
Command: {SR:data} ICC card read – requires command/data to be
written to card (ISO-7816)
Uses Sync or of Async, protocol selected at
configuration
Returns data and status response with data from
card preceded by {SR!
Implemented as required (future):
Command: {SM:data} Smart Memory Card – requires command/data to
be written to card
Uses I 2 C or SPI communications to card
Subcommands for read and write control the
reader as well as the card