Filter control method and device and anti-electromagnetic interference device

By acquiring and analyzing the frequency characteristics of the filter output signal in real time, matching the target frequency characteristics under preset conditions, and adjusting the filter, the problem of poor filtering effect under changing and unknown frequency electromagnetic interference in the prior art is solved, and a better electromagnetic interference suppression effect is achieved.

CN119766198APending Publication Date: 2025-04-04ZOOMLION HEAVY INDUSTRY SCIENCE AND TECHNOLOGY CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411767488.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

The existing filters have poor filtering effects under changing electromagnetic interference with unknown frequency.

Method used

By obtaining the output signal of the filter in real time, determining the real-time frequency characteristics, matching the target frequency characteristics in the preset frequency characteristics, and adjusting the filter to match the target frequency characteristics.

Benefits of technology

Even when the target frequency band and electromagnetic interference are unknown and changeable, electromagnetic interference in all interference frequency bands in the signal can be effectively removed and the filtering effect can be improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119766198A_ABST
    Figure CN119766198A_ABST
Patent Text Reader

Abstract

The invention discloses a filter control method and device and an anti-electromagnetic interference device, and relates to the technical field of electromagnetic compatibility. The method comprises the steps that output signals of a filter are obtained in real time, real-time frequency characteristics are determined based on the output signals of the filter, the real-time frequency characteristics comprise first characteristic values corresponding to multiple frequency points, target frequency characteristics are determined in a preset frequency characteristic set based on the real-time frequency characteristics, and the target frequency characteristics comprise first characteristic values corresponding to multiple frequency points. The preset frequency characteristic set comprises a theoretical frequency characteristic corresponding to at least one signal, and the theoretical frequency characteristic comprises second characteristic values corresponding to a plurality of frequency points of the signal under the condition of no electromagnetic interference; and adjusting the filter based on the second characteristic values corresponding to the plurality of frequency points in the target frequency characteristic and the first characteristic values corresponding to the plurality of frequency points in the real-time frequency characteristic. Under the condition that the target frequency band and the electromagnetic interference are unknown and change, the filter is controlled to perform active filtering, and the filtering effect is better.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electromagnetic compatibility technology, and specifically to a filter control method, a filter control device, an anti-electromagnetic interference device, a machine-readable storage medium and an electronic device. Background Art

[0002] The electromagnetic compatibility of equipment has two meanings: the ability of the equipment or system to work normally in its electromagnetic environment and not cause unbearable electromagnetic disturbance to anything in the environment. The former is generally called electromagnetic susceptibility or electromagnetic immunity (EMS), and the latter is called electromagnetic interference (EMI). For example: for engineering machinery driven by new energy (electric energy), the electrification of the drive system brings advantages, but also brings new problems: the use of high-power electrified components such as motors, batteries, and electronic controls generates electromagnetic interference far exceeding that of the engine. For many key components such as on-board sensors and controllers, the complex electromagnetic environment inside and outside the vehicle and the frequent electromagnetic interference will significantly increase the failure rate of the equipment, thereby creating safety hazards.

[0003] At present, the problem of electromagnetic interference is generally solved by using anti-electromagnetic interference filters. There are three mainstream methods for designing anti-electromagnetic interference filters: passive devices, adjustable passive devices, and active devices. These anti-electromagnetic interference filters can effectively suppress the electromagnetic interference of one or more certain frequency bands generated by the equipment. However, from the perspective of general electromagnetic anti-interference filters, electromagnetic interference comes from the external environment, and its interference frequency band is often unknown. The existing filter circuit may not have an ideal filtering effect due to mismatched frequency characteristics.

[0004] Therefore, the existing filter control method has the problem of poor filtering effect in the case of electromagnetic interference with changing and unknown frequency. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a filter control method, a filter control device, an anti-electromagnetic interference device, a machine-readable storage medium and an electronic device, so as to solve the problem of poor filtering effect in the prior art under the condition of electromagnetic interference of changing and unknown frequency.

[0006] In order to achieve the above-mentioned object, the present application provides a first aspect of a filter control method, comprising:

[0007] Acquire an output signal of the filter in real time, and determine a real-time frequency characteristic based on the output signal of the filter, wherein the real-time frequency characteristic includes first eigenvalues ​​corresponding to a plurality of frequency points;

[0008] Based on the real-time frequency characteristic, a target frequency characteristic is determined in a preset frequency characteristic set, wherein the preset frequency characteristic set includes a theoretical frequency characteristic corresponding to at least one signal, wherein the theoretical frequency characteristic includes second eigenvalues ​​corresponding to a plurality of frequency points of the signal under a condition without electromagnetic interference, and wherein the target frequency characteristic is a theoretical frequency characteristic including similar frequency points that meet preset conditions, wherein the similar frequency points are frequency points at which the corresponding first eigenvalue matches the corresponding second eigenvalue;

[0009] The filter is adjusted based on second eigenvalues ​​corresponding to a plurality of frequency points in the target frequency characteristic and first eigenvalues ​​corresponding to a plurality of frequency points in the real-time frequency characteristic.

[0010] In the embodiment of the present application, the preset theoretical frequency characteristic set includes theoretical frequency characteristics corresponding to a plurality of signals;

[0011] The step of determining a target frequency characteristic from a preset frequency characteristic set based on the real-time frequency characteristic comprises:

[0012] Traversing all frequency points in the theoretical frequency characteristics corresponding to the signal and the real-time frequency characteristics, and determining similar frequency points based on the corresponding second eigenvalue and the corresponding first eigenvalue at each frequency point;

[0013] Based on the number of similar frequency points, obtaining the similarity between the theoretical frequency characteristic corresponding to the signal and the real-time frequency characteristic;

[0014] Based on the similarity between the theoretical frequency characteristics corresponding to each signal and the real-time frequency characteristics, a target frequency characteristic is determined.

[0015] In the embodiment of the present application, determining similar frequency points based on the corresponding second eigenvalue and the corresponding first eigenvalue at each frequency point respectively includes:

[0016] Comparing the second eigenvalue and the first eigenvalue corresponding to each frequency point with a preset noise characteristic threshold value to obtain a first comparison result;

[0017] Based on the first comparison result, determining a non-noise frequency point;

[0018] Based on the second eigenvalue corresponding to the non-noise frequency point and the first eigenvalue corresponding to the non-noise frequency point, a similar frequency point is determined.

[0019] In the embodiment of the present application, determining similar frequency points based on the corresponding second eigenvalue and the corresponding first eigenvalue at each frequency point respectively includes:

[0020] Calculate the characteristic difference value at each frequency point based on the second eigenvalue and the first eigenvalue corresponding to each frequency point;

[0021] Comparing the characteristic difference value at each frequency point with a preset signal difference threshold value respectively, to obtain a difference comparison result at each frequency point;

[0022] Based on the difference comparison results at each frequency point, similar frequency points are determined.

[0023] In the embodiment of the present application, the first eigenvalue corresponding to each frequency point is the first amplitude corresponding to each frequency point, and the second eigenvalue corresponding to each frequency point is the second amplitude corresponding to each frequency point;

[0024] The determining of similar frequency points based on the second eigenvalues ​​and the first eigenvalues ​​corresponding to each frequency point respectively includes:

[0025] The second amplitude and the first amplitude corresponding to each frequency point are respectively compared with a preset noise amplitude threshold to obtain an amplitude comparison result;

[0026] Based on the amplitude comparison result, a non-noise frequency point is determined;

[0027] Based on the second amplitude corresponding to the non-noise frequency point and the corresponding first amplitude, the amplitude difference value at the non-noise frequency point is calculated;

[0028] Comparing the amplitude difference value at the non-noise frequency point with a preset amplitude difference threshold value to obtain a difference comparison result at the non-noise frequency point;

[0029] Based on the difference comparison result at the non-noise frequency points, frequency points whose corresponding amplitude difference values ​​are less than a preset amplitude difference threshold are screened out from the non-noise frequency points to obtain similar frequency points.

[0030] In the embodiment of the present application, adjusting the filter based on the second eigenvalue characteristics corresponding to the multiple frequency points in the target frequency and the first eigenvalues ​​corresponding to the multiple frequency points in the real-time frequency characteristics includes:

[0031] Calculate the difference between the second eigenvalue corresponding to the target frequency characteristic and the first eigenvalue corresponding to the real-time frequency characteristic at each frequency point to obtain a difference frequency characteristic;

[0032] Based on the difference frequency characteristics, determining an over-standard frequency point;

[0033] The filter is adjusted based on the exceeded frequency point and the characteristic value corresponding to the exceeded frequency point.

[0034] In the embodiment of the present application, determining the excess frequency point based on the difference frequency characteristic includes:

[0035] Comparing the characteristic values ​​corresponding to the difference frequency characteristics at each frequency point with the preset exceeding characteristic threshold value respectively to obtain a second comparison result;

[0036] Based on the second comparison result, an out-of-standard frequency point is determined.

[0037] In the embodiment of the present application, adjusting the filter based on the excess frequency point and the characteristic value corresponding to the excess frequency point includes:

[0038] Determine the filter type based on the distribution characteristics of the out-of-standard frequency points;

[0039] Determine and obtain filter component parameters based on the filter type and the characteristic values ​​corresponding to the out-of-standard frequency points;

[0040] Based on the filter component parameters, the filter is adjusted.

[0041] A second aspect of the present application provides a filter control device, comprising:

[0042] An acquisition module, used for acquiring an output signal of the filter in real time, and determining a real-time frequency characteristic based on the output signal of the filter, wherein the real-time frequency characteristic includes first eigenvalues ​​corresponding to a plurality of frequency points;

[0043] A determination module, configured to determine a target frequency characteristic from a preset frequency characteristic set based on the real-time frequency characteristic, wherein the preset frequency characteristic set includes a theoretical frequency characteristic corresponding to at least one signal, wherein the theoretical frequency characteristic includes second eigenvalues ​​corresponding to a plurality of frequency points of the signal under a condition of no electromagnetic interference, wherein the target frequency characteristic is a theoretical frequency characteristic including similar frequency points that meet preset conditions, wherein the similar frequency points are frequency points at which the corresponding first eigenvalue matches the corresponding second eigenvalue;

[0044] An adjustment module is used to adjust the filter based on the second eigenvalues ​​corresponding to the multiple frequency points in the target frequency characteristic and the first eigenvalues ​​corresponding to the multiple frequency points in the real-time frequency characteristic.

[0045] A third aspect of the present application provides an anti-electromagnetic interference device, comprising a filter and a control module, wherein the control module uses the above-mentioned filter control method to control the filter.

[0046] A fourth aspect of the present application provides an electronic device, the electronic device comprising:

[0047] at least one processor;

[0048] a memory connected to the at least one processor;

[0049] The memory stores instructions that can be executed by the at least one processor, and the at least one processor implements the above-mentioned filter control method by executing the instructions stored in the memory.

[0050] A fifth aspect of the present application provides a machine-readable storage medium having instructions stored thereon, which, when executed by a processor, configure the processor to execute the above-mentioned filter control method.

[0051] Through the above technical solution, the output signal of the filter is acquired in real time, and based on the output signal of the filter, a real-time frequency characteristic is determined, the real-time frequency characteristic includes a first eigenvalue corresponding to a plurality of frequency points, based on the real-time frequency characteristic, a target frequency characteristic is determined in a preset frequency characteristic set, the preset frequency characteristic set includes a theoretical frequency characteristic corresponding to at least one signal, the theoretical frequency characteristic includes a second eigenvalue corresponding to a plurality of frequency points of the signal under the condition of no electromagnetic interference, the target frequency characteristic is a theoretical frequency characteristic including similar frequency points that meet preset conditions, the similar frequency points are frequency points whose corresponding first eigenvalue matches the corresponding second eigenvalue, based on the second eigenvalue corresponding to the plurality of frequency points in the target frequency characteristic and the first eigenvalue corresponding to the plurality of frequency points in the real-time frequency characteristic, the filter is adjusted. By matching theoretical frequency characteristics with similar frequency points that meet preset conditions in a preset frequency characteristic set according to the first eigenvalues ​​corresponding to multiple frequency points in the real-time frequency characteristics as the target frequency characteristics, the target frequency characteristics can be matched even when the target frequency band and the electromagnetic interference are unknown and changing. Since the target frequency characteristics are the theoretical frequency characteristics corresponding to the signal under conditions without electromagnetic interference, the filter is adjusted according to the second eigenvalues ​​corresponding to multiple frequency points in the target frequency characteristics and the first eigenvalues ​​corresponding to multiple frequency points in the real-time frequency characteristics, so that the frequency characteristics of the signal after filtering by the filter can reach the target frequency characteristics, that is, the frequency characteristics after filtering can reach the theoretical frequency characteristics corresponding to conditions without electromagnetic interference, so that the filter can effectively remove electromagnetic interference in all interfering frequency bands in the signal, and realize active filtering of the filter when the target frequency band and the electromagnetic interference are unknown and changing, so that the filtering effect is better, making the application scenarios of the filter more extensive.

[0052] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings:

[0054] Figure 1 A schematic diagram of a flow chart of a filter control method according to an embodiment of the present application is shown;

[0055] Figure 2 A schematic diagram of an active filtering process according to an embodiment of the present application is shown schematically;

[0056] Figure 3 The structure block diagram of the active anti-electromagnetic interference device according to an embodiment of the present application is schematically shown;

[0057] Figure 4 A schematic diagram of a third-order π-type normalized Butterworth low-pass filter circuit according to an embodiment of the present application is shown;

[0058] Figure 5 A target filter circuit diagram according to an embodiment of the present application is schematically shown;

[0059] Figure 6 A schematic diagram of the structure of a filter control device according to an embodiment of the present application is shown;

[0060] Figure 7 The internal structure diagram of a computer device according to an embodiment of the present application is schematically shown.

[0061] Description of Reference Numerals

[0062] 410 - acquisition module; 420 - determination module; 430 - adjustment module; A01 - processor; A02 - network interface; A03 - internal memory; A04 - display screen; A05 - input device; A06 - non-volatile storage medium; B01 - operating system; B02 - computer program. DETAILED DESCRIPTION

[0063] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0064] It should be noted that the acquisition, transmission, storage, use, and processing of data in the technical solution of this application are in compliance with the relevant provisions of national laws and regulations. In the embodiments of this application, some existing solutions in the industry such as certain software, components, and models may be mentioned, which should be considered as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of this application, but it does not mean that the applicant has or will necessarily use the solution.

[0065] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back...), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0066] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0067] Figure 1 The flowchart of a filter control method according to an embodiment of the present application is schematically shown. Figure 1 As shown, an embodiment of the present application provides a control method for a filter. Even when the target frequency band and electromagnetic interference are unknown and changing, the target frequency characteristics can be matched in a preset frequency characteristic set according to the first eigenvalues ​​corresponding to multiple frequency points in the real-time frequency characteristics. The filter is adjusted according to the eigenvalues ​​corresponding to the multiple frequency points in the target frequency characteristics and the eigenvalues ​​corresponding to the multiple frequency points in the real-time frequency characteristics. The frequency characteristics of the signal after filtering by the filter can reach the target frequency characteristics. In the case where the target frequency band and electromagnetic interference are unknown and changing, the filter is controlled to actively filter, the filtering effect is better, and the application scenarios of the filter are more extensive.

[0068] It should be noted that the frequency characteristics mentioned in this embodiment include frequency characteristics such as spectrum, spectrum density, energy spectrum, power spectrum, and power spectrum density. When the frequency characteristic is spectrum, the characteristic value corresponding to each frequency is amplitude or phase; when the frequency characteristic is spectrum density, the characteristic value corresponding to each frequency is the distribution of energy or power of the signal; when the frequency characteristic is energy spectrum, the characteristic value corresponding to each frequency is the energy of the signal; when the frequency characteristic is power spectrum, the characteristic value corresponding to each frequency is power; when the frequency characteristic is power spectrum density, the characteristic value corresponding to each frequency is power. In order to facilitate the description of the scheme, this embodiment mainly describes the scheme by taking the frequency characteristic as spectrum as an example.

[0069] This embodiment provides a filter control method, comprising the following steps:

[0070] Step 210: acquiring an output signal of the filter in real time, and determining a real-time frequency characteristic based on the output signal of the filter, wherein the real-time frequency characteristic includes first eigenvalues ​​corresponding to a plurality of frequency points;

[0071] Step 220: Based on the real-time frequency characteristic, a target frequency characteristic is determined in a preset frequency characteristic set, wherein the preset frequency characteristic set includes a theoretical frequency characteristic corresponding to at least one signal, wherein the theoretical frequency characteristic includes second eigenvalues ​​corresponding to a plurality of frequency points of the signal under a condition of no electromagnetic interference, wherein the target frequency characteristic is a theoretical frequency characteristic including similar frequency points that meet preset conditions, wherein the similar frequency points are frequency points at which the corresponding first eigenvalue matches the corresponding second eigenvalue;

[0072] Step 230: Adjust the filter based on the second eigenvalues ​​corresponding to the multiple frequency points in the target frequency characteristic and the first eigenvalues ​​corresponding to the multiple frequency points in the real-time frequency characteristic.

[0073] Through the above technical solution, the output signal of the filter is acquired in real time, and based on the output signal of the filter, a real-time frequency characteristic is determined, the real-time frequency characteristic includes a first eigenvalue corresponding to a plurality of frequency points, based on the real-time frequency characteristic, a target frequency characteristic is determined in a preset frequency characteristic set, the preset frequency characteristic set includes a theoretical frequency characteristic corresponding to at least one signal, the theoretical frequency characteristic includes a second eigenvalue corresponding to a plurality of frequency points of the signal under the condition of no electromagnetic interference, the target frequency characteristic is a theoretical frequency characteristic including similar frequency points that meet preset conditions, the similar frequency points are frequency points whose corresponding first eigenvalue matches the corresponding second eigenvalue, based on the second eigenvalue corresponding to the plurality of frequency points in the target frequency characteristic and the first eigenvalue corresponding to the plurality of frequency points in the real-time frequency characteristic, the filter is adjusted. By matching the first eigenvalues ​​corresponding to multiple frequency points in the real-time frequency characteristics in the preset frequency characteristics set, the theoretical frequency characteristics of similar frequency points that meet the preset conditions are matched as the target frequency characteristics. Even when the target frequency band and electromagnetic interference are unknown and changing, the target frequency characteristics can be matched. Since the target frequency characteristics are the theoretical frequency characteristics corresponding to the signal under the condition of no electromagnetic interference, the filter is adjusted according to the second eigenvalues ​​corresponding to multiple frequency points in the target frequency characteristics and the first eigenvalues ​​corresponding to multiple frequency points in the real-time frequency characteristics, so that the frequency characteristics of the signal after filtering by the filter can reach the target frequency characteristics, that is, the frequency characteristics after filtering can reach the theoretical frequency characteristics corresponding to the condition of no electromagnetic interference, so that the filter can effectively remove the electromagnetic interference of all interfering frequency bands in the signal, and realize the control of the filter to actively filter when the target frequency band and electromagnetic interference are unknown and changing, and the filtering effect is better. The application scenarios of the filter are more extensive.

[0074] In step 210, the output signal of the filter is obtained in real time, and the real-time frequency characteristic is determined based on the output signal of the filter. In this embodiment, the filter is an adjustable filter, and the signal is input from the signal input end of the filter and then output after being filtered by the filter. The output signal of the filter can be obtained in real time at the output end of the filter.

[0075] The above-mentioned real-time frequency characteristics include first eigenvalues ​​corresponding to multiple frequency points, which can be obtained by discretizing the output signal of the filter, and the above-mentioned discretization processing can be discrete Fourier transform, discrete wavelet transform, etc. The above-mentioned first characteristic value refers to the frequency characteristic value corresponding to different frequencies.

[0076] Taking the frequency characteristic as a spectrum as an example, the real-time spectrum of the output signal of the filter can be obtained based on discrete Fourier transform. Accordingly, the first eigenvalues ​​corresponding to the multiple frequency points can be the amplitudes corresponding to the multiple frequency points. Specifically, the sampling rate can be set to f s , f s is an even number, then within time t, the total length that can be obtained is N = f s *t time series s(n), (n=0,1,2,…,N-1), discrete Fourier transform of s(n) yields:

[0077]

[0078] The corresponding frequency sequence is:

[0079]

[0080] The above discrete Fourier transform results contain both amplitude and phase information. To extract the amplitude information of the signal, S0(k0) can be further processed as follows:

[0081]

[0082] S1(0)=S0(0),

[0083] At this time, f0(k0) and S1(k0) constitute the bilateral amplitude spectrum of the time series s(n). Taking the first half of f0(k0) and S1(k0) respectively, we can obtain the unilateral amplitude spectrum of the time series s(n):

[0084] f(k)=f0(k), (k=0,1,2,...,N / 2),

[0085] S(k)=S1(k), (k=0,1,2,….,N / 2),

[0086] The above f(k) and S(k) constitute the abscissa sequence and ordinate sequence of the real-time spectrum, wherein the abscissa sequence is a plurality of frequency points, and the ordinate sequence is the amplitudes corresponding to the plurality of frequency points.

[0087] In step 220, based on the real-time frequency characteristic, the target frequency characteristic is determined in the preset frequency characteristic set. In this embodiment, before filtering starts, the signal sequence at different working frequencies can be collected under interference-free conditions, and then the corresponding prefabricated spectrum can be calculated, that is, the corresponding theoretical frequency characteristic is obtained, and stored in the storage unit to form a preset frequency characteristic set. The calculation process of the above theoretical frequency characteristic is the same as the process of obtaining the real-time frequency characteristic, both of which are obtained by discretizing the signal, and will not be repeated here. The number of theoretical frequency characteristics can be one or more. During filtering, the real-time frequency characteristic can be compared with all the theoretical frequency characteristics in the storage unit one by one, and based on the comparison result, the theoretical frequency characteristic including similar frequency points that meet the preset conditions is selected as the target spectrum of filtering, so as to obtain the theoretical frequency characteristic with the highest degree of compliance as the target frequency characteristic of the filter, wherein the similar frequency point is the frequency point where the corresponding first eigenvalue matches the corresponding second eigenvalue, that is, if the first eigenvalue corresponding to the frequency point in the real-time frequency characteristic matches the second eigenvalue corresponding to the frequency point in the theoretical frequency characteristic, then the frequency point is a similar frequency point. The above preset condition may mean that the number of similar frequency points is greater than a preset number threshold, or that the number of similar frequency points is the largest, or that the similar frequency points account for the largest proportion, etc., which may be specifically set according to actual conditions.

[0088] In some embodiments, the preset theoretical frequency characteristic set includes theoretical frequency characteristics corresponding to multiple signals; accordingly, the step of determining a target frequency characteristic in the preset frequency characteristic set based on the real-time frequency characteristic includes the following steps:

[0089] First, traverse all frequency points in the theoretical frequency characteristics corresponding to the signal and the real-time frequency characteristics, and determine similar frequency points based on the corresponding second eigenvalue and the corresponding first eigenvalue at each frequency point;

[0090] In this embodiment, among all the frequency points, the frequency points whose corresponding second eigenvalues ​​match the corresponding first eigenvalues ​​in the real-time frequency characteristics are found to be similar frequency points.

[0091] In some embodiments, in order to quickly determine similar frequency points, similar frequency points can be determined by judging whether the difference between the corresponding second eigenvalue and the corresponding first eigenvalue meets the signal difference threshold, that is, the similar frequency points are determined based on the corresponding second eigenvalue and the corresponding first eigenvalue at each frequency point, respectively, including the following steps:

[0092] The first step is to calculate the characteristic difference value at each frequency point based on the second eigenvalue and the first eigenvalue corresponding to each frequency point;

[0093] In this embodiment, the characteristic difference value calculated at each frequency point may be the difference between the second characteristic value corresponding to each frequency point and the first characteristic value corresponding to each frequency point, or may be the ratio of the second characteristic value corresponding to each frequency point to the first characteristic value corresponding to each frequency point. In order to facilitate subsequent judgment, the above difference is a positive number.

[0094] The second step is to compare the characteristic difference value at each frequency point with a preset signal difference threshold value to obtain a difference comparison result at each frequency point;

[0095] In this embodiment, the above-mentioned preset signal difference threshold can be pre-set according to actual conditions, and the above-mentioned comparison is to compare the size of the characteristic difference value and the preset signal difference threshold, and the difference comparison results obtained at each frequency point include the characteristic difference value being less than the preset signal difference threshold or the characteristic difference value being greater than or equal to the preset signal difference threshold.

[0096] In the third step, based on the difference comparison results at each frequency point, similar frequency points are determined.

[0097] In this embodiment, if the difference comparison result is that the feature difference value is less than the preset signal difference threshold, it means that the corresponding second feature value and the corresponding first feature value are not much different, and the corresponding frequency point is a similar frequency point. Conversely, if the difference comparison result is that the feature difference value is greater than or equal to the preset signal difference threshold, it means that the corresponding second feature value and the corresponding first feature value are quite different, and the corresponding frequency point is not a similar frequency point.

[0098] By calculating the difference between the corresponding second eigenvalue and the corresponding first eigenvalue at each frequency point and comparing the difference with the preset signal difference threshold, the difference between the corresponding second eigenvalue and the corresponding first eigenvalue can be quickly determined, thereby quickly determining similar frequency points.

[0099] In some embodiments, considering that background noise may cause misjudgment of similar frequency points, the noise frequency points may be screened out first, and then similar frequency points may be determined, so as to ensure the accuracy of the determination of similar frequency points. That is, the similar frequency points are determined based on the corresponding second eigenvalue and the corresponding first eigenvalue at each frequency point, respectively, including the following steps:

[0100] The first step is to compare the corresponding second eigenvalue and the corresponding first eigenvalue at each frequency point with a preset noise characteristic threshold to obtain a first comparison result;

[0101] In this embodiment, the preset noise characteristic threshold can be preset and can be set according to the frequency characteristic. Taking the frequency characteristic as a spectrum as an example, the corresponding characteristic value is an amplitude, and accordingly, the noise characteristic threshold is a noise amplitude threshold. The corresponding second characteristic value and the corresponding first characteristic value are respectively compared with the noise characteristic threshold, and the first comparison result obtained includes the comparison result of the first characteristic value and the preset noise characteristic threshold, and the comparison result of the second characteristic value and the preset noise characteristic threshold.

[0102] The second step is to determine a non-noise frequency point based on the first comparison result;

[0103] In this embodiment, if the comparison result of the first eigenvalue in the first comparison result and the preset noise characteristic threshold, and the comparison result of the second eigenvalue and the preset noise characteristic threshold both meet the preset non-noise condition, then the corresponding frequency point is a non-noise frequency point, otherwise, it is a noise frequency point. Taking the frequency spectrum as an example, if the corresponding second eigenvalue and the corresponding first eigenvalue are both greater than the preset noise characteristic threshold, then the corresponding frequency point is a non-noise frequency point, otherwise, it is a noise frequency point.

[0104] In the third step, based on the second eigenvalue corresponding to the non-noise frequency point and the first eigenvalue corresponding to the non-noise frequency point, similar frequency points are determined.

[0105] In this embodiment, the process of determining a similar frequency point based on the corresponding second eigenvalue and the corresponding first eigenvalue at the non-noise frequency point is the same as the process of determining a similar frequency point based on the corresponding second eigenvalue and the corresponding first eigenvalue at each frequency point, and will not be repeated here.

[0106] By comparing the corresponding second eigenvalue and the corresponding first eigenvalue at each frequency point with the preset noise characteristic threshold, a non-noise frequency point is determined based on the first comparison result, and then a similar frequency point is determined based on the corresponding second eigenvalue and the corresponding first eigenvalue at the non-noise frequency point, so as to filter the noise frequency point, avoid misjudgment of similar frequency points caused by background noise, make the obtained similar frequency points more accurate, and thus help to control the filter more accurately.

[0107] In some embodiments, the frequency characteristic is a spectrum, the first eigenvalue corresponding to each frequency point is the first amplitude corresponding to each frequency point, and the second eigenvalue corresponding to each frequency point is the second amplitude corresponding to each frequency point;

[0108] Accordingly, the determining of similar frequency points based on the second eigenvalues ​​and the first eigenvalues ​​corresponding to each frequency point respectively includes the following steps:

[0109] The first step is to compare the corresponding second amplitude and the corresponding first amplitude at each frequency point with a preset noise amplitude threshold to obtain an amplitude comparison result;

[0110] In this embodiment, the preset noise amplitude threshold can be preset, and can be a fixed value, or a variable value obtained according to a ratio (such as a value at a specific percentage position of all amplitude sequences). The corresponding second amplitude and the corresponding amplitude are respectively compared with the noise amplitude threshold, and the obtained amplitude comparison result includes the comparison result of the first amplitude with the preset noise amplitude threshold, and the comparison result of the second amplitude with the preset noise amplitude threshold.

[0111] The second step is to determine the non-noise frequency point based on the amplitude comparison result;

[0112] In this embodiment, if the corresponding second amplitude and the corresponding amplitude are both greater than the preset noise amplitude threshold, the corresponding frequency point is a non-noise frequency point, otherwise, it is a noise frequency point.

[0113] The third step is to calculate the amplitude difference value at the non-noise frequency point based on the second amplitude corresponding to the non-noise frequency point and the first amplitude corresponding to the non-noise frequency point;

[0114] In this embodiment, the amplitude difference value calculated at each non-noise frequency point may be a difference between the second amplitude corresponding to each non-noise frequency point and the corresponding amplitude, or may be a ratio of the second amplitude corresponding to each non-noise frequency point to the corresponding first amplitude. In order to facilitate subsequent judgment, the above difference is a positive number.

[0115] The fourth step is to compare the amplitude difference value at the non-noise frequency point with a preset amplitude difference threshold value to obtain a difference comparison result at the non-noise frequency point;

[0116] In this embodiment, the above-mentioned preset amplitude difference threshold can be pre-set according to actual conditions, and the above-mentioned comparison is to compare the amplitude difference value with the preset amplitude difference threshold, and the difference comparison results obtained at each non-noise frequency point include the amplitude difference value being less than the preset amplitude difference threshold or the amplitude difference value being greater than or equal to the preset amplitude difference threshold.

[0117] In the fifth step, based on the difference comparison result at the non-noise frequency points, the frequency points whose corresponding amplitude difference values ​​are less than a preset amplitude difference threshold are screened out from the non-noise frequency points to obtain similar frequency points.

[0118] In this embodiment, if the difference comparison result is that the amplitude difference value is less than the preset amplitude difference threshold, it means that the corresponding second amplitude and the corresponding amplitude are not much different, and the corresponding frequency point is a similar frequency point. Conversely, if the difference comparison result is that the amplitude difference value is greater than or equal to the preset amplitude difference threshold, it means that the corresponding second amplitude and the corresponding amplitude are significantly different, and the corresponding frequency point is not a similar frequency point.

[0119] By taking the frequency spectrum as the frequency spectrum characteristic, the corresponding second amplitude and the corresponding first amplitude at each frequency point are respectively compared with the preset noise amplitude threshold, and based on the amplitude comparison result, the non-noise frequency point is determined, and the noise frequency point can be removed, and then based on the corresponding second amplitude and the corresponding first amplitude at the non-noise frequency point, the amplitude difference value at the non-noise frequency point is calculated, and the amplitude difference value at the non-noise frequency point is compared with the preset amplitude difference threshold, and based on the difference comparison result at the non-noise frequency point, the frequency points whose corresponding amplitude difference values ​​are less than the preset amplitude difference threshold are screened out from the non-noise frequency points, so that similar frequency points can be obtained quickly and accurately.

[0120] Then, based on the number of similar frequency points, the similarity between the theoretical frequency characteristic corresponding to the signal and the real-time frequency characteristic is obtained;

[0121] In this embodiment, a greater number of similar frequency points indicates a higher similarity between the theoretical frequency characteristic corresponding to the signal and the real-time frequency characteristic.

[0122] For example, a noise amplitude threshold A, an amplitude difference threshold B and a count value m are set, and then all frequency points of the prefabricated spectrum and the real-time spectrum are traversed. For any frequency point, if the amplitudes of the prefabricated spectrum and the real-time spectrum at the frequency point are both greater than the noise amplitude threshold A, and the amplitude difference (positive number) or ratio between the two is less than the amplitude difference threshold B, then the count value m is increased by one. After comparing all frequency points, the count value m of this round of signal comparison is obtained, and a corresponding relationship is established between the count value m and the compared prefabricated spectrum, that is, the count value m is used as the similarity between the prefabricated spectrum and the real-time spectrum corresponding to the signal.

[0123] Finally, based on the similarity between the theoretical frequency characteristics corresponding to each signal and the real-time frequency characteristics, the target frequency characteristics are determined.

[0124] In this embodiment, the theoretical frequency characteristic corresponding to the signal having the highest similarity to the real-time frequency characteristic may be used as the target frequency characteristic.

[0125] In the above example, after all prefabricated spectra are compared with the real-time spectrum, the count values ​​m corresponding to all prefabricated spectra are obtained, and the prefabricated spectrum corresponding to the largest count value m is used as the target spectrum. Its frequency sequence and amplitude sequence can be recorded as f(k) and N(k) respectively.

[0126] By traversing all frequency points in the theoretical frequency characteristics corresponding to the signal and the real-time frequency characteristics, similar frequency points are determined based on the corresponding second eigenvalues ​​and the corresponding first eigenvalues ​​at each frequency point; based on the number of similar frequency points, the similarity between the theoretical frequency characteristics corresponding to the signal and the real-time frequency characteristics can be quickly obtained, and then based on the similarity between the theoretical frequency characteristics corresponding to each signal and the real-time frequency characteristics, the target frequency characteristics can be quickly determined.

[0127] It should be noted that if there is only one theoretical frequency characteristic in the preset frequency characteristic set, the theoretical frequency characteristic can be directly used as the target frequency characteristic.

[0128] In some embodiments, step 230: adjusting the filter based on the second eigenvalue characteristics corresponding to the multiple frequency points in the target frequency and the first eigenvalues ​​corresponding to the multiple frequency points in the real-time frequency characteristics, comprises the following steps:

[0129] First, the difference between the second eigenvalue corresponding to the target frequency characteristic and the first eigenvalue corresponding to the real-time frequency characteristic at each frequency point is calculated to obtain a difference frequency characteristic;

[0130] In this embodiment, the difference frequency characteristic is a difference frequency characteristic between a target frequency characteristic and a real-time frequency characteristic.

[0131] Taking the frequency characteristic as spectrum as an example, the target spectrum records its frequency sequence and amplitude sequence as f(k) and N(k) respectively. f(k) and S(k) constitute the horizontal axis sequence and vertical axis sequence of the real-time spectrum, where the horizontal axis sequence is multiple frequency points and the vertical axis sequence is the amplitude corresponding to the multiple frequency points. The difference frequency characteristic is the difference spectrum, that is:

[0132] Δ(k)=N(k)-S(k), (k=0,1,2,…,N / 2),

[0133] At this time, f(k) and Δ(k) constitute the abscissa sequence and ordinate sequence of the difference spectrum, and Δ(k) is the difference between the second amplitude corresponding to the target spectrum and the first amplitude corresponding to the real-time spectrum.

[0134] Then, based on the difference frequency characteristic, the over-standard frequency point is determined;

[0135] In this embodiment, the over-standard frequency point refers to the frequency point where the characteristic value corresponding to the difference frequency characteristic exceeds the preset over-standard characteristic threshold. Specifically, it can be obtained by the following steps:

[0136] The first step is to compare the characteristic values ​​corresponding to the difference frequency characteristics at each frequency point with the preset exceeding characteristic threshold value to obtain a second comparison result;

[0137] In the second step, based on the second comparison result, the frequency point exceeding the standard is determined.

[0138] In this embodiment, the above-mentioned preset exceeding standard characteristic threshold is preset according to actual needs. If the characteristic value corresponding to the difference frequency characteristic exceeds the preset exceeding standard characteristic threshold, it means that the characteristic value difference between the target frequency characteristic and the real-time frequency characteristic is large. Otherwise, it means that the characteristic value difference between the target frequency characteristic and the real-time frequency characteristic is small. If the characteristic value difference between the target frequency characteristic and the real-time frequency characteristic is large, it means that the interference of the frequency point exceeds the standard and needs to be suppressed and removed. Then the frequency point is regarded as an exceeding standard frequency point. Otherwise, it is not an exceeding standard frequency point. After comparing all frequency points, all exceeding standard frequency points are output. It should be noted that the above-mentioned comparison can also be a comparison of frequency bands.

[0139] By comparing the characteristic value corresponding to the difference frequency characteristic at each frequency point with the preset exceeding characteristic threshold, the exceeding frequency point can be determined quickly and accurately, which helps to adjust the filter quickly and accurately.

[0140] Finally, the filter is adjusted based on the exceeded frequency point and the characteristic value corresponding to the exceeded frequency point.

[0141] In this embodiment, according to the exceeded frequency point and the corresponding characteristic value, the filter circuit in the filter can be turned on or off or the parameters of related components can be adjusted, so that the filter can filter out the electromagnetic interference.

[0142] By respectively calculating the difference between the second eigenvalue corresponding to the target frequency characteristic at each frequency point and the first eigenvalue corresponding to the real-time frequency characteristic, a difference frequency characteristic is obtained. Based on the difference frequency characteristic, an over-standard frequency point is determined. The over-standard frequency point is the frequency point that needs to be removed. Based on the over-standard frequency point and the eigenvalue corresponding to the over-standard frequency point, the filter is adjusted so that the filter can accurately remove electromagnetic interference.

[0143] In some embodiments, adjusting the filter based on the excess frequency point and the characteristic value corresponding to the excess frequency point comprises the following steps:

[0144] Firstly, based on the distribution characteristics of the over-standard frequency points, the filter type is determined;

[0145] In this embodiment, the distribution characteristics of the above-mentioned over-standard frequency points refer to the distribution of the characteristic values ​​of the over-standard frequency points, and the above-mentioned determination of the filter type can be determined according to the preset classification rules. For example, the preset classification rules can classify the distribution of the characteristic values ​​of the over-standard frequency points, that is, the function value Δ(k). The first category is that starting from the first value of Δ(k), several consecutive function values ​​are not zero. For this type of interference, a high-pass filter circuit is used; the second category is starting from a certain middle function value of Δ(k), and one or more consecutive function values ​​are not zero. For this type of interference, a band-stop filter circuit is used; the third category is starting from a certain middle function value of Δ(k), until the last function value is not zero. For this type of interference, a low-pass filter circuit is used. The filter type refers to a high-pass filter circuit, a band-stop filter circuit, or a low-pass filter circuit. According to the distribution characteristics of the over-standard frequency points, matching can be performed in the classification rules to obtain the corresponding filter type.

[0146] Then, based on the filter type and the characteristic value corresponding to the out-of-standard frequency point, filter component parameters are determined;

[0147] In this embodiment, the above calculation can be to first determine the benchmark filter circuit according to the filter type, then determine the frequency characteristics of the filter to be designed according to the characteristic value corresponding to the out-of-standard frequency point, and then determine the various parameters of the filter to be designed based on the frequency characteristics of the filter to be designed and the benchmark filter circuit.

[0148] For example, if the frequency point that exceeds the standard is a high frequency of 1MHz, that is, to filter out high-frequency interference exceeding 1MHz, the filter type is a low-pass filter. Let the frequency characteristics of the filter be: cut-off frequency 1MHz, characteristic impedance 50 ohms, and a third-order π-type Butterworth low-pass filter that meets this frequency can be constructed, specifically including the following steps:

[0149] 1. Select a 3rd-order π-type normalized Butterworth low-pass filter circuit as the reference filter, such as Figure 4 As shown, Figure 4 The circuit diagram of a third-order π-type normalized Butterworth low-pass filter according to an embodiment of the present application is schematically shown.

[0150] 2. Calculate the cutoff frequency transformation:

[0151]

[0152] 3. Calculate impedance transformation:

[0153]

[0154] L3=L2×K=0.31831×10 -6 ×50=15.9155μH;

[0155]

[0156] Wherein, L1 is the inductance value in the reference filter, C1 is the capacitance value in the reference filter, L2 is the initial inductance value in the filter to be designed, C2 is the initial capacitance value in the filter to be designed, L3 is the inductance value in the filter to be designed, and C3 is the capacitance value in the filter to be designed.

[0157] Finally, the filter is adjusted based on the filter component parameters.

[0158] In this embodiment, according to the filter type and the frequency characteristics to be achieved, the component parameters required to achieve the frequency characteristics can be calculated, and the component parameters can be further adjusted to complete the control of the filter. In the above example, the filter can first be adjusted to a third-order π-type Butterworth low-pass filter, and then the values ​​of the corresponding components can be adjusted according to the filter component parameters to obtain the target filter, such as Figure 5 As shown, Figure 5 The target filter circuit diagram according to an embodiment of the present application is schematically shown.

[0159] By determining the filter type based on the distribution characteristics of the out-of-standard frequency points, the filter component parameters can be determined based on the filter type and the characteristic values ​​corresponding to the out-of-standard frequency points to adjust the filter component parameters. This allows the filter to be quickly and accurately adjusted to a filter that removes electromagnetic interference, facilitating rapid filtering.

[0160] In the above implementation process, the output signal of the filter is acquired in real time, and based on the output signal of the filter, a real-time frequency characteristic is determined, the real-time frequency characteristic includes a first eigenvalue corresponding to a plurality of frequency points, based on the real-time frequency characteristic, a target frequency characteristic is determined in a preset frequency characteristic set, the preset frequency characteristic set includes a theoretical frequency characteristic corresponding to at least one signal, the theoretical frequency characteristic includes a second eigenvalue corresponding to a plurality of frequency points of the signal under the condition of no electromagnetic interference, the target frequency characteristic is a theoretical frequency characteristic including similar frequency points that meet preset conditions, the similar frequency points are frequency points whose corresponding first eigenvalues ​​match the corresponding second eigenvalues, based on the second eigenvalues ​​corresponding to the plurality of frequency points in the target frequency characteristic and the first eigenvalues ​​corresponding to the plurality of frequency points in the real-time frequency characteristic, the filter is adjusted. By matching the first eigenvalues ​​corresponding to multiple frequency points in the real-time frequency characteristics in the preset frequency characteristics set, the theoretical frequency characteristics of similar frequency points that meet the preset conditions are used as the target frequency characteristics. Even when the target frequency band and electromagnetic interference are unknown and changing, the target frequency characteristics can be matched. Since the target frequency characteristics are the theoretical frequency characteristics corresponding to the signal under the condition of no electromagnetic interference, the filter is adjusted according to the second eigenvalues ​​corresponding to multiple frequency points in the target frequency characteristics and the first eigenvalues ​​corresponding to multiple frequency points in the real-time frequency characteristics, so that the frequency characteristics of the signal after filtering by the filter can reach the target frequency characteristics, even if the frequency characteristics after filtering reach the theoretical frequency characteristics corresponding to the condition of no electromagnetic interference, the filter can effectively remove the electromagnetic interference of all interfering frequency bands in the signal, and realize the control of the filter to actively filter when the target frequency band and electromagnetic interference are unknown and changing, and the filtering effect is better. The application scenarios of the filter are more extensive.

[0161] Figure 1 FIG. 1 is a flow chart of a control method of a filter in an embodiment. It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0162] This embodiment provides an anti-electromagnetic interference device, including a filter and a control module, wherein the control module uses the above-mentioned filter control method to control the filter.

[0163] In this embodiment, the filter may be an adjustable filter circuit, and the adjustable filter circuit may include several filter circuits, each of which is a low-pass, high-pass, band-pass, or band-stop filter. The frequency characteristics of these filter circuits may be changed by changing the parameters of their circuit elements. The filter circuits may be in series, and may be used simultaneously, partially, or not used. In a specific implementation, the control module may be composed of multiple units, including a circuit control unit, a spectrum analysis unit, a storage unit, and a spectrum calculation unit. Please refer to Figure 3 In order to improve the anti-conducted electromagnetic interference capability of key vehicle components, an active anti-electromagnetic interference device based on spectrum estimation designed by the present scheme is adopted, including a filtering processing module and a signal analysis module, wherein: the spectrum analysis unit samples and analyzes in real time to obtain the real-time frequency characteristic function of the output signal of the filter, that is, the real-time frequency characteristic; the spectrum analysis unit is also used for sampling the theoretical frequency characteristic function of the signal without interference; the storage unit is used for storing the theoretical frequency characteristic function of one or more signals pre-collected by the spectrum analysis unit, that is, the theoretical frequency characteristic; during the filtering process, the storage unit compares the real-time frequency characteristic with the theoretical real-time frequency characteristic, and selects one of the theoretical frequency characteristics as the expected result after the signal is filtered, that is, the target frequency characteristic; the spectrum calculation unit calculates the difference between the real-time frequency characteristic and the target frequency characteristic of the signal, and outputs the corresponding difference spectrum to the circuit control unit; the circuit control unit controls the opening and closing of the filter circuit and related circuit parameters in the adjustable filter circuit unit based on the difference spectrum output by the spectrum calculation unit.

[0164] The following is a specific example to illustrate the filtering process of the anti-electromagnetic interference device. Figure 2 and Figure 3 , Figure 2 The following is a schematic diagram of an active filtering process according to an embodiment of the present application.

[0165] S0: When the anti-electromagnetic interference device is working, the spectrum analysis unit of the signal analysis module performs real-time analysis on the signal and obtains the real-time spectrum;

[0166] S1: Before filtering begins, under interference-free conditions, the spectrum analysis unit of the signal analysis module collects signal sequences at different operating frequencies, calculates the corresponding prefabricated spectrum, and stores it in the storage unit. During filtering, the real-time spectrum calculated by the spectrum analysis unit in real time is compared one by one with all the prefabricated spectrums in the storage unit. Based on the comparison results, the prefabricated spectrum with the highest degree of compliance in the storage unit is selected as the target spectrum for filtering.

[0167] S2: inputting the real-time spectrum and the target spectrum into the spectrum calculation unit, the spectrum calculation unit calculates the difference between the real-time spectrum and the target spectrum, obtains a "frequency-spectrum amplitude difference" function, and outputs it to the circuit control unit;

[0168] S3: Set a fixed threshold, and the circuit control unit judges each frequency point one by one according to the "frequency-spectrum amplitude difference" function. If the spectrum amplitude difference at a certain frequency point (segment) exceeds the threshold, it is determined that the interference of the frequency point (segment) exceeds the standard. After comparing all frequency points, all exceeding frequency points (segments) are output. According to the characteristics of the exceeding frequency point (segment), the circuit control unit controls the opening and closing of the filter circuit in the adjustable filter circuit unit or adjusts the parameters of related components to filter out electromagnetic interference.

[0169] In the above implementation process, by setting a filter and a control module, the control module uses the above filter control method to control the filter. The first eigenvalue corresponding to multiple frequency points in the real-time frequency characteristic is used to match the theoretical frequency characteristics of similar frequency points that meet the preset conditions in the preset frequency characteristic set as the target frequency characteristic. Even when the target frequency band and electromagnetic interference are unknown and changing, the target frequency characteristic can be matched. Since the target frequency characteristic is the theoretical frequency characteristic corresponding to the signal under the condition of no electromagnetic interference, the filter is adjusted according to the second eigenvalue corresponding to multiple frequency points in the target frequency characteristic and the first eigenvalue corresponding to multiple frequency points in the real-time frequency characteristic, so that the frequency characteristics of the signal after filtering by the filter can reach the target frequency characteristic, even if the filtered frequency characteristics reach the theoretical frequency characteristics corresponding to the condition of no electromagnetic interference, so that the filter can effectively remove the electromagnetic interference of all interference frequency bands in the signal, and realize the control of the filter to actively filter when the target frequency band and electromagnetic interference are unknown and changing, and the filtering effect is better, so that the application scenario of the filter is more extensive.

[0170] Please see Figure 6 , Figure 6 The structure diagram of a filter control device according to an embodiment of the present application is schematically shown. This embodiment provides a filter control device, including an acquisition module 410, a determination module 420 and an adjustment module 430, wherein:

[0171] An acquisition module 410 is used to acquire an output signal of the filter in real time, and determine a real-time frequency characteristic based on the output signal of the filter, wherein the real-time frequency characteristic includes first eigenvalues ​​corresponding to a plurality of frequency points;

[0172] A determination module 420 is used to determine a target frequency characteristic from a preset frequency characteristic set based on the real-time frequency characteristic, wherein the preset frequency characteristic set includes a theoretical frequency characteristic corresponding to at least one signal, wherein the theoretical frequency characteristic includes second eigenvalues ​​corresponding to multiple frequency points of the signal under a condition without electromagnetic interference, and wherein the target frequency characteristic is a theoretical frequency characteristic including similar frequency points that meet preset conditions, wherein the similar frequency points are frequency points at which the corresponding first eigenvalue matches the corresponding second eigenvalue;

[0173] The adjustment module 430 is used to adjust the filter based on the second eigenvalues ​​corresponding to the multiple frequency points in the target frequency characteristic and the first eigenvalues ​​corresponding to the multiple frequency points in the real-time frequency characteristic.

[0174] The filter control device includes a processor and a memory. The acquisition module 410, the determination module 420 and the adjustment module 430 are all stored in the memory as program units. The processor executes the program modules stored in the memory to implement corresponding functions.

[0175] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the filter is controlled by adjusting the kernel parameters.

[0176] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0177] An embodiment of the present invention provides a processor, which is used to run a program, wherein the filter control method is executed when the program is run.

[0178] An embodiment of the present application provides a machine-readable storage medium on which a program is stored. When the program is executed by a processor, the above-mentioned filter control method is implemented.

[0179] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 7As shown. The computer device includes a processor A01, a network interface A02, a display screen A04, an input device A05 and a memory (not shown in the figure) connected through a system bus. Among them, the processor A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A06. The non-volatile storage medium A06 stores an operating system B01 and a computer program B02. The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A06. The network interface A02 of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor A01, a filter control method is implemented. The display screen A04 of the computer device can be a liquid crystal display or an electronic ink display, and the input device A05 of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse, etc.

[0180] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0181] In one embodiment, the control device of the filter provided in the present application can be implemented in the form of a computer program. The computer program can be Figure 7 The computer device shown in the figure is run. The memory of the computer device can store various program modules constituting the control device of the filter, for example, Figure 6 The acquisition module 410, the determination module 420 and the adjustment module 430 are shown. The computer program composed of various program modules enables the processor to execute the steps of the filter control method of each embodiment of the present application described in this specification.

[0182] Figure 7 The computer device shown can be Figure 6 The acquisition module 410 in the control device of the filter shown executes step 210. The computer device may execute step 220 through the determination module 420. The computer device may execute step 230 through the adjustment module 430.

[0183] An embodiment of the present application provides an electronic device, the electronic device comprising: at least one processor; a memory connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, the at least one processor implements the above-mentioned filter control method by executing the instructions stored in the memory, and the processor implements the following steps when executing the instructions:

[0184] Acquire an output signal of the filter in real time, and determine a real-time frequency characteristic based on the output signal of the filter, wherein the real-time frequency characteristic includes first eigenvalues ​​corresponding to a plurality of frequency points;

[0185] Based on the real-time frequency characteristic, a target frequency characteristic is determined in a preset frequency characteristic set, wherein the preset frequency characteristic set includes a theoretical frequency characteristic corresponding to at least one signal, wherein the theoretical frequency characteristic includes second eigenvalues ​​corresponding to a plurality of frequency points of the signal under a condition without electromagnetic interference, and wherein the target frequency characteristic is a theoretical frequency characteristic including similar frequency points that meet preset conditions, wherein the similar frequency points are frequency points at which the corresponding first eigenvalue matches the corresponding second eigenvalue;

[0186] The filter is adjusted based on second eigenvalues ​​corresponding to a plurality of frequency points in the target frequency characteristic and first eigenvalues ​​corresponding to a plurality of frequency points in the real-time frequency characteristic.

[0187] In one embodiment, the preset theoretical frequency characteristic set includes theoretical frequency characteristics corresponding to a plurality of signals;

[0188] The step of determining a target frequency characteristic from a preset frequency characteristic set based on the real-time frequency characteristic comprises:

[0189] Traversing all frequency points in the theoretical frequency characteristics corresponding to the signal and the real-time frequency characteristics, and determining similar frequency points based on the corresponding second eigenvalue and the corresponding first eigenvalue at each frequency point;

[0190] Based on the number of similar frequency points, obtaining the similarity between the theoretical frequency characteristic corresponding to the signal and the real-time frequency characteristic;

[0191] Based on the similarity between the theoretical frequency characteristics corresponding to each signal and the real-time frequency characteristics, a target frequency characteristic is determined.

[0192] In one embodiment, the determining of similar frequency points based on the second eigenvalues ​​and the first eigenvalues ​​corresponding to each frequency point respectively includes:

[0193] Comparing the second eigenvalue and the first eigenvalue corresponding to each frequency point with a preset noise characteristic threshold value to obtain a first comparison result;

[0194] Based on the first comparison result, determining a non-noise frequency point;

[0195] Based on the second eigenvalue corresponding to the non-noise frequency point and the first eigenvalue corresponding to the non-noise frequency point, a similar frequency point is determined.

[0196] In one embodiment, the determining of similar frequency points based on the second eigenvalues ​​and the first eigenvalues ​​corresponding to each frequency point respectively includes:

[0197] Calculate the characteristic difference value at each frequency point based on the second eigenvalue and the first eigenvalue corresponding to each frequency point;

[0198] Comparing the characteristic difference value at each frequency point with a preset signal difference threshold value respectively, to obtain a difference comparison result at each frequency point;

[0199] Based on the difference comparison results at each frequency point, similar frequency points are determined.

[0200] In one embodiment, the first eigenvalue corresponding to each frequency point is the first amplitude corresponding to each frequency point, and the second eigenvalue corresponding to each frequency point is the second amplitude corresponding to each frequency point;

[0201] The determining of similar frequency points based on the second eigenvalues ​​and the first eigenvalues ​​corresponding to each frequency point respectively includes:

[0202] The second amplitude and the first amplitude corresponding to each frequency point are respectively compared with a preset noise amplitude threshold to obtain an amplitude comparison result;

[0203] Based on the amplitude comparison result, a non-noise frequency point is determined;

[0204] Based on the second amplitude corresponding to the non-noise frequency point and the corresponding first amplitude, the amplitude difference value at the non-noise frequency point is calculated;

[0205] Comparing the amplitude difference value at the non-noise frequency point with a preset amplitude difference threshold value to obtain a difference comparison result at the non-noise frequency point;

[0206] Based on the difference comparison result at the non-noise frequency points, frequency points whose corresponding amplitude difference values ​​are less than a preset amplitude difference threshold are screened out from the non-noise frequency points to obtain similar frequency points.

[0207] In one embodiment, adjusting the filter based on the second eigenvalue characteristic corresponding to the multiple frequency points in the target frequency and the first eigenvalue corresponding to the multiple frequency points in the real-time frequency characteristic includes:

[0208] Calculate the difference between the second eigenvalue corresponding to the target frequency characteristic and the first eigenvalue corresponding to the real-time frequency characteristic at each frequency point to obtain a difference frequency characteristic;

[0209] Based on the difference frequency characteristics, determining an over-standard frequency point;

[0210] The filter is adjusted based on the exceeded frequency point and the characteristic value corresponding to the exceeded frequency point.

[0211] In one embodiment, determining the out-of-standard frequency point based on the difference frequency characteristic includes:

[0212] Comparing the characteristic values ​​corresponding to the difference frequency characteristics at each frequency point with the preset exceeding characteristic threshold value respectively to obtain a second comparison result;

[0213] Based on the second comparison result, an out-of-standard frequency point is determined.

[0214] In one embodiment, adjusting the filter based on the exceeding frequency point and the characteristic value corresponding to the exceeding frequency point includes:

[0215] Determine the filter type based on the distribution characteristics of the out-of-standard frequency points;

[0216] Determine and obtain filter component parameters based on the filter type and the characteristic values ​​corresponding to the out-of-standard frequency points;

[0217] Based on the filter component parameters, the filter is adjusted.

[0218] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0219] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0220] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0221] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0222] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0223] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0224] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0225] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0226] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A filter control method, characterized in that: include: Acquire an output signal of the filter in real time, and determine a real-time frequency characteristic based on the output signal of the filter, wherein the real-time frequency characteristic includes first eigenvalues ​​corresponding to a plurality of frequency points; Based on the real-time frequency characteristic, a target frequency characteristic is determined in a preset frequency characteristic set, wherein the preset frequency characteristic set includes a theoretical frequency characteristic corresponding to at least one signal, wherein the theoretical frequency characteristic includes second eigenvalues ​​corresponding to a plurality of frequency points of the signal under a condition without electromagnetic interference, and wherein the target frequency characteristic is a theoretical frequency characteristic including similar frequency points that meet preset conditions, wherein the similar frequency points are frequency points at which the corresponding first eigenvalue matches the corresponding second eigenvalue; The filter is adjusted based on second eigenvalues ​​corresponding to a plurality of frequency points in the target frequency characteristic and first eigenvalues ​​corresponding to a plurality of frequency points in the real-time frequency characteristic.

2. The method according to claim 1, characterized in that The preset theoretical frequency characteristic set includes theoretical frequency characteristics corresponding to a plurality of signals; The step of determining a target frequency characteristic from a preset frequency characteristic set based on the real-time frequency characteristic comprises: Traversing all frequency points in the theoretical frequency characteristics corresponding to the signal and the real-time frequency characteristics, and determining similar frequency points based on the second eigenvalues ​​and the first eigenvalues ​​corresponding to each frequency point; Based on the number of similar frequency points, obtaining the similarity between the theoretical frequency characteristic corresponding to the signal and the real-time frequency characteristic; Based on the similarity between the theoretical frequency characteristics corresponding to each signal and the real-time frequency characteristics, a target frequency characteristic is determined.

3. The method according to claim 2, characterized in that The determining of similar frequency points based on the second eigenvalues ​​and the first eigenvalues ​​corresponding to each frequency point respectively includes: Comparing the second eigenvalue and the first eigenvalue corresponding to each frequency point with a preset noise characteristic threshold value to obtain a first comparison result; Based on the first comparison result, determining a non-noise frequency point; Based on the second eigenvalue corresponding to the non-noise frequency point and the first eigenvalue corresponding to the non-noise frequency point, a similar frequency point is determined.

4. The method according to claim 2, characterized in that: The determining of similar frequency points based on the second eigenvalues ​​and the first eigenvalues ​​corresponding to each frequency point respectively includes: Calculate the characteristic difference value at each frequency point based on the second eigenvalue and the first eigenvalue corresponding to each frequency point; Comparing the characteristic difference value at each frequency point with a preset signal difference threshold value respectively, to obtain a difference comparison result at each frequency point; Based on the difference comparison results at each frequency point, similar frequency points are determined.

5. The method according to claim 2, characterized in that: The first eigenvalue corresponding to each frequency point is the first amplitude corresponding to each frequency point, and the second eigenvalue corresponding to each frequency point is the second amplitude corresponding to each frequency point; The determining of similar frequency points based on the second eigenvalues ​​and the first eigenvalues ​​corresponding to each frequency point respectively includes: The second amplitude and the first amplitude corresponding to each frequency point are respectively compared with a preset noise amplitude threshold to obtain an amplitude comparison result; Based on the amplitude comparison result, a non-noise frequency point is determined; Based on the second amplitude corresponding to the non-noise frequency point and the corresponding first amplitude, the amplitude difference value at the non-noise frequency point is calculated; Comparing the amplitude difference value at the non-noise frequency point with a preset amplitude difference threshold value to obtain a difference comparison result at the non-noise frequency point; Based on the difference comparison result at the non-noise frequency points, frequency points whose corresponding amplitude difference values ​​are less than a preset amplitude difference threshold are screened out from the non-noise frequency points to obtain similar frequency points.

6. The method according to claim 1, characterized in that The adjusting the filter based on the second eigenvalue characteristic corresponding to the multiple frequency points in the target frequency and the first eigenvalue corresponding to the multiple frequency points in the real-time frequency characteristic comprises: Calculate the difference between the second eigenvalue corresponding to the target frequency characteristic and the first eigenvalue corresponding to the real-time frequency characteristic at each frequency point to obtain a difference frequency characteristic; Based on the difference frequency characteristics, determining an over-standard frequency point; The filter is adjusted based on the exceeded frequency point and the characteristic value corresponding to the exceeded frequency point.

7. The method according to claim 6, characterized in that The determining of the excess frequency point based on the difference frequency characteristic includes: Comparing the characteristic values ​​corresponding to the difference frequency characteristics at each frequency point with the preset exceeding characteristic threshold value respectively to obtain a second comparison result; Based on the second comparison result, an out-of-standard frequency point is determined.

8. The method according to claim 6, characterized in that The adjusting the filter based on the exceeding frequency point and the characteristic value corresponding to the exceeding frequency point includes: Determine the filter type based on the distribution characteristics of the out-of-standard frequency points; Determine and obtain filter component parameters based on the filter type and the characteristic values ​​corresponding to the out-of-standard frequency points; Based on the filter component parameters, the filter is adjusted.

9. A filter control device, characterized in that: include: An acquisition module, used for acquiring an output signal of the filter in real time, and determining a real-time frequency characteristic based on the output signal of the filter, wherein the real-time frequency characteristic includes first eigenvalues ​​corresponding to a plurality of frequency points; A determination module, configured to determine a target frequency characteristic from a preset frequency characteristic set based on the real-time frequency characteristic, wherein the preset frequency characteristic set includes a theoretical frequency characteristic corresponding to at least one signal, wherein the theoretical frequency characteristic includes second eigenvalues ​​corresponding to a plurality of frequency points of the signal under a condition of no electromagnetic interference, wherein the target frequency characteristic is a theoretical frequency characteristic including similar frequency points that meet preset conditions, wherein the similar frequency points are frequency points at which the corresponding first eigenvalue matches the corresponding second eigenvalue; An adjustment module is used to adjust the filter based on the second eigenvalues ​​corresponding to the multiple frequency points in the target frequency characteristic and the first eigenvalues ​​corresponding to the multiple frequency points in the real-time frequency characteristic.

10. An anti-electromagnetic interference device, characterized in that: The invention comprises a filter and a control module, wherein the control module controls the filter by adopting the filter control method according to any one of claims 1 to 8.

11. An electronic device, characterized in that: The electronic device includes: at least one processor; a memory connected to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the at least one processor implements the filter control method according to any one of claims 1 to 8 by executing the instructions stored in the memory.

12. A machine-readable storage medium having instructions stored thereon, characterized in that: When the instruction is executed by a processor, the processor is configured to execute the filter control method according to any one of claims 1 to 8.

Citation Information

Cited By

  • Anti-inductive impact cable GIS terminal vibration signal acquisition device and working method

    CN121026316A

  • Cable gis terminal vibration signal acquisition device against induction impact and working method

    CN121026316B