Filtering method and device, computer readable storage medium and building system
By employing parallel filtering modules and active filtering methods in the building control system, and dynamically selecting filtering modules and adjusting detection intervals, the problem of unsatisfactory filtering effect of sensor signals in complex environments is solved, achieving high-precision and low-resource-consumption transmission.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GREE ELECTRIC APPLIANCE INC OF ZHUHAI
- Filing Date
- 2026-01-30
- Publication Date
- 2026-05-15
AI Technical Summary
In existing building control systems, sensor signals are easily affected by complex environmental interference during transmission, resulting in signal distortion and unsatisfactory filtering effects, making it difficult to balance filtering accuracy and filtering overhead.
Multiple filter modules are connected in parallel. The controller detects the periodic interference characteristics of the sensor signal, dynamically selects the matching filter module for filtering, and adjusts the detection interval according to the changes in the interference signal to achieve active filtering.
It improves the filtering accuracy of sensor signals, solves the problems of sensor signal loss and unsatisfactory filtering effect, and at the same time balances filtering accuracy and resource consumption, providing a high-efficiency transmission guarantee.
Smart Images

Figure CN122052740A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of building control technology, and in particular to a filtering method, apparatus, computer-readable storage medium, and building system. Background Technology
[0002] As the number and types of sensors in building control systems increase, the frequency of sensor signals received by the controller also increases. Due to the excessive length of field transmission lines, signals are easily affected by environmental interference during transmission, which severely impacts signal transmission accuracy and stability, thereby affecting the overall sensitivity of the system.
[0003] Sensor signals are typically analog signals. During transmission, they are easily affected by periodic interference signals generated by sources such as air conditioner motors, frequency converters, and power supplies, leading to signal distortion. Taking building control systems as an example, the transmission of analog quantities such as 4-20 mA current loops and 0-10 V voltage signals is highly susceptible to periodic interference signals. For instance, interference sources such as the power frequency ripple (50 Hz) generated by air conditioner frequency converters and the carrier wave (4-20 kHz frequency range) from motors can cause abrupt changes in critical sensor signal parameters such as temperature and pressure, potentially triggering malfunctions in the equipment.
[0004] In related technologies, passive filtering schemes are commonly used. These schemes typically employ filters with fixed parameters to filter the sensor signal. However, filters with fixed parameters struggle to handle carrier drift from interference sources (such as frequency converters), leading to sensor signal loss and unsatisfactory filtering results.
[0005] Furthermore, the changes in interference signals in complex environments are also quite complex. For example, in complex environments such as factories and computer rooms, when the temperature changes, electromechanical equipment (such as air conditioners, motors, frequency converters, and switching power supplies) adjusts the duty cycle of the pulse width modulation (PWM) signal to adapt to the operating conditions. Although the PWM signal itself has a low frequency, its steep rising edge can excite high-frequency harmonics, thus interfering with analog signals. Frequent adjustments to the PWM signal's duty cycle also lead to significant fluctuations in the resulting interference signal. In such complex environments, balancing filtering accuracy with filtering overhead is a challenging problem. Summary of the Invention
[0006] To address at least one of the problems in related technologies, such as sensor signal loss caused by passive filtering, unsatisfactory filtering effect, and difficulty in balancing filtering accuracy and filtering overhead, this disclosure provides a filtering method, apparatus, computer-readable storage medium, and building system.
[0007] According to a first aspect of this disclosure, a filtering device is provided, comprising: a filtering circuit including a plurality of filtering modules connected in parallel; and a controller configured to: within a current detection window, determine, by detecting a signal to be processed from a sensor, characteristics of a periodic interference signal carried by the signal to be processed, wherein the characteristics of the periodic interference signal include at least one of a period and a frequency of the periodic interference signal; determine, from the plurality of filtering modules, a filtering module that matches the characteristics of the periodic interference signal; and control the matching filtering module to operate to filter the signal to be processed.
[0008] In some embodiments, the controller is further configured to: determine the periodic dispersion of the periodic interference signal within the current detection window; and reduce the time interval between two adjacent detection windows that detect the signal to be processed if the periodic dispersion is greater than a first dispersion threshold for a first specified number of consecutive detection windows.
[0009] In some embodiments, the controller is further configured to: increase the time interval between two adjacent detection windows for detecting the signal to be processed, wherein the second dispersion threshold is less than or equal to the first dispersion threshold, if the period dispersion is less than or equal to the second dispersion threshold for a second consecutive specified number of detection windows.
[0010] In some embodiments, the controller is further configured to: determine the difference between sampled values of two adjacent periods of the periodic interference signal when entering a detection sleep window and the duration of the detection sleep window is greater than a set duration; and reduce the time interval between two adjacent detection windows for detecting the signal to be processed when there is at least one instance where the difference is greater than a difference threshold.
[0011] In some embodiments, the plurality of filter modules are plurality of resistor-capacitor RC filter modules, and the controller is configured to: determine the capacitance and resistance values of an RC filter that match the characteristics of the periodic interference signal based on at least one of the period and frequency of the periodic interference signal; designate the RC filter module having the capacitance and resistance values among the plurality of RC filter modules as the matched filter module; and, if the plurality of RC filter modules does not include an RC filter module having the capacitance and resistance values, adjust the resistance of the RC filter module having the capacitance value among the plurality of RC filter modules based on the resistance value of the RC filter, and designate the adjusted RC filter module as the matched filter module.
[0012] In some embodiments, determining the capacitance and resistance values of the RC filter based on at least one of the period and frequency of the periodic interference signal includes: determining the capacitance value of the RC filter corresponding to the periodic interference signal based on the frequency of the periodic interference signal and a preset correspondence between the interference frequency and the capacitance value of the RC filter; calculating the cutoff frequency based on the period of the periodic interference signal; calculating the time constant of the RC filter based on the cutoff frequency; and calculating the resistance value of the RC filter based on the time constant of the RC filter and the capacitance value of the RC filter.
[0013] According to a second aspect of this disclosure, a filtering method is provided, comprising: within a current detection window, detecting a signal to be processed by a sensor to determine the characteristics of a periodic interference signal carried by the signal to be processed, wherein the characteristics of the periodic interference signal include at least one of the period and frequency of the periodic interference signal; determining a filtering module that matches the characteristics of the periodic interference signal from a plurality of filtering modules connected in parallel in a filtering circuit; and controlling the matching filtering module to operate to filter the signal to be processed.
[0014] According to a third aspect of this disclosure, a controller is provided, comprising: a memory; and a processor coupled to the memory, the processor being configured to perform the filtering method as described above based on instructions stored in the memory.
[0015] According to a fourth aspect of this disclosure, a computer-readable storage medium is provided having computer program instructions stored thereon that, when executed by a processor, implement the filtering method as described above.
[0016] According to a fifth aspect of this disclosure, a computer program product is provided having computer program instructions stored thereon that, when executed by a processor, implement the filtering method as described above.
[0017] According to a sixth aspect of this disclosure, a building system is provided, including the filtering device as described above.
[0018] Other features and advantages of this disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description
[0019] The accompanying drawings, which form part of this specification, illustrate embodiments of this disclosure and, together with the specification, serve to explain the principles of this disclosure.
[0020] Figure 1 This is a schematic diagram of the structure of a filtering device according to some embodiments of the present disclosure;
[0021] Figure 2 This is a schematic diagram of the structure of a filtering device according to other embodiments of the present disclosure;
[0022] Figure 3 This is a schematic diagram of the structure of a filtering device according to some embodiments of the present disclosure;
[0023] Figure 4 This is a schematic flowchart of a filtering method according to some embodiments of the present disclosure;
[0024] Figure 5 This is a flowchart illustrating a filtering method according to other embodiments of the present disclosure;
[0025] Figure 6 This is a schematic diagram of a detection window and a sleep window according to some embodiments of the present disclosure;
[0026] Figure 7 This is a schematic diagram of the structure of a controller according to some embodiments of the present disclosure;
[0027] Figure 8 This is a schematic diagram of the structure of a controller according to other embodiments of this disclosure;
[0028] Figure 9 This is a building system according to some embodiments of the present disclosure.
[0029] This disclosure can be more clearly understood with reference to the accompanying drawings and the following detailed description. Detailed Implementation
[0030] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of the present disclosure.
[0031] At the same time, it should be understood that, for ease of description, the dimensions of the various parts shown in the accompanying drawings are not drawn according to actual scale.
[0032] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit this disclosure or its application or use.
[0033] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.
[0034] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values.
[0035] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.
[0036] To make the objectives, technical solutions, and advantages of this disclosure clearer, the following detailed description is provided in conjunction with specific embodiments and the accompanying drawings.
[0037] To address the problems of sensor signal loss, unsatisfactory filtering effect, and difficulty in balancing filtering accuracy and filtering overhead caused by passive filtering in related technologies, this disclosure proposes a filtering method, device, computer-readable storage medium, and building system.
[0038] Figure 1 This is a schematic diagram of the structure of a filtering device according to some embodiments of this disclosure. For example... Figure 1 As shown, the filtering device includes a controller 1 and a filtering circuit 2. The filtering circuit 2 includes multiple filtering modules connected in parallel, such as a first filtering module and an Nth filtering module. Here, N is an integer greater than 1.
[0039] Controller 1 is configured to detect the signal to be processed by the sensor within the current detection window to determine the characteristics of the periodic interference signal carried by the signal to be processed. The characteristics of the periodic interference signal include the period or frequency of the periodic interference signal.
[0040] The signals to be processed include the target signal acquired by the sensor and interference signals. The signal to be processed can be a current signal or a voltage signal. The target signal acquired by the sensor can be an analog signal representing temperature acquired by a temperature sensor, an analog signal representing pressure acquired by a pressure sensor, or an analog signal representing humidity acquired by a humidity sensor, etc. Interference signals can be generated by devices such as air conditioner motors, inverters, or power supplies. Furthermore, in specific implementations, the types of sensors deployed may differ depending on the application scenario, and therefore the sensor signals that need to be detected and filtered may also differ.
[0041] In this embodiment, controller 1 performs interference detection and filtering control at a set detection interval. The detection interval refers to the time interval between two adjacent detection windows. Upon entering the current detection window, controller 1 can detect the sensor's signal to be processed in the following exemplary manner: sampling the signal to be processed; performing real-time time-domain and frequency-domain analysis based on the sampled data; determining whether the signal to be processed carries periodic interference signals by analyzing the characteristics of the obtained signals; and if the signal to be processed carries periodic interference signals, determining the characteristics of the periodic interference signals. Furthermore, in specific implementations, the controller can also determine the characteristics of the periodic interference signals based on other methods.
[0042] The controller 1 is also configured to determine, from among the multiple filter modules included in the filter circuit 2, a filter module whose characteristics match those of the periodic interference signal. In specific implementations, the controller 1 can determine the matching filter module in various ways. The following examples illustrate how the controller 1 specifically determines the matching filter module.
[0043] In the first example, the multiple filter modules are multiple RC filter modules. In this example, controller 1 can determine the filter module that matches the characteristics of the periodic interference signal as follows: based on at least one of the period and frequency of the periodic interference signal, determine the capacitance and resistance values of the RC filter that match the characteristics of the periodic interference signal. The RC filter module with the above-mentioned capacitance and resistance values is selected as the matched filter module. Determining the matched filter module in this way considers not only the compatibility between the characteristics of the periodic interference signal and the capacitance value of the RC filter module, but also the compatibility between the characteristics of the periodic interference signal and the resistance value of the RC filter module, which helps to more accurately determine the matched RC filter module and further improve the "active filtering" effect.
[0044] In the first example above, controller 1 can determine the capacitance value of the RC filter corresponding to the periodic interference signal in the following exemplary manner: Based on the frequency of the periodic interference signal and a preset correspondence between interference frequency and RC filter capacitance value, the capacitance value of the RC filter corresponding to the periodic interference signal is determined. For example, the preset correspondence between interference frequency and RC filter capacitance value includes: interference frequency 50 Hz to 500 Hz corresponds to a capacitance value of 1 μF. When controller 1 detects that the frequency of the periodic interference signal carried by the signal to be processed is 50 Hz, it determines the capacitance value of the RC filter that matches the characteristics of the interference signal by querying the correspondence, which is 1 μF.
[0045] In the first example above, controller 1 can determine the resistance value of the RC filter corresponding to the periodic interference signal in the following exemplary manner: calculate the cutoff frequency based on the frequency of the periodic interference signal; calculate the time constant of the RC filter based on the cutoff frequency; and calculate the resistance value of the RC filter based on the time constant and the capacitance value of the RC filter. For example, the resistance value of the RC filter can be calculated according to the following formula:
[0046]
[0047]
[0048] Among them, f cHere, f0 represents the frequency of the periodic interference signal, T represents the period of the periodic interference signal, R represents the resistance value of the RC filter, and C represents the capacitance value of the RC filter. This represents the time constant of the RC filter.
[0049] In this embodiment of the disclosure, by pre-setting the correspondence between the interference frequency and the capacitance value of the RC filter, it is convenient and efficient to determine the capacitance value of the RC filter that matches the characteristics of the detected periodic interference signal based on the correspondence. After determining the capacitance of the RC filter, the resistance value of the RC filter is calculated based on the above formula, which can more accurately determine the resistance value of the RC filter that matches the characteristics of the detected periodic interference signal, thereby further improving the accuracy of the determined matching RC filter module.
[0050] Furthermore, in the first example, the multiple RC filter modules can be resistance-adjustable filter modules. In this example, if the multiple RC filter modules do not include RC filter modules with the aforementioned capacitance and resistance values, the resistance of the RC filter modules with the aforementioned capacitance values can be adjusted according to the resistance value of the RC filter, and the adjusted RC filter module can be used as the matching filter module. In this embodiment of the disclosure, by setting the RC filter modules as resistance-adjustable filter modules and by performing the above-mentioned resistance value adjustment steps, it is possible to dynamically configure RC filter modules that match periodic interference signals in complex interference environments, further improving the effect of active filtering.
[0051] In the second example, the multiple filter modules are multiple inductor-capacitor (LC) filter modules. In this example, the controller 1 can determine the filter module that matches the characteristics of the periodic interference signal as follows: based on at least one of the period and frequency of the periodic interference signal, determine the inductance and capacitance values of the LC filter that match the characteristics of the periodic interference signal. The LC filter module possessing the aforementioned inductance and capacitance values is selected as the matched filter module.
[0052] Controller 1 is also configured to control the operation of a matched filter module to filter the signal to be processed. Specifically, controller 1 can control the operation of the matched filter module by closing a switch connected to the matched filter module, so that the signal to be processed is filtered by the matched filter module. For example, assuming multiple filter modules include a first filter module and a second filter module, and the filter module that matches the periodic interference signal detected in the current detection window is determined to be the first filter module, then under the control of the controller, the switch connected to the first filter module can be closed, and the switch connected to the second filter module can be opened, so that the first filter module operates and the second filter module does not operate.
[0053] Furthermore, the controller 1 can also control the operation of the matched filter module by controlling the switching devices connected to the matched filter module to switch on and off according to the period or frequency of the periodic interference signal. This enables real-time and precise filtering of the periodic interference signal, improving the filtering quality. Additionally, the controller 1 can further control the operation of the matched filter module by activating the switching devices connected to the matched filter module (e.g., field-effect transistors) before controlling the switching devices to switch on and off according to the period or frequency of the periodic interference signal.
[0054] In some embodiments, the filtering device includes a signal preprocessing circuit in addition to the controller and the filtering circuit. The signal preprocessing circuit can be a second-order active low-pass filter circuit. This circuit can be located between the sensor's output and the controller 1 to filter the signal output by the sensor. In these embodiments, the signal filtered by this circuit can be used as the input signal to the controller for processing. By using a second-order active low-pass filter circuit, the input impedance can be increased, the signal source (such as the sensor) can be isolated from the subsequent filtering circuit, high-frequency interference signals can be filtered out, and the signal can be smoother.
[0055] In this embodiment of the disclosure, by designing multiple filter modules connected in parallel, and dynamically determining the working filter module from among the multiple filter modules based on the characteristics of the detected periodic interference signal, more accurate "active" filtering is achieved, which can better address the problem of sensor signal loss and unsatisfactory filtering effect caused by carrier drift of interference source (such as frequency converter).
[0056] Figure 2 This is a schematic diagram of the structure of a filtering device according to other embodiments of this disclosure. For example... Figure 2 As shown, the filtering device includes a controller 1 and a filtering circuit. The filtering circuit includes a first RC filter module 21, a second RC filter module 22, a third RC filter module 23, and a fourth RC filter module 24.
[0057] In this embodiment, the first to fourth RC filter modules are all first-order RC filter modules. Furthermore, the first RC filter module 21 is connected to the controller 1 via a field-effect transistor K1, the second RC filter module 22 is connected to the controller 1 via a field-effect transistor K2, the third RC filter module 23 is connected to the controller 1 via a field-effect transistor K3, and the fourth RC filter module 24 is connected to the controller 1 via a field-effect transistor K4. The field-effect transistors K1 to K4 can function as switching devices to control the on / off state of the relevant filter branches.
[0058] Controller 1 is configured to: within the current detection window, detect the signal to be processed by the sensor to determine the characteristics of the periodic interference signal carried by the signal to be processed; determine the filter module that matches the characteristics of the periodic interference signal from the first to the fourth RC filter modules; and control the matched filter module to work to filter the signal to be processed.
[0059] For example, when controller 1 determines that the filter module that best matches the characteristics of the periodic interference signal is the first RC filter module 21, it controls the MOSFET K1 to close to activate the first RC filter module 21, and controls MOSFETs K2 to K4 to open to deactivate the other RC filter modules. This not only alleviates the loss caused by passive filtering to the sensor signal itself, but also improves the filtering effect.
[0060] For example, when controller 1 determines that the filter module matching the characteristics of the periodic interference signal is the first RC filter module 21, it first activates the field-effect transistor K1, and then controls the on / off state of the field-effect transistor K1 according to the period of the periodic interference signal. In specific implementation, if the period of the periodic interference signal is sampled multiple times in the current detection window, the period of the periodic interference signal can be calculated according to the following formula and used as the on / off control period of the field-effect transistor: ,in, This refers to the on / off control cycle of the field-effect transistor. This is the average value of multiple samples taken from the periodic interference signal within the current detection window. This represents the maximum difference between two adjacent periodic sample values of the periodic interference signal within the current detection window. Furthermore, in practical implementations, if the period of the periodic interference signal is sampled multiple times within the current detection window, the period of the periodic interference signal can also be calculated using other methods.
[0061] In some embodiments, the controller 1 is further configured to: determine the periodic dispersion of the periodic interference signal within the current detection window; and reduce the time interval (i.e., the detection interval) between two adjacent detection windows that detect the signal to be processed, provided that the periodic dispersion is greater than a first dispersion threshold for a consecutive first specified number of detection windows. The values of the first specified number and the first dispersion threshold can be flexibly set. For example, the first specified number can be 10, and the first dispersion threshold can be set to 10%.
[0062] Periodic dispersion reflects the degree of dispersion of the periodic sample values of the periodic interference signal detected within each detection window. For example, periodic dispersion can be calculated using the following formula:
[0063]
[0064] in, Indicates the periodicity of dispersion. This represents the periodic sample value of the periodic interference signal detected within each detection window. This represents the average value of the periodic sampled values of the periodic interference signal within each detection window, where n represents the number of periodic samples.
[0065] In this embodiment of the disclosure, when a first specified number of detection windows are detected to have a periodic dispersion greater than a first dispersion threshold, it indicates that the interference signal is changing drastically. For example, during the day, in crowded conditions, or when electromechanical equipment is frequently adjusting its temperature, the interference signal fluctuates frequently due to the active control of the equipment. In this case, the detection interval can be reduced to allow the system to enter a "dense tracking mode," thereby improving the real-time performance and accuracy of filtering through high-frequency detection.
[0066] In some examples, the detection interval can be reduced as follows: obtain the previously set detection interval, and subtract a first adjustment step size value from the previously set detection interval to obtain the current detection interval, where the first adjustment step size value is a positive number. The first adjustment step size value can be a fixed value or a dynamically changing value. For example, the first adjustment step size value can be set based on the average value of the periodic dispersion of a first specified number of consecutive detection windows, where the larger the average value of the periodic dispersion, the larger the first adjustment step size value.
[0067] In other examples, the detection interval can also be reduced as follows: obtain the previously set detection interval, and multiply the previously set detection interval by a first multiplier factor to obtain the current detection interval. The first multiplier factor is a number greater than 0 and less than 1. The first multiplier factor can be a fixed value or a dynamically changing value. For example, the first multiplier factor can be set based on the average value of the periodic dispersion of a first specified number of consecutive detection windows, where the larger the average value of the periodic dispersion, the smaller the first multiplier factor.
[0068] In this embodiment of the disclosure, on the one hand, by reducing the detection interval when the periodic dispersion is greater than the first dispersion threshold for a first specified number of consecutive detection windows, the real-time performance and accuracy of filtering can be improved by high-frequency detection under conditions where the interference signal changes drastically; on the other hand, by dynamically setting the first adjustment step size or the first multiplier factor, the real-time performance and accuracy of filtering control can be further improved, and the filtering effect can be further improved.
[0069] In the above embodiments, the controller 1 can also be configured to: increase the time interval between two adjacent detection windows that detect the signal to be processed, provided that the periodic dispersion is less than or equal to a second dispersion threshold for a consecutive second specified number of detection windows. The second dispersion threshold is less than or equal to a first dispersion threshold. The values of the second specified number and the second dispersion threshold can be flexibly set. For example, the second specified number can be 2, and the second dispersion threshold can be set to 3%.
[0070] In this embodiment of the disclosure, when a second specified number of consecutive detection windows are detected where the periodic dispersion is less than or equal to a second dispersion threshold, it indicates that the change in the interference signal is relatively gradual. For example, in scenarios such as nighttime, weekends, or long-term stable environmental conditions, the interference signal changes less due to the low frequency of device adjustments. In this case, the detection interval can be increased to allow the system to enter a "sparse tracking mode," significantly reducing the resources consumed by filtering and control by lengthening the detection interval through lower-frequency detection.
[0071] In some examples, the detection interval can be increased as follows: obtain the previously set detection interval, and add a second adjustment step value to the previously set detection interval to obtain the current detection interval, where the second adjustment step value is a positive number. The second adjustment step value can be a fixed value or a dynamically changing value. For example, the second adjustment step value can be set based on the average value of the periodic dispersion of a second specified number of consecutive detection windows, where the smaller the average value of the periodic dispersion, the larger the second adjustment step value.
[0072] In other examples, the detection interval can also be increased as follows: obtain the previously set detection interval, and multiply the previously set detection interval by a second multiplier factor to obtain the current detection interval. The second multiplier factor is a number greater than 1. The second multiplier factor can be a fixed value or a dynamically changing value. For example, the second multiplier factor can be set based on the average of the periodic dispersion of a second specified number of consecutive detection windows, where the smaller the average periodic dispersion, the larger the second multiplier factor.
[0073] In this embodiment, on the one hand, by increasing the detection interval when the periodic dispersion is less than or equal to the second dispersion threshold for a second specified number of consecutive detection windows, the computational resources consumed by unnecessary filtering and control can be reduced by low-frequency detection under conditions where the interference signal changes relatively smoothly. On the other hand, by dynamically setting the second adjustment step size or the second multiplier factor, the waste of computational resources can be further reduced while taking into account the accuracy of filtering.
[0074] In other embodiments, the controller is further configured to: determine the difference ΔT between the sampled values of two adjacent periods of the periodic interference signal when entering a detection sleep window and the duration of the detection sleep window is greater than a set duration; and reduce the time interval between two adjacent detection windows for detecting the signal to be processed when there is at least one difference greater than a difference threshold. Here, the detection sleep window refers to the time period between two adjacent detection windows. The set duration and the difference threshold can be flexibly set. For example, the set duration can be set to 1 hour, and the difference threshold can be set to 10% of the period of the periodic interference signal detected in the most recent detection window.
[0075] In this embodiment of the disclosure, by executing the above processing logic during the detection sleep window, the system can still respond to sudden extreme interferences during the detection sleep window. If at least one instance of ΔT being greater than the difference threshold is detected during this period, it indicates that an unexpected sudden change in the environment has occurred (such as a high-power motor being temporarily turned on at night), thereby triggering a sudden change in interference. In this case, the system can be instantly switched from "sparse tracking mode" back to "dense tracking mode" by reducing the detection interval.
[0076] In this embodiment of the disclosure, the above-mentioned filtering device not only improves the filtering accuracy of sensor signals through active filtering control, solving the problem of sensor signal loss and unsatisfactory filtering effect caused by carrier drift of interference sources (such as frequency converters), but also balances filtering accuracy and filtering overhead by analyzing the periodic dispersion and adjusting the detection interval. This resolves the contradiction between high-performance filtering and low-power operation of equipment in complex electromagnetic environments, providing a high-efficiency guarantee for the long-term stable transmission of sensor signals.
[0077] Figure 3 This is a schematic diagram of the structure of a filtering device according to some embodiments of the present disclosure. Figure 3 and Figure 2 The main difference lies in the different filtering circuits. In some embodiments of this disclosure, the filtering circuit 2 includes a fifth RC filtering module 25, a sixth RC filtering module 26, a seventh RC filtering module 27, and an eighth RC filtering module 28.
[0078] The fifth to eighth RC filter modules are all second-order RC filter modules. Specifically, the fifth RC filter module 25 is a second-order high-pass filter module, the sixth RC filter module 26 is a second-order low-pass filter module, the seventh RC filter module 27 is a second-order band-pass filter module, and the eighth RC filter module 28 is a second-order band-stop filter module. In this embodiment, by setting multiple different types of filter modules, the need for filtering various possible interference signals in complex environments can be better met.
[0079] In addition to the parallel fifth to eighth RC filter modules, the filter circuit may also include series filter modules. Furthermore, in specific implementations, the number and type of filter modules connected in parallel in the filter circuit can be flexibly set.
[0080] In the embodiments disclosed herein, the above-mentioned device can effectively solve the problems of sensor signal loss caused by passive filtering, unsatisfactory filtering effect, and difficulty in balancing filtering accuracy and filtering overhead in related technologies.
[0081] Figure 4 This is a schematic flowchart of a filtering method according to some embodiments of the present disclosure. Figure 4 As shown, the filtering method can be executed by the controller, including steps S41 to S43.
[0082] In step S41, within the current detection window, the signal to be processed by the sensor is detected to determine the characteristics of the periodic interference signal carried by the signal to be processed. The characteristics of the periodic interference signal include at least one of the period and frequency of the periodic interference signal.
[0083] In step S42, a filter module that matches the characteristics of the periodic interference signal is determined from multiple filter modules.
[0084] In step S43, the matched filter module is controlled to operate to filter the signal to be processed. For details on how steps S41 to S43 are executed, please refer to the relevant descriptions in the previously shown embodiment.
[0085] In the embodiments of this disclosure, the above method can be used to perform targeted filtering based on the identification results of the periodic interference signals carried by the sensor signals, thereby solving the problems of sensor signal loss and unsatisfactory filtering effect caused by passive filtering.
[0086] Figure 5 This is a schematic flowchart of a filtering method according to other embodiments of this disclosure. For example... Figure 5 As shown, the filtering method can be executed by the controller, including steps S51 to S59.
[0087] In step S51, the signal to be processed by the sensor is detected to determine the characteristics of the periodic interference signal carried by the signal to be processed.
[0088] In this embodiment of the disclosure, the signal to be processed by the sensor is detected based on a set detection interval. The detection interval refers to the time interval between two adjacent detection windows, or the duration of the dormant window located between two adjacent detection windows. For example, the distribution of the detection windows and dormant windows on the time axis can be seen in [reference needed]. Figure 6 .
[0089] In some embodiments, the filtering method further includes: before step S51, determining whether the i-th detection window has been entered, where i is an integer greater than or equal to 1. If the i-th detection window has been entered, step S51 is executed.
[0090] In step S52, a filter module that matches the characteristics of the periodic interference signal is determined from multiple filter modules.
[0091] In step S53, the matched filter module is controlled to operate to filter the signal to be processed. For details on how steps S52 to S53 are executed, please refer to the relevant descriptions in the previously described embodiments.
[0092] In step S54, the periodic dispersion of the periodic interference signal within the i-th detection window is determined.
[0093] In step S55, it is determined whether the dispersion of M consecutive detection windows is greater than the first dispersion threshold. Here, M is an integer greater than or equal to 1.
[0094] If the result of step S55 is yes, proceed to step S56; if the result of step S55 is no, proceed to step S57.
[0095] In step S56, the time interval between two adjacent detection windows is reduced. For details on how steps S54 to S56 are executed, please refer to the relevant descriptions in the previously described embodiments.
[0096] In step S57, it is determined whether the dispersion of K consecutive detection windows is less than or equal to the second dispersion threshold. Here, K is an integer greater than or equal to 1.
[0097] If the result of step S57 is yes, proceed to step S58; if the result of step S57 is no, proceed to step S59.
[0098] In step S58, the time interval between two adjacent detection windows is increased. For details on how steps S57 to S58 are executed, please refer to the relevant descriptions in the previously described embodiments.
[0099] In step S59, the time interval between two adjacent detection windows remains unchanged.
[0100] After steps S56, S58, or S59, wait to enter the next (i+1) detection window so that the filtering method can continue to be executed in the next detection window.
[0101] In this embodiment of the disclosure, the above filtering method not only improves the filtering accuracy of sensor signals through active filtering control and solves the problem of sensor signal loss and unsatisfactory filtering effect caused by carrier drift of interference sources (such as frequency converters), but also balances filtering accuracy and filtering overhead by analyzing the periodic dispersion and adjusting the detection interval. This resolves the contradiction between high-performance filtering and low-power operation of equipment in complex electromagnetic environments, and provides a high-efficiency guarantee for the long-term stable transmission of sensor signals.
[0102] Figure 7 This is a schematic diagram of the controller according to some embodiments of this disclosure. For example... Figure 7 As shown, the controller includes a first determining module 71, a second determining module 72, and a filtering control module 73.
[0103] The first determining module 71 is configured to determine the characteristics of a periodic interference signal carried by the sensor within the current detection window by detecting the signal to be processed. The characteristics of the periodic interference signal include at least one of the period and frequency of the periodic interference signal.
[0104] The second determining module 72 is configured to determine, from among the multiple filter modules connected in parallel in the filter circuit, a filter module whose characteristics match those of the periodic interference signal.
[0105] The filter control module 73 is configured to control the operation of the matched filter module to filter the signal to be processed.
[0106] In some embodiments, the controller further includes a parameter adjustment module. The parameter adjustment module is configured to: determine the periodic dispersion of the periodic interference signal within the current detection window; and reduce the time interval between two adjacent detection windows that detect the signal to be processed, provided that the periodic dispersion is greater than a first dispersion threshold for a first specified number of consecutive detection windows.
[0107] In some embodiments, the parameter adjustment module is further configured to: increase the time interval between two adjacent detection windows that detect the signal to be processed, provided that the periodic dispersion is less than or equal to a second dispersion threshold for a second consecutive specified number of detection windows. The second dispersion threshold is less than or equal to a first dispersion threshold.
[0108] In other embodiments, the controller may also include modules required to perform other steps in the filtering method as described above.
[0109] In this embodiment of the disclosure, the controller described above can perform targeted filtering based on the identification results of the periodic interference signals carried by the sensor signals, thereby solving the problems of sensor signal loss and unsatisfactory filtering effect caused by passive filtering.
[0110] Figure 8 This is a schematic diagram of the controller according to other embodiments of this disclosure. For example... Figure 8 As shown, the controller includes a memory 81 and a processor 82 coupled to the memory 81. The memory 81 is used to store instructions corresponding to embodiments of the filtering method. The processor 82 is configured to execute the filtering method in any of the embodiments of this disclosure based on the instructions stored in the memory 81.
[0111] In this embodiment of the disclosure, the above controller can be used to select the filtering module in a targeted manner according to the characteristics of the periodic interference signal of the sensor signal, thereby solving the problems of sensor signal loss and unsatisfactory filtering effect caused by passive filtering.
[0112] Figure 9 This refers to a building system based on some embodiments of this disclosure. For example... Figure 9 As shown, building system 9 includes the filtering device as described above.
[0113] In the embodiments of this disclosure, the above building system can improve the filtering effect and provide a high-efficiency guarantee for the long-term stable transmission of sensor signals in building control scenarios.
[0114] Various aspects of this disclosure are described herein with reference to flowchart illustrations and / or block diagrams of filtering methods, apparatus, and computer program products according to embodiments of this disclosure. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations thereof, can be implemented by computer-readable program instructions.
[0115] These computer-readable program instructions are provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable device to produce a machine, such that execution of the instructions by the processor produces means for implementing the functions specified in one or more boxes of the flowchart and / or block diagram.
[0116] These computer-readable program instructions may also be stored in a computer-readable storage medium. These instructions cause a computer to work in a particular manner to produce an article of manufacture, including instructions that implement the functions specified in one or more boxes in a flowchart and / or block diagram.
[0117] This disclosure may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects.
[0118] The filtering methods, apparatus, computer-readable storage media, and building systems according to this disclosure have been described in detail. To avoid obscuring the concept of this disclosure, some details known in the art have not been described. Those skilled in the art will fully understand how to implement the technical solutions disclosed herein based on the above description.
Claims
1. A filtering device, comprising: The filtering circuit includes multiple filter modules connected in parallel; The controller is configured as follows: Within the current detection window, the characteristics of the periodic interference signal carried by the sensor are determined by detecting the signal to be processed. The characteristics of the periodic interference signal include the period or frequency of the periodic interference signal. From the plurality of filtering modules, determine the filtering module that matches the characteristics of the periodic interference signal; The matched filtering module is controlled to operate in order to filter the signal to be processed.
2. The filtering device according to claim 1, wherein, The controller is also configured to: Determine the periodic dispersion of the periodic interference signal within the current detection window; If the periodic dispersion is greater than the first dispersion threshold for a first specified number of consecutive detection windows, the time interval between two adjacent detection windows for detecting the signal to be processed is reduced.
3. The filtering device according to claim 2, wherein, The controller is also configured to: If, for a second specified number of consecutive detection windows, the periodic dispersion is less than or equal to the second dispersion threshold, the time interval between two adjacent detection windows for detecting the signal to be processed is increased, wherein the second dispersion threshold is less than or equal to the first dispersion threshold.
4. The filtering device according to claim 1, wherein, The controller is also configured to: When entering a detection sleep window and the duration of the detection sleep window is greater than a set duration, the difference between the sampled values of two adjacent periods of the periodic interference signal is determined. If at least once the difference is greater than the difference threshold, the time interval between two adjacent detection windows for detecting the signal to be processed is reduced.
5. The filtering device according to claim 1, wherein, The plurality of filter modules are plurality of resistor-capacitor RC filter modules, and the controller is configured to: Based on the period or frequency of the periodic interference signal, determine the capacitance and resistance values of the RC filter that match the characteristics of the periodic interference signal. The RC filter module with the capacitance and resistance values among the plurality of RC filter modules is selected as the matching filter module. If the plurality of RC filter modules does not include an RC filter module with the stated capacitance and resistance values, the resistance of the RC filter module with the stated capacitance value is adjusted according to the resistance value of the RC filter, and the adjusted RC filter module is used as the matching filter module.
6. The filtering device according to claim 5, wherein, Determining the capacitance and resistance values of the RC filter based on the period or frequency of the periodic interference signal includes: Based on the frequency of the periodic interference signal and the preset correspondence between the interference frequency and the capacitance value of the RC filter, the capacitance value of the RC filter corresponding to the periodic interference signal is determined. Calculate the cutoff frequency based on the frequency of the periodic interference signal; Calculate the time constant of the RC filter based on the cutoff frequency; The resistance value of the RC filter is calculated based on the time constant and the capacitance value of the RC filter.
7. A filtering method, comprising: Within the current detection window, the characteristics of the periodic interference signal carried by the sensor are determined by detecting the signal to be processed. The characteristics of the periodic interference signal include the period or frequency of the periodic interference signal. From the multiple parallel filter modules included in the filter circuit, determine the filter module that matches the characteristics of the periodic interference signal; The matched filtering module is controlled to operate in order to filter the signal to be processed.
8. A controller, comprising: Memory; as well as A processor coupled to the memory, the processor being configured to execute the filtering method of claim 7 based on instructions stored in the memory.
9. A computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the filtering method as described in claim 7.
10. A computer program product having stored computer program instructions that, when executed by a processor, implement the filtering method as described in claim 7.
11. A building system comprising a filtering device as described in any one of claims 1 to 6.