Method and device for intercepting ADC effective data

By intercepting and judging stable ADC data in the gas industry, the problem of measurement error caused by interference in ultrasonic metering has been solved, and high-precision and high-efficiency flow measurement has been achieved.

CN118965014APending Publication Date: 2024-11-15ZHEJIANG WEIXING INTELLIGENT METER STOCK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410966722.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

In the gas industry, existing technologies are susceptible to interference and metering errors when performing cross-correlation calculations on ADC data of uplink and downlink ultrasonic signals collected at regular intervals. Furthermore, existing filtering methods can affect flow metering response time or increase power consumption.

Method used

The location point is obtained by retrieving the maximum value of the data. The ADC data near the location point is extracted to determine the data stability. Only stable data is selected as the effective data for cross-correlation calculation. The peak point is fitted by Lagrange interpolation. The frequency deviation is used to determine the data stability and eliminate the influence of interference signals.

Benefits of technology

It enables rapid acquisition of stable ADC effective data, reduces measurement errors, maintains high response speed, and improves measurement accuracy and system energy efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118965014A_ABST
    Figure CN118965014A_ABST
Patent Text Reader

Abstract

The invention provides a method and device for intercepting ADC effective data, and belongs to the technical field of ADC data metering. The method for intercepting the effective data of the ADC comprises the following steps: S1, acquiring a positioning point by retrieving the maximum value of the data; s2, intercepting ADC data near the positioning point to obtain multiple groups of first effective data; s3, selecting a group of first effective data, judging whether the group of first effective data is stable or not, if the group of first effective data is judged to be stable, taking the group of first effective data as second effective data for cross-correlation calculation, and if the group of first effective data is judged to be unstable, selecting the next group of first effective data to judge whether the group of first effective data is stable or not; and obtaining a group of first valid data which can be used as second valid data for cross-correlation calculation. According to the method, the influence of interference signals can be effectively eliminated, and meanwhile, the high response speed of flow output is kept, so that the metering precision and the energy efficiency of the system are remarkably improved on the premise that the performance is not sacrificed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of ADC data measurement, and in particular to a method and device for intercepting effective ADC data. Background Art

[0002] In the ultrasonic metering scheme that uses uplink and downlink signals to perform cross-correlation calculations to obtain flow values. Obtaining complete and high-quality received signals is the core of improving metering accuracy, and being able to quickly evaluate effective data for cross-correlation calculations, reduce calculation errors, and reduce the amount of calculated data are the keys to cross-correlation calculation of flight time difference. In the gas industry, the measurement method of obtaining the flight time difference by periodically obtaining the ADC values ​​of the uplink and downlink ultrasonic signals for cross-correlation calculations has the following problems:

[0003] 1. The metering module will collect uplink and downlink signals regularly. The ADC data volume is large, and the flight time difference calculation time is long. When there is interference, the calculated flight time difference will produce errors, and the module cannot determine whether the flight time difference is caused by interference or flow changes. Therefore, it will cause flow calculation errors, which is also one of the main reasons for the zero flow gas leakage problem.

[0004] 2. In order to avoid measurement errors caused by interference or flow leakage problems, most of them use software filtering. One method is to filter the collected data by increasing the collection frequency and then output the flow data. This method will cause power consumption loss. Another method is to filter the collected data without changing the collection frequency. This solution will not increase power consumption, but will affect the response time of flow measurement. Summary of the invention

[0005] In order to solve the above problems, the embodiments of the present application provide a method and device for intercepting effective ADC data.

[0006] In a first aspect, the present application provides a method for intercepting ADC valid data, comprising the following steps:

[0007] S1: Get the positioning point by retrieving the maximum value of the data;

[0008] S2: intercepting ADC data near the positioning point to obtain multiple groups of first valid data;

[0009] S3: Select a group of first valid data and determine whether the group of first valid data is stable. If the group of first valid data is determined to be stable, use the group of first valid data as the second valid data for cross-correlation calculation. If the group of first valid data is determined to be unstable, select the next group of first valid data to determine whether it is stable, until a group of first valid data is obtained that can be used as the second valid data for cross-correlation calculation.

[0010] Preferably, step S1 specifically includes:

[0011] S11: Retrieve the received signal and obtain the peak point coordinates of the entire data;

[0012] S12: Retrieve the highest points of each discrete pulse, fit an envelope based on the highest points of each pulse and the peak point coordinates to form an envelope graph, and calculate the fitted peak point according to the envelope graph;

[0013] S13: Calculate the positioning point according to the fitted peak point.

[0014] Preferably, step S13 specifically includes: Select the peak point coordinates of the first preset number of pulses around the fitted peak point; According to the peak point coordinates of the pulse max(x i , y i ), find that 2 nearby data points satisfy that for any three points (a, f(a)), (b, f(b)), (c, f(c)), a < b < c and f(b) >= f(a) and f(b) >= f(c). According to the Lagrange interpolation method, there is a unique parabola q passing through the three points: According to the formula

[0015] a = x i-1 b = x i c = x i+1 Calculate to obtain the peak point of the parabola; According to Obtain According to

[0016] Obtain the peak point amplitude According to x max , y max Obtain the peak coordinates (x imax , y imax ) of the signal, and use the peak coordinates (x imax , y imax ) as the positioning point, where a, b, and c represent the abscissas of the three points, and δ represents the deviation constant.

[0017] Preferably, step S2 specifically includes: According to the peak point coordinates of each pulse of the fitted entire envelope, locate the effective envelope data range based on the wave peaks and wave valleys to obtain different envelope shapes, and intercept multiple groups of first effective data according to the envelope shapes.

[0018] Preferably, step S3 further includes: If all groups of first effective data are judged to be unstable, then judge that the ADC data interference is serious in this time, and abandon the flow calculation in this time.

[0019] Preferably, determining whether the group of first valid data is stable in step S3 specifically includes:

[0020] A frequency calculation is performed on the group of first valid data to obtain a frequency deviation, and the stability of the group of first valid data is judged according to the frequency deviation. If the frequency deviation satisfies a first preset condition, the group of first valid data is judged to be stable; if the frequency deviation does not satisfy the first preset condition, the group of first valid data is judged to be unstable.

[0021] Preferably, step S3 specifically includes: performing frequency calculation on the peak point of the selected first valid data to obtain the frequency deviation of the data, judging whether the frequency deviation is within a set threshold range, if the frequency deviation meets the set threshold range, judging that the first valid data is stable, and using the first valid data as the second valid data for cross-correlation calculation, if the frequency deviation does not meet the set threshold range, judging that the first valid data is unstable, then selecting the next group of first valid data for frequency calculation and judging the stability, until a group of first valid data is obtained that can be used as the second valid data for cross-correlation calculation.

[0022] In a second aspect, an embodiment of the present application provides a device for intercepting effective ADC data, comprising:

[0023] A positioning point acquisition module is used to obtain the positioning point by retrieving the maximum value of the data;

[0024] A data interception module, used for intercepting ADC data near the positioning point to obtain multiple groups of first valid data;

[0025] A stability judgment module is used to select a group of first valid data and judge whether the group of first valid data is stable. If the group of first valid data is judged to be stable, the group of first valid data is used as the second valid data for cross-correlation calculation. If the group of first valid data is judged to be unstable, the next group of first valid data is selected to judge whether it is stable, until a group of first valid data is obtained that can be used as the second valid data for cross-correlation calculation.

[0026] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method provided in the first aspect or any possible implementation of the first aspect are implemented.

[0027] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method provided in the first aspect or any possible implementation of the first aspect.

[0028] The beneficial effects of the present invention are as follows: the quality of the collected signal is intelligently identified by using ADC data, and the stable second valid data can be quickly intercepted for cross-correlation calculation to obtain the flight time difference; the influence of interference signals can be effectively eliminated while maintaining a high response speed of the flow output, thereby significantly improving the measurement accuracy and the energy efficiency of the system without sacrificing performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0030] Figure 1 A flowchart of a method for intercepting ADC valid data provided by an embodiment of the present application;

[0031] Figure 2 A schematic diagram of the structure of a device for intercepting effective ADC data provided by an embodiment of the present application;

[0032] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0033] Figure 4 A waveform diagram for retrieving and obtaining peak point coordinates in a method for intercepting ADC effective data provided in an embodiment of the present application;

[0034] Figure 5 A waveform diagram of obtaining the coordinates of the pulse peak point in a method for intercepting ADC effective data provided in an embodiment of the present application;

[0035] Figure 6 A waveform diagram adapted to different envelope shapes in a method for intercepting effective ADC data provided in an embodiment of the present application;

[0036] Figure 7 A waveform diagram of the case where the first peak packet is intercepted as valid data in a method for intercepting valid ADC data provided in an embodiment of the present application;

[0037] Figure 8 A waveform diagram of obtaining a second group of valid data in a method for intercepting ADC valid data provided in an embodiment of the present application;

[0038] Fig. 9 A waveform diagram of 5 data of discrete pulse peak values ​​obtained in a method for intercepting effective ADC data provided in an embodiment of the present application;

[0039] Fig.10A normal and complete data waveform diagram in a method for intercepting ADC valid data provided in an embodiment of the present application;

[0040] Fig.11 A waveform diagram with an x-axis coordinate of 323 and a deviation within 10K in a method for intercepting ADC valid data provided in an embodiment of the present application;

[0041] Fig.12 A waveform diagram with an x-axis coordinate of 323 and a deviation exceeding 10K and 15K in a method for intercepting ADC valid data provided in an embodiment of the present application;

[0042] Fig.13 A waveform diagram with an x-axis coordinate of 323 and a deviation exceeding 20K in a method for intercepting ADC valid data provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0044] In the following introduction, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The following introduction provides multiple embodiments of the present application, and different embodiments can be replaced or combined, so the present application can also be considered to include all possible combinations of the same and / or different embodiments recorded. Therefore, if one embodiment includes features A, B, and C, and another embodiment includes features B and D, then the present application should also be considered to include embodiments containing one or more of all other possible combinations of A, B, C, and D, although the embodiment may not be clearly recorded in the following text.

[0045] The following description provides examples and does not limit the scope, applicability or examples set forth in the claims. Changes may be made to the functions and arrangements of the elements described without departing from the scope of the present application. Various processes or components may be appropriately omitted, substituted or added to each example. For example, the described method may be performed in an order different from the order described, and various steps may be added, omitted or combined. In addition, features described in some examples may be combined in other examples.

[0046] See also Figure 1 . Figure 1 1 is a flow chart of a method for intercepting ADC valid data provided by an embodiment of the present application. In the embodiment of the present application, the method comprises the following steps:

[0047] S1: Get the positioning point by retrieving the maximum value of the data;

[0048] S2: Intercept the ADC data near the positioning point to obtain multiple groups of first valid data;

[0049] S3: Select a group of first valid data and determine whether the group of first valid data is stable. If the group of first valid data is determined to be stable, use the group of first valid data as the second valid data for cross-correlation calculation. If the group of first valid data is determined to be unstable, select the next group of first valid data and determine whether it is stable until a group of first valid data can be used as the second valid data for cross-correlation calculation.

[0050] In the embodiment of the present application, in the present application, envelope positioning is first performed to obtain a positioning point, then data is intercepted to obtain first valid data, and finally the stability of the first valid data is judged, so as to obtain the second valid data that can be used for cross-correlation calculation. Through this advanced signal processing technology, the present application not only optimizes the performance of the ultrasonic flowmeter, but also provides an efficient and reliable flow measurement solution for the gas industry.

[0051] In an implementable manner, step S1 specifically includes:

[0052] S11: Retrieve the received signal to obtain the peak point coordinates of the entire data;

[0053] S12: Retrieve the highest points of discrete pulses, fit the envelope according to the highest points of each pulse and the peak point coordinates to form an envelope graph, and calculate the fitted peak point according to the envelope graph;

[0054] S13: Calculate the positioning point according to the fitted peak point.

[0055] In an implementable manner, step S13 specifically includes: Select the peak point coordinates of the first preset number of pulse peaks around the fitted peak point; According to the pulse peak point coordinates max(x i , y i ) Obtain that 2 nearby data points satisfy that for any three points (a, f(a)), (b, f(b)), (c, f(c)), a < b < c and f(b) >= f(a) and f(b) >= f(c). According to Lagrange interpolation method, there is a unique parabola q passing through the three points: According to the formula

[0056] a = x i-1 b = x i c = x i+1 Calculate to obtain the peak point of the parabola; According to Obtain According to

[0057] Obtain the peak point amplitude According to x max ,y max Get the peak coordinates of the signal (x imax ,y imax ), the peak coordinate (x imax ,y imax ) as the positioning points, where a, b, c represent the horizontal coordinates of the three points, and δ represents the deviation constant.

[0058] In one embodiment, step S2 specifically includes: according to the coordinates of each pulse peak point of the fitted entire envelope, locating the effective envelope data range according to the peaks and troughs to obtain different envelope shapes, and intercepting and obtaining multiple groups of first effective data according to the envelope shapes.

[0059] In the embodiment of the present application, step S3 also includes: if the multiple groups of first valid data are all judged to be unstable, it is judged that the interference of the current ADC data is serious, and the current flow calculation is abandoned.

[0060] In the embodiment of the present application, 1. Envelope positioning. The positioning point is obtained by retrieving the maximum value of the data, and the corresponding data is intercepted by the positioning point for step 2 processing;

[0061] 2. Intercept the ADC data near the positioning point, group the data by peak and valley boundaries, and obtain one or more groups of valid data. This data group is only a part of the received ADC discrete data;

[0062] 3. Select a group of first valid data for frequency calculation and judge the stability of the group of data. If the data is stable, select the group of data as the second valid data for cross-correlation calculation. If it is unstable, select the next group of first valid data for judgment, and finally obtain a group of stable second valid data. If the calculation stability in the intercepted valid data group does not meet the set threshold requirements, it is judged that the ADC data interference is serious and the flow calculation is abandoned.

[0063] In one possible implementation manner, determining whether the group of first valid data is stable in step S3 specifically includes:

[0064] A frequency calculation is performed on the group of first valid data to obtain a frequency deviation, and the stability of the group of first valid data is judged according to the frequency deviation. If the frequency deviation satisfies a first preset condition, the group of first valid data is judged to be stable; if the frequency deviation does not satisfy the first preset condition, the group of first valid data is judged to be unstable.

[0065] In an implementable manner, step S3 specifically includes: calculating the frequency of the peak points of the selected first valid data to obtain the frequency deviation of the data, determining whether the frequency deviation is within the set threshold range. If the frequency deviation meets the set threshold range, it is determined that the first valid data is stable, and the first valid data is used as the second valid data for cross-correlation calculation. If the frequency deviation does not meet the set threshold range, it is determined that the first valid data is unstable, and then the next set of first valid data is selected for frequency calculation and stability determination until a set of first valid data can be used as the second valid data for cross-correlation calculation.

[0066] In the embodiment of the present application, refer to Figure 4 , envelope positioning:

[0067] a) Retrieve the peak point coordinates of the received signal.

[0068] Obtain the y of the entire data maxs where the coordinates are (x max , y max )

[0069] b) Retrieve the highest points of each discrete pulse and fit the envelope.

[0070] And obtain the fitted peak point through calculation. As shown in the following figure, take the peak point coordinates of the pulses around the envelope peak point (x i , y i ). The number of points to be calculated can be evaluated according to the estimated required valid data. The number of calculated pulses should be greater than the number of pulses of the estimated valid data.

[0071] According to the discrete point max(x i , y i ), find 2 nearby data points that satisfy for any three points (a, f(a)), (b, f(b)), (c, f(c)), where a < b < c and f(b) >= f(a) and f(b) >= f(c). According to Lagrange interpolation method, there is a unique parabola q passing through the three points:

[0072]

[0073] To obtain the peak point of the parabola, we have:

[0074]

[0075] a = x i-1 b = x i c = x i+1 , and the formula is simplified to According to the formula

[0076] The peak point amplitude can be obtained: The peak coordinates of the signal (x imax ,y imax ), see Figure 5 ,(x imax ,y imax ) is the highest point of each pulse parabola, and the peak coordinate (x imax ,y imax ) as the anchor point.

[0077] c) Intercept multiple groups of valid data in segments:

[0078] According to the coordinates of the peak points of each pulse in the fitted entire envelope, the effective envelope data range is adaptively located (it can be divided according to the peaks and troughs). Figure 6 As shown, different envelope shapes can be adapted to capture a reasonable data range to obtain multiple groups of valid data sets.

[0079] d) Make stability judgment on the selected valid data:

[0080] See also Figure 7-8 , perform frequency calculation on the selected valid data peak point, and determine whether the signal rate deviation is within the set threshold range. If the deviation meets the set range, it is judged as stable valid data, and the valid data can be determined as valid data for calculating the flow. If it is judged to be unstable, select the next set of valid data in the same way, and so on. If the stability calculated from the intercepted data does not meet the set requirements, then discard the received signal, do not perform flow calculation, and wait for the next ADC data to analyze and calculate the flow value.

[0081] In the examples of this application, see Fig. 9 After intercepting the valid data, take a total of 5 data x0~x before and after each discrete peak point of each pulse, and obtain the coordinate data near the peak point of each pulse point according to x0~x 4, The frequency of the pulse can be obtained through three of the points, such as (x1, y1), (x2, y2), (x3, y3) to get the frequency value of the pulse. The calculation formula is as follows: y1 = cos (x1ω-ω), y2 = cos (x2ω), y3 = cos (x3ω+ω), ω is the offset of the sampling point of the horizontal coordinate x, x is the horizontal coordinate, and x is an integer; through y1 = cos (x1ω-ω), y2 = cos (x2ω), y3 = cos (x3ω+ω), we can get: The current sampling frequency f of the known discrete data s is 4M, the current pulse frequency is: Similarly, the frequency value of the pulse can be obtained through the three-point coordinate data (x0, y0), (x2, y2), (x4, y4), y0 = cos (x1ω-2ω), y2 = cos (x2ω), y4 = cos (x3ω+2ω), and the above three formulas can be used to obtain The frequency of the current pulse is calculated based on the data of three points (x0, y0), (x2, y2), and (x4, y4): Since the data of the five points x0 to x4 belong to the same pulse signal, f1 = f2. However, due to the influence of the interference signal, the calculated frequency will deviate, resulting in the calculation result f1≠f2. Therefore, the deviation of f1 and f2 can be used to determine whether there is an interference signal in the five data points, which causes the calculation deviation f. Δ .

[0082] See also Fig.10 , as shown below: Normal and complete data waveform, only the uplink data is listed here, and the downlink data can also use the above calculation to get the frequency deviation. The deviation of the surrounding pulses (first 5 and last 5) of the envelope peak (x-axis coordinate is 323) is within 10K, see Fig.11 As shown. The deviation of the surrounding pulses (5 before and 5 after) at the envelope peak (x-axis coordinate is 323) exceeds 10K and 15K, see Fig.12 As shown. The deviation of the surrounding pulses (5 before and 5 after) at the envelope peak (x-axis coordinate is 323) exceeds 20K, see Fig.13 shown.

[0083] The following will be combined with the attached Figure 2 , a device for intercepting ADC valid data provided by an embodiment of the present application is introduced in detail. It should be noted that the attached Figure 2 A device for intercepting ADC effective data is shown, which is used to execute the present application Figure 1 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 1 The embodiment shown.

[0084] See also Figure 2 , Figure 2 Schematic diagram of a device for intercepting ADC valid data provided by an embodiment of the present application. Figure 2 As shown, the device comprises

[0085] A positioning point acquisition module 201 is used to acquire a positioning point by retrieving the maximum value of data;

[0086] A data interception module 202, used for intercepting ADC data near the positioning point to obtain multiple groups of first valid data;

[0087] The stability judgment module 203 is used to select a group of first valid data and judge whether the group of first valid data is stable. If the group of first valid data is judged to be stable, the group of first valid data is used as the second valid data for cross-correlation calculation. If the group of first valid data is judged to be unstable, the next group of first valid data is selected to judge whether it is stable, until a group of first valid data is obtained that can be used as the second valid data for cross-correlation calculation.

[0088] Those skilled in the art can clearly understand that the technical solutions of the embodiments of the present application can be implemented with the help of software and / or hardware. The "unit", "module" and "part" in this specification refer to software and / or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware can be, for example, a field programmable gate array (Field-Programmable Gate Array, FPGA), an integrated circuit (Integrated Circuit, IC), etc.

[0089] Each processing unit and / or module of the embodiments of the present application may be realized by an analog circuit that implements the functions described in the embodiments of the present application, or may be realized by software that executes the functions described in the embodiments of the present application.

[0090] See also Figure 3 , which shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present application, the electronic device can be used to implement Figure 1 The method in the embodiment shown. Figure 3 As shown, the electronic device 300 may include: at least one central processor 301 , at least one network interface 304 , a user interface 303 , a memory 305 , and at least one communication bus 302 .

[0091] The communication bus 302 is used to realize the connection and communication between these components.

[0092] The user interface 303 may include a display screen (Display) and a camera (Camera), and the optional user interface 303 may also include a standard wired interface and a wireless interface.

[0093] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0094] Among them, the central processing unit 301 may include one or more processing cores. The central processing unit 301 uses various interfaces and lines to connect various parts of the entire electronic device 300, and executes various functions and processes data of the terminal 300 by running or executing instructions, programs, code sets or instruction sets stored in the memory 305, and calling data stored in the memory 305. Optionally, the central processing unit 301 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The central processing unit 301 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics central processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the central processing unit 301, and it can be implemented separately through a chip.

[0095] Among them, the memory 305 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 305 may optionally be at least one storage device located away from the aforementioned central processor 301. As Figure 3 As shown, the memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface module, and program instructions.

[0096] exist Figure 3In the electronic device 300 shown, the user interface 303 is mainly used to provide an input interface for the user and obtain the data input by the user; and the central processor 301 can be used to call an application program stored in the memory 305 to intercept ADC valid data, and specifically perform the following operations:

[0097] S1: Get the positioning point by retrieving the maximum value of the data;

[0098] S2: intercepting ADC data near the positioning point to obtain multiple groups of first valid data;

[0099] S3: Select a group of first valid data and determine whether the group of first valid data is stable. If the group of first valid data is determined to be stable, use the group of first valid data as the second valid data for cross-correlation calculation. If the group of first valid data is determined to be unstable, select the next group of first valid data to determine whether it is stable, until a group of first valid data is obtained that can be used as the second valid data for cross-correlation calculation.

[0100] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.

[0101] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0102] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0103] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0104] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0105] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0106] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program code.

[0107] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by entering a program to instruct the relevant hardware. The program may be stored in a computer-readable memory, and the memory may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0108] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure here, those skilled in the art will easily think of the implementation scheme of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field not recorded in the present disclosure. The description and examples are regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A method for intercepting ADC valid data, It is characterized in that The steps include: S1: Get the positioning point by retrieving the maximum value of the data; S2: intercepting ADC data near the positioning point to obtain multiple groups of first valid data; S3: Select a group of first valid data and determine whether the group of first valid data is stable. If the group of first valid data is determined to be stable, use the group of first valid data as the second valid data for cross-correlation calculation. If the group of first valid data is determined to be unstable, select the next group of first valid data to determine whether it is stable, until a group of first valid data is obtained that can be used as the second valid data for cross-correlation calculation.

2. A method for intercepting ADC effective data as claimed in claim 1, It is characterized in that Step S1 specifically includes: S11: Retrieve the received signal and obtain the peak point coordinates of the entire data; S12: Retrieve the highest point of each discrete pulse, fit the envelope according to the coordinates of the highest point and the peak point of each pulse to form an envelope graph, and calculate the fitted peak point according to the envelope graph; S13: Calculate and obtain the positioning point according to the fitting peak point.

3. A method for intercepting ADC effective data as claimed in claim 2, It is characterized in that Specifically included in step S13 are: selecting the coordinates of the first preset number of pulse peak points around the fitting peak point; obtaining two nearby data points according to the pulse peak point coordinates max(x i , y i ) such that for any three points (a, f(a)), (b, f(b)), (c, f(c)), a < b < c and f(b) >= f(a) and f(b) >= f(c). According to the Lagrange interpolation method, there is a unique parabola q passing through the three points: According to the formula a=x i-1 b = x i c=x i+1 Calculate the parabola peak point; according to Get according to Get the peak point amplitude According to x max ,y max Get the peak coordinates of the signal (x imax ,y imax ), the peak coordinate (x imax ,y imax ) as the positioning points, where a, b, c represent the horizontal coordinates of the three points, and δ represents the deviation constant.

4. The method for intercepting ADC effective data as claimed in claim 3, It is characterized in that Step S2 specifically includes: according to the coordinates of the peak points of each pulse of the fitted entire envelope, locating the effective envelope data range according to the crests and troughs to obtain different envelope shapes, and intercepting and obtaining multiple groups of first effective data according to the envelope shapes.

5. A method for intercepting ADC effective data as claimed in claim 1 or 2, It is characterized in that Step S3 also includes: if the multiple groups of first valid data are all judged to be unstable, it is judged that the interference of the current ADC data is serious, and the current flow calculation is abandoned.

6. A method for intercepting ADC effective data as claimed in claim 1 or 2, It is characterized in that In step S3, judging whether the group of first valid data is stable specifically includes: A frequency calculation is performed on the group of first valid data to obtain a frequency deviation, and the stability of the group of first valid data is judged according to the frequency deviation. If the frequency deviation satisfies a first preset condition, the group of first valid data is judged to be stable; if the frequency deviation does not satisfy the first preset condition, the group of first valid data is judged to be unstable.

7. A method for intercepting ADC valid data as claimed in claim 6, It is characterized in that Step S3 specifically includes: performing frequency calculation on the peak point of the selected first valid data to obtain the frequency deviation of the data, judging whether the frequency deviation is within the set threshold range, if the frequency deviation meets the set threshold range, judging that the first valid data is stable, and using the first valid data as the second valid data for cross-correlation calculation, if the frequency deviation does not meet the set threshold range, judging that the first valid data is unstable, then selecting the next group of first valid data for frequency calculation and judging the stability, until a group of first valid data is obtained that can be used as the second valid data for cross-correlation calculation.

8. A device for intercepting effective ADC data, Features: include A positioning point acquisition module is used to obtain the positioning point by retrieving the maximum value of the data; A data interception module, used for intercepting ADC data near the positioning point to obtain multiple groups of first valid data; A stability judgment module is used to select a group of first valid data and judge whether the group of first valid data is stable. If the group of first valid data is judged to be stable, the group of first valid data is used as the second valid data for cross-correlation calculation. If the group of first valid data is judged to be unstable, the next group of first valid data is selected to judge whether it is stable, until a group of first valid data is obtained that can be used as the second valid data for cross-correlation calculation.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.