Frequency hopping gain control device and control method
Technical Field
The invention relates to the technical field of wireless frequency hopping, in particular to the field of frequency hopping gain control.
Background
The frequency hopping communication is a communication method in which the carrier frequencies of transmission signals of both the transmitter and the receiver are discretely changed in a predetermined regular manner. The frequency hopping technique has good communication confidentiality and interference resistance. Compared with fixed frequency communication, frequency hopping communication is more covert and thus difficult to intercept. As long as the opposite side does not know the hopping rule of the carrier frequency, the communication content of the opposite side is difficult to intercept. The anti-interference performance means that even if some frequency points are interfered, normal communication can still be carried out on other frequency points which are not interfered. However, in a specific implementation, frequency hopping communication has higher complexity than frequency fixing, one of which is that the larger the variation range of the frequency hopping communication with the frequency point is, the larger the amplitude variation of the received signal is.
The free space transmission loss of the electromagnetic wave has a linear relationship with the dB (decibel) value of the carrier frequency, so that when the carrier frequency at the current time and the carrier frequency at the next time change greatly, if the carrier frequency at the current time is still used to correspond to the gain control word, the signal at the next time is inevitably saturated or too small to be received correctly.
To cope with the problem of over-range frequency hopping, the word length of analog-to-digital conversion can only be increased, and this requirement for higher performance devices will increase the cost of the product.
Disclosure of Invention
The invention aims to provide a frequency hopping gain control device and a control method, which can control a received signal more accurately on the basis of not increasing the hardware performance.
The technical scheme for realizing the purpose is as follows:
a frequency hopping gain control apparatus, comprising:
an antenna for receiving an analog signal;
a gain control unit for amplifying the analog signal according to the currently stored gain value;
the signal intensity calculating unit is used for summing the intensities of the amplified analog signals in a preset time period and calculating to obtain an average value of the signal intensities; and
a gain control calculation unit for calculating gain variation value according to the difference between the signal intensity average value and the pre-stored target signal intensity and the propagation loss caused by frequency difference and feeding back to the gain control unit;
the gain control unit adds the existing stored gain value to the gain change value to obtain a new gain value, and replaces the existing stored gain value.
Preferably, the difference Δ _ rssi between the signal strength average and the pre-stored target signal strength;
the propagation loss difference Δ _ f is 20log10f _ next/f _ current, f _ next being the next carrier frequency, f _ current being the current carrier frequency, log being the logarithm,
the gain variation value Δ is Δ _ rssi +. Δ _ f; Δ _ rssi represents the difference between the signal strength average value and the pre-stored target signal strength.
A frequency hopping gain control method, comprising:
amplifying the received analog signal according to the existing stored gain value delta;
summing the strength of each amplified analog signal in a preset time period, calculating to obtain the signal strength average RSSI,
where N is the length of the received data, x (-) represents the received signal, and abs (-) represents the absolute value;
calculating the difference value delta _ rssi between the signal intensity average value and the pre-stored target signal intensity;
calculating the difference value of propagation loss caused by frequency difference, delta _ f, is 20log10f _ next/f _ current, f _ next being the next carrier frequency, f _ current being the current carrier frequency, log being the logarithm,
calculating a gain change value delta-rssi + delta-f;
calculating a new gain value α ═ δ + Δ;
the existing stored gain values are updated as: δ α.
The invention has the beneficial effects that: according to the invention, the difference between the average signal intensity and the pre-stored target signal intensity and the propagation loss caused by the frequency difference are calculated to finally obtain the gain variation value, and the received signal is amplified according to the updated gain value, so that the received signal is not too large or too small, and the fluctuation is reduced.
Drawings
Fig. 1 is a structural diagram of a frequency hopping gain control apparatus of the present invention;
fig. 2 is a flow chart of a frequency hopping gain control method of the present invention.
Detailed Description
The invention will be further explained with reference to the drawings.
Referring to fig. 1, the apparatus for controlling gain of frequency hopping of the present invention includes: antenna 1, gain control section 2, signal strength calculation section 3, and gain control calculation section 4.
The antenna 1 is used for receiving analogue signals. The gain control unit 2 amplifies the analog signal according to the existing stored gain value. The signal intensity calculating unit 3 sums the intensities of the analog signals amplified in the preset time period, and calculates to obtain an average value of the signal intensities. The gain control calculation unit 4 calculates a gain variation value according to a difference between the signal intensity average value and a pre-stored target signal intensity and a propagation loss caused by a frequency difference, and feeds back the gain variation value to the gain control unit 2. The gain control unit 2 adds the existing stored gain value to the gain change value to obtain a new gain value and replaces the existing stored gain value. In fig. 1, the signal processing means demodulates and decodes a received signal.
The difference value delta _ rssi between the signal intensity average value and the pre-stored target signal intensity; propagation loss difference Δ _ f of 20log10f _ next/f _ current, f _ next being the next carrier frequency, f _ current being the current carrier frequency, log being the logarithm. The gain variation value Δ is Δ _ rssi +. Δ _ f; Δ _ rssi represents the difference between the signal strength average value and the pre-stored target signal strength.
Referring to fig. 2, the method for controlling a frequency hopping gain of the present invention includes the following steps:
s1) amplifying the received analog signal according to the existing stored gain value δ.
S2) summing the amplified analog signals in a preset time period, and calculating to obtain the signal strength average RSSI,
where N is the length of the received data, x (-) denotes the received signal, and abs (-) denotes the absolute value.
S3) calculating the RSSI and the RSSITARGETDifference between delta-rssi。
△-rssi=RSSITARGET-10*log10RSSI, where RSSI is a linear value, and the log on the band indicates a dB value, the variation is generally expressed in dB values.
S4) calculating a propagation loss difference Δ _ f of 20log due to the frequency difference10f _ next/f _ current, f _ next being the next carrier frequency, f _ current being the current carrier frequency, log being the logarithm. RSSI is calculated at f _ current. The conventional implementation device does not have the process, so that the larger the carrier frequency change before and after the carrier frequency change is, the larger the signal fluctuation is, and the larger or smaller the signal is.
S5) calculates the gain variation value Δ ═ Δ _ rssi + Δ _ f.
S6) calculating a new gain value α ═ δ + Δ;
s7) updates the existing stored gain value to: δ α.
The above embodiments are provided only for illustrating the present invention and not for limiting the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, and therefore all equivalent technical solutions should also fall within the scope of the present invention, and should be defined by the claims.