Section 5. smart card application, Get/set/save property commands, Response codes used throughout the application – MagTek IntelliStripe65 99875161 User Manual

Page 31: Notifications in the smart card application, Request/response/notification model

Advertising
background image

25

SECTION 5. SMART CARD APPLICATION


Application ID: 02 (Hex)
Description:
This application deals with smart card communications.

GET/SET/SAVE PROPERTY COMMANDS

Get Property Command ID: 00 (Hex)
Set Property Command ID: 01 (Hex)
Save Property Command ID: 02 (Hex)
Description:
These commands are used to get, set and save the value of application properties. Details of
these commands are described in the Generic command section of this document. The following
describes each property this application supports.

RESPONSE CODES USED THROUGHOUT THE APPLICATION

Two Response Codes are used throughout most of the application and have the same meaning in
all cases.

80 (Hex) – This Response Code is used in conjunction with the
Request/Response/Notification Model for all commands. It means command has not yet
completed and that a Notification message will be sent later when the command has
completed.

08 (Hex) – This Response Code may be used with any command and indicates either:

- The Smart Card Application can not find hardware to execute on, or
- The Smart Card Application is busy executing a previous command.


NOTIFICATIONS IN THE SMART CARD APPLICATION

The Smart Card Application attempts to respond to all requests in a timely manner. Because
different Smart Cards may take longer than others to respond to a given request, it is not possible
to predict how long it will take to complete a request. Because of this, we have adopted a
Request/Response/Notification model for most commands to the Smart Card Application. The
Get and Set Property commands are excluded from this model.

Request/Response/Notification Model

When the Smart Card Application receives a Request, it initiates the requested action. If the
action completes in a timely manner, a Response message is sent informing the Host Application
of completion. If the request does not complete in a timely manner, a Response message is sent
indicating that the command has not yet completed (Response Code 80 (Hex)) and that a

Advertising