Read binary apdu, Write binary apdu – MagTek IntelliStripe65 99875161 User Manual

Page 110

Advertising
background image

IntelliStripe 65 Command Reference


104

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

xx

Adr

Len

CLA is always 00

INS is always B0

P1 is ignored
P2 is the address where the read will start

Le is the number of bytes to read, 0 will read 256 bytes

The entire card can be read with one command. Bits that are “unreadable” will be
returned with the electrical value the card imposes on the I/O line at the time of read
sampling.

Response APDU:

Data Field (from card)

SW1

SW2

Possible SW1/SW2 combinations:

SW1/SW2

Meaning

9000

Normal completion, no errors


Write Binary APDU

The Write Binary command performs a logical AND of the bits already present in the card with
the bits given in the command APDU. For each bit that is 0 in the command APDU, if the
corresponding bit on the card is 1, it will be written to 0. Bits in the command APDU that are set
to 1 will be ignored, the state of the corresponding bit on the card will not be checked. Even
though each specified bit will be written, the result of the operation is NOT verified and no errors
are reported. The user may desire to Read the data to assure all intended bits have been written.

If there is a need to set a bit on the card to the value of 1, it must be done using the Erase Counter
or Erase Data command. These commands may cause erasure of more than one bit on the card,
so be careful!

Advertising