beautypg.com

Transmissions examples – MagTek PORT POWERED User Manual

Page 23

background image

Section 3. Commands, Formats, Timing

17

TRANSMISSIONS EXAMPLES

The following tables show transmission examples:

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)

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

%?;?0

Card Inserted

1 (0x31)

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

I
(0x1B, 0x49)

Sends card data plus card status

%?;?11

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

%?;?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

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 just sends status

1 (0x02, 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)