• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..17-Mar-2025-

figures/H17-Mar-2025-

frameworks/js/napi/H17-Mar-2025-8,3856,810

interfaces/inner_api/H17-Mar-2025-9,3176,346

sa_profile/H17-Mar-2025-4137

services/H17-Mar-2025-26,58821,131

test/H17-Mar-2025-25,44817,007

CODEOWNERSH A D17-Mar-2025816 1917

LICENSEH A D17-Mar-20259.9 KiB177150

OAT.xmlH A D17-Mar-20251.6 KiB3518

README.mdH A D17-Mar-20252.1 KiB6037

README_zh.mdH A D17-Mar-20252.2 KiB6843

bundle.jsonH A D17-Mar-20255.1 KiB153152

hisysevent.yamlH A D17-Mar-20252.7 KiB5144

nfc.gniH A D17-Mar-20251.4 KiB4137

README.md

1# NFC<a name="EN-US_TOPIC_0000001133207781"></a>
2
3-   [Introduction](#section13587125816351)
4-   [Architecture](#section13587185873516)
5-   [Directory Structure](#section161941989596)
6-   [Constraints](#section119744591305)
7-   [Usage](#section1312121216216)
8-   [Repositories Involved](#section1371113476307)
9
10## Introduction<a name="section13587125816351"></a>
11
12Near-field communication \(NFC\) is a non-contact identification and interconnection technology for short-distance wireless communication between mobile devices, consumer electronic products, PCs, and smart devices.
13
14NFC service provides NFC switch control, NFC tag discovery and dispatch, NFC tag reading and writing, NFC card emulation functions.
15
16## Architecture<a name="section13587185873516"></a>
17
18**Figure  1**  NFC architecture<a name="fig4460722185514"></a>
19
20
21![](figures/en-us_image_0000001086731550.png)
22
23## Directory Structure<a name="section161941989596"></a>
24
25```
26/foundation/communication/nfc
27├── interfaces                        # Interface
28│   └── inner_api                     # System inner interface
29├── frameworks                        # Framework interface
30│   └── js                            # Implementation of JS API
31│       └── napi                      # Napi implementation of JS API
32├── services                          # Service implementation
33├── test                              # Test code
34├── BUILD.gn                          # Build entry
35└── bundle.json                       # Component description
36```
37
38## Constraints<a name="section119744591305"></a>
39
40-   The device must have an NFC controller chip to use NFC services.
41
42## Usage<a name="section1312121216216"></a>
43
44-  NFC switch
45
46Please reference: docs/zh-cn/application-dev/reference/apis/js-apis-nfcController.md47
48-  NFC tag reading and writing
49
50Please reference: docs/zh-cn/application-dev/reference/apis/js-apis-nfcTag.md51
52-  NFC card emulation
53
54Please reference: docs/zh-cn/application-dev/reference/apis/js-apis-cardEmulation.md55
56## Repositories Involved<a name="section1371113476307"></a>
57
58hmf/communication/nfc
59
60

README_zh.md

1# NFC组件<a name="ZH-CN_TOPIC_0000001124412109"></a>
2
3-   [简介](#section11660541593)
4-   [系统架构](#section342962219551)
5-   [目录](#section161941989596)
6-   [约束](#section119744591305)
7-   [说明](#section1312121216216)
8-   [使用说明](#section129654513264)
9-   [相关仓](#section1371113476307)
10
11## 简介<a name="section11660541593"></a>
12
13近距离无线通信技术\(Near Field Communication,NFC\) ,是一种非接触式识别和互联技术,可以在移动设备、消费类电子产品、PC和智能设备间进行近距离无线通信。
14
15NFC服务提供NFC开关控制、NFC标签发现和分发、NFC标签读写、NFC卡模拟等业务功能。
16
17## 系统架构<a name="section342962219551"></a>
18
19**图 1**  NFC服务组件架构图<a name="fig444313176464"></a>
20
21
22![](figures/zh-cn_image_0000001124327253.png)
23
24<a name="table1716174620235"></a>
25<table><thead align="left"></thead>
26<tbody></tbody>
27</table>
28
29## 目录<a name="section161941989596"></a>
30
31```
32/foundation/communication/nfc
33├── interfaces                        # 接口
34│   └── inner_api                     # 系统内部件间接口
35├── frameworks                        # 框架层接口
36│   └── js                            # JS API的实现
37│       └── napi                      # 通过napi封装的JS接口代码实现
38├── services                          # NFC服务进程的实现
39├── test                              # 测试代码
40├── BUILD.gn                          # 编译入口
41└── bundle.json                       # 部件描述文件
42```
43
44## 约束<a name="section119744591305"></a>
45
46设备必须具备NFC控制器芯片,才能使用NFC服务。
47
48## 说明<a name="section1312121216216"></a>
49
50### 使用说明<a name="section129654513264"></a>
51
52-  NFC开关
53
54参考开发指南: docs/zh-cn/application-dev/reference/apis-connectivity-kit/js-apis-nfcController.md55
56-  NFC标签读写
57
58参考开发指南: docs/zh-cn/application-dev/reference/apis-connectivity-kit/js-apis-nfcTag.md59
60-  NFC卡模拟
61
62参考开发指南: docs/zh-cn/application-dev/reference/apis-connectivity-kit/js-apis-cardEmulation.md63
64## 相关仓<a name="section1371113476307"></a>
65
66hmf/communication/nfc
67
68