MagTek MagneSafe V5 User Manual

Page 41

Advertising
background image

Section 2. Communications

33

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

0A


Example Get Max Packet Size property Response (Hex):

Result Code Data Len

Prp Value

00

01

08


UART/RS-232 COMMUNICATIONS PROPERTY (UART/RS-232 READERS ONLY)

Property ID:

0x0A

Property Type:

Byte

Length:

1 byte

Get Property:

Yes

Set Property:

Yes

Default Value:

0x02

Description:

This property specifies the speed, stop bits, and parity for RS-232
Communications. The speed, stop bits, and parity are independently
selectable. Note that once this command is accepted and the reader is reset or
power cycled, the new communications parameters are in effect. An
application that wishes to communicate with the reader must use the correct
speed and parity. There is no method of bringing a reader to a “default” speed
and parity, thus the user that changes this must be aware of the settings, or
must discover the settings by sending repeated commands in the range of
possible settings (48 possible configurations). The number of data bits in each
character is dependent on the parity setting, see the table below.


Note that Mark parity (see below) can be interpreted two ways:

1. 7 bit characters, parity always equals 1, one stop bit, or
2. 7 bit characters, no parity, 2 stop bits.


The Stop Bits specification applies only to data transmitted from the reader; the
reader never requires more than one stop bit from the host but will function
normally if the host includes more than one stop bit.

The following table defines how to interpret the values this property may have.

Advertising