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

NFCForum-TS-NCI-1.0_Candidate

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:1.03M
  • 下载次数:3
  • 浏览次数:31
  • 发布时间:2022-07-28
  • 实例类别:一般编程问题
  • 发 布 人:zxzzxzzxz123
  • 文件格式:.pdf
  • 所需积分:2
 相关标签: nfc 1.0 NCI

实例介绍

【实例简介】NFCForum-TS-NCI-1.0_Candidate

用于nfc开发和学习,android系统中使用比较多,这个文档找了好久才找到

文档中是nci协议1.0版本,希望对大家有帮助

【实例截图】

【核心代码】

Contents
1 Introduction....................................................................................................8
1.1
Objectives...................................................................................................................... 8
1.2
Scope ............................................................................................................................. 8
1.3
Audience........................................................................................................................ 9
1.4
Applicable Documents or References ........................................................................... 9
1.5
Administration............................................................................................................. 10
1.6
Name and Logo Usage ................................................................................................ 11
1.7
Intellectual Property .................................................................................................... 11
1.8
Special Word Usage .................................................................................................... 11
1.9
Abbreviations .............................................................................................................. 11
1.10 Glossary....................................................................................................................... 13
1.11 Coding Conventions.................................................................................................... 17
2 NCI Architecture ..........................................................................................18
2.1
Components................................................................................................................. 18
2.2
Concepts...................................................................................................................... 18
2.2.1
Control Messages.......................................................................................... 19
2.2.2
Data Messages.............................................................................................. 19
2.2.3
Interfaces....................................................................................................... 20
2.2.4
RF Communication....................................................................................... 20
2.2.5
NFCEE Communication............................................................................... 20
2.2.6
Identifiers...................................................................................................... 21
2.2.7
NFCC as Shared Resource............................................................................ 21
3 NCI Core Framework ...................................................................................22
3.1
Overview ..................................................................................................................... 22
3.2
NCI Control Messages ................................................................................................ 23
3.2.1
Flow Control for Control Messages.............................................................. 23
3.2.2
Exception Handling for Control Messages................................................... 24
3.3
NCI Data Messages..................................................................................................... 25
3.3.1
Flow Control for Data Packets...................................................................... 25
3.3.2
Exception Handling for Data Messages........................................................ 26
3.4
Packet Formats ............................................................................................................ 27
3.4.1
Common Packet Header ............................................................................... 27
3.4.2
Format of Control Packets............................................................................ 28
3.4.3
Format of Data Packets................................................................................. 29
3.5
Segmentation and Reassembly .................................................................................... 30
3.6
Logical Connections.................................................................................................... 31
4 NCI Core Control Messages .......................................................................33
4.1
Reset of NFCC ............................................................................................................ 33
4.2
Initialization of NFCC................................................................................................. 35
4.3
NFCC Configuration ................................................................................................... 38
4.3.1
Setting the Configuration.............................................................................. 38
4.3.2
Retrieve the Configuration............................................................................ 39
4.4
Logical Connection Management................................................................................ 40
4.4.1
Destination Type........................................................................................... 40
4.4.2
Connection Creation ..................................................................................... 41
4.4.3
Connection Closure....................................................................................... 43
4.4.4
Connection Credit Management ................................................................... 44Contents
NFC Controller Interface (NCI) Specification
Page ii
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 ....................................................................... 50
5.2.6
State RFST_LISTEN_ACTIVE ................................................................... 52
5.2.7
State RFST_LISTEN_SLEEP ...................................................................... 52
5.3
RF Field Information................................................................................................... 53
6 RF Communication Configuration .............................................................55
6.1
Configuration Parameters............................................................................................ 55
6.1.1
Poll A Parameters ......................................................................................... 55
6.1.2
Poll B Parameters.......................................................................................... 56
6.1.3
Poll F Parameters.......................................................................................... 56
6.1.4
Poll ISO-DEP Parameters............................................................................. 57
6.1.5
Poll NFC-DEP Parameters............................................................................ 58
6.1.6
Listen A Parameters...................................................................................... 59
6.1.7
Listen B Parameters...................................................................................... 60
6.1.8
Listen F Parameters ...................................................................................... 61
6.1.9
Listen ISO-DEP Parameters ......................................................................... 64
6.1.10 Listen NFC-DEP Parameters........................................................................ 65
6.1.11 Common Parameters..................................................................................... 66
6.2
RF Interface Mapping Configuration .......................................................................... 67
6.3
Listen Mode Routing Configuration............................................................................ 68
6.3.1
Listen Mode Routing Table Design.............................................................. 68
6.3.2
Configure Listen Mode Routing ................................................................... 70
6.3.3
Read Listen Mode Routing........................................................................... 73
7 RF Discovery................................................................................................74
7.1
Starting RF Discovery ................................................................................................. 74
7.2
Select Discovered Target............................................................................................. 80
7.3
RF Interface Activation and Deactivation................................................................... 80
7.3.1
RF Interface Activation Notification ............................................................ 80
7.3.2
RF Interface Deactivation............................................................................. 84
7.4
NFCEE Discovery Request ......................................................................................... 86
7.5
RF NFCEE Action....................................................................................................... 87
8 RF Interfaces................................................................................................90
8.1
NFCEE Direct RF Interface ........................................................................................ 90
8.1.1
Discovery and Interface Activation .............................................................. 90
8.1.2
Interface Deactivation................................................................................... 90
8.2
Frame RF Interface...................................................................................................... 90
8.2.1
Data Mapping between the DH and RF........................................................ 90
8.2.2
Frame RF Interface specific Control Messages............................................ 94
8.2.3
Poll-side Frame RF Interface Management .................................................. 98
8.2.4
Listen-side Frame RF Interface Management............................................... 98Contents
NFC Controller Interface (NCI) Specification
Page iii
8.3
ISO-DEP RF Interface............................................................................................... 100
8.3.1
Data Mapping between the DH and RF...................................................... 100
8.3.2
Poll-side ISO-DEP RF Interface Management........................................... 101
8.3.3
Listen-side ISO-DEP RF Interface Management ....................................... 103
8.4
NFC-DEP RF Interface ............................................................................................. 105
8.4.1
Data Mapping between the DH and RF...................................................... 105
8.4.2
NFC-DEP RF Interface Configuration ....................................................... 107
8.4.3
Poll-side NFC-DEP RF Interface Management.......................................... 108
8.4.4
Listen-side NFC-DEP RF Interface Management ...................................... 109
9 NFCEE Discovery and Mode Set..............................................................112
9.1
NFCEE ID ................................................................................................................. 112
9.2
NFCEE Discovery..................................................................................................... 112
9.2.1
HCI Network Specific Handling................................................................. 115
9.3
NFCEE Enabling and Disabling................................................................................ 116
9.3.1
HCI Network Specific Handling................................................................. 117
10 NFCEE Interfaces ......................................................................................118
10.1 APDU NFCEE Interface ........................................................................................... 118
10.1.1 Data Exchange ............................................................................................ 118
10.1.2 Failures during Data Exchange................................................................... 120
10.2 HCI Access NFCEE Interface ................................................................................... 120
10.2.1 NFCEE Interface Activation and Deactivation........................................... 120
10.2.2 Data Exchange ............................................................................................ 121
10.3 Type 3 Tag Command Set NFCEE Interface ............................................................ 121
10.3.1 Data Exchange ............................................................................................ 121
10.4 Transparent NFCEE Interface ................................................................................... 121
10.4.1 Data Exchange ............................................................................................ 122
11 Transport Mappings ..................................................................................123
11.1 UART Transport........................................................................................................ 123
11.2 I2C Transport ............................................................................................................ 124
11.3 Half Duplex SPI Transport........................................................................................ 124
11.3.1 Physical....................................................................................................... 124
11.3.2 Data Transfer .............................................................................................. 125
12 Testing........................................................................................................131
12.1 Local Loopback Mode............................................................................................... 131
A. Exhibit A.....................................................................................................132
B. Common Tables.........................................................................................133
C. Revision History ........................................................................................143Figures
NFC Controller Interface (NCI) Specification
Page iv
Figures
Figure 1: NCI Scope........................................................................................................................ 8
Figure 2: NCI Components ........................................................................................................... 18
Figure 3: NCI concepts.................................................................................................................. 19
Figure 4: Control Message Exchange............................................................................................ 23
Figure 5: Data Exchange ............................................................................................................... 25
Figure 6: NCI Core Packet Format................................................................................................ 27
Figure 7: Control Packet Structure ................................................................................................ 28
Figure 8: Data Packet Structure..................................................................................................... 29
Figure 9: RF Interface Architecture .............................................................................................. 46
Figure 10: RF Communication State Machine.............................................................................. 48
Figure 11: Format for Frame RF Interface (NFC-A) for Transmission ........................................ 91
Figure 12: Format for Frame RF Interface (NFC- B) for Transmission........................................ 92
Figure 13: Format for Frame RF Interface (NFC-F) for Transmission......................................... 92
Figure 14: Format for Frame RF Interface (NFC-A) for Reception.............................................. 93
Figure 15: Format for Frame RF Interface (NFC-B) for Reception.............................................. 93
Figure 16: Format for Frame RF Interface (NFC-F) for Reception .............................................. 93
Figure 17: Format for ISO-DEP RF Interface for Transmission................................................. 101
Figure 18: Format for ISO-DEP RF Interface for Reception ...................................................... 101
Figure 19: Format for NFC-DEP RF Interface for Transmission................................................ 106
Figure 20: Format for NFC-DEP RF Interface for Reception..................................................... 107
Figure 21: Mapping of Command APDU ................................................................................... 119
Figure 22: Mapping of Response APDU..................................................................................... 120
Figure 23: Data Message Format for Type 3 Tag Command Set Interface................................. 121
Figure 24: SPI Operation............................................................................................................. 125
Figure 25: SPI Data Transfer from the DH to the NFCC without CRC...................................... 126
Figure 26: SPI Data Transfer from the DH to the NFCC with CRC........................................... 127
Figure 27: SPI Data Transfer from the NFCC to the DH without CRC...................................... 128
Figure 28: SPI Data Transfer from the NFCC to the DH with CRC........................................... 129
Figure 29: SPI Race Condition 1................................................................................................. 129
Figure 30: SPI Race Condition 2................................................................................................. 130Tables
NFC Controller Interface (NCI) Specification
Page v
Tables
Table 1: Abbreviations.................................................................................................................. 12
Table 2: MT Values....................................................................................................................... 27
Table 3: PBF Values...................................................................................................................... 27
Table 4: Conn ID........................................................................................................................... 32
Table 5: Control Messages to Reset the NFCC............................................................................. 33
Table 6: NCI Version .................................................................................................................... 33
Table 7: Configuration Status........................................................................................................ 34
Table 8: Control Messages to Initialize the NFCC........................................................................ 35
Table 9: NFCC Features................................................................................................................ 37
Table 10: Control Messages for Setting Configuration Parameters.............................................. 38
Table 11: Control Messages for Reading Current Configuration.................................................. 39
Table 12: Destination Types.......................................................................................................... 40
Table 13: Control Messages for DH Connection Creation............................................................ 41
Table 14: Initial Number of Credits .............................................................................................. 41
Table 15: Destination-specific Parameters.................................................................................... 42
Table 16: Control Messages for Connection Closure.................................................................... 43
Table 17: Control Messages for Connection Credit Management ................................................ 44
Table 18: Control Messages for Generic Error ............................................................................. 45
Table 19: Control Messages for Interface Error............................................................................ 45
Table 20: Notification for RF Field information........................................................................... 53
Table 21: RF Field Status.............................................................................................................. 53
Table 22: RF Field Information Configuration Parameter............................................................ 54
Table 23: Discovery Configuration Parameters for Poll A ........................................................... 55
Table 24: Discovery Configuration Parameters for Poll B............................................................ 56
Table 25: Discovery Configuration Parameters for Poll F............................................................ 56
Table 26: Discovery Configuration Parameters for ISO-DEP ...................................................... 57
Table 27: Discovery Configuration Parameters for Poll NFC-DEP.............................................. 58
Table 28: Values for PN_ATR_REQ_CONFIG ........................................................................... 59
Table 29: Discovery Configuration Parameters for Listen A........................................................ 59
Table 30: LA_SEL_INFO coding ................................................................................................. 60
Table 31: Discovery Configuration Parameters for Listen B........................................................ 60
Table 32: LB_SENSB_INFO values............................................................................................. 61
Table 33: LB_ADC_FO values..................................................................................................... 61Tables
NFC Controller Interface (NCI) Specification
Page vi
Table 34: Discovery Configuration Parameters for Listen F ........................................................ 62
Table 35: Supported Protocols for Listen F................................................................................... 63
Table 36: LF_CON_BITR_F Values ............................................................................................ 63
Table 37: Discovery Configuration Parameters for Listen ISO-DEP ........................................... 64
Table 38: Discovery Configuration Parameters for Listen NFC-DEP .......................................... 65
Table 39: Values for LN_ATR_RES_CONFIG............................................................................ 65
Table 40: Common Parameters for Discovery Configuration....................................................... 66
Table 41: Control Messages for RF Interface Mapping Configuration......................................... 67
Table 42: Value Field for Mode .................................................................................................... 67
Table 43: Control Messages to Configure Listen Mode Routing.................................................. 70
Table 44: More field values........................................................................................................... 70
Table 45: TLV Coding for Listen Mode Routing.......................................................................... 70
Table 46: Value Field for Technology-based Routing .................................................................. 71
Table 47: Value Field for Protocol-based Routing........................................................................ 71
Table 48: Value Field for AID-based Routing .............................................................................. 71
Table 49: Value Field for Power State .......................................................................................... 71
Table 50: Control Messages to Read the NFCC’s Listen Mode Routing...................................... 73
Table 51: Control Messages to Start Discovery ............................................................................ 75
Table 52: RF Discovery ID ........................................................................................................... 76
Table 53: Specific Parameters for NFC-A Poll Mode................................................................... 78
Table 54: Specific Parameters for NFC-A Listen Mode ............................................................... 78
Table 55: Specific Parameters for NFC-B Poll Mode................................................................... 78
Table 56: Specific Parameters for NFC-B Listen Mode ............................................................... 78
Table 57: Specific Parameters for NFC-F Poll Mode ................................................................... 79
Table 58: Specific Parameters for NFC-F Listen Mode................................................................ 79
Table 59: Control Messages to select a Discovered Target........................................................... 80
Table 60: Notification for RF Interface activation ........................................................................ 81
Table 61: Control Messages for RF Interface Deactivation .......................................................... 84
Table 62: Deactivation Types........................................................................................................ 84
Table 63: Deactivation Reasons.................................................................................................... 85
Table 64: Notification for NFCEE Discovery Request................................................................. 86
Table 65: TLV Coding for RF NFCEE Discovery Request.......................................................... 87
Table 66: Value Field for NFCEE Discovery Request Information.............................................. 87
Table 67: Notification to Report an NFCEE Action ..................................................................... 87
Table 68: Trigger in NFCEE Action Notification......................................................................... 88Tables
NFC Controller Interface (NCI) Specification
Page vii
Table 69: RF_NFCEE_ACTION configuration parameter........................................................... 89
Table 70: Control Messages for RF Parameter Update................................................................. 94
Table 71: TLV Coding for RF Communication Parameter ID...................................................... 95
Table 72: NFC-B Data Exchange Configuration Parameter ......................................................... 96
Table 73: Control Messages to Request the NFCC to send a Type 3 Tag Polling Command ...... 97
Table 74: Activation Parameters for NFC-A/ISO-DEP Poll Mode............................................. 102
Table 75: Activation Parameters for NFC-B/ISO-DEP Poll Mode............................................. 103
Table 76: Activation Parameters for NFC-A/ISO-DEP Listen Mode ......................................... 104
Table 77: Activation Parameters for NFC-B/ISO-DEP Listen Mode ......................................... 105
Table 78: Specific Parameters for NFC-DEP RF Interface......................................................... 107
Table 79: NFC-DEP Operation Parameter.................................................................................. 107
Table 80: Activation Parameters for NFC-DEP Poll Mode ........................................................ 109
Table 81: Activation Parameters for NFC-DEP Listen Mode..................................................... 110
Table 82: NFCEE IDs ................................................................................................................. 112
Table 83: Control Messages for NFCEE Discovery ................................................................... 112
Table 84: TLV Coding for NFCEE Discovery............................................................................ 114
Table 85: Value Field for T3T Command Set Interface Supplementary Information................. 114
Table 86: Control Messages to Enable and Disable a Connected NFCEE.................................. 116
Table 87: SPI modes.................................................................................................................... 124
Table 88: SPI Header Coding (DH to NFCC) without CRC....................................................... 126
Table 89: SPI Header Coding (DH to NFCC) with CRC............................................................ 126
Table 90: SPI Header Coding (NFCC to DH) without CRC....................................................... 127
Table 91: SPI Header Coding (NFCC to DH) with CRC............................................................ 128
Table 92: Status Codes................................................................................................................ 133
Table 93: RF Technologies ......................................................................................................... 134
Table 94: RF Technology and Mode........................................................................................... 135
Table 95: Bit Rates...................................................................................................................... 136
Table 96: RF Protocols................................................................................................................ 136
Table 97: RF Interfaces............................................................................................................... 137
Table 98: NFCEE Protocols / Interfaces..................................................................................... 137
Table 99: Configuration Parameter Tags..................................................................................... 138
Table 100: GID and OID Definitions.......................................................................................... 141
Table 101: Revision History........................................................................................................ 143

标签: nfc 1.0 NCI

网友评论

发表评论

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

查看所有0条评论>>

小贴士

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

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

关于好例子网

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

;
报警