19
WDR and then compare its calculated checksums with the ones received from the
WDR. If they match, the computer transmits an ACK back to the WDR; if they
don't match, the computer transmits back a NAK to the WDR. When the reader
receives an ACK or NAK, or times out, its LED returns to green. The reader does
not beep for an ACK, but produces two long beeps for a NAK or time-out. Set
time-out duration with Host Response Delay, described on page 23.
"Polled - No ACK/NAK"
causes the WDR to wait for the host to poll it (send that particular Reader's ID
character, and a CR) before transmitting bar code data. This applies only to
multiple readers connected to one serial port and is not the preferred method,
which is "Polled with ACK/NAK" described below and has an example program
on page 36. See page 35 for detailed explanations of polling.
"Polled with ACK/NAK"
After being polled with its ID, the WDR transmits the bar code data with a
checksum appended. The host then calculates the checksum characters (see
"ACK/NAK" on the previous page for the details), and compares it with the two
checksums received. If they're the same, the host sends that reader's ID and an
ACK. If different, the host sends the ID and a NAK. When the reader receives
its ID and the ACK or NAK, or if it times out, its LED returns to green. The
reader doesn't beep for an ACK, but produces two long beeps for a NAK or time-
out. Set time-out duration with Host Response Delay, described on page 23. For
a sample program to perform Polling with ACK/NAK, see page 37. See page 35
for detailed explanations of polling.
"Host Response Enabled
gives the host computer the power to cause the Reader to emit two different types
of beeps, and its LED to flash orange, by sending a control character out the serial
port to the reader. Especially if the reader is some distance from the computer so
the person reading bar codes doesn't see the screen, you may want to use this
feature to signify that a code was or was not accepted and that it was read in the
proper sequence.
Sending a control-G (BEL - ASCII 7) to the reader produces one quick beep and
orange flash.
Sending a control-R (DC2 - ASCII 12 hex or 18 decimal) to the reader produces
two long beeps and a long orange flash.
To use "Host Response Enabled" mode with Polled or Polled with ACK/NAK
Protocol, the host computer needs to precede the BEL or DC2 with the ID
character of the WDR Reader they are intended for. "Host Response Disabled"
disables this ability.