11.0
M
ULTI
S
CANNER
S
UPPORT
(WIN
CE
ONLY)
The following describes the changes to SocketScan to handle the CF RFID Reader-Scan Card. The CF RFID
Reader-Scan Card is really two scanners in one: RFID + CFSC. This version treats the CF RFID Reader-Scan Card
as two individual scanning devices and therefore extends beyond just the CF RFID Reader-Scan Card to allow
other scanners to coexist. One example is the CF Scan Card (CFSC) and the Cordless Hand Scanner (CHS).
NOTE:
Currently, the SDK doesn’t support two hardware configurations: CFSC or CF RFID Reader-
Scan Card and the SD Scan Card.
This version of the SDK allows for multiple scanners if enabled. The goal was to maintain backward
compatibility so ScanAPI works exactly like it has with legacy applications (non-multiple-scanner aware). A
new scanner API call was added that tells ScanAPI that the application supports multiple scanners. The
change to an application to support multiple scanners is the ability to handle multiple
wmInsertion
and
wmRemoval
callback messages. When the CF RFID Reader-Scan Card is inserted and an application is
registered with ScanApi.dll, it will receive two
wmInsertion
callbacks (one for RFID and one for CFSC). Each
wmInsertion
callback will include a unique scanner handle that is used to communicate with that particular
scanning device. The scanner handle is used to trigger the device, get scanner status, and determine when
data is available from the scanner. In the past this scanner handle has always been assumed to be 1 and still is
when the multiple scanning capability is not enabled. It can now range from 1 to 10.
This version of Scan API also supports scanner triggering using a new SendMessage command. The
application or a stand-alone program can send a message to ScanAPI to trigger a particular scanner
independent of which application is running. (The previous version only allowed an external trigger through
the SocketScan.exe application.) To help this process some of the scanner handles have been reserved based
on the scanner type. This provides a consistent way to trigger a particular scanning device independent of
the "insertion order." The predefined scanner handles are:
RFID
ISC/RFID-ISC
SDSC
CHS/CRS
CF Scan Card 5X
MAGSTRIPE
1 2 3
4
5
6
Note: The predefined values are defined in the Plug-n-Play string for the scanner type (see
DesiredHandle
for more information).
In the case of multiple scanners with predefined handles, the first scanner gets the reserved handle number
and all other scanners of that type get the first available scanner handle starting with 10 and working
downwards.
A few sample programs have been precompiled to trigger the RFID and CFSC scanners, namely
TriggerRFID.exe and TriggerISC.exe. Assigning these programs to a button on the PDA will trigger the RFID
or CFSC scanner (if the scanner is present). The developer can use these applications or compile his own to
take advantage of this feature.
11.1
R
EGISTRY
S
ETTINGS FOR THE
CF
RFID
R
EADER
-S
CAN
C
ARD
DisablePlugSnd
April 8, 2010
Page 72
Document#: 6410-00147 K
Revision 2.28