# communication_nfc
**Repository Path**: openharmony/communication_nfc
## Basic Information
- **Project Name**: communication_nfc
- **Description**: NFC英文全称Near Field Communication,近距离无线通信。NFC服务提供NFC开关控制、NFC标签发现和分发、NFC标签读写、NFC卡模拟等业务功能。
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 18
- **Forks**: 120
- **Created**: 2021-09-11
- **Last Updated**: 2025-10-28
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# NFC
- [Introduction](#section13587125816351)
- [Architecture](#section13587185873516)
- [Directory Structure](#section161941989596)
- [Constraints](#section119744591305)
- [Usage](#section1312121216216)
- [Repositories Involved](#section1371113476307)
## Introduction
Near-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.
NFC service provides NFC switch control, NFC tag discovery and dispatch, NFC tag reading and writing, NFC card emulation functions.
## Architecture
**Figure 1** NFC architecture

## Directory Structure
```
/foundation/communication/nfc
├── interfaces # Interface
│ └── inner_api # System inner interface
├── frameworks # Framework interface
│ └── js # Implementation of JS API
│ └── napi # Napi implementation of JS API
├── services # Service implementation
├── test # Test code
├── BUILD.gn # Build entry
└── bundle.json # Component description
```
## Constraints
- The device must have an NFC controller chip to use NFC services.
## Usage
- NFC switch
Please reference: docs/zh-cn/application-dev/reference/apis/js-apis-nfcController.md。
- NFC tag reading and writing
Please reference: docs/zh-cn/application-dev/reference/apis/js-apis-nfcTag.md。
- NFC card emulation
Please reference: docs/zh-cn/application-dev/reference/apis/js-apis-cardEmulation.md。
## Repositories Involved
hmf/communication/nfc