Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 3 of 7

I/O Interface for TTL Magnetic Stripe Readers Technical Reference Manual: SECTION 2. ENCODING

Pages 11 to 16 of 34, from I/O Interface for TTL Magnetic Stripe Readers Technical Reference Manual

The original document is the PDF (1.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

Filed in the catalog under the MagTek 101mm Swipe Reader

Page 11

SECTION 2. ENCODING There are several schemes used to record or encode ones and zeros in the computer industry. (We use the term record and encode synonymously.) In the card industry the International Organization for Standardization (ISO) has defined F2F as the encoding scheme for cards. F2F stands for frequency - double frequency, or for the purist - two frequency coherent phase recording. F2F encoding provides for self-clocking data. That is, the serial data stream consisting of one and zero bits provides the timing information for the reader to determine which bit is which. The key feature of self-clocking data is that the data bits can be extracted from the serial data stream without the need to control the speed of the magnetic media past the encoding head. Thus, card swipe readers, where a human hand is passing the card through the read slot can work regardless of how fast or slow the card is passing through the slot. Serial data merely means that the one and zero bits, that form the desired characters, are stored on the same track, one bit after the next bit. F2F is an encoding technique which places flux transitions on the magnetic stripe separated by a defined distance for zero bits and one half that distance for one bits. The defined distance for Track 1 and Track 3 is 0.0047619 inches for zero bits. This value is the reciprocal of the bit density of Track 1 - 210 bits per inch. For one bits - 0.0023809 (1/2 the zero bit distance.) The defined distance for Track 2 is 0.013333 inches for zero bits. This value is the reciprocal of the bit density of Track 2 - 75 bits per inch. for one bits - 0.0066665 inches (1/2 the zero bit density.) Figure 2-1 illustrates this concept.

7

Page 12

I/O Interface for TTL Magnetic Stripe Readers

Figure 2-1. Bit Cell - Flux Transition The encoding device has the responsibility to separate the flux transitions at the proper distance. Variations in the proper distance between flux transitions is what is commonly referred to as jitter. Before the desired information can be stored (encoded) on the card, many things must happen. The information itself (the alphanumeric characters for Track 1 and the numeric characters for Tracks 2 and 3) needs to be coded. That is, the information must be converted to one and zero bits. The one and zero bit code for each character can be found in the Coded Character Set tables in ISO/IEC 7811-2, see Appendix A. These tables define the pattern of the one and zero bits for each character. There is a special bit that is added to each character code for the purpose of error detection. This special bit is called a parity bit. The parity bit is either a zero bit or a one bit depending on whether the number of one bits in the character is an even number or and odd number. The ISO standard has defined that for all tracks odd parity is maintained on each character. This means that if the character has an odd number of one bits in the character code for that character, the parity bit is then a zero bit. On the other hand, if the character has an even number of one bits in the character code for that character, the parity bit is a one bit causing the total number of one bits to be odd. Thus the term odd parity.

8

Page 13

Section 2. Encoding

Before the first character (or more specifically, the first series of bits that define the desired first character) can be encoded, a Start Sentinel character needs to be encoded. The Start Sentinel is a defined series of bits, which signal the start of the data bits. Track 1 Start Sentinel consists of seven bits (as all characters on Track 1). Track 2 and 3 Start Sentinel consists of five bits (as all characters on Track 2). As an example, the Track 2 Start Sentinel code is: 11010. After the last data character is encoded, an End Sentinel must be encoded. The End Sentinel is a defined series of bits, which signal the end of the data bits. Immediately after the End Sentinel, a special error checking character is also encoded. This error checking character is called the LRC - Longitudinal Redundancy Check character. For further details see Section 3. Before the Start Sentinel character and after the LRC character, “clocking bits” are encoded. These clocking bits provide card readers with timing to start their synchronization process before encountering the start sentinel (or end sentinel for reverse reading). Figure 2-2 illustrates the relative location of all the characters previously discussed. This means that if the character has an odd number of one bits in the character code for that character, the parity bit is then a zero bit. On the other hand, if the character has an even number of one bits in the character code for that character, the parity bit is a one bit causing the total number of one bits to be odd. Thus the term odd parity.

Figure 2-2. Card Coding Note: In this example, Start Sentinel is Hex B, End Sentinel is Hex F, and LRC is Hex F. Note that as you look at the diagram, while not to scale, the encoded information does travel from right to left along the length of the magnetic stripe. See Appendix A.

9

Page 14

I/O Interface for TTL Magnetic Stripe Readers

TIMING The timing for Card Present, Strobe, and Data is as shown in Figure 2-3. CARD PRESENT

DATA

0

0

0

0

1

1

1

0

0

0

0

0

1

1

0

STROBE Bit Time

STROBE WIDTH APPROXIMATELY 25-50% OF BIT TIME

Notes: 1. Time out of the CARD PRESENT signal occurs approximately 150 ms after the last strobe transition. 2. DATA is valid 1.0µ sec before the negative edge of STROBE.

Figure 2-3. Timing DATA The Data signal is valid while the strobe is low. If the Data signal is high, the bit is a zero. If the Data signal is low, the bit is a one. STROBE The Strobe signal indicates when Data is valid. It is recommended that Data be loaded by the user with the leading edge (negative) of the Strobe. CARD PRESENT Card Present will go low after 14/15 flux reversals from the head. Card Present will return high 150 milliseconds after the last flux reversal.

10

Page 15

Section 2. Encoding

When no card is being moved through the unit, the Data, Strobe, and Card Present signals are high. The signal timing diagram shown above represents the data along with other signals that are generated during the reading process.

11

Page 16

I/O Interface for TTL Magnetic Stripe Readers

12