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 20 of 40

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

Pages 156 to 164 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 156

Scanner Support

SECTION 6

IBarCodeReaderControl::Initialize

This function opens and initializes a communications channel with a logical bar code reader engine. Syntax: HRESULT IBarCodeReaderControl::Initialize ( LPCTSTR pszDeviceName, ITC_DEVICE_FLAGS eDeviceFlags ) ; Parameters: pszDeviceName eDeviceFlags

[in] Pointer to a string with device on which to initialize the logical connection. The device 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 applications. Data Buffering starts after the first call to IADC::Read ().

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

700 Series Color Mobile Computer User’s Manual

6-19

Page 157

Scanner Support

SECTION 6

IBarCodeReaderControl::IssueBeep

This function causes the reader engine to generate a high beep, a low beep, or a custom beep. The high beep and low beep are preconfigured beep tones and durations. The custom beep allows the client to specify the frequency and duration. The volume is the current volume setting. Note this is not implemented. Syntax: HRESULT IBarCodeReaderControl::IssueBeep( ITC_BEEP_SPEC rgBeepRequests[], DWORD dwNumberOfBeeps ); Parameters: rgBeepRequests

[in] Array of ITC_BEEP_SPEC structures that identifies the beep type. The beep structure is:

typedef struct tagITCBeepSpec { ITC_BEEP_TYPE eBeepType; // Identifies the type of beep // Following fields used only if the beep type is ITC_CUSTOM_BEEP. WORD wPitch; // Frequency, in Hz, of the beep. WORD wOnDuration; // Duration, in milliseconds, of Beep On. WORD wOffDuration; // Duration, in milliseconds, of Beep Off // Beep Off is used to separate individual beeps } ITC_BEEP_SPEC; typedef enum tagITCBeepType { ITC_LOW_BEEP, // Issue the default low beep. ITC_HIGH_BEEP, // Issue the default high beep. ITC_CUSTOM_BEEP, // Issue a custom beep. } ITC_BEEP_TYPE;

dwNumberOfBeeps

[in] Identifies the total number of beeps in rgBeepRequests.

Return Values: E_NOTIMPL as this function is not implemented. See Also: IBarCodeReaderControl::CancelReadRequest IBarCodeReaderControl::ControlLED IBarCodeReaderControl::Initialize IBarCodeReaderControl::QueryAttribute IBarCodeReaderControl::Read IBarCodeReaderControl::SetAttribute IBarCodeReaderControl::TriggerScanner

6-20

700 Series Color Mobile Computer User’s Manual

Page 158

Scanner Support

SECTION 6

IBarCodeReaderControl::QueryAttribute

This function retrieves the device-specific grid, the scanner enable status, and the LED control status for the current bar code reader engine. Syntax: HRESULT IBarCodeReaderControl::QueryAttribute ( ITC_BARCODEREADER_ATTRIBUTE_ID eAttr, BYTE rgbAttrBuffer[], DWORD dwAttrBufferSize ); Parameters: eAttr

[in]

Specifies the attribute. See IBarCodeReaderControl::SetAttribute on page 6-24 for the attributes.

rgbAttrBuffer

[out]

Contains buffer for the attribute to be queried. The structure of rgbAttrBuffer depends on the attribute being queried. See IBarCodeReaderControl::SetAttritbute for a description of these structures.

dwAttrBufferSize

[in]

The maximum number of bytes that rgbAttrBuffer can store.

Remarks: The following attributes are not supported on the imager: ITC_RDRATTR_TONE_ENABLE ITC_RDRATTR_VOLUME_LEVEL ITC_RDRATTR_TONE_FREQUENCY ITC_RDRATTR_GOOD_READ_BEEPS_NUMBER ITC_RDRATTR_GOOD_READ_BEEP_DURATION Return Values: A standard status code that indicates success or failure. See Also: IBarCodeReaderControl::CancelReadRequest IBarCodeReaderControl::ControlLED IBarCodeReaderControl::Initialize IBarCodeReaderControl::IssueBeep IBarCodeReaderControl::Read IBarCodeReaderControl::SetAttribute IBarCodeReaderControl::TriggerScanner

700 Series Color Mobile Computer User’s Manual

6-21

Page 159

Scanner Support

SECTION 6

IBarCodeReaderControl::Read

This function reads data from the bar code input device. This method performs the same function as IADC::Read () except that it provides additional information about data received such as bar code symbology used, data type, and time stamp of received data. Syntax: HRESULT IBarCodeReaderControl::Read ( BYTE rgbDataBuffer[], DWORD dwDataBufferSize, DWORD pnBytesReturned, ITC_BARCODE_DATA_DETAILS pBarCodeDataDetails, DWORD dwTimeout ); Parameters: rgbDataBuffer [in] Pointer to the buffer that receives data from the device. dwDataBufferSize [in] Maximum number of bytes that can be stored in rgbDataBuffer. pnBytesReturned [out] Pointer to the DWORD location that will store the bytes returned in rgbDataBuffer. pBarCodeDataDetails [in] Address of data structure in which to put the data details. This field may be NULL. The ITC_BARCODE_DATA_DETAILS is: typedef struct tagITCBarCodeDetails { WORD wStructSize, ITC_BARCODE_SYMBOLOGY_ID eSymbology, ITC_BARCODE_DATATYPE eDataType, SYSTEMTIME stTimeStamp, }ITC_BARCODE_DATA_DETAILS; typedef enum tagBarCodeDataType { BARCODE_DATA_TYPE_UNKNOWN = 1, BARCODE_DATA_TYPE_ASCII, BARCODE_DATA_TYPE_UNICODE, }ITC_BARCODE_DATATYPE;

where: wStructSize Size of structure. Used for versioning structure. eSymbology Symbology of the returned data. eDataType Identifies data types as ASCII, UNICODE, etc. stTimeStamp Timestamp of the received data. BARCODE_DATA_TYPE_UNKNOWN Data in unknown. BARCODE_DATA_TYPE_ASCII Data is ASCII. BARCODE_DATA_TYPE_UNICODE Data is UNICODE. dwTimeout [in] Number of milliseconds caller waits for data. If you set a timeout, the call will be blocked until data is received. 0 If data not available, returns quickly. INFINITE Waits until data is available. Return Values: HRESULT that indicates success or failure. 6-22

700 Series Color Mobile Computer User’s Manual

Page 160

Scanner Support

SECTION 6

See Also: IBarCodeReaderControl::CancelReadRequest IBarCodeReaderControl::ControlLED IBarCodeReaderControl::Initialize IBarCodeReaderControl::IssueBeep IBarCodeReaderControl::QueryAttribute IBarCodeReaderControl::SetAttribute IBarCodeReaderControl::TriggerScanner

700 Series Color Mobile Computer User’s Manual

6-23

Page 161

Scanner Support

SECTION 6

IBarCodeReaderControl::SetAttribute

This function enables and disables the laser scanner, sets the bar code reader engine specific grid, and enables or disables the reader engine LED control. Syntax: HRESULT IBarCodeReaderControl::SetAttribute ( ITC_BARCODEREADER_ATTRIBUTE_ID eAttr, BYTE rgbAttrBuffer[], DWORD dwAttrBufferSize ); Parameters: eAttr

[in] Identifies the attribute to set. Only one attribute can be set at a time. The attributes are: ITC_RDRATTR_SCANNER_ENABLE Enable or disable scanner for all connections. ITC_RDRATTR_GOOD_READ_LED_ENABLE Enables and disables the reader engine from controlling the good read LED. ITC_RDRATTR_TONE_ENABLE Enables and disables the reader engine from issuing beeps. ITC_RDRATTR_VOLUME_LEVEL Sets beep volume level. ITC_RDRATTR_TONE_FREQUENCY Sets beep frequency. ITC_RDRATTR_GOOD_READ_BEEPS_NUMBER Sets number of beeps for a good read. ITC_RDRATTR_GOOD_READ_BEEP_DURATION Sets duration of beeps for a good read. 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: nFilterChars

Number of characters in pszDataMask. szFilter Data mask specification. See “Grid Data Filtering.” ITC_MAXFILTER_CHARS Maximum number of characters in a filter specification. Includes NULL termination.

rgbAttrBuffer

6-24

[in] Contains data for the attribute to be set. Depending on eAttr, the rgbAttrData will be mapped to the appropriate structure as shown in the table on the next page.

700 Series Color Mobile Computer User’s Manual

Page 162

Scanner Support

SECTION 6 eAttr

Data Structure contained in rgbAttrBuffer

ITC_RDRATTR_GRID

ITC_BARCODEREADER_READER_GRID Reader Engine specific grid only.

ITC_RDRATTR_SCANNER_ENABLE

BOOL TRUE FALSE

Enable scanner. Disable scanner.

ITC_RDRATTR_GOOD_READ_LED_ENABLE

BOOL TRUE FALSE

Reader Engine controls good read LED. Good read LED is not controlled.

ITC_RDRATTR_DATA_VALID_LED_ENABLE

BOOL TRUE FALSE

Reader Engine controls data valid LED. Data valid LED is not controlled.

ITC_RDRATTR_TONE_ENABLE

BOOL TRUE FALSE

Reader Engine issues beeps. Beeps are not issued.

ITC_RDRATTR_VOLUME_LEVEL

ITC_BEEP_VOLUME An enumerator that identifies the beep volume level control. Valid range for S9C: typedef enum tagBeepVolume { ITC_BEEP_VOLUME_LOW = 0, ITC_BEEP_VOLUME_MEDIUM = 2, ITC_BEEP_VOLUME_HIGH = 1 //Default }ITC_BEEP_VOLUME

Note: Due to the hardware design on this 700 Series Computer, the volume level can be either OFF (ITC_BEEP_VOLUME_LOW) or ON (ITC_BEEP_VOLUME_MEDIUM/HIGH). ITC_RDRATTR_TONE_FREQUENCY

DWORD A value that identifies the tone frequency in Hz. Valid range for S9C: 1000–4095 Hz (default: 2090). Note: The value is divided by 10 for storage. On retrieval, the scanner rounds off the value to the nearest 10 Hz, then multiplies the value by 10. For example, the value sent to the scanner is 2095. On retrieval, the value returned is 2090.

ITC_RDRATTR_GOOD_READ_BEEPS_NUMBER

ITC_GOOD_READ_BEEPS_NUMBER An enumerator identifying the good read beeps number. Valid range for S9C: typedef enum tagGoodReadBeepsNumber { ITC_NUM_BEEPS_NONE = 0, ITC_NUM_BEEPS_ONE = 1, // Default ITC_NUM_BEEPS_TWO = 2 }ITC_GOOD_READ_BEEPS_NUMBER

ITC_RDRATTR_GOOD_READ_BEEP_DURATION

DWORD A value identifying the good read beep duration in ms. Valid range for S9C: 0–2550 ms (Default: 80). Note: The value is divided by 10 for storage. On retrieval, the scanner rounds the value to the nearest 10 ms, then multiplies the value by 10.

700 Series Color Mobile Computer User’s Manual

6-25

Page 163

Scanner Support

SECTION 6 dwAttrBufferSize

[in] The size of rgbAttrBuffer in bytes.

Return Values: HRESULT that indicates success or failure. Remarks: Read ahead and non-read ahead clients can change the grid. Since changing the grid changes the entire reader engine grid, use IBarCodeReaderControl::QueryAttribute to retrieve the current reader engine grid and grid changes before sending back using SetAttribute. The grid structure is typedef struct tagBarCodeReaderGrid. { ITC_DI_GRID stDIGrid; // Device independent grid. ITC_DDBARCODE_GRID stDDGrid; // Reader engine dependent grid DWORD dwDataSourceTypeMask; } ITC_BARCODEREADER_GRID; ITC_DI_GRID typedef struct tagItcBarCodeGrid { DWORD dwSymbologyMask; // Symbologies to be received. } ITC_DDBARCODE_GRID;

When the scanner is enabled, it scans when the scan button is pressed or the trigger is pulled. When the scanner is disabled, it does not respond when the scan button is pressed or the trigger is pulled. The following attributes are not supported on the imager: ITC_RDRATTR_TONE_ENABLE ITC_RDRATTR_VOLUME_LEVEL ITC_RDRATTR_TONE_FREQUENCY ITC_RDRATTR_GOOD_READ_BEEPS_NUMBER ITC_RDRATTR_GOOD_READ_BEEP_DURATION See Also: IBarCodeReaderControl::CancelReadRequest IBarCodeReaderControl::ControlLED IBarCodeReaderControl::Initialize IBarCodeReaderControl::IssueBeep IBarCodeReaderControl::QueryAttribute IBarCodeReaderControl::Read IBarCodeReaderControl::TriggerScanner

6-26

700 Series Color Mobile Computer User’s Manual

Page 164

Scanner Support

SECTION 6

IBarCodeReaderControl::T riggerScanner

This function turns the scanner on and off. The client application must coordinate control of the scanner with the user. Syntax: HRESULT IBarCodeReaderControl::TriggerScanner ( BOOL fScannerOn ); Parameters: fScannerOn

[in] Set TRUE to turn the scanner on. Set FALSE to turn the scanner off.

Return Values: HRESULT that indicates success or failure. Remarks: The scanner will be turned on or off independent of the actions of the users. The client application must coordinate control of the scanner with the user. When the scanner is turned on, its behavior is controlled by the trigger mode. That is, in one shot mode, the laser turns off when a label is scanned; in auto-trigger mode, the laser remains on. See Also: IBarCodeReaderControl::CancelReadRequest IBarCodeReaderControl::ControlLED IBarCodeReaderControl::Initialize IBarCodeReaderControl::IssueBeep IBarCodeReaderControl::QueryAttribute IBarCodeReaderControl::Read IBarCodeReaderControl::SetAttribute

700 Series Color Mobile Computer User’s Manual

6-27