background image

 
 
 
 
 

 
 

Copyright © 2010-2013, International Technologies & Systems Corp.  All rights reserved. 

Page 16 of 24 

 

BT Mag User Manual

 

 

7.2.2 Enhanced Encryption Format 

Card data is sent out in the following format 
<STX><LenL><LenH><Card Data><CheckLRC><CheckSum><ETX> 

 

STX 

 

Data Length low byte 

 

Data Length high byte 

 

Card Encode Type

 

Track 1-3 Status

2

 

 

Track 1 data length 

 

Track 2 data length 

 

Track 3 data length 

 

Clear/masked data sent status

 3

 

 

Encrypted/Hash data sent status 

 

10 

Track 1 clear/mask data  

 

 

Track 2 clear/mask data  

 

 

Track 3 clear/mask data  

 

 

Track 1 encrypted data  

 

 

Track 2 encrypted data  

 

 

Track 3 encrypted data  

 

 

Session ID (8 bytes) (Security level 4 only) 
Track 1 hashed (20 bytes each) (if encrypted and hash track 1      
allowed) 
Track 2 hashed (20 bytes each) (if encrypted and hash track 2    
allowed) 
Track 3 hashed (20 bytes each) (if encrypted and hash track 3 
allowed) 

 

 

KSN (10 bytes)  

 

 

CheckLRC 
CheckSum 
ETX 

Where <STX> = 02h, <ETX> = 03h 

 

Note 1 : Card Encode Type 

 

Card Type will be 8x for enhanced encryption format and 0x for original encryption 
format 

 

           Value          Encode Type Description 
           00h / 80h    ISO/ABA format 
           01h / 81h    AAMVA format 
           03h / 83h    Other  

Summary of Contents for BT Mag

Page 1: ...USER MANUAL BT Mag Bluetooth Magnetic Stripe Reader 80125501 001 B 04 10 2013 ...

Page 2: ...iption of Changes By A 8 20 2012 Initial release JW B 04 10 2013 Add the section 6 Using the demo software and section 7 card data output format CH Table of Contents 1 Introduction 3 2 Applicable Documents 3 3 Features and Benefits 3 4 Specifications 4 5 Operation 6 6 Using the demo software 8 7 Card Data Output Format 13 8 Outline Drawing 18 ...

Page 3: ... 7811 1 through 6 Identification Cards Track 1 through 3 ISO 4909 Magnetic stripe content for track 3 ISO 7812 Identification Cards Identification for issuers Part 1 2 ISO 7813 Identification Cards Financial Transaction Cards AAMVA Specifications Drivers License Standards Most recent available 80101502 001 SPI Securehead manual 3 Features and Benefits Connects to any mobile device with Bluetooth c...

Page 4: ...g Format Media Speed 5 to 45 IPS Low Amplitude reading 30 210 bpi 40 75 bpi Batteries Rechargeable battery Battery life Up to 8 hours in standby mode Up to 4 hours in active mode Active mode is defined as 10 swipes per hour Charging through MicroUSB interface external charger The unit is functional if Bluetooth connection is on while charging LED One Dual color Led to indicate Bluetooth Charging s...

Page 5: ...eserved Page 5 of 24 BT Mag User Manual Electro Static Discharges ESD 6kV contact and 12kV air discharge Environmental Temperature range Operating 0 to 55 C 32 to 131 F non condensing Storage 30 to 70 C 22 to 158 F non condensing Relative humidity maximum 95 non condensing ...

Page 6: ...OFF ON 30ms X 1 The reader will enter this mode when BT not in Pairing or Connected status OFF 4970ms OFF 4970ms BTM Standby Sleep 2 Short press the tact SW will force BT to search and build the Link again MSR Standby Sleep Pairing ON 30ms OFF 4970ms OFF ON 500ms X After the reader is power on that will into the pairing mode OFF 500ms BTM Connected ON 30ms This mode indicates the MSR is connected ...

Page 7: ...onal Technologies Systems Corp All rights reserved Page 7 of 24 BT Mag User Manual ON 500ms ON 30ms OFF 500ms OFF 2970ms MSR bad read OFF Flash 1 time ON 500ms ON 30ms OFF 500ms OFF 2970ms X Red indicates bad read X Not applicable ...

Page 8: ...r SD card of the android phone or tablet Go to the file browser and click BluetoothDemo apk to install 2 Pairing 1 Long press power button about 5 seconds on the BTMag to power on When the reader is turned on the green LED will flash three times 2 Go to the Settings of the phone Find the Bluetooth setting button and turn on the Bluetooth function 3 Press ID_TECH BT MSR for pairing Some Android dev...

Page 9: ...n otherwise BTMag will enter sleep mode Green and Blue LED will flash together Once the BTMag enter sleep mode short press the power button to wake up BTMag from the sleep mode and repeat pairing process 3 Connect with Demo 1 Open the IDTechBluetoothDemo 2 Press Connect button it will pop out a small window to allow you to select the device Please click ID_Tech BT MSR to connect If the connection ...

Page 10: ...the user can swipe a card and the card data will be showed in the text filed on the top of the application 4 Click the Clear button the text in the window will be cleared 6 2 IOS BTMag Demo 1 Install the demo Install the BTmsrDemo ipa to the Apple device by iTune or use the XCode to build the source code directly 2 Paring 1 Go to the setting to turn on the Buletooth ...

Page 11: ...ystems Corp All rights reserved Page 11 of 24 BT Mag User Manual 2 Click the ID_TECH BT MSR to pair 3 Enter the password 0000 3 Connect with demo 1 Click the open button to build connection with BT Mag If open succeeds it will show BTmsr Open Success ...

Page 12: ...es Systems Corp All rights reserved Page 12 of 24 BT Mag User Manual 2 Swipe a card through the reader the card data will be showed in the demo If you want to read or set some settings of the reader click setting button to go to the setting page ...

Page 13: ...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 C...

Page 14: ...20 bytes SHA1 Xor track 2 hashed 20 bytes SHA1 Xor DUKPT serial number 10 bytes Non ISO ABA Data Output Format card encoding type 1 AAMVA 3 Others track status bit 0 1 2 T1 2 3 decode bit 3 4 5 T1 2 3 sampling track 1 length 1 byte 0 for no track1 data track 2 length 1 byte 0 for no track2 data track 3 length 1 byte 0 for no track3 data track 1 data track 2 data track 3 data Description Track 1 Tr...

Page 15: ...ncrypted Data Length Track 1 and Track 2 data are encrypted as a single block In order to get the number of bytes for encrypted data field we need to get Track 1 and Track 2 unencrypted length first The field length is always a multiple of 8 bytes for TDES or multiple of 16 bytes for AES This value will be zero if there was no data on both tracks or if there was an error decoding both tracks Once ...

Page 16: ...nt status 4 10 Track 1 clear mask data Track 2 clear mask data Track 3 clear mask data Track 1 encrypted data Track 2 encrypted data Track 3 encrypted data Session ID 8 bytes Security level 4 only Track 1 hashed 20 bytes each if encrypted and hash track 1 allowed Track 2 hashed 20 bytes each if encrypted and hash track 2 allowed Track 3 hashed 20 bytes each if encrypted and hash track 3 allowed KS...

Page 17: ...present Bit 6 7 Reserved for future use Note 3 Clear mask data sent status Field 8 Clear mask data sent status and field 9 Encrypted Hash data sent status will only be sent out in enhanced encryption format Field 8 Clear masked data sent status byte Bit 0 1 track 1 clear mask data present Bit 1 1 track 2 clear mask data present Bit 2 1 track 3 clear mask data present Bit 3 0 reserved for future us...

Page 18: ...pyright 2010 2013 International Technologies Systems Corp All rights reserved Page 18 of 24 BT Mag User Manual For the detailed encrypted data parsing example please refer to Appendix A 8 Outline Drawing ...

Page 19: ...33333736373637363037303730373736373637 3633333333333333333333373637363736303730373F32863E9E3DA28E455B28F7736 B77E47A64EDDA3BF03A06E44F31D1818C0BCD7A353FB1AD70EFD30FFC3DA08 A4FBC9372E57E8B40848BAEAA3FE724B3550E2F4B223E6BF264BEAE9E39142B6 48CDB51FB8DAF8EA5B63913D29419B67582FCCCE9B372660F03668CC453216D9 449C6B67EF33418AC88F65E1DB7ED4D10973F99DFC8463FF6DF113B6226C4898A 9D355057ECAF11A5598F02CA31629949...

Page 20: ...bytes 0x70 112 decimal 863E9E3DA28E455B28F7736B77E47A64EDDA3BF03A06E44F31D1818C0BCD7A3 53FB1AD70EFD30FFC3DA08A4FBC9372E57E8B40848BAEAA3FE724B3550E2F4B 223E6BF264BEAE9E39142B648CDB51FB8DAF8EA5B63913D29419B67582FCCCE 9B372660F03668CC453216D9449C6B67EF3 Track 1 hashed 3418AC88F65E1DB7ED4D10973F99DFC8463FF6DF Track 2 hashed 113B6226C4898A9D355057ECAF11A5598F02CA31 KSN 62994901190000000001 LRC checksum...

Page 21: ...520572E4D525E2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2 A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A3F2A3B343236362A2A2A2A2A2A2A2 A393939393D2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A3F2ADA7F2A52BD3F6DD 8B96C50FC39C7E6AF22F06ED1F033BE0FB23D6BD33DC5A1F808512F7AE18D47 A60CC3F4559B1B093563BE7E07459072ABF8FAAB5338C6CC8815FF87797AE3A7 BEAB3B10A3FBC230FBFB941FAC9E82649981AE79F2632156E775A06AEDAFAF6 F0A184318C5209E55AD44A9CCF6A78AC240F791B...

Page 22: ...A393939395E42555348204A522F47454F5247452 0572E4D525E2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2 A2A2A2A2A2A2A3F2A Track 1 masked data in ASCII 4266 9999 BUSH JR GEORGE W MR Track 2 data in hex masked length 0x23 3B343236362A2A2A2A2A2A2A2A393939393D2A2A2A2A2A2A2A2A2A2A2A2A2 A2A2A3F2A Track2 masked data in ASCII 4266 9999 In this example there is no Track 3 data either clear or masked encrypte...

Page 23: ...B6226C4898A9D355057ECAF11A5598F02CA31 Track 3 data hashed length 20 bytes 688861C157C1CE2E0F72CE0F3BB598A614EAABB1 KSN length 10 bytes 62994901190000000002 LCR check sum and ETX 06E203 Clear Masked Data in ASCII Track 1 4266 9999 BUSH JR GEORGE W MR Track 2 4266 9999 Key Value 1A 99 4C 3E 09 D9 AC EF 3E A9 BD 43 81 EF A3 34 KSN 62 99 49 01 19 00 00 00 00 02 Decrypted Data Track 1 decrypted B426684...

Page 24: ...34363030303030303F 21 Track 2 decrypted data in hex including padding zeros 3B343236363834313038383838393939393D3038303931303131303030303034363F300 000000000 Track 3 decrypted data in hex including padding zeros 3B333333333333333333333736373637363037303730373736373637363333333333333 333333337363736373630373037303737363736373633333333333333333333373637363 7363037303730373736373637363333333333333333...

Reviews: