1、 1.1.2 FMCOS 2.0 FMCOS 2.0 .2 .8 1. FMCOS 9 1.1. FMCOS .9 1.2. FMCOS V2.0 9 1.2.1. CPU 9 1.2.2. RAM9 1.2.3. ROM9 1.2.4. EEPROM.9 1.3. .10 1.4. .11 2. .12 2.1. .12 2.2. A- 12 2.2.1. .12 2.2.2. PICC .15 2.2.3. .17 2.2.4. .18 3. .25 3.1. A PICC .25 3.1.1. .26 3.1.2. .27 3.1.3. .31 3.1.4. .32 3.1.5. .33
2、 3.2. .34 3.2.1. .34 3.2.2. FWT .37 3.2.3. .37 3.2.4. .38 3.2.5. .38 3.3. A PICC .41 3.3.1. .41 3.3.2. .41 4. FMCOS 42 4.1. .42 4.1.1. MF 42 4.1.2. DF .42 4.1.3. EF .43 4.2. .43 4.3. .44 4.4. .45 4.5. .46 5. FMCOS .47 5.1. .47 5.2. .47 5.3. .47 5.4. .48 6. .49 6.1. .49 6.2. SW1 SW2 .49 7. FMCOS 51 7
3、.1. EXTERNAL AUTHENTICATE.51 7.1.1. .51 7.1.2. .51 7.1.3. .51 7.1.4. .51 7.1.5. .51 7.2. GET CHALLENGE53 7.2.1. .53 7.2.2. .53 7.2.3. .53 7.2.4. .53 7.2.5. .53 7.3. INTERNAL AUTHENTICATE54 7.3.1. .54 7.3.2. .54 7.3.3. .54 7.3.4. .54 7.3.5. .54 7.4. SELECT56 7.4.1. .56 7.4.2. .56 7.4.3. .56 7.4.4. .5
4、6 7.4.5. .57 7.5. READ BINARY59 7.5.1. .59 7.5.2. .59 7.5.3. .59 7.5.4. .59 7.5.5. .59 7.6. READ RECORD.61 7.6.1. .61 7.6.2. .61 7.6.3. .61 7.6.4. .61 7.6.5. .61 7.7. UPDATE BINARY .63 7.7.1. .63 7.7.2. .63 7.7.3. .63 7.7.4. .63 7.7.5. .63 7.8. UPDATE RECORD65 7.8.1. .65 7.8.2. .65 7.8.3. .65 7.8.4.
5、 .65 7.8.5. .66 7.9. APPEND RECORD .68 7.9.1. .68 7.9.2. .68 7.9.3. .68 7.9.4. .68 7.9.5. .68 7.10. VERIFY PIN.70 7.10.1. .70 7.10.2. .70 7.10.3. .70 7.10.4. .70 7.10.5. .70 8. IC 73 8.1. CARD BLOCK.73 8.1.1. .73 8.1.2. .73 8.1.3. .73 8.1.4. .73 8.1.5. .73 8.2. APPLICATION UNBLOCK 74 8.2.1. .74 8.2.
6、2. .74 8.2.3. .74 8.2.4. .74 8.2.5. .74 8.3. APPLICATION BLOCK75 8.3.1. .75 8.3.2. .75 8.3.3. .75 8.3.4. .75 8.3.5. .75 8.4. PIN UNBLOCK .77 8.4.1. .77 8.4.2. .77 8.4.3. .77 8.4.4. .77 8.4.5. .77 8.5. / RELOAD/CHANGE PIN79 8.5.1. .79 8.5.2. .79 8.5.3. .79 8.5.4. .79 8.5.5. .79 8.6. CHANGE PIN81 8.6.
7、1. .81 8.6.2. .81 8.6.3. .81 8.6.4. .81 8.6.5. .81 8.7. .83 8.7.1. INITIALIZE FOR LOAD.83 8.7.2. CREDIT FOR LOAD .85 8.7.3. .87 8.8. .88 8.8.1. INITIALIZE FOR PURCHASE .88 8.8.2. DEBIT FOR CAPP PURCHASE90 8.8.3. .92 8.9. .93 8.9.1. INITIALIZE FOR CAPP PURCHASE.93 8.9.2. UPDATE CAPP DATA CACHE.95 8.9
8、.3. DEBIT FOR CAPP PURCHASE97 8.9.4. .99 8.10. .100 8.10.1. INITIALIZE FOR UNLOAD .100 8.10.2. CREDIT FOR UNLOAD102 8.10.3. .104 8.11. .105 8.11.1. INITIALIZE FOR CASH WITHDRAW.105 8.11.2. DEBIT FOR CASH WITHDRAW107 8.11.3. .109 8.12. .110 8.12.1. INITIALIZE FOR UPDATE.110 8.12.2. UPDATE OVERDRAW LI
9、MIT112 8.12.3. .114 8.13. GET TRANSACTION PROVE .115 8.13.1. .115 8.13.2. .115 8.13.3. .115 8.13.4. .115 8.13.5. .116 8.14. GET BALANCE 116 8.14.1. .116 8.14.2. .116 8.14.3. .116 8.14.4. .117 9. .118 9.1. .118 9.2. .118 9.3. MAC .118 9.4. / 120 9.4.1. .120 9.4.2. .121 9.5. .122 A. / 123 B. .125 C. .
10、127 C.1. .127 C.2. .127 C.2.1. 127 C.2.2. 127 C.2.3. DESELECT 128 C.2.4. 128 C.3. .129 C.3.1. 129 C.3.2. 130 C.3.3. DESELECT 132 C.3.4. 132 1.0 2008-7-16 1.0.1 2009-4-27 PIN Unblock data 1.1 2009-5-13 Update Record 1.1.1 2009-5-19 3.2.5.4.2. PCD 6 1.1.2 2009-5-22 Verify PIN MAC 1.1.3 2009-7-17 9 1.
11、FMCOS CPU IC CPU CPU CPU CPU CPU -FMCOS FMSH Card Operating System ISO 7816 IC , FMCOS Easy Entry 1.1. FMCOS Single DES Triple DES Single DES Triple DES ISO14443-4 T=CL IC / 1.2. FMCOS V2.0 CPU RAM ROM RF EEPROM 1.2.1. CPU EEPROM EEPROM 1.2.2. RAM FMCOS 1.2.3. ROM FMCOS 1.2.4. EEPROM FMCOS EEPROM 10
12、 1.3. FMCOS ISO7816-3 ISO14443-4 EEPROM FMCOS 11 1.4. 1.1 FMCOS 2.0 VERIFY 00 20 ISO&PBOCEXTERNAL AUTHENTICATE 00 82 ISO&PBOCGET CHALLENGE 00 84 ISO&PBOCINTERNAL AUTHENTICA TE 00 88 ISO&PBOCSELECT 00 A4 ISO&PBOCREAD BINARY 00 B0 ISO&PBOCREAD RECORD 00 B2 ISO&PBOCGET RESPONSE 00 C0 ISO&PBOCUPDATE BIN
13、ARY 00/04 D6/D0 ISO&PBOCUPDATE RECORD 00/04 DC/D2 ISO&PBOCCARD BLOCK 84 16 PBOC APPLICATION UNBLOCK 84 18 PBOC APPLICATION BLOCK 84 1E PBOC PIN UNBLOCK 80/84 24 PBOC UNBLOCK 80 2C PBOC INITIALIZE 80 50 PBOC/ CREDIT FOR LOAD 80 52 PBOC DEBIT FOR PURCHASE/CASE WITHDRAW/UNLOAD 80 54 / / PBOC UPDATE OVE
14、RDRAW LIMIT 80 58 PBOC GET TRANSCATION PROVE 80 5A PBOC/ GET BALANCE 80 5C PBOC RELOAD/CHANGE PIN 80 5E / PBOC ERASE DF 80 0E DF PULL 80 30 CHARGE 80 32 WRITE KEY 80/84 D4 CREATE 80 E0 WRITE EEPROM 00 00 EEPROM READ EEPROM 00 04 EEPROM INITIAL EEPROM 00 02 EEPROM READ ROM 00 0C ROM CALCULATE ROM CRC
15、 00 0A ROM CRC 12 2. 2.1. PICC PCD PCD REQA REQB C PICC ISO/IEO 14443-2 5ms A PICC B 5ms REQA B PICC A 5ms REQB 2.2. A- A PICC PICC PICC PCD 100% ISO/IEC 14443-2 . ISO/IEC 14443-2 2.2.1. ISO/IEC 14443-2 PCD PICC PICC PCD PCD PCD PCD PCD PCD PICC PICC PICC PICC PICC PICC PCD PCD PICC FDT PCD 13 2.2.1
16、.1. TDT 2.2.1.2. PCD PICC PCD PICC 2-1 n 128/fc 256/fc 128/fc 128/fc 256/fc 128/fc ( *128+84)/fc n PCD PICC 1 (E) (S) 0 (E) (S) ( *128+84)/fc n 2-1 PICC PCD 2.1 n FDT =8 PICC PICC 2-1 2.2.1.3. PICC PCD PICC PCD 1172/fc 2.1 PICC PCD N FDT =(1)b =(0)b REQA WAKE-UP ANTICOLLISION SELECT 9 1236/fc 1172/f
17、c 9 (n*128+84)/fc (n*128+20)/fc 14 2.2.1.4. 7000/fc 2.2.1.5. 2.2 2.2.1.6. LSB 7 2.2 S0110010E LSB MSB 26 2-2 2.2.1.7. n* 8 + n 1 LSB P b1 b8 P 1s Sb 1b 2b 3b 4b 5b 6b 7b 8Pb 1b 2b 3 b 6b 7b 8Pb 1 b 8P E n*(8 data bits + odd parity bit) LSB n 2-3 2.2.1.8. PICC PCD 7 1 PCD PICC 2 PICC PCD 1 2 15 1 S10
18、00001 E S1000 E S001 E 11010101 10110011 00100010 PCD PICC PICC PCD “AB“ “CD“ “44“ 11001001 00000010 01001100 00001000 “93“ “40“ “32“ “10“ SEL NVB UID0 UID1 UID2 UID3 BCC 00001000 11010101 10110011 00100010 11001001 00000010 01001100 2-4 S1000001 E S10E Sx0001 E “CD“ “44“ 11010101 10110011 00100010
19、“93“ “25“ “10“ SEL NVB UID1 UID2 “AB“ UID3 BCC 00001000 11010101 10110011 00100010 11001001 10100100 01001 110 UID0 “32“ 01001 100 PICC PCD PCD PICC 11001001 00000010 00001000 2-5 SPLIT BYTE PCD 2.2.1.9. CRC_A CRC_A k S E CRC_A k 8 CRC_A E CRC_A ISO/IEC 13239 6363 D 2.2.2. PICC A PICC ISO/IEC 14443 PICC 2-6 16 READY State ACTIVE State IDLE State Power OFF ACTIVE* State READY* State HALT State ISO/IEC 14443-4 Reset REQA, WUPA SELECT SELECTWUPA REQA, WUPA, AC, nAC, SELECT, nSELECT, Error REQA, WUPA, nAC, nSE