beautypg.com

MagTek HALF CARD PORT User Manual

Page 27

background image

Section 3. Commands, Formats, Timing


19

Table 3-4 shows transmission examples in the buffered mode with STX and ETX included:

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

B
(0x1B, 0x42)

PC Sets STX

S
(0x1B, 0x53)

PC Sets ETX

E
(0x1B, 0x45)

Card Inserted

1 (0x02, 0x31, 0x03)

PC Sends Inquiry

I
(0x1B, 0x49)

If bad read on insert, reader sends error
status

%E?;E?1(0x02,0x25,
0x45,0x3F,0x3D,0x45,0x3F,0x31,0x03)

If good read on insert, sends card data

%?;data>?1

Card removed

0 (0x02, 0x30, 0x03)

PC Sends Inquiry

I
(0x1B, 0x49)

Sends card data

%?;data>?0

PC Sends Inquiry

I
(0x1B, 0x49)

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

%?;data>?0

Buffer cleared (released)

R
(0x1B, 0x52)

PC Sends Inquiry

I
(0x1B, 0x49)

Sends status

0 (0x02, 0x30, 0x03)