Campus ID News
Card, mobile credential, payment and security
FEATURED
PARTNERS
Magstripes 2 e1643136688746

Understanding magnetic stripe data formats

CampusIDNews Staff   ||   Feb 01, 2002  ||   ,

The ANSI/ISO BCD Data format is format defines the data in encoding for Track 2. It uses 5-bits of data (zeros and ones) to create the character set. In reality, only 4 bits are used for character creation while the fifth bit is a parity bit that always leaves the character with an odd number of 1’s. Using this check, a reader can monitor its own read-accuracy (if it has an odd number of 1’s it assumes that a valid read occurred, if not then an error has occurred and the card must be re-swiped.

The 4-bits are used to create a 16-character set (2x2x2x2=16). Ten of the sixteen create the numeric digits (0-9) and the remaining 6 characters are specified as framing and control characters. Important framing characters include the Start Sentinel (SS) signifying the start of the meaningful data and the End Sentinel (ES) signifying the end of the meaningful data and a Field Separator (FS) to indicate breaks in data sections.

The data in Track 2 is as follows:

| SS | PAN | FS | Additional Data | ES | LRC |

Note: SS = Start Sentinenl; PAN = Primary Account Number; FS = Field Seperator; Additional Data = Can include expiration date, offset, encrypted PIN, or other data; ES = End Sentinel; and LRC = Longitudinal Redundancy Check (a digit that serves as an error check for the whole track of data (in much the same way that the parity bit checks the individual character).

When read, the the data in Track 2 looks like this to the on screen:

 ;1111222233334444=000300440009000330?5

And it actually looks like this in its binary code (at the bit level):
110101000010000100001000001000010000100001000110011100111001110010010000100001000010
01011000001000010000111001000010000100000100000100001000011001100010000100001110
0111001000011111110101

BCD character table

Character - Bit Number 1 2 3 4 Parity Bit

0 – 0 0 0 0 1
1 – 1 0 0 0 0
2 – 0 1 0 0 0
3 – 1 1 0 0 1
4 – 0 0 1 0 0
5 – 1 0 1 0 1
6 – 0 1 1 0 1
7 – 1 1 1 0 0
8 – 0 0 0 1 0
9 – 1 0 0 1 1
cc – 0 1 0 1 1
SS (;) – 1 1 0 1 0
cc – 0 0 1 1 1
FS (=) – 1 0 1 1 0
cc – 0 1 1 1 0
ES (?) – 1 1 1 1 1

Related Posts

Subscribe to our weekly newsletter

RECENT ARTICLES

NACCU Vendor Demo Days logo
Oct 10, 24 /

NACCU presents Vendor Demo Days on October 17 and 18

For the first time, NACCU is presenting its new Vendor Demo Days event. This virtual program will give members a first-hand look at products from a series of the association’s leading vendor partners. The 30-minute product demonstrations are spread over two days – Oct. 17 and 18 – and will be held via Zoom. The […]
TouchNet COMTEC conference logo
Oct 10, 24 /

TouchNet’s COMTEC conference on Nov. 11-14 focuses on credentials and commerce

COMTEC, TouchNet’s annual user group conference, is just a month away on Nov. 11-14 in San Antonio. The event brings together TouchNet client institutions, industry experts, and thought leaders to explore technologies and strategies to help higher ed professionals get the most out of campus commerce and credentials. Registration for the event closes on Oct. […]
Voting sign
Oct 04, 24 / ,

Appeals court rescinds use of Chapel Hill’s mobile credential for voter ID

The state of North Carolina requires voters to show and approved form of ID to cast a ballot, and university-issued mobile credentials have taken center stage. Many traditional campus cards are approved, but three institutions in the state use a digital ID rather than a card. UNC Chapel Hill, UNC Charlotte, and Duke University each […]
CIDN logo reversed
The only publication dedicated to the use of campus cards, mobile credentials, identity and security technology in the education market. CampusIDNews – formerly CR80News – has served more than 6,500 subscribers for more than two decades.
Twitter

Attn: friends in the biometrics space. Nominations close Friday for the annual Women in Biometrics Awards. Take five minutes to recognize a colleague or even yourself. http://WomenInBiometrics.com

Feb. 1 webinar explores how mobile ordering enhanced campus life, increased sales at UVA and Central Washington @Grubhub @CBORD

Load More...
Contact
CampusIDNews is published by AVISIAN Publishing
315 E. Georgia St.
Tallahassee, FL 32301
www.AVISIAN.com[email protected]
Use our contact form to submit tips, corrections, or questions to our team.
©2024 CampusIDNews. All rights reserved.