Multiple Adc Com Object Support; How To Create And Use The Adc Com Interfaces - Intermec 700 Series User Manual

Color mobile computer
Hide thumbs Also See for 700 Series:
Table of Contents

Advertisement

SECTION 6

Multiple ADC COM Object Support

A 700 Series Computer may have multiple reader engines to decode different
types of ADC data. For example, a bar code reader engine decodes raw bar code
data and passes it to a bar code reader COM object. An RFID reader engine de-
codes raw RFID tag data and passes it to an RFID tag reader COM object.
ADC COM interfaces are implemented as in-process COM objects. An instance
of the ADC COM object creates a logical connection to access or control the read-
er engine. Specifically, the IBarCodeReadConfig or IBarCodeReaderControl
COM objects can manage the bar code scanner configuration while the ADC
COM object can gather data simultaneously. These ADC COM objects or connec-
tions can be created in a single application or multiple applications. Up to seven
instances of a COM object can be created for a reader engine. For more informa-
tion, see "How to Create and Use the ADC COM Interfaces" below.
For data collection features, ADC COM objects also provide for read ahead and
non-read ahead data access and grid data editing.

How to Create and Use the ADC COM Interfaces

You can also use the Input Device Functions (starting on page 6-11) to create and
use the ADC COM interfaces.
1. Create and initialize the in-process Bar Code Reader object using
2. Set the data grid if data filtering is desired (default grid gives the applica-
3. Issue a read to accept the bar code data. The timestamp, symbology, and
4. Compile and link the application.
ITCDeviceOpen() (see page 6-11). This function returns a COM Interface
pointer to the Bar Code Reader Object created by the function.
tion all the data). Below is a sample code of how to set the grid to accept
Code 39 data that starts with the letter "A" and is not a reader command.
ITC_BARCODEREADER_GRID stBCGrid;
stBCGrid.stDIGrid.szDataMask = TEXT("A%s");
stBCGrid.stDDGrid.dwSymbologyMask = BARCODE_SYMBOLOGY_CODE39;
stBCGrid.dwDataSourceTypeMask = ITC_DATASOURCE_USERINPUT;
HRESULT hrStatus = pIBCControl->SetAttribute(
ITC_RDRATTR_GRID,
reinterpret_cast<BYTE *>(&stBCGrid),
sizeof(stBCGrid)
);
data type are put into the ITC_BARCODE_DATA_DETAILS structure.
Passing in a pointer to this structure is optional. The following sample code
uses an infinite timeout.
ITC_BARCODE_DATA_DETAILS stBCDetails;
BYTE rgbBCData[1024]; // Buffer used to accept the bar code data
DWORD dwBytesReceived; // Number of bytes in the return data.
HRESULT hrStatus = pIBCControl->Read(
rgbBCData,
sizeof(rgbBCData),
&dwBytesReceived,
& stBCDetails,
INFINITE
);
700 Series Color Mobile Computer User's Manual
Scanner Support
6-3

Advertisement

Table of Contents
loading

Table of Contents