Copyright © 2010-2013, International Technologies & Systems Corp. All rights reserved.
Page 13 of 24
BT Mag User Manual
7. Card Data Output Format
7.1 Unencrypted Data Output Format
Magnetic Track Basic Decoded Data Format
Track 1: <SS1><T1 Data><ES><Track Separator>
Track 2: <SS2><T2 Data><ES><Track Separator>
Track 3: <SS3><T3 Data><ES><Terminator>
Where: SS1 (start sentinel track 1) = %
SS2 (start sentinel track 2) = ;
SS3 (start sentinel track 3) = ; for ISO, % for AAMVA
ES (end sentinel all tracks) = ?
Track Separator = Carriage Return
Terminator = Carriage Return
For example:
%B4352378366824999^TFSTEST /THIRTYONE
^05102011000088200882000000?;4352378366824999=051020110000882?<CR>
7.2 Encrypted Data Output Format
7.2.1 Original Encryption Format
For ISO cards, both masked clear and encrypted data are sent, no clear data will be sent.
For other cards, only clear data is sent.
A card swipe returns the following data:
Card data is sent out in format of
<STX><LenL><LenH><Card Data><CheckLRC><CheckSum><ETX>
<STX> = 02h, <ETX> = 03h
<LenL><LenH> is a two byte length of <Card Data>.
<CheckLRC> is a one byte Exclusive-OR sum calculated for all <Card Data>.
<CheckSum> is a one byte Sum value calculated for all <Card data>.
<Card Data> card data format is shown below.
ISO/ABA Data Output Format:
card encoding type
(0: ISO/ABA, 4: for Raw Mode)