Pulse signal processing method, processing equipment and computer storage medium thereof
By setting parameters and comparing frequency in the pulse signal processing device, the problem of abnormal pulse signal in the digital signal acquisition device is solved, and the stable output of the pulse signal is achieved.
Patent Information
- Application Number
- CN202411791887.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-04-18
AI Technical Summary
Pulse signal abnormalities in digital signal acquisition equipment, such as jumps and jitters, caused by poor cable contact, power supply problems, signal line interference and external interference, such as jumps and jitters, resulting in the inability to obtain normal and effective pulse signals, which in turn affects the effective evaluation of the operation of the equipment under test.
By obtaining the setting parameters of the pulse signal processing device, including preset measurement period, preset pulse width suppression time, default frequency deviation range and preset comparison frequency threshold, we judge whether the actual pulse width time exceeds the preset pulse width suppression time, calculate and compare the frequency of the pulse signal, determine the frequency allowable deviation range, and output the selected frequency according to the frequency difference.
The pulse signal frequency jump and jitter caused by various interference reasons are effectively avoided, and the pulse signal is stable and effective output is achieved.
Smart Images

Figure HDA0005175509490000011 
Figure HDA0005175509490000021 
Figure HDA0005175509490000031
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of signal processing, and in particular to a pulse signal processing method, a processing device and a computer storage medium thereof. Background Art
[0002] In current digital signal acquisition equipment, factors such as poor cable contact, power supply problems, signal line interference, external interference, etc. may cause pulse signal abnormalities, such as jumps and jitters, which are unavoidable technical problems. Due to the distortion of pulse signals, it is difficult to obtain normal and effective pulse signals, and it is impossible to make an effective assessment of the operating conditions of the device under test by analyzing the pulse signals, resulting in unreliable test results. Summary of the invention
[0003] The purpose of the present invention is to provide a pulse signal processing method, processing equipment and computer storage medium thereof in view of the defects of the above-mentioned background technology.
[0004] To achieve the above object, according to a first aspect of an embodiment of the present invention, a pulse signal processing method includes:
[0005] In response to a processing pulse signal trigger event, obtaining setting parameters of a pulse signal processing device, the setting parameters at least including a preset measurement period, a preset pulse width suppression time, a default frequency deviation range, and a preset comparison frequency threshold;
[0006] Determine whether the actual pulse width time calculated by capturing the time interval when two identical edges arrive according to the preset measurement period exceeds the preset pulse width suppression time;
[0007] In response to an event that the actual pulse width time exceeds a preset pulse width suppression time, the frequencies of the pulse signals in the two identical edges are respectively calculated within a preset measurement period;
[0008] The frequency of the pulse signal in the same edge determined by the event that the actual pulse width time exceeds the preset pulse width suppression time in the current measurement cycle is taken as the current frequency, and the frequency of the pulse signal in a different edge determined by the event that the actual pulse width time exceeds the preset pulse width suppression time in the previous measurement cycle is taken as the comparison frequency, and the size relationship between the default frequency deviation range and the preset comparison frequency threshold is compared to determine the frequency allowable deviation range;
[0009] According to whether the frequency difference between the current frequency of the pulse signal and the comparison frequency is within the determined frequency allowable deviation range, the selected frequency is output, and the selected frequency is the current frequency or the comparison frequency.
[0010] In some embodiments of the present invention, based on the above solution, the default frequency deviation range is configured to be determined according to the range of the pulse signal processing device.
[0011] In some embodiments of the present invention, based on the above solution, the preset comparison frequency threshold is configured as a specific preset value or as a preset value determined by a specific ratio of the current frequency value.
[0012] In some embodiments of the present invention, based on the above scheme, the processing method further includes: in response to the event that the frequency difference satisfies the allowable frequency deviation range, and accumulating the number of events of the event that the frequency difference satisfies the allowable frequency deviation range, the current frequency is selected as the output selected frequency.
[0013] In some embodiments of the present invention, based on the above scheme, the processing method further includes: responding to the event that the frequency difference does not satisfy the allowable frequency deviation range, and accumulating the number of events for the event that the frequency difference satisfies the allowable frequency deviation range, if the accumulated number of events exceeds the preset number of events, selecting the current frequency as the output selected frequency.
[0014] In some embodiments of the present invention, based on the above scheme, the processing method further includes: responding to the event that the frequency difference does not satisfy the allowable frequency deviation range, and accumulating the number of events for the event that the frequency difference satisfies the allowable frequency deviation range, if the accumulated number of events does not exceed the preset number of events, then selecting the comparison frequency as the output selected frequency.
[0015] In some embodiments of the present invention, based on the above scheme, the processing method further includes: the pulse signal processing device is configured with an independent upper edge capture channel and a lower edge capture channel, the upper edge capture channel is at least used to capture the time signal and edge level when the rising edge in the pulse signal arrives, and the falling edge capture channel is used to capture the time signal and edge level when the falling edge in the pulse signal arrives; in response to processing a pulse signal trigger event, the upper edge capture channel and / or the lower edge capture channel are triggered to capture the pulse signal in the capture channel, and it is determined whether the actual number of consecutive outputs of the same level of the level of the same edge in the captured pulse signal meets the preset number of consecutive outputs of the same level.
[0016] In some embodiments of the present invention, based on the above scheme, the processing method further includes: in response to a processing pulse signal trigger event, the first filtering circuit filters the pulse signal captured by the upper edge capture channel, and the second filtering circuit filters the pulse signal captured by the falling edge capture channel.
[0017] In some embodiments of the present invention, based on the above scheme, in response to whether the actual number of consecutive outputs of the same level of the level of the same edge in the pulse signal meets the preset number of consecutive outputs of the same level, if so, the step is entered: determine whether the actual pulse width time calculated according to the time interval when two adjacent and identical edges before and after are captured according to the preset measurement period exceeds the preset pulse width suppression time.
[0018] In some embodiments of the present invention, based on the above scheme, the processing method further includes: in response to a preset gate time, calculating the average frequency of the pulse signal determined by the same rising edge within the preset gate time based on the captured same rising edge; in response to the preset gate time, calculating the average frequency of the pulse signal determined by the same falling edge within the preset gate time based on the captured same falling edge.
[0019] In some embodiments of the present invention, based on the above solution, the processing method further includes: performing sliding window filtering on the average frequency of the pulse signal determined by the same rising edge and the average frequency of the pulse signal determined by the same falling edge, and then performing frequency average calculation and outputting the final frequency of the pulse signal.
[0020] According to a second aspect of an embodiment of the present invention, there is provided a pulse signal processing device based on the first aspect, comprising:
[0021] An upper edge capture channel and a lower edge capture channel are independent of each other, the upper edge capture channel is used to capture at least the time signal and edge level when the rising edge in the pulse signal comes, and the falling edge capture channel is used to capture the time signal and edge level when the falling edge in the pulse signal comes;
[0022] A processor, configured to respond to a processing pulse signal triggering event and perform signal processing on the pulse signal according to the processing method as described in the first aspect of the present invention;
[0023] A computer storage medium storing one or more computer programs, wherein the one or more computer programs are suitable for being loaded by the processor and executing the processing method described in the first aspect of the present invention.
[0024] In some embodiments of the present invention, based on the above scheme, the pulse signal processing device is configured with a first filtering circuit corresponding to the upper edge capture channel and a second filtering circuit corresponding to the lower edge capture channel. In response to a pulse signal trigger event, the first filtering circuit is used to filter the rising edge and edge level in the pulse signal captured by the upper edge capture channel, and the second filtering circuit is used to filter the falling edge and edge level in the pulse signal captured by the falling edge capture channel.
[0025] In some embodiments of the present invention, based on the above solution, the processing device is a speed measurement overspeed protection switch suitable for a high-speed shaft and / or a low-speed shaft of a wind turbine generator set.
[0026] According to a first aspect of an embodiment of the present invention, there is provided a computer storage medium based on the above-mentioned first aspect, on which a computer program is stored. When the computer program is executed by a processor, it is used to execute the processing method described in the first aspect of the present invention.
[0027] In summary, the technical solution of the present invention provides a pulse signal processing method, a processing device and a storage medium thereof, which can effectively avoid the frequency jump of the pulse signal caused by various interference reasons, and can also effectively solve the frequency jitter problem of the pulse signal, thereby realizing stable and effective output of the pulse signal. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 The figure is a flow chart of a pulse signal processing method according to the present invention.
[0029] Figure 2 The figure is a flow chart of a pulse signal processing method according to the present invention.
[0030] Figure 3 The figure is a flow chart of a pulse signal processing method according to the present invention. DETAILED DESCRIPTION
[0031] In order to explain the technical content, structural features, objectives and effects of the present invention in detail, embodiments are given below and described in detail with reference to the accompanying drawings.
[0032] Unless otherwise specified, all technical and scientific terms used in the embodiments of the present invention have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the present invention are only for the purpose of describing specific embodiments and are not intended to limit the scope of the present invention. The term "and / or" used in the present invention includes any and all combinations of one or more related listed items.
[0033] It should be noted that the terms "first", "second", etc. in the specification, claims and drawings of the present invention are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein.
[0034] See also Figures 1 to 3 , a pulse signal processing method of one of the present invention comprises:
[0035] Step S101, in response to a processing pulse signal triggering event, obtaining setting parameters of a pulse signal processing device, wherein the setting parameters at least include a preset measurement period, a preset pulse width suppression time, a default frequency deviation range, and a preset comparison frequency threshold.
[0036] Step S102, determining whether the actual pulse width time calculated by capturing the time interval between two identical edges in a preset measurement period exceeds the preset pulse width suppression time.
[0037] At least the adjacent and identical rising edges or the adjacent and identical falling edges should be captured within the preset measurement period, and multiple identical rising edges or multiple identical falling edges may also be captured within the preset measurement period. According to actual measurement needs, for example, in one of the feasible embodiments, the preset measurement period can be configured as 1.5 periods of the pulse signal, in which the adjacent and identical rising edges or the adjacent and identical falling edges can be captured; in other feasible embodiments, the preset measurement period can be configured as 2 periods of the pulse signal, in which two complete rising edges and two complete falling edges can be captured; it should be understood that in other feasible embodiments, the preset measurement period can be configured as a time that meets the sampling requirements to capture the adjacent and identical rising edges or the adjacent and identical falling edges.
[0038] Step S103, in response to the event that the actual pulse width time exceeds the preset pulse width suppression time, respectively calculating the frequencies of the pulse signals within the two identical edges determined within a preset measurement period;
[0039] For example, within a preset measurement cycle, the same rising edge is captured, and the rising edge arrival time when the first rising edge arrives and the second rising edge arrives are marked respectively, and it is determined whether the actual pulse width time determined when the first rising edge arrives and the second rising edge arrives exceeds the preset pulse width suppression time. If the actual pulse width time determined when the first rising edge arrives and the second rising edge arrives exceeds the preset pulse width suppression time event, the frequency of the pulse signal determined within the same rising edge is calculated. Within a preset measurement cycle, the same falling edge is captured, and the frequency of the pulse signal determined within the same falling edge is calculated.
[0040] Step S104, taking the frequency of the pulse signal in the same edge determined by the event that the actual pulse width time exceeds the preset pulse width suppression time in the current measurement cycle as the current frequency, and taking the frequency of the pulse signal in a different edge determined by the event that the actual pulse width time exceeds the preset pulse width suppression time in the previous measurement cycle as the comparison frequency, and comparing the size relationship between the default frequency deviation range and the preset comparison frequency threshold to determine the frequency allowable deviation range;
[0041] The frequency tolerance range is a default frequency tolerance range or a preset comparison frequency threshold.
[0042] The default frequency deviation range is configured to be determined according to the range of the pulse signal processing device. For example, if the range of the pulse signal processing device is 0-999Hz, the default frequency deviation range is determined to be 0.999Hz. For another example, if the range of the pulse signal processing device is 0.1Hz-99.9Hz, the default frequency deviation range is determined to be 2Hz.
[0043] For example, in one feasible embodiment, the preset comparison frequency threshold is configured as a specific preset value. In other feasible embodiments, it can also be configured as a preset value determined by a specific ratio of the frequency value of the current pulse signal, for example, it can be 20% of the frequency value of the current pulse signal.
[0044] Step S105, outputting a selected frequency according to whether the frequency difference between the current frequency of the pulse signal and the comparison frequency is within a determined frequency allowable deviation range, and the selected frequency is the current frequency or the comparison frequency.
[0045] For example, the measuring range of the pulse signal processing equipment is 0.1Hz-99.9Hz, so the default frequency deviation range is determined to be 2Hz. The frequency of two rising edge events is 9Hz after pulse width suppression, which is compared with the frequency of 5Hz measured by the last two falling edges. The frequency difference is 4Hz. 20% of the frequency value of the current pulse signal of 9Hz is 1.8Hz, so the preset comparison frequency threshold is 1.8Hz. The size relationship between the default frequency deviation and the preset comparison frequency threshold is compared, that is, 2Hz is greater than 1.8Hz, and the allowable frequency deviation range is determined to be no more than 1.8Hz.
[0046] See also Figure 2 , Figure 3 The processing method further includes: responding to the event that the frequency difference satisfies the frequency allowable deviation range, and accumulating the number of events of the event that the frequency difference satisfies the frequency allowable deviation range, and then selecting the current frequency as the output selected frequency.
[0047] The processing method further includes: responding to the event that the frequency difference does not meet the frequency allowable deviation range, and accumulating the number of events for the event that the frequency difference meets the frequency allowable deviation range, and if the accumulated number of events exceeds the preset number of events, selecting the current frequency as the output selected frequency.
[0048] The processing method further includes: responding to the event that the frequency difference does not meet the frequency allowable deviation range, and accumulating the number of events for the event that the frequency difference meets the frequency allowable deviation range, and if the accumulated number of events does not exceed the preset number of events, selecting the comparison frequency as the output selected frequency.
[0049] For example, if the measuring range of the pulse signal processing equipment is 0.1Hz-99.9Hz, the default frequency deviation range is determined to be 2Hz. The frequency of two rising edge events is 9Hz after pulse width suppression, which is compared with the frequency of 5Hz measured by two falling edges last time. The frequency difference is 4Hz. 20% of the frequency value of the current pulse signal of 9Hz is 1.8Hz, so the preset comparison frequency threshold is 1.8Hz. The size relationship between the default frequency deviation and the preset comparison frequency threshold is compared, that is, 2Hz is greater than 1.8Hz, and the allowable frequency deviation range is determined to be no more than 1.8Hz. The frequency difference of 4Hz is greater than the deviation range of 1.8Hz, and it is marked once. The frequency of 5Hz measured by two falling edges last time is still output; if the frequency value of the pulse signal is 9Hz after the cumulative number of events is 10 times, 9Hz is used as the frequency value of the pulse signal for output.
[0050] For the default frequency deviation range, when the pulse signal processing device targets a pulse signal in the low frequency band, for example, a low frequency pulse signal of 0.1Hz-99.9Hz, a relatively large value is selected as the default frequency deviation range, such as 2Hz; when the pulse signal processing device targets a pulse signal in the high frequency band, for example, a high frequency pulse signal of 0-999Hz, a relatively small value is selected as the default frequency deviation range, such as 0.999Hz. The specific value of the default frequency deviation range can be obtained through experiments based on the requirements of the measurement frequency band, range, measurement accuracy, etc., or it can be preset based on engineering experience.
[0051] Although the above processing method can effectively avoid the frequency jump of the pulse signal caused by various interference reasons, the frequency of the pulse signal still jitters. In order to solve the problem of frequency jitter of the pulse signal, the present invention solves the above problem by introducing a gate time method.
[0052] The pulse signal processing device is configured with an upper edge capture channel and a lower edge capture channel that are independent of each other. The upper edge capture channel is at least used to capture the time signal and edge level when the rising edge in the pulse signal arrives, and the falling edge capture channel is used to capture the time signal and edge level when the falling edge in the pulse signal arrives; step S101 of the processing method further includes responding to a processing pulse signal trigger event, and triggering the upper edge capture channel and / or the lower edge capture channel to capture the pulse signal in the capture channel, and judging whether the actual number of consecutive outputs of the same level of the level of the same edge in the captured pulse signal meets the preset number of consecutive outputs of the same level.
[0053] The pulse signal processing device is configured with a first filtering circuit corresponding to the upper edge capture channel and a second filtering circuit corresponding to the lower edge capture channel. Step S101 further includes, in response to a processing pulse signal trigger event, the first filtering circuit filtering the pulse signal captured by the upper edge capture channel, and the second filtering circuit filtering the pulse signal captured by the lower edge capture channel.
[0054] Step S101 further includes determining whether the actual number of consecutive outputs of the same level at the same edge in the pulse signal meets a preset number of consecutive outputs of the same level. If so, proceeding to step S102.
[0055] The processing method further includes: step S106, in response to the preset gate time, calculating the average frequency of the pulse signal determined by the same rising edge within the preset gate time based on the captured same rising edge; in response to the preset gate time, calculating the average frequency of the pulse signal determined by the same falling edge within the preset gate time based on the captured same falling edge.
[0056] Step S106 further includes performing sliding window filtering on the average frequency of the pulse signal determined by the same rising edge and the average frequency of the pulse signal determined by the same falling edge, and then performing frequency averaging calculation and outputting the final frequency of the pulse signal.
[0057] In summary, the present invention provides a pulse signal processing method, a processing device and a storage medium thereof, which can effectively avoid the frequency jump of the pulse signal caused by various interference reasons, and can also effectively solve the frequency jitter problem of the pulse signal, thereby realizing stable and effective output of the pulse signal.
[0058] As described above, it is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited to it. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A pulse signal processing method, characterized in that: It includes: In response to a processing pulse signal trigger event, obtaining setting parameters of a pulse signal processing device, the setting parameters at least including a preset measurement period, a preset pulse width suppression time, a default frequency deviation range, and a preset comparison frequency threshold; Determine whether the actual pulse width time calculated by capturing the time interval when two identical edges arrive according to the preset measurement period exceeds the preset pulse width suppression time; In response to an event that the actual pulse width time exceeds a preset pulse width suppression time, the frequencies of the pulse signals in the two identical edges are respectively calculated within a preset measurement period; The frequency of the pulse signal in the same edge determined by the event that the actual pulse width time exceeds the preset pulse width suppression time in the current measurement cycle is taken as the current frequency, and the frequency of the pulse signal in a different edge determined by the event that the actual pulse width time exceeds the preset pulse width suppression time in the previous measurement cycle is taken as the comparison frequency, and the size relationship between the default frequency deviation range and the preset comparison frequency threshold is compared to determine the frequency allowable deviation range; According to whether the frequency difference between the current frequency of the pulse signal and the comparison frequency is within the determined frequency allowable deviation range, the selected frequency is output, and the selected frequency is the current frequency or the comparison frequency.
2. The processing method according to claim 1, characterized in that The default frequency deviation range is configured to be determined according to the measurement range of the pulse signal processing device.
3. The processing method according to claim 1, characterized in that: The preset comparison frequency threshold is configured as a specific preset value or as a preset value determined by a specific ratio of the current frequency value.
4. The processing method according to claim 1, characterized in that: The processing method further includes: responding to an event that the frequency difference satisfies the frequency allowable deviation range, and accumulating the number of events of the event that the frequency difference satisfies the frequency allowable deviation range, and then selecting the current frequency as the output selected frequency.
5. The processing method according to claim 1, characterized in that: The processing method further includes: responding to the event that the frequency difference does not meet the frequency allowable deviation range, and accumulating the number of events for the event that the frequency difference meets the frequency allowable deviation range, and if the accumulated number of events exceeds the preset number of events, selecting the current frequency as the output selected frequency.
6. The processing method according to claim 1, characterized in that: The processing method further includes: responding to the event that the frequency difference does not meet the frequency allowable deviation range, and accumulating the number of events for the event that the frequency difference meets the frequency allowable deviation range, and if the accumulated number of events does not exceed the preset number of events, selecting the comparison frequency as the output selected frequency.
7. The processing method according to any one of claims 4 to 6, characterized in that: The processing method further includes: the pulse signal processing device is configured with an upper edge capture channel and a lower edge capture channel that are independent of each other, the upper edge capture channel is at least used to capture the time signal and edge level when the rising edge in the pulse signal arrives, and the falling edge capture channel is used to capture the time signal and edge level when the falling edge in the pulse signal arrives; in response to a processing pulse signal triggering event, the upper edge capture channel and / or the lower edge capture channel is triggered to capture the pulse signal in the capture channel, and it is determined whether the actual number of consecutive outputs of the same level of the level of the same edge in the captured pulse signal meets the preset number of consecutive outputs of the same level.
8. The processing method according to claim 7, characterized in that: The processing method further includes: in response to a processing pulse signal triggering event, a first filtering circuit performs filtering processing on the pulse signal captured by the rising edge capture channel, and a second filtering circuit performs filtering processing on the pulse signal captured by the falling edge capture channel.
9. The processing method according to claim 8, characterized in that: In response to whether the actual number of consecutive outputs of the same level of the level of the same edge in the pulse signal meets the preset number of consecutive outputs of the same level, if so, enter the step of: determining whether the actual pulse width time calculated according to the time interval when two adjacent and identical edges before and after are captured according to the preset measurement period exceeds the preset pulse width suppression time.
10. The processing method according to any one of claims 4 to 6, characterized in that: The processing method further includes: in response to a preset gate time, calculating the average frequency of a pulse signal determined by the same rising edge within the preset gate time based on the captured same rising edge; in response to the preset gate time, calculating the average frequency of a pulse signal determined by the same falling edge within the preset gate time based on the captured same falling edge.
11. The processing method according to claim 10, characterized in that: The processing method further includes: performing sliding window filtering on the average frequency of the pulse signal determined by the same rising edge and the average frequency of the pulse signal determined by the same falling edge, and then performing frequency average calculation and outputting the final frequency of the pulse signal.
12. A pulse signal processing device, characterized in that: The processing equipment includes: An upper edge capture channel and a lower edge capture channel are independent of each other, the upper edge capture channel is used to capture at least the time signal and edge level when the rising edge in the pulse signal comes, and the falling edge capture channel is used to capture the time signal and edge level when the falling edge in the pulse signal comes; A processor, configured to respond to a processing pulse signal trigger event and perform signal processing on the pulse signal according to the processing method according to any one of claims 1 to 11; A computer storage medium storing one or more computer programs, wherein the one or more computer programs are suitable for being loaded by the processor and executing the processing method according to any one of claims 1 to 11.
13. The processing device according to claim 12, characterized in that The processing device is configured with a first filtering circuit corresponding to the upper edge capture channel and a second filtering circuit corresponding to the lower edge capture channel. In response to a processing pulse signal trigger event, the first filtering circuit is used to filter the rising edge and edge level in the pulse signal captured by the upper edge capture channel, and the second filtering circuit is used to filter the falling edge and edge level in the pulse signal captured by the falling edge capture channel.
14. The processing device according to claim 12 or 13, characterized in that The processing device is a speed measurement overspeed protection switch suitable for a high-speed shaft and / or a low-speed shaft of a wind turbine generator set.
15. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it is used to perform the processing method according to any one of claims 1 to 11.