diff --git a/docs/talk DKB m visa credit.html b/docs/talk DKB m visa credit.html
new file mode 100644
index 0000000..5d67f66
--- /dev/null
+++ b/docs/talk DKB m visa credit.html
@@ -0,0 +1,594 @@
+NFC tag discovered
+TagId: 0585921afb9100
+TechList found with these entries:
+android.nfc.tech.IsoDep
+android.nfc.tech.NfcA
+connection with card success
+
+*********************************
+************ step 00 ************
+* our journey begins *
+*********************************
+increase IsoDep timeout for long reading
+timeout old: 2000 ms
+timeout new: 10000 ms
+
+*********************************
+************ step 01 ************
+* select PPSE *
+*********************************
+01 select PPSE command length 20 data: 00a404000e325041592e5359532e444446303100
+01 select PPSE response length 62 data: 6f3a840e325041592e5359532e4444463031a528bf0c2561234f07a0000000031010500a566973612044656269748701019f0a0800010501000000009000
+------------------------------------
+6F 3A -- File Control Information (FCI) Template
+ 84 0E -- Dedicated File (DF) Name
+ 32 50 41 59 2E 53 59 53 2E 44 44 46 30 31 (BINARY)
+ A5 28 -- File Control Information (FCI) Proprietary Template
+ BF 0C 25 -- File Control Information (FCI) Issuer Discretionary Data
+ 61 23 -- Application Template
+ 4F 07 -- Application Identifier (AID) - card
+ A0 00 00 00 03 10 10 (BINARY)
+ 50 0A -- Application Label
+ 56 69 73 61 20 44 65 62 69 74 (=Visa Debit)
+ 87 01 -- Application Priority Indicator
+ 01 (BINARY)
+ 9F 0A 08 -- [UNKNOWN TAG]
+ 00 01 05 01 00 00 00 00 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+
+*********************************
+************ step 02 ************
+* search applications on card *
+*********************************
+02 analyze select PPSE response and search for tag 0x4F (applications on card)
+Found tag 0x4F 1 time:
+application Id (AID): a0000000031010
+
+
+*********************************
+************ step 03 ************
+* select application by AID *
+*********************************
+03 select application by AID a0000000031010 (number 1)
+
+03 select AID command length 13 data: 00a4040007a000000003101000
+03 select AID response length 115 data: 6f6f8407a0000000031010a564500a566973612044656269749f120f636f6d6469726563742044656269749f1101018701015f2d046465656e9f38189f66049f02069f03069f1a0295055f2a029a039c019f3704bf0c1a9f0a0800010501000000009f5a053109780276bf6304df2001809000
+------------------------------------
+6F 6F -- File Control Information (FCI) Template
+ 84 07 -- Dedicated File (DF) Name
+ A0 00 00 00 03 10 10 (BINARY)
+ A5 64 -- File Control Information (FCI) Proprietary Template
+ 50 0A -- Application Label
+ 56 69 73 61 20 44 65 62 69 74 (=Visa Debit)
+ 9F 12 0F -- Application Preferred Name
+ 63 6F 6D 64 69 72 65 63 74 20 44 65 62 69 74 (=comdirect Debit)
+ 9F 11 01 -- Issuer Code Table Index
+ 01 (NUMERIC)
+ 87 01 -- Application Priority Indicator
+ 01 (BINARY)
+ 5F 2D 04 -- Language Preference
+ 64 65 65 6E (=deen)
+ 9F 38 18 -- Processing Options Data Object List (PDOL)
+ 9F 66 04 -- Terminal Transaction Qualifiers
+ 9F 02 06 -- Amount, Authorised (Numeric)
+ 9F 03 06 -- Amount, Other (Numeric)
+ 9F 1A 02 -- Terminal Country Code
+ 95 05 -- Terminal Verification Results (TVR)
+ 5F 2A 02 -- Transaction Currency Code
+ 9A 03 -- Transaction Date
+ 9C 01 -- Transaction Type
+ 9F 37 04 -- Unpredictable Number
+ BF 0C 1A -- File Control Information (FCI) Issuer Discretionary Data
+ 9F 0A 08 -- [UNKNOWN TAG]
+ 00 01 05 01 00 00 00 00 (BINARY)
+ 9F 5A 05 -- Terminal transaction Type (Interac)
+ 31 09 78 02 76 (BINARY)
+ BF 63 04 -- [UNKNOWN TAG]
+ DF 20 01 -- [UNKNOWN TAG]
+ 80 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+get single data elements
+single data retrieved from card
+-----------------------------------------------------
+applicationTransactionCounter: 00c2 (hex), 194 (dec)
+-----------------------------------------------------
+pinTryCounter: 01
+-----------------------------------------------------
+lastOnlineATCRegister: 0002
+-----------------------------------------------------
+logFormat: 9f27019f36029f02069f03069f1a025f2a0295059a039c01
+-----------------------------------------------------
+
+
+*********************************
+************ step 04 ************
+* search for tag 0x9F38 *
+*********************************
+04 search for tag 0x9F38 in the selectAid response
+
+### processing the America Express, VisaCard and GiroCard path ###
+
+found tag 0x9F38 (PDOL) in the selectAid with this length: 24 data: 9f66049f02069f03069f1a0295055f2a029a039c019f3704
+
+The card is requesting 9 tags in the PDOL
+
+Tag Tag Name Length Value
+-----------------------------------------------------
+9f66 Terminal Transaction Qualifiers 4 27 00 00 00
+9f02 Amount, Authorised (Numeric) 6 00 00 00 00 10 00
+9f03 Amount, Other (Numeric) 6 00 00 00 00 00 00
+9f1a Terminal Country Code 2 09 78
+95 Terminal Verification Results (TVR) 5 00 00 00 00 00
+5f2a Transaction Currency Code 2 09 78
+9a Transaction Date 3 23 03 01
+9c Transaction Type 1 00
+9f37 Unpredictable Number 4 38 39 30 31
+-----------------------------------------------------
+
+
+*********************************
+************ step 05 ************
+* get the processing options *
+*********************************
+05 get the processing options command length: 41 data: 80a8000023832127000000000000001000000000000000097800000000000978230301003839303100
+05 get the processing options response length: 203 data: 7781c68202202094041001030057134871780082770574d25072211328662101000f9f100706011203a000009f2608ec1c5779ff2670379f2701809f360200c39f6c0204009f4b81809016903df9bad2d289d580a82ea1cf58d51d7ba234a7df6df83e4d115d93f31e8f98d95abdd8aac65c5b2fbcabaef5f7480fdf274eff4ffdab9e30e775660d4ffbf52629f2c63fdb93eb11cebaca3ac030e883bd864e3d19b8929119fe7d613529c106d0ae7270c4b645cc1f45e21c49c37f15f1686d949f367b11a6e731a97a9000
+------------------------------------
+77 81 C6 -- Response Message Template Format 2
+ 82 02 -- Application Interchange Profile
+ 20 20 (BINARY)
+ 94 04 -- Application File Locator (AFL)
+ 10 01 03 00 (BINARY)
+ 57 13 -- Track 2 Equivalent Data
+ 48 71 78 00 82 77 05 74 D2 50 72 21 13 28 66 21
+ 01 00 0F (BINARY)
+ 9F 10 07 -- Issuer Application Data
+ 06 01 12 03 A0 00 00 (BINARY)
+ 9F 26 08 -- Application Cryptogram
+ EC 1C 57 79 FF 26 70 37 (BINARY)
+ 9F 27 01 -- Cryptogram Information Data
+ 80 (BINARY)
+ 9F 36 02 -- Application Transaction Counter (ATC)
+ 00 C3 (BINARY)
+ 9F 6C 02 -- Mag Stripe Application Version Number (Card)
+ 04 00 (BINARY)
+ 9F 4B 81 80 -- Signed Dynamic Application Data
+ 90 16 90 3D F9 BA D2 D2 89 D5 80 A8 2E A1 CF 58
+ D5 1D 7B A2 34 A7 DF 6D F8 3E 4D 11 5D 93 F3 1E
+ 8F 98 D9 5A BD D8 AA C6 5C 5B 2F BC AB AE F5 F7
+ 48 0F DF 27 4E FF 4F FD AB 9E 30 E7 75 66 0D 4F
+ FB F5 26 29 F2 C6 3F DB 93 EB 11 CE BA CA 3A C0
+ 30 E8 83 BD 86 4E 3D 19 B8 92 91 19 FE 7D 61 35
+ 29 C1 06 D0 AE 72 70 C4 B6 45 CC 1F 45 E2 1C 49
+ C3 7F 15 F1 68 6D 94 9F 36 7B 11 A6 E7 31 A9 7A (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+workflow a)
+
+
+*********************************
+************ step 06 ************
+* read files & search PAN *
+*********************************
+06 read the files from card skipped
+the response contains a Track 2 Equivalent Data tag [tag 0x57]
+found tag 0x57 in the gpoResponse length: 19 data: 4871780082770574d25072211328662101000f
+found a PAN 4871780082770574 with Expiration date: 2507
+
+
+*********************************
+************ step 07 ************
+* print PAN & expire date *
+*********************************
+07 get PAN and Expiration date from tag 0x57 (Track 2 Equivalent Data)
+data for AID a0000000031010
+PAN: 4871780082770574
+Expiration date (YYMM): 2507
+
+workflow c)
+the response is of type 'Response Message Template Format 2' [tag 0x77]
+found tag 0x77 in the gpoResponse
+found 'AFL' [tag 0x94] in the response of type 'Response Message Template Format 2' [tag 0x77]
+found tag 0x94 in the gpoResponse length: 4 data: 10010300
+
+found this AFL data in the gpoResponse to read from: 10010300
+
+
+*********************************
+************ step 06 ************
+* read files & search PAN *
+*********************************
+06 read the files from card and search for PAN & Expiration date
+
+The AFL contains 1 entry to read
+for SFI 10 we read 3 records
+readRecord command length: 5 data: 00b2011400
+readRecord response length: 256 data: 7081fb9081f85ab54faf4ad810b3cca4ed42c38e1e768fca3187ed1be4196c6779c4633cbe88751889c12b05e10ee87cb198518793ff61e87534f66850e96239b76648429eced4cc207608d0d2a932dd9e8c4bb0d139c4eca59e1ef5f4708f72d80dc5b66c45f4566c91b55384dfdeabb55faa622c6764cc9fb4c4900b6ab2cec5abad9057e2cf63a881bb4ec2a5d96634d7c11366eb908a168d33aa3c544822fc83e74c104b9275b2ef1cf41375b404a260bbf8fb3d4452af3d0630bb1ec2a01676ba588ae7820727622a6d9df5c93a3ce807d54b79ae007c3d401f8787dc3e235e8b9ae6b1b9279328cb1ca94105434010f15eb07f487f4d5c94f4a5a79000
+------------------------------------
+70 81 FB -- Record Template (EMV Proprietary)
+ 90 81 F8 -- Issuer Public Key Certificate
+ 5A B5 4F AF 4A D8 10 B3 CC A4 ED 42 C3 8E 1E 76
+ 8F CA 31 87 ED 1B E4 19 6C 67 79 C4 63 3C BE 88
+ 75 18 89 C1 2B 05 E1 0E E8 7C B1 98 51 87 93 FF
+ 61 E8 75 34 F6 68 50 E9 62 39 B7 66 48 42 9E CE
+ D4 CC 20 76 08 D0 D2 A9 32 DD 9E 8C 4B B0 D1 39
+ C4 EC A5 9E 1E F5 F4 70 8F 72 D8 0D C5 B6 6C 45
+ F4 56 6C 91 B5 53 84 DF DE AB B5 5F AA 62 2C 67
+ 64 CC 9F B4 C4 90 0B 6A B2 CE C5 AB AD 90 57 E2
+ CF 63 A8 81 BB 4E C2 A5 D9 66 34 D7 C1 13 66 EB
+ 90 8A 16 8D 33 AA 3C 54 48 22 FC 83 E7 4C 10 4B
+ 92 75 B2 EF 1C F4 13 75 B4 04 A2 60 BB F8 FB 3D
+ 44 52 AF 3D 06 30 BB 1E C2 A0 16 76 BA 58 8A E7
+ 82 07 27 62 2A 6D 9D F5 C9 3A 3C E8 07 D5 4B 79
+ AE 00 7C 3D 40 1F 87 87 DC 3E 23 5E 8B 9A E6 B1
+ B9 27 93 28 CB 1C A9 41 05 43 40 10 F1 5E B0 7F
+ 48 7F 4D 5C 94 F4 A5 A7 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+readRecord command length: 5 data: 00b2021400
+readRecord response length: 11 data: 70078f01099f3201039000
+------------------------------------
+70 07 -- Record Template (EMV Proprietary)
+ 8F 01 -- Certification Authority Public Key Index - card
+ 09 (BINARY)
+ 9F 32 01 -- Issuer Public Key Exponent
+ 03 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+readRecord command length: 5 data: 00b2031400
+readRecord response length: 240 data: 7081eb9f4681b02c4b62dfaede136b9bafeddebaaf41e5f4fdc9920b077817de896e6503c69c8f80ece2559cdf721ce1b7b2bc159fe77ec8d6eb45296876fbf4a6bd4bb4a11511ebd80fdf1c7bb8e1f4a2cdb7c4db0cc6f9fda7f6696c30d3846e1b98f4c849b7385f349d280fd92d75774dcbed96a5328f657f7eceb4bfa3ec3f9f39a64414bdbf0f03b15c49cbf0475bfa6a5f2513689c195faea031ae2391998be2028aa1671b380eb19a69a6c454bd2a30d11bc63c9f4701035a0848717800827705745f24032507315f3401015f280202769f070200809f4a01829f6e04207000009f690701859209cf04009000
+------------------------------------
+70 81 EB -- Record Template (EMV Proprietary)
+ 9F 46 81 B0 -- ICC Public Key Certificate
+ 2C 4B 62 DF AE DE 13 6B 9B AF ED DE BA AF 41 E5
+ F4 FD C9 92 0B 07 78 17 DE 89 6E 65 03 C6 9C 8F
+ 80 EC E2 55 9C DF 72 1C E1 B7 B2 BC 15 9F E7 7E
+ C8 D6 EB 45 29 68 76 FB F4 A6 BD 4B B4 A1 15 11
+ EB D8 0F DF 1C 7B B8 E1 F4 A2 CD B7 C4 DB 0C C6
+ F9 FD A7 F6 69 6C 30 D3 84 6E 1B 98 F4 C8 49 B7
+ 38 5F 34 9D 28 0F D9 2D 75 77 4D CB ED 96 A5 32
+ 8F 65 7F 7E CE B4 BF A3 EC 3F 9F 39 A6 44 14 BD
+ BF 0F 03 B1 5C 49 CB F0 47 5B FA 6A 5F 25 13 68
+ 9C 19 5F AE A0 31 AE 23 91 99 8B E2 02 8A A1 67
+ 1B 38 0E B1 9A 69 A6 C4 54 BD 2A 30 D1 1B C6 3C (BINARY)
+ 9F 47 01 -- ICC Public Key Exponent
+ 03 (BINARY)
+ 5A 08 -- Application Primary Account Number (PAN)
+ 48 71 78 00 82 77 05 74 (NUMERIC)
+ 5F 24 03 -- Application Expiration Date
+ 25 07 31 (NUMERIC)
+ 5F 34 01 -- Application Primary Account Number (PAN) Sequence Number
+ 01 (NUMERIC)
+ 5F 28 02 -- Issuer Country Code
+ 02 76 (NUMERIC)
+ 9F 07 02 -- Application Usage Control
+ 00 80 (BINARY)
+ 9F 4A 01 -- Static Data Authentication Tag List
+ 82 (BINARY)
+ 9F 6E 04 -- Visa Low-Value Payment (VLP) Issuer Authorisation Code
+ 20 70 00 00 (BINARY)
+ 9F 69 07 -- UDOL
+ 01 85 92 09 CF 04 00 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+found tag 0x5a in the readRecordResponse length: 8 data: 4871780082770574
+found tag 0x5f24 in the readRecordResponse length: 3 data: 250731
+
+
+*********************************
+************ step 07 ************
+* print PAN & expire date *
+*********************************
+07 get PAN and Expiration date from tags 0x5a and 0x5f24
+data for AID a0000000031010
+PAN: 4871780082770574
+Expiration date (YYMMDD): 250731
+
+*********************************
+
+*********************************
+************ step 99 ************
+* our journey ends *
+*********************************
+NFC tag discovered
+TagId: 0581d28b80f100
+TechList found with these entries:
+android.nfc.tech.IsoDep
+android.nfc.tech.NfcA
+connection with card success
+
+*********************************
+************ step 00 ************
+* our journey begins *
+*********************************
+increase IsoDep timeout for long reading
+timeout old: 2000 ms
+timeout new: 10000 ms
+
+*********************************
+************ step 01 ************
+* select PPSE *
+*********************************
+01 select PPSE command length 20 data: 00a404000e325041592e5359532e444446303100
+01 select PPSE response length 60 data: 6f38840e325041592e5359532e4444463031a526bf0c2361214f07a000000003101050085649534120444b428701019f0a0800010502000000009000
+------------------------------------
+6F 38 -- File Control Information (FCI) Template
+ 84 0E -- Dedicated File (DF) Name
+ 32 50 41 59 2E 53 59 53 2E 44 44 46 30 31 (BINARY)
+ A5 26 -- File Control Information (FCI) Proprietary Template
+ BF 0C 23 -- File Control Information (FCI) Issuer Discretionary Data
+ 61 21 -- Application Template
+ 4F 07 -- Application Identifier (AID) - card
+ A0 00 00 00 03 10 10 (BINARY)
+ 50 08 -- Application Label
+ 56 49 53 41 20 44 4B 42 (=VISA DKB)
+ 87 01 -- Application Priority Indicator
+ 01 (BINARY)
+ 9F 0A 08 -- [UNKNOWN TAG]
+ 00 01 05 02 00 00 00 00 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+
+*********************************
+************ step 02 ************
+* search applications on card *
+*********************************
+02 analyze select PPSE response and search for tag 0x4F (applications on card)
+Found tag 0x4F 1 time:
+application Id (AID): a0000000031010
+
+
+*********************************
+************ step 03 ************
+* select application by AID *
+*********************************
+03 select application by AID a0000000031010 (number 1)
+
+03 select AID command length 13 data: 00a4040007a000000003101000
+03 select AID response length 91 data: 6f578407a0000000031010a54c50085649534120444b428701015f2d046465656e9f38189f66049f02069f03069f1a0295055f2a029a039c019f3704bf0c1a9f0a0800010502000000009f5a053109780276bf6304df2001809000
+------------------------------------
+6F 57 -- File Control Information (FCI) Template
+ 84 07 -- Dedicated File (DF) Name
+ A0 00 00 00 03 10 10 (BINARY)
+ A5 4C -- File Control Information (FCI) Proprietary Template
+ 50 08 -- Application Label
+ 56 49 53 41 20 44 4B 42 (=VISA DKB)
+ 87 01 -- Application Priority Indicator
+ 01 (BINARY)
+ 5F 2D 04 -- Language Preference
+ 64 65 65 6E (=deen)
+ 9F 38 18 -- Processing Options Data Object List (PDOL)
+ 9F 66 04 -- Terminal Transaction Qualifiers
+ 9F 02 06 -- Amount, Authorised (Numeric)
+ 9F 03 06 -- Amount, Other (Numeric)
+ 9F 1A 02 -- Terminal Country Code
+ 95 05 -- Terminal Verification Results (TVR)
+ 5F 2A 02 -- Transaction Currency Code
+ 9A 03 -- Transaction Date
+ 9C 01 -- Transaction Type
+ 9F 37 04 -- Unpredictable Number
+ BF 0C 1A -- File Control Information (FCI) Issuer Discretionary Data
+ 9F 0A 08 -- [UNKNOWN TAG]
+ 00 01 05 02 00 00 00 00 (BINARY)
+ 9F 5A 05 -- Terminal transaction Type (Interac)
+ 31 09 78 02 76 (BINARY)
+ BF 63 04 -- [UNKNOWN TAG]
+ DF 20 01 -- [UNKNOWN TAG]
+ 80 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+get single data elements
+single data retrieved from card
+-----------------------------------------------------
+applicationTransactionCounter: 0073 (hex), 115 (dec)
+-----------------------------------------------------
+pinTryCounter: 02
+-----------------------------------------------------
+lastOnlineATCRegister: 0041
+-----------------------------------------------------
+logFormat: 9f27019f36029f02069f03069f1a025f2a0295059a039c01
+-----------------------------------------------------
+
+
+*********************************
+************ step 04 ************
+* search for tag 0x9F38 *
+*********************************
+04 search for tag 0x9F38 in the selectAid response
+
+### processing the America Express, VisaCard and GiroCard path ###
+
+found tag 0x9F38 (PDOL) in the selectAid with this length: 24 data: 9f66049f02069f03069f1a0295055f2a029a039c019f3704
+
+The card is requesting 9 tags in the PDOL
+
+Tag Tag Name Length Value
+-----------------------------------------------------
+9f66 Terminal Transaction Qualifiers 4 27 00 00 00
+9f02 Amount, Authorised (Numeric) 6 00 00 00 00 10 00
+9f03 Amount, Other (Numeric) 6 00 00 00 00 00 00
+9f1a Terminal Country Code 2 09 78
+95 Terminal Verification Results (TVR) 5 00 00 00 00 00
+5f2a Transaction Currency Code 2 09 78
+9a Transaction Date 3 23 03 01
+9c Transaction Type 1 00
+9f37 Unpredictable Number 4 38 39 30 31
+-----------------------------------------------------
+
+
+*********************************
+************ step 05 ************
+* get the processing options *
+*********************************
+05 get the processing options command length: 41 data: 80a8000023832127000000000000001000000000000000097800000000000978230301003839303100
+05 get the processing options response length: 203 data: 7781c68202200094041002040057134930005025003985d26092012166408100000f9f100706010a03a020009f2608aadc30a3f0eacd2a9f2701809f360200749f6c0238009f4b818077106b6ebd5964c998ccda8e7369633ce6a6b8de70f8d2350b5a044fa5255ab7112d8a60db909610acf6449968fb9155b0ffaaa9d52235c37c9c3e38a82c841c40edca7abbcfac08ce82f8807a6c19f3f5e438328ea9a14b7ccccc31c1a2d759705cd66e2b3b9bf700614acfbdb6880a59482c55422bb15a1bc4fd7599a922709000
+------------------------------------
+77 81 C6 -- Response Message Template Format 2
+ 82 02 -- Application Interchange Profile
+ 20 00 (BINARY)
+ 94 04 -- Application File Locator (AFL)
+ 10 02 04 00 (BINARY)
+ 57 13 -- Track 2 Equivalent Data
+ 49 30 00 50 25 00 39 85 D2 60 92 01 21 66 40 81
+ 00 00 0F (BINARY)
+ 9F 10 07 -- Issuer Application Data
+ 06 01 0A 03 A0 20 00 (BINARY)
+ 9F 26 08 -- Application Cryptogram
+ AA DC 30 A3 F0 EA CD 2A (BINARY)
+ 9F 27 01 -- Cryptogram Information Data
+ 80 (BINARY)
+ 9F 36 02 -- Application Transaction Counter (ATC)
+ 00 74 (BINARY)
+ 9F 6C 02 -- Mag Stripe Application Version Number (Card)
+ 38 00 (BINARY)
+ 9F 4B 81 80 -- Signed Dynamic Application Data
+ 77 10 6B 6E BD 59 64 C9 98 CC DA 8E 73 69 63 3C
+ E6 A6 B8 DE 70 F8 D2 35 0B 5A 04 4F A5 25 5A B7
+ 11 2D 8A 60 DB 90 96 10 AC F6 44 99 68 FB 91 55
+ B0 FF AA A9 D5 22 35 C3 7C 9C 3E 38 A8 2C 84 1C
+ 40 ED CA 7A BB CF AC 08 CE 82 F8 80 7A 6C 19 F3
+ F5 E4 38 32 8E A9 A1 4B 7C CC CC 31 C1 A2 D7 59
+ 70 5C D6 6E 2B 3B 9B F7 00 61 4A CF BD B6 88 0A
+ 59 48 2C 55 42 2B B1 5A 1B C4 FD 75 99 A9 22 70 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+workflow a)
+
+
+*********************************
+************ step 06 ************
+* read files & search PAN *
+*********************************
+06 read the files from card skipped
+the response contains a Track 2 Equivalent Data tag [tag 0x57]
+found tag 0x57 in the gpoResponse length: 19 data: 4930005025003985d26092012166408100000f
+found a PAN 4930005025003985 with Expiration date: 2609
+
+
+*********************************
+************ step 07 ************
+* print PAN & expire date *
+*********************************
+07 get PAN and Expiration date from tag 0x57 (Track 2 Equivalent Data)
+data for AID a0000000031010
+PAN: 4930005025003985
+Expiration date (YYMM): 2609
+
+workflow c)
+the response is of type 'Response Message Template Format 2' [tag 0x77]
+found tag 0x77 in the gpoResponse
+found 'AFL' [tag 0x94] in the response of type 'Response Message Template Format 2' [tag 0x77]
+found tag 0x94 in the gpoResponse length: 4 data: 10020400
+
+found this AFL data in the gpoResponse to read from: 10020400
+
+
+*********************************
+************ step 06 ************
+* read files & search PAN *
+*********************************
+06 read the files from card and search for PAN & Expiration date
+
+The AFL contains 1 entry to read
+for SFI 10 we read 3 records
+readRecord command length: 5 data: 00b2021400
+readRecord response length: 256 data: 7081fb9081f88893cf85a81325ab8da6a4196eb5787291db7205f61b172b26deb867da427f1d0e438e86400aea81a0f2826b250da618108389bdabe2a75c0168a28bb97645158b57ca8faa1d38d7a56e0a4171ec0d5e048d048dd98106bcadb3b5cac80485ff9c0fc970b4ea95d557fb9dd065bf75eb06f51df5a2c20479058ede6c8a376d9bfbf0c05b9e2b5aac1ec5982e2a9d861573e892da87b68357306e88cb054ab0090e01670a73d23fa239f4ae1283110fca40d46edc6c8021d15b3c147251b3c5e754f0fa9d82b7934ed34a12ef3d0a66c0c2a26a32e9722b10653516b356440aa8eece8d1d023829394adc2f9309ff60fc5baf51c0b24690be9000
+------------------------------------
+70 81 FB -- Record Template (EMV Proprietary)
+ 90 81 F8 -- Issuer Public Key Certificate
+ 88 93 CF 85 A8 13 25 AB 8D A6 A4 19 6E B5 78 72
+ 91 DB 72 05 F6 1B 17 2B 26 DE B8 67 DA 42 7F 1D
+ 0E 43 8E 86 40 0A EA 81 A0 F2 82 6B 25 0D A6 18
+ 10 83 89 BD AB E2 A7 5C 01 68 A2 8B B9 76 45 15
+ 8B 57 CA 8F AA 1D 38 D7 A5 6E 0A 41 71 EC 0D 5E
+ 04 8D 04 8D D9 81 06 BC AD B3 B5 CA C8 04 85 FF
+ 9C 0F C9 70 B4 EA 95 D5 57 FB 9D D0 65 BF 75 EB
+ 06 F5 1D F5 A2 C2 04 79 05 8E DE 6C 8A 37 6D 9B
+ FB F0 C0 5B 9E 2B 5A AC 1E C5 98 2E 2A 9D 86 15
+ 73 E8 92 DA 87 B6 83 57 30 6E 88 CB 05 4A B0 09
+ 0E 01 67 0A 73 D2 3F A2 39 F4 AE 12 83 11 0F CA
+ 40 D4 6E DC 6C 80 21 D1 5B 3C 14 72 51 B3 C5 E7
+ 54 F0 FA 9D 82 B7 93 4E D3 4A 12 EF 3D 0A 66 C0
+ C2 A2 6A 32 E9 72 2B 10 65 35 16 B3 56 44 0A A8
+ EE CE 8D 1D 02 38 29 39 4A DC 2F 93 09 FF 60 FC
+ 5B AF 51 C0 B2 46 90 BE (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+readRecord command length: 5 data: 00b2031400
+readRecord response length: 11 data: 70079f3201038f01099000
+------------------------------------
+70 07 -- Record Template (EMV Proprietary)
+ 9F 32 01 -- Issuer Public Key Exponent
+ 03 (BINARY)
+ 8F 01 -- Certification Authority Public Key Index - card
+ 09 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+readRecord command length: 5 data: 00b2041400
+readRecord response length: 240 data: 7081eb9f4681b07e3b33a489fb75a23643407d2ebf48a808957165aa538d681213d71495b577086e63a24e847ed29d2ceba4bb3b1784361221287607ace4b8bfce09dd8364d4709293ed52b528623472fb6157094b12367534d7cf5c20b810058c817fb87c130111ee53c3855fd2b2a95449d03795541ea7c6ef942b0b069bfa7caa5d0ec6db0e428f18d03adcf7f92fb7e5516403adc629f3ffbd6900a1f308fbe5d28cba795c6c62d7573333abed15ad00a4da4ba8a99f4701035a0849300050250039855f24032609305f280202765f3401009f0702c0809f4a01829f6e04207000009f6907017723685938009000
+------------------------------------
+70 81 EB -- Record Template (EMV Proprietary)
+ 9F 46 81 B0 -- ICC Public Key Certificate
+ 7E 3B 33 A4 89 FB 75 A2 36 43 40 7D 2E BF 48 A8
+ 08 95 71 65 AA 53 8D 68 12 13 D7 14 95 B5 77 08
+ 6E 63 A2 4E 84 7E D2 9D 2C EB A4 BB 3B 17 84 36
+ 12 21 28 76 07 AC E4 B8 BF CE 09 DD 83 64 D4 70
+ 92 93 ED 52 B5 28 62 34 72 FB 61 57 09 4B 12 36
+ 75 34 D7 CF 5C 20 B8 10 05 8C 81 7F B8 7C 13 01
+ 11 EE 53 C3 85 5F D2 B2 A9 54 49 D0 37 95 54 1E
+ A7 C6 EF 94 2B 0B 06 9B FA 7C AA 5D 0E C6 DB 0E
+ 42 8F 18 D0 3A DC F7 F9 2F B7 E5 51 64 03 AD C6
+ 29 F3 FF BD 69 00 A1 F3 08 FB E5 D2 8C BA 79 5C
+ 6C 62 D7 57 33 33 AB ED 15 AD 00 A4 DA 4B A8 A9 (BINARY)
+ 9F 47 01 -- ICC Public Key Exponent
+ 03 (BINARY)
+ 5A 08 -- Application Primary Account Number (PAN)
+ 49 30 00 50 25 00 39 85 (NUMERIC)
+ 5F 24 03 -- Application Expiration Date
+ 26 09 30 (NUMERIC)
+ 5F 28 02 -- Issuer Country Code
+ 02 76 (NUMERIC)
+ 5F 34 01 -- Application Primary Account Number (PAN) Sequence Number
+ 00 (NUMERIC)
+ 9F 07 02 -- Application Usage Control
+ C0 80 (BINARY)
+ 9F 4A 01 -- Static Data Authentication Tag List
+ 82 (BINARY)
+ 9F 6E 04 -- Visa Low-Value Payment (VLP) Issuer Authorisation Code
+ 20 70 00 00 (BINARY)
+ 9F 69 07 -- UDOL
+ 01 77 23 68 59 38 00 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+found tag 0x5a in the readRecordResponse length: 8 data: 4930005025003985
+found tag 0x5f24 in the readRecordResponse length: 3 data: 260930
+
+
+*********************************
+************ step 07 ************
+* print PAN & expire date *
+*********************************
+07 get PAN and Expiration date from tags 0x5a and 0x5f24
+data for AID a0000000031010
+PAN: 4930005025003985
+Expiration date (YYMMDD): 260930
+
+*********************************
+
+*********************************
+************ step 99 ************
+* our journey ends *
+*********************************
diff --git a/docs/talk aab m mc debit.html b/docs/talk aab m mc debit.html
new file mode 100644
index 0000000..1feecf7
--- /dev/null
+++ b/docs/talk aab m mc debit.html
@@ -0,0 +1,297 @@
+NFC tag discovered
+TagId: 028eedb17074b0
+TechList found with these entries:
+android.nfc.tech.IsoDep
+android.nfc.tech.NfcA
+connection with card success
+
+*********************************
+************ step 00 ************
+* our journey begins *
+*********************************
+increase IsoDep timeout for long reading
+timeout old: 2000 ms
+timeout new: 10000 ms
+
+*********************************
+************ step 01 ************
+* select PPSE *
+*********************************
+01 select PPSE command length 20 data: 00a404000e325041592e5359532e444446303100
+01 select PPSE response length 64 data: 6f3c840e325041592e5359532e4444463031a52abf0c2761254f07a000000004101050104465626974204d6173746572436172648701019f0a04000101019000
+------------------------------------
+6F 3C -- File Control Information (FCI) Template
+ 84 0E -- Dedicated File (DF) Name
+ 32 50 41 59 2E 53 59 53 2E 44 44 46 30 31 (BINARY)
+ A5 2A -- File Control Information (FCI) Proprietary Template
+ BF 0C 27 -- File Control Information (FCI) Issuer Discretionary Data
+ 61 25 -- Application Template
+ 4F 07 -- Application Identifier (AID) - card
+ A0 00 00 00 04 10 10 (BINARY)
+ 50 10 -- Application Label
+ 44 65 62 69 74 20 4D 61 73 74 65 72 43 61 72 64 (=Debit MasterCard)
+ 87 01 -- Application Priority Indicator
+ 01 (BINARY)
+ 9F 0A 04 -- [UNKNOWN TAG]
+ 00 01 01 01 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+
+*********************************
+************ step 02 ************
+* search applications on card *
+*********************************
+02 analyze select PPSE response and search for tag 0x4F (applications on card)
+Found tag 0x4F 1 time:
+application Id (AID): a0000000041010
+
+
+*********************************
+************ step 03 ************
+* select application by AID *
+*********************************
+03 select application by AID a0000000041010 (number 1)
+
+03 select AID command length 13 data: 00a4040007a000000004101000
+03 select AID response length 86 data: 6f528407a0000000041010a54750104465626974204d6173746572436172649f12104465626974204d6173746572436172648701019f1101015f2d046465656ebf0c119f0a04000101019f6e07028000003030009000
+------------------------------------
+6F 52 -- File Control Information (FCI) Template
+ 84 07 -- Dedicated File (DF) Name
+ A0 00 00 00 04 10 10 (BINARY)
+ A5 47 -- File Control Information (FCI) Proprietary Template
+ 50 10 -- Application Label
+ 44 65 62 69 74 20 4D 61 73 74 65 72 43 61 72 64 (=Debit MasterCard)
+ 9F 12 10 -- Application Preferred Name
+ 44 65 62 69 74 20 4D 61 73 74 65 72 43 61 72 64 (=Debit MasterCard)
+ 87 01 -- Application Priority Indicator
+ 01 (BINARY)
+ 9F 11 01 -- Issuer Code Table Index
+ 01 (NUMERIC)
+ 5F 2D 04 -- Language Preference
+ 64 65 65 6E (=deen)
+ BF 0C 11 -- File Control Information (FCI) Issuer Discretionary Data
+ 9F 0A 04 -- [UNKNOWN TAG]
+ 00 01 01 01 (BINARY)
+ 9F 6E 07 -- Visa Low-Value Payment (VLP) Issuer Authorisation Code
+ 02 80 00 00 30 30 00 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+get single data elements
+single data retrieved from card
+-----------------------------------------------------
+applicationTransactionCounter: NULL
+-----------------------------------------------------
+pinTryCounter: 03
+-----------------------------------------------------
+lastOnlineATCRegister: NULL
+-----------------------------------------------------
+logFormat: 0000000000000000000000000000000000000000000000000000
+-----------------------------------------------------
+
+
+*********************************
+************ step 04 ************
+* search for tag 0x9F38 *
+*********************************
+04 search for tag 0x9F38 in the selectAid response
+
+### processing the MasterCard path ###
+
+No PDOL found in the selectAid response, generating a 'null' PDOL
+
+The card is requesting 0 tags in the PDOL
+
+Tag Tag Name Length Value
+-----------------------------------------------------
+ no PDOL provided, returning an empty command
+-----------------------------------------------------
+
+*********************************
+************ step 05 ************
+* get the processing options *
+*********************************
+05 get the processing options command length: 8 data: 80a8000002830000
+05 get the processing options response length: 22 data: 771282021980940c0801010010010101200102009000
+------------------------------------
+77 12 -- Response Message Template Format 2
+ 82 02 -- Application Interchange Profile
+ 19 80 (BINARY)
+ 94 0C -- Application File Locator (AFL)
+ 08 01 01 00 10 01 01 01 20 01 02 00 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+workflow c)
+the response is of type 'Response Message Template Format 2' [tag 0x77]
+found tag 0x77 in the gpoResponse
+found 'AFL' [tag 0x94] in the response of type 'Response Message Template Format 2' [tag 0x77]
+found tag 0x94 in the gpoResponse length: 12 data: 080101001001010120010200
+
+found this AFL data in the gpoResponse to read from: 080101001001010120010200
+
+
+*********************************
+************ step 06 ************
+* read files & search PAN *
+*********************************
+06 read the files from card and search for PAN & Expiration date
+
+The AFL contains 3 entries to read
+for SFI 8 we read 1 record
+readRecord command length: 5 data: 00b2010c00
+readRecord response length: 121 data: 70759f6c0200019f6206000000000f009f63060000000000fe563442353337353035303030303136303131305e202f5e323430333232313237393433323930303030303030303030303030303030309f6401029f65020f009f660200fe9f6b135375050000160110d24032210000000000000f9f6701029000
+------------------------------------
+70 75 -- Record Template (EMV Proprietary)
+ 9F 6C 02 -- Mag Stripe Application Version Number (Card)
+ 00 01 (BINARY)
+ 9F 62 06 -- Track 1 bit map for CVC3
+ 00 00 00 00 0F 00 (BINARY)
+ 9F 63 06 -- Track 1 bit map for UN and ATC
+ 00 00 00 00 00 FE (BINARY)
+ 56 34 -- Track 1 Data
+ 42 35 33 37 35 30 35 30 30 30 30 31 36 30 31 31
+ 30 5E 20 2F 5E 32 34 30 33 32 32 31 32 37 39 34
+ 33 32 39 30 30 30 30 30 30 30 30 30 30 30 30 30
+ 30 30 30 30 (BINARY)
+ 9F 64 01 -- Track 1 number of ATC digits
+ 02 (BINARY)
+ 9F 65 02 -- Track 2 bit map for CVC3
+ 0F 00 (BINARY)
+ 9F 66 02 -- Terminal Transaction Qualifiers
+ 00 FE (BINARY)
+ 9F 6B 13 -- Track 2 Data
+ 53 75 05 00 00 16 01 10 D2 40 32 21 00 00 00 00
+ 00 00 0F (BINARY)
+ 9F 67 01 -- Track 2 number of ATC digits
+ 02 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+for SFI 10 we read 1 record
+readRecord command length: 5 data: 00b2011400
+readRecord response length: 171 data: 7081a69f420209785f25032203015f24032403315a0853750500001601105f3401009f0702ffc09f080200028c279f02069f03069f1a0295055f2a029a039c019f37049f35019f45029f4c089f34039f21039f7c148d0c910a8a0295059f37049f4c088e0e000000000000000042031e031f039f0d05b4508400009f0e0500000000009f0f05b4708480005f280202809f4a018257135375050000160110d24032212794329000000f9000
+------------------------------------
+70 81 A6 -- Record Template (EMV Proprietary)
+ 9F 42 02 -- Application Currency Code
+ 09 78 (NUMERIC)
+ 5F 25 03 -- Application Effective Date
+ 22 03 01 (NUMERIC)
+ 5F 24 03 -- Application Expiration Date
+ 24 03 31 (NUMERIC)
+ 5A 08 -- Application Primary Account Number (PAN)
+ 53 75 05 00 00 16 01 10 (NUMERIC)
+ 5F 34 01 -- Application Primary Account Number (PAN) Sequence Number
+ 00 (NUMERIC)
+ 9F 07 02 -- Application Usage Control
+ FF C0 (BINARY)
+ 9F 08 02 -- Application Version Number - card
+ 00 02 (BINARY)
+ 8C 27 -- Card Risk Management Data Object List 1 (CDOL1)
+ 9F 02 06 -- Amount, Authorised (Numeric)
+ 9F 03 06 -- Amount, Other (Numeric)
+ 9F 1A 02 -- Terminal Country Code
+ 95 05 -- Terminal Verification Results (TVR)
+ 5F 2A 02 -- Transaction Currency Code
+ 9A 03 -- Transaction Date
+ 9C 01 -- Transaction Type
+ 9F 37 04 -- Unpredictable Number
+ 9F 35 01 -- Terminal Type
+ 9F 45 02 -- Data Authentication Code
+ 9F 4C 08 -- ICC Dynamic Number
+ 9F 34 03 -- Cardholder Verification (CVM) Results
+ 9F 21 03 -- Transaction Time (HHMMSS)
+ 9F 7C 14 -- Merchant Custom Data
+ 8D 0C -- Card Risk Management Data Object List 2 (CDOL2)
+ 91 0a -- Issuer Authentication Data
+ 8A 02 -- Authorisation Response Code
+ 95 05 -- Terminal Verification Results (TVR)
+ 9F 37 04 -- Unpredictable Number
+ 9F 4C 08 -- ICC Dynamic Number
+ 8E 0E -- Cardholder Verification Method (CVM) List
+ 00 00 00 00 00 00 00 00 42 03 1E 03 1F 03 (BINARY)
+ 9F 0D 05 -- Issuer Action Code - Default
+ B4 50 84 00 00 (BINARY)
+ 9F 0E 05 -- Issuer Action Code - Denial
+ 00 00 00 00 00 (BINARY)
+ 9F 0F 05 -- Issuer Action Code - Online
+ B4 70 84 80 00 (BINARY)
+ 5F 28 02 -- Issuer Country Code
+ 02 80 (NUMERIC)
+ 9F 4A 01 -- Static Data Authentication Tag List
+ 82 (BINARY)
+ 57 13 -- Track 2 Equivalent Data
+ 53 75 05 00 00 16 01 10 D2 40 32 21 27 94 32 90
+ 00 00 0F (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+found tag 0x5a in the readRecordResponse length: 8 data: 5375050000160110
+found tag 0x5f24 in the readRecordResponse length: 3 data: 240331
+
+
+*********************************
+************ step 07 ************
+* print PAN & expire date *
+*********************************
+07 get PAN and Expiration date from tags 0x5a and 0x5f24
+data for AID a0000000041010
+PAN: 5375050000160110
+Expiration date (YYMMDD): 240331
+
+for SFI 20 we read 2 records
+readRecord command length: 5 data: 00b2012400
+readRecord response length: 189 data: 7081b89f4701039f4681b03cada902afb40289fbdfea01950c498191442c1b48234dcaff66bca63cbf821a3121fa808e4275a4e894b154c1874bddb00f16276e92c73c04468253b373f1e6a9a89e2705b4670682d0adff05617a21d7684031a1cdb438e66cd98d591dc376398c8aab4f137a2226122990d9b2b4c72ded6495d637338fefa893ae7fb4eb845f8ec2e260d2385a780f9fda64b3639a9547adad806f78c9bc9f17f9d4c5b26474b9ba03892a754ffdf24df04c702f869000
+------------------------------------
+70 81 B8 -- Record Template (EMV Proprietary)
+ 9F 47 01 -- ICC Public Key Exponent
+ 03 (BINARY)
+ 9F 46 81 B0 -- ICC Public Key Certificate
+ 3C AD A9 02 AF B4 02 89 FB DF EA 01 95 0C 49 81
+ 91 44 2C 1B 48 23 4D CA FF 66 BC A6 3C BF 82 1A
+ 31 21 FA 80 8E 42 75 A4 E8 94 B1 54 C1 87 4B DD
+ B0 0F 16 27 6E 92 C7 3C 04 46 82 53 B3 73 F1 E6
+ A9 A8 9E 27 05 B4 67 06 82 D0 AD FF 05 61 7A 21
+ D7 68 40 31 A1 CD B4 38 E6 6C D9 8D 59 1D C3 76
+ 39 8C 8A AB 4F 13 7A 22 26 12 29 90 D9 B2 B4 C7
+ 2D ED 64 95 D6 37 33 8F EF A8 93 AE 7F B4 EB 84
+ 5F 8E C2 E2 60 D2 38 5A 78 0F 9F DA 64 B3 63 9A
+ 95 47 AD AD 80 6F 78 C9 BC 9F 17 F9 D4 C5 B2 64
+ 74 B9 BA 03 89 2A 75 4F FD F2 4D F0 4C 70 2F 86 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+readRecord command length: 5 data: 00b2022400
+readRecord response length: 229 data: 7081e08f01059f3201039224abfd2ebc115c3796e382be7e9863b92c266ccabc8bd014923024c80563234e8a11710a019081b004cc60769cabe557a9f2d83c7c73f8b177dbf69288e332f151fba10027301bb9a18203ba421bda9c2cc8186b975885523bf6707f287a5e88f0f6cd79a076319c1404fcdd1f4fa011f7219e1bf74e07b25e781d6af017a9404df9fd805b05b76874663ea88515018b2cb6140dc001a998016d28c4af8e49dfcc7d9cee314e72ae0d993b52cae91a5b5c76b0b33e7ac14a7294b59213ca0c50463cfb8b040bb8ac953631b80fa85a698b00228b5ff442239000
+------------------------------------
+70 81 E0 -- Record Template (EMV Proprietary)
+ 8F 01 -- Certification Authority Public Key Index - card
+ 05 (BINARY)
+ 9F 32 01 -- Issuer Public Key Exponent
+ 03 (BINARY)
+ 92 24 -- Issuer Public Key Remainder
+ AB FD 2E BC 11 5C 37 96 E3 82 BE 7E 98 63 B9 2C
+ 26 6C CA BC 8B D0 14 92 30 24 C8 05 63 23 4E 8A
+ 11 71 0A 01 (BINARY)
+ 90 81 B0 -- Issuer Public Key Certificate
+ 04 CC 60 76 9C AB E5 57 A9 F2 D8 3C 7C 73 F8 B1
+ 77 DB F6 92 88 E3 32 F1 51 FB A1 00 27 30 1B B9
+ A1 82 03 BA 42 1B DA 9C 2C C8 18 6B 97 58 85 52
+ 3B F6 70 7F 28 7A 5E 88 F0 F6 CD 79 A0 76 31 9C
+ 14 04 FC DD 1F 4F A0 11 F7 21 9E 1B F7 4E 07 B2
+ 5E 78 1D 6A F0 17 A9 40 4D F9 FD 80 5B 05 B7 68
+ 74 66 3E A8 85 15 01 8B 2C B6 14 0D C0 01 A9 98
+ 01 6D 28 C4 AF 8E 49 DF CC 7D 9C EE 31 4E 72 AE
+ 0D 99 3B 52 CA E9 1A 5B 5C 76 B0 B3 3E 7A C1 4A
+ 72 94 B5 92 13 CA 0C 50 46 3C FB 8B 04 0B B8 AC
+ 95 36 31 B8 0F A8 5A 69 8B 00 22 8B 5F F4 42 23 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+*********************************
+
+*********************************
+************ step 99 ************
+* our journey ends *
+*********************************
diff --git a/docs/talk comd m Visa deb.html b/docs/talk comd m Visa deb.html
new file mode 100644
index 0000000..6cf720c
--- /dev/null
+++ b/docs/talk comd m Visa deb.html
@@ -0,0 +1,299 @@
+NFC tag discovered
+TagId: 0585921afb9100
+TechList found with these entries:
+android.nfc.tech.IsoDep
+android.nfc.tech.NfcA
+connection with card success
+
+*********************************
+************ step 00 ************
+* our journey begins *
+*********************************
+increase IsoDep timeout for long reading
+timeout old: 2000 ms
+timeout new: 10000 ms
+
+*********************************
+************ step 01 ************
+* select PPSE *
+*********************************
+01 select PPSE command length 20 data: 00a404000e325041592e5359532e444446303100
+01 select PPSE response length 62 data: 6f3a840e325041592e5359532e4444463031a528bf0c2561234f07a0000000031010500a566973612044656269748701019f0a0800010501000000009000
+------------------------------------
+6F 3A -- File Control Information (FCI) Template
+ 84 0E -- Dedicated File (DF) Name
+ 32 50 41 59 2E 53 59 53 2E 44 44 46 30 31 (BINARY)
+ A5 28 -- File Control Information (FCI) Proprietary Template
+ BF 0C 25 -- File Control Information (FCI) Issuer Discretionary Data
+ 61 23 -- Application Template
+ 4F 07 -- Application Identifier (AID) - card
+ A0 00 00 00 03 10 10 (BINARY)
+ 50 0A -- Application Label
+ 56 69 73 61 20 44 65 62 69 74 (=Visa Debit)
+ 87 01 -- Application Priority Indicator
+ 01 (BINARY)
+ 9F 0A 08 -- [UNKNOWN TAG]
+ 00 01 05 01 00 00 00 00 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+
+*********************************
+************ step 02 ************
+* search applications on card *
+*********************************
+02 analyze select PPSE response and search for tag 0x4F (applications on card)
+Found tag 0x4F 1 time:
+application Id (AID): a0000000031010
+
+
+*********************************
+************ step 03 ************
+* select application by AID *
+*********************************
+03 select application by AID a0000000031010 (number 1)
+
+03 select AID command length 13 data: 00a4040007a000000003101000
+03 select AID response length 115 data: 6f6f8407a0000000031010a564500a566973612044656269749f120f636f6d6469726563742044656269749f1101018701015f2d046465656e9f38189f66049f02069f03069f1a0295055f2a029a039c019f3704bf0c1a9f0a0800010501000000009f5a053109780276bf6304df2001809000
+------------------------------------
+6F 6F -- File Control Information (FCI) Template
+ 84 07 -- Dedicated File (DF) Name
+ A0 00 00 00 03 10 10 (BINARY)
+ A5 64 -- File Control Information (FCI) Proprietary Template
+ 50 0A -- Application Label
+ 56 69 73 61 20 44 65 62 69 74 (=Visa Debit)
+ 9F 12 0F -- Application Preferred Name
+ 63 6F 6D 64 69 72 65 63 74 20 44 65 62 69 74 (=comdirect Debit)
+ 9F 11 01 -- Issuer Code Table Index
+ 01 (NUMERIC)
+ 87 01 -- Application Priority Indicator
+ 01 (BINARY)
+ 5F 2D 04 -- Language Preference
+ 64 65 65 6E (=deen)
+ 9F 38 18 -- Processing Options Data Object List (PDOL)
+ 9F 66 04 -- Terminal Transaction Qualifiers
+ 9F 02 06 -- Amount, Authorised (Numeric)
+ 9F 03 06 -- Amount, Other (Numeric)
+ 9F 1A 02 -- Terminal Country Code
+ 95 05 -- Terminal Verification Results (TVR)
+ 5F 2A 02 -- Transaction Currency Code
+ 9A 03 -- Transaction Date
+ 9C 01 -- Transaction Type
+ 9F 37 04 -- Unpredictable Number
+ BF 0C 1A -- File Control Information (FCI) Issuer Discretionary Data
+ 9F 0A 08 -- [UNKNOWN TAG]
+ 00 01 05 01 00 00 00 00 (BINARY)
+ 9F 5A 05 -- Terminal transaction Type (Interac)
+ 31 09 78 02 76 (BINARY)
+ BF 63 04 -- [UNKNOWN TAG]
+ DF 20 01 -- [UNKNOWN TAG]
+ 80 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+get single data elements
+single data retrieved from card
+-----------------------------------------------------
+applicationTransactionCounter: 00c2 (hex), 194 (dec)
+-----------------------------------------------------
+pinTryCounter: 01
+-----------------------------------------------------
+lastOnlineATCRegister: 0002
+-----------------------------------------------------
+logFormat: 9f27019f36029f02069f03069f1a025f2a0295059a039c01
+-----------------------------------------------------
+
+
+*********************************
+************ step 04 ************
+* search for tag 0x9F38 *
+*********************************
+04 search for tag 0x9F38 in the selectAid response
+
+### processing the America Express, VisaCard and GiroCard path ###
+
+found tag 0x9F38 (PDOL) in the selectAid with this length: 24 data: 9f66049f02069f03069f1a0295055f2a029a039c019f3704
+
+The card is requesting 9 tags in the PDOL
+
+Tag Tag Name Length Value
+-----------------------------------------------------
+9f66 Terminal Transaction Qualifiers 4 27 00 00 00
+9f02 Amount, Authorised (Numeric) 6 00 00 00 00 10 00
+9f03 Amount, Other (Numeric) 6 00 00 00 00 00 00
+9f1a Terminal Country Code 2 09 78
+95 Terminal Verification Results (TVR) 5 00 00 00 00 00
+5f2a Transaction Currency Code 2 09 78
+9a Transaction Date 3 23 03 01
+9c Transaction Type 1 00
+9f37 Unpredictable Number 4 38 39 30 31
+-----------------------------------------------------
+
+
+*********************************
+************ step 05 ************
+* get the processing options *
+*********************************
+05 get the processing options command length: 41 data: 80a8000023832127000000000000001000000000000000097800000000000978230301003839303100
+05 get the processing options response length: 203 data: 7781c68202202094041001030057134871780082770574d25072211328662101000f9f100706011203a000009f2608ec1c5779ff2670379f2701809f360200c39f6c0204009f4b81809016903df9bad2d289d580a82ea1cf58d51d7ba234a7df6df83e4d115d93f31e8f98d95abdd8aac65c5b2fbcabaef5f7480fdf274eff4ffdab9e30e775660d4ffbf52629f2c63fdb93eb11cebaca3ac030e883bd864e3d19b8929119fe7d613529c106d0ae7270c4b645cc1f45e21c49c37f15f1686d949f367b11a6e731a97a9000
+------------------------------------
+77 81 C6 -- Response Message Template Format 2
+ 82 02 -- Application Interchange Profile
+ 20 20 (BINARY)
+ 94 04 -- Application File Locator (AFL)
+ 10 01 03 00 (BINARY)
+ 57 13 -- Track 2 Equivalent Data
+ 48 71 78 00 82 77 05 74 D2 50 72 21 13 28 66 21
+ 01 00 0F (BINARY)
+ 9F 10 07 -- Issuer Application Data
+ 06 01 12 03 A0 00 00 (BINARY)
+ 9F 26 08 -- Application Cryptogram
+ EC 1C 57 79 FF 26 70 37 (BINARY)
+ 9F 27 01 -- Cryptogram Information Data
+ 80 (BINARY)
+ 9F 36 02 -- Application Transaction Counter (ATC)
+ 00 C3 (BINARY)
+ 9F 6C 02 -- Mag Stripe Application Version Number (Card)
+ 04 00 (BINARY)
+ 9F 4B 81 80 -- Signed Dynamic Application Data
+ 90 16 90 3D F9 BA D2 D2 89 D5 80 A8 2E A1 CF 58
+ D5 1D 7B A2 34 A7 DF 6D F8 3E 4D 11 5D 93 F3 1E
+ 8F 98 D9 5A BD D8 AA C6 5C 5B 2F BC AB AE F5 F7
+ 48 0F DF 27 4E FF 4F FD AB 9E 30 E7 75 66 0D 4F
+ FB F5 26 29 F2 C6 3F DB 93 EB 11 CE BA CA 3A C0
+ 30 E8 83 BD 86 4E 3D 19 B8 92 91 19 FE 7D 61 35
+ 29 C1 06 D0 AE 72 70 C4 B6 45 CC 1F 45 E2 1C 49
+ C3 7F 15 F1 68 6D 94 9F 36 7B 11 A6 E7 31 A9 7A (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+workflow a)
+
+
+*********************************
+************ step 06 ************
+* read files & search PAN *
+*********************************
+06 read the files from card skipped
+the response contains a Track 2 Equivalent Data tag [tag 0x57]
+found tag 0x57 in the gpoResponse length: 19 data: 4871780082770574d25072211328662101000f
+found a PAN 4871780082770574 with Expiration date: 2507
+
+
+*********************************
+************ step 07 ************
+* print PAN & expire date *
+*********************************
+07 get PAN and Expiration date from tag 0x57 (Track 2 Equivalent Data)
+data for AID a0000000031010
+PAN: 4871780082770574
+Expiration date (YYMM): 2507
+
+workflow c)
+the response is of type 'Response Message Template Format 2' [tag 0x77]
+found tag 0x77 in the gpoResponse
+found 'AFL' [tag 0x94] in the response of type 'Response Message Template Format 2' [tag 0x77]
+found tag 0x94 in the gpoResponse length: 4 data: 10010300
+
+found this AFL data in the gpoResponse to read from: 10010300
+
+
+*********************************
+************ step 06 ************
+* read files & search PAN *
+*********************************
+06 read the files from card and search for PAN & Expiration date
+
+The AFL contains 1 entry to read
+for SFI 10 we read 3 records
+readRecord command length: 5 data: 00b2011400
+readRecord response length: 256 data: 7081fb9081f85ab54faf4ad810b3cca4ed42c38e1e768fca3187ed1be4196c6779c4633cbe88751889c12b05e10ee87cb198518793ff61e87534f66850e96239b76648429eced4cc207608d0d2a932dd9e8c4bb0d139c4eca59e1ef5f4708f72d80dc5b66c45f4566c91b55384dfdeabb55faa622c6764cc9fb4c4900b6ab2cec5abad9057e2cf63a881bb4ec2a5d96634d7c11366eb908a168d33aa3c544822fc83e74c104b9275b2ef1cf41375b404a260bbf8fb3d4452af3d0630bb1ec2a01676ba588ae7820727622a6d9df5c93a3ce807d54b79ae007c3d401f8787dc3e235e8b9ae6b1b9279328cb1ca94105434010f15eb07f487f4d5c94f4a5a79000
+------------------------------------
+70 81 FB -- Record Template (EMV Proprietary)
+ 90 81 F8 -- Issuer Public Key Certificate
+ 5A B5 4F AF 4A D8 10 B3 CC A4 ED 42 C3 8E 1E 76
+ 8F CA 31 87 ED 1B E4 19 6C 67 79 C4 63 3C BE 88
+ 75 18 89 C1 2B 05 E1 0E E8 7C B1 98 51 87 93 FF
+ 61 E8 75 34 F6 68 50 E9 62 39 B7 66 48 42 9E CE
+ D4 CC 20 76 08 D0 D2 A9 32 DD 9E 8C 4B B0 D1 39
+ C4 EC A5 9E 1E F5 F4 70 8F 72 D8 0D C5 B6 6C 45
+ F4 56 6C 91 B5 53 84 DF DE AB B5 5F AA 62 2C 67
+ 64 CC 9F B4 C4 90 0B 6A B2 CE C5 AB AD 90 57 E2
+ CF 63 A8 81 BB 4E C2 A5 D9 66 34 D7 C1 13 66 EB
+ 90 8A 16 8D 33 AA 3C 54 48 22 FC 83 E7 4C 10 4B
+ 92 75 B2 EF 1C F4 13 75 B4 04 A2 60 BB F8 FB 3D
+ 44 52 AF 3D 06 30 BB 1E C2 A0 16 76 BA 58 8A E7
+ 82 07 27 62 2A 6D 9D F5 C9 3A 3C E8 07 D5 4B 79
+ AE 00 7C 3D 40 1F 87 87 DC 3E 23 5E 8B 9A E6 B1
+ B9 27 93 28 CB 1C A9 41 05 43 40 10 F1 5E B0 7F
+ 48 7F 4D 5C 94 F4 A5 A7 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+readRecord command length: 5 data: 00b2021400
+readRecord response length: 11 data: 70078f01099f3201039000
+------------------------------------
+70 07 -- Record Template (EMV Proprietary)
+ 8F 01 -- Certification Authority Public Key Index - card
+ 09 (BINARY)
+ 9F 32 01 -- Issuer Public Key Exponent
+ 03 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+readRecord command length: 5 data: 00b2031400
+readRecord response length: 240 data: 7081eb9f4681b02c4b62dfaede136b9bafeddebaaf41e5f4fdc9920b077817de896e6503c69c8f80ece2559cdf721ce1b7b2bc159fe77ec8d6eb45296876fbf4a6bd4bb4a11511ebd80fdf1c7bb8e1f4a2cdb7c4db0cc6f9fda7f6696c30d3846e1b98f4c849b7385f349d280fd92d75774dcbed96a5328f657f7eceb4bfa3ec3f9f39a64414bdbf0f03b15c49cbf0475bfa6a5f2513689c195faea031ae2391998be2028aa1671b380eb19a69a6c454bd2a30d11bc63c9f4701035a0848717800827705745f24032507315f3401015f280202769f070200809f4a01829f6e04207000009f690701859209cf04009000
+------------------------------------
+70 81 EB -- Record Template (EMV Proprietary)
+ 9F 46 81 B0 -- ICC Public Key Certificate
+ 2C 4B 62 DF AE DE 13 6B 9B AF ED DE BA AF 41 E5
+ F4 FD C9 92 0B 07 78 17 DE 89 6E 65 03 C6 9C 8F
+ 80 EC E2 55 9C DF 72 1C E1 B7 B2 BC 15 9F E7 7E
+ C8 D6 EB 45 29 68 76 FB F4 A6 BD 4B B4 A1 15 11
+ EB D8 0F DF 1C 7B B8 E1 F4 A2 CD B7 C4 DB 0C C6
+ F9 FD A7 F6 69 6C 30 D3 84 6E 1B 98 F4 C8 49 B7
+ 38 5F 34 9D 28 0F D9 2D 75 77 4D CB ED 96 A5 32
+ 8F 65 7F 7E CE B4 BF A3 EC 3F 9F 39 A6 44 14 BD
+ BF 0F 03 B1 5C 49 CB F0 47 5B FA 6A 5F 25 13 68
+ 9C 19 5F AE A0 31 AE 23 91 99 8B E2 02 8A A1 67
+ 1B 38 0E B1 9A 69 A6 C4 54 BD 2A 30 D1 1B C6 3C (BINARY)
+ 9F 47 01 -- ICC Public Key Exponent
+ 03 (BINARY)
+ 5A 08 -- Application Primary Account Number (PAN)
+ 48 71 78 00 82 77 05 74 (NUMERIC)
+ 5F 24 03 -- Application Expiration Date
+ 25 07 31 (NUMERIC)
+ 5F 34 01 -- Application Primary Account Number (PAN) Sequence Number
+ 01 (NUMERIC)
+ 5F 28 02 -- Issuer Country Code
+ 02 76 (NUMERIC)
+ 9F 07 02 -- Application Usage Control
+ 00 80 (BINARY)
+ 9F 4A 01 -- Static Data Authentication Tag List
+ 82 (BINARY)
+ 9F 6E 04 -- Visa Low-Value Payment (VLP) Issuer Authorisation Code
+ 20 70 00 00 (BINARY)
+ 9F 69 07 -- UDOL
+ 01 85 92 09 CF 04 00 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+found tag 0x5a in the readRecordResponse length: 8 data: 4871780082770574
+found tag 0x5f24 in the readRecordResponse length: 3 data: 250731
+
+
+*********************************
+************ step 07 ************
+* print PAN & expire date *
+*********************************
+07 get PAN and Expiration date from tags 0x5a and 0x5f24
+data for AID a0000000031010
+PAN: 4871780082770574
+Expiration date (YYMMDD): 250731
+
+*********************************
+
+*********************************
+************ step 99 ************
+* our journey ends *
+*********************************
diff --git a/docs/talk db b mc credit .html b/docs/talk db b mc credit .html
new file mode 100644
index 0000000..158def7
--- /dev/null
+++ b/docs/talk db b mc credit .html
@@ -0,0 +1,305 @@
+NFC tag discovered
+TagId: 3f8e95c9
+TechList found with these entries:
+android.nfc.tech.IsoDep
+android.nfc.tech.NfcA
+android.nfc.tech.NfcA
+android.nfc.tech.MifareClassic
+android.nfc.tech.NdefFormatable
+connection with card success
+
+*********************************
+************ step 00 ************
+* our journey begins *
+*********************************
+increase IsoDep timeout for long reading
+timeout old: 2000 ms
+timeout new: 10000 ms
+
+*********************************
+************ step 01 ************
+* select PPSE *
+*********************************
+01 select PPSE command length 20 data: 00a404000e325041592e5359532e444446303100
+01 select PPSE response length 39 data: 6f23840e325041592e5359532e4444463031a511bf0c0e610c4f07a00000000410108701019000
+------------------------------------
+6F 23 -- File Control Information (FCI) Template
+ 84 0E -- Dedicated File (DF) Name
+ 32 50 41 59 2E 53 59 53 2E 44 44 46 30 31 (BINARY)
+ A5 11 -- File Control Information (FCI) Proprietary Template
+ BF 0C 0E -- File Control Information (FCI) Issuer Discretionary Data
+ 61 0C -- Application Template
+ 4F 07 -- Application Identifier (AID) - card
+ A0 00 00 00 04 10 10 (BINARY)
+ 87 01 -- Application Priority Indicator
+ 01 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+
+*********************************
+************ step 02 ************
+* search applications on card *
+*********************************
+02 analyze select PPSE response and search for tag 0x4F (applications on card)
+Found tag 0x4F 1 time:
+application Id (AID): a0000000041010
+
+
+*********************************
+************ step 03 ************
+* select application by AID *
+*********************************
+03 select application by AID a0000000041010 (number 1)
+
+03 select AID command length 13 data: 00a4040007a000000004101000
+03 select AID response length 45 data: 6f298407a0000000041010a51e500a4d4153544552434152448701015f2d046465656ebf0c059f4d020b0a9000
+------------------------------------
+6F 29 -- File Control Information (FCI) Template
+ 84 07 -- Dedicated File (DF) Name
+ A0 00 00 00 04 10 10 (BINARY)
+ A5 1E -- File Control Information (FCI) Proprietary Template
+ 50 0A -- Application Label
+ 4D 41 53 54 45 52 43 41 52 44 (=MASTERCARD)
+ 87 01 -- Application Priority Indicator
+ 01 (BINARY)
+ 5F 2D 04 -- Language Preference
+ 64 65 65 6E (=deen)
+ BF 0C 05 -- File Control Information (FCI) Issuer Discretionary Data
+ 9F 4D 02 -- Log Entry
+ 0B 0A (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+get single data elements
+single data retrieved from card
+-----------------------------------------------------
+applicationTransactionCounter: NULL
+-----------------------------------------------------
+pinTryCounter: 01
+-----------------------------------------------------
+lastOnlineATCRegister: NULL
+-----------------------------------------------------
+logFormat: 9f27019f02065f2a029a039f36029f5206
+-----------------------------------------------------
+
+
+*********************************
+************ step 04 ************
+* search for tag 0x9F38 *
+*********************************
+04 search for tag 0x9F38 in the selectAid response
+
+### processing the MasterCard path ###
+
+No PDOL found in the selectAid response, generating a 'null' PDOL
+
+The card is requesting 0 tags in the PDOL
+
+Tag Tag Name Length Value
+-----------------------------------------------------
+ no PDOL provided, returning an empty command
+-----------------------------------------------------
+
+*********************************
+************ step 05 ************
+* get the processing options *
+*********************************
+05 get the processing options command length: 8 data: 80a8000002830000
+05 get the processing options response length: 26 data: 7716820219809410080101001001010118010200200102009000
+------------------------------------
+77 16 -- Response Message Template Format 2
+ 82 02 -- Application Interchange Profile
+ 19 80 (BINARY)
+ 94 10 -- Application File Locator (AFL)
+ 08 01 01 00 10 01 01 01 18 01 02 00 20 01 02 00 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+workflow c)
+the response is of type 'Response Message Template Format 2' [tag 0x77]
+found tag 0x77 in the gpoResponse
+found 'AFL' [tag 0x94] in the response of type 'Response Message Template Format 2' [tag 0x77]
+found tag 0x94 in the gpoResponse length: 16 data: 08010100100101011801020020010200
+
+found this AFL data in the gpoResponse to read from: 08010100100101011801020020010200
+
+
+*********************************
+************ step 06 ************
+* read files & search PAN *
+*********************************
+06 read the files from card and search for PAN & Expiration date
+
+The AFL contains 4 entries to read
+for SFI 8 we read 1 record
+readRecord command length: 5 data: 00b2010c00
+readRecord response length: 121 data: 70759f6c0200019f620600000000000e9f63060000000007f09f640104563442353437323638363533343935383033325e202f5e323030323230313135313530303030303030303030303030303030303030309f660207f09f6b135472686534958032d20022011500000000000f9f6502000e9f6701049000
+------------------------------------
+70 75 -- Record Template (EMV Proprietary)
+ 9F 6C 02 -- Mag Stripe Application Version Number (Card)
+ 00 01 (BINARY)
+ 9F 62 06 -- Track 1 bit map for CVC3
+ 00 00 00 00 00 0E (BINARY)
+ 9F 63 06 -- Track 1 bit map for UN and ATC
+ 00 00 00 00 07 F0 (BINARY)
+ 9F 64 01 -- Track 1 number of ATC digits
+ 04 (BINARY)
+ 56 34 -- Track 1 Data
+ 42 35 34 37 32 36 38 36 35 33 34 39 35 38 30 33
+ 32 5E 20 2F 5E 32 30 30 32 32 30 31 31 35 31 35
+ 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30
+ 30 30 30 30 (BINARY)
+ 9F 66 02 -- Terminal Transaction Qualifiers
+ 07 F0 (BINARY)
+ 9F 6B 13 -- Track 2 Data
+ 54 72 68 65 34 95 80 32 D2 00 22 01 15 00 00 00
+ 00 00 0F (BINARY)
+ 9F 65 02 -- Track 2 bit map for CVC3
+ 00 0E (BINARY)
+ 9F 67 01 -- Track 2 number of ATC digits
+ 04 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+for SFI 10 we read 1 record
+readRecord command length: 5 data: 00b2011400
+readRecord response length: 165 data: 7081a057135472686534958032d20022011515010100000f5a0854726865349580325f24032002295f25031602015f280202805f3401008c219f02069f03069f1a0295055f2a029a039c019f37049f35019f45029f4c089f34038d0c910a8a0295059f37049f4c088e0e00000000000000001e0342031f039f0702ff009f080200029f0d05b4508400009f0e0500000000009f0f05b4708480009f420209789f4a01829000
+------------------------------------
+70 81 A0 -- Record Template (EMV Proprietary)
+ 57 13 -- Track 2 Equivalent Data
+ 54 72 68 65 34 95 80 32 D2 00 22 01 15 15 01 01
+ 00 00 0F (BINARY)
+ 5A 08 -- Application Primary Account Number (PAN)
+ 54 72 68 65 34 95 80 32 (NUMERIC)
+ 5F 24 03 -- Application Expiration Date
+ 20 02 29 (NUMERIC)
+ 5F 25 03 -- Application Effective Date
+ 16 02 01 (NUMERIC)
+ 5F 28 02 -- Issuer Country Code
+ 02 80 (NUMERIC)
+ 5F 34 01 -- Application Primary Account Number (PAN) Sequence Number
+ 00 (NUMERIC)
+ 8C 21 -- Card Risk Management Data Object List 1 (CDOL1)
+ 9F 02 06 -- Amount, Authorised (Numeric)
+ 9F 03 06 -- Amount, Other (Numeric)
+ 9F 1A 02 -- Terminal Country Code
+ 95 05 -- Terminal Verification Results (TVR)
+ 5F 2A 02 -- Transaction Currency Code
+ 9A 03 -- Transaction Date
+ 9C 01 -- Transaction Type
+ 9F 37 04 -- Unpredictable Number
+ 9F 35 01 -- Terminal Type
+ 9F 45 02 -- Data Authentication Code
+ 9F 4C 08 -- ICC Dynamic Number
+ 9F 34 03 -- Cardholder Verification (CVM) Results
+ 8D 0C -- Card Risk Management Data Object List 2 (CDOL2)
+ 91 0a -- Issuer Authentication Data
+ 8A 02 -- Authorisation Response Code
+ 95 05 -- Terminal Verification Results (TVR)
+ 9F 37 04 -- Unpredictable Number
+ 9F 4C 08 -- ICC Dynamic Number
+ 8E 0E -- Cardholder Verification Method (CVM) List
+ 00 00 00 00 00 00 00 00 1E 03 42 03 1F 03 (BINARY)
+ 9F 07 02 -- Application Usage Control
+ FF 00 (BINARY)
+ 9F 08 02 -- Application Version Number - card
+ 00 02 (BINARY)
+ 9F 0D 05 -- Issuer Action Code - Default
+ B4 50 84 00 00 (BINARY)
+ 9F 0E 05 -- Issuer Action Code - Denial
+ 00 00 00 00 00 (BINARY)
+ 9F 0F 05 -- Issuer Action Code - Online
+ B4 70 84 80 00 (BINARY)
+ 9F 42 02 -- Application Currency Code
+ 09 78 (NUMERIC)
+ 9F 4A 01 -- Static Data Authentication Tag List
+ 82 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+found tag 0x5a in the readRecordResponse length: 8 data: 5472686534958032
+found tag 0x5f24 in the readRecordResponse length: 3 data: 200229
+
+
+*********************************
+************ step 07 ************
+* print PAN & expire date *
+*********************************
+07 get PAN and Expiration date from tags 0x5a and 0x5f24
+data for AID a0000000041010
+PAN: 5472686534958032
+Expiration date (YYMMDD): 200229
+
+for SFI 18 we read 2 records
+readRecord command length: 5 data: 00b2011c00
+readRecord response length: 229 data: 7081e08f01059f32010392246725a0ce7472f9bf746107f35fa55b1ce8fa53214f716b150bb252f23925c88ed746177d9081b0a8ed6b8e91ac7a31fb875e578ee3e20b92004fa69e43631edfe307fc5d841eeebb8056ea3470b0f8dbb869a9df37107a3eaa4cb1a1e55831fed9e1ea5b52b1cb9e3d345fb9a8c67b78c95faadf14965b0388278ad68c3a5955f359327bf363c26fae7a2d143601852605db0ca912d23569a7f6ddf91b1c4a489b3339e1392405038704261dd3bfe62fef67081c26004039aad2bf30cadcc2bc56f67da93b5a22504b753faeb3aa311e140a1237537e189000
+------------------------------------
+70 81 E0 -- Record Template (EMV Proprietary)
+ 8F 01 -- Certification Authority Public Key Index - card
+ 05 (BINARY)
+ 9F 32 01 -- Issuer Public Key Exponent
+ 03 (BINARY)
+ 92 24 -- Issuer Public Key Remainder
+ 67 25 A0 CE 74 72 F9 BF 74 61 07 F3 5F A5 5B 1C
+ E8 FA 53 21 4F 71 6B 15 0B B2 52 F2 39 25 C8 8E
+ D7 46 17 7D (BINARY)
+ 90 81 B0 -- Issuer Public Key Certificate
+ A8 ED 6B 8E 91 AC 7A 31 FB 87 5E 57 8E E3 E2 0B
+ 92 00 4F A6 9E 43 63 1E DF E3 07 FC 5D 84 1E EE
+ BB 80 56 EA 34 70 B0 F8 DB B8 69 A9 DF 37 10 7A
+ 3E AA 4C B1 A1 E5 58 31 FE D9 E1 EA 5B 52 B1 CB
+ 9E 3D 34 5F B9 A8 C6 7B 78 C9 5F AA DF 14 96 5B
+ 03 88 27 8A D6 8C 3A 59 55 F3 59 32 7B F3 63 C2
+ 6F AE 7A 2D 14 36 01 85 26 05 DB 0C A9 12 D2 35
+ 69 A7 F6 DD F9 1B 1C 4A 48 9B 33 39 E1 39 24 05
+ 03 87 04 26 1D D3 BF E6 2F EF 67 08 1C 26 00 40
+ 39 AA D2 BF 30 CA DC C2 BC 56 F6 7D A9 3B 5A 22
+ 50 4B 75 3F AE B3 AA 31 1E 14 0A 12 37 53 7E 18 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+readRecord command length: 5 data: 00b2021c00
+readRecord response length: 7 data: 70039301ff9000
+------------------------------------
+70 03 -- Record Template (EMV Proprietary)
+ 93 01 -- Signed Static Application Data
+ FF (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+for SFI 20 we read 2 records
+readRecord command length: 5 data: 00b2012400
+readRecord response length: 8 data: 70049f4701039000
+------------------------------------
+70 04 -- Record Template (EMV Proprietary)
+ 9F 47 01 -- ICC Public Key Exponent
+ 03 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+readRecord command length: 5 data: 00b2022400
+readRecord response length: 185 data: 7081b49f4681b03c7d97dfbe4c194ce43014102c1afb2ab779f69a6a0da69827e6d234d585ab849695e1c4d53920ba9c8b2984c2bd2ed0f312f023a7405c9626d44669aad72252a89c932353e432f7c4af03ac45349c18824849f4268556bf592b98b5b5d4c6ccb6a2d4db1e06a0fc61d547155937e48688b256a28b8398b0bb45399e01d651ca2fe1cc508d07cd070aed42fe531f349ea8d1ffe1f7807808615cd96d014821d3700fc46015febb38b6274dff6e6aef3d9000
+------------------------------------
+70 81 B4 -- Record Template (EMV Proprietary)
+ 9F 46 81 B0 -- ICC Public Key Certificate
+ 3C 7D 97 DF BE 4C 19 4C E4 30 14 10 2C 1A FB 2A
+ B7 79 F6 9A 6A 0D A6 98 27 E6 D2 34 D5 85 AB 84
+ 96 95 E1 C4 D5 39 20 BA 9C 8B 29 84 C2 BD 2E D0
+ F3 12 F0 23 A7 40 5C 96 26 D4 46 69 AA D7 22 52
+ A8 9C 93 23 53 E4 32 F7 C4 AF 03 AC 45 34 9C 18
+ 82 48 49 F4 26 85 56 BF 59 2B 98 B5 B5 D4 C6 CC
+ B6 A2 D4 DB 1E 06 A0 FC 61 D5 47 15 59 37 E4 86
+ 88 B2 56 A2 8B 83 98 B0 BB 45 39 9E 01 D6 51 CA
+ 2F E1 CC 50 8D 07 CD 07 0A ED 42 FE 53 1F 34 9E
+ A8 D1 FF E1 F7 80 78 08 61 5C D9 6D 01 48 21 D3
+ 70 0F C4 60 15 FE BB 38 B6 27 4D FF 6E 6A EF 3D (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+*********************************
+
+*********************************
+************ step 99 ************
+* our journey ends *
+*********************************
diff --git a/docs/talk voba m gc.html b/docs/talk voba m gc.html
new file mode 100644
index 0000000..7b1842a
--- /dev/null
+++ b/docs/talk voba m gc.html
@@ -0,0 +1,677 @@
+NFC tag discovered
+TagId: 082c376f
+TechList found with these entries:
+android.nfc.tech.IsoDep
+android.nfc.tech.NfcA
+connection with card success
+
+*********************************
+************ step 00 ************
+* our journey begins *
+*********************************
+increase IsoDep timeout for long reading
+timeout old: 2000 ms
+timeout new: 10000 ms
+
+*********************************
+************ step 01 ************
+* select PPSE *
+*********************************
+01 select PPSE command length 20 data: 00a404000e325041592e5359532e444446303100
+01 select PPSE response length 107 data: 6f67840e325041592e5359532e4444463031a555bf0c5261194f09a000000059454301008701019f0a080001050100000000611a4f0aa00000035910100280018701019f0a08000105010000000061194f09d276000025474101008701019f0a0800010501000000009000
+------------------------------------
+6F 67 -- File Control Information (FCI) Template
+ 84 0E -- Dedicated File (DF) Name
+ 32 50 41 59 2E 53 59 53 2E 44 44 46 30 31 (BINARY)
+ A5 55 -- File Control Information (FCI) Proprietary Template
+ BF 0C 52 -- File Control Information (FCI) Issuer Discretionary Data
+ 61 19 -- Application Template
+ 4F 09 -- Application Identifier (AID) - card
+ A0 00 00 00 59 45 43 01 00 (BINARY)
+ 87 01 -- Application Priority Indicator
+ 01 (BINARY)
+ 9F 0A 08 -- [UNKNOWN TAG]
+ 00 01 05 01 00 00 00 00 (BINARY)
+ 61 1A -- Application Template
+ 4F 0A -- Application Identifier (AID) - card
+ A0 00 00 03 59 10 10 02 80 01 (BINARY)
+ 87 01 -- Application Priority Indicator
+ 01 (BINARY)
+ 9F 0A 08 -- [UNKNOWN TAG]
+ 00 01 05 01 00 00 00 00 (BINARY)
+ 61 19 -- Application Template
+ 4F 09 -- Application Identifier (AID) - card
+ D2 76 00 00 25 47 41 01 00 (BINARY)
+ 87 01 -- Application Priority Indicator
+ 01 (BINARY)
+ 9F 0A 08 -- [UNKNOWN TAG]
+ 00 01 05 01 00 00 00 00 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+
+*********************************
+************ step 02 ************
+* search applications on card *
+*********************************
+02 analyze select PPSE response and search for tag 0x4F (applications on card)
+Found tag 0x4F 3 times:
+application Id (AID): a00000005945430100
+application Id (AID): a0000003591010028001
+application Id (AID): d27600002547410100
+
+
+*********************************
+************ step 03 ************
+* select application by AID *
+*********************************
+03 select application by AID a00000005945430100 (number 1)
+
+03 select AID command length 15 data: 00a4040009a0000000594543010000
+03 select AID response length 75 data: 6f478409a00000005945430100a53a50086769726f636172648701019f38069f02069f1d025f2d046465656ebf0c1a9f4d02190a9f6e07028000003030009f0a0800010501000000009000
+------------------------------------
+6F 47 -- File Control Information (FCI) Template
+ 84 09 -- Dedicated File (DF) Name
+ A0 00 00 00 59 45 43 01 00 (BINARY)
+ A5 3A -- File Control Information (FCI) Proprietary Template
+ 50 08 -- Application Label
+ 67 69 72 6F 63 61 72 64 (=girocard)
+ 87 01 -- Application Priority Indicator
+ 01 (BINARY)
+ 9F 38 06 -- Processing Options Data Object List (PDOL)
+ 9F 02 06 -- Amount, Authorised (Numeric)
+ 9F 1D 02 -- Terminal Risk Management Data
+ 5F 2D 04 -- Language Preference
+ 64 65 65 6E (=deen)
+ BF 0C 1A -- File Control Information (FCI) Issuer Discretionary Data
+ 9F 4D 02 -- Log Entry
+ 19 0A (BINARY)
+ 9F 6E 07 -- Visa Low-Value Payment (VLP) Issuer Authorisation Code
+ 02 80 00 00 30 30 00 (BINARY)
+ 9F 0A 08 -- [UNKNOWN TAG]
+ 00 01 05 01 00 00 00 00 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+get single data elements
+single data retrieved from card
+-----------------------------------------------------
+applicationTransactionCounter: 02c4 (hex), 708 (dec)
+-----------------------------------------------------
+pinTryCounter: 03
+-----------------------------------------------------
+lastOnlineATCRegister: NULL
+-----------------------------------------------------
+logFormat: 9f02065f2a029a039f52059f36029f2701ca019505
+-----------------------------------------------------
+
+
+*********************************
+************ step 04 ************
+* search for tag 0x9F38 *
+*********************************
+04 search for tag 0x9F38 in the selectAid response
+
+### processing the America Express, VisaCard and GiroCard path ###
+
+found tag 0x9F38 (PDOL) in the selectAid with this length: 6 data: 9f02069f1d02
+
+The card is requesting 2 tags in the PDOL
+
+Tag Tag Name Length Value
+-----------------------------------------------------
+9f02 Amount, Authorised (Numeric) 6 00 00 00 00 10 00
+9f1d Terminal Risk Management Data 2 00 00
+-----------------------------------------------------
+
+
+*********************************
+************ step 05 ************
+* get the processing options *
+*********************************
+05 get the processing options command length: 16 data: 80a800000a8308000000001000000000
+05 get the processing options response length: 34 data: 771e8202198094181801010020010100200404000805050108070701080303019000
+------------------------------------
+77 1E -- Response Message Template Format 2
+ 82 02 -- Application Interchange Profile
+ 19 80 (BINARY)
+ 94 18 -- Application File Locator (AFL)
+ 18 01 01 00 20 01 01 00 20 04 04 00 08 05 05 01
+ 08 07 07 01 08 03 03 01 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+workflow c)
+the response is of type 'Response Message Template Format 2' [tag 0x77]
+found tag 0x77 in the gpoResponse
+found 'AFL' [tag 0x94] in the response of type 'Response Message Template Format 2' [tag 0x77]
+found tag 0x94 in the gpoResponse length: 24 data: 180101002001010020040400080505010807070108030301
+
+found this AFL data in the gpoResponse to read from: 180101002001010020040400080505010807070108030301
+
+
+*********************************
+************ step 06 ************
+* read files & search PAN *
+*********************************
+06 read the files from card and search for PAN & Expiration date
+
+The AFL contains 6 entries to read
+for SFI 18 we read 1 record
+readRecord command length: 5 data: 00b2011c00
+readRecord response length: 231 data: 7081e28f01059081b078cdb2c84b435325ec4478fd6f0f9f0dd61210a78c791adcb22c85fb0095db3a540658569a1c0d35a48d1fd9c2dba83ed941fcb3f2cfe56c943bfa0f8d25f0896284006cbdc10821cf0f0f6ec033332f8eb52c1acad9c52221a27dd23aba70c27c547aece994c7dc5c4d5f1b28529a803340cc249caf6bcb3614d071de141f89a1f4a545c5598395864474514e42c7f1edbeedef27b9a50eeb81ed5762a0af36505ee084703dfd168ec6f02245077d8b9f3201039224b0568adf146b092492be46e5d57d920b026be8e734264cf34710483a0af52d46790f01ab00009000
+------------------------------------
+70 81 E2 -- Record Template (EMV Proprietary)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+for SFI 20 we read 1 record
+readRecord command length: 5 data: 00b2012400
+readRecord response length: 55 data: 70339f47030100019f480a757271487e0b220c81cb00000000000000000000000000000000000000000000000000000000000000009000
+------------------------------------
+70 33 -- Record Template (EMV Proprietary)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+for SFI 20 we read 1 record
+readRecord command length: 5 data: 00b2042400
+readRecord response length: 185 data: 7081b49f4681b087df5942ee89317aea2e53d477ab272794375e9025b0447b304f52e07f54494bea054076a0fd22faf4ee85cfd06ae61c44e0bf1c0156b1c0f287312e1c9460c0b93fac7bdd88a6cf286daeeab5d81310ff49b9d80f4b905261429b44a2c0e3b876ee8825fbb6ff3aef14a645983e886a61a7acde252698868b74033bbecee902050196579b2df75bfe070a14a45ce710c5e782da9ecd20d21db77352461b031ad83d9137615b8a63aca55900619a7a9c9000
+------------------------------------
+70 81 B4 -- Record Template (EMV Proprietary)
+ 9F 46 81 B0 -- ICC Public Key Certificate
+ 87 DF 59 42 EE 89 31 7A EA 2E 53 D4 77 AB 27 27
+ 94 37 5E 90 25 B0 44 7B 30 4F 52 E0 7F 54 49 4B
+ EA 05 40 76 A0 FD 22 FA F4 EE 85 CF D0 6A E6 1C
+ 44 E0 BF 1C 01 56 B1 C0 F2 87 31 2E 1C 94 60 C0
+ B9 3F AC 7B DD 88 A6 CF 28 6D AE EA B5 D8 13 10
+ FF 49 B9 D8 0F 4B 90 52 61 42 9B 44 A2 C0 E3 B8
+ 76 EE 88 25 FB B6 FF 3A EF 14 A6 45 98 3E 88 6A
+ 61 A7 AC DE 25 26 98 86 8B 74 03 3B BE CE E9 02
+ 05 01 96 57 9B 2D F7 5B FE 07 0A 14 A4 5C E7 10
+ C5 E7 82 DA 9E CD 20 D2 1D B7 73 52 46 1B 03 1A
+ D8 3D 91 37 61 5B 8A 63 AC A5 59 00 61 9A 7A 9C (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+for SFI 8 we read 1 record
+readRecord command length: 5 data: 00b2050c00
+readRecord response length: 60 data: 70385f24032112315a0a6726428902046846007f5f3401025f280202809f0702ffc09f0d05fc40a480009f0e0500101800009f0f05fc40a498009000
+------------------------------------
+70 38 -- Record Template (EMV Proprietary)
+ 5F 24 03 -- Application Expiration Date
+ 21 12 31 (NUMERIC)
+ 5A 0A -- Application Primary Account Number (PAN)
+ 67 26 42 89 02 04 68 46 00 7F (NUMERIC)
+ 5F 34 01 -- Application Primary Account Number (PAN) Sequence Number
+ 02 (NUMERIC)
+ 5F 28 02 -- Issuer Country Code
+ 02 80 (NUMERIC)
+ 9F 07 02 -- Application Usage Control
+ FF C0 (BINARY)
+ 9F 0D 05 -- Issuer Action Code - Default
+ FC 40 A4 80 00 (BINARY)
+ 9F 0E 05 -- Issuer Action Code - Denial
+ 00 10 18 00 00 (BINARY)
+ 9F 0F 05 -- Issuer Action Code - Online
+ FC 40 A4 98 00 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+found tag 0x5a in the readRecordResponse length: 10 data: 6726428902046846007f
+found tag 0x5f24 in the readRecordResponse length: 3 data: 211231
+
+
+*********************************
+************ step 07 ************
+* print PAN & expire date *
+*********************************
+07 get PAN and Expiration date from tags 0x5a and 0x5f24
+data for AID a00000005945430100
+PAN: 6726428902046846007
+Expiration date (YYMMDD): 211231
+
+for SFI 8 we read 1 record
+readRecord command length: 5 data: 00b2070c00
+readRecord response length: 32 data: 701c8e0c00000000000000001f0302039f080200029f6c02ffff9f4a01829000
+------------------------------------
+70 1C -- Record Template (EMV Proprietary)
+ 8E 0C -- Cardholder Verification Method (CVM) List
+ 00 00 00 00 00 00 00 00 1F 03 02 03 (BINARY)
+ 9F 08 02 -- Application Version Number - card
+ 00 02 (BINARY)
+ 9F 6C 02 -- Mag Stripe Application Version Number (Card)
+ FF FF (BINARY)
+ 9F 4A 01 -- Static Data Authentication Tag List
+ 82 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+for SFI 8 we read 1 record
+readRecord command length: 5 data: 00b2030c00
+readRecord response length: 65 data: 703d8c1b9f02069f03069f1a0295055f2a029a039c019f37049f35019f34038d0991108a0295059f370457136726428902046846007d21122010254828156f9000
+------------------------------------
+70 3D -- Record Template (EMV Proprietary)
+ 8C 1B -- Card Risk Management Data Object List 1 (CDOL1)
+ 9F 02 06 -- Amount, Authorised (Numeric)
+ 9F 03 06 -- Amount, Other (Numeric)
+ 9F 1A 02 -- Terminal Country Code
+ 95 05 -- Terminal Verification Results (TVR)
+ 5F 2A 02 -- Transaction Currency Code
+ 9A 03 -- Transaction Date
+ 9C 01 -- Transaction Type
+ 9F 37 04 -- Unpredictable Number
+ 9F 35 01 -- Terminal Type
+ 9F 34 03 -- Cardholder Verification (CVM) Results
+ 8D 09 -- Card Risk Management Data Object List 2 (CDOL2)
+ 91 10 -- Issuer Authentication Data
+ 8A 02 -- Authorisation Response Code
+ 95 05 -- Terminal Verification Results (TVR)
+ 9F 37 04 -- Unpredictable Number
+ 57 13 -- Track 2 Equivalent Data
+ 67 26 42 89 02 04 68 46 00 7D 21 12 20 10 25 48
+ 28 15 6F (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+*********************************
+
+
+*********************************
+************ step 03 ************
+* select application by AID *
+*********************************
+03 select application by AID a0000003591010028001 (number 2)
+
+03 select AID command length 16 data: 00a404000aa000000359101002800100
+03 select AID response length 76 data: 6f48840aa0000003591010028001a53a50086769726f636172648701019f38069f02069f1d025f2d046465656ebf0c1a9f4d02190a9f6e07028000003030009f0a0800010501000000009000
+------------------------------------
+6F 48 -- File Control Information (FCI) Template
+ 84 0A -- Dedicated File (DF) Name
+ A0 00 00 03 59 10 10 02 80 01 (BINARY)
+ A5 3A -- File Control Information (FCI) Proprietary Template
+ 50 08 -- Application Label
+ 67 69 72 6F 63 61 72 64 (=girocard)
+ 87 01 -- Application Priority Indicator
+ 01 (BINARY)
+ 9F 38 06 -- Processing Options Data Object List (PDOL)
+ 9F 02 06 -- Amount, Authorised (Numeric)
+ 9F 1D 02 -- Terminal Risk Management Data
+ 5F 2D 04 -- Language Preference
+ 64 65 65 6E (=deen)
+ BF 0C 1A -- File Control Information (FCI) Issuer Discretionary Data
+ 9F 4D 02 -- Log Entry
+ 19 0A (BINARY)
+ 9F 6E 07 -- Visa Low-Value Payment (VLP) Issuer Authorisation Code
+ 02 80 00 00 30 30 00 (BINARY)
+ 9F 0A 08 -- [UNKNOWN TAG]
+ 00 01 05 01 00 00 00 00 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+get single data elements
+single data retrieved from card
+-----------------------------------------------------
+applicationTransactionCounter: 02c5 (hex), 709 (dec)
+-----------------------------------------------------
+pinTryCounter: 03
+-----------------------------------------------------
+lastOnlineATCRegister: NULL
+-----------------------------------------------------
+logFormat: 9f02065f2a029a039f52059f36029f2701ca019505
+-----------------------------------------------------
+
+
+*********************************
+************ step 04 ************
+* search for tag 0x9F38 *
+*********************************
+04 search for tag 0x9F38 in the selectAid response
+
+### processing the America Express, VisaCard and GiroCard path ###
+
+found tag 0x9F38 (PDOL) in the selectAid with this length: 6 data: 9f02069f1d02
+
+The card is requesting 2 tags in the PDOL
+
+Tag Tag Name Length Value
+-----------------------------------------------------
+9f02 Amount, Authorised (Numeric) 6 00 00 00 00 10 00
+9f1d Terminal Risk Management Data 2 00 00
+-----------------------------------------------------
+
+
+*********************************
+************ step 05 ************
+* get the processing options *
+*********************************
+05 get the processing options command length: 16 data: 80a800000a8308000000001000000000
+05 get the processing options response length: 34 data: 771e8202198094181801010020010100200404000805050108070701080303019000
+------------------------------------
+77 1E -- Response Message Template Format 2
+ 82 02 -- Application Interchange Profile
+ 19 80 (BINARY)
+ 94 18 -- Application File Locator (AFL)
+ 18 01 01 00 20 01 01 00 20 04 04 00 08 05 05 01
+ 08 07 07 01 08 03 03 01 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+workflow c)
+the response is of type 'Response Message Template Format 2' [tag 0x77]
+found tag 0x77 in the gpoResponse
+found 'AFL' [tag 0x94] in the response of type 'Response Message Template Format 2' [tag 0x77]
+found tag 0x94 in the gpoResponse length: 24 data: 180101002001010020040400080505010807070108030301
+
+found this AFL data in the gpoResponse to read from: 180101002001010020040400080505010807070108030301
+
+
+*********************************
+************ step 06 ************
+* read files & search PAN *
+*********************************
+06 read the files from card and search for PAN & Expiration date
+
+The AFL contains 6 entries to read
+for SFI 18 we read 1 record
+readRecord command length: 5 data: 00b2011c00
+readRecord response length: 231 data: 7081e28f01059081b078cdb2c84b435325ec4478fd6f0f9f0dd61210a78c791adcb22c85fb0095db3a540658569a1c0d35a48d1fd9c2dba83ed941fcb3f2cfe56c943bfa0f8d25f0896284006cbdc10821cf0f0f6ec033332f8eb52c1acad9c52221a27dd23aba70c27c547aece994c7dc5c4d5f1b28529a803340cc249caf6bcb3614d071de141f89a1f4a545c5598395864474514e42c7f1edbeedef27b9a50eeb81ed5762a0af36505ee084703dfd168ec6f02245077d8b9f3201039224b0568adf146b092492be46e5d57d920b026be8e734264cf34710483a0af52d46790f01ab00009000
+------------------------------------
+70 81 E2 -- Record Template (EMV Proprietary)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+for SFI 20 we read 1 record
+readRecord command length: 5 data: 00b2012400
+readRecord response length: 55 data: 70339f47030100019f480a757271487e0b220c81cb00000000000000000000000000000000000000000000000000000000000000009000
+------------------------------------
+70 33 -- Record Template (EMV Proprietary)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+for SFI 20 we read 1 record
+readRecord command length: 5 data: 00b2042400
+readRecord response length: 185 data: 7081b49f4681b087df5942ee89317aea2e53d477ab272794375e9025b0447b304f52e07f54494bea054076a0fd22faf4ee85cfd06ae61c44e0bf1c0156b1c0f287312e1c9460c0b93fac7bdd88a6cf286daeeab5d81310ff49b9d80f4b905261429b44a2c0e3b876ee8825fbb6ff3aef14a645983e886a61a7acde252698868b74033bbecee902050196579b2df75bfe070a14a45ce710c5e782da9ecd20d21db77352461b031ad83d9137615b8a63aca55900619a7a9c9000
+------------------------------------
+70 81 B4 -- Record Template (EMV Proprietary)
+ 9F 46 81 B0 -- ICC Public Key Certificate
+ 87 DF 59 42 EE 89 31 7A EA 2E 53 D4 77 AB 27 27
+ 94 37 5E 90 25 B0 44 7B 30 4F 52 E0 7F 54 49 4B
+ EA 05 40 76 A0 FD 22 FA F4 EE 85 CF D0 6A E6 1C
+ 44 E0 BF 1C 01 56 B1 C0 F2 87 31 2E 1C 94 60 C0
+ B9 3F AC 7B DD 88 A6 CF 28 6D AE EA B5 D8 13 10
+ FF 49 B9 D8 0F 4B 90 52 61 42 9B 44 A2 C0 E3 B8
+ 76 EE 88 25 FB B6 FF 3A EF 14 A6 45 98 3E 88 6A
+ 61 A7 AC DE 25 26 98 86 8B 74 03 3B BE CE E9 02
+ 05 01 96 57 9B 2D F7 5B FE 07 0A 14 A4 5C E7 10
+ C5 E7 82 DA 9E CD 20 D2 1D B7 73 52 46 1B 03 1A
+ D8 3D 91 37 61 5B 8A 63 AC A5 59 00 61 9A 7A 9C (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+for SFI 8 we read 1 record
+readRecord command length: 5 data: 00b2050c00
+readRecord response length: 60 data: 70385f24032112315a0a6726428902046846007f5f3401025f280202809f0702ffc09f0d05fc40a480009f0e0500101800009f0f05fc40a498009000
+------------------------------------
+70 38 -- Record Template (EMV Proprietary)
+ 5F 24 03 -- Application Expiration Date
+ 21 12 31 (NUMERIC)
+ 5A 0A -- Application Primary Account Number (PAN)
+ 67 26 42 89 02 04 68 46 00 7F (NUMERIC)
+ 5F 34 01 -- Application Primary Account Number (PAN) Sequence Number
+ 02 (NUMERIC)
+ 5F 28 02 -- Issuer Country Code
+ 02 80 (NUMERIC)
+ 9F 07 02 -- Application Usage Control
+ FF C0 (BINARY)
+ 9F 0D 05 -- Issuer Action Code - Default
+ FC 40 A4 80 00 (BINARY)
+ 9F 0E 05 -- Issuer Action Code - Denial
+ 00 10 18 00 00 (BINARY)
+ 9F 0F 05 -- Issuer Action Code - Online
+ FC 40 A4 98 00 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+found tag 0x5a in the readRecordResponse length: 10 data: 6726428902046846007f
+found tag 0x5f24 in the readRecordResponse length: 3 data: 211231
+
+
+*********************************
+************ step 07 ************
+* print PAN & expire date *
+*********************************
+07 get PAN and Expiration date from tags 0x5a and 0x5f24
+data for AID a0000003591010028001
+PAN: 6726428902046846007
+Expiration date (YYMMDD): 211231
+
+for SFI 8 we read 1 record
+readRecord command length: 5 data: 00b2070c00
+readRecord response length: 32 data: 701c8e0c00000000000000001f0302039f080200029f6c02ffff9f4a01829000
+------------------------------------
+70 1C -- Record Template (EMV Proprietary)
+ 8E 0C -- Cardholder Verification Method (CVM) List
+ 00 00 00 00 00 00 00 00 1F 03 02 03 (BINARY)
+ 9F 08 02 -- Application Version Number - card
+ 00 02 (BINARY)
+ 9F 6C 02 -- Mag Stripe Application Version Number (Card)
+ FF FF (BINARY)
+ 9F 4A 01 -- Static Data Authentication Tag List
+ 82 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+for SFI 8 we read 1 record
+readRecord command length: 5 data: 00b2030c00
+readRecord response length: 65 data: 703d8c1b9f02069f03069f1a0295055f2a029a039c019f37049f35019f34038d0991108a0295059f370457136726428902046846007d21122010254828156f9000
+------------------------------------
+70 3D -- Record Template (EMV Proprietary)
+ 8C 1B -- Card Risk Management Data Object List 1 (CDOL1)
+ 9F 02 06 -- Amount, Authorised (Numeric)
+ 9F 03 06 -- Amount, Other (Numeric)
+ 9F 1A 02 -- Terminal Country Code
+ 95 05 -- Terminal Verification Results (TVR)
+ 5F 2A 02 -- Transaction Currency Code
+ 9A 03 -- Transaction Date
+ 9C 01 -- Transaction Type
+ 9F 37 04 -- Unpredictable Number
+ 9F 35 01 -- Terminal Type
+ 9F 34 03 -- Cardholder Verification (CVM) Results
+ 8D 09 -- Card Risk Management Data Object List 2 (CDOL2)
+ 91 10 -- Issuer Authentication Data
+ 8A 02 -- Authorisation Response Code
+ 95 05 -- Terminal Verification Results (TVR)
+ 9F 37 04 -- Unpredictable Number
+ 57 13 -- Track 2 Equivalent Data
+ 67 26 42 89 02 04 68 46 00 7D 21 12 20 10 25 48
+ 28 15 6F (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+*********************************
+
+
+*********************************
+************ step 03 ************
+* select application by AID *
+*********************************
+03 select application by AID d27600002547410100 (number 3)
+
+03 select AID command length 15 data: 00a4040009d2760000254741010000
+03 select AID response length 78 data: 6f4a8409d27600002547410100a53d50086769726f636172648701019f38099f33029f35019f40015f2d046465656ebf0c1a9f4d02190a9f6e07028000003030009f0a0800010501000000009000
+------------------------------------
+6F 4A -- File Control Information (FCI) Template
+ 84 09 -- Dedicated File (DF) Name
+ D2 76 00 00 25 47 41 01 00 (BINARY)
+ A5 3D -- File Control Information (FCI) Proprietary Template
+ 50 08 -- Application Label
+ 67 69 72 6F 63 61 72 64 (=girocard)
+ 87 01 -- Application Priority Indicator
+ 01 (BINARY)
+ 9F 38 09 -- Processing Options Data Object List (PDOL)
+ 9F 33 02 -- Terminal Capabilities
+ 9F 35 01 -- Terminal Type
+ 9F 40 01 -- Additional Terminal Capabilities
+ 5F 2D 04 -- Language Preference
+ 64 65 65 6E (=deen)
+ BF 0C 1A -- File Control Information (FCI) Issuer Discretionary Data
+ 9F 4D 02 -- Log Entry
+ 19 0A (BINARY)
+ 9F 6E 07 -- Visa Low-Value Payment (VLP) Issuer Authorisation Code
+ 02 80 00 00 30 30 00 (BINARY)
+ 9F 0A 08 -- [UNKNOWN TAG]
+ 00 01 05 01 00 00 00 00 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+get single data elements
+single data retrieved from card
+-----------------------------------------------------
+applicationTransactionCounter: 02c6 (hex), 710 (dec)
+-----------------------------------------------------
+pinTryCounter: 03
+-----------------------------------------------------
+lastOnlineATCRegister: NULL
+-----------------------------------------------------
+logFormat: 9f02065f2a029a039f52059f36029f2701ca019505
+-----------------------------------------------------
+
+
+*********************************
+************ step 04 ************
+* search for tag 0x9F38 *
+*********************************
+04 search for tag 0x9F38 in the selectAid response
+
+### processing the America Express, VisaCard and GiroCard path ###
+
+found tag 0x9F38 (PDOL) in the selectAid with this length: 9 data: 9f33029f35019f4001
+
+The card is requesting 3 tags in the PDOL
+
+Tag Tag Name Length Value
+-----------------------------------------------------
+9f33 Terminal Capabilities 2 00 00
+9f35 Terminal Type 1 22
+9f40 Additional Terminal Capabilities 1 00
+-----------------------------------------------------
+
+
+*********************************
+************ step 05 ************
+* get the processing options *
+*********************************
+05 get the processing options command length: 12 data: 80a800000683040000220000
+05 get the processing options response length: 14 data: 770a820218009404080205009000
+------------------------------------
+77 0A -- Response Message Template Format 2
+ 82 02 -- Application Interchange Profile
+ 18 00 (BINARY)
+ 94 04 -- Application File Locator (AFL)
+ 08 02 05 00 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+workflow c)
+the response is of type 'Response Message Template Format 2' [tag 0x77]
+found tag 0x77 in the gpoResponse
+found 'AFL' [tag 0x94] in the response of type 'Response Message Template Format 2' [tag 0x77]
+found tag 0x94 in the gpoResponse length: 4 data: 08020500
+
+found this AFL data in the gpoResponse to read from: 08020500
+
+
+*********************************
+************ step 06 ************
+* read files & search PAN *
+*********************************
+06 read the files from card and search for PAN & Expiration date
+
+The AFL contains 1 entry to read
+for SFI 8 we read 4 records
+readRecord command length: 5 data: 00b2020c00
+readRecord response length: 9 data: 70059f080200029000
+------------------------------------
+70 05 -- Record Template (EMV Proprietary)
+ 9F 08 02 -- Application Version Number - card
+ 00 02 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+readRecord command length: 5 data: 00b2030c00
+readRecord response length: 65 data: 703d8c1b9f02069f03069f1a0295055f2a029a039c019f37049f35019f34038d0991108a0295059f370457136726428902046846007d21122010254828156f9000
+------------------------------------
+70 3D -- Record Template (EMV Proprietary)
+ 8C 1B -- Card Risk Management Data Object List 1 (CDOL1)
+ 9F 02 06 -- Amount, Authorised (Numeric)
+ 9F 03 06 -- Amount, Other (Numeric)
+ 9F 1A 02 -- Terminal Country Code
+ 95 05 -- Terminal Verification Results (TVR)
+ 5F 2A 02 -- Transaction Currency Code
+ 9A 03 -- Transaction Date
+ 9C 01 -- Transaction Type
+ 9F 37 04 -- Unpredictable Number
+ 9F 35 01 -- Terminal Type
+ 9F 34 03 -- Cardholder Verification (CVM) Results
+ 8D 09 -- Card Risk Management Data Object List 2 (CDOL2)
+ 91 10 -- Issuer Authentication Data
+ 8A 02 -- Authorisation Response Code
+ 95 05 -- Terminal Verification Results (TVR)
+ 9F 37 04 -- Unpredictable Number
+ 57 13 -- Track 2 Equivalent Data
+ 67 26 42 89 02 04 68 46 00 7D 21 12 20 10 25 48
+ 28 15 6F (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+readRecord command length: 5 data: 00b2040c00
+readRecord response length: 16 data: 700c8e0a000000000000000002039000
+------------------------------------
+70 0C -- Record Template (EMV Proprietary)
+ 8E 0A -- Cardholder Verification Method (CVM) List
+ 00 00 00 00 00 00 00 00 02 03 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+readRecord command length: 5 data: 00b2050c00
+readRecord response length: 60 data: 70385f24032112315a0a6726428902046846007f5f3401025f280202809f0702ffc09f0d05fc40a480009f0e0500101800009f0f05fc40a498009000
+------------------------------------
+70 38 -- Record Template (EMV Proprietary)
+ 5F 24 03 -- Application Expiration Date
+ 21 12 31 (NUMERIC)
+ 5A 0A -- Application Primary Account Number (PAN)
+ 67 26 42 89 02 04 68 46 00 7F (NUMERIC)
+ 5F 34 01 -- Application Primary Account Number (PAN) Sequence Number
+ 02 (NUMERIC)
+ 5F 28 02 -- Issuer Country Code
+ 02 80 (NUMERIC)
+ 9F 07 02 -- Application Usage Control
+ FF C0 (BINARY)
+ 9F 0D 05 -- Issuer Action Code - Default
+ FC 40 A4 80 00 (BINARY)
+ 9F 0E 05 -- Issuer Action Code - Denial
+ 00 10 18 00 00 (BINARY)
+ 9F 0F 05 -- Issuer Action Code - Online
+ FC 40 A4 98 00 (BINARY)
+90 00 -- Command successfully executed (OK)
+------------------------------------
+
+found tag 0x5a in the readRecordResponse length: 10 data: 6726428902046846007f
+found tag 0x5f24 in the readRecordResponse length: 3 data: 211231
+
+
+*********************************
+************ step 07 ************
+* print PAN & expire date *
+*********************************
+07 get PAN and Expiration date from tags 0x5a and 0x5f24
+data for AID d27600002547410100
+PAN: 6726428902046846007
+Expiration date (YYMMDD): 211231
+
+*********************************
+
+*********************************
+************ step 99 ************
+* our journey ends *
+*********************************
diff --git a/readme.md b/readme.md
index 54168eb..0bdaaf1 100644
--- a/readme.md
+++ b/readme.md
@@ -36,6 +36,17 @@ build.gradle:
implementation 'com.github.devnied.emvnfccard:library:3.0.1'
```
+These are the steps to read a payment card, it is a kind of "question & answer" workflow:
+- ask the card which applications are available on the card ("select PPSE")
+- analyze the card's response and identify one or more of the application number or application id ("AID")
+- select one application on the card to work with ("select AID") [or iterate through the applications and run the following steps for each application]
+- analyze the card's response to find out what data the card needs to proceed (find the "processing options data object list" (PDOL))
+- analyze the card's response and get the content of the element "application file locator" (AFL) list
+- read all files given in the AFL list and find the file where there are the elements "Application Primary Account Number" and "Application Expiration Date"
+- print out the "Application Primary Account Number" ("PAN") = card number and "Application Expiration Date" = expiration date of the card.
+
+
+
In AndroidManifest.xml grant these permissions:
```plaintext