근거리 무선통신 (NFC) 개요
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
NFC (근거리 무선통신)는 단거리 무선 기술로, 일반적으로 연결을 시작하려면 거리가 4cm 이하여야 합니다. NFC를 사용하면 NFC 태그와 Android 지원 기기 간에 또는 Android 지원 기기 두 대 간에 작은 데이터 페이로드를 공유할 수 있습니다.
태그의 복잡성은 다양할 수 있습니다. 단순한 태그는 읽기 및 쓰기 의미 체계만 제공하며 때로는 일회성 프로그래밍 가능한 영역을 사용하여 카드를 읽기 전용으로 설정합니다. 더 복잡한 태그는 수학 연산을 제공하며 섹터에 대한 액세스를 인증하기 위해 암호화 하드웨어를 사용합니다. 가장 정교한 태그는 태그에서 실행되는 코드와 복잡한 상호작용이 가능하도록 하는 운영 환경을 포함합니다. 태그에 저장되는 데이터를 다양한 형식으로 작성할 수도 있지만, 다수의 Android 프레임워크 API는 NDEF (NFC Data Exchange Format)라는 NFC Forum 표준을 기반으로 합니다.
NFC를 사용하는 Android 구동 기기는 다음과 같은 두 가지 기본 작업 모드를 동시에 지원합니다.
- 읽기/쓰기 모드: NFC 기기가 수동 NFC 태그 및 스티커를 읽고 쓸 수 있습니다.
- 카드 에뮬레이션 모드: NFC 기기 자체가 NFC 카드로 작동합니다. 그러면 NFC POS 단말기와 같은 외부 NFC 판독기에서 에뮬레이션된 NFC 카드에 액세스할 수 있습니다.
- NFC 기초
- 이 문서에서는 Android가 검색된 NFC 태그를 처리하는 방법 및 애플리케이션과 관련이 있는 데이터를 애플리케이션에 알리는 방법을 설명합니다. 또한 애플리케이션에서 NDEF 데이터로 작업하는 방법 및 Android의 기본 NFC 기능을 지원하는 프레임워크 API에 대해서도 간략히 설명합니다.
- 고급 NFC
- 이 문서에서는 Android가 지원하는 다양한 태그 기술을 사용하도록 설정하는 API에 대해 설명합니다. NDEF 데이터로 작업하지 않거나 Android가 완전히 이해할 수 없는 NDEF 데이터로 작업하는 경우 자체 프로토콜 스택을 사용하여 원시 바이트로 태그를 직접 읽거나 써야 합니다. 이러한 경우 Android는 특정 태그 기술을 감지하고 자체 프로토콜 스택을 사용하여 태그와의 통신을 시작하도록 지원합니다.
- 호스트 기반 카드 에뮬레이션
- 이 문서에서는 보안 요소를 사용하지 않고 Android 기기가 NFC 카드로 작동하도록 하여 Android 애플리케이션이 카드를 에뮬레이션하고 NFC 리더와 직접 통신하도록 설정하는 방법을 설명합니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-26(UTC)"],[],[],null,["# Near field communication (NFC) overview\n\nNear Field Communication (NFC) is a set of short-range wireless technologies,\ntypically requiring a distance of 4 cm or less to initiate a connection. NFC\nlets you share small payloads of data between an NFC tag and an\nAndroid-powered device, or between two Android-powered devices.\n\nTags can range in complexity. Simple tags offer just read and write semantics,\nsometimes with one-time-programmable areas to make the card read-only. More\ncomplex tags offer math operations, and have cryptographic hardware to\nauthenticate access to a sector. The most sophisticated tags contain operating\nenvironments, allowing complex interactions with code executing on the tag. The\ndata stored in the tag can also be written in a variety of formats, but many of\nthe Android framework APIs are based around a [NFC\nForum](http://www.nfc-forum.org/) standard called NDEF (NFC Data Exchange\nFormat).\n\nAndroid-powered devices with NFC simultaneously support two main modes of\noperation:\n\n1. **Reader/writer mode**, allowing the NFC device to read and write passive NFC tags and stickers.\n2. **Card emulation mode**, allowing the NFC device itself to act as an NFC card. The emulated NFC card can then be accessed by an external NFC reader, such as an NFC point-of-sale terminal.\n\n**[NFC Basics](/develop/connectivity/nfc/nfc)**\n: This document describes how Android handles discovered NFC tags and how it\n notifies applications of data that is relevant to the application. It also\n goes over how to work with the NDEF data in your applications and gives an\n overview of the framework APIs that support the basic NFC feature set of\n Android.\n\n**[Advanced NFC](/develop/connectivity/nfc/advanced-nfc)**\n: This document goes over the APIs that enable use of the various tag\n technologies that Android supports. When you are not working with NDEF data,\n or when you are working with NDEF data that Android cannot fully understand,\n you have to manually read or write to the tag in raw bytes using your own\n protocol stack. In these cases, Android provides support to detect certain\n tag technologies and to open communication with the tag using your own\n protocol stack.\n\n**[Host-based Card Emulation](/develop/connectivity/nfc/hce)**\n: This document describes how Android devices can perform as NFC cards without\n using a secure element, allowing any Android application to emulate a card\n and talk directly to the NFC reader."]]