The present invention relates to a method and device for rapid sensitivity detection, and in particular to a method and device for rapid detection of sensitivity of a wireless radio-frequency receiver. The present invention belongs to the fields of wireless radio-frequency communication, electronic measurement, automatic control and detection, or other associated fields.
The receiver is a basic component of a mobile phone, a notebook computer and various wireless apparatuses. The wireless apparatuses must be subjected to various performance detections, including the detection of sensitivity of the receiver, during research-development and production. The sensitivity of the receiver is generally determined by detecting the packet error rate. The packet error rate is a ratio of the quantity of error data packets to the total quantity of transmitted data packets after signals are received by the receiver, and it is generally expressed as a percentage. The determination of the sensitivity of the receiver is very necessary and important, especially in modern digital communication systems. Due to the influence of difference among analog devices, there are great differences among the sensitivity of wireless receivers of the same type. During the sensitivity detection of the receiver, in order to measure and obtain the sensitivity of the single wireless receiver, detectors usually need to start the packet error rate detection from a certain received power and continuously vary received power values of the receiver, till the detection result meets a target packet error rate, thereby obtaining the actual sensitivity. Meanwhile, during each detection of sensitivity of the receiver, the detectors need to detect a large quantity of data packets in order to obtain reliable packet error rate estimated values. At this point, the whole detection process is tedious, is full of repeatability and includes a large quantity of unnecessary detection. Such detection method of continuously varying the received power of a receiving end involves a large amount of work, and the working efficiency of the detectors is reduced. During industrial production, there is a need to reduce the number of detections in order to shorten the detection time of each receiver and improve the detection efficiency of the detectors.
In order to overcome the above-mentioned problem of low detection efficiency caused by a large number of unnecessary detections, the present disclosure provides a method and device for implementing rapid detection of sensitivity of a wireless radio-frequency receiver.
In one aspect, the technical solution of the present disclosure provides a method for rapidly detecting sensitivity of a wireless radio-frequency receiver. The method comprises the following steps: setting a detection range, and ensuring that a packet error rate estimation range corresponding to received power in the detection range includes a target packet error rate; based on the detection range, determining the quantity of data packets needing to be detected for packet error rate detection under a confidence level condition; narrowing down/searching the detection range, deciding a variable adjustment quantity of the received power according to packet error rate estimated value detection results, and further deciding the received power during next narrowing down/searching of the detection range; and if the absolute value of a difference value between the detected packet error rate estimated value and the target packet error rate is smaller than a precision threshold, utilizing the received power corresponding to the estimated packet error rate as the sensitivity of the wireless radio-frequency receiver.
As an improvement on the method for rapid detection of sensitivity of the wireless radio-frequency receiver, the step of setting a detection range comprises: on the basis that the packet error rate of the wireless radio-frequency receiver exhibits a trend of monotone variation along with the increasing of the received power of the receiver, obtaining an upper limit value and a lower limit value of the packet error rate respectively corresponding to an upper limit value and a lower limit value of the received power in the detection range; and determining that the target packet error rate is between the obtained upper limit value and the lower limit value of the packet error rate.
As a further improvement on the method for rapid detection of sensitivity of the wireless radio-frequency receiver, the step of narrowing down/searching the detection range comprises: iteratively selecting or adjusting the received power in the detection range till the absolute value of the difference between the detected packet error rate estimated value corresponding to the selected or adjusted received power and the target packet error rate is smaller than an approximated threshold.
Preferably, the step of narrowing down/searching the detection range comprises: in an iteration process, randomly selecting the received power and adjusting the speed at which the randomly selected received power converges toward the target received power according to the currently detected packet error rate estimated value and the difference value between the currently detected packet error rate estimated value and the target packet error rate.
Preferably, the step of narrowing down/searching the detection range comprises: in the iteration process, utilizing a dichotomy and/or exponential adjustment quantity function, and calculating a next selected or adjusted received power according to the previously selected received power.
Preferably, the step of narrowing down/searching the detection range comprises: in the detection range, fitting at least two received power values and corresponding detected packet error rates to obtain a packet error rate-received power curve function, calculating a received power estimated value by utilizing the fitted packet error rate-received power curve function and the target packet error rate, detecting a packet error rate estimated value by utilizing the calculated received power estimated value, combining it with the new detected packet error rate estimated value to update the packet error rate-received power curve function and re-calculate a received power estimated value, and carrying out iteration sequentially till the absolute value of a difference value between the detected packet error rate estimated value and the target packet error rate is smaller than the approximated threshold.
As a further improvement on the method for rapid detection of sensitivity of the wireless radio-frequency receiver, the step of determining the quantity of data packets needing to be detected for packet error rate detection under a confidence level condition comprises: detecting multiple received power values in the detection range, and detecting packet error rates at the multiple received powers, thereby fitting a packet error rate-received power curve; in the case of approximating the target packet error rate step by step by utilizing the dichotomy, obtaining a mathematic correspondence relation between the quantity of data packets needing to be detected and a probability corresponding to the target packet error rate and detected as correct by utilizing the fitted packet error rate-received power curve; and finally obtaining the quantity of the data packets needing to be detected that is required by the probability corresponding to the target packet error rate, achieving a preset value and detected as correct.
As a further improvement on method for rapid detection of sensitivity of the wireless radio-frequency receiver, the step of determining the quantity of data packets needing to be detected for packet error rate detection under a confidence level condition comprises: detecting multiple received powers in the detection range, and detecting packet error rates at the multiple received powers, thereby fitting a packet error rate-received power curve; performing calculation by utilizing the fitted packet error rate-received power curve, thereby obtaining a packet error rate estimated value at any one received power; and calculating the optimal sending quantity of packets at the current received power according to the estimated packet error rate at the current received power and the preset target confidence level.
As a further improvement on the method for rapid detection of sensitivity of the wireless radio-frequency receiver, in a detection range narrowing down/searching process, the quantity of data packets needing to be detected that are utilized in the detection range is constant; or the quantity of the data packets needing to be detected is adjusted in real time according to the selected or adjusted received power values.
In another aspect, the present disclosure provides a device for rapidly detecting sensitivity of a wireless radio-frequency receiver. The device comprises a processor and a computer readable storage medium, wherein the computer readable storage medium stores instructions and is used for helping the processor to perform the following steps: setting a detection range, and ensuring that a packet error rate estimation range corresponding to received power in the detection range includes a target packet error rate; based on the detection range, determining the quantity of data packets needing to be detected for packet error rate detection under a confidence level condition; narrowing down/searching the detection range, deciding a variable adjustment quantity of the received power according to packet error rate estimated value detection results, and further deciding the received power during next narrowing down/searching of the detection range; and if the absolute value of a difference value between the detected packet error rate estimated value and the target packet error rate is smaller than a precision threshold, utilizing the received power corresponding to the estimated packet error rate as the sensitivity of the wireless radio-frequency receiver.
Furthermore, the instructions stored in the device for rapid detection of sensitivity of the wireless radio-frequency receiver further can help the processor to perform any steps of the above detection method.
The method and device for rapid detection of sensitivity of the wireless radio-frequency receiver has the beneficial effects that by utilizing the preferable iterative approximation algorithms, received signal power at the target packet error rate is rapidly detected, and then the sensitivity of the receiver is obtained, and the detection range is narrowed down; according to the probability calculation method, the quantity of data packets needing to be detected during each packet error rate measurement under a certain confidence level condition is obtained, so that the sending quantity of packets is greatly reduced and a large amount of measurement time is saved; and on the premise of ensuring the detection precision, the detection efficiency of detectors is improved, the working efficiency of the industrial detection field is improved, and the production costs is reduced.
A person of ordinary skill in the art will understand that the following accompanying drawings are merely meant to be illustrative, but not to limit the scope of the present invention in any manner, wherein:
A method for rapid sensitivity detection for a wireless radio-frequency receiver comprises the following steps: setting a detection range, to allow a packet error rate estimation range corresponding to received power in the detection range to comprise a target packet error rate; narrowing down the detection range through a searching mechanism and selecting the quantity of packets to be sent during packet error rate detection through a packet-sending quantity setting mechanism; and by utilizing an estimated packet error rate approximating the target packet error rate under a certain condition, detecting the received power as the sensitivity of the wireless radio-frequency receiver. The following describes setting the detection range, the searching mechanism and the packet-sending quantity setting mechanism in details through multiple embodiments.
1. Setting of a Detection Range
In most wireless communication apparatus modules, a functional relation curve of packet error rate of a receiving end apparatus and the received power of a receiver exhibits a monotone decreasing trend. For receivers of apparatuses of different types, specific functional relation curves of the packet error rate and the received powers may be different from each other, but have the same monotone trend. Exemplary packet error rate-received power curves are shown in the
2. Searching Mechanism
A main implementation manner of the searching mechanism provided by the present invention can be described as: an adjustment quantity is obtained through computation with an initial estimation result and thus a next estimated sensitivity (or received power) is obtained. During each search, the received power of the receiver is adjusted, and the adjustment quantity is variable, that is, each adjustment quantity of the received power is determined by the already-existing detection data result, and a received power value utilized in the next search is determined by such new adjustment quantity of the received power and the value of the received power at that time.
According to difference of the reference information, the adjustment quantity can be calculated by the following methods:
Method 1: Stochastic Approximation Method
When the packet error rate of the receiver is being measured, a measured value can be taken as a mean which is a random variable of the packet error rate of a given received power, that is, the measured value of the packet error rate and the received power are two associated random variables, wherein a target packet error rate-sensitivity point is a target point needed.
Assuming the received power during K-th detection is powerK and the received power during the (K−1)-th detection is powerK−1, the sensitivity power* of the receiver can be obtained by estimating and sequentially approximating based on the following equation:
powerK=powerK−1+αK−1(powerK−1).
Wherein, αK−1 is a coefficient meeting strict-control convergence speed limiting conditions.
By increasing the number of detection, the received powers can be continuously revised, such that the packet error rate estimated value approximates to the target packet error rate p step by step till |(powerM)−p|<ε1, and at this point, the received power is the sensitivity of the receiver. ε1 is precision degree and is determined by product requirements. Furthermore, even if random fluctuation causes an error revision direction in an iteration calculation process, such error revision direction does not infinitely continue finally and is certainly revised to a correct direction in due time. Moreover, the larger the error is, the larger the possibility of being revised is. Therefore, rapid convergence is achieved, and the number of detections is reduced.
Method 2: Curve-Fitting-Based Iterative Approximation Method
The function (power) is obtained by measuring and fitting packet error rates over m(m>=2) received powers, and is used for inferring a target point, thereby obtaining an initial estimated value of the sensitivity. The initial estimated value of the sensitivity is used for detecting the packet error rate, thereby obtaining new detection data. By combining with the new detection data, a curve fitting function is updated, and the target point is inferred again; and finally the sensitivity of the receiver is obtained by sequential iteration. Referring to the flow chart of the
step 1: measuring packet error rates over m(m>=2) received powers, wherein sufficient data packets are utilized during each measurement in order to obtain the precise packet error rate; and utilizing a curve fitting method to obtain a packet error rate-received power curve (powerm);
step 2: calculating the following equation:
powerm+1=powerm−(powerm)/(powerm)
wherein (powerm); represents a first derivative function of the function (powerm); thereby obtaining a first estimated value powerm+1 of the sensitivity of the receiver; and adjusting a received power value of the receiver, and assuming the received power value to be powerm+1, thereby measuring and obtaining a corresponding packet error rate estimated value P+1(powerm+1); and
step 3: judging whether the packet error rate of the sensitivity estimated value meets P+1(powerm+1)−p|<ε1; if no, assuming m=m+1, and returning to step 1; and if yes, determining that the powerm+1 is the sensitivity of the receiver.
Method 3: Presetting of an Adjustment Quantity Function
The packet error rate of the receiving end apparatus always exhibits a general trend of monotone decreasing along with the increasing of the received power of the receiver. Based on such monotonicity alone, when the characteristics of a packet error rate-received power curve of the receiver do not need to be additionally considered, and after each search is completed, a new adjustment quantity of the received power or a received power value utilized in the next search can be obtained by calculating a certain expression, and variables in the expression are associated with received power values or adjustment quantities of the received power during previous one or more searches. Such expression can be obtained according to the dichotomy principle, that is, a received power value utilized in the next search is a mid-value of previous twice useful power values; and the expression can also be a certain exponential function, that is, the new adjustment quantity of the received power and the adjustment times have an exponential relation and the like.
In the flow chart of
The dichotomy comprises the following calculation steps:
The exponential function comprises the following calculating steps:
3. Packet-Sending Quantity Setting Mechanism
The setting of the packet-sending quantity can be decided by two different mechanisms, and results of the two different mechanisms ensure that the packet error rate meets a certain probability requirement (such as the confidence level of 95%). The first mechanism is that: according to a packet error rate-received power curve, the packet-sending quantity suitable for a certain power range and meeting a certain probability requirement is obtained, and this packet-sending quantity is a constant value.
In some embodiments, the quantity of data packets to be detected that are utilized in the detection range is constant, or the quantity of the data packets needing to be detected is adjusted in real time according to the selected or adjusted received power values. Therefore, the packet-sending quantity can be set to be constant or variable, and a calculation method of the sent packet quantity in specific embodiments is as follows.
Calculation Method of the Constant Sent Packet Quantity
firstly various power values are detected, thereby obtaining corresponding packet error rates; a packet error rate curve of the receiving end apparatus is estimated by utilizing a curve fitting method; and in the case of approximating a target packet error rate step by step by utilizing the dichotomy, a mathematic correspondence relation between the quantity of the packets needing to be detected and a probability corresponding to the target packet error rate and detected as correct is obtained by utilizing the curve information;
a calculation expression of the probability detected as correct can be obtained according to the characteristics of the dichotomy; the packet-sending quantity during each detection is assumed to be Ni, a probability value of >p is pi, the detection correction probability is Pc, and the other parameters are the same as the above mentioned;
when the dichotomy is utilized, a power upper limit value is assumed to be powerup and a power lower limit value is assumed to be powerlow, thereby obtaining the maximum number of detections to be
wherein ε2 represent the precision degree and is the same as ε2 in the calculation steps of the dichotomy in the Method 3: presetting of an adjustment quantity function;
The calculation steps are as follows:
Step 1: firstly setting N=100, and utilizing the above equation set, thereby obtaining Pc (N=100);
Step 2: secondly setting N=200, and utilizing the above equation set, thereby obtaining Pc (N=200);
Step 3: performing analogy on the step 1 and the step 2, and continuously increasing the value of N till N=10000;
Step 4: utilizing a curve fitting or interpolation method to obtain a Pc-N curve (whose horizontal coordinate is N, and longitudinal coordinate is Pc); and
Step 5: according to the production requirements, determining Pc (for example, when Pc>75%, the corresponding N value is acceptable), and according to the Pc-N curve, obtaining the minimum N value meeting the requirements.
The
Calculation Method of the Variable Packet-Sending Quantity
In most cases, the packet error rate meets binomial distribution, and it can be known that its statistical property can be approximated to normal distribution based on the central limit theory. According to the algorithms, mathematical correspondence relations between the packet-sending quantity, the confidence level and the packet error rate can be obtained (by utilizing different types of binomial intervals, the specific correspondence relation expressions will be different, but have no great differences); in order to obtain the packet-sending quantity utilized during each search, firstly multiple received power values need to be selected to obtain corresponding packet error rates (at this point, the quantity of the packets needing to be detected should be relatively large in order to obtain a relatively more precise packet error rate estimated value); and then according to the data points, by utilizing the curve fitting or interpolation method and the like, a packet error rate-received power curve chart is obtained, that is, a corresponding packet error rate estimated value at any one received power is obtained; and according to the estimated packet error rate at the current received power and the preset target confidence level, the optimal sending quantity of packets at the current received power can be determined. Specific calculation method is as follows.
Assuming a bilateral confidence interval is utilized, such as the Agresti-Coull (AC) confidence interval, its interval length is 2Δ, and the packet-sending quantity is:
If the confidence level is selected as 95%, α=0.05, and Z+/ZZ=3.84˜4, wherein the calculation of the parameter Δ has two selections, (1) Δ=p*, ρε(0,1) or (2) Δ=ω0/2 is a constant.
According to some implementation requirements, the embodiments of the present invention may be implemented in hardware or software. Digital storage mediums on which electrically readable control signals are stored may be utilized, and the digital storage mediums cooperate with (or is able to cooperate with) a programmable computer system to perform the corresponding methods. In one embodiment, the detection device provided by the present invention may comprise a processor and a computer readable storage medium, and the computer readable storage medium stores instructions and is used for helping the processor to perform the above-mentioned methods and calculation steps of the present invention.
Merely preferred embodiments of the present invention are described herein, and the present invention is not limited thereto. Embodiments should fall within the protection scope of the present invention as long as they achieve the technical effects of the present invention using the same manner. Various modifications or changes may be made to the technical solution and/or implementation manners of the embodiments within the protection scope of the prevent invention.
Number | Date | Country | Kind |
---|---|---|---|
201510713741.9 | Oct 2015 | CN | national |
This application is a continuation of International Application PCT/CN2015/093565, filed on Nov. 2, 2015, which claims priority to Chinese Application No. 201510703741.9, filed Oct. 28, 2015, the contents of each of which are hereby incorporated by reference.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2015/093565 | Nov 2015 | US |
Child | 15411287 | US |