WO2023000774A1 - Nfc tag identification method and apparatus, nfc device and storage medium - Google Patents

Nfc tag identification method and apparatus, nfc device and storage medium Download PDF

Info

Publication number
WO2023000774A1
WO2023000774A1 PCT/CN2022/091820 CN2022091820W WO2023000774A1 WO 2023000774 A1 WO2023000774 A1 WO 2023000774A1 CN 2022091820 W CN2022091820 W CN 2022091820W WO 2023000774 A1 WO2023000774 A1 WO 2023000774A1
Authority
WO
WIPO (PCT)
Prior art keywords
tag
label
nfc
current
external
Prior art date
Application number
PCT/CN2022/091820
Other languages
French (fr)
Chinese (zh)
Inventor
王大耀
Original Assignee
深圳市汇顶科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市汇顶科技股份有限公司 filed Critical 深圳市汇顶科技股份有限公司
Publication of WO2023000774A1 publication Critical patent/WO2023000774A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10019Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves resolving collision on the communication channels between simultaneously or concurrently interrogated record carriers.
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10297Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves arrangements for handling protocols designed for non-contact record carriers such as RFIDs NFCs, e.g. ISO/IEC 14443 and 18092
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

An NFC tag identification method and apparatus, an NFC device and a storage medium. The tag identification method comprises: when identification of a previous tag in external tags is completed according to an NFC tag anti-collision mechanism, obtaining a current tag collision state of the external tags; if the current tag conflict state indicates that no tag conflict exists in the external tags is detected at present, sending a tag silence request to the identified previous tag, the tag silence request being used for enabling the identified tag to enter a silence state; sending a tag discovery request, the tag discovery request being used for discovering tags which are not in the silent state in the external tags; and if a response of a current tag to the tag discovery request is received, identifying the current tag according to the NFC tag anti-collision mechanism. According to the method, the identification accuracy and reliability of the external tags are improved.

Description

NFC标签识别方法、装置、NFC设备和存储介质NFC tag identification method, device, NFC device and storage medium 技术领域technical field
本发明实施例涉及通信技术领域,尤其涉及一种NFC标签识别方法、装置、NFC设备和存储介质。The embodiments of the present invention relate to the technical field of communication, and in particular to an NFC tag identification method, device, NFC device and storage medium.
背景技术Background technique
在近场通信(Near Field Communication,NFC)技术中,依据NFC forum(NFC论坛,一种制定NFC通信协议的组织)的规定,NFC设备可以采用被动通信模式、主动通信模式或点对点模式实现通信。In Near Field Communication (NFC) technology, according to the NFC forum (NFC Forum, an organization that formulates NFC communication protocols), NFC devices can communicate in passive communication mode, active communication mode or point-to-point mode.
NFC forum的digital规范规定了:在主动通信模式中,NFC读写器能够发射用于标签识别的射频场,接收到射频场的外部标签通过负载调制的方式向NFC读写器返回外部标签携带的标签信息。当存在多个标签向NFC读写器返回标签信息时,NFC读写器会根据NFC标签防冲突机制识别外部存在彼此冲突的多个标签。The digital specification of the NFC forum stipulates that: in the active communication mode, the NFC reader can emit a radio frequency field for tag identification, and the external tag that receives the radio frequency field returns the information carried by the external tag to the NFC reader through load modulation. Label Information. When there are multiple tags returning tag information to the NFC reader, the NFC reader will identify multiple external tags that conflict with each other according to the NFC tag anti-collision mechanism.
但是,仍然存在外部标签识别不准确的情况。However, there are still cases where the identification of external labels is not accurate.
发明内容Contents of the invention
有鉴于此,本发明实施例所解决的技术问题之一在于提供一种NFC标签识别方法、装置、NFC设备和存储介质。In view of this, one of the technical problems solved by the embodiments of the present invention is to provide an NFC tag identification method, device, NFC device and storage medium.
根据本发明实施例的第一方面,提供了一种NFC标签识别方法,包括:在根据NFC标签防冲突机制对外部标签中的上一标签的识别完成时,获取所述外部标签的当前标签冲突状态;若所述当前标签冲突状态指示当前未检测到所述外部标签中存在标签冲突,则向已识别的上一标签发送标签静默请求,所述标签静默请求用于使已完成识别的标签进入静默状态;发送标签发现请求,所述标签发现请求用于发现所述外部标签中未处于所述静默状态的标签;若接收到当前标签对所述标签发现请求的响应,则根据所述NFC标签防冲突机制对所述当前标签进行识别。According to the first aspect of an embodiment of the present invention, there is provided an NFC tag identification method, including: when the identification of the previous tag in the external tag is completed according to the NFC tag anti-collision mechanism, acquiring the current tag conflict of the external tag state; if the current label conflict status indicates that no label conflict is currently detected in the external label, a label silence request is sent to the previous label that has been identified, and the label silence request is used to allow the label that has completed the identification to enter Silent state; send a label discovery request, and the label discovery request is used to discover tags that are not in the silent state in the external tags; if a response from the current tag to the tag discovery request is received, then according to the NFC tag The anti-collision mechanism identifies the current label.
根据本发明实施例的第二方面,提供了一种NFC标签识别装置,包括:获取模块,在根据NFC标签防冲突机制对外部标签中的上一标签的识别完成时,获取所述外部标签的当前标签冲突状态;第一发送模块,若所述当前标签冲突 状态指示当前未检测到所述外部标签中存在标签冲突,则向已识别的上一标签发送标签静默请求,所述标签静默请求用于使已完成识别的标签进入静默状态;第二发送模块,发送标签发现请求,所述标签发现请求用于发现所述外部标签中未处于所述静默状态的标签;判定模块,若接收到当前标签对所述标签发现请求的响应,则根据所述NFC标签防冲突机制对所述当前标签进行识别。According to the second aspect of the embodiments of the present invention, there is provided an NFC tag identification device, including: an acquisition module, when the identification of the previous tag in the external tag is completed according to the NFC tag anti-collision mechanism, acquire the ID of the external tag Current label conflict state; the first sending module, if the current label conflict state indicates that no label conflict is currently detected in the external label, then send a label silence request to the identified last label, and the label silence request is used To make the tag that has been identified enter the silent state; the second sending module sends a tag discovery request, and the tag discovery request is used to discover tags that are not in the silent state among the external tags; if the judging module receives the current The tag responds to the tag discovery request by identifying the current tag according to the NFC tag anti-collision mechanism.
根据本发明实施例的第三方面,提供了一种NFC设备,包括:一个或多个处理器、通信接口、存储器和通信总线、以及一个或多个程序,其中,所述一个或多个处理器、所述通信接口、所述存储器通过所述通信总线完成相互间的通信,一个或多个程序被存储在所述存储器中,并且被配置为由所述一个或多个处理器执行根据第一方面所述的方法。According to a third aspect of the embodiments of the present invention, an NFC device is provided, including: one or more processors, a communication interface, a memory and a communication bus, and one or more programs, wherein the one or more processing The processor, the communication interface, and the memory complete the mutual communication through the communication bus, and one or more programs are stored in the memory, and are configured to be executed by the one or more processors according to the first A method as described in one aspect.
根据本发明实施例的第四方面,提供了一种计算机存储介质,所述计算机存储介质包括存储的程序,其中,在所述程序运行时控制包括所述存储介质的设备执行根据第一方面所述的方法。According to a fourth aspect of the embodiments of the present invention, there is provided a computer storage medium, the computer storage medium includes a stored program, wherein when the program is running, the device including the storage medium is controlled to execute the program described in the first aspect. described method.
在本发明实施例的方案中,接收到当前标签对标签发现请求的响应表明当前标签未处于静默状态,此外,已完成识别的标签均通过标签静默请求的指示而进入静默状态,进一步表明当前标签未完成识别,因而本发明实施例的方案能够在当前未检测到外部标签中存在标签冲突的情况下,对未完成识别的当前标签进行发现和识别,提高了外部标签的识别准确性和可靠性,避免了在诸如外部标签中未被检测到标签冲突而实际存在标签冲突等情况下,存在冲突的标签未能够全部被识别出来。In the solution of the embodiment of the present invention, receiving the response of the current tag to the tag discovery request indicates that the current tag is not in the silent state. In addition, the tags that have been identified all enter the silent state through the indication of the tag silent request, which further indicates that the current tag The identification is not completed, so the solution of the embodiment of the present invention can discover and identify the current label that has not completed the identification when no label conflict in the external label is currently detected, which improves the identification accuracy and reliability of the external label , avoiding that in the case of label conflicts that are not detected in external labels but actually exist, all conflicting labels cannot be identified.
附图说明Description of drawings
后文将参照附图以示例性而非限制性的方式详细描述本发明实施例的一些具体实施例。附图中相同的附图标记标示了相同或类似的部件或部分。本领域技术人员应该理解,这些附图未必是按比值绘制的。附图中:Hereinafter, some specific embodiments of the embodiments of the present invention will be described in detail with reference to the accompanying drawings in an exemplary rather than restrictive manner. The same reference numerals in the drawings designate the same or similar parts or parts. Those skilled in the art will appreciate that these figures are not necessarily drawn to scale. In the attached picture:
图1A为一个典型示例的基于NFC标签防冲突机制的标签识别原理的示意图;Fig. 1A is a schematic diagram of the principle of tag identification based on the NFC tag anti-collision mechanism of a typical example;
图1B为图1A的基于NFC标签防冲突机制的标签识别方法的示意性流程图;FIG. 1B is a schematic flow chart of the tag identification method based on the NFC tag anti-collision mechanism of FIG. 1A;
图2为本发明的一个实施例的NFC标签识别方法的示意性流程图;Fig. 2 is the schematic flow chart of the NFC label identification method of an embodiment of the present invention;
图3为本发明的另一实施例的NFC标签识别方法的示意性交互图;Fig. 3 is a schematic interaction diagram of an NFC tag identification method according to another embodiment of the present invention;
图4为本发明的另一实施例的NFC标签识别方法的示意性流程图;Fig. 4 is the schematic flow chart of the NFC label identification method of another embodiment of the present invention;
图5为本发明的另一实施例的NFC标签识别方法的示意性流程图;Fig. 5 is the schematic flow chart of the NFC label identification method of another embodiment of the present invention;
图6为本发明的另一实施例的NFC标签识别装置的示意性框图;以及Fig. 6 is the schematic block diagram of the NFC label identifying device of another embodiment of the present invention; And
图7为本发明的另一实施例的NFC设备的示意图。FIG. 7 is a schematic diagram of an NFC device according to another embodiment of the present invention.
具体实施方式detailed description
下面结合本发明实施例附图进一步说明本发明实施例具体实现。应理解,NFC设备或者配置有NFC功能的电子设备可以广泛地应用在门禁、公交车、手机支付、智能海报、数据传输等领域。例如,NFC设备可以实现为非接触智能卡(IC卡),例如,银行卡、公交卡、门禁卡等,具体的,可通过手机终端内含有的NFC控制器和安全元件单元,配合软件系统,实现对银行卡、公交卡、门禁卡等非接触智能卡的模拟。NFC设备还可以实现为POS机、读卡器等。NFC设备还可以实现为物联网(Internet of things,IOT)设备。The specific implementation of the embodiments of the present invention will be further described below in conjunction with the accompanying drawings of the embodiments of the present invention. It should be understood that NFC devices or electronic devices equipped with NFC functions can be widely used in fields such as access control, public transport, mobile payment, smart posters, and data transmission. For example, the NFC device can be implemented as a contactless smart card (IC card), such as a bank card, bus card, access control card, etc. Specifically, it can be realized through the NFC controller and the secure element unit contained in the mobile terminal, in cooperation with the software system. Simulation of contactless smart cards such as bank cards, bus cards, and access control cards. The NFC device can also be implemented as a POS machine, a card reader, and the like. The NFC device can also be implemented as an Internet of Things (IOT) device.
为了更好地实现上述功能和场景,NFC forum制定了多种NFC规范。其中,Digital规范规定了NFC-A、NFC-B和NFC-F三种技术的编码格式、调制方式、传输速率、帧格式、传输协议和命令集。NFC读写器向NFC标签发送携带有信息的射频电磁场,NFC标签对射频电磁场进行负载调制,以向NFC读写器发送数据。例如,对于NFC-A和NFC-B技术,负载调制的载波频率fc用于产生副载波fs=fc/16(约为847kHz)。作为侦听设备的NFC标签在副载波的上升沿或下降沿开始指示返回数据的比特信息。In order to better realize the above functions and scenarios, the NFC forum has formulated various NFC specifications. Among them, the Digital specification stipulates the encoding format, modulation mode, transmission rate, frame format, transmission protocol and command set of the three technologies of NFC-A, NFC-B and NFC-F. The NFC reader sends a radio frequency electromagnetic field carrying information to the NFC tag, and the NFC tag performs load modulation on the radio frequency electromagnetic field to send data to the NFC reader. For example, for NFC-A and NFC-B technologies, the carrier frequency fc of the load modulation is used to generate the subcarrier fs=fc/16 (about 847kHz). The NFC tag acting as a listening device begins to indicate the bit information of the returned data at the rising or falling edge of the subcarrier.
具体而言,在NFC-A技术中,NFC读写器能够发射用于标签识别的射频场,接收到射频场的外部标签通过负载调制的方式向NFC读写器返回外部标签携带的标签信息。NFC读写器针对标签信息的各个比特位检测比特信息。在针对同一比特位检测到多个不同比特信息时,NFC读写器判定外部存在彼此冲突的多个待识别标签,并且通过NFC标签防冲突机制发送轮询指令来区分多个不同比特信息,对这些标签进行识别。Specifically, in the NFC-A technology, the NFC reader can emit a radio frequency field for tag identification, and the external tag that receives the radio frequency field returns the tag information carried by the external tag to the NFC reader through load modulation. The NFC reader/writer detects bit information for each bit of tag information. When multiple different bits of information are detected for the same bit, the NFC reader determines that there are multiple tags to be identified that conflict with each other externally, and sends a polling command through the NFC tag anti-collision mechanism to distinguish multiple different bits of information. These tags are identified.
更具体地,下面将结合图1A和图1B具体说明基于NFC标签防冲突机制的识别过程,图1A示出了一个典型示例的NFC标签识别原理,并且图1B示出了NFC标签识别方法的示意性流程。如图1A所示,在接收到射频场时,标签A通过负载调制的方式返回具有8个比特位的标签信息10101010,标签B通过负载调制的方式返回具有8个比特位的标签信息10111010。NFC读写器分 别针对该8个比特位检测比特信息,如果标签A和标签B各自的标签信息中对应同一比特位的比特信息一致,则NFC读写器会将该比特位的比特信息检测为类型D(两个标签信息对应于同一比特位的比特信息都为1时)或类型E(两个标签信息对应于同一比特位的比特信息都为0时)。如果标签A和标签B各自的标签信息中对应同一比特位的比特信息不一致,则NFC读写器会判定对应于同一比特位存在不同的多个比特信息,换言之,NFC读写器会判定对应于同一比特位存在冲突比特信息。在这种情况下,NFC读写器将该比特位的比特信息识别为类型C,例如,标签A和标签B的标签信息对应于第四个比特位的比特信息分别为0和1,即,形成了冲突比特信息,因而NFC读写器将第四个比特位的比特信息识别为类型C。More specifically, the identification process based on the NFC tag anti-collision mechanism will be specifically described below in conjunction with FIG. 1A and FIG. 1B. FIG. 1A shows a typical example of the NFC tag identification principle, and FIG. 1B shows a schematic diagram of the NFC tag identification method sexual process. As shown in FIG. 1A , when receiving a radio frequency field, tag A returns 8-bit tag information 10101010 through load modulation, and tag B returns 8-bit tag information 10111010 through load modulation. The NFC reader/writer detects the bit information for the 8 bits respectively. If the bit information corresponding to the same bit in the label information of the tag A and the tag B is consistent, the NFC reader/writer will detect the bit information of the bit as Type D (when the bit information corresponding to the same bit of the two tag information is both 1) or type E (when the bit information corresponding to the same bit of the two tag information is both 0). If the bit information corresponding to the same bit in the tag information of tag A and tag B is inconsistent, the NFC reader will determine that there are multiple different bit information corresponding to the same bit. Conflicting bit information exists in the same bit. In this case, the NFC reader/writer recognizes the bit information of this bit as type C, for example, the tag information of tag A and tag B corresponds to the bit information of the fourth bit being 0 and 1 respectively, that is, Conflicting bit information is formed, so the NFC reader/writer recognizes the bit information of the fourth bit as type C.
在NFC规范中,NFC读写器根据是否存在冲突比特信息判断是否有待识别的多个冲突标签,并且可以采用如图1B所示的符合NFC规范的标签识别方法,利用轮询消息对诸如标签A和标签B这样的多个冲突标签进行逐个识别,直到识别出所有的冲突标签。In the NFC specification, the NFC reader judges whether there are multiple conflicting tags to be identified according to whether there are conflicting bit information, and can adopt the tag identification method conforming to the NFC specification as shown in Figure 1B, and use the polling message to identify tags such as tag A Multiple conflicting labels such as label B are identified one by one until all conflicting labels are identified.
在图1B所示的NFC标签防冲突机制中,NFC读写器(处于主动通信模式或读写模式下的NFC设备)会发送轮询消息(SENS_REQ消息或者SDD_REQ消息),外部的每个NFC标签(例如,标签A和标签B)会在约定的时间点回复NFC设备的轮询消息。In the NFC tag anti-collision mechanism shown in Figure 1B, the NFC reader (NFC device in active communication mode or read-write mode) will send a polling message (SENS_REQ message or SDD_REQ message), and each external NFC tag (for example, tag A and tag B) will reply the polling message of the NFC device at the agreed time point.
应理解,图1B的NFC标签识别方法仅仅为一个示例的NFC标签识别方法,而不应当理解为唯一的标签识别方法。另外,图1的标签识别方法可以应用于轮询设备与侦听设备之间。轮询设备可以包括但不限于处于读写器模式的NFC设备、NFC读写器。侦听设备包括但不限于处于卡模拟模式的NFC设备、NFC标签、RFID标签。图1的方法包括如下步骤:It should be understood that the NFC tag identification method in FIG. 1B is only an exemplary NFC tag identification method, and should not be understood as a unique tag identification method. In addition, the tag identification method in FIG. 1 can be applied between the polling device and the listening device. The polling device may include, but is not limited to, an NFC device in a reader-writer mode, and an NFC reader-writer. Listening devices include but are not limited to NFC devices in card emulation mode, NFC tags, RFID tags. The method of Fig. 1 comprises the following steps:
S101:NFC设备发送SENS_REQ或ALL_REQ消息开始识别,在收到标签回复的SENS_RES消息时,NFC设备检查SENS_RES消息中的b5-b1,判断标签是否支持NFC标签防冲突机制的标签识别(通过检测冲突比特信息来识别各个标签)。如果支持,继续判断是否配置为类型1标签平台。如果是,则根据NFC标签防冲突机制执行类型1标签平台的标签识别,否则执行步骤102。如果不支持NFC标签防冲突机制的标签识别,则结束识别过程。S101: The NFC device sends a SENS_REQ or ALL_REQ message to start identification. When receiving the SENS_RES message replied by the tag, the NFC device checks b5-b1 in the SENS_RES message to determine whether the tag supports the tag identification of the NFC tag anti-collision mechanism (by detecting the conflict bit information to identify individual tags). If it is supported, continue to judge whether it is configured as a type 1 label platform. If yes, perform tag recognition on the type 1 tag platform according to the NFC tag anti-collision mechanism, otherwise, go to step 102 . If the tag identification of the NFC tag anti-collision mechanism is not supported, the identification process is ended.
S102:NFC设备选择级联级别1。S102: The NFC device selects cascading level 1.
S103:NFC设备设置SDD_REQ消息中的SEL_CMD与SEL_PAR字节, 并发送SDD_REQ消息。S103: The NFC device sets SEL_CMD and SEL_PAR bytes in the SDD_REQ message, and sends the SDD_REQ message.
S104:NFC设备接收SDD_RES消息,并且判断是否产生冲突。如果是,则执行步骤S105;否则执行步骤S109。S104: The NFC device receives the SDD_RES message, and determines whether a conflict occurs. If yes, execute step S105; otherwise, execute step S109.
S105:NFC设备检查配置参数,判断是否进行冲突设备的识别。如果是,则执行步骤S106;否则执行结束。S105: The NFC device checks configuration parameters, and determines whether to identify conflicting devices. If yes, execute step S106; otherwise, the execution ends.
S106:NFC设备识别出有效的数据位。S106: The NFC device identifies valid data bits.
S107:NFC设备设置SEL_PAR,将有效数据位包含在SEL_PAR之后,并且将冲突位设置为1,然后发送SDD_REQ。S107: The NFC device sets SEL_PAR, includes valid data bits after SEL_PAR, and sets the conflict bit to 1, and then sends SDD_REQ.
S108:NFC设备接收SDD_RES,判断是否产生冲突。如果产生了冲突,则执行步骤S106;否则执行步骤S109。S108: The NFC device receives the SDD_RES, and determines whether a conflict occurs. If a conflict occurs, execute step S106; otherwise, execute step S109.
S109:NFC设备发送SEL_REQ消息。S109: the NFC device sends a SEL_REQ message.
S110:NFC设备接收SEL_RES消息,并且判断NFCID1是否完整。如果完整,则执行步骤S111;否则增加级联级别,并且执行步骤S103。S110: The NFC device receives the SEL_RES message, and determines whether the NFCID1 is complete. If it is complete, execute step S111; otherwise, increase the cascading level, and execute step S103.
S111:NFC设备存储NFCID1。S111: The NFC device stores NFCID1.
S112:NFC设备检查配置参数,判断是否继续进行NFC标签防冲突机制的标签识别。如果是,则发送SLP_REQ,令上一标签休眠,并发送SENS_REQ重新执行S102开始检测;否则执行结束。S112: The NFC device checks the configuration parameters, and judges whether to continue the tag identification of the NFC tag anti-collision mechanism. If yes, send SLP_REQ to make the previous tag sleep, and send SENS_REQ to re-execute S102 to start detection; otherwise, the execution ends.
然而,在某些情况下,由于NFC读写器的物理层(例如,analog层)的实现差异,并且由于彼此冲突的多个标签在负载调制时的互相影响,即使满足了NFC forum的各种规范,也可能存在指示冲突比特信息的类型C无法被识别的情况。However, in some cases, due to the differences in the implementation of the physical layer (for example, the analog layer) of the NFC reader, and due to the mutual influence of multiple tags that conflict with each other during load modulation, even if the various NFC forum requirements are satisfied Specifications, there may also be cases where Type C indicating conflicting bit information cannot be recognized.
在另一些情况下,NFC读写器也能够对射频识别(Radio Frequency Identification,RFID)标签进行识别。与上述的NFC标签类似,RFID标签在接收到NFC读写器的射频场时也通过负载调试返回包含比特信息的标签信息。但是,RFID标签的与负载调制相关的analog层设计并不总是兼容NFC规范。换言之,当NFC读写器基于NFC规范与外部RFID标签通信交互时,RFID标签常常不能满足NFC规范的时机要求。例如,NFC读写器对SENS_REQ消息(轮询消息)的发送时机与RFID标签对SENS_RES消息(轮询消息的响应)的返回时机之间的实际时间间隔大于NFC forum的要求,在这种情况下,实际上彼此冲突的RFID标签与NFC标签之间的冲突比特信息、或者实际上彼此冲突的多个RFID标签之间的冲突比特信息不能被检测到,进而导致彼此冲突的 多个标签中不能被识别到,外部标签的识别可靠性较差。In other cases, the NFC reader can also identify radio frequency identification (Radio Frequency Identification, RFID) tags. Similar to the above-mentioned NFC tag, the RFID tag also returns tag information including bit information through load debugging when receiving the radio frequency field of the NFC reader. However, the load modulation-related analog layer design of RFID tags is not always compatible with NFC specifications. In other words, when an NFC reader/writer communicates with an external RFID tag based on the NFC specification, the RFID tag often cannot meet the timing requirements of the NFC specification. For example, the actual time interval between the NFC reader's sending timing of the SENS_REQ message (poll message) and the RFID tag's return timing of the SENS_RES message (response of the polling message) is greater than the requirements of the NFC forum, in this case , the conflicting bit information between RFID tags and NFC tags that actually conflict with each other, or the conflicting bit information between multiple RFID tags that actually conflict with each other cannot be detected, and thus the multiple tags that conflict with each other cannot be detected. Recognition, the recognition reliability of external tags is poor.
下面将结合图2具体阐述本发明实施例的NFC标签识别方法,能够提高外部标签的识别可靠性。图2示出了本发明的一个实施例的NFC标签识别方法。图2的NFC标签识别方法可以用于作为轮询设备的NFC设备,包括:The NFC tag identification method of the embodiment of the present invention will be described in detail below with reference to FIG. 2 , which can improve the reliability of identification of external tags. Fig. 2 shows an NFC tag identification method according to an embodiment of the present invention. The NFC label identification method of Fig. 2 can be used for the NFC equipment as polling equipment, including:
S210:在根据NFC标签防冲突机制对外部标签中的上一标签的识别完成时,获取外部标签的当前标签冲突状态。S210: Obtain the current tag conflict state of the external tag when the identification of the last tag among the external tags according to the NFC tag anti-collision mechanism is completed.
应理解,在对外部标签中的上一标签进行识别之前,NFC设备可以通过冲突比特信息判断外部标签中存在标签冲突,并且开始利用NFC标签防冲突机制对冲突的各个标签进行识别,该上一标签为冲突的各个标签中首先被识别出的标签。具体而言,根据NFC标签防冲突机制对外部标签中的上一标签进行识别时,可以发送SDD_REQ消息,并且通过在SDD_REQ消息中设置相应的参数,识别上一标签。更具体地,在进行标签识别时,NFC设备会相继地针对具有冲突比特信息的各个比特位(冲突比特位)以轮询方式发送SDD_REQ消息,对于任一冲突比特位,SDD_REQ消息会指定该比特位上的比特信息,暂时避免比特信息冲突,以首先获得彼此冲突的多个标签中的一标签的完整标签信息,该标签即“上一标签”。换言之,通过这样的防冲突机制,在标签返回的标签信息的所有比特位都不具有冲突比特信息时,NFC设备能识别出该标签信息中的所有比特信息,从而识别出该标签(上一标签)。It should be understood that before identifying the previous label in the external label, the NFC device can judge that there is a label conflict in the external label through the conflict bit information, and start to use the NFC label anti-collision mechanism to identify each conflicting label. The tag is the first identified tag among the conflicting tags. Specifically, when the previous label among the external labels is identified according to the NFC label anti-collision mechanism, an SDD_REQ message can be sent, and the previous label can be identified by setting corresponding parameters in the SDD_REQ message. More specifically, when performing tag identification, the NFC device will successively send SDD_REQ messages in a polling manner for each bit with conflicting bit information (conflicting bits), and for any conflicting bit, the SDD_REQ message will specify the bit The bit information on the bit, to temporarily avoid bit information conflicts, so as to first obtain the complete label information of a label among the multiple labels that conflict with each other, this label is the "previous label". In other words, through such an anti-collision mechanism, when all bits of the tag information returned by the tag do not have conflicting bit information, the NFC device can identify all the bit information in the tag information, thereby identifying the tag (the previous tag ).
还应理解,外部标签的当前标签冲突状态可以为指示是否具有彼此冲突的标签的信息,例如,可以为指示是否具有冲突比特信息的信息。It should also be understood that the current tag conflict state of the external tag may be information indicating whether there are tags that conflict with each other, for example, may be information indicating whether there is conflicting bit information.
还应理解,可以发送标签唤醒请求(例如,NFC规范中的ALL_REQ消息)开始外部标签的本次冲突识别,标签唤醒请求用于对处于静默状态的所有标签(即,包括已识别的标签)执行唤醒,全部标签发现请求还可以用于在外部标签的当前识别结束后再次发起外部标签的冲突识别。It should also be understood that a tag wakeup request (for example, the ALL_REQ message in the NFC specification) can be sent to start this conflict identification of the external tag, and the tag wakeup request is used to execute all tags in the silent state (that is, including identified tags) The wake-up, all tag discovery request can also be used to re-initiate conflict identification of external tags after the current identification of external tags ends.
S220:若当前标签冲突状态指示当前未检测到外部标签中存在标签冲突,则向已识别的上一标签发送标签静默请求,标签静默请求用于使已完成识别的标签进入静默状态。S220: If the current tag conflict state indicates that no tag conflict is currently detected in the external tag, send a tag silence request to the previous tag that has been identified, and the tag silence request is used to make the tag that has been identified enter a silent state.
应理解,文中的标签静默请求能够使已完成识别的标签进入静默状态,具体而言,标签静默请求可以为NFC规范中的SLP_REQ消息,SLP_REQ消息是一种无需响应即可实现对已识别的上一标签的静默控制的消息。It should be understood that the tag silence request in this article can make the tag that has been identified enter the silent state. Specifically, the tag silence request can be the SLP_REQ message in the NFC specification. A tab's silent control message.
还应理解,可以判断当前标签冲突状态是否指示当前未检测到外部标签中 存在标签冲突,例如,可以根据指示当前标签冲突状态的信息是否包括检测到的任一冲突比特信息,判断是否检测到存在标签冲突,如果检测到任一冲突比特信息,则判断检测到存在标签冲突,如果未检测到任何冲突比特信息,则判断为未检测到存在标签冲突。It should also be understood that it may be determined whether the current label conflict state indicates that no label conflict is currently detected in the external label. Label collision, if any conflicting bit information is detected, it is judged that there is a label collision detected, and if no conflicting bit information is detected, it is judged that there is no label collision detected.
S230:发送标签发现请求,标签发现请求用于发现外部标签中未处于静默状态的标签。S230: Send a tag discovery request, where the tag discovery request is used to discover tags that are not in a silent state among the external tags.
应理解,文中的标签发现请求能够发现外部标签中未处于静默状态的标签,标签发现请求可以为NFC规范中的SENS_REQ消息。具体而言,SENS_REQ消息能够发现外部标签中未处于静默状态的标签,而不对已完成识别且处于静默状态的标签执行唤醒。换言之,可以认为处于静默状态的已完成识别的标签对标签发现请求没有响应。It should be understood that the tag discovery request herein can discover tags that are not in a silent state among the external tags, and the tag discovery request can be a SENS_REQ message in the NFC specification. Specifically, the SENS_REQ message can discover tags that are not in the silent state in the external tags, and do not perform wakeup on the tags that have been identified and are in the silent state. In other words, it can be considered that the identified tag in the silent state does not respond to the tag discovery request.
S240:若接收到当前标签对标签发现请求的响应,则根据NFC标签防冲突机制对当前标签进行识别。S240: If a response from the current tag to the tag discovery request is received, identify the current tag according to the NFC tag anti-collision mechanism.
应理解,接收到当前标签对标签发现请求的响应表明当前标签与先前识别到的标签不同,换言之,表明当前标签与先前识别的标签冲突。根据NFC标签防冲突机制对当前标签进行识别,可以将当前标签更新为上一标签进行识别,换言之,采用对上一标签进行识别的方式识别当前标签。It should be understood that receiving the current tag's response to the tag discovery request indicates that the current tag is different from the previously identified tag, in other words, indicates that the current tag conflicts with the previously identified tag. According to the NFC tag anti-collision mechanism to identify the current tag, the current tag can be updated to the previous tag for identification, in other words, the current tag is identified by identifying the previous tag.
具体而言,NFC设备在对实际上冲突的三个标签A(10101010)、B(10111010)和C(10101011)进行标签识别时,NFC设备检测到标签A和标签B之间的第4比特位的冲突比特信息0和1,判断标签A和标签B彼此冲突,而未检测到标签C与标签A或标签B之间的第8比特位的冲突比特信息,因此NFC设备开始彼此冲突的标签A和标签B中的一者的识别,NFC设备通过发送SDD_REQ消息,指定第4比特位为0,则首先检测出标签A,并且使标签A进入静默状态。然后,通过指定第4比特位为1,则检测出标签B(相当于文中的上一标签),至此完成了冲突比特位的冲突检测。在完成对标签B(相当于文中的“上一标签”)的识别后,常规流程认为不再有冲突比特信息。但是由于标签C与标签A之间的第8比特位的冲突无法检测到,当使标签B进入到静默状态之后,标签C由于未完成识别因而仍然能够对标签发现请求作出响应,因此发现了标签C,并且将标签C作为“上一标签”的下一标签(即,当前标签)进行识别。对标签C识别的方式可以采用常规的NFC标签防冲突机制,如果没有标签C具有冲突比特信息的其他标签,利用NFC标签防冲突 机制的流程会直接识别出标签C的标签信息。Specifically, when the NFC device performs tag identification on the three tags A (10101010), B (10111010) and C (10101011) that actually collide, the NFC device detects the 4th bit between tag A and tag B The conflict bit information of 0 and 1, it is judged that tag A and tag B collide with each other, but the conflict bit information of the 8th bit between tag C and tag A or tag B is not detected, so the NFC device starts tag A that conflicts with each other For the identification of one of the tags B, the NFC device sends the SDD_REQ message and specifies that the fourth bit is 0, then first detects the tag A, and makes the tag A enter the silent state. Then, by specifying the 4th bit as 1, the label B (equivalent to the previous label in the text) is detected, and the collision detection of the conflicting bits is completed so far. After completing the identification of label B (equivalent to the "previous label" in the text), the conventional process considers that there is no more conflicting bit information. However, since the 8th bit conflict between tag C and tag A cannot be detected, when tag B enters the silent state, tag C can still respond to the tag discovery request because it has not completed the identification, so the tag is found C, and identify label C as the next label (ie, the current label) of the "previous label". The conventional NFC tag anti-collision mechanism can be used to identify tag C. If there is no other tag with tag C that has conflicting bit information, the process of using the NFC tag anti-collision mechanism will directly identify the tag information of tag C.
在本发明实施例的方案中,接收到当前标签对标签发现请求的响应表明当前标签未处于静默状态,此外,已完成识别的标签均通过标签静默请求的指示而进入静默状态,进一步表明当前标签未完成识别,因而本发明实施例的方案能够在当前未检测到外部标签中存在标签冲突的情况下,对未完成识别的当前标签进行发现和识别,提高了外部标签的识别准确性和可靠性,避免了在诸如外部标签中未被检测到标签冲突而实际存在标签冲突等情况下,存在冲突的标签未能够全部被识别出来。In the solution of the embodiment of the present invention, receiving the response of the current tag to the tag discovery request indicates that the current tag is not in the silent state. In addition, the tags that have been identified all enter the silent state through the indication of the tag silent request, which further indicates that the current tag The identification is not completed, so the solution of the embodiment of the present invention can discover and identify the current label that has not completed the identification when no label conflict in the external label is currently detected, which improves the identification accuracy and reliability of the external label , avoiding that in the case of label conflicts that are not detected in external labels but actually exist, all conflicting labels cannot be identified.
换句话说,如果当前标签的标签信息与先前识别到的标签信息(例如,上一标签或者更早识别出的标签)相同,则当前标签会经由标签静默请求进入静默状态,而不会对标签发现请求作出响应,如果当前标签与先前识别到的标签不同,则当前标签与先前的标签属于实际彼此冲突的标签,因而尽管当前标签冲突状态指示当前未检测到外部标签中存在标签冲突,通过本发明实施例的方案当前标签仍然被发现,从而得到识别。In other words, if the tag information of the current tag is the same as that of a previously recognized tag (e.g., the previous tag or an earlier recognized tag), the current tag will enter the mute state via a tag silence request without any In response to a discovery request, if the current tag is different from the previously identified tag, then the current tag and the previous tag belong to tags that actually conflict with each other, so although the current tag conflict status indicates that no tag conflict is currently detected in the external tag, through this In the solution of the embodiment of the invention, the current tag is still found and thus identified.
应理解,在现有协议规定的防冲突机制中,在检测到外部标签中存在标签冲突时发送标签静默请求(例如,SLP_REQ消息),而本发明实施例的方案中,在未检测到外部标签中存在标签冲突时发送标签静默请求,而因此本发明方案中的标签静默请求与常规的标签静默请求的发送时机完全不同。It should be understood that in the anti-collision mechanism specified in the existing protocol, a label silence request (for example, an SLP_REQ message) is sent when a label conflict in an external label is detected, while in the solution of the embodiment of the present invention, when no external label is detected The label silence request is sent when there is a label conflict in the system, and therefore the sending timing of the label silence request in the solution of the present invention is completely different from that of a conventional label silence request.
此外,本发明实施例的标签识别方法中的标签静默请求和标签发现请求可以与常规的标签静默请求本身的作用一致,实现了对现有协议的后向兼容。In addition, the tag silence request and the tag discovery request in the tag identification method of the embodiment of the present invention can have the same function as the conventional tag silence request itself, which realizes backward compatibility with existing protocols.
此外,本发明实施例中的根据NFC标签防冲突机制对一标签进行识别的方式与现有协议规定的标签识别方式一致,实现了对现有协议的后向兼容。In addition, the method of identifying a tag according to the NFC tag anti-collision mechanism in the embodiment of the present invention is consistent with the tag identification method specified in the existing protocol, and realizes backward compatibility with the existing protocol.
作为本发明的另一实现方式,若未接收到所述当前标签对所述标签发现请求的响应,则结束所述外部标签的识别。由此,本实现方式对于标签冲突是否存在的判定,比当前标签冲突状态具有更加准确和可靠的判定标准。As another implementation manner of the present invention, if no response from the current tag to the tag discovery request is received, the identification of the external tag is ended. Therefore, this implementation has a more accurate and reliable criterion for judging whether there is a tag conflict than the current tag conflict status.
作为本发明的另一实现方式,若所述当前标签冲突状态指示当前未检测到所述外部标签中存在标签冲突,则向已识别的上一标签发送标签静默请求,包括:若所述当前标签冲突状态指示当前未检测到所述外部标签中存在标签冲突,则判断是否开始执行扩展标签识别;若为是,则向已识别的上一标签发送标签静默请求。在本实现方式中,扩展标签识别可以作为一种备选的选项,利用上述简单的配置实现了标签识别的灵活性。换言之,当需要较高的识别准确度和 可靠性时,可以使能扩展标签识别,当需要相对较低的识别准确度和可靠性时,可以去使能扩展标签识别。As another implementation of the present invention, if the current tag conflict state indicates that no tag conflict is currently detected in the external tag, then sending a tag silence request to the identified previous tag includes: if the current tag If the conflict status indicates that there is no label conflict detected in the external label, it is judged whether to start to perform extended label identification; if yes, a label silence request is sent to the previously identified label. In this implementation manner, extended tag identification can be used as an alternative option, and the flexibility of tag identification is realized by using the above simple configuration. In other words, when high recognition accuracy and reliability are required, extended tag recognition can be enabled, and when relatively low recognition accuracy and reliability are required, extended tag recognition can be disabled.
作为本发明的另一实现方式,若所述当前标签冲突状态指示当前未检测到所述外部标签中存在标签冲突,则向已识别的上一标签发送标签静默请求,还包括:若判断不执行所述扩展标签识别,则结束所述外部标签的识别。基于这样的配置,对当前标签实现了更可靠和更准确的判断。换言之,在提高了判断标签冲突的准确度和可靠性的同时,保证了标签识别的灵活性。As another implementation of the present invention, if the current label conflict status indicates that no label conflict is currently detected in the external label, then sending a label silence request to the previous identified label also includes: if it is judged not to execute The identification of the extended label ends the identification of the external label. Based on such a configuration, a more reliable and accurate judgment of the current label is realized. In other words, while improving the accuracy and reliability of judging label conflicts, the flexibility of label identification is guaranteed.
作为本发明的另一实现方式,标签识别方法还可以包括:利用所述当前标签更新所述上一标签。由于利用更新的手段循环执行标签识别流程,保证了每个标签的识别过程的简洁和一致性。此外,本实现方式还与常规的冲突检测循环流程实现更好的兼容。As another implementation manner of the present invention, the label identification method may further include: using the current label to update the previous label. Since the tag identification process is executed cyclically by means of updating, the brevity and consistency of the identification process of each tag are guaranteed. In addition, this implementation is also better compatible with the conventional conflict detection loop process.
作为本发明的另一实现方式,标签识别方法还可以包括:判断所述当前标签冲突状态是否指示当前未检测到所述外部标签中存在标签冲突。由此,实现了与常规的标签识别流程中的当前标签冲突状态判断步骤的兼容和匹配。As another implementation manner of the present invention, the tag identification method may further include: judging whether the current tag conflict state indicates that no tag conflict among the external tags is currently detected. Thus, the compatibility and matching with the current label conflict state judgment step in the conventional label identification process is realized.
作为本发明的另一实现方式,标签识别方法还可以包括:存储已识别的上一标签的标签信息。由此,存储已识别的上一标签的标签信息有利于后续基于识别到的标签信息进行相应的处理,例如,与该标签进行通信连接。本实现方式还实现了与常规的标签识别流程中的标签识别步骤的兼容和匹配。As another implementation manner of the present invention, the label identification method may further include: storing label information of the previous identified label. Therefore, storing the tag information of the last identified tag facilitates subsequent corresponding processing based on the identified tag information, for example, establishing a communication connection with the tag. This implementation also achieves compatibility and matching with the label identification step in the conventional label identification process.
作为本发明的另一实现方式,标签识别方法还可以包括:若接收到当前标签对所述标签发现请求的响应,则根据所述NFC标签防冲突机制对所述当前标签进行识别,包括:若接收到当前标签对所述标签发现请求的响应,则获取所述当前标签的响应中包括的配置信息;若所述配置信息指示所述当前标签支持所述NFC标签防冲突机制,则根据所述NFC标签防冲突机制对所述当前标签进行识别。本实现方式兼容和匹配了常规的标签识别流程中的配置参数支持的判断步骤。As another implementation of the present invention, the tag identification method may also include: if a response from the current tag to the tag discovery request is received, identifying the current tag according to the NFC tag anti-collision mechanism, including: if After receiving the response of the current tag to the tag discovery request, obtain the configuration information included in the response of the current tag; if the configuration information indicates that the current tag supports the NFC tag anti-collision mechanism, then according to the The NFC tag anti-collision mechanism identifies the current tag. This implementation is compatible with and matches the determination steps supported by the configuration parameters in the conventional label identification process.
图3为本发明的另一实施例的NFC标签识别方法的示意性交互图。图3示出了NFC设备、已识别冲突标签32和未识别冲突标签33之间的部分交互过程。应理解,基于图3示出的各个步骤,本示例的交互过程还可以包括更多或更少的部分,也可以包括替代的步骤。具体而言,图3示出了如下步骤:Fig. 3 is a schematic interaction diagram of an NFC tag identification method according to another embodiment of the present invention. FIG. 3 shows part of the interaction process between the NFC device, the identified conflicting tag 32 and the unidentified conflicting tag 33 . It should be understood that, based on the various steps shown in FIG. 3 , the interaction process in this example may also include more or less parts, and may also include alternative steps. Specifically, Figure 3 shows the following steps:
S301:轮询设备31(例如,NFC设备)确定已识别的冲突标签32的标识。具体而言,作为根据NFC标签防冲突机制的示例,NFC设备31可以向冲突标 签32发送SDD_REQ消息对冲突标签32进行识别。在得到冲突标签32之后可以存储已识别的冲突标签32的标识(标签信息的示例)。S301: The polling device 31 (for example, an NFC device) determines the identity of the identified conflicting tag 32 . Specifically, as an example according to the NFC tag anti-collision mechanism, the NFC device 31 may send an SDD_REQ message to the conflicting tag 32 to identify the conflicting tag 32. After conflicting tags 32 are obtained, identifications of identified conflicting tags 32 (an example of tag information) may be stored.
S302:NFC设备31未发现未识别的当前标签。具体而言,NFC设备31可以根据标签冲突状态判断是否检测到待识别的当前标签,标签冲突状态指示不存在冲突比特信息,NFC设备31判定未检测到待识别的当前标签。S302: The NFC device 31 does not find an unrecognized current tag. Specifically, the NFC device 31 may determine whether the current tag to be identified has been detected according to the tag conflict status. The tag conflict status indicates that there is no conflicting bit information, and the NFC device 31 determines that the current tag to be identified has not been detected.
S303:NFC设备31向已识别的冲突标签32发送标签静默请求。具体而言,NFC设备31可以响应上述判断结果发送SLP_REQ消息,SLP_REQ消息指示已识别的冲突标签32进入静默状态。S303: The NFC device 31 sends a tag silence request to the identified conflicting tag 32 . Specifically, the NFC device 31 may send an SLP_REQ message in response to the above judgment result, and the SLP_REQ message indicates that the identified conflicting tag 32 enters a silent state.
S304:NFC设备31发送标签发现请求。具体而言,NFC设备31发送SENS_REQ消息,SENS_REQ消息用于发现外部标签中未处于静默状态的标签。S304: The NFC device 31 sends a tag discovery request. Specifically, the NFC device 31 sends a SENS_REQ message, and the SENS_REQ message is used to find tags that are not in the silent state among the external tags.
S305:未识别的冲突标签33向NFC设备31发送标签发现请求的响应。具体而言,未识别的冲突标签33向NFC设备31发送SENS_RES消息,作为对SENS_REQ消息的响应。应理解,SENS_RES消息中可以包括目标标签是否支持冲突标签识别的配置参数。S305: The unidentified conflicting tag 33 sends a tag discovery request response to the NFC device 31 . Specifically, the unidentified conflicting tag 33 sends a SENS_RES message to the NFC device 31 as a response to the SENS_REQ message. It should be understood that the SENS_RES message may include configuration parameters of whether the target tag supports identification of conflicting tags.
S306:NFC设备31向未识别冲突标签33发送标签识别消息。具体而言,NFC设备31可以根据上述配置参数判断未识别冲突标签33支持冲突标签识别(采用轮询方式的面向比特的防冲突机制),并且向未识别冲突标签33发送指示继续进行标签识别的消息,例如,SDD_REQ消息。S306: The NFC device 31 sends a tag identification message to the unidentified conflicting tag 33 . Specifically, the NFC device 31 can judge that the unrecognized conflicting tag 33 supports conflicting tag identification (a bit-oriented anti-collision mechanism using polling mode) according to the above-mentioned configuration parameters, and send an instruction to the unidentified conflicting tag 33 to continue tag identification. Messages, for example, SDD_REQ messages.
图4为本发明的另一实施例的NFC标签识别方法的示意性流程图。Fig. 4 is a schematic flowchart of an NFC tag identification method according to another embodiment of the present invention.
S410:执行外部标签中的上一标签的识别。具体而言,可以发送指示进行标签识别的消息,以面向比特的NFC标签防冲突机制进行冲突标签识别。在完成上一标签的识别之后可以存储上一标签的标识。S410: Execute the identification of the last tag in the external tags. Specifically, a message indicating tag identification may be sent, and a bit-oriented NFC tag anti-collision mechanism is used to identify conflicting tags. The identification of the last tag may be stored after the identification of the last tag is completed.
S420:获取外部标签的当前标签冲突状态。具体而言,获取标签冲突状态的目的是判断是否有待识别的当前标签,以实现对常规的冲突标签识别流程的兼容。可以判断是否检测到外部标签的冲突比特信息,如果为是,则判断有待识别的当前标签,如果为否,则判断没有待识别的当前标签。S420: Obtain the current label conflict state of the external label. Specifically, the purpose of acquiring the tag conflict status is to determine whether there is a current tag to be identified, so as to achieve compatibility with the conventional conflicting tag identification process. It can be judged whether the conflicting bit information of the external tag is detected, if yes, it is judged that there is no current tag to be identified, and if not, it is judged that there is no current tag to be identified.
S430:若当前标签冲突状态指示未检测到待识别的当前标签,则向已识别的上一标签发送标签静默请求。具体而言,在根据标签冲突状态判断未检测到待识别的当前标签时,响应判断结果发送SLP_REQ消息,SLP_REQ消息指示已识别的上一标签进入静默状态。S430: If the current label conflict status indicates that no current label to be identified is detected, send a label silence request to the previous identified label. Specifically, when it is judged that the current tag to be identified is not detected according to the tag conflict status, an SLP_REQ message is sent in response to the judgment result, and the SLP_REQ message indicates that the last tag identified has entered the silent state.
S440:发送标签发现请求。具体而言,可以向未识别的冲突标签发送 SENS_REQ消息,SENS_REQ消息用于发现外部标签中未处于静默状态的标签。S440: Send a tag discovery request. Specifically, a SENS_REQ message may be sent to an unrecognized conflicting tag, and the SENS_REQ message is used to find a tag that is not in a silent state among the external tags.
S450:若接收到当前标签对标签发现请求的响应,则对当前标签进行识别。具体而言,当前标签可以向NFC设备返回SENS_RES消息,作为对SENS_REQ消息的响应。应理解,SENS_RES消息中可以包括目标标签是否支持冲突标签识别的配置参数。S450: If a response from the current tag to the tag discovery request is received, identify the current tag. Specifically, the current tag may return a SENS_RES message to the NFC device as a response to the SENS_REQ message. It should be understood that the SENS_RES message may include configuration parameters of whether the target tag supports identification of conflicting tags.
S460:利用待识别的当前标签更新未识别的上一标签。具体而言,采用上一标签的类似方式对当前标签进行标签识别。换言之,利用更新的手段循环执行冲突标签识别流程,例如,可以根据NFC标签防冲突机制对当前标签进行识别。S460: Utilize the current label to be recognized to update the unrecognized previous label. Specifically, label identification is performed on the current label in a similar manner to the previous label. In other words, the conflicting tag identification process is cyclically executed by means of updating, for example, the current tag can be identified according to the NFC tag anti-collision mechanism.
图5为本发明的另一实施例的NFC标签识别方法的示意性流程图。Fig. 5 is a schematic flowchart of an NFC tag identification method according to another embodiment of the present invention.
S501:在完成对未识别的上一标签的识别时,获取外部标签的当前标签冲突状态,然后执行S502。S501: Acquire the current label conflict status of the external label when the identification of the previous unidentified label is completed, and then execute S502.
S502:判断当前标签冲突状态是否指示未检测到标签冲突?如果为是,则执行S503;如果为否,则执行S504。S502: Determine whether the current label conflict state indicates that no label conflict is detected? If yes, execute S503; if no, execute S504.
S503:判断是否执行扩展标签识别?如果为是,则执行S505;如果为否,则执行S506。S503: Determine whether to perform extended label recognition? If yes, execute S505; if no, execute S506.
S504:利用待识别的当前标签更新未识别的上一标签,并且执行S501。S504: Utilize the current tag to be recognized to update the previous unrecognized tag, and execute S501.
S505:向已识别的上一标签发送标签静默请求,并且执行步骤S507。其中,标签静默请求指示已识别的上一标签进入静默状态。S505: Send a tag silence request to the identified last tag, and execute step S507. Wherein, the label silence request indicates that the last identified label enters the silence state.
S506:结束外部标签的识别。S506: End the identification of the external label.
S507:发送标签发现请求,并且执行步骤S508。应理解,标签发现请求用于发现外部标签中未处于静默状态的标签。S507: Send a tag discovery request, and execute step S508. It should be understood that the tag discovery request is used to discover tags that are not in a quiet state among the external tags.
S508:判断是否接收到当前标签对标签发现请求的响应,如果为是,则执行步骤S509;如果为否,则执行步骤S510。S508: Judging whether a response from the current tag to the tag discovery request has been received, if yes, execute step S509; if no, execute step S510.
S509:根据所述NFC标签防冲突机制对所述当前标签进行识别。S509: Identify the current tag according to the NFC tag anti-collision mechanism.
S510:判定不存在待识别的当前标签,并且结束外部标签的识别。S510: Determine that there is no current tag to be identified, and end the identification of the external tag.
图6为本发明的另一实施例的NFC标签识别装置的示意性框图。图6的NFC标签识别装置包括:Fig. 6 is a schematic block diagram of an NFC tag identification device according to another embodiment of the present invention. The NFC tag recognition device of Fig. 6 comprises:
获取模块610,在根据NFC标签防冲突机制对外部标签中的上一标签的识别完成时,获取所述外部标签的当前标签冲突状态。The acquiring module 610 acquires the current tag conflict state of the external tag when the identification of the last tag among the external tags according to the NFC tag anti-collision mechanism is completed.
第一发送模块620,若所述当前标签冲突状态指示当前未检测到所述外部 标签中存在标签冲突,则向已识别的上一标签发送标签静默请求,所述标签静默请求用于使已完成识别的标签进入静默状态。The first sending module 620, if the current label conflict state indicates that no label conflict is currently detected in the external label, then send a label silence request to the identified previous label, and the label silence request is used to make the completed Recognized tags are silenced.
第二发送模块630,发送标签发现请求,所述标签发现请求用于发现所述外部标签中未处于所述静默状态的标签。The second sending module 630 sends a tag discovery request, where the tag discovery request is used to discover tags that are not in the silent state among the external tags.
识别模块640,若接收到当前标签对所述标签发现请求的响应,则根据所述NFC标签防冲突机制对所述当前标签进行识别。The identifying module 640, if a response from the current tag to the tag discovery request is received, identifies the current tag according to the NFC tag anti-collision mechanism.
在本发明实施例的方案中,接收到当前标签对标签发现请求的响应表明当前标签未处于静默状态,此外,已完成识别的标签均通过标签静默请求的指示而进入静默状态,进一步表明当前标签未完成识别,因而本发明实施例的方案能够在当前未检测到外部标签中存在标签冲突的情况下,对未完成识别的当前标签进行发现和识别,提高了外部标签的识别准确性和可靠性,避免了在诸如外部标签中未被检测到标签冲突而实际存在标签冲突等情况下,存在冲突的标签未能够全部被识别出来。In the solution of the embodiment of the present invention, receiving the response of the current tag to the tag discovery request indicates that the current tag is not in the silent state. In addition, the tags that have been identified all enter the silent state through the indication of the tag silent request, which further indicates that the current tag The identification is not completed, so the solution of the embodiment of the present invention can discover and identify the current label that has not completed the identification when no label conflict in the external label is currently detected, which improves the identification accuracy and reliability of the external label , avoiding that in the case of label conflicts that are not detected in external labels but actually exist, all conflicting labels cannot be identified.
作为本发明的另一实现方式,第一发送模块具体用于:若所述当前标签冲突状态指示当前未检测到所述外部标签中存在标签冲突,则判断是否开始执行扩展标签识别;若为是,则向已识别的上一标签发送标签静默请求。As another implementation of the present invention, the first sending module is specifically configured to: if the current label conflict state indicates that no label conflict is currently detected in the external label, then judge whether to start performing extended label identification; if yes , a label silence request is sent to the previous identified label.
作为本发明的另一实现方式,识别模块具体用于:若接收到当前标签对所述标签发现请求的响应,则获取所述当前标签的响应中包括的配置信息;若所述配置信息指示所述当前标签支持所述NFC标签防冲突机制,则根据所述NFC标签防冲突机制对所述当前标签进行识别。As another implementation of the present invention, the identification module is specifically configured to: if a response from the current tag to the tag discovery request is received, obtain the configuration information included in the response of the current tag; if the configuration information indicates that the If the current tag supports the NFC tag anti-collision mechanism, the current tag is identified according to the NFC tag anti-collision mechanism.
作为本发明的另一实现方式,第一发送模块还用于:若判断不执行所述扩展标签识别,则结束所述外部标签的识别。As another implementation manner of the present invention, the first sending module is further configured to: end the identification of the external label if it is determined that the identification of the extended label is not to be performed.
作为本发明的另一实现方式,该装置还包括:更新模块,利用所述当前标签更新所述上一标签。As another implementation manner of the present invention, the device further includes: an update module, configured to use the current label to update the previous label.
作为本发明的另一实现方式,该装置还包括:判断模块,判断所述当前标签冲突状态是否指示当前未检测到所述外部标签中存在标签冲突。As another implementation manner of the present invention, the device further includes: a judging module, judging whether the current tag conflict state indicates that no tag conflict among the external tags is currently detected.
作为本发明的另一实现方式,识别模块还用于:若未接收到所述当前标签对所述标签发现请求的响应,则结束所述外部标签的识别。As another implementation manner of the present invention, the identification module is further configured to: if no response from the current tag to the tag discovery request is received, end the identification of the external tag.
本实施例的装置用于实现前述多个方法实施例中相应的方法,并具有相应的方法实施例的有益效果,在此不再赘述。此外,本实施例的装置中的各个模块的功能实现均可参照前述方法实施例中的相应部分的描述,在此亦不再赘述。The device of this embodiment is used to implement the corresponding methods in the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, so details are not repeated here. In addition, for the function implementation of each module in the apparatus of this embodiment, reference may be made to the description of corresponding parts in the foregoing method embodiments, and details are not repeated here.
图7为本发明的另一实施例的电子设备的示意性框图。图7的电子设备包括:至少一个处理器(processor)702、存储器(memory)704、总线706及通信接口(Communications Interface)708。Fig. 7 is a schematic block diagram of an electronic device according to another embodiment of the present invention. The electronic device in FIG. 7 includes: at least one processor (processor) 702, a memory (memory) 704, a bus 706, and a communication interface (Communications Interface) 708.
其中:处理器702、通信接口708、以及存储器704通过通信总线706完成相互间的通信。Wherein: the processor 702 , the communication interface 708 , and the memory 704 communicate with each other through the communication bus 706 .
通信接口708,用于与其它设备或部件进行通信。The communication interface 708 is used for communicating with other devices or components.
处理器702,用于执行程序710,具体可以执行上述所描述的方法中的相关步骤。The processor 702 is configured to execute the program 710, specifically, may execute relevant steps in the methods described above.
具体地,程序710可以包括程序代码,该程序代码包括计算机操作指令。Specifically, the program 710 may include program codes including computer operation instructions.
处理器702可能是中央处理器CPU,或者是特定集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本发明实施例的一个或多个集成电路。电子设备包括的一个或多个处理器,可以是同一类型的处理器,如一个或多个CPU;也可以是不同类型的处理器,如一个或多个CPU以及一个或多个ASIC。The processor 702 may be a central processing unit CPU, or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the electronic device may be of the same type, such as one or more CPUs, or may be different types of processors, such as one or more CPUs and one or more ASICs.
所述存储器用于存放程序。所述存储器可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The memory is used to store programs. The memory may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
本发明实施例的NFC设备可以为配置有NFC功能的各种设备,包括但不限于:The NFC device in the embodiment of the present invention can be configured with various devices with NFC functions, including but not limited to:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。(1) Mobile communication equipment: This type of equipment is characterized by mobile communication functions, and its main goal is to provide voice and data communication. Such terminals include: smart phones (such as iPhone), multimedia phones, feature phones, and low-end phones.
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。(2) Ultra-mobile personal computer equipment: This type of equipment belongs to the category of personal computers, with computing and processing functions, and generally also has the characteristics of mobile Internet access. Such terminals include: PDA, MID and UMPC equipment, such as iPad.
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。(3) Portable entertainment equipment: This type of equipment can display and play multimedia content. Such devices include: audio and video players (such as iPod), handheld game consoles, e-books, as well as smart toys and portable car navigation devices.
(4)其他具有数据交互功能的电子设备。(4) Other electronic devices with data interaction functions.
至此,已经对本主题的特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作可以按照不同的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要 求示出的特定顺序或者连续顺序,以实现期望的结果。在某些实施方式中,多任务处理和并行处理可以是有利的。So far, specific embodiments of the subject matter have been described. Other implementations are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In certain implementations, multitasking and parallel processing may be advantageous.
在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, the improvement of a technology can be clearly distinguished as an improvement in hardware (for example, improvements in circuit structures such as diodes, transistors, and switches) or improvements in software (improvement in method flow). However, with the development of technology, the improvement of many current method flows can be regarded as the direct improvement of the hardware circuit structure. Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by hardware physical modules. For example, a programmable logic device (Programmable Logic Device, PLD) (such as a field programmable gate array (Field Programmable Gate Array, FPGA)) is such an integrated circuit, the logic function of which is determined by the user's programming of the device. It is programmed by the designer to "integrate" a digital system on a PLD, instead of asking a chip manufacturer to design and make a dedicated integrated circuit chip. Moreover, nowadays, instead of making integrated circuit chips by hand, this kind of programming is mostly realized by "logic compiler (logic compiler)" software, which is similar to the software compiler used when program development and writing, but before compiling The original code of the computer must also be written in a specific programming language, which is called a hardware description language (Hardware Description Language, HDL), and there is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language) , AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., are currently the most commonly used The most popular are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. It should also be clear to those skilled in the art that only a little logical programming of the method flow in the above-mentioned hardware description languages and programming into an integrated circuit can easily obtain a hardware circuit for realizing the logic method flow.
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序 代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller may be implemented in any suitable way, for example the controller may take the form of a microprocessor or processor and a computer readable medium storing computer readable program code (such as software or firmware) executable by the (micro)processor , logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers and embedded microcontrollers, examples of controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, the memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that, in addition to realizing the controller in a purely computer-readable program code mode, it is entirely possible to make the controller use logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded The same function can be realized in the form of a microcontroller or the like. Therefore, such a controller can be regarded as a hardware component, and the devices included in it for realizing various functions can also be regarded as structures within the hardware component. Or even, means for realizing various functions may be regarded as a structure within both a software module realizing a method and a hardware component.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The systems, devices, modules, or units described in the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementing device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or Combinations of any of these devices.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本发明时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above devices, functions are divided into various units and described separately. Of course, when implementing the present invention, the functions of each unit can be implemented in one or more pieces of software and/or hardware.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理, 从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, whereby the The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器Memory may include non-permanent memory in computer readable media, random access memory
(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。(RAM) and/or non-volatile memory such as read-only memory (ROM) or flash RAM. Memory is an example of computer readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes Other elements not expressly listed, or elements inherent in the process, method, commodity, or apparatus are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
本领域技术人员应明白,本发明的实施例可提供为方法、系统或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定事务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本 发明,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行事务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular transactions or implement particular abstract data types. The invention can also be practiced in distributed computing environments where transactions are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, as for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the related parts, please refer to the part of the description of the method embodiment.
以上所述仅为本发明的实施例而已,并不用于限制本发明。对于本领域技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本发明的权利要求范围之内。The above descriptions are only examples of the present invention, and are not intended to limit the present invention. Various modifications and variations of the present invention will occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the scope of the claims of the present invention.

Claims (10)

  1. 一种近场通信NFC标签识别方法,其特征在于,包括:A near-field communication NFC label identification method is characterized in that, comprising:
    在根据NFC标签防冲突机制对外部标签中的上一标签的识别完成时,获取所述外部标签的当前标签冲突状态;When the identification of the previous label in the external label according to the NFC label anti-collision mechanism is completed, the current label conflict state of the external label is obtained;
    若所述当前标签冲突状态指示当前未检测到所述外部标签中存在标签冲突,则向已识别的上一标签发送标签静默请求,所述标签静默请求用于使已完成识别的标签进入静默状态;If the current label conflict status indicates that no label conflict is currently detected in the external label, a label silence request is sent to the previous identified label, and the label silence request is used to make the identified label enter a silent state ;
    发送标签发现请求,所述标签发现请求用于发现所述外部标签中未处于所述静默状态的标签;sending a tag discovery request, where the tag discovery request is used to discover tags that are not in the silent state among the external tags;
    若接收到当前标签对所述标签发现请求的响应,则根据所述NFC标签防冲突机制对所述当前标签进行识别。If the response of the current tag to the tag discovery request is received, the current tag is identified according to the NFC tag anti-collision mechanism.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    利用所述当前标签更新所述上一标签。Utilizing the current label to update the previous label.
  3. 根据权利要求1所述的方法,其特征在于,所述若接收到当前标签对所述标签发现请求的响应,则根据所述NFC标签防冲突机制对所述当前标签进行识别,包括:The method according to claim 1, wherein if the response of the current tag to the tag discovery request is received, identifying the current tag according to the NFC tag anti-collision mechanism includes:
    若接收到当前标签对所述标签发现请求的响应,则获取所述当前标签的响应中包括的配置信息;If a response from the current tag to the tag discovery request is received, acquiring configuration information included in the response of the current tag;
    若所述配置信息指示所述当前标签支持所述NFC标签防冲突机制,则根据所述NFC标签防冲突机制对所述当前标签进行识别。If the configuration information indicates that the current tag supports the NFC tag anti-collision mechanism, then identify the current tag according to the NFC tag anti-collision mechanism.
  4. 根据权利要求1所述的方法,其特征在于,所述若所述当前标签冲突状态指示当前未检测到所述外部标签中存在标签冲突,则向已识别的上一标签发送标签静默请求,包括:The method according to claim 1, wherein if the current label conflict status indicates that no label conflict is currently detected in the external label, sending a label silence request to the identified last label includes :
    若所述当前标签冲突状态指示当前未检测到所述外部标签中存在标签冲突,则判断是否开始执行扩展标签识别;If the current label conflict state indicates that no label conflict is currently detected in the external label, it is judged whether to start to perform extended label identification;
    若为是,则向已识别的上一标签发送标签静默请求。If yes, send a tag silence request to the last tag identified.
  5. 根据权利要求4所述的方法,其特征在于,所述若所述当前标签冲突状态指示当前未检测到所述外部标签中存在标签冲突,则向已识别的上一标签发送标签静默请求,还包括:The method according to claim 4, wherein if the current label conflict state indicates that no label conflict is currently detected in the external label, a label silence request is sent to the identified previous label, and include:
    若判断不执行所述扩展标签识别,则结束所述外部标签的识别。If it is determined that the identification of the extended label is not to be performed, the identification of the external label is ended.
  6. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    判断所述当前标签冲突状态是否指示当前未检测到所述外部标签中存在标 签冲突。Judging whether the current label conflict state indicates that no label conflict is currently detected in the external label.
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    若未接收到所述当前标签对所述标签发现请求的响应,则结束所述外部标签的识别。If no response from the current tag to the tag discovery request is received, the identification of the external tag is ended.
  8. 一种NFC标签识别装置,其特征在于,包括:A kind of NFC tag identification device, is characterized in that, comprises:
    获取模块,在根据NFC标签防冲突机制对外部标签中的上一标签的识别完成时,获取所述外部标签的当前标签冲突状态;The acquisition module acquires the current tag conflict state of the external tag when the identification of the previous tag in the external tag is completed according to the NFC tag anti-collision mechanism;
    第一发送模块,若所述当前标签冲突状态指示当前未检测到所述外部标签中存在标签冲突,则向已识别的上一标签发送标签静默请求,所述标签静默请求用于使已完成识别的标签进入静默状态;The first sending module, if the current tag conflict state indicates that no tag conflict is currently detected in the external tag, then send a tag silence request to the previous identified tag, and the tag silence request is used to make the identification completed The label of the goes into silent state;
    第二发送模块,发送标签发现请求,所述标签发现请求用于发现所述外部标签中未处于所述静默状态的标签;The second sending module sends a tag discovery request, where the tag discovery request is used to discover tags that are not in the silent state among the external tags;
    识别模块,若接收到当前标签对所述标签发现请求的响应,则根据所述NFC标签防冲突机制对所述当前标签进行识别。The identifying module, if a response from the current tag to the tag discovery request is received, identifies the current tag according to the NFC tag anti-collision mechanism.
  9. 一种NFC设备,其特征在于,包括:A kind of NFC device, is characterized in that, comprises:
    至少一个处理器、存储器、总线及通信接口,其中,所述存储器中存储有程序,所述处理器、所述通信接口以及所述存储器通过所述通信总线完成相互间的通信,所述通信接口用于与其它设备或部件进行通信,所述处理器执行所述程序,以实现:根据权利要求1-7所述的方法。At least one processor, memory, bus, and communication interface, wherein the memory stores programs, the processor, the communication interface, and the memory complete mutual communication through the communication bus, and the communication interface For communicating with other devices or components, the processor executes the program to implement: the method according to claims 1-7.
  10. 一种计算机存储介质,其特征在于,所述计算机存储介质包括存储的程序,其中,在所述程序运行时控制包括所述存储介质的设备执行根据权利要求1-7中任一项所述的方法。A computer storage medium, characterized in that the computer storage medium includes a stored program, wherein when the program is running, the device including the storage medium is controlled to execute the method according to any one of claims 1-7. method.
PCT/CN2022/091820 2021-07-20 2022-05-10 Nfc tag identification method and apparatus, nfc device and storage medium WO2023000774A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110820786.1A CN113553870B (en) 2021-07-20 2021-07-20 NFC tag identification method and device, NFC equipment and storage medium
CN202110820786.1 2021-07-20

Publications (1)

Publication Number Publication Date
WO2023000774A1 true WO2023000774A1 (en) 2023-01-26

Family

ID=78103519

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/091820 WO2023000774A1 (en) 2021-07-20 2022-05-10 Nfc tag identification method and apparatus, nfc device and storage medium

Country Status (2)

Country Link
CN (1) CN113553870B (en)
WO (1) WO2023000774A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113553870B (en) * 2021-07-20 2022-09-27 深圳市汇顶科技股份有限公司 NFC tag identification method and device, NFC equipment and storage medium
CN115379049A (en) * 2022-08-19 2022-11-22 Oppo广东移动通信有限公司 Near field communication interaction method, terminal, near field communication chip and terminal shell

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103489016A (en) * 2013-08-26 2014-01-01 广西南宁市东森动力信息科技有限公司 RFID anti-collision read-write device and control method thereof
CN105099514A (en) * 2014-05-07 2015-11-25 意法半导体国际有限公司 Method for discovering a plurality of NFC-B devices by a NFC-B reader and corresponding NFC-B reader
CN107491795A (en) * 2016-06-13 2017-12-19 摩托罗拉移动有限责任公司 Silent RFID states and recovery
US20190156074A1 (en) * 2017-11-23 2019-05-23 Imec Taiwan Co. RFID Reader and Method for Anti-Collision in a Multi-Tag RFID System
CN113553870A (en) * 2021-07-20 2021-10-26 深圳市汇顶科技股份有限公司 NFC tag identification method and device, NFC equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130201007A1 (en) * 2012-02-02 2013-08-08 Qualcomm Incorporated Methods and apparatus for improving resolution among devices with different size nfc identifiers
US9374134B2 (en) * 2012-02-02 2016-06-21 Qualcomm Incorporated Methods and apparatus for improving the identification of multiple NFC-A devices
US9094049B2 (en) * 2012-04-10 2015-07-28 Qualcomm Incorporated Methods and apparatus for improving device activition among a plurality of NFC devices that support type a RF technology
CN103077417B (en) * 2013-01-31 2016-07-06 北京工业大学 RFID tag read method towards mass data
EP2770755B1 (en) * 2013-02-21 2017-04-05 OCT Circuit Technologies International Limited Near field communication tag type identification
EP2801930B1 (en) * 2013-05-09 2016-07-27 ST-Ericsson SA A near field communication reader adapted for NFC A anti collision and a method of NFC A anti collision
CN104331679B (en) * 2014-11-17 2017-03-08 盐城工学院 A kind of RFID tag anti-collision method based on physical-layer network coding

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103489016A (en) * 2013-08-26 2014-01-01 广西南宁市东森动力信息科技有限公司 RFID anti-collision read-write device and control method thereof
CN105099514A (en) * 2014-05-07 2015-11-25 意法半导体国际有限公司 Method for discovering a plurality of NFC-B devices by a NFC-B reader and corresponding NFC-B reader
CN107491795A (en) * 2016-06-13 2017-12-19 摩托罗拉移动有限责任公司 Silent RFID states and recovery
US20190156074A1 (en) * 2017-11-23 2019-05-23 Imec Taiwan Co. RFID Reader and Method for Anti-Collision in a Multi-Tag RFID System
CN113553870A (en) * 2021-07-20 2021-10-26 深圳市汇顶科技股份有限公司 NFC tag identification method and device, NFC equipment and storage medium

Also Published As

Publication number Publication date
CN113553870B (en) 2022-09-27
CN113553870A (en) 2021-10-26

Similar Documents

Publication Publication Date Title
WO2023000774A1 (en) Nfc tag identification method and apparatus, nfc device and storage medium
US8060012B2 (en) Method and apparatus for automatic near field communication application selection in an electronic device
US7471200B2 (en) RFID optimized capability negotiation
US11031011B2 (en) Electronic device and method for determining electronic device to perform speech recognition
EP2106108A1 (en) Method and apparatus for automatic application selection in an electronic device using multiple discovery managers
CN107657448B (en) Account creating method, account recharging method, data synchronizing method and equipment
JP2008536431A (en) Improved transponder
US9514067B2 (en) Interface arbitration for a wired tag
US9055432B2 (en) Targeted muting for communication between electronic appliances
EP1855230B1 (en) System and method for communications establishment
KR102624022B1 (en) Communication devices and methods
US11379458B2 (en) Electronic device and data management method thereof
KR20090087427A (en) Rfid communication method
US20180324587A1 (en) Authentication system, recording medium having recorded therein computer program controlling authentication system, and reader for use in authentication system
EP3909395B1 (en) Method for expanding wireless communication and electronic device therefor
JP2006350636A (en) Ic tag, reader/writer, and communication method and communication system using them
US20230056827A1 (en) Method and device for nft-based software
US20220326964A1 (en) Processor for initializing model file of application and electronic device including the same
CN113438638B (en) Communication control method and electronic equipment
US11671834B2 (en) Electronic device for transmitting/receiving data and method thereof
JP2019022000A (en) Wireless tag reading device and program
CN108388819B (en) Anti-collision method, device and system based on ultrahigh frequency rfid transponder
US20140077935A1 (en) Apparatus and method for providing data transmission/reception in a terminal using near field communication
JP2015125627A (en) Ic card and mobile electronic device
US20220300333A1 (en) Electronic device including multi processor and method for operating the same

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22844941

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE