CN117081687A - RSSI data sampling method - Google Patents
RSSI data sampling method Download PDFInfo
- Publication number
- CN117081687A CN117081687A CN202311305794.8A CN202311305794A CN117081687A CN 117081687 A CN117081687 A CN 117081687A CN 202311305794 A CN202311305794 A CN 202311305794A CN 117081687 A CN117081687 A CN 117081687A
- Authority
- CN
- China
- Prior art keywords
- value
- rssi
- gain
- filter
- communication system
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 238000005070 sampling Methods 0.000 title claims abstract description 11
- 238000004891 communication Methods 0.000 claims abstract description 39
- 230000010354 integration Effects 0.000 claims abstract description 6
- 230000008569 process Effects 0.000 claims description 7
- 230000005540 biological transmission Effects 0.000 claims description 6
- 238000012795 verification Methods 0.000 claims description 4
- 238000005259 measurement Methods 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 6
- 238000012360 testing method Methods 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 101710165610 Heat-stable 19 kDa antigen Proteins 0.000 description 1
- 208000006440 Open Bite Diseases 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
- H04B17/30—Monitoring; Testing of propagation channels
- H04B17/309—Measuring or estimating channel quality parameters
- H04B17/318—Received signal strength
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Circuits Of Receivers In General (AREA)
Abstract
The invention discloses an RSSI data sampling method, which comprises the following steps that a calculates the numerical relation between RG and RSSI; b adjusting the filter gain system, setting the symbol power P S The value range is taken, and the RSSI value is output; c, subtracting RSSIs obtained from adjacent gears to obtain a real stepping value of the filter gain system; d calculating P S Relation to RSSI, e versus receiver symbol power P S The value is processed; f, recording and storing the values of RG and RAG and the value of the data length K, and calculating to obtain the RSSI value. The invention is implemented by the method of P S The definition of the gain of the wireless communication system is ensured, so that signals with proper size can be obtained for integration to output accurate RSSI information, and compared with the existing system, the output maximum value inaccurate measurement condition caused by overlarge signal exceeding or approaching to the maximum range can be effectively avoided.
Description
Technical Field
The invention relates to the technical field of wireless communication, in particular to an RSSI data sampling method.
Background
In wireless communication, RSSI is an important indicator of a communication system, and the indicator characterizes signal strength and can be used for ranging and positioning. A basic wireless communication system should include a transmitter, a receiver, and a host computer involved in the control.
RSSI in wireless communication is affected by factors such as transmitter transmission power TP, transceiver antenna gain AG, receiver filter gain RG, interface cable transmission loss TL, free space transmission loss FL, etc., namely P RSSI =TP+AG+RG-TL-FL。
However, in actual ranging, the RSSI information we collect always varies irregularly, due to environmental and device effects, whether or not the above factors vary. For the acquisition of RSSI information, we are limited by acquisition equipment, and want to acquire accurate and reliable RSSI information, a device for outputting the RSSI information by using a reasonable acquisition method is indispensable. The existing acquisition methods are roughly classified into the following three types:
the receiver directly integrates the power of the received signal and then outputs the RSSI information, and the method has the advantages of being simplest and easy to realize, and has the defects of no distinguishing ability for the received signal and easy output of an error value.
The receiver divides the received signal into two circuits with different gains, then integrates the power of the two signals to obtain two RSSI information, and determines which one is finally output by comparing the two RSSI information with the preset value of the circuit. The method has the advantages that most of signals can be processed, the output RSSI result is more reliable, and the disadvantage is that the cost of the two-path gain circuit is higher.
The method has the advantages that the circuit can preprocess the RSSI information only by adding the filter module, and finally output the credible RSSI information, and the method has the defects that a set of strict working mode is needed for the filter module, otherwise, the credibility of the finally output RSSI information is not high.
Disclosure of Invention
The invention aims to solve the technical problems of low information accuracy, high cost and the like in the technology, and provides an RSSI data sampling method with higher accuracy, which effectively avoids inaccurate output maximum value measurement caused by overlarge signal exceeding or approaching to a maximum range.
In order to achieve the above purpose, the technical scheme adopted by the invention is as follows:
a RSSI data sampling method comprises the following steps,
step one: values of TP, AG and TL in a communication system are obtained according to formula P RSSI =tp+ag+rg-TL-FL and the free space loss equation gives FL:
where d is the communication distance, f is the carrier frequency, P RSSI Representing RSSI value to obtain RG and P RSSI Is a numerical relationship of (2);
step two: adjusting a filter gain system in a communication system to be the lowest-gear gain, and setting symbol power P S The range of values is taken, the communication system is started to start to receive and transmit packets, TL is adjusted to enable the symbol power P of the receiver S The value is in the set value range, the gain of the filter is controlled to be increased from gear to gear, and the RSSI value is output;
step three: subtracting the RSSI values obtained by adjacent gears in the second step to obtain a real stepping value of the filter gain system;
step four: starting the communication system to start transmitting and receiving packets, and in the receiver, the symbol power P S This can be calculated from the following formula:
,
in the formulaIs the real part, Q is the imaginary part, < >>The number of symbols participating in the integration;
P S and P RSSI The relationship is as follows:
(1)
k in the formula represents the data length;
step five: checking receiver symbol power P S Taking and processing the combined value to ensure P S In the set value range, then save P S A value;
step six: the values of the receiving filter gain RG and the receiving antenna gain RAG and the value of the data length K are recorded and saved, and then the RSSI value required to be acquired is obtained according to the formula (1).
Further, in step two, if P S To be the minimum value in the value range and in the value range, the first RSSI value is output, and then the filter gain is increased step by step, so long as P S Continuously outputting the RSSI value within the value range; if P S If the value is larger than the maximum value in the value range, TL is changed by adding a fixed attenuator on the transmission link, so that P is formed S Is the minimum value in the value range and is in the value range until the gain of the filter is increased to the highest level.
Further, in the first step, the communication system is a communication system including a verification system, and the verification system is a filter gain system.
Further, the transmitting end and the receiving end of the communication system adopted in the first to third steps adopt wired communication, and the communication system adopted in the fourth step adopts wireless communication.
Further, in the fifth step, the specific process of performing the treatment is as follows:
if P S Outputting the RSSI value within the value range;
if P S The gain of the filter is increased according to the stepping value obtained in the step three, wherein the gain is smaller than the minimum value in the value range;
if P S The gain of the filter is reduced according to the stepping value obtained in the step three when the gain is larger than the maximum value in the value range;
finally, the adjusted P is ensured S The value of (2) is within the range of values.
Compared with the prior art, the invention has the following advantages:
in the scheme, P is passed through S Is defined to ensure the rationality of the gain of the wireless communication system so that a signal of suitable magnitude can be obtained for integration for transmissionAccurate RSSI information is obtained. Compared with the prior art, the invention has the following advantages:
1. the filter gain system can be adjusted to effectively avoid the condition of inaccurate measurement of the maximum output value caused by overlarge signal exceeding or approaching to the maximum measurement range.
2. Stable inspection of receiver P by adjustment of the filter gain system S The value is taken, and the problem of inaccurate measurement caused by insufficient accuracy of a system with too small signals can be avoided.
Drawings
Fig. 1 is a schematic block flow diagram of the present invention.
Fig. 2 is a schematic diagram of signal transmission in the acquisition of RSSI data.
FIG. 3 is P S Schematic diagram of relation with RSSI.
Fig. 4 is a schematic diagram of a symbol power adjustment flow.
Description of the embodiments
To make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions in the embodiments of the present invention will be clearly and completely described below, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, based on the embodiments of the invention, which are apparent to those of ordinary skill in the art without inventive faculty, are intended to be within the scope of the invention. Accordingly, the detailed description of the embodiments of the invention provided below is not intended to limit the scope of the invention as claimed, but is merely representative of selected embodiments of the invention.
As shown in fig. 2, a signal receiving and transmitting schematic diagram in the process of RSSI data acquisition is shown, specifically, in the process of RSSI data acquisition, a radio frequency signal is converted into an electric signal through an RX antenna, and the electric signal is amplified by a filter and then subjected to power integration conversion, so as to obtain an RSSI value. The process of the invention is shown in figure 1, and P is obtained after the signal is subjected to power integration S (symbol power), set P S The value range is (a, b) by the method of P S The RSSI is converted after the limit of the value range, so that the effect of more accurate RSSI output value is achieved. The specific process is as follows,
step one: a wireless communication system including a system to be checked is built, the system to be checked is referred to as a "filter gain system", that is, a receiver of the communication system needs to have a function of adjusting a filter gain, and a principle diagram of the system is shown in fig. 2, so that a person skilled in the art can select the filter gain system, the receiver, the transmitter, and the like according to actual situations. According to formula P RSSI =tp+ag+rg-TL-FL, and after transformation, rg=p is obtained RSSI TP-ag+tl+fl, TP, AG, TL being known values in a known wireless communication system, FL can be obtained by the following formula:
where d is the communication distance, f is the carrier frequency, P RSSI Represents the RSSI value, thereby obtaining RG and P RSSI This can lay a foundation for the subsequent calculation of the true step value of the filter gain system. Then use formula rg=p RSSI TP-ag+tl+fl, which is to obtain the true step value of the filter gain system, i.e. two differences in RG, since only TL is adjusted, TP, AG, FL can be considered unchanged, Δtl being known. At rg=p RSSI In the case of TP-AG+TL+FL, the results of the two tests are poor, in some cases,
1. when TL is not changed, there are RG 2-rg1=rss2-RSSI 1, where RSSI2 and RSSI1 are known, RG2 and RG1 represent the gain values of the receiver filters twice before and after, and RSSI2 and RSSI1 are the RSSI values corresponding to RG2 and RG1, respectively, and then the step values RG2-RG1 of RG are known.
2. When TL is changed, RG 2-rg1=rss2-rss1+Δtl, where RSSI2 is known to RSSI1 and Δtl, the step value RG2-RG1 of RG is known.
Since TP, AG and FL are counteracted in the two-way subtraction, the specific values of the three parameters are not needed when only testing the stepping value, which makes the method simple and feasible, and the errors introduced by the three parameters can be eliminated.
Step two: adjusting the gain system of the filter to the lowest-gear gain, and setting P S The value range is (a, b), and the communication system is startedReceiving and transmitting package, checking receiver P S And (5) taking a value. In this embodiment, the communication mode adopts wired communication to obtain the real step value of the gain system of the wave device, and the wired system has no FL and AG, so that the final result is more accurate by using the wired system.
Checking the receiver P S When taking the value, if P S Near a and within (a, b), a first RSSI value is output. The filter gain is then increased from stage to stage as long as P S The subsequent RSSI values can be output within (a, b).
If P S Greater than b, then TL is changed by adding a fixed attenuator to the transmission link to P S Near a and within (a, b) until the filter gain rises to the highest level.
Step three: and (3) subtracting RSSIs obtained by adjacent gears in the second step, so that the actual step of the filter gain system can be obtained.
Since the free space loss FL calculation formula is in an ideal non-occlusion environment and is different from the real environment, errors are generated (the actual free space loss is changed due to the change of the environment), and therefore, the wired communication is selected in the scheme, and at the moment, no free space loss exists, so that the test precision can be improved.
Step four: and a wireless communication system for acquiring RSSI information is built, and the wireless communication system is started to start to receive and transmit packets. In the receiver, P S This can be calculated from the following formula:
in the formula->Is the real part, Q is the imaginary part, < >>Number of symbols to participate in the score
P S The RSSI relationship is shown in fig. 3, which can be converted into the following equation,
step five: checking the receiver P S The values are processed, as shown in fig. 4, specifically as follows,
if P S Within (a, b), the RSSI value for that location is output.
If P S If the value is smaller than a, the gain of the filter is increased, and the step value obtained in the step three can be found by specifically increasing the gear.
If P S And b, if the value is larger than b, reducing the gain of the filter, and specifically reducing the gear to search the stepping value obtained in the step three.
Thereby can ensure P S In (a, b), the value is saved.
Step six: the values of the receiver filter gain RG and the receiving antenna gain RAG and the data length K are recorded and saved, as theoretically deduced to be available in FIG. 4, and then are calculated by the formula
Can calculate RSSI value P RSSI K is the data length, P in the formula S Is the symbol power.
It is obvious that the present solution is to increase or decrease the filter gain to obtain the desired result, so that a system (AGC) that can manually or automatically adjust the filter gain is equally applicable to the present solution, and if AGC is used, the AGC needs to satisfy the following specific conditions: 1. the feedback of AGC adjustment gain must be controlled by P S Determining; 2. the target range of AGC adjustment gain is (a, b); 3. the gain of the filter after the AGC adjusts the gain is readable.
The foregoing is merely a preferred embodiment of the present invention, and it should be noted that the above-mentioned preferred embodiment should not be construed as limiting the invention, and the scope of the invention should be defined by the appended claims. It will be apparent to those skilled in the art that various modifications and adaptations can be made without departing from the spirit and scope of the invention, and such modifications and adaptations are intended to be comprehended within the scope of the invention.
Claims (5)
1. A RSSI data sampling method is characterized by comprising the following steps,
step one: values of TP, AG and TL in a communication system are obtained according to formula P RSSI =tp+ag+rg-TL-FL and the free space loss equation gives FL:
where d is the communication distance, f is the carrier frequency, P RSSI Representing RSSI value to obtain RG and P RSSI Is a numerical relationship of (2);
step two: adjusting a filter gain system in a communication system to be the lowest-gear gain, and setting symbol power P S The value range is taken, the communication system is started to start to receive and transmit packets, and the symbol power P of the receiver is checked S The value is in the set value range, the gain of the filter is controlled to be increased from gear to gear, and the RSSI value is output;
step three: subtracting the RSSI values obtained by adjacent gears in the second step to obtain a real stepping value of the filter gain system;
step four: starting the communication system to start transmitting and receiving packets, and in the receiver, the symbol power P S This can be calculated from the following formula:
,
in the formulaIs the real part, Q is the imaginary part, < >>The number of symbols participating in the integration;
P S and P RSSI The relationship is as follows:
(1)
k represents the data length, and RAG is the gain of the receiving antenna;
step five: checking receiver symbol power P S Take the value and process, ensure P S In the set value range, then save P S A value;
step six: the values of the receiving filter gain RG and the receiving antenna gain RAG and the value of the data length K are recorded and saved, and then the RSSI value required to be acquired is obtained according to the formula (1).
2. The RSSI data sampling method of claim 1 wherein: in the second step, if P S To be the minimum value in the value range and in the value range, the first RSSI value is output, and then the filter gain is increased step by step, so long as P S Continuously outputting the RSSI value within the value range; if P S If the value is larger than the maximum value in the value range, TL is changed by adding a fixed attenuator on the transmission link, so that P is formed S Is the minimum value in the value range and is in the value range until the gain of the filter is increased to the highest level.
3. The RSSI data sampling method of claim 1 wherein: in the first step, the communication system is a communication system including a verification system, and the verification system is a filter gain system.
4. A method of sampling RSSI data as claimed in claim 3, wherein: and step one to step three, wherein the transmitting end and the receiving end of the communication system are in wired communication, and the communication system in step four is in wireless communication.
5. The RSSI data sampling method of claim 1 wherein: in the fifth step, the specific process of the treatment is as follows:
if P S Outputting the RSSI value within the value range;
if P S The gain of the filter is increased according to the stepping value obtained in the step three, wherein the gain is smaller than the minimum value in the value range;
if P S The gain of the filter is reduced according to the stepping value obtained in the step three when the gain is larger than the maximum value in the value range;
finally, the adjusted P is ensured S The value of (2) is within the range of values.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311305794.8A CN117081687B (en) | 2023-10-10 | 2023-10-10 | RSSI data sampling method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311305794.8A CN117081687B (en) | 2023-10-10 | 2023-10-10 | RSSI data sampling method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117081687A true CN117081687A (en) | 2023-11-17 |
CN117081687B CN117081687B (en) | 2023-12-15 |
Family
ID=88719739
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311305794.8A Active CN117081687B (en) | 2023-10-10 | 2023-10-10 | RSSI data sampling method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117081687B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1475056A (en) * | 2000-10-10 | 2004-02-11 | �����ּ�����˾ | Automatic gain control for time division duplex receiver |
US7151759B1 (en) * | 2001-03-19 | 2006-12-19 | Cisco Systems Wireless Networking (Australia) Pty Limited | Automatic gain control and low power start-of-packet detection for a wireless LAN receiver |
US7245893B1 (en) * | 2001-09-25 | 2007-07-17 | Atheros Communications, Inc. | Method and system for noise floor calibration and receive signal strength detection |
CN103023852A (en) * | 2012-12-26 | 2013-04-03 | 东南大学 | Fast digital automatic gain control method for orthogonal frequency division multiplexing receiver |
WO2014015746A1 (en) * | 2012-07-25 | 2014-01-30 | 华为技术有限公司 | Rssi measurement method, rssi measurement device, and receiver |
CN104202002A (en) * | 2014-09-18 | 2014-12-10 | 天津七一二通信广播有限公司 | FPGA (field programmable gate array) based digital AGC (automatic gain control) system and method of ultra-short wave radio set |
-
2023
- 2023-10-10 CN CN202311305794.8A patent/CN117081687B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1475056A (en) * | 2000-10-10 | 2004-02-11 | �����ּ�����˾ | Automatic gain control for time division duplex receiver |
US7151759B1 (en) * | 2001-03-19 | 2006-12-19 | Cisco Systems Wireless Networking (Australia) Pty Limited | Automatic gain control and low power start-of-packet detection for a wireless LAN receiver |
US7245893B1 (en) * | 2001-09-25 | 2007-07-17 | Atheros Communications, Inc. | Method and system for noise floor calibration and receive signal strength detection |
WO2014015746A1 (en) * | 2012-07-25 | 2014-01-30 | 华为技术有限公司 | Rssi measurement method, rssi measurement device, and receiver |
CN103023852A (en) * | 2012-12-26 | 2013-04-03 | 东南大学 | Fast digital automatic gain control method for orthogonal frequency division multiplexing receiver |
CN104202002A (en) * | 2014-09-18 | 2014-12-10 | 天津七一二通信广播有限公司 | FPGA (field programmable gate array) based digital AGC (automatic gain control) system and method of ultra-short wave radio set |
Non-Patent Citations (2)
Title |
---|
WAHEEB TASHAN DEL: "Rain Rate and Rain Attenuation Over Millimeter Waves in Tropical Regions Based on Real Measurements", 2021 IEEE 15TH MALAYSIA INTERNATIONAL CONFERENCE ON COMMUNICATION (MICC) * |
施扬喜;赵利;梁仪庆;唐俏笑;: "软件无线电接收机的AGC信号处理算法及控制模型的设计与实现", 现代计算机, no. 21 * |
Also Published As
Publication number | Publication date |
---|---|
CN117081687B (en) | 2023-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109544894B (en) | Control method, unmanned aerial vehicle and remote control equipment | |
US5590415A (en) | Method and device for supervising the condition of an antenna | |
CN108650034A (en) | A kind of gain calibration methods thereof and device of radio-frequency apparatus | |
WO2021004199A1 (en) | Wireless signal performance adjustment apparatus and method and wireless communication terminal | |
CN102983922B (en) | Method for measuring co-channel signal interference and receiver | |
US7860678B2 (en) | Apparatus and method for automated adjustment and setting of APD optical receiver operation point | |
Zhang et al. | Digital automatic gain control design with large dynamic range in wireless communication receivers | |
CN107147368B (en) | Gain adjusting method and device for gain amplifier | |
CN117081687B (en) | RSSI data sampling method | |
CN102820937A (en) | Measuring method of received signal strength indicator (RSSI), measuring device of RSSI and receiver | |
CN108802651B (en) | Online correction device and correction method for temperature drift of noise coefficient analyzer | |
CN116527796B (en) | Method for carrying out high-precision time service on ammeter based on dual-mode communication | |
CN110995372B (en) | Wireless communication terminal, power detection circuit and power calibration method | |
CN112379336A (en) | Radar signal detection method, device, equipment and storage medium | |
CN216599593U (en) | High-precision digital automatic gain control device and radio frequency receiver | |
CN116346148A (en) | Multi-mode automatic gain control method and system based on SoC | |
CN104247276A (en) | Apparatus and method for matching antenna impedance in wireless communication system | |
CN114024628B (en) | S parameter test system, test method and calibration method | |
CN115765778A (en) | Power control method and radio frequency transceiver | |
CN113824459A (en) | High-precision digital automatic gain control device and radio frequency receiver | |
CN111010244B (en) | Wireless sensor testing system and method | |
CN110212998B (en) | Method and device for testing and determining the repeating noise of a measurement and control transponder | |
CN113466774A (en) | System and method for realizing automatic calibration of frequency spectrograph power under condition of adapting to ADC linear characteristic | |
CN111541496B (en) | Method and device for testing amplitude inconsistency indexes among satellite-borne phased-array antenna channels | |
CN102833011B (en) | The method of testing of sensitivity and device |
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 |