Compaq 99875320-5 manual Result Code, GET and SET Property Commands

Page 23

Section 4. USB Communications

data. The HID specification requires that Reports be fixed in length. Command data may vary in length. Therefore, the Report should be filled with zeros after the valid data.

RESULT CODE

This one-byte field contains the value of the result code. There are two types of result codes: generic result codes and command-specific result codes. Generic result codes always have the most significant bit set to zero. Generic result codes have the same meaning for all commands and can be used by any command. Command-specific result codes always have the most significant bit set to one. Command-specific result codes are defined by the command that uses them. The same code can have different meanings for different commands. Command-specific result codes are defined in the documentation for the command that uses them. Generic result codes are defined in the following table.

Value

Result Code

Description

(Hex)

 

 

00

SUCCESS

The command completed successfully.

01

FAILURE

The command failed.

02

BAD_PARAMETER

The command failed due to a bad

 

 

parameter or command syntax error.

GET AND SET PROPERTY COMMANDS

The Get Property command gets a property from the device. The Get Property command number is 0x00.

The Set Property command sets a property in the device. The Set Property command number is 0x01.

The Get and Set Property command data fields for the requests and responses are structured as follows:

Get Property Request Data:

Data Offset

Value

0

Property ID

Get Property Response Data:

Data Offset

Value

0 – n

Property Value

Set Property Request Data:

 

Data Offset

Value

 

0

Property ID

 

1 – n

Property Value

Set Property Response Data:

 

None

 

15

Image 23
Contents October Registered to ISO USB HID IntelliheadPage Rev Number Date RevisionsLimitation on Liability Limited WarrantyFCC Warning Statement FCC Compliance Statement Table of Contents Vii USB IntelliHead 3-Track Features Features and SpecificationsUSB HID IntelliHead Swipe Reader Hardware ConfigurationsAccessories Reference DocumentsFeatures and Specifications SpecificationsUSB HID IntelliHead Swipe Reader USB Connection InstallationWindows Plug and Play Setup Pin Number Signal Cable ColorUSB HID IntelliHead Swipe Reader Card Read OperationUSB HID IntelliHead Swipe Reader HID Usages USB CommunicationsValue Report DescriptorUsage ID Usage Name Hex Type Report TypeOffset Usage Name Card DataTrack 1 Decode Status USB Communications Value HexTrack 2 Data Length Track 2 Decode StatusTrack 3 Decode Status Track 1 Data LengthTrack 2 Data Card Encode TypeTrack Data Track 1 DataData CommandsCommand Number Data LengthResult Code GET and SET Property CommandsCmd Num Data Len Prp ID Softwareid PropertyValue Property ID Description Hex Property Type DescriptionResult Code Data Len Prp Value 31 32 Serialnum PropertyCmd Num Data Len Prp ID Prp Value 31 32 Result Code Data LenResult Code Data Len Prp Value Pollinginterval PropertyCmd Num Data Len Prp ID Prp Value Maxpacketsize Property Trackidenable Property Interfacetype Property Decodeenable Property Cmd Num Data Len Resetdevice CommandUSB HID IntelliHead Swipe Reader Operation InstallationDemo Program Source Code Part Number Title Appendix A. DrawingsUSB HID IntelliHead Swipe Reader Appendix A. Drawings USB HID IntelliHead Swipe Reader Appendix A. Drawings USB HID IntelliHead Swipe Reader Appendix A. Drawings USB HID IntelliHead Swipe Reader Appendix A. Drawings USB HID IntelliHead Swipe Reader