The text of a manual · part 13 of 21
Symbol Palm Terminal Scanner System Software Manual: Chapter 4 Hardware Parameter Functions, pages 97 to 106
Pages 97 to 106 of 168, from Symbol Palm Terminal Scanner System Software Manual
The original document is the PDF (1.2 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.
For the Symbol SPT-1700
Page 97
Chapter 4 Hardware Parameter Functions Introduction The Scan Manager functions in this section give you ability to set up the scanner. With these functions, an application can perform the following: !
Set scan angle and aim duration
!
Set triggering mode
!
Set beep durations and frequencies
!
Set redundancy and security levels
!
Identify and manipulate barcode data
4-1
Page 98
Symbol Palm Terminal Scanner System Software Manual
Returned Status Definitions The hardware parameter functions may return one of the status codes described in Table 4-1. Table 4-1. Returned Status Codes STATUS CODE
4-2
DEFINITION
Any non-negative value (0 to 32767)
Parameter value.
STATUS_OK
The function’s parameters were verified. If a function must wait for an ACK from the scanner, STATUS_OK indicates that the ACK was received.
NOT_SUPPORTED
The last packet received from the scanner generated either a NAK_DENIED or NAK_BAD_CONTEXT status. This usually indicates that the specified parameter is not supported by this scanner, or the scanner was unable to comply with the request.
COMMUNICATIONS_ERROR
Either a timeout condition or the maximum number of retries (or both) occurred. The previous transmit message was not verified through an ACK, and therefore, is questionable.
BAD_PARAM
One or more of the function call parameters supplied by the user was not in the expected range.
BATCH_ERROR
The limits of a batch function have been exceeded. Unless otherwise indicated, functions that start with ScanSet are responsible for generating a batch command to establish scanner parameters. The parameters are not sent to the scanner until the ScanCmdSendParams() function is called, at which time a new batch is started.
ERROR_UNDEFINED
An error condition exists that is not specifically associated with the scanner or its communications.
Page 99
Hardware Parameter Functions
Hardware Parameter Functions Table 4-2 lists the hardware parameter functions described in this chapter. Table 4-2. Hardware Parameter Functions PARAMETER FUNCTION
PAGE
ScanGetAimDuration
4-5
ScanGetBeepAfterGoodDecode
4-6
ScanGetBeepDuration
4-7
ScanGetBeepFrequency
4-8
ScanGetBidirectionalRedundancy
4-9
ScanGetDecodeLedOnTime
4-10
ScanGetLaserOnTime
4-11
ScanGetLinearCodeTypeSecurityLevel
4-12
ScanGetPrefixSuffixValues
4-13
ScanGetAngle
4-14
ScanGetScanDataTransmissionFormat
4-15
ScanGetTransmitCodeIdCharacter
4-16
ScanGetTriggeringModes
4-17
ScanIsPalmSymbolUnit
4-18
ScanSetAimDuration
4-19
ScanSetAngle
4-20
ScanSetBeepAfterGoodDecode
4-21
ScanSetBeepDuration
4-22
ScanSetBeepFrequency
4-23
ScanSetBidirectionalRedundancy
4-24
ScanSetDecodeLedOnTime
4-25
ScanSetLaserOnTime
4-26
4-3
Page 100
Symbol Palm Terminal Scanner System Software Manual
Table 4-2. Hardware Parameter Functions
4-4
PARAMETER FUNCTION
PAGE
ScanSetLinearCodeTypeSecurityLevel
4-27
ScanSetPrefixSuffixValues
4-29
ScanSetScanDataTransmissionFormat
4-30
ScanSetTransmitCodeIdCharacter
4-31
ScanSetTriggeringModes
4-38
Page 101
Hardware Parameter Functions
ScanGetAimDuration Purpose Identifies the amount of time the aiming pattern is seen before a scan begins.
Prototype int ScanGetAimDuration ( void);
Returned Status Integer in the range [0...99], representing a time period of 0.0 to 9.9 seconds, in 0.1-second increments. If an error occurs, the returned status is one of the following: COMMUNICATIONS_ERROR NOT_SUPPORTED
See Also ScanSetAimDuration
4-5
Page 102
Symbol Palm Terminal Scanner System Software Manual
ScanGetBeepAfterGoodDecode Purpose Identifies whether the unit has been set to beep after a good decode.
Prototype int ScanGetBeepAfterGoodDecode ( void);
Returned Status Zero=DISABLE >zero=ENABLE If an error occurs, the returned status is one of the following: COMMUNICATIONS_ERROR NOT_SUPPORTED
See Also ScanSetBeepAfterGoodDecode
4-6
Page 103
Hardware Parameter Functions
ScanGetBeepDuration Purpose Identifies the duration of the beep for the specified beep types. Prototype int ScanGetBeepDuration ( DurationType type);
Parameters -> type
Must be one of the following values: DECODE SHORT MEDIUM LONG
Returned Status STATUS_OK See Also ScanSetBeepDuration
4-7
Page 104
Symbol Palm Terminal Scanner System Software Manual
ScanGetBeepFrequency Purpose Gets the frequency of the beeper for the specified beep types. Prototype int ScanGetBeepFrequency ( FrequencyType beep_type);
Parameters -> beep_type
Must be one of the following values: DECODE LOW MEDIUM HIGH
Returned Status STATUS_OK See Also ScanSetBeepFrequency
4-8
Page 105
Hardware Parameter Functions
ScanGetBidirectionalRedundancy Purpose Identifies whether a barcode must be successfully scanned in both directions before being decoded.
Prototype int ScanGetBidirectionalRedundancy ( void);
Returned Status ENABLE DISABLE If an error occurs, the returned status is one of the following: COMMUNICATIONS_ERROR NOT_SUPPORTED
See Also ScanSetBidirectionalRedundancy
4-9
Page 106
Symbol Palm Terminal Scanner System Software Manual
ScanGetDecodeLedOnTime Purpose Identifies the amount of time the LED is to be turned on when a successful scan is performed.
Prototype int ScanGetDecodeLedOnTime ( void);
Returned Status Integer in the range [0...100], representing a time period of 0.0 to 10.0 seconds, in 0.1-second increments. If an error occurs, the returned status is one of the following: COMMUNICATIONS_ERROR NOT_SUPPORTED
See Also ScanSetDecodeLedOnTime
4-10