MagTek P-SERIES User Manual

Page 19

Advertising
background image

Section 2. Commands, Formats, Timing

13

Table 3-3. Transmission Data Examples Not in Buffered Mode

Action

Port Powered Insert Reader Data

PC Data

Card Inserted

1 (0x31)

PC Sends Inquiry (if the application needs
data before card removed)

<Esc> I
(0x1B, 0x49)

Bad read on insert so reader sends error
plus card status

%E?;E?11 (0x25, 0x45, 0x3F, 0x3B,
0x45, 0x3F, 0x31, 0x31)

Card removed

%<track 1 data>?;<track 2 data>?0

Card Inserted

1 (0x31)

PC Sends Inquiry (if the application needs
data before card removed)

<Esc> I
(0x1B, 0x49)

Sends card data plus card status

%<track 1 data>?;<track 2 data>?11

Card removed (card data is always
transmitted when the card is removed if not
in buffered mode)

%<track 1 data>?;<track 2 data>?0

Table 3-4. Transmission Data Examples in Buffered Mode With STX and ETX Included

Action

Port Powered Insert Reader Data

PC Data

PC Sets Buffered Mode

<Esc>B
(0x1B, 0x42)

PC Sets STX

<Esc>S
(0x1B, 0x53)

PC Sets ETX

<Esc>E
(0x1B, 0x45)

Card Inserted

<Stx>1<Etx> (0x02, 0x31, 0x03)

PC Sends Inquiry

<Esc>I
(0x1B, 0x49)

If bad read on insert, reader just sends status

<Stx>1<Etx> (0x02, 0x31, 0x03)

If good read on insert, sends card data

<Stx>%<track 1 data>?;<track 2
data>?1<Etx>

Card removed

<Stx>0<Etx> (0x02, 0x30, 0x03)

PC Sends Inquiry

<Esc>I
(0x1B, 0x49)

Sends card data

<Stx>%<track 1 data>?;<track 2
data>?0<Etx>

PC Sends Inquiry

<Esc>I
(0x1B, 0x49)

Sends card data (data remains in buffer until a
release command has been received)

<Stx>%<track 1 data>?;<track 2
data>?0<Etx>

Buffer cleared (released)

<Esc>R
(0x1B, 0x52)

PC Sends Inquiry

<Esc>I
(0x1B, 0x49)

Sends status

<Stx>0<Etx> (0x02, 0x30, 0x03)

Advertising