在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例Clojure → NFC Controller Interface (NCI规范)

NFC Controller Interface (NCI规范)

Clojure

下载此实例
  • 开发语言:Others
  • 实例大小:1.08M
  • 下载次数:7
  • 浏览次数:73
  • 发布时间:2022-09-28
  • 实例类别:Clojure
  • 发 布 人:qwertasdfg123
  • 文件格式:.pdf
  • 所需积分:2
 相关标签: Interface Control FACE ACE nfc

实例介绍

【实例简介】NFC Controller Interface (NCI规范) 

【实例截图】

【核心代码】

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

实例下载地址

NFC Controller Interface (NCI规范)

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

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

查看所有0条评论>>

小贴士

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

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

关于好例子网

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

;
报警