Adc Connection - Intermec 700 Series User Manual

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

Advertisement

SECTION 6
EXAMPLE 1:
Grid Filter Example 1
This accepts a serial number in which the encoded number is a six-character string beginning
with M followed by six numeric characters.
Filter
M[0--9]{6}
Effect
When a bar code, such as M270494, is scanned, all data is passed.
EXAMPLE 2:
Grid Filter Example 2
This formats a scanned Social Security number and forms it into an XML element tagged
"SSN".
Filter
([0--9]{3})([0--9]{2})([0--9]{4})= > <SSN > \1--\2--\3</SSN >
Effect
A bar code, such as 123456789, is passed and reformatted to
<SSN > 123-45-6789</SSN >
EXAMPLE 3:
Grid Filter Example 3
This deletes the first three and last five characters of a 21-character Code 128 label and de-
letes the first two characters of a 10-character Interleaved 2 of 5 label.
Filter
<]C > ...(.{13}).....= > \1; <]I > ..(........)= > \1
Effect
If Code 128, AAA1234567890123BBBBB becomes 1234567890123
If Interleaved 2 of 5, AA12345678 becomes 12345678
EXAMPLE 4:
Grid Filter Example 4
This inverts data such that the first alphabetic string (like a first name) and second alphabetic
string (like a last name) are reversed and separated by a comma and a space.
Filter
([[:alpha:]])+ ([[:alpha:]])+= > \2, \1
Effect
When a bar code with the data "Dexter Gordon" is scanned, the data is modified to read
"Gordon, Dexter".

ADC Connection

A 700 Series Computer can have both Bar Code and RFID reader engines with
each engine supporting multiple connections. Each connection allows an applica-
tion to access data or manage a configuration. An application could have multi-
ple connections.
// Get an instance of the ADC COM object that corresponds integrated scanner
IBarCodeReaderControl *pIBCControl;
// Pointer to the Bar Code Reader object
HRESULT hrStatus = ITCDeviceOpen( TEXT("default"),
IID_IBarCodeReaderControl, ITC_DHDEVFLAG_READAHEAD,
(LPVOID *) &pIBCControl);
// If the ADC object was successfully created and initialized, accept bar code data.
ITC_BARCODE_DATA_DETAILS stBCDetails;
stBCDetails.wStructSize = sizeof(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-7

Advertisement

Table of Contents
loading

Table of Contents