Baud synchronization command – MagTek MCP User Manual

Page 25

Advertising
background image

Section 3. Transport Frame Types


19

Baud Synchronization Command

Command Code: 6 (0110)

S-frame Type: Request/Response

Request PCB: 96 (Hex)

Response PCB: A6 (hex)

Description:

This command is used by the host to synchronize the transmission speed on mediums with
variable communication speed (i.e., serial ports). A response indicates that the device is
synchronized with the transport. If the device synchronizes, it will take no longer than 75ms to
respond to this request. If the device does not synchronize, no response will be sent. The device
requires up to 2.5 seconds to lock onto a baud rate; therefore the transport should continue
sending the baud sync request for that period of time. The transport must send the request at
intervals 75-125ms (100ms optimal) until the transport and device are synchronized. The device
will respond to this command as soon as it is synchronized with the baud rate which means that
the device could possibly respond before the 2.5 second time period is up. The host can stop
sending the baud sync command when the device responds. A device that requires baud
synchronization will not respond to any frame until it has synchronized. A device that requires
baud synchronization will require synchronization after power on or a reset. In order to
communicate at a different baud rate than the device has been synchronized to, the device will
need to be power cycled or reset then the baud synchronization process will have to be repeated
with the new baud rate.

When a device is waiting to be synchronized, it cycles through its list of synchronizable baud
rates enabling reception at each rate for a period of about 300ms. It continuously repeats the
cycle within 2.5 seconds until it is synchronized.

Request Data:

The structure of the data field of this request consists of the two hex bytes “MT” ASCII which
stands for MagTek:

4D (Hex)

54 (Hex)

Response Data:

Result Code

Result Codes:

Success = 00 (Hex)

This command will always succeed if synchronized or else it will get no response.

Advertising