Tag identification method and apparatus
Abstract
The present invention discloses a tag identification method and apparatus, relates to the field of communications network technologies, which can implement that there are few steps of determining a format of a tag by a device host in an NFC terminal, so that the tag can be quickly processed. In the embodiments of the present invention, a Near Field Communication NFC controller reads a type of a tag; the NFC controller determines whether a format of the tag is an NFC data exchange format NDEF according to the type of the tag; and the NFC controller sends a notification message to a device host when the NFC controller determines that the format of the tag is the NDEF, where the notification message includes that the format of the tag is the NDEF. The solutions provided in the embodiments of the present invention are applicable to identifying a tag.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A tag identification method, comprising:
reading, by a Near Field Communication (NFC) controller, a type of a tag; performing, by the NFC controller, NFC data exchange format (NDEF) detection on the tag according to the type of the tag; and sending, by the NFC controller, a notification message to a device host when the NDEF detection indicates a presence of an NDEF message in the tag, wherein the notification message comprises the presence of the NDEF message in the tag.
2 . The method according to claim 1 , wherein the performing, by the NFC controller, the NDEF detection on the tag according to the type of the tag comprises:
when the type of the tag is Type 1, performing, by the NFC controller, the NDEF detection on the tag according to header read-only memory HR0 in the tag.
3 . The method according to claim 1 , wherein the performing, by the NFC controller, the NDEF detection on the tag according to the type of the tag comprises:
when the type of the tag is Type 2, performing, by the NFC controller, the NDEF detection on the tag according to a capability container (CC) in the tag.
4 . The method according to claim 1 , wherein the performing, by the NFC controller, the NDEF detection on the tag according to the type of the tag comprises:
when the type of the tag is Type 3, performing, by the NFC controller, the NDEF detection on the tag according to System Code in the tag.
5 . The method according to claim 1 , wherein the performing, by the NFC controller, the NDEF detection on the tag according to the type of the tag comprises:
when the type of the tag is Type 4, performing, by the NFC controller, the NDEF detection on the tag according to a file identifier of a capability container (CC) file in the tag.
6 . The method according to claim 1 , further comprising:
receiving, by the NFC controller via an NDEF radio frequency interface, a read/write command sent by the device host; converting, by the NFC controller, the read/write command into an NDEF read/write command; and performing, by the NFC controller, data reading/writing on the tag according to the NDEF read/write command.
7 . A tag identification apparatus, comprising:
a Near Field Communication (NFC) controller; and a device host coupled to the NFC controller, wherein the NFC controller is configured to: read a type of a tag; perform NFC data exchange format (NDEF) detection on the tag according to the type of the tag; and send a notification message to the device host when the NDEF detection indicates a presence of an NDEF message in the tag, wherein the notification message comprises the presence of the NDEF message in the tag.
8 . The apparatus according to claim 7 , wherein when the type of the tag is Type 1, the NFC controller is configured to perform the NDEF detection on the tag according to header read-only memory HR0 in the tag.
9 . The apparatus according to claim 7 , wherein when the type of the tag is Type 2, the NFC controller is configured to perform the NDEF detection on the tag according to a capability container (CC) in the tag.
10 . The apparatus according to claim 7 , wherein when the type of the tag is Type 3, the NFC controller is configured to perform the NDEF detection on the tag according to System Code in the tag.
11 . The apparatus according to claim 7 , wherein when the type of the tag is Type 4, the NFC controller is configured to perform the NDEF detection on the tag according to a file identifier of a capability container (CC) file in the tag.
12 . The apparatus according to claim 7 , wherein the NFC controller is configured to:
receive a read/write command via an NDEF radio frequency interface, wherein the read/write command is sent by the device host; convert the read/write command into an NDEF read/write command; and perform data reading/writing on the tag according to the NDEF read/write command.Join the waitlist — get patent alerts
Track US2017098105A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.