| 帮同学宣传一下http://shop57644665.taobao.com/ |
Ref.11.11
SIM卡在系统中连接如下图

Answer To Reset (ATR)
当手机reset SIM时,SIM卡会返回一些信息给手机,这些信息中包含SIM卡对应的一些信息和参数。具体对应可参考ISO/IEC 7816-3
TS:Initial character 高低电平,LSB MSB传输顺序的约定。
T0:Format character 表示接口字符的个数和历史字节的数量。
TA1:Interface character 表示有增强的波特率,公式 3571200 / ( Fi / Di )
TB1:Interface character表示编程电流 I /电压 P,高2位表示电流I,低6位表示电压P
TC1:Interface character 额外保护时间
TD1: Interface character 通讯协议
TA2: 协议T=0 不使用
TB2:不使用。
TC2:额外保护时间
TDi,TAi, TBi, TCi(i>1)
T1,…,TK : Historical characters
TCK: Check character
SIM卡中的内容
SIM卡类似一个文件夹,拥有多个目录和目录下的文件。目录和文件都有一个独立的对应标识。
Master File (MF): The unique mandatory file containing access conditions and optionally DFs and/or EFs.
Dedicated File (DF): A file containing access conditions and, optionally, Elementary Files (EFs) or other Dedicated Files (DFs).
Elementary File (EF): A file containing access conditions and data and no other files.

File identifier
The first byte identifies the type of file, and for GSM is:
- ‘3F’: Master File;
- ‘7F’: 1st level Dedicated File;
- ‘5F’: 2nd level Dedicated File;
- ‘2F’: Elementary File under the Master File;
- ‘6F’: Elementary File under a 1st level Dedicated File;
- ‘4F’: Elementary File under 2nd level Dedicated File.
Dedicated File (DF)
Two 1st level DFs are defined in this specification:
- DFGSM which contains the applications for both GSM and/or DCS 1800;
- DFTELECOM which contains telecom service features.
Read the rest of this post »


















