Read binary apdu, Update binary apdu – MagTek IntelliStripe 320 99875168 User Manual

Page 115

Advertising
background image

Appendix B. Memory Card Support

109

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.

P2 is lower byte of address to read.

Le is the number of bytes to read

Note that if the address given is outside of the bounds of the card in the reader you may
not get the expected results. If the sum of Le and the address is outside of the bounds of
the card, some of the data will probably represent a wrap-around to the beginning of card
memory.

Response APDU:

Data Field (from card)

SW1

SW2


Update Binary APDU

Command APDU:

CLA INS P1 P2 Lc Data

Field

00

D6

Adr1

Adr0

Len

Data to be written

CLA is always 00

INS is always D6

P1 is upper byte of address to write.

P2 is lower byte of address to write.

Lc is the number of bytes to write.

Data Field contains the bytes to write.

Note that if the address given is outside of the bounds of the card in the reader you may
not get the expected results. If the sum of Le and the address is outside of the bounds of
the card, some of the data will probably represent a wrap-around to the beginning of card
memory.

Response APDU:

SW1 SW2

Possible SW1/SW2 combinations:


SW1/SW2 Meaning
6581

Memory Failure, some bytes were not written

Advertising