Method and device for removing direct current through high-precision tracking of receiver and medium
By storing the DC signal in the wireless communication system receiver and using fast and slow convergence parameters, efficient DC signal tracking and removal is achieved, solving the problems of large delay and complex calculations in the prior art, improving communication quality and reducing implementation costs.
Patent Information
- Application Number
- CN202411943797.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-04-04
AI Technical Summary
When removing the DC component in the receiver of the wireless communication system, the prior art has a large delay and high computational complexity, making it difficult to effectively implement in a system with high real-time and low resource consumption.
By storing DC signals in batches and using fast and slow convergence parameters, efficient tracking and removal of DC signals can be achieved. The specific steps include the gain value of the automatic gain circuit, the gear value and shift parameters, the current DC value is calculated based on the convergence parameters using the DC tracker, and the DC signal is removed through the DC eliminater.
It realizes high-precision tracking and removal of DC signals, reduces delays, improves communication quality, is suitable for high real-time and resource-constrained systems, and is relatively simple and low-cost.
Smart Images

Figure CN119766258A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless communication system receivers, and in particular to a method, a device and a medium for high-precision tracking and direct current removal of a receiver. Background Art
[0002] In wireless communication systems, the performance of the receiver is crucial, as it directly affects the quality and reliability of communication. The main function of the receiver is to extract useful information from the received signal. However, in the actual communication process, due to the influence of various factors, such as the non-ideality of the antenna, the characteristics of the transmission channel, and the internal circuit of the receiver, a DC component will be introduced into the received signal. This DC component is mixed with the useful signal, which will interfere with the processing and analysis of the signal, resulting in a decrease in communication quality.
[0003] To remove the DC component, the commonly used methods are the average DC removal method and the maximum likelihood estimation DC removal method. The average DC removal method estimates the DC component by calculating the average value of the received signal within a certain period of time, and then subtracts this estimated value from the received signal to remove DC interference. This method has good performance in some systems, such as the global mobile communication system. However, in order to accurately calculate the DC component, a large delay is required, which is unacceptable in some systems with high real-time requirements. The maximum likelihood estimation DC removal method uses the received signal and known channel information to solve the DC component through maximum likelihood estimation. Although this method has better performance in theory, its computational complexity is high and is not conducive to implementation. Especially in some resource-constrained systems, such as portable devices, their computing power and power consumption are strictly limited, so the scope of application of this method is limited. Therefore, how to accurately track and remove the DC component of the receiver while making the DC removal process have a small delay and easy to implement is a technical problem that needs to be solved. Summary of the invention
[0004] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and to provide a method, device and medium for high-precision tracking and removal of DC by a receiver. By storing the DC signal in grades and adopting fast and slow convergence parameters, the DC signal can be tracked and removed efficiently and stably.
[0005] The purpose of the present invention can be achieved by the following technical solutions:
[0006] According to one aspect of the present invention, a method for high-precision tracking and DC removal of a receiver is provided, and the specific steps include:
[0007] S1, the data processing module divides the gain value of the automatic gain circuit into at least two gears from low to high, and each gear corresponds to a DC grade register for storing the DC initial value under the gear;
[0008] S2, configuring the gear value and shift parameter of each gear; the DC tracker reads the gear value, and reads the DC initial value in the corresponding DC step register through the DC register;
[0009] S3, enabling the DC tracker, and obtaining the current DC value according to the current signal, the signal at the previous moment and the convergence parameter;
[0010] S4, the data processing module periodically updates the automatic gain circuit gear. If the current gear value is inconsistent with the gear value of the previous cycle, the DC value in the DC register at the last moment of the previous cycle is input into the DC sub-storage memory of the corresponding gear, and the DC initial value of the current gear is read and input into the DC eliminator, and S3 is repeated; if they are consistent, the automatic gain circuit gear is continuously updated and allocated in the original cycle;
[0011] S5. The DC eliminator removes the DC and outputs a DC-free signal.
[0012] Furthermore, the current DC initial value read by the DC register in S2 is input into the DC eliminator for current DC removal.
[0013] Furthermore, in S3, the convergence parameters include fast convergence parameters and slow convergence parameters.
[0014] Furthermore, the fast convergence parameters are first used for fast and stable tracking to obtain the current DC value; after the sampling interval L, the slow convergence parameters are switched to slow and precise tracking to further obtain a more accurate current DC value.
[0015] Furthermore, in S3, the fast convergence parameter takes values from 7, 12, 17 and 22, and the slow convergence parameter takes values from 12, 17, 22 and 27.
[0016] Furthermore, in the same DC tracking process, the fast convergence parameter is smaller than the slow convergence parameter.
[0017] Furthermore, in S3, the DC tracker obtains the DC value expression at the current moment i as:
[0018] datatemp=dataoutN(i-1)-dataoutN(i-1)>>Coef2;
[0019] dccal(i)=-2*datainN(i)+datainN(i-1)+2*dataoutN(i)-dataoutN(i)>>(Coef2-1)-datatemp+datatemp>>Coef2;
[0020] Among them, dataoutN(i-1) is the value of the amplified signal plus DC at the previous moment, Coef2 is the convergence parameter, dccal(i) is the calculated current DC value, datainN(i) is the signal amplified by N bits; datainN(i-1) is the signal amplified by N bits at the previous moment, dataoutN(i) is the current amplified signal plus the DC value of the previous moment, and datatemp is the intermediate signal value.
[0021] Furthermore, the DC eliminator in S5 performs shift processing on the signal to remove the DC value, and the expression is:
[0022] datainN(i)=datain(i)< <N;
[0023] dataoutN(i)=datainN(i)+dccal(i-1);
[0024] dataout(i)=dataoutN(i)>>N;
[0025] Where N is the shift parameter, datain(i) is the signal at time i, datainN(i) is the signal amplified by N bits, dccal(i-1) is the DC value at the previous moment, dataoutN(i) is the amplified signal plus the DC value of the previous moment; dataout(i) is the output signal after removing DC.
[0026] According to a second aspect of the present invention, there is provided an electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and the method described above is implemented when the processor executes the program.
[0027] According to a third aspect of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, wherein the program implements the method described above when executed by a processor.
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] (1) High-precision tracking and removal of DC: By storing the initial DC value in different levels and dynamically adjusting it according to the gear position of the automatic gain circuit, combined with fast and slow convergence parameters, efficient and high-precision tracking and removal of DC signals are achieved, which helps to improve the signal processing capability of the receiver and reduce the interference of DC components on useful signals, thereby improving communication quality.
[0030] (2) Strong real-time performance in DC removal: Through fast convergence parameters, the DC component can be tracked more quickly and stably, and the DC can be further accurately removed under the action of slow convergence parameters. The accuracy of DC removal is also guaranteed during efficient and fast tracking, which gives it a significant advantage in systems with high real-time requirements.
[0031] (3) Easy to implement and low-cost: The technical solution is relatively simple, mainly through simple shift and addition operations, without the need for complex calculation methods, which reduces the difficulty and cost of implementation, making this method widely applicable in various wireless communication systems, especially in resource-constrained systems such as portable devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A flow chart of a method for removing DC for high-precision tracking of a receiver;
[0033] Figure 2 This is the computational block diagram of the DC tracker. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0035] like Figure 1 As shown, a method for high-precision tracking and DC removal of a receiver is provided, and the specific steps include:
[0036] S1, the data processing module divides the gain value of the automatic gain circuit into at least two gears from low to high, and each gear corresponds to a DC grade register for storing the DC initial value under the gear;
[0037] S2, configure the gear value and shift parameters of each gear; the DC tracker reads the gear value, and reads the DC initial value in the corresponding DC step register through the DC register;
[0038] S3, enabling the DC tracker, and obtaining the current DC value according to the current signal, the signal at the previous moment and the convergence parameter;
[0039] S4, the data processing module periodically updates the automatic gain circuit gear. If the current gear value is inconsistent with the gear value of the previous cycle, the DC value in the DC register at the last moment of the previous cycle is input into the DC sub-storage memory of the corresponding gear, and the DC initial value of the current gear is read and input into the DC eliminator, and S3 is repeated; if they are consistent, the automatic gain circuit gear is continuously updated and allocated in the original cycle;
[0040] S5. The DC eliminator removes the DC and outputs a DC-free signal.
[0041] The current DC initial value read by the DC register in S2 is input into the DC eliminator for current DC removal.
[0042] In S3, the convergence parameters include fast convergence parameters and slow convergence parameters. Fast convergence parameters are used to improve efficiency, and slow convergence is used to improve accuracy. First, use the fast convergence parameters for fast and stable tracking to obtain the current DC value; after the sampling interval L, switch to using the slow convergence parameters for slow and precise tracking to further obtain a more accurate current DC value. The sampling interval L takes values from 1000, 2000, 4000, and 8000. In S3, the fast convergence parameters take values from 7, 12, 17, and 22, and the slow convergence parameters take values from 12, 17, 22, and 27.
[0043] During the same DC tracking process, the fast convergence parameter is smaller than the slow convergence parameter.
[0044] like Figure 2 As shown, in S3, the DC tracker obtains the DC value expression at the current moment i as:
[0045] datatemp=dataoutN(i-1)-dataoutN(i-1)>>Coef2;
[0046] dccal(i)=-2*datainN(i)+datainN(i-1)+2*dataoutN(i)-dataoutN(i)>>(Coef2-1)-datatemp+datatemp>>Coef2;
[0047] Among them, dataoutN(i-1) is the value of the amplified signal plus DC at the previous moment, Coef2 is the convergence parameter, dccal(i) is the calculated current DC value, datainN(i) is the signal amplified by N bits; datainN(i-1) is the signal amplified by N bits at the previous moment, dataoutN(i) is the current amplified signal plus the DC value of the previous moment, and datatemp is the intermediate signal value.
[0048] The DC eliminator in S5 performs shift processing on the signal to remove the DC value. The expression is:
[0049] datainN(i)=datain(i)< <N;
[0050] dataoutN(i)=datainN(i)+dccal(i-1);
[0051] dataout(i)=dataoutN(i)>>N;
[0052] Where N is the shift parameter, datain(i) is the signal at time i, datainN(i) is the signal amplified by N bits, dccal(i-1) is the DC value at the previous moment, dataoutN(i) is the amplified signal plus the DC value of the previous moment; dataout(i) is the output signal after removing DC.
[0053] In this embodiment, the steps of performing DC removal on a wireless communication receiver are as follows: the data processing module divides the automatic gain circuit into 4 gears, and writes different DC initial values obtained by calibration into the DC gear registers of different gears; when the receiver is turned on, the software control part configures the automatic gain circuit gear value and the shift parameter N=14 according to the current automatic gain circuit gain value; the DC tracker reads the automatic gain circuit gear value, and the DC register reads the DC initial value of the corresponding gear memory for DC elimination; the DC tracker is enabled, and the fast convergence parameter Coe is set f2=7; after the interval sampling time L=1000, set the slow parameter Coef2=17; the data processing module periodically updates the automatic gain circuit gear. If the current gear value is inconsistent with the gear value of the previous cycle, the DC value in the DC register at the last moment of the previous cycle is input into the DC sub-storage memory of the corresponding gear, and the DC initial value of the current gear is read and input into the DC eliminator, and fast convergence and slow convergence are repeated; if they are consistent, continue to update the automatic gain circuit gear with the original cycle; the DC eliminator removes the DC and outputs a DC-removed signal.
[0054] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the described module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0055] The electronic device of the present invention includes a central processing unit (CPU), which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) or loaded from a storage unit into a random access memory (RAM). In the RAM, various programs and data required for device operation can also be stored. The CPU, ROM and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.
[0056] A plurality of components in the device are connected to the I / O interface, including: an input unit, such as a keyboard, a mouse, etc.; an output unit, such as various types of displays, speakers, etc.; a storage unit, such as a disk, an optical disk, etc.; and a communication unit, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit allows the device to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks. The processing unit performs the various methods and processes described above, such as the method of the present invention. For example, in some embodiments, the method of the present invention may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit. In some embodiments, part or all of the computer program may be loaded and / or installed on the device via a ROM and / or a communication unit. When the computer program is loaded into the RAM and executed by the CPU, one or more steps of the method of the present invention described above may be performed. Alternatively, in other embodiments, the CPU may be configured to perform the method of the present invention in any other appropriate manner (e.g., by means of firmware).
[0057] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0058] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0059] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0060] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for high-precision tracking and DC removal of a receiver, characterized in that: The specific steps include: S1, the data processing module divides the gain value of the automatic gain circuit into at least two gears from low to high, and each gear corresponds to a DC grade register for storing the DC initial value under the gear; S2, configuring the gear value and shift parameter of each gear; the DC tracker reads the gear value, and reads the DC initial value in the corresponding DC step register through the DC register; S3, enabling the DC tracker, and obtaining the current DC value according to the current signal, the signal at the previous moment and the convergence parameter; S4, the data processing module periodically updates the automatic gain circuit gear. If the current gear value is inconsistent with the gear value of the previous cycle, the DC value in the DC register at the last moment of the previous cycle is input into the DC sub-storage memory of the corresponding gear, and the DC initial value of the current gear is read and input into the DC eliminator, and S3 is repeated; if they are consistent, the automatic gain circuit gear is continuously updated and allocated in the original cycle; S5. The DC eliminator removes the DC and outputs a DC-free signal.
2. A method for high-precision tracking and DC removal of a receiver according to claim 1, characterized in that: The current DC initial value read by the DC register in S2 is input into the DC eliminator for current DC removal.
3. A method for high-precision tracking and DC removal of a receiver according to claim 1, characterized in that: In S3, the convergence parameters include fast convergence parameters and slow convergence parameters.
4. A method for high-precision tracking and DC removal of a receiver according to claim 3, characterized in that: First, the fast convergence parameters are used for fast and stable tracking to obtain the current DC value; after the sampling interval time L, the slow convergence parameters are switched to slow and precise tracking to further obtain a more accurate current DC value.
5. A method for high-precision tracking and DC removal of a receiver according to claim 4, characterized in that: In S3, the fast convergence parameter takes values from 7, 12, 17 and 22, and the slow convergence parameter takes values from 12, 17, 22 and 27.
6. A method for high-precision tracking and DC removal of a receiver according to claim 5, characterized in that: During the same DC tracking process, the fast convergence parameter is smaller than the slow convergence parameter.
7. A method for high-precision tracking and DC removal of a receiver according to claim 1, characterized in that: In S3, the DC tracker obtains the DC value expression at the current moment i as: datatemp=dataoutN(i-1)-dataoutN(i-1)>>Coef2; dccal(i)=-2*datainN(i)+datainN(i-1)+2*dataoutN(i)-dataoutN(i)>>(Coef2-1)-datatemp+datatemp>>Coef2; Among them, dataoutN(i-1) is the value of the amplified signal plus DC at the previous moment, Coef2 is the convergence parameter, dccal(i) is the calculated current DC value, datainN(i) is the signal amplified by N bits; datainN(i-1) is the signal amplified by N bits at the previous moment, dataoutN(i) is the current amplified signal plus the DC value of the previous moment, and datatemp is the intermediate signal value.
8. The method for high-precision tracking and DC removal of a receiver according to claim 1, characterized in that: The DC eliminator in S5 performs shift processing on the signal to remove the DC value, and the expression is: datainN(i)=datain(i)< <N; dataoutN(i)=datainN(i)+dccal(i-1); dataout(i)=dataoutN(i)>>N; Where N is the shift parameter, datain(i) is the signal at time i, datainN(i) is the signal amplified by N bits, dccal(i-1) is the DC value at the previous moment, dataoutN(i) is the amplified signal plus the DC value of the previous moment; dataout(i) is the output signal after removing DC.
9. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the program, the method according to any one of claims 1 to 8 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.