IP Library Granted Patent US 9,564,950
Granted Patent B2
US 9,564,950 · App. 14/984,041 · Granted Feb 7, 2017

Tag identification method and apparatus

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,564,950
App. No.
14/984,041
Granted
Feb 7, 2017
Kind
B2
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 (42)

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 a result of the NDEF detection is that a format of the tag is an NDEF, wherein the notification message comprises that the format of the tag is the NDEF.

2. The method according to claim 1 , wherein before the reading, by the Near Field Communication (NFC) controller, the type of the tag, the method further comprises:

receiving, by the NFC controller, a configuration command sent by the device host, wherein the configuration command is configured to indicate whether the NFC controller performs the NDEF detection on 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 1, performing, by the NFC controller, the NDEF detection on the tag according to header read-only memory HR0 in the tag;

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;

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; and

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.

4. The method according to claim 2 , wherein before the receiving, by the NFC controller, the configuration command sent by the device host, the method further comprises:

sending, by the NFC controller, a format function message to the device host, wherein the format function message carries information about whether the NFC controller has a capability of performing the NDEF detection on the tag.

5. The method according to claim 4 , wherein before the sending, by the NFC controller, the format function message to the device host, the method further comprises:

receiving, by the NFC controller, an initialization command sent by the device host; and

the sending, by the NFC controller, the format function message to the device host comprises:

sending, by the NFC controller, an initialization response to the device host, wherein the initialization response carries the information about whether the NFC controller has the capability of performing the NDEF detection on the tag.

6. The method according to claim 2 , wherein the configuration command is further used to indicate that the NFC controller performs data type detection on the tag.

7. The method according to claim 1 , wherein after the sending, by the NFC controller, the notification message to the device host, the method further comprises:

receiving, by the NFC controller by using 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.

8. 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 a result of the NDEF detection is that a format of the tag is an NDEF, wherein the notification message comprises that the format of the tag is the NDEF, and wherein the device host is configured to receive the notification message sent by the NFC controller.

9. The apparatus according to claim 8 , wherein the device host is further configured to send a configuration command to the NFC controller, wherein the configuration command is configured to indicate whether the NFC controller performs the NDEF detection on the tag, and wherein the NFC controller is further configured to receive the configuration command sent by the device host.

10. The apparatus according to claim 8 , wherein the NFC controller is configured to

when the type of the tag is Type 1, perform the NDEF detection on the tag according to header read-only memory HR0 in the tag;

when the type of the tag is Type 2, perform the NDEF detection on the tag according to a capability container CC in the tag;

when the type of the tag is Type 3, perform the NDEF detection on the tag according to System Code in the tag; and

when the type of the tag is Type 4, perform the NDEF detection on the tag according to a file identifier of a capability container CC file in the tag.

11. The apparatus according to claim 8 , wherein the NFC controller is further configured to send a format function message to the device host, wherein the format function message carries information about whether the NFC controller has a capability of performing the NDEF detection on the tag.

12. The apparatus according to claim 11 , wherein the device host is further configured to send an initialization command to the NFC controller, and wherein the NFC controller is further configured to send an initialization response to the device host after receiving the initialization command sent by the device host, wherein the initialization response carries the information about whether the NFC controller has the capability of performing the NDEF detection on the tag.

13. The apparatus according to claim 9 , wherein the configuration command is further configured to indicate that the NFC controller performs data type detection on the tag.

14. The apparatus according to claim 8 , wherein the device host is further configured to establish an NDEF radio frequency interface for performing data transmission with the NFC controller after receiving the notification message sent by the NFC controller.

15. The apparatus according to claim 8 , wherein the device host is further configured to send, by using an NDEF radio frequency interface, a read/write command to the NFC controller, and wherein the NFC controller is further configured to

receive, by using the NDEF radio frequency interface, the read/write command 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.

16. The apparatus according to claim 8 , wherein the apparatus is one of a mobile phone, a tablet computer and a camera.

Assignments (3)
CHANGE OF NAME Recorded Mar 11, 2019
From: HUAWEI DEVICE (DONGGUAN) CO.,LTD.
To: HUAWEI DEVICE CO.,LTD.
Reel/Frame 048555/0951 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 5, 2017
From: HUAWEI DEVICE CO., LTD.
To: HUAWEI DEVICE (DONGGUAN) CO., LTD.
Reel/Frame 043750/0393 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 13, 2016
From: JIN, ZHIHAO; CHANG, XINMIAO
To: HUAWEI DEVICE CO., LTD.
Reel/Frame 038594/0368 →