21 Star 15 Fork 67

OpenHarmony / communication_nfc

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

NFC

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

About

NFC英文全称Near Field Communication,近距离无线通信。NFC服务提供NFC开关控制、NFC标签发现和分发、NFC标签读写、NFC卡模拟等业务功能。 expand collapse
C++ and 2 more languages
Apache-2.0
Cancel

Releases

No release

OpenHarmony

Contributors

All

Activities

Load More
can not load any more
1
https://gitee.com/openharmony/communication_nfc.git
git@gitee.com:openharmony/communication_nfc.git
openharmony
communication_nfc
communication_nfc
master

Search

E71a60c3 8189591 Df7b7c6b 8189591