Msr direction property – MagTek P-SERIES USB User Manual
Page 29

Section 4. USB Communications (HID)
21
Example Get Polling Interval property Response (Hex):
Result Code Data Len
Prp Value
00
01
0A
MSR DIRECTION PROPERTY
Property ID:
3
Property Type:
Byte
Length:
1 byte
Get Property:
Yes
Set Property:
Yes
Default Value:
2 (Withdrawal)
Description:
This value is a byte that represents the devices magnetic stripe read
direction. The device will generate a USB HID Input Report when a card
is swiped in the direction indicated by this property. The value can be set
to 1 for insert, 2 for withdrawal or 3 for both directions. If this property is
set to 3 (both) then it is strongly recommended that the devices
POLLING_INTERVAL property is set to 2ms or less and that the devices
MAX_PACKET_SIZE is set to 32 bytes or more so that the device can
keep up with the speed of swiping in both directions. If this is not done
then if a card is withdrawn quickly after inserting the card, the withdrawal
may have a read error because the read will not start until the device is
finished sending the USB HID Input Report to the host for the Insert read.
This property is stored in non-volatile EEPROM memory so it will not
change when the unit is power cycled. When this property is changed, the
unit must be power cycled to have these changes take effect. If a value
other than the default value is desired, it can be set by the factory upon
request.
Note that this reader reads better when a card is removed from it than
when a card is inserted into it.
Examples follow:
Example Set MSR Direction property Request (Hex):
Cmd Num
Data Len
Prp ID
Prp Value
01
02
03
02
Example Set MSR Direction property Response (Hex):
Result Code Data Len
Data
00
00
Example Get MSR Direction property Request (Hex):
Cmd Num
Data Len
Prp ID
00
01
03