没有合适的资源?快使用搜索试试~ 我知道了~
首页NFCForum-TS-NCI-2.0-170330.pdf
NFCForum-TS-NCI-2.0-170330.pdf
3星 · 超过75%的资源 需积分: 50 72 下载量 194 浏览量
更新于2023-03-03
评论 6
收藏 2.77MB PDF 举报
用于nfc开发和学习,android系统中使用比较多,这个文档找了好久才找到 文档中是nci协议2.0版本,希望对大家有帮助
资源详情
资源评论
资源推荐
NFC Controller Interface (NCI)
Technical Specification
Version 2.0
2017-03-30
[NCI]
NFC Forum
TM
RESTRICTIONS ON USE
This specification is copyright © 2005-2017 by the NFC Forum, and was made available pursuant to a
license agreement entered into between the recipient (Licensee) and NFC Forum, Inc. (Licensor) and may
be used only by Licensee, and in compliance with the terms of that license agreement (License). If you are
not the Licensee, you may read this Specification, but are not authorized to implement or make any other
use of this specification. However, you may obtain a copy of this Specification and implementation rights
at the following page of Licensor's website: http://www.nfc-forum.org/specs/spec_license after entering
into and agreeing to such license terms as Licensor is then requiring. On the date that this specification was
downloaded by Licensee, the non-implementation terms of that license were as follows:
1. LICENSE GRANT
Licensor hereby grants Licensee the right, without charge, to copy (for internal purposes only, except with
respect to the elements listed on Exhibit A) and share this Specification with Licensee's members,
employees and (to the extent related to Licensees’ use of this Specification) consultants. This license grant
does not include the right to sublicense, modify or create derivative works based upon any portion of the
Specification, except for the elements listed on Exhibit A.
2. NO WARRANTIES.
THE SPECIFICATION IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, ACCURACY, COMPLETENESS AND
NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL LICENSOR, ITS
MEMBERS OR ITS CONTRIBUTORS BE LIABLE FOR ANY CLAIM, OR ANY DIRECT, SPECIAL,
INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THE SPECIFICATION.
3. THIRD PARTY RIGHTS.
Without limiting the generality of Section 2 above, LICENSOR ASSUMES NO RESPONSIBILITY TO
COMPILE, CONFIRM, UPDATE OR MAKE PUBLIC ANY THIRD PARTY ASSERTIONS OF
PATENT OR OTHER INTELLECTUAL PROPERTY RIGHTS THAT MIGHT NOW OR IN THE
FUTURE BE INFRINGED BY AN IMPLEMENTATION OF THE SPECIFICATION IN ITS CURRENT,
OR IN ANY FUTURE FORM. IF ANY SUCH RIGHTS ARE DESCRIBED ON THE SPECIFICATION,
LICENSOR TAKES NO POSITION AS TO THE VALIDITY OR INVALIDITY OF SUCH
ASSERTIONS, OR THAT ALL SUCH ASSERTIONS THAT HAVE OR MAY BE MADE ARE SO
LISTED.
4. TERMINATION OF LICENSE.
In the event of a breach of this Agreement by Licensee or any of its employees or members, Licensor shall
give Licensee written notice and an opportunity to cure. If the breach is not cured within thirty (30) days
after written notice, or if the breach is of a nature that cannot be cured, then Licensor may immediately or
thereafter terminate the licenses granted in this Agreement.
5. MISCELLANEOUS.
All notices required under this Agreement shall be in writing, and shall be deemed effective five days from
deposit in the mails. Notices and correspondence to the NFC Forum address as it appears below. This
Agreement shall be construed and interpreted under the internal laws of the United States and the
Commonwealth of Massachusetts, without giving effect to its principles of conflict of law.
NFC Forum, Inc.
401 Edgewater Place, Suite 600
Wakefield, MA, USA 01880
Contents
NFC Controller Interface (NCI) Page i
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
剩余206页未读,继续阅读
dianlong_lee
- 粉丝: 1190
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- RTL8188FU-Linux-v5.7.4.2-36687.20200602.tar(20765).gz
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
- SPC统计方法基础知识.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1