CN112748682A - Signal sampling processing method, device, equipment and storage medium - Google Patents

Signal sampling processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN112748682A
CN112748682A CN202011420299.8A CN202011420299A CN112748682A CN 112748682 A CN112748682 A CN 112748682A CN 202011420299 A CN202011420299 A CN 202011420299A CN 112748682 A CN112748682 A CN 112748682A
Authority
CN
China
Prior art keywords
sampling
window
width
change rate
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011420299.8A
Other languages
Chinese (zh)
Other versions
CN112748682B (en
Inventor
杨一帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011420299.8A priority Critical patent/CN112748682B/en
Publication of CN112748682A publication Critical patent/CN112748682A/en
Application granted granted Critical
Publication of CN112748682B publication Critical patent/CN112748682B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24215Scada supervisory control and data acquisition

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Analogue/Digital Conversion (AREA)

Abstract

The invention relates to a signal sampling processing method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring the signal type of a signal to be sampled, the current signal change rate and a preset sampling frequency; determining the width of a sampling window and the moving step length of the window according to the signal type, the current signal change rate and the sampling frequency; and sampling the signal to be sampled according to the width of the sampling window and the window moving step length, and determining the sampling value of each sampling. By adopting the technical scheme of the invention, the width of the sampling window and the window moving step length can be set according to the current signal change rate, different sampling window widths and window moving step lengths are set for the sampling of signals with different change rates, and the width of the sampling window and the window moving step length can be reduced when the signal change rate is higher, so that the sampling point and the data volume are increased, and the sampling accuracy is improved.

Description

Signal sampling processing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of signal sampling technology, and in particular, to a signal sampling processing method, apparatus, device, and storage medium.
Background
When the single chip microcomputer performs AD sampling, although the acquisition board card includes a hardware filtering unit, there are cases where there are many acquisition signal glitches, so that the currently common data processing method adopts a software filtering manner, and most of them adopt a processing method of mean value filtering or median value filtering.
However, the conventional software filtering method is to collect a plurality of data points in a single sampling period and then perform averaging, and if the rate of change of a signal is high, the sampling processing is performed by using the conventional software filtering method, which results in low accuracy of signal sampling.
Disclosure of Invention
In view of this, an object of the present invention is to provide a method, an apparatus, a device and a storage medium for signal sampling processing, so as to solve the problem in the prior art that if the rate of change of a signal is high, the accuracy of signal sampling is low due to sampling processing by using a conventional software filtering method.
In order to achieve the purpose, the invention adopts the following technical scheme:
a signal sample processing method, comprising:
acquiring the signal type of a signal to be sampled, the current signal change rate and a preset sampling frequency;
determining the width of a sampling window and the moving step length of the window according to the signal type, the current signal change rate and the sampling frequency;
and sampling the signal to be sampled according to the width of the sampling window and the window moving step length, and determining the sampling value of each sampling.
Further, in the above signal sampling processing method, the determining a sampling window width and a window moving step size according to the signal type, the current signal change rate, and the sampling frequency includes:
determining an initial window width according to the signal type and the sampling frequency;
adjusting the initial window width according to the current signal change rate to obtain the sampling window width;
and determining the window moving step length according to the current signal change rate and the width of the sampling window.
Further, in the above signal sampling processing method, the adjusting the initial window width according to the current signal change rate to obtain the sampling window width includes:
acquiring a preset regulation rule that the signal change rate is associated with the window width;
matching the current signal change rate with the adjustment rule to determine a window width adjustment value;
and adjusting the initial window width according to the window width adjustment value to obtain the sampling window width.
Further, in the above signal sampling processing method, the determining the window moving step size according to the current signal change rate and the sampling window width includes:
comparing the current signal change rate with a preset rate range;
if the current signal change rate is within the preset rate range, taking a first numerical value between a first threshold value and a second threshold value as the window moving step length;
if the current signal change rate is larger than the preset rate range, taking a second numerical value smaller than the first threshold value as the window moving step length;
if the current signal change rate is smaller than the preset rate range, taking a third numerical value larger than the second threshold as the window moving step length;
wherein the first threshold is equal to half the sampling window width and the second threshold is equal to the sampling window width.
Further, in the above signal sampling processing method, the sampling processing on the signal to be sampled according to the width of the sampling window and the window moving step length, and determining a sampling value of each sampling includes:
determining all data values of the signal to be sampled at each time according to the width of the sampling window and the window moving step length;
and carrying out averaging processing on all the data values sampled every time to obtain the sampling value sampled every time.
The invention also provides a signal sampling processing device, comprising:
the acquisition module is used for acquiring the signal type of a signal to be sampled, the current signal change rate and the preset sampling frequency;
the determining module is used for determining the width of a sampling window and the moving step length of the window according to the signal type, the current signal change rate and the sampling frequency;
and the sampling processing module is used for sampling the signal to be sampled according to the width of the sampling window and the window moving step length and determining the sampling value of each sampling.
Further, in the above signal sampling processing apparatus, the determining module includes: an initial window determining unit, an adjusting unit and a step length determining unit;
the initial window determining unit is used for determining the initial window width according to the signal type and the sampling frequency;
the adjusting unit is used for adjusting the initial window width according to the current signal change rate to obtain the sampling window width;
and the step length determining unit is used for determining the window moving step length according to the current signal change rate and the sampling window width.
Further, in the above signal sampling processing apparatus, the adjusting unit is specifically configured to:
acquiring a preset regulation rule that the signal change rate is associated with the window width;
matching the current signal change rate with the adjustment rule to determine a window width adjustment value;
and adjusting the initial window width according to the window width adjustment value to obtain the sampling window width.
Further, in the above signal sampling processing apparatus, the step length determining unit is specifically configured to:
comparing the current signal change rate with a preset rate range;
if the current signal change rate is within the preset rate range, taking a first numerical value between a first threshold value and a second threshold value as the window moving step length;
if the current signal change rate is larger than the preset rate range, taking a second numerical value smaller than the first threshold value as the window moving step length;
if the current signal change rate is smaller than the preset rate range, taking a third numerical value larger than the second threshold as the window moving step length;
wherein the first threshold is equal to half the sampling window width and the second threshold is equal to the sampling window width.
Further, in the above signal sampling processing apparatus, the sampling processing module is specifically configured to:
determining all data values of the signal to be sampled at each time according to the width of the sampling window and the window moving step length;
and carrying out averaging processing on all the data values sampled every time to obtain the sampling value sampled every time.
The present invention also provides a signal sampling processing apparatus, comprising: the system comprises a processor and a memory connected with the processor;
the memory is used for storing a computer program, and the computer program is at least used for executing the signal sampling processing method;
the processor is used for calling and executing the computer program.
The present invention also provides a storage medium, wherein the storage medium stores a computer program, and the computer program, when executed by a processor, implements the steps of the signal sampling processing method.
A signal sampling processing method, device, equipment and storage medium, the method includes: acquiring the signal type of a signal to be sampled, the current signal change rate and a preset sampling frequency; determining the width of a sampling window and the moving step length of the window according to the signal type, the current signal change rate and the sampling frequency; and sampling the signal to be sampled according to the width of the sampling window and the window moving step length, and determining the sampling value of each sampling. By adopting the technical scheme of the invention, the width of the sampling window and the window moving step length can be set according to the current signal change rate, different sampling window widths and window moving step lengths are set for the sampling of signals with different change rates, and the width of the sampling window and the window moving step length can be reduced when the signal change rate is higher, so that the sampling point and the data volume are increased, and the sampling accuracy is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart provided by an embodiment of a signal sampling processing method of the present invention;
FIG. 2 is a schematic diagram of window shift filtering of the sampling window of FIG. 1;
FIG. 3 is a schematic structural diagram of a signal sampling processing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram provided by an embodiment of the signal sampling processing apparatus of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the examples given herein without any inventive step, are within the scope of the present invention.
Fig. 1 is a flowchart provided in an embodiment of a signal sampling processing method of the present invention, and as shown in fig. 1, the signal sampling processing method of the present embodiment specifically includes the following steps:
s101, acquiring the signal type of a signal to be sampled, the current signal change rate and a preset sampling frequency.
In the embodiment, the signal type of the signal to be sampled, the current signal change rate, and the preset sampling frequency need to be obtained. Wherein the signal types include: temperature signals, pressure signals, flow signals, current signals, voltage signals, and the like.
S102, determining the width of a sampling window and the moving step length of the window according to the type of the signal, the current signal change rate and the sampling frequency.
And judging the width of a sampling window and the moving step length of the window when the signal to be sampled is sampled according to the acquired signal type, the current signal change rate and the sampling frequency.
Further, the method specifically comprises the following steps:
first, an initial window width is determined based on the signal type and sampling frequency.
Different signal types and different sampling frequencies, when signal sampling is performed, the window widths of sampling are different, for example, for some signal types with less variation, the initial window width can be set to be larger, and when the sampling frequency is larger, the initial width signal can be set to be smaller, so that the initial window width needs to be determined according to the signal type and the sampling frequency of the signal to be sampled.
Secondly, adjusting the initial window width according to the current signal change rate to obtain the sampling window width.
After the initial window width is determined, the initial window width needs to be adjusted according to the current signal change rate, so as to determine the sampling window width.
Specifically, it is first necessary to obtain an adjustment rule that a preset signal change rate is associated with a window width. Different signal change rates correspond to different window width adjustment rules, and the higher the signal change rate is, the window width needs to be reduced, so that the sampling accuracy can be improved. And then, matching the current signal change rate with an adjustment rule to determine a window width adjustment value. And finally, adjusting the initial window width according to the window width adjustment value, thereby obtaining the sampling window width.
For example, when the current signal change rate is not high, the width of the sampling window may be selected to be larger, which may be about 20 to 30 sampling points; for sampling of high speed signals such as current and voltage, the window width can be set to about 5 to 10 sampling points. Fig. 2 is a schematic diagram of window shift filtering of the sampling window in fig. 1, where the sampling window has a width of 5 sampling points as shown in fig. 2.
Thirdly, determining the window moving step length according to the current signal change rate and the width of the sampling window.
The present embodiment further needs to determine a window moving step according to the current signal change rate and the sampling window width, so as to determine the interval between two signal samples.
Specifically, the current signal change rate needs to be compared with a preset rate range first. The preset rate range is a preset range, if the current signal change rate is within the preset rate range, the current signal change rate is normal, if the current signal change rate is smaller than the preset rate range, the current signal change rate is slow, and if the current signal change rate is larger than the preset rate range, the current signal change rate is fast.
Secondly, if the current signal change rate is within the preset rate range, a first value between the first threshold and the second threshold is taken as a window moving step. Wherein the first threshold is equal to one-half of the sampling window width and the second threshold is equal to the sampling window width. That is, if the current signal change rate is normal, the window shift step size is greater than one-half of the sampling window width and less than the sampling window width. As shown in fig. 2, the window is shifted by 3 sample points.
And if the current signal change rate is larger than the preset rate range, taking a second numerical value smaller than the first threshold value as the window moving step. That is, if the current signal rate of change is fast, the window shift step size is less than one-half the sampling window width.
And if the current signal change rate is smaller than the preset rate range, taking a third value larger than the second threshold value as the window moving step length. That is, if the current signal rate of change is slow, the window shift step size is larger than the sampling window width.
Therefore, for signals with high change rate (such as voltage signals, current signals and the like), the moving step length of each sampling window is smaller, and the overlapping part between the sampling windows is more, so that the sampling is denser, and the sampling accuracy is improved. For signals (such as temperature signals and the like) with slow change rate, the moving step length of each sampling window is larger, the interval between two sampling windows is also larger, and the sampling times and the times of filtering the data which needs to be sampled each time are also smaller, so that the data calculation amount of the main control can be reduced, and the operation efficiency is improved.
S103, sampling the signal to be sampled according to the width of the sampling window and the window moving step length, and determining the sampling value of each sampling.
After the width of a sampling window and the window moving step length when the signal to be sampled is sampled are determined, sampling processing is carried out on the signal to be sampled according to the width of the sampling window and the window moving step length, and therefore the sampling value of each sampling is determined.
Further, the method specifically comprises the following steps:
firstly, determining all data values of a signal to be sampled each time according to the width of a sampling window and the moving step length of the window. Secondly, averaging all the data values sampled every time to obtain sampled values sampled every time.
In the embodiment, assume that the signal to be sampled is f (T), the sampling window width is T, and the window moving step size is n. During the ith sampling, the sampled data values comprise { f (i), f (i +1) …, f (i + T-1) }, after the acquisition is finished, the average value processing is carried out, and the filtered values
Figure BDA0002821901690000081
When sampling is performed for the (i +1) th time, the sampling window is shifted to the right by n sampling points, that is, sampling starts from f (i + n), the sampled data values include { f (i + n), f (i + n +1) …, f (i + n + T-1) }, and then the filtered values are obtained
Figure BDA0002821901690000082
Figure BDA0002821901690000083
The cyclic sampling process is performed according to the principle of sampling as shown in FIG. 2, and it can be seen that when n is<And during T, T-n sampling points at the tail part of the i-1 sampling in the ith sampling participate in the calculation, when n is smaller, the more sampling points participate in the next calculation, the more data are filtered, and thus the sampling accuracy of the signal to be sampled is higher when the signal with the current signal rate changing rapidly is sampled. At n>And during T, the interval length with the length of n-T can exist between the ith sampling and the (i +1) th sampling, so that data after filtering processing can be reduced, the requirement can be met for the signals with small change of the current signal rate, and because less data need to be filtered and less data after filtering processing are needed, the operation burden of the master control can be reduced, and the operation efficiency of the system is improved.
In addition, in this embodiment, the current signal change rate is obtained in real time, and when the signal change rate of the signal to be sampled changes, the sampling window width and the window moving step length determined according to the current signal change rate also change correspondingly, so that the flexibility of signal sampling processing is improved.
The signal sampling processing method of the embodiment acquires the signal type of a signal to be sampled, the current signal change rate and the preset sampling frequency; determining the width of a sampling window and the moving step length of the window according to the signal type, the current signal change rate and the sampling frequency; and sampling the signal to be sampled according to the width of the sampling window and the window moving step length, and determining the sampling value of each sampling. By adopting the technical scheme of the invention, the width of the sampling window and the window moving step length can be set according to the current signal change rate, different sampling window widths and window moving step lengths are set for the sampling of signals with different change rates, and the width of the sampling window and the window moving step length can be reduced when the signal change rate is higher, so that the sampling point and the data volume are increased, and the sampling accuracy is improved.
In order to be more comprehensive, the present application also provides a signal sampling processing apparatus corresponding to the signal sampling processing method provided by the embodiment of the present invention.
Fig. 3 is a schematic structural diagram provided by an embodiment of the signal sampling processing apparatus of the present invention, and as shown in fig. 3, the signal sampling processing apparatus of the present embodiment includes: an acquisition module 11, a determination module 12 and a sampling processing module 13.
The acquisition module 11 is configured to acquire a signal type of a signal to be sampled, a current signal change rate, and a preset sampling frequency;
a determining module 12, configured to determine a sampling window width and a window moving step length according to the signal type, the current signal change rate, and the sampling frequency;
and the sampling processing module 13 is configured to perform sampling processing on the signal to be sampled according to the width of the sampling window and the window moving step length, and determine a sampling value of each sampling.
The signal sampling processing device of the embodiment can set the width of the sampling window and the window moving step length according to the current signal change rate, set different widths of the sampling window and the window moving step length for sampling signals with different change rates, and can reduce the width of the sampling window and the window moving step length when the signal change rate is higher, thereby increasing the sampling point and the data volume and improving the sampling accuracy rate.
Further, in the signal sampling processing apparatus of the present embodiment, the determining module 12 includes: the device comprises an initial window determining unit, an adjusting unit and a step length determining unit.
An initial window determining unit, configured to determine an initial window width according to the signal type and the sampling frequency;
the adjusting unit is used for adjusting the initial window width according to the current signal change rate to obtain the sampling window width;
and the step length determining unit is used for determining the window moving step length according to the current signal change rate and the width of the sampling window.
Further, in the signal sampling processing apparatus of this embodiment, the adjusting unit is specifically configured to:
acquiring a preset regulation rule that the signal change rate is associated with the window width; matching the current signal change rate with an adjustment rule to determine a window width adjustment value; and adjusting the initial window width according to the window width adjustment value to obtain the sampling window width.
Further, in the signal sampling processing apparatus of this embodiment, the step size determining unit is specifically configured to:
comparing the current signal change rate with a preset rate range; if the current signal change rate is within the preset rate range, taking a first numerical value between a first threshold value and a second threshold value as a window moving step length; if the current signal change rate is larger than the preset rate range, taking a second numerical value smaller than the first threshold value as a window moving step length; if the current signal change rate is smaller than the preset rate range, taking a third numerical value larger than a second threshold value as a window moving step length; wherein the first threshold is equal to half the sampling window width and the second threshold is equal to the sampling window width.
Further, in the signal sampling processing apparatus of this embodiment, the sampling processing module is specifically configured to determine all data values of a signal to be sampled at each time according to the width of the sampling window and the window moving step length; and carrying out averaging processing on all the data values sampled every time to obtain the sampling value sampled every time.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 4 is a schematic structural diagram provided by an embodiment of the signal sampling processing apparatus of the present invention, and as shown in fig. 4, the signal sampling processing apparatus of the present embodiment includes a processor 21 and a memory 22 connected to the processor 21; the memory 22 is used for storing a computer program for executing at least the signal sampling processing method of the above-described embodiment; the processor 21 is used to call and execute the computer program.
The signal sampling processing equipment of the embodiment can set the width of the sampling window and the window moving step length according to the current signal change rate, set different widths of the sampling window and the window moving step length for sampling signals with different change rates, and can reduce the width of the sampling window and the window moving step length when the signal change rate is higher, thereby increasing the sampling point and the data volume and improving the sampling accuracy rate.
The present invention also provides a storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the above signal sampling processing method.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present invention, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (12)

1. A signal sample processing method, comprising:
acquiring the signal type of a signal to be sampled, the current signal change rate and a preset sampling frequency;
determining the width of a sampling window and the moving step length of the window according to the signal type, the current signal change rate and the sampling frequency;
and sampling the signal to be sampled according to the width of the sampling window and the window moving step length, and determining the sampling value of each sampling.
2. The signal sample processing method of claim 1, wherein said determining a sampling window width and a window shift step size based on said signal type, said current signal rate of change, and said sampling frequency comprises:
determining an initial window width according to the signal type and the sampling frequency;
adjusting the initial window width according to the current signal change rate to obtain the sampling window width;
and determining the window moving step length according to the current signal change rate and the width of the sampling window.
3. The signal sample processing method according to claim 2, wherein the adjusting the initial window width according to the current signal change rate to obtain the sampling window width comprises:
acquiring a preset regulation rule that the signal change rate is associated with the window width;
matching the current signal change rate with the adjustment rule to determine a window width adjustment value;
and adjusting the initial window width according to the window width adjustment value to obtain the sampling window width.
4. The signal sample processing method of claim 2, wherein said determining the window shift step size based on the current signal rate of change and the sampling window width comprises:
comparing the current signal change rate with a preset rate range;
if the current signal change rate is within the preset rate range, taking a first numerical value between a first threshold value and a second threshold value as the window moving step length;
if the current signal change rate is larger than the preset rate range, taking a second numerical value smaller than the first threshold value as the window moving step length;
if the current signal change rate is smaller than the preset rate range, taking a third numerical value larger than the second threshold as the window moving step length;
wherein the first threshold is equal to half the sampling window width and the second threshold is equal to the sampling window width.
5. The signal sampling processing method according to claim 1, wherein the sampling processing on the signal to be sampled according to the sampling window width and the window moving step size to determine a sampling value of each sampling comprises:
determining all data values of the signal to be sampled at each time according to the width of the sampling window and the window moving step length;
and carrying out averaging processing on all the data values sampled every time to obtain the sampling value sampled every time.
6. A signal sample processing apparatus, comprising:
the acquisition module is used for acquiring the signal type of a signal to be sampled, the current signal change rate and the preset sampling frequency;
the determining module is used for determining the width of a sampling window and the moving step length of the window according to the signal type, the current signal change rate and the sampling frequency;
and the sampling processing module is used for sampling the signal to be sampled according to the width of the sampling window and the window moving step length and determining the sampling value of each sampling.
7. The signal sample processing device of claim 6, wherein the determining module comprises: an initial window determining unit, an adjusting unit and a step length determining unit;
the initial window determining unit is used for determining the initial window width according to the signal type and the sampling frequency;
the adjusting unit is used for adjusting the initial window width according to the current signal change rate to obtain the sampling window width;
and the step length determining unit is used for determining the window moving step length according to the current signal change rate and the sampling window width.
8. The signal sample processing device according to claim 7, wherein the adjusting unit is specifically configured to:
acquiring a preset regulation rule that the signal change rate is associated with the window width;
matching the current signal change rate with the adjustment rule to determine a window width adjustment value;
and adjusting the initial window width according to the window width adjustment value to obtain the sampling window width.
9. The signal sample processing device according to claim 7, wherein the step size determining unit is specifically configured to:
comparing the current signal change rate with a preset rate range;
if the current signal change rate is within the preset rate range, taking a first numerical value between a first threshold value and a second threshold value as the window moving step length;
if the current signal change rate is larger than the preset rate range, taking a second numerical value smaller than the first threshold value as the window moving step length;
if the current signal change rate is smaller than the preset rate range, taking a third numerical value larger than the second threshold as the window moving step length;
wherein the first threshold is equal to half the sampling window width and the second threshold is equal to the sampling window width.
10. The signal sampling processing apparatus of claim 6, wherein the sampling processing module is specifically configured to:
determining all data values of the signal to be sampled at each time according to the width of the sampling window and the window moving step length;
and carrying out averaging processing on all the data values sampled every time to obtain the sampling value sampled every time.
11. A signal sample processing apparatus, comprising: the system comprises a processor and a memory connected with the processor;
the memory is configured to store a computer program for performing at least the signal sample processing method of any one of claims 1-5;
the processor is used for calling and executing the computer program.
12. A storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the steps of the signal sample processing method of any one of claims 1-5.
CN202011420299.8A 2020-12-07 2020-12-07 Signal sampling processing method, device, equipment and storage medium Active CN112748682B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011420299.8A CN112748682B (en) 2020-12-07 2020-12-07 Signal sampling processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011420299.8A CN112748682B (en) 2020-12-07 2020-12-07 Signal sampling processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112748682A true CN112748682A (en) 2021-05-04
CN112748682B CN112748682B (en) 2021-12-14

Family

ID=75649043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011420299.8A Active CN112748682B (en) 2020-12-07 2020-12-07 Signal sampling processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112748682B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0781037A2 (en) * 1995-12-22 1997-06-25 Cirrus Logic, Inc. Automatic step generator for self-correction of sampling
US20050165519A1 (en) * 2004-01-28 2005-07-28 Ariyur Kartik B. Trending system and method using window filtering
CN102736109A (en) * 2012-06-08 2012-10-17 中国石油大学(华东) Method for de-noising, correcting and superposing CRP (Common Reflection Point) gather
CN103906149A (en) * 2012-12-28 2014-07-02 中国移动通信集团北京有限公司 Method, device and system for signal fluctuation analysis
CN106798552A (en) * 2015-11-25 2017-06-06 德克萨斯仪器股份有限公司 Heart rate with status switch optimization estimates equipment
CN107102189A (en) * 2017-04-14 2017-08-29 西南交通大学 Variable step- size LMS harmonic current detecting method based on S function
CN109740284A (en) * 2019-01-21 2019-05-10 西北工业大学 A kind of variable sliding window technique for turning to twist judgement applied to dynamic aerofoil profile
CN110322477A (en) * 2019-06-10 2019-10-11 广州视源电子科技股份有限公司 Characteristic point watch window setting method, tracking, device, equipment and medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0781037A2 (en) * 1995-12-22 1997-06-25 Cirrus Logic, Inc. Automatic step generator for self-correction of sampling
US20050165519A1 (en) * 2004-01-28 2005-07-28 Ariyur Kartik B. Trending system and method using window filtering
CN102736109A (en) * 2012-06-08 2012-10-17 中国石油大学(华东) Method for de-noising, correcting and superposing CRP (Common Reflection Point) gather
CN103906149A (en) * 2012-12-28 2014-07-02 中国移动通信集团北京有限公司 Method, device and system for signal fluctuation analysis
CN106798552A (en) * 2015-11-25 2017-06-06 德克萨斯仪器股份有限公司 Heart rate with status switch optimization estimates equipment
CN107102189A (en) * 2017-04-14 2017-08-29 西南交通大学 Variable step- size LMS harmonic current detecting method based on S function
CN109740284A (en) * 2019-01-21 2019-05-10 西北工业大学 A kind of variable sliding window technique for turning to twist judgement applied to dynamic aerofoil profile
CN110322477A (en) * 2019-06-10 2019-10-11 广州视源电子科技股份有限公司 Characteristic point watch window setting method, tracking, device, equipment and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
石有计: "基于变步长自适应算法的滤波器设计", 《电气技术》 *

Also Published As

Publication number Publication date
CN112748682B (en) 2021-12-14

Similar Documents

Publication Publication Date Title
CN107527630B (en) Voice endpoint detection method and device and computer equipment
CN108777578B (en) Encoder signal sampling method and device
CN111757008B (en) Focusing method, device and computer readable storage medium
CN109564270B (en) Positioning information determining method and device
CN112748682B (en) Signal sampling processing method, device, equipment and storage medium
CN115670397B (en) PPG artifact identification method and device, storage medium and electronic equipment
CN115015797B (en) Radio frequency power supply signal acquisition method and device
CN105830437B (en) The method and system of Background Recognition in a kind of monitoring system
CN111967616A (en) Automatic time series regression method and device
CN111262538A (en) Audio signal gain adjustment method and device, terminal equipment and audio system
CN110649913B (en) Frequency adjustment method and device for crystal oscillator, storage medium and electronic equipment
CN108805011B (en) Digital filtering method and system
CN109286482B (en) Method and device for realizing clock recovery
CN112328963A (en) Method and device for calculating effective value of signal
CN112865753B (en) Filter coefficient adjusting method and device, storage medium and filter
CN114461984A (en) Temperature data processing method and device, intelligent door lock and storage medium
CN114139575A (en) Data sampling processing method and device, electrical equipment and storage medium
CN114019209B (en) Method and system for measuring electric polarization induction of magnetoelectric composite material
CN114900782A (en) Audio chip testing method, storage medium and computer equipment
US20230137641A1 (en) Method for measuring human physiological state and electronic device
CN112290907A (en) Analog quantity filtering method and device based on embedded system
US9391653B2 (en) Computing filtered signal as mid-value between first and second variables
CN116996166B (en) UWB signal re-marking position determining method, device, equipment and medium
CN110179459B (en) Method, device and system for identifying sleep arousal
CN114397510A (en) Method and device for determining impedance value of impedance pressure measuring equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant