RSSI threshold value self-learning method in access control management scene
Technical Field
The invention belongs to the field of RFID (radio frequency identification) tag identification, and particularly relates to a self-learning method for an RSSI (received signal strength indicator) threshold in an entrance guard management scene.
Background
Radio Frequency Identification (RFID) technology is very popular in access control systems due to its low cost and high replication difficulty. However, the problems of poor production consistency of the RFID tags, different mounting heights of the tags, different angles and materials of vehicle windshields and multipath effect generated in the field environment are solved; the difficulty of controlling the coverage area and configuring the transmitting power of the field RFID reading equipment is very high. If the power configuration is too high, the coverage area for tag reading is increased, the tags with good performance can be identified at a long distance, and the problem that the RFID tags with the authority of the rear vehicle are read while the RFID tags without the authority of the front vehicle normally enter can occur. If the power configuration is too small, many tags with poor performance cannot be identified, and the problem that the vehicle authorized by the RFID tag cannot normally enter the RFID tag can be solved.
In the prior art, two methods for solving the problem of inconsistent reading distances of the RFID tags are mainly used:
one method is to rely on empirical field testing. The transmitting power and the antenna angle are continuously adjusted to find a suitable parameter by depending on the experience of a constructor. The ideal scene that reading omission and car following are avoided is expected to be achieved. Through actual field verification, the method is difficult to achieve the expected effect. Or the condition of reading missing or the condition of reading mistakenly with the car occurs, and the field manual processing of an administrator is needed.
Another approach is to filter tags with low signal strength depending on the RSSI values. The strength of the signal received by the RFID tag reading device is generally the stronger the closer the signal. When the system is designed, an RSSI threshold value is set according to experience, identification results smaller than the RSSI threshold value are discarded, and identification results larger than the RSSI threshold value are reported. The method solves the problem of misjudgment caused by reporting of the identification result due to the long-distance multipath effect to a certain extent. In actual use, a single RSSI threshold value cannot be designed for field test of all vehicles, only one uniform RSSI threshold value can be set, and the problem that the vehicle identification ranges of the RFID tags are inconsistent cannot be thoroughly solved by the method. When the RSSI threshold is set too high, a vehicle with poor performance needs a very short distance to be identified, and when the RSSI threshold is set too low, a misjudgment situation that a following vehicle identifies and reads the entering of a preceding vehicle occurs. Meanwhile, the performance of the RFID tag is reduced to a certain extent after the RFID tag is used for a long time, and the RSSI value is reduced continuously; correspondingly, the RSSI threshold value in the system also needs to be updated and adjusted down frequently, which brings great troubles to field construction maintenance and system reliability.
Disclosure of Invention
Based on the above, a self-learning method of the RSSI threshold value in the access control management scene is provided, and the adopted technical scheme is as follows:
a self-learning method of RSSI threshold value in access control management scene, updating RSSI threshold value of a car includes the following steps:
step 1, when the automobile passes through the access control system for the nth time, reading data in an RFID tag placed on the automobile by an RFID reading device, recording an RSSI value at the moment, and judging whether the automobile passing data is valid or not based on the RSSI value;
step 2, when the vehicle passing data is valid, recording the RSSI values of other vehicles measured within set time, and finding out the maximum value Snmax;
Step 3. based on SnmaxAnd a preset threshold SmaxCalculating the latest RSSI threshold value S after the nth vehicle passing of the vehiclen。
Further, at the initial moment, a uniform RSSI maximum value S is set for all vehicles according to experiencemax。
Further, at the initial time, a uniform initial RSSI threshold value S is set for all vehicles according to experience0。
Further, in step 1, when the measured RSSI value is greater than or equal to the threshold value S stored in the previous timen-1And judging that the vehicle passing data is valid.
Further, the time set in step 2 was 1 minute.
Further, the threshold S is updated in step 3nWhen is, if SnmaxGreater than SmaxThen, the calculation formula is:
Sn=Smax*0.3+S0*0.7
otherwise, the calculation formula is:
Sn=Snmax*0.3+S0*0.7
wherein S0Is the set initial threshold value of the automobile.
Compared with the prior art, the invention has the beneficial effects that: the RSSI threshold value of the vehicle is updated by comparing the RSSI value reported in real time with the RSSI threshold value at the previous moment, so that the problem that the RSSI threshold value needs to be manually adjusted individually for different vehicles in the same reading control range is solved. The method provided by the invention can be used in an access control management system based on the RFID technology, and solves the problems of missed reading, follow-up reading and misreading of vehicle identification when the vehicle coverage is inconsistent after the RFID tag is installed.
Drawings
Fig. 1 is a flow chart of a RSSI threshold self-learning method.
Detailed Description
In the present embodiment, the hardware and systems used include RFID tags, RFID reading devices, and data processing systems.
As shown in fig. 1, the RSSI threshold self-learning method provided by the present invention comprises the steps of:
step 1, setting initial values in a data processing system, specifically setting a uniform RSSI maximum value S for all vehicles according to experiencemaxSetting a uniform initial RSSI threshold value S for all vehicles according to experience0;
Step 2, when the RFID reading equipment reads the RFID label placed on the vehicle A for the first time, the RSSI value at the moment is recorded, and when the RSSI value is more than or equal to S0The overtime vehicle passing data is valid;
step 3, recording the RSSI values of other vehicles measured within 1 minute after the vehicle is started to be detected, and finding out the maximum value S in the RSSI values1max;
Step 4, calculating the latest RSSI threshold value S after the 1 st vehicle passing1If S is1maxGreater than SmaxThen, the calculation formula is:
S1=Smax*0.3+S0*0.7
otherwise, the calculation formula is:
S1=S1max*0.3+S0*0.7
after the calculation, the RSSI threshold of vehicle a in the data processing system is updated.
The subsequent RSSI value updating process is the same as the above steps, that is, when the vehicle a enters the access control system for the nth time, the RSSI threshold value updating process is as follows:
step 5, when the RFID reading equipment reads the RFID label placed on the vehicle A for the nth time, the RSSI value at the moment is recorded, and when the RSSI value is more than or equal to Sn-1The overtime vehicle passing data is valid;
and 6, recording the RSSI values of other vehicles measured within 1 minute after the vehicle is started to be detected, and finding out the maximum value Snmax;
Step 7, calculating the latest RSSI threshold value S after the nth vehicle passingnIf S isnmaxGreater than SmaxThen, the calculation formula is:
Sn=Smax*0.3+S0*0.7
otherwise, the calculation formula is:
Sn=Snmax*0.3+S0*0.7
after the calculation, the RSSI threshold of vehicle a in the data processing system is updated.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and should not be taken as limiting the invention, so that any modifications, equivalents, improvements and the like, which are within the spirit and principle of the present invention, should be included in the scope of the present invention.