Apdu exchange command, Read binary apdu, Read protection status apdu – MagTek IntelliStripe65 99875161 User Manual

Page 93

Advertising
background image

Appendix B. Memory Card Support

87

APDU Exchange Command

The APDU Exchange Command is used to control logical operations of the card between Power
Up and Power Down. The APDU is issued as with Microprocessor cards. The Result Codes are
the same as for Microprocessor cards. When the Result Code indicates an Error or Warning, the
Primary Status of the CondRpt Property will never be 0x03.

Two SW1/SW2 Status Codes may apply to any APDU:

SW1/SW2

Meaning

6E00

CLA Not Supported

6D00

INS Not Supported


Read Binary APDU

Command APDU:

CLA

INS

P1

P2

Le

00

B0

Adr1

Adr0

Len

CLA is always 00

INS is always B0

P1 is upper byte of address to read and must not be greater than ‘03’

P2 is lower byte of address to read.

Le is the number of bytes to read

Response APDU:

Data Field (from card)

SW1

SW2


Possible SW1/SW2 combinations:

SW1/SW2

Meaning

9000

Normal completion, no errors

6B00

Offset outside of the Memory (Combination of P2 and Le is invalid)


Read Protection Status APDU

This APDU will not be found in ISO 7816-4. That is why it has the CLA of D0 (Proprietary).

Command APDU:

CLA

INS

P1

P2

Le

D0

B8

Adr1

Adr0

Len

CLA is always D0

INS is always B8

P1 is upper byte of address to read protection status and must not be greater than ‘03’

P2 is lower byte of address to read protection status.

Le is the number of bytes of protection status to read

Advertising