在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → NFCForum-TS-NCI-2.0-170330.pdf

NFCForum-TS-NCI-2.0-170330.pdf

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:2.77M
  • 下载次数:13
  • 浏览次数:865
  • 发布时间:2020-03-06
  • 实例类别:一般编程问题
  • 发 布 人:robot666
  • 文件格式:.pdf
  • 所需积分:2
 相关标签:

实例介绍

【实例简介】用于nfc开发和学习,android系统中使用比较多,这个文档找了好久才找到
文档中是nci协议2.0版本,希望对大家有帮助

【实例截图】

from clipboard

【核心代码】

Contents
1 Introduction....................................................................................................1
1.1 Objectives...................................................................................................................... 1
1.2 Scope ............................................................................................................................. 1
1.3 Audience........................................................................................................................ 2
1.4 Applicable Documents or References ........................................................................... 2
1.5 Administration............................................................................................................... 4
1.6 Name and Logo Usage .................................................................................................. 4
1.7 Intellectual Property ...................................................................................................... 5
1.8 Special Word Usage ...................................................................................................... 5
1.9 Abbreviations ................................................................................................................ 6
1.10 Glossary......................................................................................................................... 8
1.11 Coding Conventions.................................................................................................... 12
2 NCI Architecture ..........................................................................................14
2.1 Components................................................................................................................. 14
2.2 Concepts...................................................................................................................... 15
2.2.1 Control Messages.......................................................................................... 15
2.2.2 Data Messages.............................................................................................. 15
2.2.3 Interfaces....................................................................................................... 16
2.2.4 RF Interface Extensions................................................................................ 16
2.2.5 RF Communication....................................................................................... 17
2.2.6 NFCEE Communication............................................................................... 17
2.2.7 Identifiers...................................................................................................... 18
2.2.8 NFCC as Shared Resource............................................................................ 18
3 NCI Core Framework ...................................................................................19
3.1 Overview ..................................................................................................................... 19
3.2 NCI Control Messages ................................................................................................ 20
3.2.1 Flow Control for Control Messages.............................................................. 20
3.2.2 Exception Handling for Control Messages................................................... 21
3.3 NCI Data Messages..................................................................................................... 22
3.3.1 Flow Control for Data Packets...................................................................... 23
3.3.2 Exception Handling for Data Messages........................................................ 23
3.4 Packet Formats............................................................................................................ 24
3.4.1 Common Packet Header ............................................................................... 24
3.4.2 Format of Control Packets............................................................................ 25
3.4.3 Format of Data Packets................................................................................. 26
3.5 Segmentation and Reassembly.................................................................................... 27
3.6 Logical Connections.................................................................................................... 28
4 NCI Core Control Messages .......................................................................30
4.1 Reset of NFCC ............................................................................................................ 30
4.2 Initialization of NFCC................................................................................................. 33
4.3 NFCC Configuration ................................................................................................... 37
4.3.1 Setting the Configuration.............................................................................. 37
4.3.2 Retrieve the Configuration............................................................................ 38
4.4 Logical Connection Management................................................................................ 39
4.4.1 Destination Type........................................................................................... 39
4.4.2 Connection Creation ..................................................................................... 40
4.4.3 Connection Closure....................................................................................... 43
Contents
NFC Controller Interface (NCI) Page ii
4.4.4 Connection Credit Management ................................................................... 44
4.5 Generic Error............................................................................................................... 45
4.6 Interface Error ............................................................................................................. 45
5 RF Communication......................................................................................46
5.1 RF Interface Architecture ............................................................................................ 46
5.2 State Machine .............................................................................................................. 47
5.2.1 State RFST_IDLE......................................................................................... 49
5.2.2 State RFST_DISCOVERY........................................................................... 49
5.2.3 State RFST_W4_ALL_DISCOVERIES ...................................................... 50
5.2.4 State RFST_W4_HOST_SELECT............................................................... 50
5.2.5 State RFST_POLL_ACTIVE ....................................................................... 51
5.2.6 State RFST_LISTEN_ACTIVE ................................................................... 53
5.2.7 State RFST_LISTEN_SLEEP ...................................................................... 54
5.3 RF Field Information................................................................................................... 54
6 RF Communication Configuration .............................................................56
6.1 Configuration Parameters............................................................................................ 56
6.1.1 Poll A Parameters......................................................................................... 58
6.1.2 Poll B Parameters.......................................................................................... 59
6.1.3 Poll F Parameters.......................................................................................... 60
6.1.4 Poll ISO-DEP Parameters............................................................................. 61
6.1.5 Poll NFC-DEP Parameters............................................................................ 62
6.1.6 Poll Active Parameters.................................................................................. 63
6.1.7 Poll V Parameters......................................................................................... 63
6.1.8 Listen A Parameters...................................................................................... 64
6.1.9 Listen B Parameters...................................................................................... 65
6.1.10 Listen F Parameters ...................................................................................... 66
6.1.11 Listen T3T Parameters.................................................................................. 67
6.1.12 Listen ISO-DEP Parameters ......................................................................... 71
6.1.13 Listen NFC-DEP Parameters........................................................................ 72
6.1.14 Common Parameters..................................................................................... 73
6.2 RF Interface Mapping Configuration .......................................................................... 75
6.3 Listen Mode Routing Configuration ........................................................................... 76
6.3.1 Listen Mode Routing Table Design.............................................................. 77
6.3.2 Configure Listen Mode Routing ................................................................... 80
6.3.3 Read Listen Mode Routing........................................................................... 86
6.3.4 Set Power State for Route Selection ............................................................. 87
6.3.5 AID-based Route Selection Process ............................................................. 88
6.3.6 APDU Pattern-based Route Selection Process............................................. 88
6.3.7 System Code-based Route Selection Process............................................... 89
6.3.8 Protocol-based Route Selection Process....................................................... 90
6.3.9 Technology-based Route Selection Process ................................................. 90
6.3.10 Forced NFCEE Routing................................................................................ 91
7 RF Discovery................................................................................................93
7.1 Starting RF Discovery ................................................................................................. 93
7.2 Select Discovered Target........................................................................................... 102
7.3 RF Interface Activation and Deactivation................................................................. 102
7.3.1 RF Interface Activation Notification .......................................................... 102
7.3.2 RF Interface Deactivation........................................................................... 105
7.4 RF Interface Extension Starting and Stopping .......................................................... 107
Contents
NFC Controller Interface (NCI) Page iii
7.4.1 RF Interface Extension Start....................................................................... 107
7.4.2 RF Interface Extension Stop ....................................................................... 108
7.5 RF Discovery Request from NFCEEs....................................................................... 108
7.6 RF NFCEE Action..................................................................................................... 109
8 RF Interfaces..............................................................................................113
8.1 NFCEE Direct RF Interface ...................................................................................... 113
8.1.1 Discovery and Interface Activation ............................................................ 113
8.1.2 Interface Deactivation................................................................................. 113
8.2 Frame RF Interface.................................................................................................... 113
8.2.1 Data Mapping between the DH and RF...................................................... 113
8.2.2 Frame RF Interface specific Control Messages.......................................... 118
8.2.3 Poll-side Frame RF Interface Management ................................................ 122
8.2.4 Listen-side Frame RF Interface Management............................................. 123
8.3 ISO-DEP RF Interface............................................................................................... 125
8.3.1 Data Mapping between the DH and RF...................................................... 125
8.3.2 Poll-side ISO-DEP RF Interface Management........................................... 127
8.3.3 Listen-side ISO-DEP RF Interface Management ....................................... 130
8.4 NFC-DEP RF Interface ............................................................................................. 132
8.4.1 Data Mapping between the DH and RF...................................................... 132
8.4.2 NFC-DEP RF Interface Configuration ....................................................... 133
8.4.3 Poll-side NFC-DEP RF Interface Management.......................................... 134
8.4.4 Listen-side NFC-DEP RF Interface Management ...................................... 137
8.5 NDEF RF Interface.................................................................................................... 138
8.5.1 NCI Data Message Format ......................................................................... 139
8.5.2 NDEF RF Interface specific Control Messages.......................................... 143
8.5.3 NDEF RF Interface Management ............................................................... 143
8.5.4 Failures during Data Exchange................................................................... 145
9 RF Interface Extensions............................................................................146
9.1 Frame Aggregation RF Interface Extension.............................................................. 146
9.1.1 Startup conditions....................................................................................... 146
9.1.2 Starting the RF Interface Extension............................................................ 146
9.1.3 RF Interface Extension functionality.......................................................... 147
9.1.4 Stopping the RF Interface Extension .......................................................... 150
9.2 LLCP Symmetry RF Interface Extension.................................................................. 150
9.2.1 Startup conditions....................................................................................... 151
9.2.2 Starting the RF Interface Extension........................................................... 151
9.2.3 RF Interface Extension functionality.......................................................... 152
9.2.4 Stopping the RF Interface Extension .......................................................... 153
10 NFCEE Discovery and Mode Set..............................................................155
10.1 NFCEE ID ................................................................................................................. 155
10.2 NFCEE Discovery..................................................................................................... 155
10.2.1 HCI-NFCEE Specific Handling.................................................................. 161
10.2.2 NDEF-NFCEE Specific Handling .............................................................. 162
10.3 NFCEE Enabling and Disabling................................................................................ 162
10.3.1 HCI-NFCEE Specific Handling.................................................................. 163
10.4 NDEF-NFCEE........................................................................................................... 164
10.5 NFCEE Status............................................................................................................ 164
10.5.1 HCI- NFCEE Specific Handling................................................................. 165
10.6 NFCEE Power Supply and Communication Link Control........................................ 165
Contents
NFC Controller Interface (NCI) Page iv
10.6.1 HCI- NFCEE Specific Handling................................................................. 167
11 NFCEE Interfaces ......................................................................................168
11.1 APDU NFCEE Interface ........................................................................................... 168
11.1.1 Data Exchange ............................................................................................ 168
11.1.2 Failures during Data Exchange................................................................... 170
11.2 Type 3 Tag Command Set NFCEE Interface ............................................................ 170
11.2.1 Data Exchange ............................................................................................ 170
11.3 Transparent NFCEE Interface ................................................................................... 171
11.3.1 Data Exchange ............................................................................................ 171
12 Transport Mappings ..................................................................................172
12.1 UART Transport........................................................................................................ 172
12.2 I2C Transport ............................................................................................................ 173
12.3 Half Duplex SPI Transport........................................................................................ 173
12.3.1 Physical....................................................................................................... 173
12.3.2 Data Transfer .............................................................................................. 174
13 Testing........................................................................................................180
13.1 Local Loopback Mode............................................................................................... 180
A. Exhibit A.....................................................................................................181
B. Common Tables.........................................................................................182
C. Revision History ........................................................................................194

标签:

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警