Compaq 99875320-5 manual Maxpacketsize Property

Page 27

Section 4. USB Communications

MAX_PACKET_SIZE PROPERTY

Property ID:

0x03

Property Type:

Byte

Length:

1 byte

Get Property:

Yes

Set Property:

Yes

Default Value:

8

Description:

The value is a byte that represents the devices maximum packet size for the

 

Interrupt In Endpoint. The value can be set in the range of 1 – 64 and has

 

units of bytes. The maximum packet size tells the host the maximum size of

 

the Interrupt In Endpoint packets. For example, if the maximum packet size is

 

set to 8, the device will send HID reports in multiple packets of 8 bytes each

 

or less for the last packet of the report. This property can be used to speed up

 

or slow down the time it takes to send card data to the host. Larger packet

 

sizes speed up communications and smaller packet sizes slow down

 

communications. The trade-off is that speeding up the card data transfer rate

 

increases the USB bus bandwidth used by the device, and slowing down the

 

card data transfer rate decreases the USB bus bandwidth used by the device.

 

The value of this property will be sent to the host when the host requests the

 

device’s USB endpoint descriptor.

 

This property is stored in non-volatile memory, so it will persist when the unit

 

is power cycled. When this property is changed, the unit must be reset (see

 

Command Number 2) or power cycled to have these changes take effect.

Example Set Max Packet Size property Request (Hex):

Cmd Num

Data Len

Prp ID

Prp Value

01

02

03

08

Example Set Max Packet Size property Response (Hex):

Result Code

Data Len

Data

00

00

 

Example Get Max Packet Size property Request (Hex):

Cmd Num

Data Len

Prp ID

00

01

03

Example Get Max Packet Size property Response (Hex):

Result Code

Data Len

Prp Value

00

01

08

19

Image 27
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 LenPollinginterval Property Cmd Num Data Len Prp ID Prp ValueResult Code Data Len Prp Value Maxpacketsize Property Trackidenable Property Interfacetype Property Decodeenable Property Cmd Num Data Len Resetdevice CommandUSB HID IntelliHead Swipe Reader Installation Demo ProgramOperation 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