Host poll timeout property – MagTek USB HID SURESWIPE & USB HID SWIPE READER User Manual

Page 30

Advertising
background image

USB HID Swipe Reader

24

Example Get INTERFACE TYPE property Response (Hex):

Result Code Data Len

Prp Value

00

01

00


HOST POLL TIMEOUT PROPERTY

Property ID:

0x52

Property Type:

Byte

Length:

1 byte

Get Property:

Yes

Set Property:

Yes

Default Value:

0x02 (2 seconds)

Description:

This property can be used to adjust the device’s host poll timeout. The
property can be set to 0 to disable the timeout or it can be set to a value in the
range of 1 to 60 seconds.


The host poll timeout was added around the year 2010 because if a USB
suspend occurred while the reader was in the middle of transmitting card data
to the host, the reader would no longer be able to read cards until power
cycled. It was given a fixed value of 2 seconds. If a USB suspend now
occurred while the reader was transmitting card data, this timeout would occur
and the remainder of the card data would be discarded and the reader would
be ready to read the next card once it got a USB resume signal. Getting a
USB suspend while transmitting card data is not an event that would be
expected to occur under normal operating conditions, however a customer was
seeing this occur due to abnormal USB bus activity from other devices on the
bus.


Around the year 2012, starting with firmware part number 21042886 Revision
C.01, this timeout was made adjustable with this property so that it could be
disabled or adjusted. This property was added because some printers, made
by HP and used as a host in this application, were occasionally ceasing to poll
the reader for more than two seconds which would cause a timeout to occur
which would in turn cause the host application to have problems. The timeout
was disabled to resolve this problem. The printer was not behaving properly
in this case. This problem would not be expected to occur on an error free
USB Bus.


Not all readers contain this timeout and not all readers contain this property to
adjust it.

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 HOST POLL TIMEOUT property Request (Hex):

Cmd Num

Data Len

Prp ID

Prp Value

01

02

52

02

Advertising