SECTION 3
Supporting Windows Applications
PEN*KEY
R
6200/6300 Hand-Held Computer Programmer’s Reference Guide 3-27
AimingBeamDuration
Controls the length of time in milliseconds that a longĆrange scanner using a
dedicated UART emits an aiming beam. Default value is zero. All other
scanners should have this option set to 0.
DedicatedUARTAddress
Specifies the address of a dedicated UART. The value must be a valid I/O
address in decimal form. Default value: 488 decimal (1E8 hex).
A value of 0 causes the driver not to look for a dedicated UART.
DedicatedUARTIRQ5
Sets the IRQ line, for the scanner UART interrupt.
Default value: 5
Other valid settings:
4 for the COM1 port
3 for the COM2 port.
Postamble
(HandĆheld scanners only)
, this option sets the value of the terminating
character of the packet sent by the scanner. Default setting: 03 (ETX). Other
valid settings include 10 (LF) and 13 (CR).
Usage
The scanner driver can be configured to use an integrated scanner or a tethered
scanner. The integrated scanner uses a private UART on the 6300 Computer.
Whenever an
OpenDriver
call is issued to the scanner, the UART is initialized.
If a tethered scanner is used, COM1 is initialized for scanning.
For a tethered scanner, there is no attempt made to record and restore the comm
port, so any application multiplexing COM1 with the scanner is required to
open" the hardware for COM1 and initialize it after a
CloseDriver
call is made.
The previous paragraphs do not apply when you use a scanner that has its own
dedicated UART, such as an integrated scanner for the 6300 Computer. In that
case, the communications with the scanner are completely separated from the
external communications ports. For example:
hDRVR = OpenDriver(“scanner”, (LPCSTR)NULL, (LPARAM)NULL);
External RSĆ232 COM1 connection is disabled, COM1 is opened from Windows,
the scanner is powered on, and scanner data is delivered to the application in
focus as
WM_CHAR
messages. These messages are distinguishable from standard"
WM_CHAR
messages in that the virtual key code in
wParam
is the ASCII value of a
scanned character and
lParam
is sent as
0x00000001
.
In particular, the OEM
nibble (bits 16ć23) containing the OEM scan code, is 0 (but only if the
EnableScanCodes
, referred to in the definition on page 3Ć26, is set to FALSE.
CloseDriver(hDRVR, (LPARAM)NULL, (LPARAM)NULL);
External RSĆ232 communications connection is enabled, COM1 is closed, and the
scanner is powered off.
3. Windows
Applications