Tpdu, card to ifd command – MagTek IntelliStripe65 99875161 User Manual
Page 51

Section 5. Smart Card Application
45
TPDU, CARD TO IFD COMMAND
Command ID: 83 (Hex)
Description:
Note
Unless your card can not operate in the APDU mode, it is
recommended not to use this command, as it is not compatible with
EMV Rules nor the intended ISO 7816-4 application usage.
This command is used to send a TPDU to a card requesting data from the card. It is the user’s
responsibility to assure that the INS byte specifies a card command which will result in data
being returned to the IFD. The TPDU is sent to the card and the reply is collected according to
ISO 7816-3(1997) rules.
Request Message Data:
Byte Field Description
1
CLA
CLA byte per card’s specification
2
INS
INS byte per card’s specification
3
P1
P1 byte per card’s specification
4
P2
P2 byte per card’s specification
5
P3
P3, number of bytes expected in response from the card, per ISO
7816-3(1997)
Response Message Data:
Byte Field
Description
1-n
TPDU Response
Response TPDU received from the card. SW1/SW2 are at
the end.
Response Message Result Codes
Code (Hex)
Meaning
00
Success, the command completed without problems
01
Failure, the command was not able to complete, see CondRpt property for
details. See T=0 or T=1 Error/Warning Condition Templates for Template
construction.
02
Warning, the command completed, but some problems arose, see CondRpt
property for details. See T=0 or T=1 Error/Warning Condition Templates
for Template construction.
Example Request:
Field
MTYP
APPL
CMND
RC
DATA
Byte
1
2
3
4
5-9
Value (Hex)
00
02
83
00
00 B0 81 00 02