Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 19 of 40

700 Series Color Mobile Computer User's Manual: Section 6 - Scanner Support, pages 147 to 155

Pages 147 to 155 of 346, from 700 Series Color Mobile Computer User's Manual

The original document is the PDF (2.9 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

Filed in the catalog under the Intermec Model 720, Intermec Model 740, Intermec Model 741, Intermec Model 751, Intermec Model 760, Intermec Model 710, Intermec Model 730 and Intermec Model 761

Page 147

Scanner Support

SECTION 6

See the following example signature capture label and dimensions. These image acquisition features are provided through the IImage Interface defined on page 6-65.

Y-axis

Bar code height

–X

X-axis

Intelligent bar code units

–Y

6-10

700 Series Color Mobile Computer User’s Manual

Page 148

Scanner Support

SECTION 6

Create and Delete ADC COM Object Functions Use these functions to create and release ADC COM interfaces. ITCDEVMGMT.H is the header file and ITCDEVMGMT.LIB is the library.

ITCDeviceOpen

This function opens and initializes a communication channel to the device. In C++, this function returns a pointer to an interface on which the methods are called. In C, this function returns a handle, which is the first parameter in each of the interface function calls. Syntax: HRESULT ITCDeviceOpen( LPCTSTR pszDeviceName, REFIID iid, ITC_DEVICE_FLAGS eDeviceFlags, void** ppvObject ); Parameters: pszDevice

[in] iid

[in] eDeviceFlags

[in]

Enumeration that identifies the read characteristics as follows: ITC_DHDEVFLAG_READAHEAD Data is buffered on behalf of the calling applications. Data Buffering starts after the first call to IADC::Read (). ITC_DHDEVFLAG_NODATA The client application is managing the device to set its configuration or control its interface but not to collect data from the device.

ppvObject

[out]

A pointer to the interface pointer identified by iid. If the object does not support this interface, ppvObject is set to NULL.

Pointer to a string that contains the device name on which to initialize the logical connection. The device name (Merlin 1) identifies a communications port. Use “default” for all internal scanners, such as Imager, SE900, etc. Use “ExtScanner” for tethered scanners. The identifier of the interface being requested.

Return Values: HRESULT that indicates success or failure. See Also: ITCDeviceClose

ITCDeviceClose

This function closes the interface opened with ITCDeviceOpen. Syntax: HRESULT ITCDeviceClose( IUnknown** ppvObject ); Parameters: ppvObject

[in,out]

A pointer to the interface pointer created by ITCDeviceOpen. If successful on output, this pointer is set to NULL.

Remarks: On Windows, this interface decrements the reference count. So alternatively, IUnknown::Release() could be used and must be used if reference counting is performed with IUnknown::AddRef(). On DOS, this function closes all resources associated with the channel. 700 Series Color Mobile Computer User’s Manual

6-11

Page 149

Scanner Support

SECTION 6

IADC Functions IADC functions provide ADC data in an input device independent manner. This interface can receive bar code data, RFID data, and other ADC data from data collection engines, such as a bar code scanner. Use IADC functions if bar code specifics such as symbology are not important to the application. IADC functions are the following. IADC.H is the header file and ITCUUID.LIB contains the IID_IADC Interface GUID value used to obtain the interface. " " " " " "

IADC::CancelReadRequest (page 6-12) IADC::Initialize (page 6-13) IADC::QueryAttribute (page 6-14) IADC::QueryData (page 6-14) IADC::Read (page 6-15) IADC::SetAttribute (page 6-16)

IADC::CancelReadRequest

This function cancels a pending Read() request. This call can be made on a separate thread as a Read() or on the same thread. On a separate thread, the function is useful in unblocking a blocked Read() so that other operations can be performed. On the same thread, this function is useful in stopping data from being collected on behalf of a Read Ahead Client. Syntax: HRESULT IADC::CancelReadRequest( BOOL FlushBufferedData, WORD *pwTotalDiscardedMessages, DWORD *pdwTotalDiscardedBytes ); Parameters: FlushBufferedData

[in] True

Flush and discard all already buffered data. False Do not discard data, data will be returned on the next read call.

pwTotalDiscardedMessages [in/out]

Total number of discarded buffered labels or tags.

pdwTotalDiscardedBytes

Total number of discarded bytes.

Return Values: HRESULT that indicates success or failure. Remarks: The return value indicates whether a read was pending. See Also: IADC::Initialize IADC::QueryAttribute IADC::QueryData IADC::Read IADC::SetAttribute

6-12

700 Series Color Mobile Computer User’s Manual

Page 150

Scanner Support

SECTION 6

IADC::Initialize

This function initializes a connection by opening a communications channel with a logical reader engine. The communications port is implicitly identified. This communication channel is required to collect data or configure the device. Syntax: HRESULT IADC::Initialize ( LPCTSTR pszDeviceName, ITC_DEVICE_FLAGS eDeviceFlags ) ; Parameters: pszDeviceName eDeviceFlags

[in] Pointer to a string that contains the device name on which to initialize the logical connection. The device name (Merlin 1) identifies a communications port. Use “default” for all internal scanners, such as Imager, SE900, etc. Use “ExtScanner” for tethered scanners. [in] Enumeration that identifies the read characteristic as follows: ITC_DHDEVFLAG_READAHEAD Data is buffered on behalf of the calling application. Data buffering starts after the first call to IADC::Read ().

Return Values: HRESULT that indicates success or failure. See Also: IADC::CancelReadRequest IADC::QueryAttribute IADC::QueryData IADC::Read IADC::SetAttribute

700 Series Color Mobile Computer User’s Manual

6-13

Page 151

Scanner Support

SECTION 6

IADC::QueryAttribute

This function retrieves a specified attribute that is device-independent. The specified attribute can be a grid or multiclient enable status. Syntax: HRESULT IADC::QueryAttribute ( ITC_ADC_ATTRIBUTE_ID eAttribID, BYTE rgbBuffer[], DWORD dwBufferSize, DWORD *pnBufferData ); Parameters: eAttribID

[in]

Specifies the attribute. Only one attribute can be queried at a time. See IADC::SetAttribute.

rgbBuffer

[out]

Contains buffer for the attribute to be queried. The structure of lpBuffer depends on the attribute being queried. See IADC::SetAttribute for a description of these structures.

dwBufferSize

[in]

The maximum number of bytes rgbBuffer can store.

pnBufferData

[out]

Pointer to the DWORD location to put the number of bytes stored in rgbBuffer.

Return Values: HRESULT that indicates success or failure. See Also: IADC::CancelReadRequest IADC::Initialize IADC::QueryData IADC::Read IADC::SetAttribute

IADC::QueryData

This function returns the status of user input data that has been buffered. Syntax: HRESULT IADC::QueryData ( DWORD *dwTotalBufferedBytes, WORD *wNumberOfMessages, DWORD *dwNextMessageSize ); Parameters: dwTotalBufferedBytes [out]

Total bytes buffered for connection.

wNumberOfMessages

[out]

Total messages buffered. For example, each buffer contains a single bar code scan.

dwNextMessageSize

[out]

Size (in bytes) of the next buffered message.

Return Values: A standard status code that indicates success or failure. See Also: IADC::CancelReadRequest IADC::Initialize IADC::QueryAttribute IADC::Read IADC::SetAttribute

6-14

700 Series Color Mobile Computer User’s Manual

Page 152

Scanner Support

SECTION 6

IADC::Read

This function requests user input data from the reader engine. This is a blocking function that returns either when there is data or after a timeout. Syntax: HRESULT IADC::Read ( BYTE rgbDataBuffer[], DWORD dwDataBufferSize, DWORD pnBytesReturned, SYSTEMTIME pSystemTime, DWORD dwTimeout ); Parameters: rgbDataBuffer

[in]

Pointer to the buffer that receives the data from the device.

dwDataBufferSize

[in]

Maximum number of bytes that can be stored in rgbDataBuffer.

pnBytesReturned

[out]

Pointer to the DWORD location to store the number of bytes returned in rgbDataBuffer.

pSystemTime

[out]

Pointer to a SYSTEMTIME structure that will hold the time stamp of the received data. This can be NULL if a timestamp is not needed.

dwTimeout

[in]

Number of milliseconds caller waits for data. This parameter is ignored if the Read Ahead flag is not set. 0 If data is not available, returns quickly. INFINITE Waits until data is available.

Return Values: HRESULT that indicates success or failure. See Also: IADC::CancelReadRequest IADC::Initialize IADC::QueryAttribute IADC::QueryData IADC::SetAttribute

700 Series Color Mobile Computer User’s Manual

6-15

Page 153

Scanner Support

SECTION 6

IADC::SetAttribute This function changes an attribute such as a grid specification. Syntax: HRESULT IADC::SetAttribute ( ITC_ADC_ATTRIBUTE_ID eAttribID, BYTE rgbData[], DWORD nBufferSize ); Parameters: eAttribID rgbData

[in] Identifies the attribute to set. Only one attribute can be set at a time. The attribute is: ITC_MULTICLIENT_ENABLE Indicates whether this client can coexist with other clients. [in] Contains data for the attribute to be set. Depending on the eAttribID, this will be mapped to the appropriate structure as follows: ITC_MULTICLIENT_ENABLE BOOL is the rgbData Data Structure. TRUE, Client can receive data with other clients (default). FALSE, Data stream to this client is turned off when there are other clients. ITC_DHATTR_READFILTER ITC_READFILTER is the rgbData Data Structure. The ITC_READFILE structure is defined in IADCDEVICE.H as follows: typedef struct { #define ITC_MAXFILTER_CHARS 240 WORD nFilterChars; TCHAR szFilter[ITC_MAXFILTER_CHARS]; } ITC_READFILTER;

where: ITC_MAXFILTER_CHARS Maximum number of characters in a filter specification. Includes NULL termination. nFilterChars szFilter nBufferSize

Number of characters in pszDataMask. Data mask specification. See “Grid Data Filtering.”

[in] Number of bytes in rgbData.

ITC_DHATTR_READFILTER Regular expression that performs data filtering and data editing. See “Grid Data Filtering” on page 6-4 for more information. Return Values: A standard status code that indicates success or failure. See Also: IADC::CancelReadRequest IADC::Initialize IADC::QueryAttribute IADC::QueryData IADC::Read 6-16

700 Series Color Mobile Computer User’s Manual

Page 154

Scanner Support

SECTION 6

IBarCodeReaderControl Functions IBarCodeReaderControl functions provide functionality for bar code collection and control only. These functions allow an application to: Trigger the bar code laser scanner Disable the scanner " Receive a bar code with details such as symbology scanned, data type (Unicode, ASCII), and the time the data was received. These functions include the following. IBARCODEREADER.H is the header file and ITCUUID.LIB contains the IID_IADC Interface GUID value used to obtain the interface. " "

" " " " " " " "

IBarCodeReaderControl::CancelReadRequest (page 6-17) IBarCodeReaderControl::ControlLED (page 6-18) IBarCodeReaderControl::Initialize (page 6-19) IBarCodeReaderControl::IssueBeep (page 6-20) IBarCodeReaderControl::QueryAttribute (page 6-21) IBarCodeReaderControl::Read (page 6-22) IBarCodeReaderControl::SetAttribute (page 6-24) IBarCodeReaderControl::TriggerScanner (page 6-27)

IBarCodeReaderControl::CancelReadRequest

This function cancels a pending IBarCodeReaderControl::Read request. If the read request is blocked, issue the CancelReadRequest from a separate thread. Syntax: HRESULT IBarCodeReaderControl::CancelReadRequest( BOOL FlushBufferedData, WORD *pwTotalDiscardedMessages, WORD *pwTotalDiscardedBytes ); Parameters: FlushBufferedData [in] TRUE Flushes and discards all buffered data. FALSE Does not discard data; data will be returned on the next read call. pwTotalDiscardedMessages [in/out]

Total number of discarded buffered labels or tags.

pwTotalDiscardedBytes

Total number of discarded bytes.

Return Values: HRESULT that indicates success or failure. See Also: IBarCodeReaderControl::ControlLED IBarCodeReaderControl::Initialize IBarCodeReaderControl::IssueBeep IBarCodeReaderControl::QueryAttribute IBarCodeReaderControl::Read IBarCodeReaderControl::SetAttribute IBarCodeReaderControl::TriggerScanner

700 Series Color Mobile Computer User’s Manual

6-17

Page 155

Scanner Support

SECTION 6

IBarCodeReaderControl::ControlLED

This function controls LED illumination on a tethered scanner. The good read LED and any valid LEDs will be turned on and off based on defined parameters. Syntax: HRESULT IBarCodeReaderControl::ControlLED( ITC_BARCODE_LASER_LED_ID eLED, BOOL fLedOn ); Parameters: eLED fLedOn

[in] The specified LED identifier. ITC_BARCODE_LASER_GOOD_READ_LED Identifies the good read LED. [in] TRUE turns on the LED. FALSE turns off the LED.

Return Values: HRESULT that indicates success or failure. Remarks: This function does not coordinate LED control with the scanner. If the scanner LED control is enabled, function results will be unpredictable. See Also: IBarCodeReaderControl::CancelReadRequest IBarCodeReaderControl::Initialize IBarCodeReaderControl::IssueBeep IBarCodeReaderControl::QueryAttribute IBarCodeReaderControl::Read IBarCodeReaderControl::SetAttribute IBarCodeReaderControl::TriggerScanner

6-18

700 Series Color Mobile Computer User’s Manual