Update binary with protection apdu – MagTek IntelliStripe 320 99875168 User Manual

Page 106

Advertising
background image

IntelliStripe 320 Command Reference

100

Update Binary With Protection APDU

Because of card functionality, this APDU should not be sent until at least one Read Binary
APDU has been sent first.


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 Lc Data

Field

D0

D8

Adr1

Adr0

Len

Data to be written

CLA is always D0

INS is always D8

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

P2 is lower byte of address to write.

Lc is the number of bytes to write, 0-1024

Data Field contains the bytes to write. If a byte to be written is already protected, a status

6581 will be returned. Data is written first, then the Protect bit is written with
comparison, assuring that the data being protected is the data you wanted to
protect.

Response APDU:


SW1 SW2

Possible SW1/SW2 combinations:


SW1/SW2 Meaning
9000

Normal completion, no errors

6581

Memory Failure, some bytes were not written

6B00

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

Advertising