CN110007297B - Method and device for measuring distance between transmitter and receiver - Google Patents

Method and device for measuring distance between transmitter and receiver Download PDF

Info

Publication number
CN110007297B
CN110007297B CN201910204519.4A CN201910204519A CN110007297B CN 110007297 B CN110007297 B CN 110007297B CN 201910204519 A CN201910204519 A CN 201910204519A CN 110007297 B CN110007297 B CN 110007297B
Authority
CN
China
Prior art keywords
real
gain control
temperature
rssi
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910204519.4A
Other languages
Chinese (zh)
Other versions
CN110007297A (en
Inventor
杨辉
米杨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Star Net Ruijie Networks Co Ltd
Original Assignee
Beijing Star Net Ruijie Networks Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Star Net Ruijie Networks Co Ltd filed Critical Beijing Star Net Ruijie Networks Co Ltd
Priority to CN201910204519.4A priority Critical patent/CN110007297B/en
Publication of CN110007297A publication Critical patent/CN110007297A/en
Application granted granted Critical
Publication of CN110007297B publication Critical patent/CN110007297B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S11/00Systems for determining distance or velocity not using reflection or reradiation
    • G01S11/02Systems for determining distance or velocity not using reflection or reradiation using radio waves
    • G01S11/06Systems for determining distance or velocity not using reflection or reradiation using radio waves using intensity measurements

Abstract

The invention provides a method and a device for measuring the distance between a transmitter and a receiver, wherein the method comprises the following steps: setting n temperature acquisition points, wherein the temperature of each temperature acquisition point is within a preset temperature range; at each temperature acquisition point, continuously transmitting radio frequency signals for t times by using a reference source, and acquiring a signal strength RSSI (received signal strength indicator) of the receiver and a real-time transmission gain control value of a transmitter, wherein the transmission power of the transmitter is stable and the radio frequency power output to the receiver by the reference source is stable; establishing a corresponding model between the signal strength RSSI and the real-time transmission gain control value according to the signal strength RSSI and the real-time transmission gain control value acquired t times at each temperature acquisition point; determining a temperature deviation compensation value according to the corresponding model; determining a distance between the transmitter and the receiver according to the temperature deviation compensation value. The beneficial effects are that, do not need extra temperature sensor, the scheme is with low costs.

Description

Method and device for measuring distance between transmitter and receiver
Technical Field
The present invention relates to the field of data communication, and in particular, to a method and apparatus for measuring a distance between a transmitter and a receiver.
Background
The Received Signal Strength Indication (RSSI) is an average Signal Strength Indication of the receiver input obtained by a receiver measurement circuit in a radio frequency communication system. The received signal strength indication is an optional part of the radio transmission layer and is used to determine the link quality of the transceiver system. The relationship between the transmit power and the receive power of a wireless signal can be expressed as: r (dbm) ═ a-10nlgr, R is the received signal strength indicator value, a is the received signal power at 1m distance of signal transmission, R is the distance between the transceiver units, and n is the propagation factor. The distance between the transmitter and the receiver can be estimated by obtaining the received signal strength indication value.
Changes in the ambient temperature can affect the propagation characteristics of the rf transceiver link, the electrical parameters of the rf transceiver, and so on. Thereby causing variation in RSSI characteristics and making the result of distance calculation between the transceiver units inaccurate. For the accuracy of the distance calculation result between the transmitter and the receiver, the temperature characteristic of the RSSI needs to be compensated.
The prior art compensates the temperature characteristic of the received signal strength indication of the receiver, and the main solutions at present are as follows:
one, direct measurement ambient temperature compensation
The method includes the steps of directly measuring the ambient temperature, selecting a temperature compensation coefficient from prestored temperature compensation coefficients corresponding to the normal temperature, the low temperature and the high temperature according to the current temperature, and performing temperature compensation on a Received Signal Strength Indication (RSSI) output signal according to the selected temperature compensation coefficient, so that the power of an RSSI input signal is obtained.
Second, compensation is carried out by optimizing circuit design
The circuit scheme and circuit parameters are optimized to improve the stability of the received signal strength measurements to temperature variations.
The prior art has problems in that the compensation method of directly measuring the ambient temperature is not effective and has a hysteresis effect due to uncertainty of the temperature field distribution and time delay of heat conduction. The compensation effect of the compensation method for optimizing the circuit design still has a space for improvement.
Disclosure of Invention
In order to solve the technical problem, the embodiment of the invention adopts the following technical scheme:
a method of measuring a distance between a transmitter and a receiver for use in a radio frequency communication unit having a receiver and a transmitter, comprising:
setting n temperature collection points, wherein n is a natural number greater than or equal to 2, and the temperature of each temperature collection point is within a preset temperature range;
at each temperature acquisition point, continuously transmitting radio frequency signals for t times by using a reference source, and acquiring a signal strength RSSI (received signal strength indicator) of the receiver and a real-time transmission gain control value of a transmitter, wherein the transmission power of the transmitter is stable, the radio frequency power output to the receiver by the reference source is stable, and t is a natural number greater than or equal to 2;
establishing a corresponding model between the signal strength RSSI and the real-time transmission gain control value according to the signal strength RSSI and the real-time transmission gain control value acquired t times at each temperature acquisition point;
determining a temperature deviation compensation value according to the corresponding model;
determining a distance between the transmitter and the receiver according to the temperature deviation compensation value.
Optionally, before the step of establishing a corresponding model between the RSSI and the real-time transmission gain control value according to the RSSI and the real-time transmission gain control value acquired t times at each temperature acquisition point, the method further includes:
averaging the RSSI of the receiver acquired t times at each temperature acquisition point;
averaging the real-time transmission gain control values of the transmitter acquired t times at each temperature acquisition point;
the step of establishing a corresponding model between the signal strength RSSI and the real-time transmission gain control value according to the signal strength RSSI and the real-time transmission gain control value acquired t times at each temperature acquisition point specifically comprises the following steps:
and establishing a corresponding model between the signal strength RSSI and the real-time transmission gain control value according to the average value of the signal strength RSSI and the average value of the real-time transmission gain control value acquired for t times at each temperature acquisition point.
Optionally, the step of averaging the RSSI of the receiver acquired t times at each temperature acquisition point specifically includes:
the RSSI of the receiver acquired t times at each temperature acquisition point is averaged by equation (1):
Figure BDA0001998542510000031
wherein i is 1,2, …, n; j ═ 1,2, …, t; ri,jThe RSSI of the receiver collected for the j time at the ith temperature collection point;
the step of averaging the real-time transmission gain control values of the transmitter acquired t times at each temperature acquisition point specifically comprises:
averaging the real-time transmit gain control values of the transmitter acquired t times at each temperature acquisition point by equation (2):
Figure BDA0001998542510000032
wherein i is 1,2, …, n; j ═ 1,2, …, t; t isi,jThe real-time emission gain control value of the emitter acquired at the jth temperature acquisition point is acquired;
the step of establishing a corresponding model between the signal strength RSSI and the real-time transmission gain control value according to the average value of the signal strength RSSI and the average value of the real-time transmission gain control value acquired t times at each temperature acquisition point specifically comprises the following steps:
establishing a corresponding model (3) between the signal strength RSSI and the real-time transmission gain control value according to the average value of the signal strength RSSI and the average value of the real-time transmission gain control value acquired for t times at each temperature acquisition point:
Figure BDA0001998542510000033
wherein s is a non-zero natural number; k is 1,2, …, s; a iskTo fit polynomial coefficients, Tk-1To the fitting polynomial (k-1 power of T).
Optionally, the step of determining the temperature deviation compensation value according to the corresponding model specifically includes:
fitting the corresponding model to obtain a monotonous relation curve formula (4) of the mean value of the RSSI along with the mean value change of the real-time transmission gain control value;
Figure BDA0001998542510000041
wherein the content of the first and second substances,
Figure BDA0001998542510000042
to be an estimate of the rf unit receiver RSSI to be compensated,
Figure BDA0001998542510000043
for the purpose of the coefficient estimation values,
and carrying out regression coefficient significance test on the monotonic relation curve to obtain an optimal model formula (5) fitted by the corresponding model:
Figure BDA0001998542510000044
wherein { m } - {1,2, …, s } - { l };
Figure BDA0001998542510000045
the estimated value of the RSSI of the radio frequency unit receiver to be compensated after the significance test;
Figure BDA0001998542510000046
a coefficient estimate retained after significance testing; t ism-1Multiple entries retained after significance testing; and l is a culled irrelevant or extremely weakly relevant multiple term subscript.
Substituting the optimal model into a formula (6) to obtain a temperature deviation compensation value:
Figure BDA0001998542510000047
wherein R isrefThe receiver receives the RSSI value output by the reference source for a particular constant temperature.
Delta R is a temperature deviation compensation value; g (T) indicates that the temperature offset compensation value is a function of the real-time transmit gain control value T;
optionally, the step of determining the distance between the transmitter and the receiver according to the temperature deviation compensation value specifically includes:
obtaining the current measured real-time emission gain control value, substituting the current measured real-time emission gain control value into a formula (6) to calculate the current temperature deviation compensation value delta Rreal
Obtaining the RSSI value R of the current measurementrealThe currently measured RSSI value R is usedrealSubtracting the current temperature deviation compensation value DeltaRrealObtaining a temperature compensation result value;
substituting the temperature compensation result value into a relation formula (7) between the transmitting power and the receiving power of the wireless signal to calculate the distance r between the transmitter and the receiver;
Rreal-ΔRreal=A-10nlgr (7),
wherein A is the theoretical power of the received signal when the reference source establishes the transmitting power signal transmission distance of 1 meter, and n is the propagation factor.
The embodiment of the invention also provides a device for measuring the distance between a transmitter and a receiver, which is applied to a radio frequency communication unit with the receiver and the transmitter, and comprises the following components:
the device comprises a setting module, a temperature acquisition module and a control module, wherein the setting module is used for setting n temperature acquisition points, n is a natural number which is more than or equal to 2, and the temperature of each temperature acquisition point is within a preset temperature range;
the acquisition module is used for transmitting radio frequency signals by using a reference source for t times continuously at each temperature acquisition point, and acquiring the signal strength RSSI of the receiver and the real-time transmission gain control value of the transmitter, wherein the transmission power of the transmitter is stable, the radio frequency power output to the receiver by the reference source is stable, and t is a natural number greater than or equal to 2;
the establishing module is used for establishing a corresponding model between the signal strength RSSI and the real-time transmission gain control value according to the signal strength RSSI and the real-time transmission gain control value acquired t times at each temperature acquisition point;
the determining module is used for determining a temperature deviation compensation value according to the corresponding model;
and the distance measurement module is used for determining the distance between the transmitter and the receiver according to the temperature deviation compensation value.
Optionally, the apparatus further comprises:
the first calculation module is used for averaging the RSSI of the receiver acquired t times at each temperature acquisition point;
the second calculation module is used for averaging the real-time emission gain control values of the emitter acquired t times at each temperature acquisition point;
the establishing module is specifically configured to:
and establishing a corresponding model between the signal strength RSSI and the real-time transmission gain control value according to the average value of the signal strength RSSI and the average value of the real-time transmission gain control value acquired for t times at each temperature acquisition point.
Optionally, the first calculating module is specifically configured to:
the RSSI of the receiver acquired t times at each temperature acquisition point is averaged by equation (1):
Figure BDA0001998542510000061
wherein i is 1,2, …, n; j ═ 1,2, …, t; ri,jThe RSSI of the receiver collected for the j time at the ith temperature collection point;
the second calculation module is specifically configured to:
averaging the real-time transmit gain control values of the transmitter acquired t times at each temperature acquisition point by equation (2):
Figure BDA0001998542510000062
wherein i is 1,2, …, n; j ═ 1,2, …, t; t isi,jThe real-time emission gain control value of the emitter acquired at the jth temperature acquisition point is acquired;
the establishing module is specifically configured to:
establishing a corresponding model (3) between the signal strength RSSI and the real-time transmission gain control value according to the average value of the signal strength RSSI and the average value of the real-time transmission gain control value acquired for t times at each temperature acquisition point:
Figure BDA0001998542510000063
wherein s is a non-zero natural number; k is 1,2, …, s; a iskTo fit polynomial coefficients, Tk -1Is a fitting polynomial.
Optionally, the determining module is specifically configured to:
fitting the corresponding model to obtain a monotonous relation curve formula (4) of the mean value of the RSSI along with the mean value change of the real-time transmission gain control value;
Figure BDA0001998542510000064
wherein the content of the first and second substances,
Figure BDA0001998542510000065
to be an estimate of the rf unit receiver RSSI to be compensated,
Figure BDA0001998542510000066
for the purpose of the coefficient estimation values,
and carrying out regression coefficient significance test on the monotonic relation curve to obtain an optimal model formula (5) fitted by the corresponding model:
Figure BDA0001998542510000071
wherein { m } - {1,2, …, s } - { l };
Figure BDA0001998542510000072
the estimated value of the RSSI of the radio frequency unit receiver to be compensated after the significance test;
Figure BDA0001998542510000073
a coefficient estimate retained after significance testing; t ism-1Multiple entries retained after significance testing; and l is a culled irrelevant or extremely weakly relevant multiple term subscript.
Substituting the optimal model into a formula (6) to obtain a temperature deviation compensation value:
Figure BDA0001998542510000074
wherein, the receiver receives the RSSI value output by the reference source under a specific constant temperature.
Delta R is a temperature deviation compensation value; g (T) indicates that the temperature offset compensation value is a function of the real-time transmit gain control value T;
optionally, the ranging module is specifically configured to:
obtaining the current measured real-time emission gain control value, substituting the current measured real-time emission gain control value into a formula (6) to calculate the current temperature deviation compensation value delta Rreal
Obtaining the RSSI value R of the current measurementrealThe currently measured RSSI value R is usedrealSubtracting the current temperature deviation compensation value DeltaRrealObtaining a temperature compensation result value;
substituting the temperature compensation result value into a relation formula (7) between the transmitting power and the receiving power of the wireless signal to calculate the distance r between the transmitter and the receiver;
Rreal-ΔRreal=A-10nlgr (7),
wherein A is the theoretical power of the received signal when the reference source establishes the transmitting power signal transmission distance of 1 meter, and n is the propagation factor.
The embodiment of the invention has the beneficial effect of making up the defects of accuracy problem and hysteresis effect caused by uncertainty of temperature field distribution and time delay of heat conduction in the direct measurement environment temperature compensation method in the prior art. The existing parameters of the radio frequency unit to be compensated are used for compensation, a temperature sensor is not required to be additionally arranged, and the scheme cost is low.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart of a method provided by an embodiment of the present invention;
FIG. 2 is a flow chart of a method provided by an embodiment of the present invention;
fig. 3 is a diagram illustrating a structure of an apparatus according to an embodiment of the present invention.
Fig. 4 is a diagram illustrating a structure of an apparatus according to an embodiment of the present invention.
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.
An embodiment of the present invention provides a method for measuring a distance between a transmitter and a receiver, which is applied to a radio frequency communication unit having a receiver and a transmitter, as shown in fig. 1, and includes:
s101, setting n temperature collection points, wherein n is a natural number greater than or equal to 2, and the temperature of each temperature collection point is within a preset temperature range;
s103, at each temperature acquisition point, continuously transmitting radio frequency signals for t times by using a reference source, and acquiring a signal strength RSSI (received signal strength indicator) of the receiver and a real-time transmission gain control value of a transmitter, wherein the transmission power of the transmitter is stable, the radio frequency power output to the receiver by the reference source is stable, and t is a natural number greater than or equal to 2;
s105, establishing a corresponding model between the RSSI and the real-time transmission gain control value according to the RSSI and the real-time transmission gain control value acquired t times at each temperature acquisition point;
s107, determining a temperature deviation compensation value according to the corresponding model;
and S109, determining the distance between the transmitter and the receiver according to the temperature deviation compensation value.
Optionally, in an embodiment of the present invention, before step S103, as shown in fig. 2, the method further includes:
s1031, averaging RSSI of the receiver acquired t times at each temperature acquisition point;
s1033, averaging the real-time emission gain control values of the emitter acquired t times at each temperature acquisition point;
correspondingly, the step S105 specifically includes:
and establishing a corresponding model between the signal strength RSSI and the real-time transmission gain control value according to the average value of the signal strength RSSI and the average value of the real-time transmission gain control value acquired for t times at each temperature acquisition point.
Optionally, in an embodiment of the present invention, the step S1031 specifically includes:
the RSSI of the receiver acquired t times at each temperature acquisition point is averaged by equation (1):
Figure BDA0001998542510000091
wherein i is 1,2, …, n; j ═ 1,2, …, t; ri,jThe RSSI of the receiver collected for the j time at the ith temperature collection point;
step S1033 is specifically:
averaging the real-time transmit gain control values of the transmitter acquired t times at each temperature acquisition point by equation (2):
Figure BDA0001998542510000092
wherein i is 1,2, …, n; j ═ 1,2, …, t; t isi,jThe real-time emission gain control value of the emitter acquired at the jth temperature acquisition point is acquired;
the step S105 specifically includes:
establishing a corresponding model (3) between the signal strength RSSI and the real-time transmission gain control value according to the average value of the signal strength RSSI and the average value of the real-time transmission gain control value acquired for t times at each temperature acquisition point:
Figure BDA0001998542510000101
wherein s is a non-zero natural number; k is 1,2, …, s; a iskTo fit toPolynomial coefficient, Tk-1To the fitting polynomial (k-1 power of T).
Optionally, in an embodiment of the present invention, the step S107 specifically includes:
fitting the corresponding model to obtain a monotonous relation curve formula (4) of the mean value of the RSSI along with the mean value change of the real-time transmission gain control value;
Figure BDA0001998542510000102
wherein the content of the first and second substances,
Figure BDA0001998542510000103
to be an estimate of the rf unit receiver RSSI to be compensated,
Figure BDA0001998542510000104
for fitting the polynomial coefficient estimation values, optionally, the corresponding models may be fitted according to the least square principle (the basic method of regression analysis in probability statistics, i.e., selecting fitting coefficients according to the principle that the sum of squares of errors between the observed values and the fitting estimation values is minimum).
Performing a regression coefficient significance test on the monotonic relation curve (which is a basic method of regression coefficient test in probability statistics, namely, constructing a test hypothesis, a statistic, and a test level and then judging whether to reject or accept the test hypothesis), to obtain the optimal model formula (5) fitted by the corresponding model, wherein the specific way to obtain the optimal model formula (5) fitted by the corresponding model may be: selecting finite value s, and eliminating multiple items which are irrelevant or extremely weak relevant (the selection of the inspection level value in the regression coefficient significance inspection represents the size of the relevance, and the inspection level value is generally selected to be 0.05)
Figure BDA0001998542510000105
Wherein the content of the first and second substances,
Figure BDA00019985425100001010
then equation (5) can be obtained:
Figure BDA0001998542510000106
wherein { m } - {1,2, …, s } - { l };
Figure BDA0001998542510000107
the estimated value of the RSSI of the radio frequency unit receiver to be compensated after the significance test;
Figure BDA0001998542510000108
a coefficient estimate retained after significance testing; t ism-1Multiple entries retained after significance testing; and l is a culled irrelevant or extremely weakly relevant multiple term subscript.
Substituting the optimal model into a formula (6) to obtain a temperature deviation compensation value:
Figure BDA0001998542510000109
wherein R isrefIn order for the receiver to receive the RSSI value of the reference source output at a certain constant temperature, the certain constant temperature may be 20 degrees.
Delta R is a temperature deviation compensation value; g (T) indicates that the temperature offset compensation value is a function of the real-time transmit gain control value T;
optionally, in an embodiment of the present invention, the step S109 specifically includes:
obtaining a currently measured real-time transmit gain control value TrealThe currently measured real-time transmission gain control value T is usedrealSubstituting formula (6) to calculate the current temperature deviation compensation value delta Rreal
Obtaining the RSSI value R of the current measurementrealThe currently measured RSSI value R is usedrealSubtracting the current temperature deviation compensation value DeltaRrealObtaining a temperature compensation result value;
substituting the temperature compensation result value into a relation formula (7) between the transmitting power and the receiving power of the wireless signal to calculate the distance r between the transmitter and the receiver;
Rreal-ΔRreal=A-10nlgr (7),
wherein A is the theoretical power of the received signal when the reference source establishes the transmitting power signal transmission distance of 1 meter, and n is the propagation factor.
The embodiment of the invention has the beneficial effect of making up the defects of accuracy problem and hysteresis effect caused by uncertainty of temperature field distribution and time delay of heat conduction in the direct measurement environment temperature compensation method in the prior art. The existing parameters of the radio frequency unit to be compensated are used for compensation, a temperature sensor is not required to be additionally arranged, and the scheme cost is low.
An embodiment of the present invention further provides an apparatus for measuring a distance between a transmitter and a receiver, which is applied to a radio frequency communication unit having a receiver and a transmitter, as shown in fig. 3, and includes:
the setting module 301 is configured to set n temperature collection points, where n is a natural number greater than or equal to 2, and the temperature of each temperature collection point is within a preset temperature range;
an acquisition module 303, configured to transmit a radio frequency signal using a reference source for t consecutive times at each temperature acquisition point, and acquire a signal strength RSSI of the receiver and a real-time transmission gain control value of a transmitter, where transmission power of the transmitter is stable and radio frequency power output from the reference source to the receiver is stable, and t is a natural number greater than or equal to 2;
an establishing module 305, configured to establish a corresponding model between the RSSI and the real-time transmission gain control value according to the RSSI and the real-time transmission gain control value acquired t times at each temperature acquisition point;
a determining module 307, configured to determine a temperature deviation compensation value according to the corresponding model;
a ranging module 309, configured to determine a distance between the transmitter and the receiver according to the temperature deviation compensation value.
Optionally, in an embodiment of the present invention, as shown in fig. 4, the apparatus further includes:
a first calculating module 401, configured to average RSSI of the receiver acquired t times at each temperature acquisition point;
a second calculating module 403, configured to average the real-time transmission gain control values of the transmitter acquired t times at each temperature acquisition point;
the establishing module 305 is specifically configured to:
and establishing a corresponding model between the signal strength RSSI and the real-time transmission gain control value according to the average value of the signal strength RSSI and the average value of the real-time transmission gain control value acquired for t times at each temperature acquisition point.
Optionally, in an embodiment of the present invention, the first calculating module 401 is specifically configured to:
the RSSI of the receiver acquired t times at each temperature acquisition point is averaged by equation (1):
Figure BDA0001998542510000121
wherein i is 1,2, …, n; j ═ 1,2, …, t; ri,jThe RSSI of the receiver collected for the j time at the ith temperature collection point;
the second calculating module 403 is specifically configured to:
averaging the real-time transmit gain control values of the transmitter acquired t times at each temperature acquisition point by equation (2):
Figure BDA0001998542510000122
wherein i is 1,2, …, n; j ═ 1,2, …, t; t isi,jThe real-time emission gain control value of the emitter acquired at the jth temperature acquisition point is acquired;
the establishing module 305 is specifically configured to:
establishing a corresponding model (3) between the signal strength RSSI and the real-time transmission gain control value according to the average value of the signal strength RSSI and the average value of the real-time transmission gain control value acquired for t times at each temperature acquisition point:
Figure BDA0001998542510000131
wherein s is a non-zero natural number; k is 1,2, …, s; a iskTo fit polynomial coefficients, Tk-1To the fitting polynomial (k-1 power of T).
Optionally, the determining module 307 is specifically configured to:
fitting the corresponding model to obtain a monotonous relation curve formula (4) of the mean value of the RSSI along with the mean value change of the real-time transmission gain control value;
Figure BDA0001998542510000132
wherein the content of the first and second substances,
Figure BDA0001998542510000133
to be an estimate of the rf unit receiver RSSI to be compensated,
Figure BDA0001998542510000134
for coefficient estimation, optionally, the corresponding model may be fitted according to the least square principle (the basic method of regression analysis in probability statistics, that is, the fitting coefficient is selected according to the principle that the sum of the squares of the errors between the observed values and the fitting estimation values is the minimum).
Performing a regression coefficient significance test on the monotonic relation curve (which is a basic method of regression coefficient test in probability statistics, namely, constructing a test hypothesis, a statistic, and a test level and then judging whether to reject or accept the test hypothesis), and obtaining the optimal model formula (5) of the corresponding model fitting, wherein a specific way of obtaining the optimal model formula (5) of the corresponding model fitting may be: selecting finite value s, and eliminating multiple items which are irrelevant or extremely weak relevant (the selection of the inspection level value in the regression coefficient significance inspection represents the size of the relevance, and the inspection level value is generally selected to be 0.05)
Figure BDA0001998542510000135
Wherein the content of the first and second substances,
Figure BDA0001998542510000139
then equation (5) can be obtained:
Figure BDA0001998542510000136
wherein { m } - {1,2, …, s } - { l };
Figure BDA0001998542510000137
the estimated value of the RSSI of the radio frequency unit receiver to be compensated after the significance test;
Figure BDA0001998542510000138
a coefficient estimate retained after significance testing; t ism-1Multiple entries retained after significance testing; and l is a culled irrelevant or extremely weakly relevant multiple term subscript.
Substituting the optimal model into a formula (6) to obtain a temperature deviation compensation value:
Figure BDA0001998542510000141
wherein R isrefIn order for the receiver to receive the RSSI value of the reference source output at a certain constant temperature, the certain constant temperature may be 20 degrees.
Delta R is a temperature deviation compensation value; g (T) indicates that the temperature offset compensation value is a function of the real-time transmit gain control value T;
optionally, in an embodiment of the present invention, the ranging module 309 is specifically configured to:
obtaining a currently measured real-time transmit gain control value TrealThe currently measured real-time transmission gain control value T is usedreaSubstituting formula (6) to calculate the current temperature deviation compensation value delta Rreal
Obtaining the RSSI value R of the current measurementrealThe currently measured RSSI value R is usedrealSubtracting the current temperature deviation compensation value DeltaRrealObtaining a temperature compensation result value;
substituting the temperature compensation result value into a relation formula (7) between the transmitting power and the receiving power of the wireless signal to calculate the distance r between the transmitter and the receiver;
Rreal-ΔRreal=A-10nlgr (7),
wherein A is the theoretical power of the received signal when the reference source establishes the transmitting power signal transmission distance of 1 meter, and n is the propagation factor.
The embodiment of the invention has the beneficial effect of making up the defects of accuracy problem and hysteresis effect caused by uncertainty of temperature field distribution and time delay of heat conduction in the direct measurement environment temperature compensation method in the prior art. The existing parameters of the radio frequency unit to be compensated are used for compensation, a temperature sensor is not required to be additionally arranged, and the scheme cost is low.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (4)

1. A method of measuring a distance between a transmitter and a receiver, for use in a radio frequency communication unit having a receiver and a transmitter, comprising:
setting n temperature collection points, wherein n is a natural number greater than or equal to 2, and the temperature of each temperature collection point is within a preset temperature range;
at each temperature acquisition point, continuously transmitting radio frequency signals for t times by using a reference source, and acquiring a signal strength RSSI (received signal strength indicator) of the receiver and a real-time transmission gain control value of a transmitter, wherein the transmission power of the transmitter is stable, the radio frequency power output to the receiver by the reference source is stable, and t is a natural number greater than or equal to 2;
establishing a corresponding model between the signal strength RSSI and the real-time transmission gain control value according to the signal strength RSSI and the real-time transmission gain control value acquired t times at each temperature acquisition point;
determining a temperature deviation compensation value according to the corresponding model;
determining a distance between the transmitter and the receiver according to the temperature deviation compensation value; before the step of establishing a corresponding model between the RSSI and the real-time transmission gain control value according to the RSSI and the real-time transmission gain control value acquired t times at each temperature acquisition point, the method further comprises:
averaging the RSSI of the receiver acquired t times at each temperature acquisition point;
averaging the real-time transmission gain control values of the transmitter acquired t times at each temperature acquisition point;
the step of establishing a corresponding model between the signal strength RSSI and the real-time transmission gain control value according to the signal strength RSSI and the real-time transmission gain control value acquired t times at each temperature acquisition point specifically comprises the following steps:
establishing a corresponding model between the signal strength RSSI and the real-time transmission gain control value according to the average value of the signal strength RSSI and the average value of the real-time transmission gain control value acquired t times at each temperature acquisition point; the step of averaging the RSSI of the receiver acquired t times at each temperature acquisition point specifically comprises:
the RSSI of the receiver acquired t times at each temperature acquisition point is averaged by equation (1):
Figure FDA0002777432320000021
wherein i is 1,2, …, n; j ═ 1,2, …, t; ri,jThe RSSI of the receiver collected for the j time at the ith temperature collection point;
the step of averaging the real-time transmission gain control values of the transmitter acquired t times at each temperature acquisition point specifically comprises:
averaging the real-time transmit gain control values of the transmitter acquired t times at each temperature acquisition point by equation (2):
Figure FDA0002777432320000022
wherein i is 1,2, …, n; j ═ 1,2, …, t; t isi,jThe real-time emission gain control value of the emitter acquired at the jth temperature acquisition point is acquired;
the step of establishing a corresponding model between the signal strength RSSI and the real-time transmission gain control value according to the average value of the signal strength RSSI and the average value of the real-time transmission gain control value acquired t times at each temperature acquisition point specifically comprises the following steps:
establishing a corresponding model (3) between the signal strength RSSI and the real-time transmission gain control value according to the average value of the signal strength RSSI and the average value of the real-time transmission gain control value acquired for t times at each temperature acquisition point:
Figure FDA0002777432320000023
wherein s is a non-zero natural number; k is 1,2, …, s; a iskTo fit polynomial coefficients, Tk-1Is a fitting polynomial; the step of determining a temperature deviation compensation value according to the corresponding model specifically includes:
fitting the corresponding model to obtain a monotonous relation curve formula (4) of the mean value of the RSSI along with the mean value change of the real-time transmission gain control value;
Figure FDA0002777432320000024
wherein the content of the first and second substances,
Figure FDA0002777432320000025
to be an estimate of the rf unit receiver RSSI to be compensated,
Figure FDA0002777432320000026
for the purpose of the coefficient estimation values,
and carrying out regression coefficient significance test on the monotonic relation curve to obtain an optimal model formula (5) fitted by the corresponding model:
Figure FDA0002777432320000031
wherein { m } - {1,2, …, s } - { l };
Figure FDA0002777432320000032
the estimated value of the RSSI of the radio frequency unit receiver to be compensated after the significance test;
Figure FDA0002777432320000033
a coefficient estimate retained after significance testing; t ism-1Multiple entries retained after significance testing; l is a plurality of item subscripts which are irrelevant or extremely weak to be eliminated;
substituting the optimal model into a formula (6) to obtain a temperature deviation compensation value:
Figure FDA0002777432320000034
wherein R isrefReceiving the RSSI value output by the reference source for the receiver at a specific constant temperature;
delta R is a temperature deviation compensation value; g (T) indicates that the temperature offset compensation value is a function of the real-time transmit gain control value T.
2. The method according to claim 1, wherein the step of determining the distance between the transmitter and the receiver from the temperature deviation compensation value comprises in particular:
obtaining the current measured real-time emission gain control value, substituting the current measured real-time emission gain control value into a formula (6) to calculate the current temperature deviation compensation value delta Rreal
Obtaining the RSSI value R of the current measurementrealThe currently measured RSSI value R is usedrealSubtracting the current temperature deviation compensation value DeltaRrealObtaining a temperature compensation result value;
substituting the temperature compensation result value into a relation formula (7) between the transmitting power and the receiving power of the wireless signal to calculate the distance r between the transmitter and the receiver;
Rreal-ΔRreal=A-10n lg r (7),
wherein A is the theoretical power of the received signal when the reference source establishes the transmitting power signal transmission distance of 1 meter, and n is the propagation factor.
3. An apparatus for measuring a distance between a transmitter and a receiver, for use in a radio frequency communication unit having a receiver and a transmitter, comprising:
the device comprises a setting module, a temperature acquisition module and a control module, wherein the setting module is used for setting n temperature acquisition points, n is a natural number which is more than or equal to 2, and the temperature of each temperature acquisition point is within a preset temperature range;
the acquisition module is used for transmitting radio frequency signals by using a reference source for t times continuously at each temperature acquisition point, and acquiring the signal strength RSSI of the receiver and the real-time transmission gain control value of the transmitter, wherein the transmission power of the transmitter is stable, the radio frequency power output to the receiver by the reference source is stable, and t is a natural number greater than or equal to 2;
the establishing module is used for establishing a corresponding model between the signal strength RSSI and the real-time transmission gain control value according to the signal strength RSSI and the real-time transmission gain control value acquired t times at each temperature acquisition point;
the determining module is used for determining a temperature deviation compensation value according to the corresponding model;
the distance measurement module is used for determining the distance between the transmitter and the receiver according to the temperature deviation compensation value; the device further comprises:
the first calculation module is used for averaging the RSSI of the receiver acquired t times at each temperature acquisition point;
the second calculation module is used for averaging the real-time emission gain control values of the emitter acquired t times at each temperature acquisition point;
the establishing module is specifically configured to:
establishing a corresponding model between the signal strength RSSI and the real-time transmission gain control value according to the average value of the signal strength RSSI and the average value of the real-time transmission gain control value acquired t times at each temperature acquisition point; the first calculation module is specifically configured to:
the RSSI of the receiver acquired t times at each temperature acquisition point is averaged by equation (1):
Figure FDA0002777432320000041
wherein i is 1,2, …, n; j ═ 1,2, …, t; ri,jThe RSSI of the receiver collected for the j time at the ith temperature collection point;
the second calculation module is specifically configured to:
averaging the real-time transmit gain control values of the transmitter acquired t times at each temperature acquisition point by equation (2):
Figure FDA0002777432320000051
wherein i is 1,2, …, n; j ═ 1,2, …, t; t isi,jThe real-time emission gain control value of the emitter acquired at the jth temperature acquisition point is acquired;
the establishing module is specifically configured to:
establishing a corresponding model (3) between the signal strength RSSI and the real-time transmission gain control value according to the average value of the signal strength RSSI and the average value of the real-time transmission gain control value acquired for t times at each temperature acquisition point:
Figure FDA0002777432320000052
wherein s is a non-zero natural number; k is 1,2, …, s; a iskTo fit polynomial coefficients, Tk-1Is a fitting polynomial; the determining module is specifically configured to:
fitting the corresponding model to obtain a monotonous relation curve formula (4) of the mean value of the RSSI along with the mean value change of the real-time transmission gain control value;
Figure FDA0002777432320000053
wherein the content of the first and second substances,
Figure FDA0002777432320000054
to be an estimate of the rf unit receiver RSSI to be compensated,
Figure FDA0002777432320000055
for the purpose of the coefficient estimation values,
and carrying out regression coefficient significance test on the monotonic relation curve to obtain an optimal model formula (5) fitted by the corresponding model:
Figure FDA0002777432320000056
wherein { m } - {1,2, …, s } - { l };
Figure FDA0002777432320000057
the estimated value of the RSSI of the radio frequency unit receiver to be compensated after the significance test;
Figure FDA0002777432320000058
a coefficient estimate retained after significance testing; t ism-1Multiple entries retained after significance testing; l is a plurality of item subscripts which are irrelevant or extremely weak to be eliminated;
substituting the optimal model into a formula (6) to obtain a temperature deviation compensation value:
Figure FDA0002777432320000059
wherein R isrefReceiving the RSSI value output by the reference source for the receiver at a specific constant temperature;
delta R is a temperature deviation compensation value; g (T) indicates that the temperature offset compensation value is a function of the real-time transmit gain control value T.
4. The apparatus of claim 3, wherein the ranging module is specifically configured to:
obtaining the current measured real-time emission gain control value, substituting the current measured real-time emission gain control value into a formula (6) to calculate the current temperature deviation compensation value delta Rreal
Obtaining the RSSI value R of the current measurementrealThe currently measured RSSI value R is usedrealSubtracting the current temperature deviation compensation value DeltaRrealTo obtain a temperatureDegree compensation result values;
substituting the temperature compensation result value into a relation formula (7) between the transmitting power and the receiving power of the wireless signal to calculate the distance r between the transmitter and the receiver;
Rreal-ΔRreal=A-10n lg r (7),
wherein A is the theoretical power of the received signal when the reference source establishes the transmitting power signal transmission distance of 1 meter, and n is the propagation factor.
CN201910204519.4A 2019-03-18 2019-03-18 Method and device for measuring distance between transmitter and receiver Active CN110007297B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910204519.4A CN110007297B (en) 2019-03-18 2019-03-18 Method and device for measuring distance between transmitter and receiver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910204519.4A CN110007297B (en) 2019-03-18 2019-03-18 Method and device for measuring distance between transmitter and receiver

Publications (2)

Publication Number Publication Date
CN110007297A CN110007297A (en) 2019-07-12
CN110007297B true CN110007297B (en) 2021-01-15

Family

ID=67167285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910204519.4A Active CN110007297B (en) 2019-03-18 2019-03-18 Method and device for measuring distance between transmitter and receiver

Country Status (1)

Country Link
CN (1) CN110007297B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112177805A (en) * 2020-09-07 2021-01-05 湖北三江航天江河化工科技有限公司 Engine ground test remote test system and test method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8552902B2 (en) * 2011-05-04 2013-10-08 Sabertek Methods and apparatus for suppression of low-frequency noise and drift in wireless sensors or receivers
CN103930774A (en) * 2011-06-30 2014-07-16 力保科学公司 Quantitative NMR clinical analyzers with automatic NMR temperature sensitivity compensation that accommodate large ambient operational temperature ranges
CN104921702A (en) * 2013-03-15 2015-09-23 飞比特公司 Multimode Sensor Devices
CN105849620A (en) * 2013-11-01 2016-08-10 艾罗伯特公司 Scanning range finder
CN105973501A (en) * 2016-07-26 2016-09-28 威海北洋光电信息技术股份公司 Long-distance high-spatial-resolution Raman temperature measurement sensor and realization method thereof

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100319275B1 (en) * 1999-03-20 2002-01-09 윤종용 Method for calculating codes for power control in accordance with temperature in wireless telephone set
US7313403B2 (en) * 2003-08-06 2007-12-25 Hong Kong Applied Science And Technology Research Institute Co., Ltd. Location positioning in wireless networks
WO2013152795A1 (en) * 2012-04-12 2013-10-17 Epcos Ag Rssi system and bias method for amplifier stages in rssi systems
CN103715984B (en) * 2012-09-28 2016-08-17 富士通株式会社 The temperature compensation of a kind of received signal strength indicator and device
CN103983966B (en) * 2013-02-08 2016-09-14 秦皇岛国安电力电子技术有限公司 A kind of distance measurement method and apparatus
CN104618045B (en) * 2015-01-27 2017-05-03 北京交通大学 Collected data-based wireless channel transmission model establishing method and system
CN105471455B (en) * 2015-11-11 2018-10-12 中国电子科技集团公司第四十一研究所 The compensation method of signal receiving channel frequency response under the conditions of a kind of width is warm
EP3374786A4 (en) * 2015-11-12 2019-07-03 Fathom Systems Inc. Apparatus, system and method of determining a location of a radio beacon
CN108055092B (en) * 2017-12-22 2021-07-13 Oppo广东移动通信有限公司 Bluetooth signal adjusting method, device, test terminal, system and readable medium
CN108693518B (en) * 2018-05-15 2020-11-27 西北大学 Indoor positioning method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8552902B2 (en) * 2011-05-04 2013-10-08 Sabertek Methods and apparatus for suppression of low-frequency noise and drift in wireless sensors or receivers
CN103930774A (en) * 2011-06-30 2014-07-16 力保科学公司 Quantitative NMR clinical analyzers with automatic NMR temperature sensitivity compensation that accommodate large ambient operational temperature ranges
CN104921702A (en) * 2013-03-15 2015-09-23 飞比特公司 Multimode Sensor Devices
CN105849620A (en) * 2013-11-01 2016-08-10 艾罗伯特公司 Scanning range finder
CN105973501A (en) * 2016-07-26 2016-09-28 威海北洋光电信息技术股份公司 Long-distance high-spatial-resolution Raman temperature measurement sensor and realization method thereof

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
《Hybrid technique for indoor positioning system based on Wi-Fi received signal strength indication》;Peerapong Torteeka;《2014 International Conference on Indoor Positioning and Indoor Navigation (IPIN)》;20150928;48-57 *
《基于组合测距的无线传感器网络自定位算法》;郄剑文,贾方秀,李兴隆,王晓鸣;《传感技术学报》;20160615;739-744 *
张国栋.《 基于无线传感技术的运动目标跟踪算法研究》.《中国优秀硕士学位论文全文数据库 信息科技辑》.2014, *

Also Published As

Publication number Publication date
CN110007297A (en) 2019-07-12

Similar Documents

Publication Publication Date Title
CN101951634B (en) Method and system for automatic power control calibration of TD-LTE terminal
CN103454542B (en) Antenna and transmission line tester and real-time automatic calibrating method
CN104730481B (en) Dynamically determining measurement uncertainty of a measurement device
CA2775023A1 (en) Estimating user device location in a wireless network
CN110007297B (en) Method and device for measuring distance between transmitter and receiver
CN103592640A (en) Automatic high-precision calibration method of meteorological radar send-receive channel gains
US20080238441A1 (en) Vector Network Analyzer-Noise Figure Measurement
TW201633659A (en) A mobile device tester for precise inductive power measurement and a calibration unit therefor
CN109612607B (en) Temperature sensor reaction speed testing method
CN106849982B (en) Superheterodyne receiver and method and device for improving measurement accuracy of superheterodyne receiver
CN211627551U (en) Integrated soil and surrounding environment detection system
CN107831478B (en) A kind of automatic marking method and system of wind profile radar echo-signal
CN110617889A (en) High-stability testing method applied to synthetic aperture microwave radiometer
US20090081956A1 (en) Assisted measurement survey of a wireless communication network
CN107255811A (en) A kind of Uncertainty Analysis Method estimated based on RSSI communication distances
RU2345328C1 (en) Method of calibration and correction of effects of measuring of multichannel measuring and computing complex
KR20070114237A (en) Apparatus and method for detecting channel quality in a mobile communication system
JP2004361314A (en) System and method for calibrating observed data of amount of rainfall, and program used for system
CN102833011B (en) The method of testing of sensitivity and device
KR101006937B1 (en) Vswr meseurment and defect point estimation device and it's signal process
CN207335918U (en) A kind of curved surfaces thermometer calibration device
JP2016099194A (en) Calibration method for radio frequency parameter
Величко et al. Calibration features for power meters of high and microwave frequencies
CN117129371B (en) Calibration method and device for surface density measuring instrument and readable storage medium
CN116299246B (en) Method for evaluating internal calibration precision of synthetic aperture radar system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant