Power frequency removing device and method suitable for radar sensor and terminal
By using a combination of multiple notch filters and state machines in radar sensors to dynamically track power frequency points, the problems of high hardware overhead and inflexible frequency point configuration caused by power frequency signal interference in radar sensors are solved. This achieves variable power frequency removal, improving the efficiency and flexibility of signal processing.
Patent Information
- Application Number
- CN202410934753.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-11-08
AI Technical Summary
Existing radar sensors suffer from problems such as high hardware overhead, significant signal spectrum loss, and inflexible frequency configuration when facing power frequency signal interference. In particular, frequency variations caused by sampling clock deviations are difficult to remove effectively in low-power radar sensors.
By employing a combination of multiple notch filters and state machines, the minimum signal energy statistics within the power frequency range are captured through an energy statistics unit, and the frequency point is dynamically tracked to achieve precise removal of the power frequency.
It achieves variable-frequency power frequency acquisition and precise removal, reducing hardware overhead and improving the flexibility and efficiency of signal processing.
Smart Images

Figure CN118914987A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of signal processing technology, and in particular to a power frequency removal device, method and terminal suitable for radar sensors. Background Art
[0002] With the development of IoT technology, millions of sensors and devices are gradually connecting the world. Especially in the fields of smart home and smart lighting, millimeter wave radar sensors have been widely used in presence sensing. In the application scenarios of millimeter wave radar sensors, if there is strong electrical interference near the radar sensor, power frequency signals will appear in the received signal. Power frequency signals will interfere with presence detection and even lose the perception function. Therefore, it is necessary to remove the influence of power frequency signals. However, due to the lack of phase-locked loops in low-power radar sensors, the sampling clock will have large deviations and changes. Therefore, removing the power frequency evolves into the problem of removing single-tone signals with changing frequencies.
[0003] In the prior art, for systems with fixed power frequency points, notch filtering is generally used for filtering; for systems with variable frequency points, band-stop filters are generally used to filter out all possible locations where the power frequency may appear. However, since the power frequency needs to be filtered out more thoroughly, the order of the band-stop filter is generally high. And because the band-stop filter will filter out all signals within a large range, it will suppress signals in certain application scenarios, thereby limiting its functionality. In addition, due to the different power frequency points, different band-stop filters need to be used for filtering, which will cause more hardware overhead. Summary of the invention
[0004] In view of the shortcomings of the prior art described above, the purpose of the present application is to provide a power frequency removal device, method and terminal suitable for radar sensors, which are used to solve the problems of large hardware overhead, large signal spectrum loss and inability to flexibly configure frequency points in the prior art.
[0005] To achieve the above-mentioned purpose and other related purposes, the first aspect of the present application provides an industrial frequency removal device suitable for a radar sensor, comprising: a plurality of notch filters and a state machine respectively connected to each notch filter; wherein the state machine is used to perform a frequency point dynamic tracking operation based on the plurality of notch filters according to the frequency point corresponding to the minimum signal energy statistical result captured within the configured industrial frequency range, to obtain a filtered frequency point for industrial frequency removal of the signal to be removed received by the industrial frequency removal device.
[0006] In some embodiments of the first aspect of the present application, the power frequency removal device further includes: a plurality of energy statistical units; wherein each energy statistical unit is connected to each notch filter in a one-to-one correspondence; and each energy statistical unit is respectively connected to the state machine.
[0007] In some embodiments of the first aspect of the present application, the power frequency removal device is connected in sequence to a low-pass filtering module and an analog-to-digital sampling module; wherein the analog-to-digital sampling module is used to perform analog-to-digital sampling on the analog signal received by the radar sensor to obtain a digital signal; the low-pass filtering module is used to perform low-pass filtering on the digital signal received and sent by the analog-to-digital sampling module to generate a signal to be removed, and send the signal to be removed to the power frequency removal device.
[0008] In some embodiments of the first aspect of the present application, the method for capturing the frequency point corresponding to the minimum signal energy statistical result within the configured operating frequency range includes: using the multiple notch filters to search within the configured operating frequency range, and after the search is completed, based on the search range signal energy statistical results of each energy statistical unit, capturing the frequency point corresponding to the minimum signal energy statistical result; wherein the operating frequency range is configured based on the deviation of the sampling frequency of the analog-to-digital sampling module.
[0009] In some embodiments of the first aspect of the present application, the multiple notch filters are used to search within the configured power frequency range, and after the search is completed, based on the search range signal energy statistics of each energy statistical unit, the frequency point corresponding to the minimum signal energy statistical result is captured, including: according to the configured power frequency search range, a corresponding notch filter search range is assigned to each notch filter; each notch filter is used to search within the corresponding assigned notch filter search range according to a set step size, and during the search process, a corresponding search range signal energy statistical result is generated through the energy statistical unit connected to itself; after all notch filters have completed the search, the state machine compares the search range signal energy statistical results of each energy statistical unit, and determines the minimum signal energy statistical result and the corresponding frequency point therefrom.
[0010] In some embodiments of the first aspect of the present application, according to the frequency point corresponding to the minimum signal energy statistical result captured within the configured power frequency range, a frequency point dynamic tracking operation based on the multiple notch filters is performed to obtain the filtered frequency point, including: configuring the frequency point corresponding to the minimum signal energy statistical result to the middle notch filter among the multiple notch filters, and updating the frequency point of each notch filter according to the signal energy statistical result of each energy statistical unit during the process of dynamic frequency tracking, so as to perform power frequency removal on the signal to be removed received by the power frequency removal device.
[0011] In some embodiments of the first aspect of the present application, the frequency point corresponding to the minimum signal energy statistical result is configured to the middle notch filter among the multiple notch filters, and the frequency points of each notch filter are updated according to the signal energy statistical results of each energy statistical unit during the process of dynamic frequency tracking, including: configuring the frequency point corresponding to the minimum signal energy statistical result to the middle notch filter among the multiple notch filters, and configuring the frequencies of the remaining notch filters according to the set frequency configuration relationship range; determining the serial number of the notch filter with the minimum signal energy statistical result through the energy statistical unit corresponding to each notch filter; based on the determined serial number, updating the frequency points of each notch filter according to the frequency update formula.
[0012] In some embodiments of the first aspect of the present application, a presence detection module is also connected; wherein the presence detection module is connected to the intermediate notch filter and is used to perform presence detection based on an output signal of the intermediate notch filter.
[0013] To achieve the above-mentioned purpose and other related purposes, the second aspect of the present application provides a power frequency removal method suitable for a radar sensor, which is applied to a power frequency removal device suitable for a radar sensor, including multiple notch filters. The method includes: capturing the frequency point corresponding to the minimum signal energy statistical result within the configured power frequency range; according to the frequency point corresponding to the captured minimum signal energy statistical result, performing a frequency point dynamic tracking operation based on the multiple notch filters to obtain a filtered frequency point for power frequency removal of the signal to be removed received by the power frequency removal device.
[0014] To achieve the above-mentioned purpose and other related purposes, the third aspect of the present application provides a terminal, including: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal executes the power frequency removal method applicable to the radar sensor.
[0015] As described above, the power frequency removal device, method and terminal applicable to the radar sensor of the present application have the following beneficial effects:
[0016] The device includes a plurality of notch filters and a state machine connected to each notch filter respectively; the state machine is used to perform a frequency point dynamic tracking operation based on the plurality of notch filters according to the frequency point corresponding to the minimum signal energy statistical result captured within the configured power frequency range, and obtain the filtered frequency point for power frequency removal of the signal to be removed received by the power frequency removal device. The power frequency removal device of the present application realizes the capture, tracking and precise removal of power frequencies with variable frequency points. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 Shown is a schematic structural diagram of a power frequency removal device suitable for a radar sensor in one embodiment of the present application.
[0018] Figure 2 It shows a schematic diagram of the connection between the analog-to-digital sampling module, the low-pass filtering module, the presence detection module and the power frequency removal device in one embodiment of the present application.
[0019] Figure 3 Shown is a schematic diagram of a state machine in an embodiment of the present application.
[0020] Figure 4 Shown is a schematic diagram of the input signal of the power frequency removal module in a specific embodiment of the present application.
[0021] Figure 5 Shown is a schematic diagram of the statistical output of the minimum signal energy in a specific embodiment of the present application.
[0022] Figure 6 Shown is a schematic diagram of frequency change in a tracking state in a specific embodiment of the present application.
[0023] Figure 7 Shown is a schematic diagram of an output signal of a power frequency removal device suitable for a radar sensor in a specific embodiment of the present application.
[0024] Figure 8 Shown is a flow chart of a power frequency removal method applicable to a radar sensor in one embodiment of the present application.
[0025] Fig. 9 Shown is a schematic diagram of the structure of a terminal in an embodiment of the present application. DETAILED DESCRIPTION
[0026] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0027] It should be noted that in the following description, with reference to the accompanying drawings, several embodiments of the present application are described in the accompanying drawings. It should be understood that other embodiments may also be used, and mechanical composition, structure, electrical and operational changes may be made without departing from the spirit and scope of the present application. The following detailed description should not be considered restrictive, and the scope of the embodiments of the present application is limited only by the claims of the published patents. The terms used here are only for describing specific embodiments and are not intended to limit the present application. Spatially related terms, such as "upper", "lower", "left", "right", "below", "below", "lower", "above", "upper", etc., may be used in the text to facilitate the description of the relationship between an element or feature shown in the figure and another element or feature.
[0028] In this application, unless otherwise clearly specified and limited, the terms "install", "connect", "connect", "fix", "hold" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0029] Furthermore, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described here can be implemented in an order other than that illustrated or described here. In addition, the terms "comprising" and "including" indicate the presence of the described features, operations, elements, components, items, kinds, and / or groups, but do not exclude the presence, occurrence or addition of one or more other features, operations, elements, components, items, kinds, and / or groups. It should be further understood that the terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Therefore, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". Exceptions to this definition occur only when a combination of elements, functions, or operations are inherently mutually exclusive in some manner.
[0030] The present application provides a power frequency removal device, method and terminal suitable for radar sensors, the device includes multiple notch filters and a state machine respectively connected to each notch filter; the state machine is used to perform frequency point dynamic tracking operation based on the multiple notch filters according to the frequency point corresponding to the minimum signal energy statistical result captured within the configured power frequency range, and obtain the filtered frequency point for power frequency removal of the signal to be removed received by the power frequency removal device. The power frequency removal device of the present application realizes the capture, tracking and precise removal of power frequencies with variable frequencies.
[0031] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the technical solution in the embodiments of the present invention is further described in detail through the following embodiments and in combination with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the invention.
[0032] like Figure 1 As shown, it is a schematic structural diagram of a power frequency removal device suitable for a radar sensor in an embodiment of the present invention.
[0033] The power frequency removal device 1 applicable to the radar sensor comprises:
[0034] A plurality of notch filters 11 and a state machine 12 respectively connected to each notch filter 11;
[0035] Among them, the state machine 12 is used to perform a frequency point dynamic tracking operation based on the multiple notch filters according to the frequency point corresponding to the minimum signal energy statistical result captured within the configured power frequency range, and obtain the filtered frequency point for power frequency removal of the signal to be removed x(n) received by the power frequency removal device 1.
[0036] It should be noted that the signal to be removed x(n) is a digital signal containing an industrial frequency.
[0037] It should also be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software calling through processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in the form of hardware. For example, the state machine 12 can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The function of the above state machine 12. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0038] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0039] In a specific embodiment, the power frequency removal device 1 applicable to a radar sensor is disposed in a receiver of a low power consumption radar sensor.
[0040] In one embodiment, if Figure 2 As shown, the power frequency removal device 1 is connected in sequence with a low-pass filtering module 3 and an analog-to-digital sampling module 2; wherein the analog-to-digital sampling module 2 is used to perform analog-to-digital sampling on the analog signal received by the radar sensor to obtain a digital signal; the low-pass filtering module 3 is used to perform low-pass filtering on the digital signal received and sent by the analog-to-digital sampling module 2 to generate a signal to be removed, and send the signal to be removed to the power frequency removal device.
[0041] It should be noted that analog-to-digital sampling is ADC (Analog to Digital Converter) sampling. The present invention does not limit the models of analog-to-digital sampling modules and low-pass filtering modules, and the art can select appropriate models of analog-to-digital sampling modules and low-pass filtering modules according to actual needs.
[0042] In a specific embodiment, the received analog input signal is an echo signal received by a radar sensor.
[0043] In one embodiment, if Figure 1 As shown, the power frequency removal device also includes: a plurality of energy statistical units 13; wherein each energy statistical unit 13 is connected to each notch filter 11 in a one-to-one correspondence; each energy statistical unit 13 is connected to the state machine 12 respectively; each energy statistical unit is used to count the signal energy P(n) of the signal output by the corresponding notch filter after notching.
[0044] It should be noted that a notch filter refers to a filter that can quickly attenuate an input signal at a certain frequency point to achieve a filtering effect that blocks the passage of the frequency signal. In this embodiment, after the filtering frequency point of the power frequency is determined, the determined filtering frequency point is configured to the notch filter, and the notch filter can filter the power frequency. In addition, in this embodiment, the number of notch filters is set to an odd number because the power frequency can be tracked in the subsequent tracking stage; the number of notch filters is the same as the number of energy statistical units.
[0045] It should also be noted that those skilled in the art can select the models of the notch filter and the energy statistics unit according to actual needs, and the present invention does not limit this.
[0046] In a specific embodiment, the notch filter is implemented in a first-order IIR manner, and the input of the power frequency removal module is the real signal x(n) output by the low-pass filter. After the power frequency is filtered out by the notch filter, a real signal z(n) is obtained; wherein the formula of the notch filter refers to Formula 1 and Formula 2:
[0047]
[0048] z(n)=x(n)-2Re(y(n)); (Formula 2);
[0049] Among them, f n Expressed as the notch frequency, f s Re(.) represents the sampling rate and Re(.) represents the real part.
[0050] In one embodiment, if Figure 3As shown, the state machine has three states, namely, initialization state, capture state and tracking state; when the state machine enters each state, the power frequency removal module will perform the operation corresponding to the state.
[0051] Specifically, when the state machine enters the initialization state, the power frequency removal module performs initialization phase operations; when the state machine enters the capture state from the initialization state, the power frequency removal module performs capture phase operations; when the state machine enters the tracking state from the capture state, the power frequency removal module performs tracking phase operations.
[0052] In one embodiment, the initialization phase operation includes: configuring the power frequency search range based on the deviation of the sampling frequency of the analog-to-digital sampling module.
[0053] It should be noted that, since the sampling frequency of the ADC sampling module will fluctuate due to the influence of temperature and other factors during operation, that is, the sampling frequency will have deviations, wherein the sampling deviation can also correspond to frequency deviation. Therefore, the frequency point of the power frequency is not fixed, but may appear within a certain range. For example, assuming that there is no deviation in the ADC sampling module, the frequency point of the power frequency is 50Hz; and when the sampling frequency of the ADC sampling module has a deviation of ±10%, the frequency point range of the power frequency may be [45Hz, 55Hz]. Based on the above reasons, the power frequency search range in the embodiment of the present invention is configured based on the deviation of the sampling frequency of the analog-to-digital sampling module.
[0054] In one embodiment, the capture phase operation includes: capturing a frequency point corresponding to a minimum signal energy statistical result within a configured power frequency range.
[0055] In one embodiment, capturing the frequency point corresponding to the minimum signal energy statistical result within the configured power frequency range includes: using the multiple notch filters to search within the configured power frequency range, and after the search is completed, based on the search range signal energy statistical results of each energy statistical unit, capturing the frequency point corresponding to the minimum signal energy statistical result.
[0056] In one embodiment, the multiple notch filters are used to search within the configured power frequency range, and after the search is completed, based on the search range signal energy statistics of each energy statistical unit, the frequency point corresponding to the minimum signal energy statistical result is captured, including: according to the configured power frequency search range, a corresponding notch filter search range is assigned to each notch filter; each notch filter is used to search within the corresponding assigned notch filter search range according to a set step size, and during the search process, a corresponding search range signal energy statistical result is generated through the energy statistical unit connected to itself; after all notch filters have completed the search, the state machine compares the search range signal energy statistical results of each energy statistical unit, and determines the minimum signal energy statistical result and the corresponding frequency point therefrom.
[0057] It should be noted that those skilled in the art can set the step size according to actual needs, as long as multiple notch filters complete the search within the configured power frequency range, and the present invention does not limit this.
[0058] In one embodiment, the tracking phase operation includes: performing a frequency point dynamic tracking operation based on the multiple notch filters according to the frequency point corresponding to the minimum signal energy statistical result captured within the configured power frequency range, and obtaining a filtered frequency point for power frequency removal of the signal to be removed received by the power frequency removal device.
[0059] In one embodiment, according to the frequency point corresponding to the minimum signal energy statistical result captured within the configured power frequency range, a frequency point dynamic tracking operation based on the multiple notch filters is performed to obtain the filtered frequency point, including: configuring the frequency point corresponding to the minimum signal energy statistical result to the middle notch filter among the multiple notch filters, and updating the frequency point of each notch filter according to the signal energy statistical result of each energy statistical unit during the process of dynamic frequency tracking, so as to perform power frequency removal on the signal to be removed received by the power frequency removal device.
[0060] In one embodiment, the frequency point corresponding to the minimum signal energy statistical result is configured to the middle notch filter among the multiple notch filters, and the frequency points of each notch filter are updated according to the signal energy statistical results of each energy statistical unit during the process of dynamic frequency tracking, including: configuring the frequency point corresponding to the minimum signal energy statistical result to the middle notch filter among the multiple notch filters, and configuring the frequencies of the remaining notch filters according to the set frequency configuration relationship range; determining the serial number of the notch filter with the minimum signal energy statistical result through the energy statistical unit corresponding to each notch filter; based on the determined serial number, the frequency points of each notch filter are updated according to the frequency update formula.
[0061] In a specific embodiment, if Figure 1 as well as Figure 2 As shown in FIG. 1 , when the number of notch filters is 3, the set frequency point configuration relationship range is specifically as follows: the frequency point of notch filter A is configured as f t (n)-Δf, set the frequency of notch filter B to f t (n) and configure the frequency of the notch filter C to f t (n)+Δf.
[0062] It should be noted that those skilled in the art can set Δf according to actual needs, and the present invention is not limited to this.
[0063] In a specific embodiment, the frequency update formula is the following formula 3:
[0064] f t (n) = f t (n-1)+μ×(k-1); (Formula 3);
[0065] Where k is the serial number of the notch filter, f t (n) is the frequency of the intermediate notch filter, μ is the set frequency update step size, and f t (0) is the frequency point corresponding to the minimum signal energy statistical result.
[0066] The following will use examples and the attached Figure 2 The initialization phase operation, the capture phase operation and the tracking phase operation of the power frequency removal device 1 are explained in detail:
[0067] Before explaining in detail, it should be noted that the structure of the power frequency removal device 1 in this embodiment includes:
[0068] Three notch filters, namely notch filter A, notch filter B and notch filter C;
[0069] Three energy statistics units, namely energy statistics unit A, energy statistics unit B and energy statistics unit C;
[0070] Among them, notch filter A, notch filter B and notch filter C are respectively connected to the low-pass filter 12; notch filter A is connected to energy statistics unit A, notch filter B is connected to energy statistics unit B, notch filter C is connected to energy statistics unit C; energy statistics unit A, energy statistics unit B and energy statistics unit C are respectively connected to the state machine.
[0071] When the state machine enters the initialization state, based on the sampling frequency deviation of the analog-to-digital sampling module, configure the power frequency search range [f L , f H ].
[0072] After the power frequency search range is configured, the state machine enters the capture state. The power frequency removal device 1 starts the capture phase operation. In the capture state, the three notch filters are evenly placed at [f L , f H ], respectively f L 、f L +(f H -f L ) / 3, f L +2(f H -f L ) / 3, and searches according to the set step length Δ. For example, the moment when the power frequency removal device 1 starts the capture phase operation is time 0, and at m moments thereafter, the frequency of the notch filter A is f L +mΔ. During the search process of each notch filter, the corresponding energy statistics unit generates the signal energy statistics at each moment. After the search of the notch filter is completed, the signal energy statistics of all moments generated are the search range signal energy statistics of the notch filter. The search range signal energy statistics generated by the three notch filters are sent to the state machine and compared by the state machine. The state machine compares the search range signal energy statistics generated by the three notch filters to determine the minimum signal energy statistics P from the search range signal energy statistics generated by the three notch filters. min And the corresponding frequency f min After determining the minimum signal energy statistics P min And the corresponding frequency f min After that, the state machine enters the tracking state. In the tracking state, the frequency configuration relationship of the three notch filters is as follows:
[0073] Set the frequency of notch filter A to f t (n)-Δf, set the frequency of notch filter B to f t (n) and configure the frequency of the notch filter C to f t (n)+Δf. And the frequency point f corresponding to the minimum signal energy statistics result determined in the capture state min , in the initial stage of the tracking state, is configured to the intermediate notch filter. In this embodiment, the intermediate notch filter is notch filter B, and the configuration formula is specifically: f t (0) = f min .
[0074] During the tracking phase, each energy statistics unit will also perform signal energy statistics on the signal output by the corresponding notch filter at each moment. At the nth moment, if the notch filter with the smallest signal energy statistics result is numbered k, and the set frequency point update step is μ, the frequency point will be updated according to the frequency point update formula (refer to the following formula 4):
[0075] f t (n) = f t (n-1)+μ×(k-1), k=0,1,2; (Formula 4).
[0076] It should be noted that, in this embodiment, when the notch filter with the smallest signal energy statistics is notch filter A, k=0; when the notch filter with the smallest signal energy statistics is notch filter B, k=1; when the notch filter with the smallest signal energy statistics is notch filter C, k=2. It should also be noted that, through the tracking phase operation, this embodiment can dynamically configure the filtering frequency point of the intermediate notch filter as the power frequency changes, thereby achieving tracking and accurate filtering of the power frequency point.
[0077] In one embodiment, if Figure 2 As shown, the power frequency removal device 1 suitable for the radar sensor is also connected to a presence detection module 4; wherein the presence detection module 4 is connected to the intermediate notch filter B, and is used to perform presence detection according to the output signal of the intermediate notch filter B; the signal output by the intermediate notch filter B is a signal with the power frequency filtered out.
[0078] Specifically, the presence detection module 4 performs energy statistics on the received signal output by the intermediate notch filter B according to the data block length of 128; if the statistical energy is greater than the set threshold, it is considered that there is a moving object, and the output of the presence detection module 14 is 1; if the statistical energy is not greater than the set threshold, it is considered that there is no moving object, and the output of the presence detection module 14 is 0. In the case of power frequency interference, when the power frequency removal device 1 is turned off, the output of the presence detection module 4 is all 1; when the power frequency removal module 1 is turned on and enters the tracking state, the output of the presence detection module 4 is 0.
[0079] In order to better illustrate the manner in which the power frequency removal module performs initialization phase operation, capture phase operation and tracking phase operation in the embodiment of the present invention, a specific embodiment is now provided.
[0080] Embodiment 1: A power frequency filtering process.
[0081] A low-power millimeter-wave radar sensor uses a 5.8G radio frequency and the sampling rate of the ADC sampling module is 1000Hz. Due to the requirement of low power consumption, the sampling frequency of the ADC sampling module may vary within a deviation of ±10%, so the possible frequency range of the power frequency is [45Hz, 55Hz].
[0082] In this embodiment, the three notch filters are notch filter A (serial number 0), notch filter B (serial number 1) and notch filter C (serial number 2). The bandwidth of the low-pass filter is 80Hz, so the output of the low-pass filter is a real signal x(n) with a bandwidth of 80Hz, and there will be a large power frequency signal around 50Hz. Assume that ±10%, that is, [45Hz, 55Hz] changes within 1 minute. The input of the power frequency removal device is as follows Figure 4 As shown, it can be seen that it is a sinusoidal signal whose frequency changes with time.
[0083] When the state machine is in the initialization state, since the sampling frequency of the ADC sampling module may have a deviation of ±10%, the power frequency search range is configured to [45Hz, 55Hz]. When the state machine enters the capture state, the initial frequency points of the three notch filters are configured to 45Hz, 45+10 / 3Hz, and 45+20 / 3Hz respectively. If the entire power frequency search range is to be searched, each notch filter needs to traverse 10 / 3Hz. If the traversal needs to be completed within 1s, which is equivalent to completing it within 1000 samples, the step size Δ can be set to 1 / 300Hz. In the capture state, the frequency point f corresponding to the minimum signal energy statistical result is captured. min is 45.0133Hz.
[0084] After capturing the frequency point corresponding to the minimum signal energy statistics, the system enters the tracking state. min Configure the middle notch filter among the three notch filters, i.e., notch filter B. Set Δf = 0.5 Hz, and configure the frequencies of the other two notch filters according to the frequency configuration relationship. Set the frequency update step μ = 0.0002. Use the output of notch filter B as the input of the presence detection module. Figure 5 is the statistical output of the minimum signal energy (MinimumEnergy Estimation). It can be seen that as the frequency increases, the minimum energy appears in the notch filter with sequence number 1 (notch filter B) or the notch filter with sequence number 2 (notch filter C). The frequency points of the three notch filters are updated according to formula 3. The updated frequency points are as follows: Figure 6 shown.
[0085] Figure 7It is shown as the output of the power frequency removal device. It can be seen from the figure that after the notch filter converges, the output energy becomes significantly smaller and the power frequency signal is effectively removed.
[0086] Similar to the above embodiment, the present invention also provides a power frequency removal method applicable to a radar sensor.
[0087] The following provides specific embodiments in conjunction with the accompanying drawings:
[0088] like Figure 8 As shown, it is a schematic flow chart of a power frequency removal method applicable to a radar sensor in an embodiment of the present invention.
[0089] The power frequency removal method applicable to the radar sensor is applied to a power frequency removal device applicable to the radar sensor, including a plurality of notch filters, and the method includes:
[0090] Step S801: capturing the frequency point corresponding to the minimum signal energy statistical result within the configured power frequency range;
[0091] Step S802: according to the frequency corresponding to the minimum signal energy statistics result captured, a frequency dynamic tracking operation based on the plurality of notch filters is performed to obtain a filtered frequency for performing power frequency removal on the signal to be removed received by the power frequency removal device.
[0092] In one embodiment, the power frequency removal device further includes: a plurality of energy statistical units; wherein each energy statistical unit is connected to each notch filter in a one-to-one correspondence; and each energy statistical unit is connected to the state machine respectively.
[0093] In one embodiment, the power frequency removal device is connected in sequence to a low-pass filtering module and an analog-to-digital sampling module; wherein the analog-to-digital sampling module is used to perform analog-to-digital sampling on the analog signal received by the radar sensor to obtain a digital signal; the low-pass filtering module is used to perform low-pass filtering on the digital signal received and sent by the analog-to-digital sampling module to generate a signal to be removed, and send the signal to be removed to the power frequency removal device.
[0094] In one embodiment, a method for capturing a frequency point corresponding to a minimum signal energy statistical result within a configured operating frequency range includes: using the multiple notch filters to search within the configured operating frequency range, and after the search is completed, based on the search range signal energy statistical results of each energy statistical unit, capturing the frequency point corresponding to the minimum signal energy statistical result; wherein the operating frequency range is configured based on the deviation of the sampling frequency of the analog-to-digital sampling module.
[0095] In one embodiment, the multiple notch filters are used to search within the configured power frequency range, and after the search is completed, based on the search range signal energy statistics of each energy statistical unit, the frequency point corresponding to the minimum signal energy statistical result is captured, including: according to the configured power frequency search range, a corresponding notch filter search range is assigned to each notch filter; each notch filter is used to search within the corresponding assigned notch filter search range according to a set step size, and during the search process, a corresponding search range signal energy statistical result is generated through the energy statistical unit connected to itself; after all notch filters have completed the search, the state machine compares the search range signal energy statistical results of each energy statistical unit, and determines the minimum signal energy statistical result and the corresponding frequency point therefrom.
[0096] In one embodiment, according to the frequency point corresponding to the minimum signal energy statistical result captured within the configured power frequency range, a frequency point dynamic tracking operation based on the multiple notch filters is performed to obtain the filtered frequency point, including: configuring the frequency point corresponding to the minimum signal energy statistical result to the middle notch filter among the multiple notch filters, and updating the frequency point of each notch filter according to the signal energy statistical result of each energy statistical unit during the process of dynamic frequency tracking, so as to perform power frequency removal on the signal to be removed received by the power frequency removal device.
[0097] In one embodiment, the frequency point corresponding to the minimum signal energy statistical result is configured to the middle notch filter among the multiple notch filters, and the frequency points of each notch filter are updated according to the signal energy statistical results of each energy statistical unit during the process of dynamic frequency tracking, including: configuring the frequency point corresponding to the minimum signal energy statistical result to the middle notch filter among the multiple notch filters, and configuring the frequencies of the remaining notch filters according to the set frequency configuration relationship range; determining the serial number of the notch filter with the minimum signal energy statistical result through the energy statistical unit corresponding to each notch filter; based on the determined serial number, the frequency points of each notch filter are updated according to the frequency update formula.
[0098] In one embodiment, a presence detection module is also connected; wherein the presence detection module is connected to the intermediate notch filter and is used to perform presence detection according to the output signal of the intermediate notch filter.
[0099] It should be noted that, since the power frequency removal method applicable to the radar sensor in this embodiment is similar to the implementation of the power frequency removal device applicable to the radar sensor in the above embodiment, repeated explanation is not given here.
[0100] like Fig. 9 As shown, it is a schematic diagram of the structure of the terminal in an embodiment of the present invention.
[0101] The terminal 9 comprises: a processor 92 and a memory 91; the memory 91 is used to store a computer program; the processor 92 is used to execute the computer program stored in the memory, so that the terminal 9 performs the following steps: Figure 8 The power frequency removal method is applicable to radar sensors.
[0102] Optionally, the number of the memory 91 can be one or more, the number of the processor 92 can be one or more, and Fig. 9 Take one as an example.
[0103] Optionally, the processor 92 in the control device will Figure 8 In the above steps, one or more instructions corresponding to the process of the application are loaded into the memory 92, and the processor 92 runs the application stored in the first memory, thereby achieving the following Figure 8 The various functions in the power frequency removal method applicable to radar sensors.
[0104] Optionally, the memory 91 may include but is not limited to high-speed random access memory and non-volatile memory. For example, one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices; the processor 82 may include but is not limited to a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0105] Optionally, the processor 92 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0106] The present invention also provides a computer-readable storage medium storing a computer program, wherein the computer program is executed as follows: Figure 8 The power frequency removal method applicable to radar sensors. The computer-readable storage medium may include, but is not limited to, a floppy disk, an optical disk, a CD-ROM (Compact Disc Read Only Memory), a magneto-optical disk, a ROM (Read Only Memory), a RAM (Random Access Memory), an EPROM (Erasable Programmable Read Only Memory), an EEPROM (Electrically Erasable Programmable Read Only Memory), a magnetic card or an optical card, a flash memory, or other types of media / machine-readable media suitable for storing machine-executable instructions. The computer-readable storage medium may be a product that is not connected to a computer device, or a component that is connected to a computer device for use.
[0107] In some embodiments of the present invention, the computer readable and writable storage medium may include a read-only memory, a random access memory, an EEPROM, a CD-ROM or other optical disk storage device, a magnetic disk storage device or other magnetic storage device, a flash memory, a USB flash drive, a mobile hard disk, or any other medium that can be used to store the desired program code in the form of an instruction or data structure and can be accessed by a computer. In addition, any connection can be appropriately referred to as a computer-readable medium. For example, if the instruction is sent from a website, server or other remote source using a coaxial cable, a fiber optic cable, a twisted pair, a digital subscriber line (DSL), or wireless technologies such as infrared, radio and microwaves, the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio and microwaves are included in the definition of the medium. However, it should be understood that computer readable and writable storage media and data storage media do not include connections, carriers, signals or other temporary media, but are intended to be non-temporary, tangible storage media. Disk and disc, as used in this application, includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers.
[0108] In summary, the present application provides a power frequency removal device, method and terminal suitable for radar sensors, the device comprising a plurality of notch filters and a state machine respectively connected to each notch filter; the state machine is used to perform a frequency point dynamic tracking operation based on the plurality of notch filters according to the frequency point corresponding to the minimum signal energy statistical result captured within the configured power frequency range, and obtain the filtered frequency point for power frequency removal of the signal to be removed received by the power frequency removal device. Therefore, the present application effectively overcomes various shortcomings in the prior art and has a high industrial utilization value.
[0109] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A power frequency removal device suitable for a radar sensor, characterized in that: include: A plurality of notch filters and a state machine respectively connected to each notch filter; Among them, the state machine is used to perform a frequency point dynamic tracking operation based on the multiple notch filters according to the frequency point corresponding to the minimum signal energy statistical result captured within the configured power frequency range, and obtain the filtered frequency point for power frequency removal of the signal to be removed received by the power frequency removal device.
2. The power frequency removal device suitable for radar sensor according to claim 1, characterized in that: The power frequency removal device further includes: a plurality of energy statistical units; wherein each energy statistical unit is connected to each notch filter in a one-to-one correspondence; and each energy statistical unit is connected to the state machine respectively.
3. The power frequency removal device suitable for radar sensor according to claim 2, characterized in that: The power frequency removal device is sequentially connected to a low-pass filter module and an analog-to-digital sampling module; The analog-to-digital sampling module is used to perform analog-to-digital sampling on the analog signal received by the radar sensor to obtain a digital signal; The low-pass filtering module is used to perform low-pass filtering on the digital signal received and sent by the analog-to-digital sampling module to generate a signal to be removed, and send the signal to be removed to the power frequency removal device.
4. The power frequency removal device suitable for radar sensor according to claim 3, characterized in that: Methods for capturing the frequency point corresponding to the minimum signal energy statistics result within the configured power frequency range include: The multiple notch filters are used to search within the configured power frequency range, and after the search is completed, the frequency point corresponding to the minimum signal energy statistical result is captured based on the search range signal energy statistical results of each energy statistical unit; wherein the power frequency range is configured based on the deviation of the sampling frequency of the analog-to-digital sampling module.
5. The power frequency removal device suitable for radar sensor according to claim 4, characterized in that: The plurality of notch filters are used to search within the configured power frequency range, and after the search is completed, based on the search range signal energy statistics of each energy statistics unit, the frequency point corresponding to the minimum signal energy statistics result is captured, including: According to the configured power frequency search range, a corresponding notch filter search range is assigned to each notch filter; Using each notch filter to search in the corresponding assigned notch filter search range according to the set step size, and generating the corresponding search range signal energy statistics result through the energy statistics unit connected to itself during the search process; After all notch filters have completed the search, the state machine compares the search range signal energy statistics results of each energy statistics unit, and determines the minimum signal energy statistics result and the corresponding frequency point.
6. The power frequency removal device suitable for radar sensor according to claim 5, characterized in that: According to the frequency point corresponding to the minimum signal energy statistical result captured within the configured power frequency range, a frequency point dynamic tracking operation based on the multiple notch filters is performed to obtain the filtered frequency point, including: The frequency point corresponding to the minimum signal energy statistical result is configured to the middle notch filter among the multiple notch filters, and the frequency points of each notch filter are updated according to the signal energy statistical results of each energy statistical unit during the process of dynamic frequency tracking, so as to remove the power frequency of the signal to be removed received by the power frequency removal device.
7. The power frequency removal device for radar sensor according to claim 6, characterized in that: Allocating the frequency point corresponding to the minimum signal energy statistical result to the middle notch filter among the multiple notch filters, and updating the frequency points of each notch filter according to the signal energy statistical results of each energy statistical unit in the process of dynamic frequency tracking includes: Allocate the frequency point corresponding to the minimum signal energy statistical result to the middle notch filter among the multiple notch filters, and configure the frequency points of the remaining notch filters according to the set frequency point configuration relationship range; Determine the sequence number of the notch filter with the smallest signal energy statistical result through the energy statistical unit corresponding to each notch filter; Based on the determined sequence number and according to the frequency update formula, the frequency of each notch filter is updated.
8. The power frequency removal device suitable for radar sensor according to claim 7, characterized in that: A presence detection module is also connected; wherein the presence detection module is connected to the intermediate notch filter and is used to perform presence detection according to the output signal of the intermediate notch filter.
9. A method for removing power frequency of a radar sensor, characterized in that: A power frequency removal device for a radar sensor includes a plurality of notch filters, and the method includes: Capture the frequency point corresponding to the minimum signal energy statistics result within the configured power frequency range; According to the frequency point corresponding to the captured minimum signal energy statistical result, a frequency point dynamic tracking operation based on the multiple notch filters is performed to obtain a filtered frequency point for power frequency removal of the signal to be removed received by the power frequency removal device.
10. A terminal, characterized in that: include: Processor and memory; The memory is used to store computer programs; The processor is configured to execute the computer program stored in the memory so as to enable the terminal to perform the method as claimed in claim 9.
