Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method and an apparatus for determining the position of an RFID tag in an indoor space, which can perform indoor accurate positioning without using a satellite signal, aiming at the defect that the accurate positioning cannot be achieved due to the loss of the satellite signal in the indoor space in the prior art.
The technical scheme adopted by the invention for solving the technical problems is as follows: a method for determining the position of an RFID electronic tag in an indoor space is constructed, and the method comprises the following steps:
A) a main reader-writer on a positioning base station sends a data request, a first label chip of a positioning label entering the coverage range of the main reader-writer sends a first return signal to the main reader-writer;
B) the positioning base station which receives the first return signal starts a slave reader-writer to send a data request, and the coverage range of the slave reader-writer comprises a part of the coverage range of the master reader-writer; the working frequency ranges of the master reader-writer and the slave reader-writer are different;
C) judging whether the slave reader-writer receives a second return signal from the positioning tag, if so, determining the current position range of the positioning tag; otherwise, starting another slave reader-writer in the positioning base station to repeat the steps B) and C) until all the slave reader-writers in the positioning base station are traversed or the position range where the positioning label is located currently is determined.
Furthermore, the positioning base station comprises a master reader-writer, a plurality of slave reader-writers and a control unit for controlling the plurality of reader-writers; the working frequency bands of the multiple slave readers are the same as the using protocol, and the multiple slave readers are started to work one by one under the control of the control unit until the positioning base station receives a second return signal sent by the positioning label; the coverage ranges of the plurality of slave readers comprise a part of the coverage range of the master reader, and the coverage ranges of the plurality of slave readers comprise the coverage range of the master reader.
Furthermore, the slave reader-writer has different coverage ranges due to different arrangement positions of the reader-writer or the reader-writer antenna, or the slave reader-writer has the same arrangement position and different coverage ranges are realized through different antenna structures.
Further, in the step C), when the positioning tag receives the data request from the master reader-writer or sends the first return signal to the master reader-writer, the positioning tag starts the second tag chip on the positioning tag to wait for the data request sent from the slave reader-writer.
Furthermore, the return signal sent from the second tag chip to the slave reader/writer carries the id of the master reader/writer, the id of the first tag chip, and the id of the second tag chip, which are obtained from the memory shared by the positioning tag.
Further, in the step C), by comparing whether the identification code of the master reader-writer and the identification code of the first tag chip carried in the signal received by the slave reader-writer are the same as the identification code of the master reader-writer and the identification code of the first tag chip received by the master reader-writer, if so, the signal is determined to be the second return signal.
Still further, the method comprises the following steps:
and according to the signal intensity of the second return signal, looking up a table to obtain the distance between the positioning tag and the set position of the slave reader-writer antenna, and further reducing the range of the position of the positioning tag.
The invention also relates to a device for realizing the method, which comprises the following steps:
a first return signal acquisition unit: the first tag chip is used for enabling a main reader-writer on a positioning base station to send a data request, and a first return signal is sent to the main reader-writer by a first tag chip of a positioning tag entering the coverage range of the main reader-writer;
the slave reader/writer startup unit: the positioning base station is used for enabling the positioning base station receiving the first return signal to start a slave reader-writer to send a data request, and the coverage range of the slave reader-writer comprises a part of the coverage range of the master reader-writer; the working frequency ranges of the master reader-writer and the slave reader-writer are different;
a position determination unit: the positioning tag is used for receiving a first return signal from the positioning tag, and determining the current position range of the positioning tag; otherwise, calling the slave reader-writer starting unit to start another slave reader-writer in the positioning base station and calling the position judging unit until traversing all slave reader-writers in the positioning base station or determining the position range where the positioning label is located currently.
Furthermore, the positioning base station comprises a master reader-writer, a plurality of slave reader-writers and a control unit for controlling the plurality of reader-writers; the working frequency bands of the multiple slave readers are the same as the using protocol, and the multiple slave readers are started to work one by one under the control of the control unit until the positioning base station receives a second return signal sent by the positioning label; the coverage ranges of the plurality of slave readers comprise a part of the coverage range of the master reader, and the coverage ranges of the plurality of slave readers comprise the coverage range of the master reader; the slave reader-writer enables the coverage ranges to be different through different arrangement positions of the reader-writer or the reader-writer antenna, or the slave reader-writer is the same in arrangement position and different in coverage ranges through different antenna structures.
Still further, still include:
a signal strength determination unit: and the positioning tag is used for obtaining the distance between the positioning tag and the antenna setting position of the slave reader-writer by looking up a table according to the signal intensity of the second return signal, and further reducing the range of the position of the positioning tag.
The method and the device for determining the position of the RFID electronic tag in the indoor space have the following beneficial effects: by using the matching of a positioning base station with a plurality of readers and a plurality of positioning electronic tags with related electronic tag chips, return signals sent by different electronic tag chips are obtained from different readers and the identification information carried by the return signals is processed to determine that the signals are sent by the same positioning tag; because the coverage areas of the plurality of readers are overlapped and known, the positions of the positioning labels can be gradually reduced through simple logic judgment through the reception of the signals with the logic relation, and the positions of the personnel carrying the positioning labels can be obtained more accurately. Therefore, it is possible to realize more accurate position determination without requiring a large number of data operations.
Detailed Description
The embodiments of the present invention will be further described with reference to the accompanying drawings.
As shown in fig. 1, in the embodiment of the method and apparatus for determining the position of an RFID tag in an indoor space according to the present invention, a positioning system includes a plurality of positioning base stations disposed in an indoor space to be positioned, a server connected to the positioning base stations via a network, and a positioning tag carried by a person. Each positioning base station comprises a main RFID reader-writer (main reader-writer) and a plurality of auxiliary RFID reader-writers (auxiliary reader-writers), wherein the main reader-writer and the auxiliary reader-writers are controlled by a control unit, and when the positioning base station starts to work, the main reader-writer works, but the auxiliary reader-writers do not work; only when the master reader-writer receives a return signal sent by a positioning tag, the slave reader-writers work one by one under the control of the control unit. In other words, when one slave reader/writer operates, the other slave reader/writers do not operate. When the slave reader works and receives a second return signal (the signal is sent by different parts of the positioning label), the control unit uploads the data content in the signals received twice to a server connected through a network, and the server can obtain the position range of the positioning label through simple logic judgment according to the data content. If other modes are selected for verification subsequently, the position of the positioning label obtained by judgment can be limited within a smaller range, so that more accurate positioning is realized. In the present embodiment, the positioning tag is not only an RFID tag in the conventional sense but a composite body having a plurality of electronic tag chips; the positioning label at least comprises two electronic label chips, one electronic label chip is used for data interaction with the master reader-writer, the other electronic label chip is used for data interaction with the slave reader-writer, and the electronic label chip which is used for data interaction with the slave reader-writer is controlled on the positioning label through a control unit arranged on the positioning label. Specifically, in the present embodiment, the positioning method includes:
step S11, the master reader/writer of the positioning base station obtains the positioning tag and sends a first return signal: in this embodiment, a master reader/writer on a positioning base station sends a data request, and a first tag chip of a positioning tag entering the coverage area of the master reader/writer sends a first return signal to the master reader/writer. Since a plurality of positioning base stations may be installed in an indoor space, the coverage area or the coverage area of each positioning base station is different, but the plurality of positioning base stations substantially cover the indoor space. When no positioning label enters the indoor space, the main reader-writers of all the positioning base stations work, and all the auxiliary reader-writers do not work. Therefore, power consumption can be saved, electromagnetic wave interference in the space can be reduced, and the area where the positioning tag is located can be roughly determined according to the main reader-writer which receives the first return signal when the positioning tag enters the indoor space. When the positioning tag does not enter the action range of any positioning base station, only one electronic tag chip part (usually, a first electronic tag chip, including an antenna connected with the first electronic tag chip and a memory shared with another electronic tag chip part) works on the positioning tag, and the other electronic tag chip part (usually, a second electronic tag chip part) does not work and cannot receive signals sent by any reader-writer; therefore, when a positioning tag enters the coverage area of a positioning base station, the first electronic chip part in the positioning tag receives a data request sent by a main reader-writer of the positioning base station, and sends a return signal to the main reader-writer, wherein the return signal is a first return signal which carries the identification code of the first electronic tag chip part. When the first electronic chip part receives a data request sent by a main reader-writer of the positioning base station, the data request carries an identification code of the main reader-writer, and a control unit in the positioning label takes out the identification code of the main reader-writer from the signal and stores the identification code to a specified position in a storage unit shared by a plurality of electronic label chip parts of the positioning label, so that the electronic label chip part can be used in the subsequent steps. In this embodiment, if there is data in the designated location in the storage unit, the original data will be overwritten in the above process.
Step S12 starts a slave reader/writer on the positioning base station, receives the return signal sent by the positioning tag: in this step, after receiving the first return signal, the master reader/writer on the positioning base station starts a slave reader/writer on the control base station through a control unit arranged on the positioning base station, and after the slave reader/writer is started, a data request or an activation signal is sent; at this time, for the positioning tag, since the positioning tag already receives or transmits the radio frequency signal, the control unit thereon already starts the second electronic tag chip part on the positioning tag. The main reader-writer on the positioning base station and the first electronic tag chip part on the positioning tag adopt the same frequency band and protocol; the slave reader-writer on the positioning base station and the second electronic tag chip on the positioning tag adopt the same frequency band and protocol, so that the second electronic tag chip part on the positioning tag can receive a data request or an activation signal sent by the slave reader-writer of the positioning base station, and then the second electronic tag chip part sends a return signal to the slave reader-writer of the positioning base station, and the return signal is a second return signal.
Step S13, determining whether a return signal is received and whether a second return signal is received, if yes, executing the next step; otherwise, the process returns to step S12, and two other slave readers that have not been activated in the present determination are activated. In this embodiment, since one positioning base station includes a plurality of slave readers/writers, the coverage area of each slave reader/writer is different, and the coverage areas of the plurality of slave readers/writers include the coverage area of the master reader/writer, a return signal of the positioning tag may not be obtained or the returned signal is not the second return signal after one slave reader/writer is started, which is usually the positioning tag and is within the coverage area of the slave reader/writer. Therefore, in this step, it is necessary to determine whether the second return signal is received. Specifically, the method includes two steps, one is whether a signal is returned, and the other is whether the returned signal is the second return signal, and if both the steps are judged to be affirmative, the received signal is considered to be the second return signal transmitted from the positioning tag to the slave reader/writer; if any of the steps is not affirmative, it is determined that the second return signal is not received or the received signal is not the second return signal, and at this time, the next step is not executed, but the step returns to step S12, another slave reader/writer on the positioning base station is started, a data request or an activation signal is sent again in another area within the coverage area of the master reader/writer, and it is determined whether the second return signal is received. It is worth mentioning that when another slave reader is turned on, the slave reader which was originally turned on but did not receive a signal or which received a signal other than the second return signal will be turned off. That is, at most one slave reader/writer operates at any time on one positioning base station. The advantage of such an arrangement is that the coverage area of the slave reader-writer on one positioning base station inevitably has an overlapping position due to the limitation of the placement position and the limitation of the antenna structure, and if the slave reader-writers with two overlapping coverage areas are simultaneously turned on, the second return signal of the positioning tag at the overlapping position is simultaneously received by the two slave reader-writers, which brings difficulty to the judgment of one slave reader-writer and increases the judgment steps. In this embodiment, if the second return signal is not received, the slave readers of the positioning base station will be started alternately until the second return signal is received or all the slave readers of the positioning base station are traversed.
In this embodiment, the slave reader-writer has different coverage ranges due to different setting positions of the reader-writer or the reader-writer antenna, or the slave reader-writer has the same setting position and different coverage ranges are realized through different antenna structures. In the positioning tag, the second return signal sent from the second electronic tag chip part to the slave reader-writer carries the identification code of the master reader-writer, the identification code of the first electronic tag chip part and the identification code of the second electronic tag chip part, which are obtained from the memory shared in the positioning tag. In this step, when the positioning base station determines whether the received signal is the second return signal, a key step is to compare whether the signal carries the identification codes, and whether the identification codes (mainly the identification codes of the main reader/writer and the first electronic tag chip part) are the same as the identification codes of the main reader/writer and the first electronic tag chip part known by the positioning base station. Such a determination can be achieved by a simple comparison without involving complicated calculations.
Step S14 determines the position range of the positioning tag according to the coverage of the two readers: in this embodiment, the two return signals are provided, the identification codes of the master reader-writer and the slave reader-writer can be easily obtained, and the coverage area of each master reader-writer or slave reader-writer is preset or known for the system. Like this, in this embodiment, only need simple judgement, just can obtain the comparatively accurate position of location label, removed complicated computational process from. In some cases in the present embodiment, such a position range can already satisfy the requirement.
Step S15 further narrows the location range of the positioning tag according to the strength of the second return signal: in this step, a parameter indicating the signal strength, such as RSSI or the like, is obtained by detecting the signal strength of the second return signal, and then the position range of the positioning tag in the coverage area of the slave reader is further narrowed by searching a table in which the correspondence between the signal strength and the distance in the positioning base station or the reader is stored in advance, so as to obtain more accurate positioning information. In this embodiment, in some cases, not only the signal strength detection may be performed on the second return signal, but also the signal strength detection may be performed on the received first return signal, and a table is looked up to obtain a relatively determined position of the positioning tag within the coverage area of the main reader/writer. Therefore, the positions obtained by two table lookup can be mutually compared or the average value of the positions is obtained, and then the positions are processed or calculated to finally obtain more accurate position information. Of course, the advantages of the method are obvious, but the cost is also obvious, and the calculation amount is increased.
It should be noted that, in this embodiment, the positioning information sent by the positioning base station to the server is usually a plurality of ids and the signal strength of the return signal. In most cases, the server can obtain the location of the positioning tag through the identification code and the signal strength, and the location information, the signal strength table, and the like stored on the server. And the two identification codes of the positioning label are transmitted to the server, so that the identification codes on the positioning label can be disciplined to confirm the identity of the positioning label. When the subsequent positioning label appears, the positioning label is verified or a newly-entered positioning label is found. Since the location system cannot know the ids of all location tags. When a positioning label which never appears is in some occasions, an operator is reminded to go to check, and safety is guaranteed.
Fig. 2 shows the coverage of a positioning base station in an indoor space. A plurality of positioning base stations (one of which is shown in fig. 2) are arranged in the indoor space 20, the action ranges of the positioning base stations cover the whole indoor space 20, the coverage range 21 of the master reader-writer of the positioning base station in fig. 2, and the coverage ranges of the three slave reader-writers are 21, 22 and 23. In fig. 2, the coverage of the slave reader/writer divides the coverage of the master reader/writer into a plurality of parts, so that when it is determined that a slave reader/writer receives the second return signal, the position of the positioning tag can be reduced from the coverage of the master reader/writer to the coverage of the slave reader/writer. In some cases, due to the complexity of the indoor space shape, the coverage areas of multiple master readers may overlap, and in this case, a polling mode of multiple positioning base stations may also be adopted. Because the number of the positioning base stations is far smaller than the mode of dividing the indoor space into the acceptable position areas by adopting the independent reader-writers, even under the extreme condition, the polling time of the positioning system adopting the method in the embodiment is far smaller than the polling time of the independent reader-writers, which means that under the condition of the same positioning label density, the positioning system adopting the method in the embodiment has more time to process conflicts, and the possibility of missing reports is greatly reduced.
Fig. 3 and 4 show one structure of a positioning base station and a positioning tag in the present embodiment. It can be seen that in fig. 3 and 4, the main reader-writer of the positioning base station and the first RFID electronic tag chip of the positioning tag start to maintain operation. After the positioning base station receives the first return signal and the potential tag receives or sends a radio frequency signal, the slave reader-writer and the second RFID electronic tag chip start to work through respective control units.
The invention also relates to a device for realizing the method, which comprises a first return signal acquisition unit 1, a slave reader-writer starting unit 2, a position judgment unit 3 and a signal strength judgment unit 4; the first return signal acquiring unit 1 is configured to enable a master reader-writer on a positioning base station to send a data request, and a first tag chip of a positioning tag entering a coverage area of the master reader-writer sends a first return signal to the master reader-writer; the slave reader-writer starting unit 2 is configured to enable the positioning base station receiving the first return signal to start a slave reader-writer to send a data request, where a coverage area of the slave reader-writer includes a part of a coverage area of the master reader-writer; the working frequency ranges of the master reader-writer and the slave reader-writer are different; the position judging unit 3 is configured to judge whether the slave reader/writer receives a second return signal from the positioning tag, and if so, determine a position range where the positioning tag is currently located; otherwise, calling the slave reader-writer starting unit to start another slave reader-writer in the positioning base station and calling a position judging unit until all slave reader-writers in the positioning base station are traversed or the position range where the positioning label is located currently is determined; the signal strength judging unit 4 is configured to look up a table according to the signal strength of the second return signal to obtain a distance between the positioning tag and the slave reader antenna setting position, and further narrow the range of the position of the positioning tag.
In addition, in this embodiment, the positioning base station includes a master reader/writer, a plurality of slave reader/writers, and a control unit for controlling the plurality of reader/writers; the working frequency bands of the multiple slave readers are the same as the using protocol, and the multiple slave readers are started to work one by one under the control of the control unit until the positioning base station receives a second return signal sent by the positioning label; the coverage ranges of the plurality of slave readers comprise a part of the coverage range of the master reader, and the coverage ranges of the plurality of slave readers comprise the coverage range of the master reader; the slave reader-writer enables the coverage ranges to be different through different arrangement positions of the reader-writer or the reader-writer antenna, or the slave reader-writer is the same in arrangement position and different in coverage ranges through different antenna structures.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.