CN-122019974-A - Signal processing method, controller and building control system
Abstract
The disclosure provides a signal processing method, a controller and a building control system, and relates to the technical field of building control. The method comprises the steps of receiving a signal to be processed of a sensor, wherein the signal to be processed comprises a target signal and an interference signal acquired by the sensor, analyzing the signal to be processed to determine the characteristics of the interference signal in the signal to be processed, wherein the characteristics of the interference signal in the signal to be processed comprise at least one of peak fluctuation characteristics and waveform similarity characteristics, judging whether the signal to be processed comprises a periodic interference signal according to the characteristics of the interference signal in the signal to be processed, and regulating and controlling a filter circuit according to the characteristics of the periodic interference signal under the condition that the signal to be processed comprises the periodic interference signal. By the method, the interference signals of the sensor signals can be accurately identified in real time and are filtered in a targeted manner, and the problems of sensor signal loss and non-ideal filtering effect caused by passive filtering can be solved.
Inventors
- LI HONGBO
- SHEN WEIGANG
- LI HAOXIANG
Assignees
- 珠海格力电器股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260130
Claims (14)
- 1. A signal processing method, comprising: receiving a signal to be processed of a sensor, wherein the signal to be processed comprises a target signal and an interference signal acquired by the sensor; Analyzing the signal to be processed to determine an interference signal characteristic in the signal to be processed, wherein the interference signal characteristic in the signal to be processed comprises at least one of a peak fluctuation characteristic of the interference signal and a waveform similarity characteristic of the interference signal; Judging whether the signal to be processed contains a periodic interference signal or not according to the interference signal characteristics in the signal to be processed; And under the condition that the signal to be processed comprises a periodic interference signal, regulating and controlling the filter circuit according to the characteristic of the periodic interference signal.
- 2. The signal processing method of claim 1, wherein the analyzing the signal to be processed to determine the interfering signal characteristics in the signal to be processed comprises: sampling the signal to be processed to obtain sampling data; Intercepting a data segment from the sampling data through a sliding window to obtain the data segment in each window in a plurality of windows; Determining peak signal points of interference signals in the data segments in each window; Calculating fluctuation values between peak signal points of two adjacent interference signals to obtain a plurality of fluctuation values; and determining peak fluctuation characteristics of the interference signals according to the fluctuation values.
- 3. The signal processing method of claim 2, wherein the analyzing the signal to be processed to determine the interfering signal characteristics in the signal to be processed further comprises: extracting waveform segment data of interference signals of a plurality of periods from the sampling data; Calculating correlation coefficients between waveform segment data of interference signals of two adjacent periods in the plurality of periods to obtain a plurality of correlation coefficients; and taking the correlation coefficients as waveform similarity characteristics of the interference signals.
- 4. A signal processing method according to claim 3, wherein the peak fluctuation feature includes an average value of the plurality of fluctuation values or a number ratio of fluctuation values smaller than a fluctuation threshold value among the plurality of fluctuation values, and the judging whether the signal to be processed contains a periodic disturbance signal includes: And determining that the signal to be processed contains a periodic interference signal when the average value of the fluctuation values is smaller than the fluctuation threshold value or the number ratio of the fluctuation values smaller than the fluctuation threshold value among the fluctuation values is larger than a first threshold value and the correlation coefficients are all larger than the correlation coefficient threshold value, otherwise, determining that the signal to be processed does not contain the periodic interference signal.
- 5. The signal processing method according to any one of claims 1 to 4, further comprising: Before the filter circuit is regulated according to the characteristics of the periodic interference signal, the frequency spectrum characteristics of the periodic interference signal are determined, and the periodic interference signal is determined to be an effective interference signal according to the frequency spectrum characteristics of the periodic interference signal.
- 6. The signal processing method of claim 5, wherein the determining the spectral characteristics of the periodic interfering signal comprises: performing Fourier transform on the signal to be processed to obtain a signal spectrum; Determining an energy ratio of a fundamental frequency component of the periodic interference signal and an energy ratio of a harmonic component of the periodic interference signal to noise floor based on the signal spectrum; and taking the energy ratio of the fundamental frequency component of the periodic interference signal and the energy ratio of the harmonic component of the periodic interference signal to noise floor as the frequency spectrum characteristics of the periodic interference signal.
- 7. The signal processing method as claimed in claim 6, wherein, And determining the periodic interference signal as an effective interference signal when the energy ratio of the fundamental frequency component of the periodic interference signal is larger than a second threshold value and the energy ratio of the harmonic component of the periodic interference signal to the noise floor is larger than a third threshold value.
- 8. The signal processing method of claim 1, wherein the filter circuit comprises a plurality of filter modules connected in parallel, and the adjusting the filter circuit according to the characteristic of the periodic interference signal comprises: determining a filter module matched with the characteristic of the periodic interference signal from the plurality of filter modules, wherein the characteristic of the periodic interference signal comprises the period or the frequency of the periodic interference signal; and controlling the matched filtering module to work so as to filter the signal to be processed.
- 9. The signal processing method of claim 8, wherein the plurality of filter modules are a plurality of RC filter modules, and the determining a filter module that matches the characteristic of the periodic interference signal from the plurality of filter modules comprises: Determining a capacitance value and a time constant of an RC filter according to the period or the frequency of the periodic interference signal; And adjusting the resistance value of the RC filter module with the capacitance value in the RC filter modules according to the time constant, and taking the adjusted RC filter module as the matched filter module.
- 10. The signal processing method of claim 1, further comprising: And filtering high-frequency noise in the signal to be processed based on a Butterworth filter before the signal to be processed is analyzed.
- 11. A controller, comprising: Memory, and A processor coupled to the memory, the processor configured to perform the signal processing method of any of claims 1 to 10 based on instructions stored in the memory.
- 12. A building control system, comprising: the controller of claim 11; The filtering circuit comprises a plurality of filtering modules connected in parallel and is configured to enable the filtering modules matched with the characteristics of the periodic interference signals contained in the signals to be processed to work under the control of the controller so as to filter the signals to be processed.
- 13. A computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the signal processing method of any of claims 1 to 10.
- 14. A computer program product having stored thereon computer program instructions which, when executed by a processor, implement a signal processing method as claimed in any of claims 1 to 10.
Description
Signal processing method, controller and building control system Technical Field The disclosure relates to the technical field of building control, and in particular relates to a signal processing method, a controller and a building control system. Background With the increase of the number and variety of sensors in building control systems, the frequency of sensor signals received by a controller is also increasing. Because the field transmission line is too long, the signal is easily disturbed by too much environment in the transmission process, which seriously affects the transmission precision of the signal and the stability of the signal, thereby affecting the sensitivity of the whole system. The sensor signal is typically an analog signal. In the sensor signal transmission process, the sensor signal is often easily affected by periodic interference signals generated by an air conditioner motor, a frequency converter, a power supply and the like, and further the sensor signal is distorted. Taking building control systems as examples, the transmission of analog quantities such as 4-20 mA current loops, 0-10V voltage signals is very susceptible to periodic interference signals. For example, the power frequency ripple wave (frequency is 50 Hz) generated by the air conditioner frequency converter and the interference sources such as the carrier wave (frequency range is 4-20 kHz) of the motor can cause the jump of the signal parameters of key sensors such as temperature, pressure and the like, thereby causing the misoperation of equipment. In the related art, a passive filtering scheme is generally employed. In passive filtering schemes, a fixed parameter filter is typically used to filter the sensor signal. However, a fixed-parameter filter is difficult to cope with the carrier drift problem of an interference source (such as a frequency conversion device), so that signal loss of a sensor is caused, and the filtering effect is not ideal. Disclosure of Invention In order to solve the problems of sensor signal loss, non-ideal filtering effect and the like caused by passive filtering in the related art, the disclosure provides a signal processing method, a controller and a building control system. According to a first aspect of the disclosure, a signal processing method is provided, which comprises the steps of receiving a signal to be processed of a sensor, wherein the signal to be processed comprises a target signal and an interference signal acquired by the sensor, analyzing the signal to be processed to determine characteristics of the interference signal in the signal to be processed, wherein the characteristics of the interference signal in the signal to be processed comprise at least one of peak fluctuation characteristics of the interference signal and waveform similarity characteristics of the interference signal, judging whether the signal to be processed comprises a periodic interference signal according to the characteristics of the interference signal in the signal to be processed, and regulating and controlling a filter circuit according to the characteristics of the periodic interference signal when the signal to be processed comprises the periodic interference signal. In some embodiments, the analyzing the signal to be processed to determine the interference signal characteristics in the signal to be processed comprises sampling the signal to be processed to obtain sampling data, intercepting a data segment from the sampling data through a sliding window to obtain a data segment in each window, determining peak signal points of the interference signal in the data segment in each window, calculating fluctuation values between the peak signal points of two adjacent interference signals to obtain a plurality of fluctuation values, and determining the peak fluctuation characteristics of the interference signal according to the plurality of fluctuation values. In some embodiments, the analyzing the signal to be processed to determine the characteristics of the interference signal in the signal to be processed further includes extracting waveform segment data of the interference signal in a plurality of periods from the sampling data, calculating correlation coefficients between the waveform segment data of the interference signal in two adjacent periods in the plurality of periods to obtain a plurality of correlation coefficients, and taking the plurality of correlation coefficients as the characteristics of waveform similarity of the interference signal. In some embodiments, the peak fluctuation feature comprises an average of the plurality of fluctuation values or a number ratio of fluctuation values less than a fluctuation threshold among the plurality of fluctuation values, and the determining whether the signal to be processed contains a periodic disturbance signal comprises determining that the signal to be processed contains no periodic disturbance signal if the average of the plurality of f