Compaq 99875320-5 manual Commands, Command Number, Data Length

Page 22

USB HID IntelliHead Swipe Reader

COMMANDS

Most host applications do not need to send commands to the device. Most host applications only need to obtain card data from the device as described previously in this section. This section of the manual can be ignored by anyone who does not need to send commands to the device.

Command requests and responses are sent to and received from the device using feature reports. Command requests are sent to the device using the HID class specific request Set_Report. The response to a command is retrieved from the device using the HID class specific request Get_Report. These requests are sent over the default control pipe. When a command request is sent, the device will Nak the Status stage of the Set_Report request until the command is completed. This insures that, as soon as the Set_Report request is completed, the Get_Report request can be sent to get the command response. The usage ID for the command message was shown previously in the Usage Table.

The following table shows how the feature report is structured for command requests:

Offset

0

1

2 – 23

Field Name

Command Number

Data Length

Data

The following table shows how the feature report is structured for command responses.

Offset

0

1

2 – 23

Field Name

Result Code

Data Length

Data

COMMAND NUMBER

This one-byte field contains the value of the requested command number. The following table lists all the existing commands.

Value

Command Number

Description

(Hes)

 

 

00

GET_PROPERTY

Gets a property from the device

01

SET_PROPERTY

Sets a property in the device

02

RESET_DEVICE

Resets the device

DATA LENGTH

This one-byte field contains the length of the valid data contained in the Data field.

DATA

This multi-byte field contains command data if any. Note that the length of this field is fixed at 22 bytes. Valid data should be placed in the field starting at offset 2. Any remaining data after the valid data should be set to zero. This entire field must always be set even if there is no valid

14

Image 22
Contents USB HID Intellihead October Registered to ISOPage Revisions Rev Number DateLimited Warranty Limitation on LiabilityFCC Warning Statement FCC Compliance Statement Table of Contents Vii USB IntelliHead 3-Track Features and Specifications FeaturesReference Documents Hardware ConfigurationsAccessories USB HID IntelliHead Swipe ReaderSpecifications Features and SpecificationsUSB HID IntelliHead Swipe Reader Pin Number Signal Cable Color InstallationWindows Plug and Play Setup USB ConnectionUSB HID IntelliHead Swipe Reader Operation Card ReadUSB HID IntelliHead Swipe Reader USB Communications HID UsagesReport Type Report DescriptorUsage ID Usage Name Hex Type ValueUSB Communications Value Hex Card DataTrack 1 Decode Status Offset Usage NameTrack 1 Data Length Track 2 Decode StatusTrack 3 Decode Status Track 2 Data LengthTrack 1 Data Card Encode TypeTrack Data Track 2 DataData Length CommandsCommand Number DataGET and SET Property Commands Result CodeProperty Type Description Softwareid PropertyValue Property ID Description Hex Cmd Num Data Len Prp IDResult Code Data Len Serialnum PropertyCmd Num Data Len Prp ID Prp Value 31 32 Result Code Data Len Prp Value 31 32Cmd Num Data Len Prp ID Prp Value Pollinginterval PropertyResult Code Data Len Prp Value Maxpacketsize Property Trackidenable Property Interfacetype Property Decodeenable Property Resetdevice Command Cmd Num Data LenUSB HID IntelliHead Swipe Reader Demo Program InstallationOperation Source Code Appendix A. Drawings Part Number TitleUSB 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