23 Star 16 Fork 80

OpenHarmony / communication_nfc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 2.10 KB
一键复制 编辑 原始数据 按行查看 历史
yangyannan 提交于 2024-03-06 17:47 . refresh default route when app changed

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

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony/communication_nfc.git
git@gitee.com:openharmony/communication_nfc.git
openharmony
communication_nfc
communication_nfc
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891