A method, system and storage medium for adaptively adjusting GPS interference harmonics
By adjusting the resistance and inductance values in the filter circuit, the second harmonic interference is adaptively reduced, which solves the problem of GPS signals being disturbed by electronic devices at the operator network frequency, and improves the accuracy and performance of GPS signals.
Patent Information
- Application Number
- CN202411429454.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-14
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2044-10-14
AI Technical Summary
Electronic equipment is subject to secondary harmonic interference at the operator network frequency, resulting in navigation offset. It is difficult for the existing technology to completely destroy noise interference and affect GPS performance.
By adjusting the resistance and inductance values in the filter circuit according to the processing signal strength and vibration amplitude of the GPS signal, the automatic adjustment of the filter circuit is realized, and the second harmonic interference is adaptively reduced.
It improves the accuracy and performance of GPS signals, effectively reduces second harmonic interference, and optimizes navigation results.
Smart Images

Figure CN118962730B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronics, and more specifically, to a method, system and storage medium for adaptively adjusting GPS interference harmonics. Background Art
[0002] When electronic devices are connected to the operator's network, especially when mobile phones and other devices open the operator's 782MHz frequency data traffic network, the GPS (Global Positioning System) circuit in the electronic device will be interfered by the second harmonic of this frequency, causing the GPS signal to be superimposed with an error signal, resulting in navigation offset.
[0003] At present, the GPS circuits of electronic devices on the market generally use a single bandpass filter and solve the interference by external environmental treatment. However, since the GPS circuit receptors and interference sources cannot be shielded, simply changing the interference path cannot achieve the best effect. Only using environmental treatment on the circuit board can appropriately reduce the energy of the 782MHz second harmonic, but due to the influence of the module layout, it is impossible to completely destroy all noise interference paths, and the effect on GPS performance optimization is not very ideal. Therefore, there is an urgent need for an adaptive adjustment technology for GPS interference harmonics that can make up for the defects of the bandpass filter's out-of-band suppression and expand the frequency range. Summary of the invention
[0004] In view of the above problems, the purpose of the present invention is to provide a method, system and storage medium for adaptively adjusting GPS interference harmonics, which can adjust the resistance value of the resistor in the filter circuit according to the strength of the processing signal of the GPS signal, and adjust the inductance value of the filter inductor in the filter circuit according to the vibration amplitude of the processing signal of the GPS signal and the resistance value of the resistor in the filter circuit, so as to realize automatic adjustment of the filter circuit, so as to adaptively reduce the interference of the second harmonic, thereby improving the accuracy of the GPS signal.
[0005] A first aspect of the present invention provides a method for adaptively adjusting GPS interference harmonics, the method comprising:
[0006] Collecting and recording first voltage information according to a preset time period;
[0007] Obtaining second voltage information according to the first voltage information;
[0008] Determining whether the second voltage information exceeds a preset first voltage threshold;
[0009] If yes, then calculating the difference between the second voltage information and the first target voltage information to obtain first voltage difference information;
[0010] adjusting first resistance information of the first resistor according to first voltage difference information;
[0011] Re-collecting and recording the first voltage information according to a preset time period;
[0012] Obtaining third voltage information according to the first voltage information;
[0013] Obtaining second target voltage information according to the first resistance information;
[0014] Calculating a difference between the third voltage information and the second target voltage information to obtain second voltage difference information;
[0015] The first inductance information of the first inductor or the second inductance information of the second inductor is adjusted according to the second voltage difference information and the second voltage information.
[0016] In this solution, the second voltage information is obtained according to the first voltage information, specifically:
[0017] Obtaining a first voltage sequence according to the first voltage information in a preset sorting manner;
[0018] Obtaining a first weight relationship expression according to first quantity information of the first voltage information;
[0019] Calculating and obtaining fourth voltage information according to the first weight relationship and the first voltage sequence;
[0020] Determining first weight information according to the first weight relationship formula and the first quantity information;
[0021] Second voltage information is obtained according to the fourth voltage information and the first weight information.
[0022] In this solution, the third voltage information is obtained according to the first voltage information, specifically:
[0023] Acquire second quantity information of the first voltage information;
[0024] determining third quantity information according to the second quantity information;
[0025] Obtaining first maximum value information and second maximum value information according to the first voltage information and the third quantity information;
[0026] Calculating a difference between the first maximum value information and the second maximum value information to obtain first maximum value difference information;
[0027] The third voltage information is obtained according to the first maximum difference information and the third quantity information.
[0028] In this solution, the first resistance information of the first resistor is adjusted according to the first voltage difference information, specifically:
[0029] According to the first voltage difference information, a first adjustment control amount, a second adjustment control amount and a third adjustment control amount are obtained according to the preset first adjustment coefficient information, the preset second adjustment coefficient information and the preset third adjustment coefficient information;
[0030] Calculating the sum of the first adjustment control amount, the second adjustment control amount and the third adjustment control amount to obtain first adjustment amount information;
[0031] Obtaining second resistance information according to the first adjustment amount information and the first resistance information;
[0032] The first resistance is adjusted according to the second resistance information.
[0033] In this solution, adjusting the first inductance information of the first inductor or the second inductance information of the second inductor according to the second voltage difference information and the second voltage information is specifically:
[0034] Determining fourth adjustment coefficient information and fifth adjustment coefficient information according to the second voltage information;
[0035] Obtaining a fourth adjustment control amount and a fifth adjustment control amount according to the second voltage difference information, the fourth adjustment coefficient information, and the fifth adjustment coefficient information;
[0036] Calculating the sum of the fourth adjustment control amount and the fifth adjustment control amount to obtain second adjustment amount information;
[0037] The first inductance or the second inductance is adjusted according to the first inductance information, the second inductance information and the second adjustment amount information.
[0038] In this solution, adjusting the first inductance or the second inductance according to the first inductance information, the second inductance information and the second adjustment amount information is specifically:
[0039] Calculating the sum of the first inductance information and the second adjustment amount information to obtain third inductance information;
[0040] Determining whether the third inductance information is within a preset inductance value range;
[0041] If yes, setting the first inductance according to the third inductance information;
[0042] If not, setting the first inductance information according to a preset inductance threshold;
[0043] Calculating a difference between the inductance threshold and the first inductance information to obtain first inductance difference information;
[0044] Calculating the second adjustment amount information and the first inductance difference information to obtain second inductance difference information;
[0045] The second inductance is adjusted according to the second inductance difference information.
[0046] A second aspect of the present invention provides a GPS interference harmonic adaptive adjustment system, including a GPS interference harmonic adaptive adjustment method program, wherein the GPS interference harmonic adaptive adjustment method program implements the following steps when executed by the processor:
[0047] Collecting and recording first voltage information according to a preset time period;
[0048] Obtaining second voltage information according to the first voltage information;
[0049] Determining whether the second voltage information exceeds a preset first voltage threshold;
[0050] If yes, then calculating the difference between the second voltage information and the first target voltage information to obtain first voltage difference information;
[0051] adjusting first resistance information of the first resistor according to first voltage difference information;
[0052] Re-collecting and recording the first voltage information according to a preset time period;
[0053] Obtaining third voltage information according to the first voltage information;
[0054] Obtaining second target voltage information according to the first resistance information;
[0055] Calculating a difference between the third voltage information and the second target voltage information to obtain second voltage difference information;
[0056] The first inductance information of the first inductor or the second inductance information of the second inductor is adjusted according to the second voltage difference information and the second voltage information.
[0057] In this solution, the second voltage information is obtained according to the first voltage information, specifically:
[0058] Obtaining a first voltage sequence according to the first voltage information in a preset sorting manner;
[0059] Obtaining a first weight relationship expression according to first quantity information of the first voltage information;
[0060] Calculating and obtaining fourth voltage information according to the first weight relationship and the first voltage sequence;
[0061] Determining first weight information according to the first weight relationship formula and the first quantity information;
[0062] Second voltage information is obtained according to the fourth voltage information and the first weight information.
[0063] A third aspect of the present invention provides a computer-readable storage medium, which includes a method program for adaptively adjusting GPS interference harmonics. When the method program for adaptively adjusting GPS interference harmonics is executed by a processor, the steps of the method for adaptively adjusting GPS interference harmonics as described in any one of the above items are implemented.
[0064] In this solution, the third voltage information is obtained according to the first voltage information, specifically:
[0065] Acquire second quantity information of the first voltage information;
[0066] determining third quantity information according to the second quantity information;
[0067] Obtaining first maximum value information and second maximum value information according to the first voltage information and the third quantity information;
[0068] Calculating a difference between the first maximum value information and the second maximum value information to obtain first maximum value difference information;
[0069] The third voltage information is obtained according to the first maximum difference information and the third quantity information.
[0070] The present invention provides a method, system and storage medium for adaptively adjusting GPS interference harmonics. First, according to a preset first time period, first voltage information is collected and recorded to obtain second voltage information; secondly, first voltage difference information is obtained according to the second voltage information to adjust the resistance value of a first resistor; then, according to a preset second time period, the first voltage information is recollected and recorded to obtain third voltage information; finally, according to the third voltage information and the second voltage information, the first inductance information of the first inductor or the second inductance information of the second inductor is adjusted; the resistance value and the inductance value of the filter circuit are automatically adjusted to adaptively reduce the interference of the second harmonic, thereby improving the accuracy of the GPS signal. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and should not be regarded as limiting the scope.
[0072] Figure 1 A schematic diagram of an adaptive adjustment circuit for GPS interference harmonics is shown;
[0073] Figure 2 A flow chart of a method for adaptively adjusting GPS interference harmonics according to the present invention is shown;
[0074] Figure 3 A calculation flow chart of the second voltage information provided by an embodiment of the present invention is shown;
[0075] Figure 4 A calculation flow chart of the third voltage information provided by an embodiment of the present invention is shown;
[0076] Figure 5 A block diagram of a GPS interference harmonic adaptive adjustment system according to the present invention is shown. DETAILED DESCRIPTION
[0077] 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 only 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 are within the scope of protection of the present invention.
[0078] Unless otherwise defined, all terms (including technical and scientific terms) used in the embodiments of the present invention have the same meanings as commonly understood by those skilled in the art to which the present invention belongs. It should also be understood that terms such as those defined in common dictionaries should be interpreted as having meanings consistent with their meanings in the context of the relevant technology, and should not be interpreted in an idealized or extremely formal sense, unless the embodiments of the present invention are explicitly defined in this way.
[0079] The words "first", "second" and similar words used in the embodiments of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Words such as "one", "an" or "the" and similar words do not indicate a quantity limitation, but indicate the existence of at least one. Similarly, words such as "include" or "comprise" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Words such as "connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The steps before or after the method of the embodiment of the present invention are not necessarily carried out in order. On the contrary, various steps can be processed in reverse order or simultaneously. At the same time, other operations can also be added to these processes, or a step or several steps can be removed from these processes.
[0080] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0081] Figure 1 A schematic diagram of an adaptive adjustment circuit for GPS interference harmonics is shown.
[0082] like Figure 1 As shown, a GPS interference harmonic adaptive adjustment circuit, the circuit comprises:
[0083] The first inductor L1, the first resistor R1 and the second inductor L2 form a π-type matching filter for filtering and denoising the original GPS signal;
[0084] A first signal amplifier, used to amplify the GPS primary signal output by the π-type matched filter;
[0085] It should be noted that the first inductor L1, the first resistor R1 and the second inductor L2 form a π-type matching filter, wherein the first resistor R1 can control the amplitude of the output signal, and the first inductor L1, the first resistor R1 and the second inductor L2 jointly determine the filtering frequency. The first signal amplifier amplifies the signal filtered by the π-type matching filter to obtain the first voltage information.
[0086] Figure 2 A flow chart of a method for adaptively adjusting GPS interference harmonics of the present invention is shown.
[0087] like Figure 2 As shown, the present invention discloses a method for adaptively adjusting GPS interference harmonics, the method comprising:
[0088] S202, collecting and recording first voltage information according to a preset time period;
[0089] S204, obtaining second voltage information according to the first voltage information;
[0090] S206, determining whether the second voltage information exceeds a preset first voltage threshold;
[0091] S208, if yes, calculating the difference between the second voltage information and the first target voltage information to obtain first voltage difference information;
[0092] S210, adjusting first resistance information of the first resistor according to first voltage difference information;
[0093] S212, re-collecting and recording the first voltage information according to a preset time period;
[0094] S214, obtaining third voltage information according to the first voltage information;
[0095] S216, obtaining second target voltage information according to the first resistance information;
[0096] S218, calculating a difference between the third voltage information and the second target voltage information to obtain second voltage difference information;
[0097] S220: Adjust the first inductance information of the first inductor or the second inductance information of the second inductor according to the second voltage difference information and the second voltage information.
[0098] It should be noted that the first voltage information is the GPS voltage signal after filtering and amplification by the adaptive adjustment circuit of GPS interference harmonics; the second voltage information is the average value of the first voltage information obtained according to the preset mean algorithm; the first resistance information is the resistance value of the first resistor; the third voltage information is the difference of the maximum value of the first voltage information obtained according to the preset maximum value algorithm; the second target voltage information is the target voltage value of the GPS signal after filtering and amplification under the current resistance value of the first resistor; the first inductance information is the inductance value of the first inductor; the second inductance information is the inductance value of the second inductor. In order to improve the filtering effect of interference harmonics, the present invention adopts the method of adaptively adjusting the filter amplifier circuit, including the following steps: first, according to the preset time period, the first voltage information is collected and recorded; according to the recorded first voltage information, the average value of the first voltage information obtained according to the preset mean algorithm is recorded as the second voltage information. Secondly, if the second voltage information exceeds the preset voltage threshold, indicating that the GPS signal strength meets the positioning requirements, the difference between the second voltage information and the first target voltage information is calculated to obtain the first voltage difference information; the resistance adjustment amount of the first resistor is obtained according to the preset first control adjustment algorithm based on the first voltage difference information, which is used to adjust the first resistance information of the first resistor. After completing the adjustment of the first resistance, the first voltage information is re-collected and recorded according to the preset time period; according to the recorded first voltage information, the difference of the maximum value of the first voltage information obtained according to the preset maximum value algorithm is the third voltage information. Then, according to the first resistance information, the preset oscillation amplitude corresponding table is searched to obtain the second target voltage information. Finally, the difference between the third voltage information and the second target voltage information is calculated to obtain the second voltage difference information; according to the second voltage information, the calculation coefficient of the preset second control adjustment algorithm is obtained by looking up the table, and the inductance adjustment amount of the first inductor or the second inductor is calculated according to the preset second control adjustment algorithm according to the second voltage difference information, which is used to adjust the first inductance information of the first inductor or the second inductance information of the second inductor. The automatic adjustment of the resistance and inductance of the filter circuit is realized to adaptively reduce the interference of the second harmonic, thereby improving the accuracy of the GPS signal.
[0099] Figure 3 A calculation flow chart of the second voltage information provided by an embodiment of the present invention is shown.
[0100] According to an embodiment of the present invention, Figure 3 As shown, the second voltage information is obtained according to the first voltage information, specifically:
[0101] S302, obtaining a first voltage sequence according to the first voltage information in a preset sorting manner;
[0102] S304, obtaining a first weight relationship formula according to first quantity information of the first voltage information;
[0103] S306, calculating and obtaining fourth voltage information according to the first weight relationship expression and the first voltage sequence;
[0104] S308, determining first weight information according to the first weight relationship formula and the first quantity information;
[0105] S310: Obtain second voltage information according to the fourth voltage information and the first weight information.
[0106] It should be noted that the first quantity information is the quantity of the first voltage information in the first voltage sequence; the first weight relationship is the relationship between the weight value and the voltage sequence number; the fourth voltage information is the weighted sum of the first voltage information; the first weight information is the sum of weighted values. In order to avoid the influence of measurement errors caused by environmental factors such as voltage jitter on the mean calculation, the present invention calculates the second voltage information by weighted method. First, the first voltage information is arranged in ascending or descending order to obtain the first voltage sequence; according to the first quantity information in the first voltage sequence, the first weight relationship is obtained. As an implementation method, the weight relationship set by the present invention is Gaussian distributed to weaken the influence of the peak and valley values in the first voltage sequence on the mean calculation. Then, the weighted sum of the voltage values in the first voltage sequence is calculated according to the weight information, which is recorded as the fourth voltage information; and the sum of the weights is calculated according to the first weight relationship, which is recorded as the first weight information. Finally, the quotient of the fourth voltage information and the first weight information is calculated to obtain the second voltage information.
[0107] Figure 4 A calculation flow chart of the third voltage information provided by an embodiment of the present invention is shown.
[0108] According to an embodiment of the present invention, Figure 4 As shown, the third voltage information is obtained according to the first voltage information, specifically:
[0109] S402, obtaining second quantity information of the first voltage information;
[0110] S404, determining third quantity information according to the second quantity information;
[0111] S406, obtaining first maximum value information and second maximum value information according to the first voltage information and the third quantity information;
[0112] S408, calculating the difference between the first maximum value information and the second maximum value information to obtain first maximum value difference information;
[0113] S410: Obtain third voltage information according to the first maximum difference information and the third quantity information.
[0114] It should be noted that the second quantity information is the number of the first voltage information that is re-collected and recorded, that is, the number of the first voltage information used to calculate the third voltage information; the third quantity information is the number of the first voltage information calculated from the first maximum value information and the second maximum value information; the first maximum value information is the sum of the maximum values calculated according to the third quantity information; the second maximum value information is the sum of the minimum values calculated according to the third quantity information. The present invention obtains a number of maximum values and a number of minimum values to calculate the difference between the maximum values of the first voltage information. As an implementation method, according to a preset rule, the third quantity information is determined according to the second quantity information. For example, the third quantity information is obtained according to the rule of 20% of the second quantity information. If the second quantity information is 100, the third quantity information is 20. Extract the first 20 maximum values and the first 20 minimum values from the first voltage information, calculate the sum of the maximum values and the sum of the minimum values respectively, and obtain the first maximum value information and the second maximum value information. Finally, after calculating the difference between the first maximum value information and the second maximum value information, calculate the quotient with the third quantity information, and obtain the third voltage information.
[0115] According to an embodiment of the present invention, the first resistance information of the first resistor is adjusted according to the first voltage difference information, specifically:
[0116] According to the first voltage difference information, a first adjustment control amount, a second adjustment control amount and a third adjustment control amount are obtained according to the preset first adjustment coefficient information, the preset second adjustment coefficient information and the preset third adjustment coefficient information;
[0117] Calculating the sum of the first adjustment control amount, the second adjustment control amount and the third adjustment control amount to obtain first adjustment amount information;
[0118] Obtaining second resistance information according to the first adjustment amount information and the first resistance information;
[0119] The first resistance is adjusted according to the second resistance information.
[0120] It should be noted that, as an implementation mode, the present invention adopts a fixed coefficient PID (proportional, integral, differential) control algorithm to adjust the first resistance information. The first adjustment coefficient information is the first proportional adjustment coefficient; the second adjustment coefficient information is the first integral adjustment coefficient; the third adjustment coefficient information is the first differential adjustment coefficient; the first adjustment control quantity is the first proportional adjustment control quantity, the second adjustment control quantity is the first integral adjustment control quantity; the third adjustment control quantity is the first differential adjustment control quantity. According to the first voltage difference information and the preset proportional, integral, and differential adjustment coefficients, the corresponding proportional, integral, and differential adjustment control quantities are calculated; the sum of the three control quantities is calculated to obtain the first adjustment quantity information. Then, according to the first resistance information and the first adjustment quantity information, the target resistance value of the first resistor and the second resistance information are calculated. Finally, the first resistor is adjusted according to the target resistance value.
[0121] According to an embodiment of the present invention, adjusting the first inductance information of the first inductor or the second inductance information of the second inductor according to the second voltage difference information and the second voltage information is specifically:
[0122] Determining fourth adjustment coefficient information and fifth adjustment coefficient information according to the second voltage information;
[0123] Obtaining a fourth adjustment control amount and a fifth adjustment control amount according to the second voltage difference information, the fourth adjustment coefficient information, and the fifth adjustment coefficient information;
[0124] Calculating the sum of the fourth adjustment control amount and the fifth adjustment control amount to obtain second adjustment amount information;
[0125] The first inductance or the second inductance is adjusted according to the first inductance information, the second inductance information and the second adjustment amount information.
[0126] It should be noted that, as an implementation mode, the present invention adopts a variable coefficient PI (proportional, integral) control algorithm to adjust the first inductance information or the second inductance information. The fourth adjustment coefficient information is the second proportional adjustment coefficient; the fifth adjustment coefficient information is the second integral adjustment coefficient; the fourth adjustment control quantity is the second proportional adjustment control quantity, and the fifth adjustment control quantity is the second integral adjustment control quantity. First, according to the second voltage information, the preset voltage coefficient corresponding table is searched to obtain the corresponding proportional and integral coefficients. Secondly, according to the second voltage difference information and the above-mentioned proportional and integral coefficients, the corresponding proportional and integral adjustment control quantity is calculated; the sum of the two control quantities is calculated to obtain the second adjustment quantity information. Finally, according to the first inductance information, the second inductance information and the second adjustment quantity information, the inductance value of the first inductance or the second inductance is adjusted.
[0127] According to an embodiment of the present invention, adjusting the first inductance or the second inductance according to the first inductance information, the second inductance information and the second adjustment amount information is specifically:
[0128] Calculating the sum of the first inductance information and the second adjustment amount information to obtain third inductance information;
[0129] Determining whether the third inductance information is within a preset inductance value range;
[0130] If yes, setting the first inductance according to the third inductance information;
[0131] If not, setting the first inductance information according to a preset inductance threshold;
[0132] Calculating a difference between the inductance threshold and the first inductance information to obtain first inductance difference information;
[0133] Calculating the second adjustment amount information and the first inductance difference information to obtain second inductance difference information;
[0134] The second inductance is adjusted according to the second inductance difference information.
[0135] It should be noted that, as an implementation method, in the inductance adjustment process, the first inductance or the second inductance is adjusted preferentially. Taking the preferential adjustment of the first inductance as an example, first, the sum of the first inductance information and the second adjustment amount information is calculated to obtain the third inductance information; the third inductance information is the adjustment target inductance value of the first inductance. Secondly, determine whether the third inductance information is within the preset inductance value range; if so, adjust the first inductance; if not, adjust the first inductance to the preset inductance threshold, and calculate the inductance value adjustment amount of the first inductance, which is recorded as the first inductance difference information. Then, calculate the remaining inductance adjustment amount, which is recorded as the second inductance difference information. Finally, adjust the second inductance according to the second inductance difference information.
[0136] It is worth mentioning that it also includes:
[0137] Determining whether the first resistance information exceeds a preset first resistance threshold;
[0138] If yes, determining whether the second voltage information is lower than a preset second voltage threshold;
[0139] If so, the gain factor of the first signal amplifier is adjusted upward.
[0140] It should be noted that when the resistance of the first resistor is too large, the greater its voltage limiting ability is, the smaller the GPS signal flowing into the operational amplifier is, and the greater the gain of the amplifier needs to be. In order to increase the first resistor to have a larger adjustment space in the adaptive adjustment process of the interference harmonics, the present invention is achieved by adjusting the gain coefficient of the first signal amplifier. When the first resistance information exceeds the preset first resistance threshold, if the second voltage information is lower than the preset second voltage threshold, it means that the gain of the amplifier is too small, so by increasing the gain coefficient of the first signal amplifier, the adjustment space of the first resistor is expanded.
[0141] It is worth mentioning that it also includes:
[0142] Determining whether the first resistance information is lower than a preset second resistance threshold;
[0143] If yes, determining whether the second voltage information exceeds a preset third voltage threshold;
[0144] If so, the gain factor of the first signal amplifier is adjusted downward.
[0145] It should be noted that when the resistance of the first resistor is too small, the smaller its voltage limiting ability is, the larger the GPS signal flowing into the operational amplifier is, and the smaller the gain of the amplifier needs to be. In order to increase the first resistor to have a larger adjustment space in the adaptive adjustment process of the interference harmonics, the present invention is achieved by adjusting the gain coefficient of the first signal amplifier. When the first resistance information exceeds the second resistance threshold value below, if the second voltage information exceeds the preset third voltage threshold value, it means that the gain of the amplifier is too large, so by reducing the gain coefficient of the first signal amplifier, the adjustment space of the first resistor is expanded.
[0146] Figure 5 A block diagram of a GPS interference harmonic adaptive adjustment system according to the present invention is shown.
[0147] like Figure 5 As shown, the present invention discloses a GPS interference harmonic adaptive adjustment system 5, comprising a memory 51 and a processor 52, wherein the memory comprises a GPS interference harmonic adaptive adjustment method program, and when the GPS interference harmonic adaptive adjustment method program is executed by the processor, the following steps are implemented:
[0148] Collecting and recording first voltage information according to a preset time period;
[0149] Obtaining second voltage information according to the first voltage information;
[0150] Determining whether the second voltage information exceeds a preset first voltage threshold;
[0151] If yes, then calculating the difference between the second voltage information and the first target voltage information to obtain first voltage difference information;
[0152] adjusting first resistance information of the first resistor according to first voltage difference information;
[0153] Re-collecting and recording the first voltage information according to a preset time period;
[0154] Obtaining third voltage information according to the first voltage information;
[0155] Obtaining second target voltage information according to the first resistance information;
[0156] Calculating a difference between the third voltage information and the second target voltage information to obtain second voltage difference information;
[0157] The first inductance information of the first inductor or the second inductance information of the second inductor is adjusted according to the second voltage difference information and the second voltage information.
[0158] It should be noted that the first voltage information is the GPS voltage signal after filtering and amplification by the adaptive adjustment circuit of GPS interference harmonics; the second voltage information is the average value of the first voltage information obtained according to the preset mean algorithm; the first resistance information is the resistance value of the first resistor; the third voltage information is the difference of the maximum value of the first voltage information obtained according to the preset maximum value algorithm; the second target voltage information is the target voltage value of the GPS signal after filtering and amplification under the current resistance value of the first resistor; the first inductance information is the inductance value of the first inductor; the second inductance information is the inductance value of the second inductor. In order to improve the filtering effect of interference harmonics, the present invention adopts the method of adaptively adjusting the filter amplifier circuit, including the following steps: first, according to the preset time period, the first voltage information is collected and recorded; according to the recorded first voltage information, the average value of the first voltage information obtained according to the preset mean algorithm is recorded as the second voltage information. Secondly, if the second voltage information exceeds the preset voltage threshold, indicating that the GPS signal strength meets the positioning requirements, the difference between the second voltage information and the first target voltage information is calculated to obtain the first voltage difference information; the resistance adjustment amount of the first resistor is obtained according to the preset first control adjustment algorithm based on the first voltage difference information, which is used to adjust the first resistance information of the first resistor. After completing the adjustment of the first resistance, the first voltage information is re-collected and recorded according to the preset time period; according to the recorded first voltage information, the difference of the maximum value of the first voltage information obtained according to the preset maximum value algorithm is the third voltage information. Then, according to the first resistance information, the preset oscillation amplitude corresponding table is searched to obtain the second target voltage information. Finally, the difference between the third voltage information and the second target voltage information is calculated to obtain the second voltage difference information; according to the second voltage information, the calculation coefficient of the preset second control adjustment algorithm is obtained by looking up the table, and the inductance adjustment amount of the first inductor or the second inductor is calculated according to the preset second control adjustment algorithm according to the second voltage difference information, which is used to adjust the first inductance information of the first inductor or the second inductance information of the second inductor. The automatic adjustment of the resistance and inductance of the filter circuit is realized to adaptively reduce the interference of the second harmonic, thereby improving the accuracy of the GPS signal.
[0159] According to an embodiment of the present invention, obtaining the second voltage information according to the first voltage information is specifically:
[0160] Obtaining a first voltage sequence according to the first voltage information in a preset sorting manner;
[0161] Obtaining a first weight relationship expression according to first quantity information of the first voltage information;
[0162] Calculating and obtaining fourth voltage information according to the first weight relationship and the first voltage sequence;
[0163] Determining first weight information according to the first weight relationship formula and the first quantity information;
[0164] Second voltage information is obtained according to the fourth voltage information and the first weight information.
[0165] It should be noted that the first quantity information is the quantity of the first voltage information in the first voltage sequence; the first weight relationship is the relationship between the weight value and the voltage sequence number; the fourth voltage information is the weighted sum of the first voltage information; the first weight information is the sum of weighted values. In order to avoid the influence of measurement errors caused by environmental factors such as voltage jitter on the mean calculation, the present invention calculates the second voltage information by weighted method. First, the first voltage information is arranged in ascending or descending order to obtain the first voltage sequence; according to the first quantity information in the first voltage sequence, the first weight relationship is obtained. As an implementation method, the weight relationship set by the present invention is Gaussian distributed to weaken the influence of the peak and valley values in the first voltage sequence on the mean calculation. Then, the weighted sum of the voltage values in the first voltage sequence is calculated according to the weight information, which is recorded as the fourth voltage information; and the sum of the weights is calculated according to the first weight relationship, which is recorded as the first weight information. Finally, the quotient of the fourth voltage information and the first weight information is calculated to obtain the second voltage information.
[0166] According to an embodiment of the present invention, obtaining the third voltage information according to the first voltage information is specifically:
[0167] Acquire second quantity information of the first voltage information;
[0168] determining third quantity information according to the second quantity information;
[0169] Obtaining first maximum value information and second maximum value information according to the first voltage information and the third quantity information;
[0170] Calculating a difference between the first maximum value information and the second maximum value information to obtain first maximum value difference information;
[0171] The third voltage information is obtained according to the first maximum difference information and the third quantity information.
[0172] It should be noted that the second quantity information is the number of the first voltage information that is re-collected and recorded, that is, the number of the first voltage information used to calculate the third voltage information; the third quantity information is the number of the first voltage information calculated from the first maximum value information and the second maximum value information; the first maximum value information is the sum of the maximum values calculated according to the third quantity information; the second maximum value information is the sum of the minimum values calculated according to the third quantity information. The present invention obtains a number of maximum values and a number of minimum values to calculate the difference between the maximum values of the first voltage information. As an implementation method, according to a preset rule, the third quantity information is determined according to the second quantity information. For example, the third quantity information is obtained according to the rule of 20% of the second quantity information. If the second quantity information is 100, the third quantity information is 20. Extract the first 20 maximum values and the first 20 minimum values from the first voltage information, calculate the sum of the maximum values and the sum of the minimum values respectively, and obtain the first maximum value information and the second maximum value information. Finally, after calculating the difference between the first maximum value information and the second maximum value information, calculate the quotient with the third quantity information, and obtain the third voltage information.
[0173] According to an embodiment of the present invention, the first resistance information of the first resistor is adjusted according to the first voltage difference information, specifically:
[0174] According to the first voltage difference information, a first adjustment control amount, a second adjustment control amount and a third adjustment control amount are obtained according to the preset first adjustment coefficient information, the preset second adjustment coefficient information and the preset third adjustment coefficient information;
[0175] Calculating the sum of the first adjustment control amount, the second adjustment control amount and the third adjustment control amount to obtain first adjustment amount information;
[0176] Obtaining second resistance information according to the first adjustment amount information and the first resistance information;
[0177] The first resistance is adjusted according to the second resistance information.
[0178] It should be noted that, as an implementation mode, the present invention adopts a fixed coefficient PID (proportional, integral, differential) control algorithm to adjust the first resistance information. The first adjustment coefficient information is the first proportional adjustment coefficient; the second adjustment coefficient information is the first integral adjustment coefficient; the third adjustment coefficient information is the first differential adjustment coefficient; the first adjustment control quantity is the first proportional adjustment control quantity, the second adjustment control quantity is the first integral adjustment control quantity; the third adjustment control quantity is the first differential adjustment control quantity. According to the first voltage difference information and the preset proportional, integral, and differential adjustment coefficients, the corresponding proportional, integral, and differential adjustment control quantities are calculated; the sum of the three control quantities is calculated to obtain the first adjustment quantity information. Then, according to the first resistance information and the first adjustment quantity information, the target resistance value of the first resistor and the second resistance information are calculated. Finally, the first resistor is adjusted according to the target resistance value.
[0179] According to an embodiment of the present invention, adjusting the first inductance information of the first inductor or the second inductance information of the second inductor according to the second voltage difference information and the second voltage information is specifically:
[0180] Determining fourth adjustment coefficient information and fifth adjustment coefficient information according to the second voltage information;
[0181] Obtaining a fourth adjustment control amount and a fifth adjustment control amount according to the second voltage difference information, the fourth adjustment coefficient information, and the fifth adjustment coefficient information;
[0182] Calculating the sum of the fourth adjustment control amount and the fifth adjustment control amount to obtain second adjustment amount information;
[0183] The first inductance or the second inductance is adjusted according to the first inductance information, the second inductance information and the second adjustment amount information.
[0184] It should be noted that, as an implementation mode, the present invention adopts a variable coefficient PI (proportional, integral) control algorithm to adjust the first inductance information or the second inductance information. The fourth adjustment coefficient information is the second proportional adjustment coefficient; the fifth adjustment coefficient information is the second integral adjustment coefficient; the fourth adjustment control quantity is the second proportional adjustment control quantity, and the fifth adjustment control quantity is the second integral adjustment control quantity. First, according to the second voltage information, the preset voltage coefficient corresponding table is searched to obtain the corresponding proportional and integral coefficients. Secondly, according to the second voltage difference information and the above-mentioned proportional and integral coefficients, the corresponding proportional and integral adjustment control quantity is calculated; the sum of the two control quantities is calculated to obtain the second adjustment quantity information. Finally, according to the first inductance information, the second inductance information and the second adjustment quantity information, the inductance value of the first inductance or the second inductance is adjusted.
[0185] According to an embodiment of the present invention, adjusting the first inductance or the second inductance according to the first inductance information, the second inductance information and the second adjustment amount information is specifically:
[0186] Calculating the sum of the first inductance information and the second adjustment amount information to obtain third inductance information;
[0187] Determining whether the third inductance information is within a preset inductance value range;
[0188] If yes, setting the first inductance according to the third inductance information;
[0189] If not, setting the first inductance information according to a preset inductance threshold;
[0190] Calculating a difference between the inductance threshold and the first inductance information to obtain first inductance difference information;
[0191] Calculating the second adjustment amount information and the first inductance difference information to obtain second inductance difference information;
[0192] The second inductance is adjusted according to the second inductance difference information.
[0193] It should be noted that, as an implementation method, in the inductance adjustment process, the first inductance or the second inductance is adjusted preferentially. Taking the preferential adjustment of the first inductance as an example, first, the sum of the first inductance information and the second adjustment amount information is calculated to obtain the third inductance information; the third inductance information is the adjustment target inductance value of the first inductance. Secondly, determine whether the third inductance information is within the preset inductance value range; if so, adjust the first inductance; if not, adjust the first inductance to the preset inductance threshold, and calculate the inductance value adjustment amount of the first inductance, which is recorded as the first inductance difference information. Then, calculate the remaining inductance adjustment amount, which is recorded as the second inductance difference information. Finally, adjust the second inductance according to the second inductance difference information.
[0194] It is worth mentioning that it also includes:
[0195] Determining whether the first resistance information exceeds a preset first resistance threshold;
[0196] If yes, determining whether the second voltage information is lower than a preset second voltage threshold;
[0197] If so, the gain factor of the first signal amplifier is adjusted upward.
[0198] It should be noted that when the resistance of the first resistor is too large, the greater its voltage limiting ability is, the smaller the GPS signal flowing into the operational amplifier is, and the greater the gain of the amplifier needs to be. In order to increase the first resistor to have a larger adjustment space in the adaptive adjustment process of the interference harmonics, the present invention is achieved by adjusting the gain coefficient of the first signal amplifier. When the first resistance information exceeds the preset first resistance threshold, if the second voltage information is lower than the preset second voltage threshold, it means that the gain of the amplifier is too small, so by increasing the gain coefficient of the first signal amplifier, the adjustment space of the first resistor is expanded.
[0199] It is worth mentioning that it also includes:
[0200] Determining whether the first resistance information is lower than a preset second resistance threshold;
[0201] If yes, determining whether the second voltage information exceeds a preset third voltage threshold;
[0202] If so, the gain factor of the first signal amplifier is adjusted downward.
[0203] It should be noted that when the resistance of the first resistor is too small, the smaller its voltage limiting ability is, the larger the GPS signal flowing into the operational amplifier is, and the smaller the gain of the amplifier needs to be. In order to increase the first resistor to have a larger adjustment space in the adaptive adjustment process of the interference harmonics, the present invention is achieved by adjusting the gain coefficient of the first signal amplifier. When the first resistance information exceeds the second resistance threshold value below, if the second voltage information exceeds the preset third voltage threshold value, it means that the gain of the amplifier is too large, so by reducing the gain coefficient of the first signal amplifier, the adjustment space of the first resistor is expanded.
[0204] A third aspect of the present invention provides a computer-readable storage medium, which includes a method program for adaptively adjusting GPS interference harmonics. When the method program for adaptively adjusting GPS interference harmonics is executed by a processor, the steps of the method for adaptively adjusting GPS interference harmonics as described in any one of the above items are implemented.
[0205] The present invention provides a method, system and storage medium for adaptively adjusting GPS interference harmonics. First, according to a preset first time period, first voltage information is collected and recorded to obtain second voltage information; secondly, first voltage difference information is obtained according to the second voltage information to adjust the resistance value of a first resistor; then, according to a preset second time period, the first voltage information is recollected and recorded to obtain third voltage information; finally, according to the third voltage information and the second voltage information, the first inductance information of the first inductor or the second inductance information of the second inductor is adjusted; the resistance value and the inductance value of the filter circuit are automatically adjusted to adaptively reduce the interference of the second harmonic, thereby improving the accuracy of the GPS signal.
[0206] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.
[0207] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for adaptively adjusting GPS interference harmonics, applied to an adaptive adjustment circuit for GPS interference harmonics, the adaptive adjustment circuit for GPS interference harmonics comprising: The first inductor, the first resistor and the second inductor form a π-type matching filter for filtering and denoising the original GPS signal; A first signal amplifier, used to amplify the GPS primary signal output by the π-type matched filter; Characterized in that the method comprises: Collecting and recording first voltage information according to a preset time period; Obtaining second voltage information according to the first voltage information; Determining whether the second voltage information exceeds a preset first voltage threshold; If yes, then calculating the difference between the second voltage information and the first target voltage information to obtain first voltage difference information; adjusting first resistance information of the first resistor according to first voltage difference information; Re-collecting and recording the first voltage information according to a preset time period; Obtaining third voltage information according to the first voltage information; Obtaining second target voltage information according to the first resistance information; Calculating a difference between the third voltage information and the second target voltage information to obtain second voltage difference information; adjusting first inductance information of the first inductor or second inductance information of the second inductor according to the second voltage difference information and the second voltage information; The obtaining the second voltage information according to the first voltage information is specifically: Obtaining a first voltage sequence according to the first voltage information in a preset sorting manner; Obtaining a first weight relationship expression according to first quantity information of the first voltage information; Calculating and obtaining fourth voltage information according to the first weight relationship and the first voltage sequence; Determining first weight information according to the first weight relationship formula and the first quantity information; Second voltage information is obtained according to the fourth voltage information and the first weight information.
2. The method for adaptively adjusting GPS interference harmonics according to claim 1, characterized in that: The obtaining of the third voltage information according to the first voltage information is specifically: Acquire second quantity information of the first voltage information; determining third quantity information according to the second quantity information; Obtaining first maximum value information and second maximum value information according to the first voltage information and the third quantity information; Calculating a difference between the first maximum value information and the second maximum value information to obtain first maximum value difference information; The third voltage information is obtained according to the first maximum difference information and the third quantity information.
3. The method for adaptively adjusting GPS interference harmonics according to claim 1, characterized in that: The first resistance information of the first resistor is adjusted according to the first voltage difference information, specifically: According to the first voltage difference information, a first adjustment control amount, a second adjustment control amount and a third adjustment control amount are obtained according to the preset first adjustment coefficient information, the preset second adjustment coefficient information and the preset third adjustment coefficient information; Calculating the sum of the first adjustment control amount, the second adjustment control amount and the third adjustment control amount to obtain first adjustment amount information; Obtaining second resistance information according to the first adjustment amount information and the first resistance information; The first resistance is adjusted according to the second resistance information.
4. The method for adaptively adjusting GPS interference harmonics according to claim 1, characterized in that: The adjusting the first inductance information of the first inductor or the second inductance information of the second inductor according to the second voltage difference information and the second voltage information is specifically: Determining fourth adjustment coefficient information and fifth adjustment coefficient information according to the second voltage information; Obtaining a fourth adjustment control amount and a fifth adjustment control amount according to the second voltage difference information, the fourth adjustment coefficient information, and the fifth adjustment coefficient information; Calculating the sum of the fourth adjustment control amount and the fifth adjustment control amount to obtain second adjustment amount information; The first inductance or the second inductance is adjusted according to the first inductance information, the second inductance information and the second adjustment amount information.
5. The method for adaptively adjusting GPS interference harmonics according to claim 4, characterized in that: The adjusting the first inductance or the second inductance according to the first inductance information, the second inductance information and the second adjustment amount information is specifically: Calculating the sum of the first inductance information and the second adjustment amount information to obtain third inductance information; Determining whether the third inductance information is within a preset inductance value range; If yes, setting the first inductance according to the third inductance information; If not, setting the first inductance information according to a preset inductance threshold; Calculating a difference between the inductance threshold and the first inductance information to obtain first inductance difference information; Calculating the second adjustment amount information and the first inductance difference information to obtain second inductance difference information; The second inductance is adjusted according to the second inductance difference information.
6. An adaptive adjustment system for GPS interference harmonics, applied to an adaptive adjustment circuit for GPS interference harmonics, the adaptive adjustment circuit for GPS interference harmonics comprising: The first inductor, the first resistor and the second inductor form a π-type matching filter for filtering and denoising the original GPS signal; A first signal amplifier, used to amplify the GPS primary signal output by the π-type matched filter; The system includes a memory and a processor, wherein the memory includes a method program for adaptively adjusting the harmonics of GPS interference, and when the method program for adaptively adjusting the harmonics of GPS interference is executed by the processor, the following steps are implemented: Collecting and recording first voltage information according to a preset time period; Obtaining second voltage information according to the first voltage information; Determining whether the second voltage information exceeds a preset first voltage threshold; If yes, then calculating the difference between the second voltage information and the first target voltage information to obtain first voltage difference information; adjusting first resistance information of the first resistor according to first voltage difference information; Re-collecting and recording the first voltage information according to a preset time period; Obtaining third voltage information according to the first voltage information; Obtaining second target voltage information according to the first resistance information; Calculating a difference between the third voltage information and the second target voltage information to obtain second voltage difference information; adjusting first inductance information of the first inductor or second inductance information of the second inductor according to the second voltage difference information and the second voltage information; The obtaining the second voltage information according to the first voltage information is specifically: Obtaining a first voltage sequence according to the first voltage information in a preset sorting manner; Obtaining a first weight relationship expression according to first quantity information of the first voltage information; Calculating and obtaining fourth voltage information according to the first weight relationship and the first voltage sequence; Determining first weight information according to the first weight relationship formula and the first quantity information; Second voltage information is obtained according to the fourth voltage information and the first weight information.
7. The adaptive adjustment system for GPS interference harmonics according to claim 6, characterized in that: The obtaining of the third voltage information according to the first voltage information is specifically: Acquire second quantity information of the first voltage information; determining third quantity information according to the second quantity information; Obtaining first maximum value information and second maximum value information according to the first voltage information and the third quantity information; Calculating a difference between the first maximum value information and the second maximum value information to obtain first maximum value difference information; The third voltage information is obtained according to the first maximum difference information and the third quantity information.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer-readable storage medium includes a method program for adaptively adjusting GPS interference harmonics. When the method program for adaptively adjusting GPS interference harmonics is executed by a processor, the steps of the method for adaptively adjusting GPS interference harmonics as described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Energy storage type subway regenerative braking energy control method and system
CN114430163A
Handheld data terminal for wireless ad hoc network
CN203104435U