Response codes and timing – MagTek MAG-WEDGE READER User Manual

Page 15

Advertising
background image

Section 3. Operation

9


EPP ACTIVE

NON EPP, KEYBOARD ACTIVE

EPP, READER ACTIVE

NON EPP, READER, KEYBOARD ACTIVE

EPP, KEYBOARD ACTIVE

READER ACTIVE

EPP, READER. KEYBOARD ACTIVE KEYBOARD ACTIVE
NON EPP ACTIVE

READER, KEYBOARD ACTIVE

NON EPP, READER ACTIVE

ALL DEVICES INACTIVE


RESPONSE CODES AND TIMING

K= Acknowledge
O= No PINPad attached
P=PINPad is attached, but disabled

After receiving a valid command from the PC, the scan code "K" will be sent to the PC. There
will be no response if the command is not valid. If the Reader receives the enable PINPad
command (Hex A1) and there is no PINPad attached to the Reader, the scan code "O" will be
sent to the PC. If the Reader receives a PINPad command (see Command from the PC to the
PINPad) and the PINpad is disabled, the scan code "P" will be sent to the Host. There is no
carriage return following the response. The response time varies depending on the command.
The minimum is 3 milliseconds and the maximum is 1.1 seconds.

COMMANDS FROM PC TO PINPAD VIA THE MAG-WEDGE READER

Commands from the PC to the PINPad are in ASCII, they start with STX and end with ETX. All
ASCII characters between STX and ETX will be sent to the PINPad. The response and the data
from the PINPad will be converted to the keyboard scan code before being sent back to the PC.
All data from the PINPad will be followed by the scan code of the carriage return except for the
data in digit mode. The response time is the time from when the PC starts sending the last
character of the command until it receives the response. The response time varies depending on
the command. The minimum is 180 milliseconds and the maximum is 4 seconds.

Delays to be inserted are as follows:

1 )

When the PC sends a command to the Mag-Wedge Reader or the PINPad, the keyboard
also receives this command. Since it is not-a valid command for the keyboard, it issues
the resend command (Hex FE) following the invalid byte. There is no response from the
PC. Since the resend command is not a valid keyboard scan code, it cannot be detected
by application software. For example, INKEY$ command in programming language
Quick Basic cannot detect the resend command (Hex FE) from the keyboard. To avoid
any possible problem, it is recommended that a 5 millisecond delay should be inserted
between each byte of the PINPad command being sent to the Mag-Wedge Reader.

Advertising