Get and set property commands – MagTek P-SERIES USB User Manual

Page 26

Advertising
background image

P-Series USB Insertion Reader

18

GET AND SET PROPERTY COMMANDS

The Get Property command gets a property from the device. The Get Property command
number is 0.

The Set Property command sets a property in the device. The Set Property command number
is 1.

The Get and Set Property command data fields for the requests and responses are structured as
follows:

Get Property Request Data:

Data Offset

Value

0

Property ID


Get Property Response Data:

Data Offset

Value

0 – n

Property Value


Set Property Request Data:

Data Offset

Value

0

Property ID

1 – n

Property Value


Set Property Response Data:
None

The result codes for the Get and Set Property commands can be any of the codes list in the
generic result code table.

Property ID is a one-byte field that contains a value that identifies the property. The following
table lists all the current property ID values:

Value

Property ID

Description

0

SOFTWARE_ID

The device’s software identifier

1

SERIAL_NUM

The device’s serial number

2

POLLING_INTERVAL

The interrupt pipe’s polling interval

3

MSR_DIRECTION

Magnetic stripe read direction

4

CARD_INSERTED

Card inserted indicator

5

MAX_PACKET_SIZE

The interrupt pipe’s packet size

16

INTERFACE_TYPE

Type of USB interface

27

TRACK_ID_ENABLE

Allows Tracks to be disabled


The Property Value is a multiple byte field that contains the value of the property. The number
of bytes in this field depends on the type of property and the length of the property. The
following table lists all of the property types and describes them.

Advertising