Disclosure of Invention
The embodiment of the invention provides a tag identification method and device, which are used for carrying out tag identification in more environments.
In a first aspect, a tag identification method is provided, including:
the tag reader modulates a control command to a first ultrasonic signal and sends the first ultrasonic signal to a tag; the tag is arranged in or on the surface of an object to be tested, and the tag reader-writer and the tag communicate in an ultrasonic mode;
the tag reader-writer receives a second ultrasonic signal sent by the tag;
and the tag reader-writer demodulates the second ultrasonic signal to obtain response information aiming at the control command.
Optionally, the method further includes:
the tag reader sends a third ultrasonic signal to the tag; the third ultrasonic signal is used to transmit energy to the tag.
Optionally, after the tag reader demodulates the response information for the control command from the second ultrasonic signal, the method further includes:
the tag reader/writer stops sending the third ultrasonic signal to the tag.
In a second aspect, a tag identification method is provided, including:
the tag receives a first ultrasonic signal sent by the tag reader-writer; the tag reader-writer and the tag are communicated in an ultrasonic mode;
the tag demodulates the first ultrasonic signal to obtain a control instruction;
the label executes the control instruction to obtain response information;
and the tag modulates the response information to a second ultrasonic signal and sends the second ultrasonic signal to the tag reader-writer.
Optionally, the tag executes the control instruction to obtain response information, including:
and the label executes the control command to detect the object to be detected to obtain the response information.
Optionally, the method further includes:
the tag receives a third ultrasonic signal sent by the tag reader-writer; the third ultrasonic signal is used for transmitting energy to the tag;
the tag stores energy acquired by the third ultrasonic signal.
In a third aspect, there is provided a tag reader/writer including:
the transmitting module is used for modulating a control command to a first ultrasonic signal and transmitting the first ultrasonic signal to a label; the tag is arranged in or on the surface of an object to be tested, and the tag reader-writer and the tag communicate in an ultrasonic mode;
the receiving module is used for receiving a second ultrasonic signal sent by the label;
and the acquisition module is used for demodulating response information aiming at the control instruction from the second ultrasonic signal.
Optionally, the sending module is further configured to:
transmitting a third ultrasonic signal to the tag; the third ultrasonic signal is used to transmit energy to the tag.
Optionally, the sending module is further configured to:
and after the acquisition module demodulates the response information aiming at the control instruction from the second ultrasonic signal, stopping sending the third ultrasonic signal to the tag.
In a fourth aspect, there is provided a label comprising:
the receiving module is used for receiving a first ultrasonic signal sent by the label reader-writer; the tag reader-writer and the tag are communicated in an ultrasonic mode;
the acquisition module is used for demodulating the first ultrasonic signal to obtain a control instruction;
the execution module is used for executing the control instruction to obtain response information;
and the sending module is used for modulating the response information to a second ultrasonic signal and sending the second ultrasonic signal to the tag reader-writer.
Optionally, the execution module is configured to:
and executing the control command, and detecting the object to be detected to obtain the response information.
Optionally, the tag further comprises a storage module;
the receiving module is further configured to: receiving a third ultrasonic signal sent by the tag reader-writer; the third ultrasonic signal is used for transmitting energy to the tag;
the storage module is used for: storing energy acquired by the third ultrasonic signal.
In a fifth aspect, a data reading and writing system is provided, which includes a tag reader and a tag; wherein,
the tag reader-writer is used for modulating a control command to a first ultrasonic signal, sending the first ultrasonic signal to the tag and receiving a second ultrasonic signal which is sent by the tag and bears response information; the tag is arranged in or on the surface of an object to be tested, and the tag reader-writer and the tag communicate in an ultrasonic mode;
and the tag is used for receiving the first ultrasonic signal, obtaining the response information by executing the control command, and sending the response information to the tag reader-writer through the second ultrasonic signal.
A sixth aspect provides a computer storage medium for storing computer software instructions for the tag reader, which contains a program designed for the tag reader in the implementation manner of the first aspect or any one of the first aspects.
In a seventh aspect, there is provided a computer storage medium for storing computer software instructions for the above tag, which contains a program designed for the tag in the implementation of the second aspect or any of the alternatives of the second aspect.
The tag reader-writer and the tag provided by the embodiment of the invention communicate through ultrasonic waves, so that even if the object to be detected is in an electromagnetic shielding environment, the ultrasonic waves are used as a medium, and the electromagnetic shielding barrier can still be penetrated through, so that the tag identification is normally carried out, the related data of the object to be detected is effectively obtained, the limitation caused by the environment is reduced, and more objects to be detected can be detected in a tag identification mode.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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.
Hereinafter, some terms in the present invention will be explained to facilitate understanding by those skilled in the art.
1) The label is a data carrier, can be arranged in the measured object or attached to the surface of the measured object, and can play a role in identification, article tracking, information acquisition and the like.
2) The reader-writer, also called tag reader-writer, can read the data in the tag, and some reader-writers can also erase and write data in the tag. The tag reader-writer is widely applied and mainly applied to the aspects of identity identification, goods identification, security authentication, data recording and the like.
The tag provided by the embodiment of the invention and the tag reader-writer are communicated through ultrasonic waves.
3) The terms "system" and "network" in embodiments of the present invention may be used interchangeably. "plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" generally indicates that the preceding and following related objects are in an "or" relationship, unless otherwise specified.
First, the device provided by the embodiment of the present invention will be described together with an application scenario of the embodiment of the present invention.
Fig. 1 shows an application scenario of the embodiment of the present invention. Fig. 1 includes a tag reader/writer 101 and a tag 102. In addition, for the sake of clarity, fig. 1 also includes an object under test 103. The tag 102 may be disposed inside the object 103 to be measured, or may be attached to the surface of the object 103 to be measured, and fig. 1 illustrates the tag 102 disposed inside the object 103 to be measured. In addition, the object under test 103 in fig. 1 is a closed object, and in practical applications, the object under test 103 may also be an unsealed object. In brief, the tag reader 101 and the tag 102 provided by the embodiment of the present invention can be applied not only to scenes where an RFID tag and the like in the prior art cannot be applied, but also to scenes where an RFID tag can be applied, and the tag reader 101 and the tag 102 provided by the embodiment of the present invention can be applied, so that the application range is very wide and the requirement on the environment is low.
The object 103 to be measured is not limited in the embodiment of the present invention, and may be, for example, a common object, or may also be a military product, such as a missile.
In the embodiment of the present invention, since the object under test 103 is a closed object, the side wall of the object under test 103 serves as a medium for propagating the ultrasonic signal. Therefore, as can be seen from fig. 1, in order to make the propagation effect of the ultrasonic signal better, the tag 102 is fixed on the inner surface of the side wall of the object to be measured 103, and the ultrasonic transducer in the tag 102 is brought into close contact with the inner surface of the side wall of the object to be measured 103. When the tag 102 needs to be read by the tag reader-writer 101, the ultrasonic transducer of the tag reader-writer 101 is in close contact with the outer surface of the side wall of the object to be measured 103, and here, the contact position between the tag reader-writer 101 and the object to be measured 103 can be made as close as possible to the tag 102, for example, the side wall in contact with the tag reader-writer 101 and the side wall of the fixed tag 102 are the same side wall, and the distance between the tag reader-writer 101 and the tag 102 is made as short as possible, so that the conduction of the ultrasonic signal is smooth, and high-quality signal quality is obtained. Ultrasonic transducers can be arranged in both the tag reader-writer 101 and the tag 102, and the ultrasonic transducers have the function of converting input electric power into mechanical power (namely ultrasonic waves) and transmitting the mechanical power.
Of course, fig. 1 shows only one case, and in practical applications, if the tag 102 is provided on the outer surface of the object to be measured 103, the tag may be provided at any position on the outer surface, and similarly, if the tag 102 is provided inside the object to be measured 103, the tag may be provided at any position inside, and is not limited to the inner surface of the side wall. When the tag 102 is read by the tag reader/writer 101, the tag reader/writer 101 may be brought into contact with an arbitrary position of the object 103 to be measured.
In the embodiment of the present invention, the tag reader/writer 101 is a signal generating and receiving processing device using ultrasonic waves as a communication transmission medium and a carrier. The tag 102 is an identification and information collection node device that uses ultrasound as a communication transmission medium and carrier. The tag reader/writer 101 and the tag 102 may constitute a data reading/writing system.
In a possible embodiment, the tag 102 may be a passive device, that is, a passive tag, a power supply system such as a battery is not required to be arranged in the tag 102, and the life of the tag 102 is not affected by the life of the battery in the tag 102, so that the effective service life of the tag 102 is the same as that of the object 103 to be tested, even longer than that of the object 103 to be tested, and life-long maintenance-free of the tag 102 is really achieved.
The technical scheme provided by the embodiment of the invention is described in the following with the accompanying drawings of the specification.
Referring to fig. 2, an embodiment of the invention provides a tag identification method taking the application scenario shown in fig. 1 as an example.
S21, the tag reader/writer 101 transmits a third ultrasonic signal for transmitting energy to the tag 102. The tag 102 receives the third ultrasonic signal and the tag 102 is awakened by the third ultrasonic signal. It should be noted that, in the following, unless otherwise specified, all the energy described in the embodiments of the present invention refer to ultrasonic energy.
If the tag 102 is a passive device, the tag 102 may be in a power-off silent state when not communicating with the tag reader 101, and the tag 102 needs to be awakened (or called activated) before normal communication can be performed. Therefore, before the tag reader/writer 101 formally communicates with the tag 102, S21 is executed, and the tag reader/writer 101 transmits ultrasonic energy to activate the passive tag 102, the ultrasonic energy is transmitted by an ultrasonic signal, and the ultrasonic signal transmitting the ultrasonic energy is referred to as a third ultrasonic signal in the embodiment of the present invention. The third ultrasonic signal may be conducted along the substance of the object under test 103 to the tag 102.
The tag 102 includes an energy storage unit, and can store energy received through the ultrasonic signal, and the tag 102 can communicate with the tag reader 101 through the energy stored in the energy storage unit. When no energy is stored in the energy storage unit, or the energy stored in the energy storage unit is exhausted, the tag 102 enters a power-off silent state. It can be seen that the length of time that the tag 102 can operate is related to the energy stored in the energy storage unit. If the capacity of the energy storage unit is large and large energy can be stored, the tag reader 101 may send ultrasonic energy to the tag 102 once to meet the current communication process, and in this case, the tag reader 101 may send a third ultrasonic signal to the tag 102 once before the formal communication. If the capacity of the energy storage unit is small and the energy that can be stored is small, then the tag reader 101 may need to send a third ultrasonic signal to the tag 102 to wake up the tag 102 in addition to sending the third ultrasonic signal to the tag 102 before formal communication, and may need to send the third ultrasonic signal to the tag 102 to supply energy to the tag 102 during communication, and of course, if the third ultrasonic signal is sent to the tag 102 multiple times during one communication, then the third ultrasonic signal sent from the second time is only used to supply energy to the tag 102 and is not used to wake up the tag 102 because the tag 102 is already woken up. The specific number of times of sending the third ultrasonic signal and the timing of sending the third ultrasonic signal are related to the duration of the communication process, the capacity of the energy storage unit in the tag 102, or the ultrasonic energy that can be transmitted by the tag reader 101 at one time, and the like, and the embodiment of the present invention is not limited.
Of course, if the tag 102 is an active device, the tag 102 may obtain power through a built-in battery or other power supply system, and S21 does not need to be executed. It can be seen that S21 is an optional step, and the arrow representing S21 is drawn as a dotted line in fig. 2 for distinction from the mandatory step.
S22, the tag reader 101 modulates the control command onto the first ultrasonic signal, and sends the first ultrasonic signal to the tag 102, that is, the first ultrasonic signal carries the control signaling. The tag 102 receives the first ultrasonic signal.
The tag reader 101 needs the tag 102 to complete the corresponding function, and the tag reader 101 needs to send a control instruction to the tag 102 to instruct the tag 102 to complete the corresponding function. Because the tag reader-writer 101 and the tag 102 communicate with each other by using ultrasonic waves, the tag reader-writer 101 modulates the control command onto the ultrasonic signal and transmits the ultrasonic signal to the tag 102.
S23 and the tag 102 demodulates the first ultrasonic signal to obtain a control command.
S24, tag 102 executes the control command to obtain response information.
The control instruction is used to instruct the tag 102 to complete a corresponding function, and the embodiment of the present invention does not limit the function instructed by the control instruction, and therefore does not limit the content, the type, and the like of the response message.
For example, the tag 102 stores corresponding information, and the control instruction can be used to read the information stored in the tag 102, so that after the tag 102 obtains the control instruction, the tag 102 can read the information stored in the tag 102 by executing the control instruction, and use the read information as the response information.
Or for example, after the tag 102 obtains the control instruction, the tag may execute the control instruction to detect the object under test 103, so as to use the detection result as the response information. The tag 102 detects the object to be detected 103, which may be that the tag 102 directly detects, or the tag 102 may detect through other devices such as a sensor arranged in the object to be detected 103, that is, the tag 102 sends a detection instruction to other devices such as a sensor arranged in the object to be detected 103 to instruct other devices such as a sensor arranged in the object to be detected 103 to detect the object to be detected 103, after the detection is completed, the corresponding device sends the detection result to the tag 102, and the tag 102 obtains the response information according to the received detection result.
S25, the tag 102 modulates the response information onto the second ultrasonic signal, and transmits the second ultrasonic signal to the tag reader/writer 101. The tag reader/writer 101 receives the second ultrasonic signal.
In the embodiment of the present invention, the tag 102 may or may not have the capability of directly transmitting the ultrasonic signal. If the tag 102 has the capability of directly transmitting the ultrasonic signal, the tag 102 can generate the ultrasonic signal after obtaining the response information, which is referred to as a second ultrasonic signal in the embodiment of the present invention, and the tag 102 modulates the response information onto the generated second ultrasonic signal and transmits the second ultrasonic signal to the tag reader/writer 101. If the tag 102 does not have the capability of directly transmitting the ultrasonic signal, the tag 102 needs to have the capability of reflecting the ultrasonic signal, that is, after receiving the first ultrasonic signal, the tag 102 can reflect the first ultrasonic signal to obtain a reflected ultrasonic signal, which is referred to as a second ultrasonic signal in the embodiment of the present invention, and the tag 102 modulates the response information onto the transmitted second ultrasonic signal to be transmitted to the tag reader 101. Therefore, the tag 102 in the embodiment of the present invention has multiple working modes and is flexible.
S26, the tag reader/writer 101 demodulates the second ultrasonic signal to obtain response information for the control command.
After receiving the second ultrasonic signal, the tag reader/writer 101 demodulates the second ultrasonic signal to obtain response information, thereby completing the communication.
As can be seen from the above, the tag reader 101 and the tag 102 provided in the embodiment of the present invention communicate with each other through ultrasonic waves, so that even if the object to be tested is in an electromagnetic shielding environment, the ultrasonic waves are used as a medium, and the electromagnetic shielding barrier can still be penetrated through, so that the tag identification can be performed normally, and the related data of the object to be tested 103 can be obtained effectively. The limit brought by the environment is reduced, and the application range is wider.
Moreover, the tag 102 can be a passive device, which avoids the short life of the components such as the battery built in the tag 102 from affecting the service life of the tag 102, and reduces the probability of replacing the tag 102 due to the fast end of the service life.
For some electromagnetic shielding scenes and some application scenes where the tag 102 is inconvenient to replace, for example, such scenes that the object to be measured 103 is military equipment such as a missile and the tag 102 is embedded in the object to be measured 103, the scheme provided by the embodiment of the invention is more advantageous.
S27, the tag reader/writer 101 stops transmitting the third ultrasonic signal to the tag 102.
If the tag reader 101 continues to transmit the third ultrasonic signal to the tag 102 during the communication process, after the tag reader 101 receives the second ultrasonic signal, it is determined that the communication process is finished, and the tag reader 101 may stop transmitting the third ultrasonic signal to the tag 102.
Or, for more reliability, the tag reader 101 may stop sending the third ultrasonic signal to the tag 102 after demodulating the second ultrasonic signal to obtain the response information, so that the tag reader 101 may determine whether the response information is incorrect, and if the response information is incorrect, the tag reader 101 determines that the communication process is finished, and stops sending the third ultrasonic signal to the tag 102. If the response information is wrong, the tag reader-writer 101 may resend the ultrasonic signal carrying the control instruction to the tag 102, or may instruct the tag 102 to resend the response information, and after receiving the correct response information, stop sending the third ultrasonic signal to the tag 102, so as to ensure that the correct response information can be received before the communication process is finished.
If the tag 102 is an active device, the tag 102 may obtain power through a built-in battery or the like, and S27 does not need to be executed. It can be seen that S27 is an optional step, and the box representing S27 is drawn as a dashed line in fig. 2 for distinction from mandatory steps.
The following describes the apparatus provided by the embodiment of the present invention with reference to the drawings.
Referring to fig. 3, an embodiment of the present invention provides a tag reader, which may include a sending module 301, a receiving module 302, and an obtaining module 303. The sending module 301 and the receiving module 302 may have a connection relationship therebetween, which is taken as an example in fig. 3, or may not have a connection relationship.
The transmitting module 301 is configured to modulate a control instruction onto a first ultrasonic signal and transmit the first ultrasonic signal to a tag; the tag is arranged inside or on the surface of the object to be tested 103, and the tag reader-writer and the tag communicate in an ultrasonic mode;
a receiving module 302, configured to receive a second ultrasonic signal sent by a tag;
and an obtaining module 303, configured to demodulate, from the second ultrasonic signal, response information for the control instruction.
In a possible implementation, the sending module 301 is further configured to:
a third ultrasonic signal is sent to the tag. The third ultrasonic signal is used to transmit energy to the tag.
In a possible implementation, the sending module 301 is further configured to:
after the acquisition module 303 demodulates the response information for the control instruction from the second ultrasonic signal, the transmission of the third ultrasonic signal to the tag is stopped.
The tag reader may be configured to perform the method provided in the embodiment shown in fig. 2, for example, the tag reader is the tag reader 101 shown in fig. 1. Therefore, for the functions and the like realized by the functional modules in the tag reader/writer, reference may be made to the description of the foregoing embodiments, which are not repeated herein.
Referring to fig. 4A, an embodiment of the present invention provides a tag, which includes a receiving module 401, an obtaining module 402, an executing module 403, and a sending module 404.
The receiving module 401 is configured to receive a first ultrasonic signal sent by a tag reader; the tag reader-writer and the tag are communicated in an ultrasonic mode;
an obtaining module 402, configured to demodulate a control instruction from the first ultrasonic signal;
an executing module 403, configured to execute the control instruction to obtain response information;
and a sending module 404, configured to modulate the response information onto the second ultrasonic signal, and send the second ultrasonic signal to the tag reader.
In a possible embodiment, the execution module 403 is configured to:
and executing the control command, detecting the object to be detected 103, and obtaining response information.
In a possible embodiment, the tag further comprises a storage module 405, see fig. 4B. The sending module 404 and the receiving module 401 may have a connection relationship therebetween, which is taken as an example in fig. 4A, or may not have a connection relationship, which is taken as an example in fig. 4B.
The receiving module 401 is further configured to: receiving a third ultrasonic signal sent by the label reader-writer; the third ultrasonic signal is used for transmitting energy to the tag;
the storage module 405 is configured to: storing the energy acquired by the third ultrasonic signal.
Wherein the tag may be used to perform the method provided by the embodiment shown in fig. 2, for example, the tag is the tag 102 shown in fig. 1. Therefore, for the functions and the like realized by the functional modules in the label, reference may be made to the description of the foregoing embodiments, which are not repeated herein.
An embodiment of the present invention further provides a data reading and writing system, which includes a tag reader and a tag.
The tag reader-writer is used for modulating the control command to the first ultrasonic signal, sending the first ultrasonic signal to the tag and receiving a second ultrasonic signal which is sent by the tag and bears response information; the tag is arranged inside or on the surface of the object to be tested 103, and the tag reader-writer and the tag communicate in an ultrasonic mode;
and the tag is used for receiving the first ultrasonic signal, obtaining response information by executing the control command and sending the response information to the tag reader-writer through the second ultrasonic signal.
The data reading and writing system may be configured to execute the method provided in the embodiment shown in fig. 2, for example, the tag reader included in the data reading and writing system is the tag reader 101 shown in fig. 1, and the tag included in the data reading and writing system is the tag 102 shown in fig. 1. Therefore, for the functions and the like realized by each functional device in the data reading and writing system, reference may be made to the description of the foregoing embodiments, which are not repeated herein.
The tag reader-writer 101 and the tag 102 provided by the embodiment of the present invention communicate with each other by using ultrasonic waves, so that even if the object to be detected 103 is in an electromagnetic shielding environment, the ultrasonic waves are used as a medium, and the electromagnetic shielding barrier can still be penetrated through, so that tag identification is performed normally, related data of the object to be detected 103 is effectively obtained, limitations caused by the environment are reduced, and more objects to be detected 103 can be detected by using a tag identification method.
In the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the described units or division of units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and when the program is executed, the program includes some or all of the steps of any one of the tag identification methods described in the above method embodiments.
The functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be an independent physical module.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device, such as a personal computer, a server, or a network device, or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a Universal Serial Bus flash drive (usb flash drive), a removable hard disk, a read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
The above embodiments are only used to describe the technical solutions of the present invention in detail, but the above embodiments are only used to help understanding the method of the embodiments of the present invention, and should not be construed as limiting the embodiments of the present invention. Variations or substitutions that may be readily apparent to one skilled in the art are intended to be included within the scope of the embodiments of the present invention.