复旦微电子FMCOS2.0通用技术手册
Post By:2011/6/9 15:54:27

1 FMCOS 简介............................................................................................................................................. 8
1.1 FMCOS 特点...................................................................................................................................... 8
1.2 FMCOS V2.0 内部结构........................................................................................................................ 8
1.2.1 CPU 及加密逻辑.............................................................................................................................. 8
1.2.2 RAM ............................................................................................................................................... 8
1.2.3 ROM............................................................................................................................................... 8
1.2.4 EEPROM........................................................................................................................................ 8
1.3 功能模块............................................................................................................................................ 9
1.4 命令列表............................................................................................................................................ 9
2 初始化和防冲突....................................................................................................................................... 10
2.1 轮询.................................................................................................................................................. 10
2.2 类型A-初始化和防冲突..................................................................................................................... 10
2.2.1 帧格式和时序............................................................................................................................. 10
2.2.2 PICC 状态..................................................................................................................................... 13
2.2.3 命令集....................................................................................................................................... 15
2.2.4 选择序列................................................................................................................................... 16
3 传输协议.................................................................................................................................................. 22
3.1 类型A PICC 的协议激活................................................................................................................... 22
3.1.1 选择应答请求............................................................................................................................. 23
3.1.2 选择应答................................................................................................................................... 24
3.1.3 协议和参数选择请求.................................................................................................................. 28
3.1.4 协议和参数选择响应.................................................................................................................. 29
3.1.5 差错检测和恢复.......................................................................................................................... 30
3.2 半双工块传输协议............................................................................................................................. 31
3.2.1 块格式....................................................................................................................................... 31
3.2.2 帧等待时间(FWT).................................................................................................................. 34
3.2.3 帧等待时间扩展.......................................................................................................................... 35
3.2.4 功率水平指示............................................................................................................................. 36
3.2.5 协议操作................................................................................................................................... 36
3.3 类型A PICC 的协议停活................................................................................................................... 39
3.3.1 停活帧等待时间.......................................................................................................................... 39
3.3.2 差错检测和恢复.......................................................................................................................... 39
4 FMCOS 文件结构.................................................................................................................................... 40
4.1 文件结构.......................................................................................................................................... 40
4.1.1 MF 文件........................................................................................................................................ 40
4.1.2 DF 文件........................................................................................................................................ 40
4.1.3 EF 文件......................................................................................................................................... 41
4.2 文件空间结构................................................................................................................................... 41
4.3 文件访问方式................................................................................................................................... 42
通用技术手册
FMCOS2.0 版本 1.1 4
4.4 文件类型及命令集............................................................................................................................. 43
4.5 文件标识符与文件名称...................................................................................................................... 43
5 FMCOS 独特的安全体系.......................................................................................................................... 45
5.1 安全状态.......................................................................................................................................... 45
5.2 安全属性.......................................................................................................................................... 45
5.3 安全机制.......................................................................................................................................... 45
5.4 密码算法.......................................................................................................................................... 46
6 命令与应答.............................................................................................................................................. 47
6.1 命令与应答结构................................................................................................................................ 47
6.2 状态字SW1、SW2 的意义............................................................................................................... 47
7 FMCOS 命令........................................................................................................................................... 49
7.1 外部认证EXTERNAL AUTHENTICATE ............................................................................................ 49
7.1.1 定义和范围................................................................................................................................ 49
7.1.2 命令报文................................................................................................................................... 49
7.1.3 命令报文数据域.......................................................................................................................... 49
7.1.4 响应报文数据域.......................................................................................................................... 49
7.1.5 响应报文状态码.......................................................................................................................... 49
7.2 取随机数GET CHALLENGE............................................................................................................. 50
7.2.1 定义和范围................................................................................................................................ 50
7.2.2 命令报文................................................................................................................................... 51
7.2.3 命令报文数据域.......................................................................................................................... 51
7.2.4 响应报文数据域.......................................................................................................................... 51
7.2.5 响应报文状态码.......................................................................................................................... 51
7.3 内部认证INTERNAL AUTHENTICATE ............................................................................................. 52
7.3.1 定义和范围................................................................................................................................ 52
7.3.2 命令报文................................................................................................................................... 52
7.3.3 命令报文数据域.......................................................................................................................... 52
7.3.4 响应报文数据域.......................................................................................................................... 52
7.3.5 响应报文状态码.......................................................................................................................... 52
7.4 选择文件SELECT............................................................................................................................ 53
7.4.1 定义和范围................................................................................................................................ 53
7.4.2 命令报文................................................................................................................................... 54
7.4.3 命令报文数据域.......................................................................................................................... 54
7.4.4 响应报文数据域.......................................................................................................................... 54
7.4.5 响应报文状态码.......................................................................................................................... 54
7.5 读二进制文件READ BINARY ........................................................................................................... 56
7.5.1 定义和范围................................................................................................................................ 56
7.5.2 命令报文................................................................................................................................... 56
7.5.3 命令报文数据域.......................................................................................................................... 57
7.5.4 响应报文数据域.......................................................................................................................... 57
7.5.5 响应报文状态码.......................................................................................................................... 57
7.6 读记录文件READ RECORD............................................................................................................. 58
7.6.1 定义和范围................................................................................................................................ 58
7.6.2 命令报文................................................................................................................................... 58
7.6.3 命令报文数据域.......................................................................................................................... 59
通用技术手册
FMCOS2.0 版本 1.1 5
7.6.4 响应报文数据域.......................................................................................................................... 59
7.6.5 响应报文状态码.......................................................................................................................... 59
7.7 写二进制文件UPDATE BINARY ....................................................................................................... 60
7.7.1 定义和范围................................................................................................................................ 60
7.7.2 命令报文................................................................................................................................... 60
7.7.3 命令报文数据域.......................................................................................................................... 60
7.7.4 响应报文数据域.......................................................................................................................... 60
7.7.5 响应报文状态码.......................................................................................................................... 61
7.8 写记录文件 UPDATE RECORD........................................................................................................ 61
7.8.1 定义和范围................................................................................................................................ 61
7.8.2 命令报文................................................................................................................................... 62
7.8.3 命令报文数据域.......................................................................................................................... 62
7.8.4 响应报文数据域.......................................................................................................................... 62
7.8.5 响应报文状态码.......................................................................................................................... 62
7.9 添加记录文件 APPEND RECORD.................................................................................................... 64
7.9.1 定义和范围................................................................................................................................ 64
7.9.2 命令报文................................................................................................................................... 64
7.9.3 命令报文数据域.......................................................................................................................... 64
7.9.4 响应报文数据域.......................................................................................................................... 64
7.9.5 响应报文状态码.......................................................................................................................... 65
7.10 验证口令VERIFY PIN....................................................................................................................... 65
7.10.1 定义和范围................................................................................................................................ 65
7.10.2 命令报文................................................................................................................................... 65
7.10.3 命令报文数据域.......................................................................................................................... 66
7.10.4 响应报文数据域.......................................................................................................................... 66
7.10.5 响应报文状态码.......................................................................................................................... 66
8 中国金融IC 卡专用命令........................................................................................................................... 67
8.1 卡片锁定CARD BLOCK.................................................................................................................... 67
8.1.1 定义和范围................................................................................................................................ 67
8.1.2 命令报文................................................................................................................................... 67
8.1.3 命令报文数据域.......................................................................................................................... 67
8.1.4 响应报文数据域.......................................................................................................................... 67
8.1.5 响应报文状态码.......................................................................................................................... 67
8.2 应用解锁 APPLICATION UNBLOCK................................................................................................. 68
8.2.1 定义和范围................................................................................................................................ 68
8.2.2 命令报文................................................................................................................................... 68
8.2.3 命令报文数据域.......................................................................................................................... 68
8.2.4 响应报文数据域.......................................................................................................................... 68
8.2.5 响应报文状态码.......................................................................................................................... 68
8.3 应用锁定 APPLICATION BLOCK...................................................................................................... 69
8.3.1 定义和范围................................................................................................................................ 69
8.3.2 命令报文................................................................................................................................... 69
8.3.3 命令报文数据域.......................................................................................................................... 69
8.3.4 响应报文数据域.......................................................................................................................... 69
8.3.5 响应报文状态码.......................................................................................................................... 69
8.4 口令密钥解锁 PIN UNBLOCK........................................................................................................... 71
通用技术手册
FMCOS2.0 版本 1.1 6
8.4.1 定义和范围................................................................................................................................ 71
8.4.2 命令报文................................................................................................................................... 71
8.4.3 命令报文数据域.......................................................................................................................... 71
8.4.4 响应报文数据域.......................................................................................................................... 71
8.4.5 响应报文状态码.......................................................................................................................... 71
8.5 重装/修改口令密钥 RELOAD/CHANGE PIN ..................................................................................... 72
8.5.1 定义和范围................................................................................................................................ 72
8.5.2 命令报文................................................................................................................................... 72
8.5.3 命令报文数据域.......................................................................................................................... 72
8.5.4 响应报文数据域.......................................................................................................................... 73
8.5.5 响应报文状态码.......................................................................................................................... 73
8.6 修改口令密钥命令 CHANGE PIN...................................................................................................... 73
8.6.1 修改口令密钥命令定义和范围.................................................................................................... 73
8.6.2 命令报文................................................................................................................................... 73
8.6.3 命令报文数据域.......................................................................................................................... 74
8.6.4 响应报文数据域.......................................................................................................................... 74
8.6.5 响应报文状态码.......................................................................................................................... 74
8.7 圈存命令.......................................................................................................................................... 75
8.7.1 圈存初始化INITIALIZE FOR LOAD........................................................................................... 75
8.7.2 圈存命令CREDIT FOR LOAD................................................................................................... 76
8.7.3 圈存交易流程图.......................................................................................................................... 78
8.8 消费交易(存折或钱包) .................................................................................................................. 79
8.8.1 消费初始化INITIALIZE FOR PURCHASE................................................................................. 79
8.8.2 消费命令DEBIT FOR CAPP PURCHASE................................................................................. 80
8.8.3 消费交易流程图.......................................................................................................................... 82
8.9 复合应用消费交易(钱包)............................................................................................................... 83
8.9.1 消费初始化INITIALIZE FOR CAPP PURCHASE ...................................................................... 83
8.9.2 更新复合应用数据缓存 UPDATE CAPP DATA CACHE............................................................. 84
8.9.3 复合应用消费命令DEBIT FOR CAPP PURCHASE................................................................... 85
8.9.4 复合应用消费交易流程图........................................................................................................... 88
8.10 圈提交易(存折) ............................................................................................................................. 88
8.10.1 圈提初始化INITIALIZE FOR UNLOAD...................................................................................... 89
8.10.2 圈提命令CREDIT FOR UNLOAD.............................................................................................. 90
8.10.3 圈提交易流程图.......................................................................................................................... 92
8.11 取现交易(存折) ............................................................................................................................. 92
8.11.1 取现初始化INITIALIZE FOR CASH WITHDRAW...................................................................... 93
8.11.2 取现命令DEBIT FOR CASH WITHDRAW................................................................................. 94
8.11.3 取现交易流程图.......................................................................................................................... 96
8.12 修改透支限额交易(存折)............................................................................................................... 96
8.12.1 初始化修改透支限额命令INITIALIZE FOR UPDATE................................................................. 96
8.12.2 修改透支限额命令UPDATE OVERDRAW LIMIT....................................................................... 98
8.12.3 修改透支限额交易流程图......................................................................................................... 100
8.13 取交易认证 GET TRANSACTION PROVE...................................................................................... 100
8.13.1 定义和范围............................................................................................................................... 100
8.13.2 命令报文................................................................................................................................. 101
8.13.3 响应报文数据域........................................................................................................................ 101
8.13.4 响应报文状态码........................................................................................................................ 101
通用技术手册
FMCOS2.0 版本 1.1 7
8.13.5 防拔功能................................................................................................................................. 102
8.14 读余额 GET BALANCE................................................................................................................... 102
8.14.1 定义和范围............................................................................................................................... 102
8.14.2 命令报文................................................................................................................................. 102
8.14.3 响应报文数据域........................................................................................................................ 102
8.14.4 响应报文状态码........................................................................................................................ 103
9 安全报文传送........................................................................................................................................ 104
9.1 安全报文传送................................................................................................................................. 104
9.2 如何实现安全报文传送.................................................................................................................... 104
9.3 MAC 的计算................................................................................................................................... 104
9.4 数据加密/解密的计算....................................................................................................................... 106
9.4.1 数据加密计算........................................................................................................................... 106
9.4.2 数据解密计算........................................................................................................................... 107
9.5 安全报文传送的命令情况................................................................................................................ 108
附录A. 电子存折/电子钱包应用的基本数据文件.......................................................................................110
附录B. 术语和定义..................................................................................................................................112
附录C. 协议说明书..................................................................................................................................114
C.1. 记法.................................................................................................................................................114
C.2. 无差错操作......................................................................................................................................114
C.2.1. 块的交换..................................................................................................................................114
C.2.2. 等待时间扩展请求.....................................................................................................................114
C.2.3. DESELECT..............................................................................................................................115
C.2.4. 链接.........................................................................................................................................115
C.3. 差错处理.........................................................................................................................................116
C.3.1. 块的交换..................................................................................................................................116
C.3.2. 等待时间扩展请求.....................................................................................................................117
C.3.3. DESELECT..............................................................................................................................119
C.3.4. 链接.........................................................................................................................................119
版本信息....................................................................................................................................................... 121
上海复旦微电子股份有限公司销售及服务网点.............................................................................................. 122

下载附件
Post By:2011/6/24 10:19:07

慢慢学


Post By:2011/7/3 0:40:59
thank you!
Post By:2011/7/11 23:26:16
好东西,顶一个!
Post By:2011/11/8 11:31:26
这个复旦微居然没发给我
Post By:2011/11/15 12:42:26
 Thank you very much.

Post By:2013/4/14 13:14:40
 还有FMPSAM手册
Post By:2014/1/1 11:17:18
得了生殖器疱疹就应该及时进行治疗,可是朋友要注意,治疗生殖器疱疹之前,我们一定要进行有效的诊断生[url=http://bbs.ycwb.com/home.php?mod=space&uid=343805&do=blog&id=259584]南京治疗肾结石的医院有哪些[/url]殖器疱疹。可如何诊断生殖器疱疹?我们可以通过以下几种方法来进行诊断生殖器疱疹。

  1、抗体检[url=http://www.fengsung.com/ys/lsfy/1234132.html]南京414性功能中心[/url]测法:HSV抗体检测不能作为诊断生殖器疱疹的依据。不过有些情况却是例外,如判断是否曾经感染过HSV;症状不[url=http://www.tianya.cn/83390467]南京治疗前列腺炎要多少钱[/url]典型的感染者;评估生殖器疱疹患者配偶所生新生儿的感染风险以及单纯疱疹预防接种时可能得到的成功率。通过这种方[url=http://www.pinterest.com/qqqwsxcv/江苏省中医院治疗结石怎么样/]江苏省中医院治疗结石怎么样[/url]法虽然不能准确的诊断生殖器疱疹,不过我们可以通过此法进行有效的预防。

  2、病毒分离:用人胚[url=http://www.zhld.com/ys/llyz/1358332.html]治疗输尿管结石应该多少钱[/url]成纤维细胞、人羊膜细胞、肾细胞等进行病毒分离培养、再通过免疫荧光法鉴定、加以确认。其分离成功的前提是取材的[url=http://www.pinterest.com/qqqwsxcv/南京专业治疗梅毒哪家医院最好/]南京专业治疗梅毒哪家医院最好[/url]准确和尽快接种,由于其操作复杂,费用昂贵,技术条件要求高,目前尚不能普遍使用。这种方法作为诊断生殖器疱疹具[url=http://blog.cnfol.com/njyykxgnza]南京治疗性功能障碍的诊所[/url]有非常好的效果,有条件的患者可以选择使用。

  综上所述,诊断生殖器疱疹的方法很多,我们在治疗[url=http://www.pinterest.com/qqqwsxcv/男人性生活几分钟是正常的/]男人性生活几分钟是正常的[/url]生殖器疱疹之前,一定要记得进行检查,千万不要自己盲目医治。如果不找出病因就治疗生殖器疱疹,这样是得不到很好[url=http://www.fengone.com/ys/hm/1146293.html]南京414男科医院[/url]的效果的。我们一定要先诊断生殖器疱疹,然后才能决定治疗的方法。