Method, device and computer-readable storage medium for determining a sampling reference value
By segmenting and translating the analog-to-digital conversion signal and selecting a segmented sampling signal with a stable amplitude value as a reference value, the problem of inaccurate reference values in the prior art is solved, and the stability and accuracy of signal analysis are achieved.
Patent Information
- Application Number
- CN202010575878.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-22
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2040-06-22
AI Technical Summary
The method of obtaining the reference value in the prior art is inaccurate, resulting in the inability to stably, reliably and accurately perform data analysis on the signal after analog-to-digital conversion in the presence of noise interference and drift.
The analog-to-digital converted sampling signal is segmented, and the segmented sampling signal whose amplitude value changes within a preset range is selected to determine the signal reference value, including signal segmentation determination and translation processing.
The accuracy of the signal baseline value is improved, ensuring that the algorithm can perform data analysis stably, reliably and accurately under high-frequency and low-frequency interference, thereby improving detection efficiency.
Smart Images

Figure CN113904685B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic technology, and in particular to a method and device for determining a sampling reference value, and a computer-readable storage medium. Background Art
[0002] After being captured by sensors, analog signals, such as temperature, pressure, sound, or images, need to be converted into digital form for easier storage, processing, and transmission. Analog-to-digital converters (ADCs or A / D converters) can convert analog signals into digital signals. However, in most cases, the digital signals converted by the ADC cannot be directly fed into algorithm calculations. Preprocessing of the signals is required, including subtracting a baseline value. This removes common components of the signals and highlights individual differences. Therefore, correctly selecting the baseline value is crucial to the stability, reliability, and accuracy of the corresponding algorithm in data analysis.
[0003] Some technologies use the following methods to obtain the baseline value: 1. Using the stable value in the static state; 2. Using the initial working measurement value; 3. Using the dynamic acquisition measurement value. However, these three methods have the following defects:
[0004] 1. Since noise interference and the sensitivity of the components themselves will cause the signal input to the A / D conversion circuit to continue to change, the reference value obtained by using method 1 is inaccurate.
[0005] 2. Due to the offset of the A / D conversion circuit itself and the influence of various drifts that occur over time and temperature, the reference value obtained by using method 2 is inaccurate.
[0006] 3. Using dynamic acquisition will cause problems such as complex logic, increased power consumption, and measurement timing errors. Therefore, using method 3 is also imperfect and the obtained benchmark value is inaccurate. Summary of the Invention
[0007] In a first aspect, an embodiment of the present application provides a method for determining a signal reference value, comprising:
[0008] Obtaining a sampled signal obtained by analog-to-digital conversion within a preset time period;
[0009] Signal segmentation determination includes: selecting a segmented sampling signal with a set time length from the sampling signal, and the set time length is less than the preset time period; and determining whether the change in the amplitude value of the segmented sampling signal is within a preset range. If so, determining a signal reference value according to the amplitude value of the segmented sampling signal.
[0010] In a second aspect, an embodiment of the present application provides a sampling reference value determination device, comprising: a memory and a processor, the memory being used to store computer instructions; the processor calling the computer instructions to execute the signal reference value determination method as described in any embodiment of the first aspect.
[0011] In a third aspect, an embodiment of the present application provides a computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement the steps of the method described in any embodiment of the first aspect.
[0012] The sampling reference value determination method, device, and computer-readable storage medium provided in at least one embodiment of the present application have the following beneficial effects compared to the prior art: the sampling signal of analog-to-digital conversion is segmented, and segmented sampling signals whose amplitude value changes within a preset range are selected. In the presence of high-frequency interference and low-frequency interference, a relatively stable sampling signal that meets actual needs can be extracted, and the signal reference value is determined based on the amplitude value of the segmented sampling signal, which can improve the accuracy of the signal reference value, thereby ensuring that the algorithm can perform data analysis stably, reliably, and accurately.
[0013] Other features and advantages of the present application will be described in the following description, and in part will become apparent from the description, or will be understood by practicing the present application. Other advantages of the present application can be realized and obtained through the solutions described in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The accompanying drawings are used to provide an understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.
[0015] Figure 1 A flow chart of a method for determining a signal reference value provided by an embodiment of the present invention;
[0016] Figure 2 A schematic diagram of signal segmentation during signal segmentation determination provided by an exemplary embodiment of the present invention;
[0017] Figure 3 A schematic diagram of signal segmentation during signal segmentation determination provided by an exemplary embodiment of the present invention;
[0018] Figure 4 A schematic diagram of signal segmentation during signal segmentation determination provided by an exemplary embodiment of the present invention;
[0019] Figure 5 This is a structural block diagram of a sampling reference value determination device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0020] This application describes multiple embodiments, but this description is exemplary rather than restrictive, and it will be apparent to those skilled in the art that there may be more embodiments and implementations within the scope of the embodiments described herein. Although many possible feature combinations are shown in the drawings and discussed in the detailed description, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with any other feature or element in any other embodiment, or may replace any other feature or element in any other embodiment.
[0021] This application includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The embodiments, features, and elements disclosed in this application may also be combined with any conventional features or elements to form a unique inventive solution defined by the claims. Any features or elements of any embodiment may also be combined with features or elements from other inventive solutions to form another unique inventive solution defined by the claims. Therefore, it should be understood that any feature shown and / or discussed in this application may be implemented individually or in any appropriate combination. Therefore, except for the limitations made according to the appended claims and their equivalents, the embodiments are not subject to other limitations. In addition, various modifications and changes may be made within the scope of protection of the appended claims.
[0022] In addition, when describing representative embodiments, the specification may have presented the method and / or process as a specific sequence of steps. However, to the extent that the method or process does not rely on the specific order of the steps described herein, the method or process should not be limited to the steps in the specific order described. As will be understood by those skilled in the art, other orders of steps are also possible. Therefore, the specific order of the steps set forth in the specification should not be interpreted as a limitation to the claims. In addition, the claims for the method and / or process should not be limited to performing their steps in the order written, and those skilled in the art can readily understand that these orders can be changed and still remain within the spirit and scope of the embodiments of the present application.
[0023] Figure 1 A flow chart of a method for determining a signal reference value provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the signal reference value determination method provided by the embodiment of the present invention may include:
[0024] S101: Acquire a sampling signal obtained by analog-to-digital conversion within a preset time period.
[0025] In this embodiment, a sampling signal generated by analog-to-digital conversion within a preset time period can be obtained from a sampling device. The sampling device can be a sensor such as a temperature, pressure, sound, or image sensor that converts analog signals into digital signals. The obtained sampling signal is captured by the sensor and needs to be converted into a digital signal that is easier to store, process, and transmit.
[0026] In one example, obtaining the sampling signal of analog-to-digital conversion within a preset time period may include: performing sampling after the sampling device is started to obtain the sampling signal of analog-to-digital conversion within the preset time period.
[0027] In this embodiment, when the sampling device starts working, the initial multiple continuous signals are immediately saved. By obtaining a certain section of sampling signals after the sampling device starts working, the signal reference value can be determined. The detection efficiency is high, and the signal reference value that meets the requirements can be extracted without real-time detection, and there is no need to consider the test timing.
[0028] S102: Signal segmentation determination, including: selecting a segmented sampling signal with a set time length from the sampling signal, where the set time length is less than a preset time period; and determining whether the change in the amplitude value of the segmented sampling signal is within a preset range. If so, determining a signal reference value based on the amplitude value of the segmented sampling signal.
[0029] In this embodiment, the acquired sampling signal may be segmented, and one or more segmented sampling signals may be selected from the sampling signal to determine the signal reference value.
[0030] In one example, a segmented sampling signal with a set duration or multiple segmented sampling signals with different starting time points can be randomly selected from the sampling signal to determine whether the selected one or more segmented sampling signals are stationary signals. If the amplitude variation of the segmented sampling signal is within a preset range, the segmented sampling signal is considered a stationary signal. If a segmented sampling signal is a stationary signal, the signal reference value is determined based on the amplitude value of the segmented sampling signal.
[0031] In one example, the sampled signal can be segmented into equal segments, and multiple segmented sampled signals with different starting time points and a set duration are selected. The selected segmented sampled signals are then determined to be stationary signals. If the amplitude variation of the segmented sampled signals is within a preset range, the segmented sampled signal is considered a stationary signal. If a segmented sampled signal is a stationary signal, a signal reference value is determined based on the amplitude value of the segmented sampled signal.
[0032] In one example, determining the signal reference value based on the amplitude values of the segmented sampling signals may include determining the signal reference value as an average amplitude value of the segmented sampling signals. In this embodiment, when determining that a segmented sampling signal is a stationary signal based on changes in the amplitude values of the segmented sampling signals, the average amplitude value of the segmented sampling signal may be used as the signal reference value.
[0033] In an alternative embodiment, the maximum amplitude value and the minimum amplitude value of the segmented sampling signal may be removed, and the average value of the remaining amplitude values may be used as the signal reference value.
[0034] In this embodiment, the signal reference value is used to preprocess the sampling signal obtained by the sampling device, such as subtracting the signal reference value to remove the common part of the sampling signal and highlight individual differences. The sampling signal preprocessed with the signal reference value can be directly transmitted to the specified algorithm operation to ensure that the algorithm is stable, reliable and accurate for data analysis.
[0035] The signal reference value determination method provided in an embodiment of the present invention segments the sampling signal of analog-to-digital conversion and selects segmented sampling signals whose amplitude value changes are within a preset range. In the presence of high-frequency interference and low-frequency interference, it is possible to extract a relatively stable sampling signal that meets actual needs. The signal reference value is determined based on the amplitude value of the segmented sampling signal, which can improve the accuracy of the signal reference value and thereby ensure that the algorithm can perform data analysis stably, reliably and accurately.
[0036] In addition, this embodiment can determine the signal reference value by acquiring a certain period of sampling signal after the sampling device works, which has high detection efficiency and can extract the required signal reference value without real-time detection and without considering the test timing.
[0037] In an exemplary embodiment of the present invention, the segmented sampling signal may include N sampling signals with different starting time points obtained by segmenting the sampling signal, where N is an integer greater than or equal to 2.
[0038] In this embodiment, the acquired sampling signal may be segmented, and the signal reference value may be determined directly based on a plurality of segmented sampling signals having different starting time points.
[0039] In one example, segmenting the sampled signal may include segmenting the sampled signal using N segmentation, where N≥2. In this embodiment, equal segmentation may be used to segment the sampled signal into N segmented sampled signals of equal duration, where N may be, but is not limited to, 2, 3, or 4.
[0040] In one example, this embodiment is described by taking N=2 as an example. The implementation principle when N takes other values is the same as that when N=2, and is not described in detail in this embodiment. Figure 2A schematic diagram of signal segmentation determination provided by an exemplary embodiment of the present invention is shown in FIG. Figure 2 As shown, the sampling signal within the preset time period can be a sequence of m time-continuous digital signals, represented by A(1) to A(m), and the sequence is segmented using a binary method into two equal segments, defined as P1: A(1) to A(m / 2) and P2: A(m / 2+1) to A(m). This embodiment can determine the signal reference value after determining the amplitude values of the segmented sampling signals P1 and P2.
[0041] In an exemplary embodiment of the present invention, the segmented sampling signal may include N sampling signals with different starting time points obtained by segmenting and shifting the sampling signal, and the shift distance is less than the duration of the segmented sampling signal.
[0042] In this embodiment, the sampling signal obtained in the above-mentioned embodiment is segmented and then translated, for example, translated to the left by a preset distance, or translated to the right by a preset distance, but the translation distance is less than the duration of the segmented sampling signal. The signal reference value can be directly determined based on the segmented sampling signals with different starting time points after the translation.
[0043] In one example, when the N-division method is used to segment the sampled signal, the translation distance can be The product of the time length of the segmented sampling signal. Figure 2 Taking the segmented sampling signal shown in the figure as an example, after the sampling signal is segmented by binary division to obtain two segmented sampling signals P1 and P2, P1 and P2 are shifted to the left or right, and the shift distance can be P is the duration of P1 or P2, and the signal reference value is determined based on the shifted P1 and P2.
[0044] In an exemplary embodiment of the present invention, the segmented sampling signal may include N segmented sampling signals with different starting time points obtained by segmenting the sampling signal, and N segmented sampling signals with different starting time points obtained by segmenting and shifting the sampling signal, where the shift distance is less than the duration of the segmented sampling signal.
[0045] In this embodiment, after the acquired sampling signal is segmented, the amplitude values of the multiple segmented sampling signals obtained can be determined first. When the amplitude values of all segmented sampling signals do not satisfy the requirement that the amplitude value change is within a preset range, the segmented sampling signals are shifted to perform signal segmentation determination again.
[0046] In an exemplary embodiment of the present invention, determining whether a change in the amplitude value of the segmented sampling signal is within a preset range may include:
[0047] It is determined in sequence whether the amplitude changes of N segmented sampling signals are within a preset range according to the starting time point. If it is determined that the amplitude change of a segmented sampling signal is within the preset range, the determination is stopped.
[0048] In this embodiment, when determining the signal reference value based on multiple segmented sampling signals with different starting time points, the amplitude values of the segmented sampling signals can be determined in order from the smallest to the largest starting time points. As long as it is determined that the change in the amplitude value of a segmented sampling signal is within a preset range, the determination is stopped and the signal reference value is determined directly based on the amplitude value of the segmented sampling signal. There is no need to wait until all segmented sampling signals are determined before determining the signal reference value, thereby improving the calculation efficiency of the signal reference value.
[0049] In one example, Figure 2 Taking the example of a sampling signal in which two segmented sampling signals P1 and P2 are divided, this embodiment can first determine the amplitude value of the segmented sampling signal P1 with a smaller starting time point. If the change in the amplitude value of P1 is within a preset range, the signal reference value is directly determined based on the amplitude value of P1. If the change in the amplitude value of P1 is not within the preset range, the amplitude value of the segmented sampling signal P2 with a larger starting time point is then determined to determine whether it meets the preset range.
[0050] In an alternative embodiment of the present embodiment, when determining the signal reference value based on multiple segmented sampling signals with different starting time points, the amplitude values of the segmented sampling signals can also be determined in descending order according to the starting time points. As long as it is determined that the change in the amplitude value of a segmented sampling signal is within a preset range, the determination is stopped and the signal reference value is directly determined based on the amplitude value of the segmented sampling signal.
[0051] In an alternative embodiment to this embodiment, when determining the signal reference value based on multiple segmented sampling signals with different starting time points, the amplitude values of all segmented sampling signals may be determined to identify the segmented sampling signals whose amplitude value changes within a preset range. If only one segmented sampling signal is determined to meet the conditions, the signal reference value is directly determined based on the amplitude value of the segmented sampling signal that meets the conditions. If multiple segmented sampling signals are determined to meet the conditions, the segmented sampling signal with the smallest starting time point is selected from the multiple segmented sampling signals that meet the conditions, or a segmented sampling signal is arbitrarily selected, and the signal reference value is determined based on the amplitude value of the selected segmented sampling signal.
[0052] by Figure 2Taking the example of a sampling signal in which the segmented sampling signals P1 and P2 are divided into two segments, this embodiment can simultaneously determine whether the amplitude values of the segmented sampling signals P1 and P2 are within a preset range. If it is determined that only the amplitude value of P2 is within the preset range, the signal reference value is directly determined based on the amplitude value of P2. If it is determined that both the amplitude values of P1 and P2 are within the preset range, the signal reference value is determined based on the amplitude value of the segmented sampling signal P1 with the smaller starting time point, or the signal reference value is determined based on the amplitude value of either P1 or P2.
[0053] In an exemplary embodiment of the present invention, when performing signal segment determination, the following steps may also be included:
[0054] If the change in the amplitude value of the segmented sampling signal is not within the preset range, the signal segmentation judgment is performed again, and the set time length used for this signal segmentation judgment is less than the set time length used for the previous signal segmentation judgment, until the signal reference value is determined or the number of signal segmentation judgments reaches the maximum number allowed.
[0055] In this embodiment, if the amplitude changes of multiple segmented sampling signals obtained from a segmentation are all outside the preset range, the segmentation is repeated to shorten the duration of the segmented sampling signals before determination is made. This method of segmentation, determination, re-segmentation, and re-determination is employed. Once the amplitude change of a segmented sampling signal is determined to be within the preset range, the average value of that segmented signal is selected as the signal reference value.
[0056] In one example, performing the signal segmentation determination again may include: performing the signal segmentation determination again using the segmented sampling signal of the previous signal segmentation determination as a reference signal.
[0057] In this embodiment, when segmenting again, the segmented sampling signal of the previous signal segmentation determination is used as a reference, and the segmented sampling signal of the previous signal segmentation determination is further segmented, and then the signal segmentation determination shown in the above embodiment is performed to determine the signal reference value.
[0058] Figure 3 A schematic diagram of signal segmentation determination provided by an exemplary embodiment of the present invention is shown in FIG. Figure 3 As shown, in this embodiment, multiple segment determinations can be performed during the signal segment determination. The segment sampling signal during the previous signal segment determination is Figure 2 Taking P1 and P2 shown as an example, when the changes in the amplitude values of P1 and P2 are not within the preset range, P1 and P2 are further segmented to form 4 segmented sampling signals, P1, P2, P3 and P4, and the amplitude values of P1, P2, P3 and P4 are judged to determine the signal reference value.
[0059] In one example, performing signal segmentation determination again may include: performing signal segmentation determination again using the sampled signal as a reference signal.
[0060] In this embodiment, during the second segmentation, the duration of the segmented sampling signal is shortened based on the sampling signal as a reference, and the sampling signal is re-segmented. The signal segmentation determination described in the above embodiment is then performed to determine the signal reference value. If the first segmentation uses a binary value to segment the sampling signal to obtain two segmented sampling signals, the second segmentation can use a ternary value (or a quartile value) to segment the sampling signal to obtain three (or four) segmented sampling signals. In this case, the duration of the segmented sampling signal obtained by the second segmentation can be ensured to be shorter than the duration of the segmented sampling signal obtained by the first segmentation.
[0061] In this embodiment of the present invention, if the amplitude of the segmented sampling signal remains outside a preset range, the number of segmentations has exceeded the maximum number allowed, or the number of segmented sampling signals has exceeded the maximum number allowed, the signal segmentation determination is terminated. If a signal reference value is still not selected at this point, the preset reference value S when the sampling device is in a static state is selected as the signal reference value.
[0062] The sampling device's static state refers to a state in which the sampling device is powered and not participating in any dynamic measurement. The sampling device maintains the static state for a period of time until the fluctuation is minimized, that is, when the maximum and minimum values are determined, and (maximum value + minimum value) / 2 is selected as S.
[0063] In an alternative to this embodiment, if the amplitude of the segmented sampling signal remains outside the preset range and the number of segmentations exceeds the maximum allowed, or the number of segmented sampling signals exceeds the maximum allowed, the segmented sampling signal used in the current signal segmentation determination is shifted before the signal segmentation determination described in the above embodiment is repeated. If a signal reference value is still not selected at this point, the preset reference value S when the sampling device is in a static state is selected as the signal reference value.
[0064] Figure 4 A schematic diagram of signal segmentation determination provided by an exemplary embodiment of the present invention is shown in FIG. Figure 4 As shown, in this embodiment, the segmented signal can be judged after the segmented sampling signal is shifted. Figure 3 Taking P1, P2, P3 and P4 as an example, if the changes in the amplitude values of P1, P2, P3 and P4 are not within the preset range, and the number of segmentation times has exceeded the maximum number allowed, or the number of segmented sampling signals has exceeded the maximum number allowed, each segment sequence will be shifted left or right. After that, P is the duration of P1, P2, P3, and P4, and the signal segmentation determination shown in the above embodiment is performed again. From Figure 4 It is highly likely to select the average value of the middle segment of the signal as the signal reference value for analysis.
[0065] In an exemplary embodiment of the present invention, determining whether the change in the amplitude value of the segmented sampling signal is within a preset range may include:
[0066] When the amplitude value of the segmented sampling signal simultaneously satisfies the first preset condition and the second preset condition, or satisfies either the first preset condition or the second preset condition, it is determined that the change in the amplitude value of the segmented sampling signal is within the preset range.
[0067] Among them, the first preset condition may be: amplitude maximum value - amplitude minimum value < K1; the second preset condition may be: S - K2 < amplitude average value < S + K2; K1 is the first preset threshold, K2 is the second preset threshold, and S is the preset reference value in the static state of the sampling device.
[0068] In this embodiment, when determining the amplitude value of each segmented sampling signal, it is judged whether the amplitude value of a certain segmented sampling signal satisfies the above two preset conditions. If either one of the conditions is satisfied or both conditions are satisfied simultaneously, the average value of this segment of the signal is selected as the signal reference value.
[0069] Among them, the first preset threshold and the second preset threshold can be specifically set according to the actual situation, and this embodiment does not limit them here.
[0070] The embodiment of the present invention also provides a sampling reference value determination device. Figure 5 It is the structural block diagram of the sampling reference value determination device provided by the embodiment of the present invention. As Figure 5 shown, the sampling reference value determination device provided by the embodiment of the present invention may include: a memory 501 and a processor 502.
[0071] The memory 501 is used to store computer instructions. The processor 502 may be a central processing unit (CPU for short), or an application specific integrated circuit (ASIC for short), or one or more integrated circuits for implementing the embodiment of the present invention. When the sampling reference value determination device runs, the processor 502 communicates with the memory 501, and the processor 502 calls the computer instructions to perform the following operations:
[0072] Acquire a sampling signal obtained by analog-to-digital conversion within a preset time period; signal segmentation determination, including: selecting a segmented sampling signal with a set time length from the sampling signal, wherein the set time length is less than the preset time period; and determine whether a change in the amplitude value of the segmented sampling signal is within a preset range, and if so, determine a signal reference value according to the amplitude value of the segmented sampling signal.
[0073] In one example, the processor 502 is further configured to:
[0074] If the change in the amplitude value of the segmented sampling signal is not within the preset range, the signal segmentation judgment is performed again, and the set time length used for this signal segmentation judgment is less than the set time length used for the previous signal segmentation judgment, until the signal reference value is determined or the number of signal segmentation judgments reaches the maximum number allowed.
[0075] In one example, the processor 502 performing the signal segmentation determination again may include:
[0076] The signal segmentation determination is performed again using the segmented sampling signal of the previous signal segmentation determination as a reference signal; or, the signal segmentation determination is performed again using the sampling signal as a reference signal.
[0077] In one example, the segmented sampling signal may include N sampling signals with different starting time points obtained by segmenting the sampling signal;
[0078] and / or,
[0079] The segmented sampling signal may include N sampling signals with different starting time points obtained by segmenting and shifting the sampling signal, and the shift distance is less than the duration of the segmented sampling signal;
[0080] Wherein, N is an integer greater than or equal to 2.
[0081] In one example, the processor 502 determining whether the change in the amplitude value of the segmented sampling signal is within a preset range may include:
[0082] It is determined in sequence whether the amplitude changes of N segmented sampling signals are within a preset range according to the starting time point. If it is determined that the amplitude change of a segmented sampling signal is within the preset range, the determination is stopped.
[0083] In one example, the processor 502 determining whether the change in the amplitude value of the segmented sampling signal is within a preset range may include:
[0084] When the amplitude values of the segmented sampling signals satisfy both the first preset condition and the second preset condition, or satisfy either the first preset condition or the second preset condition, it is determined that the change in the amplitude values of the segmented sampling signals is within the preset range;
[0085] Among them, the first preset condition is: amplitude maximum value - amplitude minimum value < K1; the second preset condition is: S - K2 < amplitude average value < S + K2; K1 is the first preset threshold, K2 is the second preset threshold, and S is the preset reference value in the static state of the sampling device.
[0086] In one example, the processor 502 determines the signal reference value according to the amplitude value of the segmented sampling signal, which may include: determining the amplitude average value of the segmented sampling signal as the signal reference value.
[0087] In one example, the processor 502 obtains the sampling signal of analog-to-digital conversion within a preset time period, which may include: sampling after the sampling device is started, and obtaining the sampling signal of analog-to-digital conversion within a preset time period.
[0088] The embodiment of the present invention further provides a computer-readable storage medium, on which computer instructions are stored, and when the instructions are executed by a processor, the steps of the signal reference value determination method described in any one of the above embodiments are implemented.
[0089] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As is well known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable, and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media generally embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
Claims
1. A method for determining a signal reference value, comprising: Acquiring a sampling signal obtained by analog-to-digital conversion within a preset time period, including: acquiring a sampling signal within a preset time period after the sampling device is operating; Signal segmentation determination, including: Selecting a segmented sampling signal having a set time length from the sampling signal, wherein the set time length is less than the preset time period; wherein the segmented sampling signal includes N segmented sampling signals having different starting time points obtained by segmenting the sampling signal, and N segmented sampling signals having different starting time points obtained by segmenting and shifting the sampling signal, wherein the shift distance is less than the time length of the segmented sampling signal; and N is an integer greater than or equal to 2; and, determining whether the change in the amplitude value of the segmented sampling signal is within a preset range; if the change in the amplitude value of the segmented sampling signal is within the preset range, determining a signal reference value according to the amplitude value of the segmented sampling signal, including: determining the amplitude average of the segmented sampling signal as the signal reference value; if the change in the amplitude value of the segmented sampling signal is not within the preset range, performing signal segmentation determination again, and the set time length used for this signal segmentation determination is less than the set time length used for the previous signal segmentation determination, until the signal reference value is determined or the number of signal segmentation determinations reaches the maximum number allowed, then stopping the signal segmentation determination, and if the signal reference value is still not selected at this time, selecting the preset reference value S of the sampling device in the static state as the signal reference value; wherein the static state of the sampling device refers to the state in which the sampling device is stationary and does not participate in any dynamic measurement work when it is powered on; the sampling device maintains the static state for a period of time until the fluctuation is minimized, that is, when the maximum value and the minimum value have been determined, selecting (maximum value + minimum value) / 2 as S; The signal reference value is used to pre-process the sampling signal obtained by the sampling device, including: subtracting the signal reference value to remove the common part of the sampling signal and highlight the individual differences.
2. The method according to claim 1, characterized in that The signal segmentation determination is performed again including: The segmented sampling signal of the previous signal segmentation determination is used as the reference signal to perform signal segmentation determination again; or, The sampling signal is used as a reference signal to perform signal segmentation determination again.
3. The method according to claim 1, characterized in that Determining whether the change in the amplitude value of the segmented sampling signal is within a preset range includes: It is determined in sequence whether the amplitude changes of N segmented sampling signals are within a preset range according to the starting time point. If it is determined that the amplitude change of a segmented sampling signal is within the preset range, the determination is stopped.
4. The method according to claim 1, wherein Determining whether the change in the amplitude value of the segmented sampling signal is within a preset range includes: When the amplitude value of the segmented sampling signal satisfies both the first preset condition and the second preset condition, or satisfies one of the first preset condition and the second preset condition, determining that the change in the amplitude value of the segmented sampling signal is within a preset range; The first preset condition is: maximum amplitude - minimum amplitude < K1; the second preset condition is: S - K2 < average amplitude, including:
5. A sampling reference value determination device, characterized in that: A memory and a processor, the memory is used to store computer instructions; the processor calls the computer instructions to execute the signal reference value determination method according to any one of claims 1 to 4. When the instructions are executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
6. A computer-readable storage medium having computer instructions stored thereon, characterized in that:
Citation Information
Patent Citations
TDDM-BOC (Time Division Data Modulation Binary Offset Carrier) signal double-sideband four-channel capturing method
CN103675852A
Signal processing method, system and computer storage medium
CN109063652A