Update binary apdu, Force pps1 transmission – MagTek IntelliStripe 320 99875168 User Manual

Page 101

Advertising
background image

Appendix B. Memory Card Support

95

Possible SW1/SW2 combinations:


SW1/SW2 Meaning
9000

Normal completion, no errors

6A82

Memory Not Found (P1 is invalid)

6B00

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

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 as follows:

80 updates Main Memory (Short File ID 0)

81 updates Security Memory (Short File ID 1) (SLE 4442 only)

84 updates Protection Memory (Short File ID 4)

P2 is lower byte of address, address within the requested Memory

Lc is the number of bytes to write, 0-256, 0 indicates 256 bytes

Data Field contains the bytes to write. If the Memory being written is the Protection
Memory, only bytes that are different from the values currently on the card are written,
then protected. If a byte to be written is already protected, a status 6581 will be returned.

Response APDU:


SW1 SW2

Possible SW1/SW2 combinations:


SW1/SW2 Meaning
9000

Normal completion, no errors

6581

Memory Failure, some bytes were not written

6A82

File Not Found (P1 is invalid)

6B00

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

Advertising