Detection circuit and method for radio frequency identification tagTechnical Field
The present application relates to the field of radio frequency identification technologies, and in particular, to a circuit and a method for detecting a radio frequency identification tag.
Background
Radio Frequency Identification (RFID) is one of automatic Identification technologies, and performs contactless bidirectional data communication in a Radio Frequency manner, and reads and writes a recording medium (an electronic tag or a Radio Frequency card) in a Radio Frequency manner, thereby achieving the purposes of identifying a target and exchanging data.
In the prior art, an RFID tag is usually attached to an article, and an RFID reader performs a read/write operation on the RFID tag to identify and manage the article. However, when the RFID tag is torn off from the article, since the RFID reader may still perform the read-write operation on the RFID tag, and further it is not found that the RFID tag is torn off, the position of the RFID tag identified at this time is no longer the position where the article really is, and a vulnerability may occur in the supervision of the article, so that other people may easily steal the article.
Disclosure of Invention
Based on the above deficiencies of the prior art, the present application provides a circuit and a method for detecting a radio frequency identification tag, so as to detect whether the radio frequency identification tag is torn off.
In order to achieve the above object, the following solutions are proposed:
the first aspect of the present application discloses a detection circuit for a radio frequency identification tag, comprising:
the detection unit is connected with a power supply, a label to be detected is pasted on a connecting line of the detection unit and the power supply, and a contact surface of the label to be detected, which is used for being in contact with the connecting line, is made of a conductor material; the detection unit is used for detecting the current on the connecting line and generating a voltage signal when the current value of the connecting line fluctuates;
the conversion unit is connected with the detection unit and is used for receiving the voltage signal and converting the voltage signal into a logic signal, and the logic signal belongs to a signal which can be identified and processed by a central processing unit;
and the central processing unit is connected with the conversion unit and used for determining that the label to be detected is separated from the connecting line when the logic signal is received.
Optionally, in the detection circuit of the radio frequency identification tag, the central processing unit is further configured to:
if the label to be detected is determined to be separated from the connecting line, generating an alarm signal; wherein the alarm signal is used for prompting that the label to be detected is torn away from the article currently.
Optionally, in the detection circuit of the radio frequency identification tag, the central processing unit is further configured to:
if the label to be detected is identified to be separated from the connecting line, controlling the label to be detected not to send out a radio frequency signal any more; and the radio frequency signal carries the identification information of the label to be detected.
Optionally, in the detection circuit of the rfid tag, when the central processing unit receives the logic signal and determines that the tag to be detected is separated from the connection line, the central processing unit is configured to:
when the logic signals are received, judging whether the values of the logic signals are all in a state of being larger than or equal to a preset value within a preset time period;
and if the values of the logic signals are all in a state of being larger than or equal to the preset value in the preset time period, determining that the label to be detected is separated from the connecting line.
Optionally, in the detection circuit of the radio frequency identification tag, the central processing unit is further configured to:
calculating to obtain coordinate information of the to-be-detected label according to the coordinate information of the base stations and the distance information from the to-be-detected label to each base station; and for each base station, the distance information between the tag to be detected and the base station is obtained according to the strength of the radio frequency signal of the tag to be detected received by the base station.
Optionally, in the detection circuit of the rfid tag, the detection unit includes:
a primary coil and a secondary coil; wherein: the primary coil is connected with the power supply; the secondary coil is connected with the conversion unit.
Optionally, in the detection circuit of the rfid tag, the conversion unit includes: a sensor.
The second aspect of the present application discloses a method for detecting a radio frequency identification tag, comprising:
the detection unit connected with the power supply detects the current on the connecting line and generates a voltage signal when the current value of the connecting line fluctuates; a label to be detected is pasted on a connecting circuit of the detection unit and the power supply, and a contact surface of the label to be detected, which is used for being in contact with the connecting circuit, is made of a conductor material;
the conversion unit receives the voltage signal and converts the voltage signal into a logic signal; wherein the logic signal belongs to a signal which can be identified and processed by a central processing unit;
and when the central processing unit receives the logic signal, the central processing unit determines that the label to be detected is separated from the connecting line.
Optionally, in the method for detecting a radio frequency identification tag, after the central processing unit determines that the tag to be detected is separated from the connection line when receiving the logic signal, the method further includes:
if the label to be detected is determined to be separated from the connecting line, generating an alarm signal; wherein the alarm signal is used for prompting that the label to be detected is torn away from the article currently.
Optionally, in the method for detecting a radio frequency identification tag, when the central processing unit receives the logic signal, determining that the tag to be detected is separated from the connection line includes:
when the logic signals are received, judging whether the values of the logic signals are all in a state of being larger than or equal to a preset value within a preset time period;
and if the values of the logic signals are all in a state of being larger than or equal to the preset value in the preset time period, determining that the label to be detected is separated from the connecting line.
Optionally, in the method for detecting a radio frequency identification tag, after the central processing unit determines that the tag to be detected is separated from the connection line when receiving the logic signal, the method further includes:
calculating to obtain coordinate information of the to-be-detected label according to the coordinate information of the base stations and the distance information from the to-be-detected label to each base station; and for each base station, the distance information between the tag to be detected and the base station is obtained according to the strength of the radio frequency signal of the tag to be detected received by the base station.
According to the technical scheme, in the detection circuit of the radio frequency identification tag, the detection unit and the power supply are connected through the connecting line, the tag to be detected is pasted on the connecting line, the contact surface, used for being in contact with the connecting line, of the tag to be detected is made of the conductor material, the detection unit connected with the power supply can detect current on the connecting line, and when the current value of the connecting line fluctuates, a voltage signal is generated. Therefore, when the label to be detected is separated from the connecting line, the current value of the connecting line fluctuates, and the detection unit further generates a voltage signal. The conversion unit connected with the detection unit receives the voltage signal and converts the voltage signal into a logic signal, and the central processing unit can further determine that the label to be detected is separated from the connecting line when receiving the logic signal, so that the detection of whether the label to be detected is separated from the connecting line is realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a detection circuit of a radio frequency identification tag according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a position relationship between a tag to be detected and a base station according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a method for detecting a radio frequency identification tag according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of a verification method for separating a tag to be detected from a connection line according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, an embodiment of the present application discloses a detection circuit 100 for a radio frequency identification tag, which specifically includes: a detection unit 101 connected to a power supply, a conversion unit 102 connected to the detection unit 101, and a central processing unit 103 connected to the conversion unit 102.
And a power supply connection detection unit 101 for detecting the current on the connection line and generating a voltage signal when the current value fluctuation occurs in the connection line. A label to be detected is pasted on a connecting line of the detection unit 101 and the power supply U, and a contact surface of the label to be detected, which is used for being in contact with the connecting line, is made of a conductor material.
Because the contact surface of the label to be detected in contact with the connecting circuit is made of a conductor material, when the label to be detected is stuck on the connecting circuit, current can flow through the label to be detected. When the tag to be detected is separated from the connection circuit, the overall resistance of the internal circuit of the detection unit 101 changes, the current in the connection circuit no longer flows through the tag to be detected, and the current value on the connection circuit of the detection unit 101 fluctuates, so that a voltage signal can be generated. Specifically, after the tag to be detected is separated from the connection line, the current value on the connection line is decreased or increased, and the detection unit 101 generates a voltage signal due to the detection of the fluctuation of the current value. When the tag to be detected is always on the connection line, the current value on the connection line theoretically does not fluctuate, so that the fluctuation of the current value cannot be detected when the detection unit 101 detects the current on the connection line, and further, a voltage signal cannot be generated.
When the label to be detected is applied to a scene of article management, the label to be detected is not only pasted on a connecting line, but also pasted on a corresponding article. Specifically, the identification information of the article corresponding to the tag to be detected may be written into the tag to be detected, and the RFID reader performs read-write operation on the tag to be detected, so as to perform identification management on the article corresponding to the tag to be detected.
Optionally, with continued reference to fig. 1, in an embodiment of the present application, the detecting unit 101 includes:
a primary coil L1 and a secondary coil L2, wherein the primary coil L1 is connected to the power source U and the secondary coil L2 is connected to the switching unit 102.
When the tag to be detected is connected to a power supply and a circuit where the primary coil is located, since a contact surface of the tag to be detected, which is in contact with the connecting line, is made of a conductor material, when the tag to be detected is attached to the connecting line, the tag to be detected and the conductor of the connecting line at the position where the tag to be detected is attached are connected in parallel, that is, when the tag to be detected is attached to the connecting line, the resistance value of the connecting line at the position where the tag to be detected is attached is reduced, and when the tag to be detected is separated from the connecting line, the resistance value of the portion where the tag to be detected is attached is originally is increased, so that the current value in the connecting line is increased, that is, the current value in the primary coil L is increased, and the secondary coil L, which is mutually inductive electromotive force (i.e., a voltage signal), is generated when the current in the primary coil L1 changes.
A conversion unit 102 connected to the detection unit 101 for receiving the voltage signal and converting it into a logic signal, which belongs to a signal that can be recognized and processed by the central processing unit 103.
Since the voltage signal is an analog voltage signal and cannot be recognized and processed by the cpu 103, it is necessary to convert the voltage signal into a logic signal that can be processed by the cpu 103. The central processing unit 103 is a device capable of performing data processing, such as a single chip, a programmable gate array, a processor, and the like.
Alternatively, in a specific embodiment of the present application, the converting unit 102 may be a sensor. For example, it may be a voltage sensor, which converts the voltage signal output by the detection unit 101 into a dc voltage signal (i.e., logic signal) output in a linear proportion. Then, the voltage is inputted into the cpu 103, and the cpu 103 performs analog-to-digital conversion on the dc voltage signal to process the dc voltage signal into a digital voltage signal.
And the central processing unit 103 is connected with the conversion unit 102 and is used for determining that the label to be detected is separated from the connecting line when the logic signal is received.
When the tag to be detected is not separated from the connection line, the central processing unit 103 does not receive the logic signal, and when the tag to be detected is separated from the connection line, the central processing unit 103 receives the logic signal, and thus it can be determined that the tag to be detected is separated from the connection line. Because the label to be detected is not adhered to the corresponding article and the connecting circuit when being torn off, when the label to be detected is separated from the connecting circuit, the label to be detected is also separated from the corresponding article.
In the prior art, when the tag to be detected is torn off from an article, the RFID reader still can perform read-write operation on the tag to be detected, so that the tag to be detected is not found to be torn off, the position of the tag to be detected identified by the tag to be detected is not the position where the article is really located, and the article is monitored to cause a leak, so that other people can steal the article easily.
In this embodiment, the central processing unit 103 can determine whether the to-be-detected label is separated from the connection line by determining whether the to-be-detected label is torn off from the corresponding article.
Optionally, in a specific embodiment of the present application, when the central processing unit 103 determines that the tag to be detected is separated from the connection line when receiving the logic signal, the central processing unit is configured to:
and when the logic signals are received, judging whether the values of the logic signals are all in a state of being larger than or equal to a preset value in a preset time period. And if the values of the logic signals are all in a state of being larger than or equal to a preset value in a preset time period, determining that the label to be detected is separated from the connecting line.
The detection unit only outputs a voltage signal when the current value of the connecting line fluctuates, and then the conversion unit converts the voltage signal into a logic signal which is received by the central processing unit. Under the general condition, only when the label of waiting to detect separates from the connecting wire, the current value of connecting wire just can fluctuate, however in practical application, probably because reasons such as signal interference, perhaps extrusion label of waiting to detect for the detecting element has exported voltage signal, and then has made central processing unit receive logic signal.
Therefore, in order to verify whether the received logic signal is generated by current value fluctuation caused by separation of the tag to be detected from the connecting line, it is necessary to determine whether the values of the logic signal are all in a state of being greater than or equal to a preset value within a preset time period. The preset value and the preset time period can be obtained through multiple experiments.
In particular, the value of the logic signal generated when the tag to be detected separates from the connection line, and the time during which the logic signal is at that value, can be tested multiple times. And determining the preset value of the logic signal by recording the values of the logic signal for a plurality of times. And determining a preset time period by recording the logic signal duration time for multiple times. If the logic signal is an interference signal or a signal generated by squeezing the tag to be detected, most of the values of the signal do not exceed a preset value and the occurring time does not reach the time of a preset time period, so that whether the logic signal is the interference signal or the signal generated by squeezing the tag to be detected can be detected by judging whether the values of the logic signal are all in a state of being greater than or equal to the preset value in the preset time period. If the values of the logic signals are not all in a state of being greater than or equal to a preset value within a preset time period, the logic signals are not signals generated due to current value fluctuation caused by separation of the to-be-detected label from the connecting line. If the values of the logic signals are all in a state of being larger than or equal to the preset value in the preset time period, the logic signals are considered to be generated due to current value fluctuation caused by the separation of the to-be-detected label from the connecting line, and therefore the fact that the to-be-detected label is separated from the connecting line can be determined.
It should be noted that there are many ways to check whether the logic signal is generated by current value fluctuation caused by separation of the tag to be detected from the connection line, and it is possible to continuously analyze the rule of the acquired logic signal through the results of multiple experiments, perform data analysis on whether the acquired logic signal is generated by separation of the tag to be detected from the connection line, and then establish multiple analysis rules to check the logic signal. And if and only if the logic signal meets the established analysis rule, determining that the label to be detected is separated from the connecting line. There are many rules for analyzing the logic signal, and the state where the value of the logic signal is greater than or equal to the preset value in the preset time period may be only one of the rules, and the rule for analyzing the logic signal includes but is not limited to what is proposed in the embodiments of the present application.
Optionally, in a specific embodiment of the present application, the central processing unit 103 may further be configured to:
and if the label to be detected is identified to be separated from the connecting line, controlling the label to be detected not to send out the radio frequency signal any more.
The radio frequency signal carries identification information of the tag to be detected. Because the label to be detected is separated from the connecting line, a manager can not manage the article corresponding to the label to be detected through the label to be detected, and therefore the label to be detected is required to be controlled not to send out video signals any more. Optionally, the control that the tag to be detected does not send out the radio frequency signal any more can be realized by cutting off the power supply inside the tag to be detected, and the control that the tag to be detected does not send out the radio frequency signal can also be directly realized by the RFID reader.
It should be noted that there are many ways to control the tag to be detected not to emit the rf signal any more, including but not limited to what is proposed in the embodiments of the present application.
Optionally, in a specific embodiment of the present application, the central processing unit 103 is further configured to:
and if the label to be detected is determined to be separated from the connecting line, generating an alarm signal.
Wherein the alarm signal is used for prompting that the label to be detected is torn away from the article currently. When the label to be detected is pasted on the connecting line, namely the article, the management of the object can be realized through the RFID reader. For example, at some intelligent retail stores, the label of waiting to detect has been pasted on the article that does not sell, and after the article was sold out, the corresponding relation between label and the article of waiting to detect was deleted, and the label is waited promptly and article phase separation is detected, and then the realization is sold the management and control of process to the article.
However, in the prior art, some users tear the tag to be detected from the article when the article is not sold, and the tag to be detected can still be read by the RFID reader, so that the user can mistakenly think that the article is still sold in a retail store, and the management and control of the article selling process have a leak.
In the embodiment of the application, the central processing unit can determine that the label to be detected is separated from the connecting line when receiving the logic signal, so that an alarm signal can be sent when determining that the label to be detected is separated from the connecting line, related management personnel can be reminded to manage and control the article in time, and the condition that the article is stolen is avoided. Optionally, after the central processing unit generates the alarm signal, the alarm signal may be sent to a mobile phone of the management user, or the alarm signal may be sent to the security system, and the security system takes security management measures to be equal.
Optionally, in a specific embodiment of the present application, the central processing unit is further configured to:
and calculating to obtain the coordinate information of the label to be detected according to the coordinate information of the base stations and the distance information from the label to be detected to each base station.
And for each base station, the distance information from the tag to be detected to the base station is obtained according to the intensity of the radio frequency signal of the tag to be detected, which is received by the base station. The detection circuit of the radio frequency identification tag in the embodiment of the application can detect whether the tag to be detected is separated from the connecting line, so that the current position of the tag to be detected can be determined by calculating the coordinate information of the tag to be detected in real time in the time that the tag to be detected is not separated from the connecting line, and the supervision of an article corresponding to the tag to be detected is realized.
Specifically, a two-dimensional coordinate system or a spatial three-dimensional coordinate system is established in advance, and coordinate information of a plurality of base stations around the label to be detected in the established coordinate system is acquired. The base stations around the label to be detected can determine the distance between the base station and the label to be detected through the intensity of the received radio frequency signal of the label to be detected, and then the coordinate information of the label to be detected can be calculated according to the coordinate information of the base stations and the distance information from the label to be detected to each base station.
For example, referring to fig. 2, n base stations are arranged around the tag to be detected, a two-dimensional coordinate system is established, and the n base stations are obtainedIn the coordinates of the established coordinate system, the coordinates of n base stations are known as (x1, y1), (x2, y2), (x3, y3), (x4, y4), (x5, y5), … …, (xn, yn), and the distances from the tag a to be detected to each base station are d1, d2, d3, d4, d5, … …, dn. Therefore, assuming that the coordinates of the label A to be detected are (x, y), they are listed as (x1-x)2+(y1-y)2=d12、(x2-x)2+(y2-y)2=d22、……、(xn-x)2+(yn-y)2=dn2The n formulas can solve the values of x and y to obtain the coordinate information of the label A to be detected.
Therefore, when the label to be detected is not torn off, the management user can obtain the coordinate information of the label to be detected in real time, and then can know the coordinate information of the article corresponding to the label to be detected in real time. For the storage warehouse with more articles, knowing the coordinate information of the articles can help the management user to quickly find the articles needed by the management user. When the tag to be detected is torn off, the detection circuit of the radio frequency identification tag in the embodiment of the application can detect the tag and can also process the tag in time. For the valuable article storage library, the coordinate information of the valuable articles can be known in real time, so that the valuable articles can be prevented from being stolen by other people, and even if people want to steal the articles by tearing off the tag to be detected, the valuable articles can be detected by the detection circuit of the radio frequency identification tag provided by the embodiment of the application and send out an alarm signal. The detection circuit of the radio frequency identification tag provided by the embodiment of the application is applied to a supervision scene of an article, and the reliability of the supervised article can be improved.
In the detection circuitry of radio frequency identification label that this application embodiment provided, because paste on the connecting line of detecting element and power and wait to detect the label, wait to detect the label and be used for the contact surface with the contact of interconnecting link for the conductor material preparation, and the detecting element of connecting the power can detect the electric current on the interconnecting link, when the fluctuation of electric current value appears in interconnecting link, generate voltage signal. Therefore, when the label to be detected is separated from the connecting line, the current value of the connecting line fluctuates, and the detection unit further generates a voltage signal. The conversion unit connected with the detection unit receives the voltage signal and converts the voltage signal into a logic signal, and the central processing unit can further determine that the label to be detected is separated from the connecting line when receiving the logic signal, so that the detection of whether the label to be detected is separated from the connecting line is realized.
Referring to fig. 3, based on the detection circuit of the rfid tag provided in the embodiment of the present application, the embodiment of the present application correspondingly discloses a detection method of the rfid tag, which is applied to the detection circuit of the rfid tag provided in the embodiment of the present application, and specifically includes the following steps:
s301, a detection unit connected with a power supply detects current on a connecting line, and generates a voltage signal when the current value of the connecting line fluctuates.
Wherein, the connection line of detection unit and power is pasted with and is waited the label of waiting to detect, and the contact surface that the label that waits to detect is used for with the connection line contact is the conductor material preparation.
It should be noted that the specific principle and the execution process of step S301 executed by the detection unit are the same as those of the detection unit in the detection circuit of the rfid tag provided in the embodiment of the present application, and therefore, reference may be made to the detection unit, and details are not repeated here.
S302, the converting unit receives the voltage signal and converts the voltage signal into a logic signal.
Wherein the logic signal belongs to a signal which can be recognized and processed by the central processing unit.
It should be noted that the specific principle and the execution process of the step S302 executed by the conversion unit are the same as those of the conversion unit in the detection circuit of the rfid tag provided in the embodiment of the present application, and thus reference is made to the conversion unit, and details are not repeated here.
And S303, when the central processing unit receives the logic signal, determining that the label to be detected is separated from the connecting line.
Optionally, in a specific embodiment of the present application, after the central processing unit executes step S303, the method further includes:
and if the label to be detected is determined to be separated from the connecting line, generating an alarm signal. Wherein the alarm signal is used for prompting that the label to be detected is torn away from the article currently.
Optionally, referring to fig. 4, in an embodiment of the present application, after the central processing unit performs step S303, the method further includes:
s401, when the logic signals are received, whether the values of the logic signals are all in a state of being larger than or equal to a preset value in a preset time period is judged.
And if the values of the logic signals are all in a state of being larger than or equal to a preset value in a preset time period, determining that the label to be detected is separated from the connecting line. And if the values of the logic signals are all in a state of being smaller than a preset value within a preset time period, determining that the label to be detected is not separated from the connecting line.
Optionally, in a specific embodiment of the present application, after the central processing unit executes step S303, the method further includes:
and calculating to obtain the coordinate information of the label to be detected according to the coordinate information of the base stations and the distance information from the label to be detected to each base station. And for each base station, the distance information from the tag to be detected to the base station is obtained according to the intensity of the radio frequency signal of the tag to be detected, which is received by the base station.
It should be noted that the specific principle and the execution process of the step S303 executed by the central processing unit are the same as those of the central processing unit in the detection circuit of the radio frequency identification tag provided in the embodiment of the present application, and reference is made to the specific principle and the execution process, and details are not repeated here.
In the detection method of the radio frequency identification tag provided by the embodiment of the application, the detection unit connected with the power supply can detect the current on the connecting line, and when the current value of the connecting line fluctuates, a voltage signal is generated. And the detection unit is pasted with on the connecting line of power and is waited to detect the label, waits to detect the label and be used for the contact surface of linking circuit contact for the conductor material preparation, consequently when waiting to detect the label from the connecting line separation, the detection unit can detect the fluctuation that the current value of linking circuit appears, and then generates voltage signal. The conversion unit connected with the detection unit receives the voltage signal and converts the voltage signal into a logic signal, and the central processing unit can further determine that the label to be detected is separated from the connecting line when receiving the logic signal, so that the detection of whether the label to be detected is separated from the connecting line is realized.
Those skilled in the art can make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.