Card inserted property, Max packet size property – MagTek P-SERIES USB User Manual

Page 30

Advertising
background image

P-Series USB Insertion Reader

22

Example Get MSR Direction property Response (Hex):

Result Code Data Len

Prp Value

00

01

02


CARD INSERTED PROPERTY

Property ID:

4

Property Type:

Byte

Length:

1 byte

Get Property:

Yes

Set Property:

No

Default Value:

None

Description:

This value is used to determine if a card is fully inserted into the device.

If a card is fully inserted into the device this property will contain one. If not, the property will
contain zero. This property is intended to be used by hosts that want to check if a card is
currently inserted in the device during startup. This card inserted information is also contained
in the Card Status field of the Input report sent to the host during each card swipe. So there
should be no need to poll the host for this information on a continuing basis. Examples follow:

Example Get Card Inserted property Request (Hex):

Cmd Num

Data Len

Prp ID

00

01

04


Example Get Card Inserted property Response (Hex):

Result Code Data Len

Prp Value

00

01

01


MAX PACKET SIZE PROPERTY

Property ID:

5

Property Type:

Byte

Length:

1 byte

Get Property:

Yes

Set Property:

Yes

Default Value:

32

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 32, the device will send HID reports in multiple
packets of 32 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.
This property is stored in non-volatile EEPROM memory so it will not change when the unit is
power cycled. The value of this property will be sent to the host when the host requests the
device’s USB endpoint descriptor. When this property is changed, the unit must be power

Advertising