A processing method, system, device and medium for preventing ultrasonic signal noise
By dynamically adjusting the initial configuration parameters and data splitting processing technology of ultrasonic gas meter, the problem of unstable ultrasonic signal quality is solved, the accuracy of flow calculation is improved, and the gas metering system is guaranteed to operate stably.
Patent Information
- Application Number
- CN202411707231.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2044-11-27
AI Technical Summary
During the data acquisition process, the signal quality is unstable due to the lack of dynamic adjustment mechanism and noise interference, which affects the accuracy of flow calculation.
Dynamic adjustment is made by automatically detecting and obtaining the initial configuration parameters of the ultrasonic gas meter to ensure that the transducer is operating in the optimal state under different operating conditions. At the same time, data splitting technology is used to separate the original ADC waveform data into the signal effective area and the invalid area, and the assignment processing and data splicing are performed to generate more complete and accurate ADC waveform data to be sent.
It improves the stability and quality of ultrasonic signals, reduces the complexity of data processing, enhances the accuracy of flow calculation, and provides guarantee for the stable operation of the gas metering system.
Smart Images

Figure CN119202546B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of signal noise reduction, and in particular to a processing method, system, device and medium for preventing ultrasonic signal noise. Background Art
[0002] In the field of gas metering, ultrasonic gas meters have gradually become the mainstream choice of modern gas metering systems due to their advantages such as high precision, long life and low maintenance cost. Ultrasonic gas meters transmit and receive ultrasonic signals through transducers, and use the time difference of ultrasonic waves propagating in the gas to calculate the gas flow. However, in practical applications, the performance of ultrasonic gas meters is affected by many factors, including the initial configuration parameters of the transducer, environmental noise, signal attenuation, etc. These factors may cause the quality of the collected ultrasonic signals to be unstable, thereby affecting the accuracy of flow calculation.
[0003] Traditional ultrasonic gas meters often lack a dynamic adjustment mechanism for the initial configuration parameters of the transducer during data collection, resulting in the transducer's performance not always being maintained at the optimal state under different working conditions. In addition, since ultrasonic signals are subject to interference from environmental noise during transmission and possible distortion during the conversion of signals between the transducer and the circuit system, the directly collected raw ADC (analog-to-digital converter) waveform data often contains a large number of invalid or low-quality signal components, which not only increase the computational complexity in subsequent data processing, but may also introduce errors, affecting the accuracy of the final flow calculation. Summary of the invention
[0004] In order to solve at least one of the above-mentioned technical problems, the present application provides a processing method, system, device and medium for preventing ultrasonic signal noise.
[0005] In a first aspect, the present application provides a method for preventing ultrasonic signal noise, which adopts the following technical solution:
[0006] When a moment before the data acquisition instruction is detected, the initial configuration parameters of the ultrasonic gas meter are obtained, and the initial configuration parameters are adjusted based on preset parameter configuration rules, and a start instruction is generated after the parameter adjustment is completed to control the transducer of the ultrasonic gas meter to start;
[0007] Acquire the ultrasonic signal generated by the transducer, and determine at least one set of original ADC waveform data based on the ultrasonic signal, wherein the parameters included in the original ADC waveform data are voltage values;
[0008] Performing data splitting on the at least one group of original ADC waveform data to obtain waveform data of a signal invalid region and waveform data of a signal valid region;
[0009] Assigning values to the waveform parameters of the signal invalid area waveform data, and splicing and reorganizing the assigned signal invalid area waveform data with the signal valid area waveform data to obtain at least one set of ADC waveform data to be sent;
[0010] The at least one group of ADC waveform data to be sent is sent to a target terminal and the waveform data is controlled to be displayed.
[0011] By adopting the above technical solution, before the ultrasonic signal data of the ultrasonic gas meter is collected, the initial configuration parameters of the ultrasonic gas meter are automatically detected and obtained, and dynamically adjusted according to the preset parameter configuration rules to ensure that the transducer can work in the optimal state under different working conditions, thereby improving the stability and quality of the ultrasonic signal. Then, for the collected original ADC waveform data, the waveform data containing invalid or low-quality signals (signal invalid area) and the waveform data containing valid signals (signal valid area) are separated by data splitting technology. In order to reduce the complexity of subsequent data processing and improve data processing efficiency. Then, the waveform parameters of the waveform data in the signal invalid area are assigned to simulate or replace the actual signal to reduce the impact of the invalid signal on the overall data quality. Subsequently, the optimized signal invalid area waveform data and the signal valid area waveform data are spliced and reorganized to obtain a more complete and accurate set of ADC waveform data to be sent. The processed ADC waveform data to be sent is sent to the target terminal in a timely and accurate manner, and the control terminal displays the waveform data so that the user or system can intuitively understand the working status and data collection of the ultrasonic gas meter, thereby improving the data collection accuracy and flow calculation accuracy of the ultrasonic gas meter, and providing a strong guarantee for the stable operation of the gas metering system.
[0012] In a possible implementation, data splitting is performed on the at least one set of original ADC waveform data to obtain waveform data in a signal invalid region and waveform data in a signal valid region, including:
[0013] Acquire the ultrasonic transmission signal of the ultrasonic gas meter within a historical period;
[0014] Determine the ultrasonic waveform graphs at different time nodes within the historical period time period and the node waveform features corresponding to the ultrasonic waveform graph based on the ultrasonic transmission signal;
[0015] Determine whether the node waveform feature matches the preset noise waveform feature, and if so, mark the ultrasonic waveform graph corresponding to the node waveform feature to obtain a marked ultrasonic waveform graph;
[0016] Inputting the marked ultrasonic waveform image into a noise discrimination model for training to obtain a trained noise discrimination model;
[0017] Determine a current ultrasonic waveform image according to the at least one set of original ADC waveform data, and input the current ultrasonic waveform image into the trained noise discrimination model for recognition training to obtain a recognition waveform image;
[0018] Determine the marked waveform segment and the unmarked waveform segment according to the identified waveform graph;
[0019] The signal invalid region waveform data corresponding to the marked waveform segment and the signal valid region waveform data corresponding to the unmarked waveform segment are determined based on the at least one set of original ADC waveform data.
[0020] In a possible implementation, the ultrasonic waveform graph corresponding to the node waveform feature is marked to obtain a marked ultrasonic waveform graph, and then the method further includes:
[0021] Performing statistical analysis on the frequency of occurrence of the noise waveform segment of the marked ultrasonic waveform graph to determine the derivation rule of the noise waveform segment within the historical period time period;
[0022] Based on the derived rule, the ultrasonic signal is subjected to noise prediction analysis to obtain an abnormal time region in which the ultrasonic signal has a probability of noise in a future periodic time period;
[0023] When it is detected that the current time matches the abnormal time zone, a noise prevention instruction is generated to control the ultrasonic signal interception device to intercept and check the ultrasonic signal. When there is noise in the ultrasonic signal, a first rule node corresponding to the abnormal time zone in the derived rule is determined, and the first rule node is weighted. When there is no noise in the ultrasonic signal, a second rule node corresponding to the abnormal time zone in the derived rule is determined, and the second rule node is weighted.
[0024] Performing weight analysis on different rule nodes of the derived rule based on the current time and the preset time period to obtain rule node weights;
[0025] The rule node weights are analyzed, and the derived rule is updated based on the analysis result to obtain an updated derived rule.
[0026] In a possible implementation, analyzing the rule node weights and updating the derived rule based on the analysis results to obtain an updated derived rule includes:
[0027] Determine whether the rule node weight meets a preset weight standard. If not, remove the rule node corresponding to the rule node weight to obtain a derived rule after removal and update.
[0028] If the rule node weight is satisfied and meets the high-level standard in the preset weight standard, a priority detection setting is performed on the rule node corresponding to the rule node weight to obtain a derived rule after the setting is updated.
[0029] In a possible implementation, the sending of the at least one set of to-be-sent ADC waveform data to a target terminal and controlling the display of the waveform data also includes:
[0030] Obtain the device suffix name of the target terminal;
[0031] Determine a corresponding data transmission interface according to a preset corresponding relationship and the at least one group of ADC waveform data to be sent;
[0032] Determine the interface type, interface number and interface name based on the data transmission interface, and select and splice the interface type, interface number and interface name according to a preset splicing rule to obtain an interface suffix name of the data transmission interface;
[0033] Based on the preset ultrasonic signal transmission standard, the device suffix name and the interface suffix name, virtual confidential data is constructed, and the at least one group of ADC waveform data to be sent is encrypted and packaged by the virtual confidential data to obtain at least one group of packaged ADC waveform data to be sent.
[0034] In a possible implementation, constructing virtual confidential data based on a preset ultrasonic signal transmission standard, the device suffix name, and the interface suffix name includes:
[0035] Acquiring an ultrasonic safety transmission protocol between the ultrasonic gas meter and the target terminal;
[0036] Determine a transmission encryption algorithm based on the preset ultrasonic signal transmission standard, and calculate and generate a dynamic transmission suffix name according to the transmission encryption algorithm, the ultrasonic security transmission protocol and the interface suffix name;
[0037] The dynamic transmission suffix name and the device suffix name are associated and constructed to obtain virtual confidential data.
[0038] In a possible implementation, the at least one set of to-be-sent ADC waveform data is encrypted and encapsulated by the virtual confidential data to obtain at least one set of encapsulated ADC waveform data to be sent, and then the method further includes:
[0039] When it is detected that the target terminal receives the at least one set of transmitted ADC waveform data, the terminal suffix name of the target terminal is obtained, and the dynamic transmission suffix name is associated with the terminal suffix name to obtain the confidential data to be verified;
[0040] Matching the confidential data to be verified with the virtual confidential data, and when there is a mismatch, discarding the at least one set of encapsulated ADC waveform data to be sent;
[0041] When the match is consistent, the encapsulated at least one group of to-be-sent ADC waveform data is unpacked, and the unpacked at least one group of to-be-sent ADC waveform data is sent to the target terminal.
[0042] In a second aspect, the present application provides a processing system for preventing ultrasonic signal noise, which adopts the following technical solution:
[0043] A processing system for preventing ultrasonic signal noise, comprising:
[0044] A parameter adjustment module, for obtaining the initial configuration parameters of the ultrasonic gas meter at a moment before the data acquisition instruction is detected, adjusting the initial configuration parameters based on preset parameter configuration rules, and generating a start instruction after the parameter adjustment is completed to control the transducer of the ultrasonic gas meter to start;
[0045] A signal acquisition module, used to acquire the ultrasonic signal generated by the transducer, and determine at least one set of original ADC waveform data based on the ultrasonic signal, wherein the parameters included in the original ADC waveform data are voltage values;
[0046] A data splitting module, used for performing data splitting on the at least one group of original ADC waveform data to obtain waveform data of a signal invalid region and waveform data of a signal valid region;
[0047] A data splicing module is used to assign values to the waveform parameters of the signal invalid area waveform data, and to splice and reorganize the assigned signal invalid area waveform data with the signal valid area waveform data to obtain at least one set of ADC waveform data to be sent;
[0048] The data sending module is used to send the at least one group of ADC waveform data to be sent to the target terminal and control the display of the waveform data.
[0049] In a possible implementation, when the data splitting module performs data splitting on the at least one set of original ADC waveform data to obtain the signal invalid area waveform data and the signal valid area waveform data, it is specifically used to:
[0050] Acquire the ultrasonic transmission signal of the ultrasonic gas meter within a historical period;
[0051] Determine the ultrasonic waveform graphs at different time nodes within the historical period time period and the node waveform features corresponding to the ultrasonic waveform graph based on the ultrasonic transmission signal;
[0052] Determine whether the node waveform feature matches the preset noise waveform feature, and if so, mark the ultrasonic waveform graph corresponding to the node waveform feature to obtain a marked ultrasonic waveform graph;
[0053] Inputting the marked ultrasonic waveform image into a noise discrimination model for training to obtain a trained noise discrimination model;
[0054] Determine a current ultrasonic waveform image according to the at least one set of original ADC waveform data, and input the current ultrasonic waveform image into the trained noise discrimination model for recognition training to obtain a recognition waveform image;
[0055] Determine the marked waveform segment and the unmarked waveform segment according to the identified waveform graph;
[0056] The signal invalid region waveform data corresponding to the marked waveform segment and the signal valid region waveform data corresponding to the unmarked waveform segment are determined based on the at least one set of original ADC waveform data.
[0057] In another possible implementation, the system further includes: a rule determination module, a prediction analysis module, a weight adjustment module, a weight analysis module and a rule update module, wherein:
[0058] The rule determination module is used to perform statistical analysis on the frequency of occurrence of the noise waveform segment of the marked ultrasonic waveform image, and determine the derivative rule of the noise waveform segment within the historical cycle time period;
[0059] The prediction and analysis module is used to perform noise prediction and analysis on the ultrasonic signal based on the derived law to obtain an abnormal time region in which the ultrasonic signal has a probability of noise in a future periodic time period;
[0060] The weight adjustment module is used to generate a noise prevention instruction when it is detected that the current time is compatible with the abnormal time area, control the ultrasonic signal interception device to intercept and check the ultrasonic signal, and when the ultrasonic signal has noise, determine the first rule node corresponding to the abnormal time area in the derived rule, and perform weighted processing on the first rule node; when the ultrasonic signal does not have noise, determine the second rule node corresponding to the abnormal time area in the derived rule, and perform weight reduction processing on the second rule node;
[0061] The weight analysis module is used to perform weight analysis on different rule nodes of the derived rule based on the current time and the preset time period to obtain rule node weights;
[0062] The rule updating module is used to analyze the rule node weights and update the derived rule based on the analysis results to obtain an updated derived rule.
[0063] In another possible implementation, when the rule updating module analyzes the rule node weights and updates the derived rule based on the analysis results to obtain the updated derived rule, it is specifically used to:
[0064] Determine whether the rule node weight meets a preset weight standard. If not, remove the rule node corresponding to the rule node weight to obtain a derived rule after removal and update.
[0065] If the rule node weight is satisfied and meets the high-level standard in the preset weight standard, a priority detection setting is performed on the rule node corresponding to the rule node weight to obtain a derived rule after the setting is updated.
[0066] In another possible implementation, the system further includes: a suffix name acquisition module, an interface determination module, an information splicing module, and an encryption packaging module, wherein:
[0067] The suffix name acquisition module is used to obtain the device suffix name of the target terminal;
[0068] The interface determination module is used to determine the corresponding data transmission interface according to the preset corresponding relationship and the at least one group of ADC waveform data to be sent;
[0069] The information splicing module is used to determine the interface type, interface number and interface name based on the data transmission interface, and select and splice the interface type, interface number and interface name according to a preset splicing rule to obtain the interface suffix name of the data transmission interface;
[0070] The encryption and encapsulation module is used to construct virtual confidential data based on a preset ultrasonic signal transmission standard, the device suffix name and the interface suffix name, and encrypt and encapsulate the at least one group of ADC waveform data to be sent through the virtual confidential data to obtain at least one group of encapsulated ADC waveform data to be sent.
[0071] In another possible implementation, when the encryption encapsulation module constructs virtual confidential data based on the preset ultrasonic signal transmission standard, the device suffix name, and the interface suffix name, it is specifically used to:
[0072] Acquiring an ultrasonic safety transmission protocol between the ultrasonic gas meter and the target terminal;
[0073] Determine a transmission encryption algorithm based on the preset ultrasonic signal transmission standard, and calculate and generate a dynamic transmission suffix name according to the transmission encryption algorithm, the ultrasonic security transmission protocol and the interface suffix name;
[0074] The dynamic transmission suffix name and the device suffix name are associated and constructed to obtain virtual confidential data.
[0075] In another possible implementation, the system further includes: a data generating module, a data discarding module and a data unpacking module, wherein:
[0076] The data generating module is used for obtaining the terminal suffix name of the target terminal after detecting that the target terminal has received the at least one set of transmitted ADC waveform data, and associating the dynamic transmission suffix name with the terminal suffix name to obtain the confidential data to be verified;
[0077] The data discarding module is used to match the confidential data to be verified with the virtual confidential data, and when there is a mismatch, discard the at least one group of encapsulated ADC waveform data to be sent;
[0078] The data unpacking module is used to unpack the at least one group of ADC waveform data to be sent after packing when the match is consistent, and send the at least one group of ADC waveform data to be sent after unpacking to the target terminal.
[0079] In a third aspect, the present application provides an electronic device, which adopts the following technical solution:
[0080] at least one processor;
[0081] Memory;
[0082] At least one application, wherein the at least one application is stored in a memory and configured to be executed by at least one processor, and the at least one application is configured to execute a processing method for preventing ultrasonic signal noise as described in any one of the first aspects.
[0083] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution:
[0084] A computer-readable storage medium stores a computer program thereon, which, when executed in a computer, causes the computer to execute a processing method for preventing ultrasonic signal noise as described in any one of the first aspects.
[0085] In summary, the present application includes at least one of the following beneficial technical effects:
[0086] Before collecting ultrasonic signal data of the ultrasonic gas meter, the initial configuration parameters of the ultrasonic gas meter are automatically detected and obtained, and dynamically adjusted according to the preset parameter configuration rules to ensure that the transducer can work in the optimal state under different working conditions, thereby improving the stability and quality of the ultrasonic signal. Then, for the collected original ADC waveform data, the waveform data containing invalid or low-quality signals (signal invalid area) and the waveform data containing valid signals (signal valid area) are separated through data splitting technology. In order to reduce the complexity of subsequent data processing and improve data processing efficiency. Then, the waveform parameters of the waveform data in the signal invalid area are assigned to simulate or replace the actual signal to reduce the impact of the invalid signal on the overall data quality. Subsequently, the optimized signal invalid area waveform data and the signal valid area waveform data are spliced and reorganized to obtain a more complete and accurate set of ADC waveform data to be sent. The processed ADC waveform data to be sent is sent to the target terminal in a timely and accurate manner, and the control terminal displays the waveform data so that the user or system can intuitively understand the working status and data collection of the ultrasonic gas meter, thereby improving the data collection accuracy and flow calculation accuracy of the ultrasonic gas meter, and providing a strong guarantee for the stable operation of the gas metering system. BRIEF DESCRIPTION OF THE DRAWINGS
[0087] Figure 1 A flowchart of a method for preventing ultrasonic signal noise provided in an embodiment of the present application.
[0088] Figure 2 A schematic diagram of raw ADC waveform data of a processing method for preventing ultrasonic signal noise provided in an embodiment of the present application.
[0089] Figure 3 A schematic diagram of ADC waveform data after noise processing in a method for preventing ultrasonic signal noise provided in an embodiment of the present application.
[0090] Figure 4 A schematic diagram of the structure of a processing system for preventing ultrasonic signal noise provided in an embodiment of the present application.
[0091] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0092] The following is combined with Figure 1-5 This application is described in further detail.
[0093] This specific embodiment is merely an explanation of the present application and is not a limitation of the present application. After reading this specification, those skilled in the art may make modifications to the present embodiment without any creative contribution as needed, but as long as they are within the scope of the present application, they are protected by the patent law.
[0094] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution 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. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0095] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.
[0096] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.
[0097] The embodiment of the present application provides a processing method for preventing ultrasonic signal noise, which is executed by an electronic device, which can be a server or a terminal device, wherein the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services. The terminal device can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto. The terminal device and the server can be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiment of the present application. Figure 1 As shown, the method includes:
[0098] Step S10: when the moment before the data acquisition instruction is detected, the initial configuration parameters of the ultrasonic gas meter are obtained, and the initial configuration parameters are adjusted based on the preset parameter configuration rules, and after the parameter adjustment is completed, a start instruction is generated to control the transducer of the ultrasonic gas meter to start.
[0099] For the embodiment of the present application, the data acquisition instruction represents a command signal, which is used to trigger the system to start collecting data from the ultrasonic gas meter, and the time for generating and detecting the data acquisition instruction is preset. The initial configuration parameters refer to the configuration settings of the ultrasonic gas meter in the initial state. These parameters determine the working mode and performance of the meter. The preset parameter configuration rules refer to a set of pre-set rules used to guide how to adjust the configuration parameters of the ultrasonic gas meter to achieve the best working state. Parameter adjustment refers to modifying the initial configuration parameters according to preset rules to adapt to specific working requirements. The start instruction is a control signal used to start the transducer of the ultrasonic gas meter to start working. The transducer is a key component in the ultrasonic gas meter, which is responsible for converting electrical energy into ultrasonic energy, thereby realizing the measurement of gas flow.
[0100] In an embodiment of the present application, the system can monitor the triggering event of the data collection instruction, and once the event is detected, the current configuration parameters of the ultrasonic gas meter are immediately obtained. Then, the system compares and adjusts these parameters one by one according to the preset parameter configuration rules to ensure that each parameter meets the requirements of the optimal working state. Finally, the system generates a start instruction and sends it to the transducer of the ultrasonic gas meter through the communication interface to control its startup. Optionally, another implementation method is that the system can periodically poll the status of the ultrasonic gas meter, and when it detects that data collection is about to be performed, it automatically obtains and adjusts the configuration parameters, and then generates and sends a start instruction. Other methods can also be used for implementation, such as configuring and starting the ultrasonic gas meter through a remote control interface, which is not limited here.
[0101] Step S11: Acquire the ultrasonic signal generated by the transducer, and determine at least one set of original ADC waveform data based on the ultrasonic signal.
[0102] The parameters included in the original ADC waveform data are voltage values.
[0103] For the embodiment of the present application, the original ADC waveform data refers to the digital waveform data obtained through the analog-to-digital conversion (ADC) process. These data directly reflect the voltage changes of the ultrasonic signal and are the basis for subsequent data processing and analysis. The voltage value is a key parameter contained in the original ADC waveform data, which indicates the voltage magnitude of the ultrasonic signal at a specific time point, but the original ADC waveform data contains more than just the voltage value. In the embodiment of the present application, only the voltage value is used as an example, including but not limited to the voltage value as a parameter.
[0104] In an embodiment of the present application, the system is configured with a high-precision ADC module to capture the ultrasonic signal generated by the transducer. Then, by setting a suitable sampling rate and quantization bit number, the ultrasonic signal is converted into an analog-to-digital format to obtain the original ADC waveform data. Then, the system can store or process these data in real time to extract useful information. Optionally, another implementation method is to use a dedicated ultrasonic signal acquisition card, which usually integrates a high-precision ADC module and a signal processing circuit, and can directly acquire and process the ultrasonic signal generated by the transducer. Regardless of which method is used, it is necessary to ensure that the accuracy and sampling rate of the ADC are high enough to accurately reflect the voltage changes of the ultrasonic signal.
[0105] Step S12: split at least one group of original ADC waveform data to obtain waveform data in the signal invalid region and waveform data in the signal valid region.
[0106] Specifically, an ultrasonic transmission signal of an ultrasonic gas meter within a historical period is obtained, and ultrasonic waveforms at different time nodes within the historical period and node waveform features corresponding to the ultrasonic waveforms are determined based on the ultrasonic transmission signals, and it is determined whether the node waveform features match the preset noise waveform features. If so, the ultrasonic waveforms corresponding to the node waveform features are marked to obtain a marked ultrasonic waveform, and the marked ultrasonic waveforms are input into a noise discrimination model for training to obtain a trained noise discrimination model, and a current ultrasonic waveform is determined based on at least one set of original ADC waveform data, and the current ultrasonic waveform is input into the trained noise discrimination model for recognition training to obtain a recognition waveform, and then a marked waveform segment and an unmarked waveform segment are determined based on the recognition waveform, and signal invalid area waveform data corresponding to the marked waveform segment and signal valid area waveform data corresponding to the unmarked waveform segment are determined based on at least one set of original ADC waveform data, such as Figure 2 shown.
[0107] Step S13, assigning values to the waveform parameters of the signal invalid area waveform data, and concatenating and reorganizing the assigned signal invalid area waveform data with the signal valid area waveform data to obtain at least one set of ADC waveform data to be sent.
[0108] In an embodiment of the present application, the signal invalid area waveform data represents the noise part of the ADC waveform data where the data is inaccurate due to various reasons (such as signal interference, environmental interference). Waveform parameters refer to various numerical values (such as amplitude, frequency, phase) that describe the characteristics of the waveform. In the implementation of the present application, the waveform parameters include the mean value, standard deviation or other statistical characteristics of the signal invalid area waveform data. The assignment process refers to the process of setting or modifying the waveform parameters of the signal invalid area waveform data, with the purpose of making it consistent with the signal valid area waveform data to some extent or meet the noise elimination requirements.
[0109] Specifically, the waveform data in the invalid signal area is statistically analyzed to determine the characteristics of the waveform parameters such as the average value or standard deviation. Then, the target value is set according to these characteristics, and the waveform data in the invalid signal area is assigned accordingly. Then, the assigned data is spliced with the waveform data in the valid signal area to obtain the ADC waveform data to be sent, such as Figure 3 shown.
[0110] Step S14: sending at least one set of ADC waveform data to be sent to the target terminal and controlling the display of the waveform data.
[0111] Based on the above embodiment, before the ultrasonic signal data of the ultrasonic gas meter is collected, the initial configuration parameters of the ultrasonic gas meter are automatically detected and obtained, and dynamically adjusted according to the preset parameter configuration rules to ensure that the transducer can work in the optimal state under different working conditions, thereby improving the stability and quality of the ultrasonic signal. Then, for the collected original ADC waveform data, the waveform data (signal invalid area) containing invalid or low-quality signals and the waveform data (signal valid area) containing valid signals are separated by data splitting technology. In order to reduce the complexity of subsequent data processing and improve data processing efficiency. Then, the waveform parameters of the waveform data in the signal invalid area are assigned to simulate or replace the actual signal to reduce the impact of the invalid signal on the overall data quality. Subsequently, the optimized signal invalid area waveform data and the signal valid area waveform data are spliced and reorganized to obtain a more complete and accurate set of ADC waveform data to be sent. The processed ADC waveform data to be sent is sent to the target terminal in a timely and accurate manner, and the control terminal displays the waveform data so that the user or system can intuitively understand the working status and data collection of the ultrasonic gas meter, thereby improving the data collection accuracy and flow calculation accuracy of the ultrasonic gas meter, and providing a strong guarantee for the stable operation of the gas metering system.
[0112] Further, in an embodiment of the present application, an ultrasonic waveform graph corresponding to a node waveform feature is marked to obtain a marked ultrasonic waveform graph, and then the method further includes: performing statistical analysis on the frequency of occurrence of noise waveform segments of the marked ultrasonic waveform graph to determine the derivative law of the noise waveform segments in a historical cycle time period, performing noise prediction analysis on the ultrasonic signal based on the derivative law to obtain an abnormal time area where there is a probability of noise in the ultrasonic signal in a future cycle time period, and when it is detected that the current time matches the abnormal time area, generating a noise prevention instruction to control the ultrasonic signal interception device to verify the ultrasonic signal interception, and when there is noise in the ultrasonic signal, determining a first rule node corresponding to the abnormal time area in the derived rule, and performing weighted processing on the first rule node, and when there is no noise in the ultrasonic signal, determining a second rule node corresponding to the abnormal time area in the derived rule, and performing weight reduction processing on the second rule node, performing weight analysis on different rule nodes of the derived rule based on the current time and a preset time period to obtain rule node weights, analyzing the rule node weights, and updating the derived rule based on the analysis results to obtain an updated derived rule.
[0113] Specifically, image processing technology is used to identify and extract noise waveform segments from the marked ultrasonic waveform image. Then, statistical software or programming language is used to count and analyze the frequency of occurrence of the extracted noise waveform segments. Then, based on the statistical analysis results, a time series graph or distribution graph of the frequency of occurrence of the noise waveform segments is drawn to intuitively display its derivative law. Another optional implementation method is to use a machine learning algorithm to automatically identify and classify the noise waveform segments, and to count the frequency of occurrence of various types of noise waveform segments. Then, time series analysis or pattern recognition methods are used to reveal the derivative laws of noise waveform segments in historical cycle time periods. It is understandable that other methods can also be used to implement this step, such as using a signal processing algorithm to filter and denoise the ultrasonic waveform image to reduce the impact of the noise waveform segment. This is not limited here, and the specific implementation method can be selected according to actual application requirements and system configuration.
[0114] Specifically, a noise prediction model based on derivative rules is established by using time series analysis or pattern recognition methods. Then, the ultrasonic signal data in the future period time period is input into the model to predict the noise waveform segment. Then, based on the prediction results, the abnormal time area is determined and the warning information is output.
[0115] For the embodiment of the present application, it is determined whether the regular node weight meets the preset weight standard. If not, the regular node corresponding to the regular node weight is eliminated to obtain the updated derived rule. If it is satisfied and the regular node weight meets the high-level standard in the preset weight standard, the regular node corresponding to the regular node weight is priority detected and set to obtain the updated derived rule.
[0116] In one possible implementation method of the embodiment of the present application, at least one group of ADC waveform data to be sent is sent to a target terminal and the display of the waveform data is controlled, which also includes: obtaining a device suffix name of the target terminal, determining a corresponding data transmission interface according to a preset corresponding relationship and at least one group of ADC waveform data to be sent, determining an interface type, an interface number and an interface name based on the data transmission interface, and selecting and splicing the interface type, interface number and interface name according to preset splicing rules to obtain an interface suffix name of the data transmission interface, constructing virtual confidential data based on a preset ultrasonic signal transmission standard, a device suffix name and an interface suffix name, and encrypting and encapsulating at least one group of ADC waveform data to be sent through the virtual confidential data to obtain at least one group of encapsulated ADC waveform data to be sent.
[0117] In the embodiment of the present application, in order to ensure the data security and confidentiality of the ultrasonic signal during the transmission process, the present application adopts the technical means of waveform data encryption and encapsulation to encapsulate the ADC waveform data, thereby ensuring the security of the ADC waveform data during the transmission process and avoiding data leakage and malicious tampering.
[0118] Specifically, the ultrasonic security transmission protocol between the ultrasonic gas meter and the target terminal is obtained, the transmission encryption algorithm is determined based on the preset ultrasonic signal transmission standard, and the dynamic transmission suffix name is calculated and generated according to the transmission encryption algorithm, the ultrasonic security transmission protocol and the interface suffix name, and the dynamic transmission suffix name and the device suffix name are associated and constructed to obtain virtual confidential data.
[0119] In a possible implementation method of the embodiment of the present application, at least one group of ADC waveform data to be sent is encrypted and encapsulated by virtual confidential data to obtain at least one group of encapsulated ADC waveform data to be sent, and then it also includes: when it is detected that the target terminal has received at least one group of sent ADC waveform data, the terminal suffix name of the target terminal is obtained, and the dynamic transmission suffix name is associated with the terminal suffix name to obtain confidential data to be verified, and the confidential data to be verified is matched with the virtual confidential data. When there is a mismatch, the at least one group of encapsulated ADC waveform data to be sent is discarded. When the match is consistent, the at least one group of encapsulated ADC waveform data to be sent is unsealed, and the at least one group of unsealed ADC waveform data to be sent is sent to the target terminal.
[0120] The following is an introduction to a processing system for preventing ultrasonic signal noise provided in an embodiment of the present application. The processing system for preventing ultrasonic signal noise described below and the processing method for preventing ultrasonic signal noise described above can be referred to each other. Please refer to Figure 4 , Figure 4 : is a structural schematic diagram of a processing system for preventing ultrasonic signal noise provided by an embodiment of the present application, comprising:
[0121] The parameter adjustment module 41 is used to obtain the initial configuration parameters of the ultrasonic gas meter when the data acquisition instruction is detected before the moment, and adjust the initial configuration parameters based on the preset parameter configuration rules, and generate a start instruction after the parameter adjustment is completed to control the transducer of the ultrasonic gas meter to start;
[0122] A signal acquisition module 42, used to acquire the ultrasonic signal generated by the transducer, and determine at least one set of original ADC waveform data based on the ultrasonic signal, wherein the parameters included in the original ADC waveform data are voltage values;
[0123] A data splitting module 43 is used to split at least one set of original ADC waveform data to obtain waveform data of a signal invalid area and waveform data of a signal valid area;
[0124] The data splicing module 44 is used to assign values to the waveform parameters of the signal invalid area waveform data, and splice and reorganize the assigned signal invalid area waveform data with the signal valid area waveform data to obtain at least one set of ADC waveform data to be sent;
[0125] The data sending module 45 is used to send at least one set of ADC waveform data to be sent to a target terminal and control the display of the waveform data.
[0126] In a possible implementation of the embodiment of the present application, when the data splitting module 43 performs data splitting on at least one set of original ADC waveform data to obtain waveform data in the signal invalid area and waveform data in the signal valid area, it is specifically used to:
[0127] Obtaining ultrasonic transmission signals of ultrasonic gas meters within a historical period;
[0128] Determine the ultrasonic waveform diagrams at different time nodes within the historical period based on the ultrasonic transmission signal and the node waveform features corresponding to the ultrasonic waveform diagram;
[0129] Determine whether the node waveform feature is compatible with the preset noise waveform feature. If so, mark the ultrasonic waveform graph corresponding to the node waveform feature to obtain a marked ultrasonic waveform graph;
[0130] Inputting the marked ultrasonic waveform image into the noise discrimination model for training to obtain a trained noise discrimination model;
[0131] Determine a current ultrasonic waveform image according to at least one set of original ADC waveform data, and input the current ultrasonic waveform image into a trained noise discrimination model for recognition training to obtain a recognition waveform image;
[0132] Determine the marked waveform segment and the unmarked waveform segment according to the recognition waveform diagram;
[0133] The signal invalid region waveform data corresponding to the marked waveform segment and the signal valid region waveform data corresponding to the unmarked waveform segment are determined based on at least one set of original ADC waveform data.
[0134] In another possible implementation of the embodiment of the present application, the system 40 further includes: a rule determination module, a prediction analysis module, a weight adjustment module, a weight analysis module and a rule update module, wherein:
[0135] A rule determination module is used to perform statistical analysis on the frequency of occurrence of the noise waveform segment of the marked ultrasonic waveform image, and determine the derivative rule of the noise waveform segment in the historical period time period;
[0136] A prediction and analysis module is used to perform noise prediction analysis on ultrasonic signals based on derivative rules to obtain abnormal time areas where the ultrasonic signals have a probability of noise in future periodic time periods;
[0137] A weight adjustment module, for generating a noise prevention instruction when it is detected that the current time matches the abnormal time zone, controlling the ultrasonic signal interception device to check the ultrasonic signal interception, and when there is noise in the ultrasonic signal, determining a first rule node corresponding to the abnormal time zone in the derived rule, and performing weighted processing on the first rule node; when there is no noise in the ultrasonic signal, determining a second rule node corresponding to the abnormal time zone in the derived rule, and performing weighted processing on the second rule node;
[0138] A weight analysis module is used to perform weight analysis on different rule nodes of the derived rule based on the current time and the preset time period to obtain the rule node weights;
[0139] The rule updating module is used to analyze the rule node weights and update the derived rules based on the analysis results to obtain updated derived rules.
[0140] In another possible implementation of the embodiment of the present application, the rule updating module analyzes the rule node weights and updates the derived rule based on the analysis results to obtain the updated derived rule, which is specifically used to:
[0141] Determine whether the rule node weight meets the preset weight standard. If not, remove the rule node corresponding to the rule node weight to obtain a derived rule after removal and update.
[0142] If the rule node weight meets the high-level standard in the preset weight standard, the rule node corresponding to the rule node weight is subjected to priority detection and setting to obtain the derived rule after the setting is updated.
[0143] In another possible implementation of the embodiment of the present application, the system 40 further includes: a suffix name acquisition module, an interface determination module, an information splicing module, and an encryption packaging module, wherein:
[0144] The suffix name acquisition module is used to obtain the device suffix name of the target terminal;
[0145] An interface determination module, used to determine a corresponding data transmission interface according to a preset corresponding relationship and at least one set of ADC waveform data to be sent;
[0146] An information splicing module is used to determine the interface type, interface number and interface name based on the data transmission interface, and select and splice the interface type, interface number and interface name according to a preset splicing rule to obtain an interface suffix name of the data transmission interface;
[0147] The encryption and encapsulation module is used to construct virtual confidential data based on a preset ultrasonic signal transmission standard, a device suffix name, and an interface suffix name, and encrypt and encapsulate at least one set of ADC waveform data to be sent through the virtual confidential data to obtain at least one set of encapsulated ADC waveform data to be sent.
[0148] In another possible implementation of the embodiment of the present application, when the encryption encapsulation module constructs virtual confidential data based on the preset ultrasonic signal transmission standard, the device suffix name, and the interface suffix name, it is specifically used to:
[0149] Obtain the ultrasonic safety transmission protocol between the ultrasonic gas meter and the target terminal;
[0150] Determine the transmission encryption algorithm based on the preset ultrasonic signal transmission standard, and calculate and generate the dynamic transmission suffix name according to the transmission encryption algorithm, the ultrasonic security transmission protocol and the interface suffix name;
[0151] The dynamic transmission suffix name and the device suffix name are associated and constructed to obtain virtual confidential data.
[0152] In another possible implementation of the embodiment of the present application, the system 40 further includes: a data generation module, a data discarding module and a data unpacking module, wherein:
[0153] The data generation module is used to obtain the terminal suffix name of the target terminal after detecting that the target terminal has received at least one set of transmitted ADC waveform data, and associate the dynamic transmission suffix name with the terminal suffix name to obtain the confidential data to be verified;
[0154] A data discarding module, used for matching the confidential data to be verified with the virtual confidential data, and discarding at least one group of encapsulated ADC waveform data to be sent when there is a mismatch;
[0155] The data unpacking module is used to unpack at least one group of encapsulated ADC waveform data to be sent when the match is consistent, and send the unpacked at least one group of ADC waveform data to be sent to the target terminal.
[0156] An electronic device provided in an embodiment of the present application is introduced below. The electronic device described below and the processing method for preventing ultrasonic signal noise described above can be referenced to each other.
[0157] The present application embodiment provides an electronic device, such as Figure 5 As shown, Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, Figure 5 The electronic device 500 shown includes: a processor 501 and a memory 503. The processor 501 and the memory 503 are connected, such as through a bus 502. Optionally, the electronic device 500 may also include a transceiver 504. It should be noted that in actual applications, the transceiver 504 is not limited to one, and the structure of the electronic device 500 does not constitute a limitation on the embodiments of the present application.
[0158] Processor 501 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the embodiments of the present application. Processor 501 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0159] The bus 502 may include a path to transmit information between the above components. The bus 502 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 502 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0160] The memory 503 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0161] The memory 503 is used to store application code for executing the solution of the embodiment of the present application, and the execution is controlled by the processor 501. The processor 501 is used to execute the application code stored in the memory 503 to implement the content shown in the above method embodiment.
[0162] Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0163] A computer-readable storage medium provided in an embodiment of the present application is introduced below. The computer-readable storage medium described below and the method described above can be referenced to each other.
[0164] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned processing method for preventing ultrasonic signal noise are implemented.
[0165] Since the embodiments of the computer-readable storage medium part and the embodiments of the method part correspond to each other, the embodiments of the computer-readable storage medium part refer to the description of the embodiments of the method part.
[0166] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0167] The above are only some implementation methods of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for preventing ultrasonic signal noise, characterized in that: include: When a moment before the data acquisition instruction is detected, the initial configuration parameters of the ultrasonic gas meter are obtained, and the initial configuration parameters are adjusted based on preset parameter configuration rules, and a start instruction is generated after the parameter adjustment is completed to control the transducer of the ultrasonic gas meter to start; Acquire the ultrasonic signal generated by the transducer, and determine at least one set of original ADC waveform data based on the ultrasonic signal, wherein the parameters included in the original ADC waveform data are voltage values; Performing data splitting on the at least one group of original ADC waveform data to obtain waveform data of a signal invalid region and waveform data of a signal valid region; Acquire the ultrasonic transmission signal of the ultrasonic gas meter within a historical period; Determine the ultrasonic waveform graphs at different time nodes within the historical period time period and the node waveform features corresponding to the ultrasonic waveform graph based on the ultrasonic transmission signal; Determine whether the node waveform feature matches the preset noise waveform feature, and if so, mark the ultrasonic waveform graph corresponding to the node waveform feature to obtain a marked ultrasonic waveform graph; The step of marking the ultrasonic wave graph corresponding to the node waveform feature to obtain the marked ultrasonic wave graph further includes: Performing statistical analysis on the frequency of occurrence of the noise waveform segment of the marked ultrasonic waveform graph to determine the derivation rule of the noise waveform segment within the historical period time period; Based on the derived rule, the ultrasonic signal is subjected to noise prediction analysis to obtain an abnormal time region in which the ultrasonic signal has a probability of noise in a future periodic time period; When it is detected that the current time matches the abnormal time zone, a noise prevention instruction is generated to control the ultrasonic signal interception device to intercept and check the ultrasonic signal. When there is noise in the ultrasonic signal, a first rule node corresponding to the abnormal time zone in the derived rule is determined, and the first rule node is weighted. When there is no noise in the ultrasonic signal, a second rule node corresponding to the abnormal time zone in the derived rule is determined, and the second rule node is weighted. Performing weight analysis on different rule nodes of the derived rule based on the current time and the preset time period to obtain rule node weights; Analyzing the rule node weights, and updating the derived rule based on the analysis results to obtain an updated derived rule; Assigning values to the waveform parameters of the signal invalid area waveform data, and splicing and reorganizing the assigned signal invalid area waveform data with the signal valid area waveform data to obtain at least one set of ADC waveform data to be sent; The at least one group of ADC waveform data to be sent is sent to a target terminal and the waveform data is controlled to be displayed.
2. A method for preventing ultrasonic signal noise according to claim 1, characterized in that: The step of performing data splitting on the at least one group of original ADC waveform data to obtain waveform data in a signal invalid region and waveform data in a signal valid region includes: Inputting the marked ultrasonic waveform image into a noise discrimination model for training to obtain a trained noise discrimination model; Determine a current ultrasonic waveform image according to the at least one set of original ADC waveform data, and input the current ultrasonic waveform image into the trained noise discrimination model for recognition training to obtain a recognition waveform image; Determine the marked waveform segment and the unmarked waveform segment according to the identified waveform graph; The signal invalid region waveform data corresponding to the marked waveform segment and the signal valid region waveform data corresponding to the unmarked waveform segment are determined based on the at least one set of original ADC waveform data.
3. A method for preventing ultrasonic signal noise according to claim 1, characterized in that: The analyzing the rule node weights and updating the derived rule based on the analysis results to obtain an updated derived rule includes: Determine whether the rule node weight meets a preset weight standard. If not, remove the rule node corresponding to the rule node weight to obtain a derived rule after removal and update. If the rule node weight is satisfied and meets the high-level standard in the preset weight standard, a priority detection setting is performed on the rule node corresponding to the rule node weight to obtain a derived rule after the setting is updated.
4. A method for preventing ultrasonic signal noise according to claim 1, characterized in that: The step of sending the at least one set of ADC waveform data to be sent to the target terminal and controlling the display of the waveform data also includes: Obtain the device suffix name of the target terminal; Determine a corresponding data transmission interface according to a preset corresponding relationship and the at least one group of ADC waveform data to be sent; Determine the interface type, interface number and interface name based on the data transmission interface, and select and splice the interface type, interface number and interface name according to a preset splicing rule to obtain an interface suffix name of the data transmission interface; Based on the preset ultrasonic signal transmission standard, the device suffix name and the interface suffix name, virtual confidential data is constructed, and the at least one group of ADC waveform data to be sent is encrypted and packaged by the virtual confidential data to obtain at least one group of packaged ADC waveform data to be sent.
5. A method for preventing ultrasonic signal noise according to claim 4, characterized in that: The virtual confidential data is constructed based on the preset ultrasonic signal transmission standard, the device suffix name and the interface suffix name, including: Acquiring an ultrasonic safety transmission protocol between the ultrasonic gas meter and the target terminal; Determine a transmission encryption algorithm based on the preset ultrasonic signal transmission standard, and calculate and generate a dynamic transmission suffix name according to the transmission encryption algorithm, the ultrasonic security transmission protocol and the interface suffix name; The dynamic transmission suffix name and the device suffix name are associated and constructed to obtain virtual confidential data.
6. A method for preventing ultrasonic signal noise according to claim 4, characterized in that: The at least one group of ADC waveform data to be sent is encrypted and encapsulated by the virtual confidential data to obtain at least one group of encapsulated ADC waveform data to be sent, and then further includes: When it is detected that the target terminal receives the at least one set of transmitted ADC waveform data, the terminal suffix name of the target terminal is obtained, and the dynamic transmission suffix name is associated with the terminal suffix name to obtain the confidential data to be verified; Matching the confidential data to be verified with the virtual confidential data, and when there is a mismatch, discarding the at least one set of encapsulated ADC waveform data to be sent; When the match is consistent, the encapsulated at least one group of to-be-sent ADC waveform data is unpacked, and the unpacked at least one group of to-be-sent ADC waveform data is sent to the target terminal.
7. A processing system for preventing ultrasonic signal noise, characterized in that: include: A parameter adjustment module, for obtaining the initial configuration parameters of the ultrasonic gas meter at a moment before the data acquisition instruction is detected, adjusting the initial configuration parameters based on preset parameter configuration rules, and generating a start instruction after the parameter adjustment is completed to control the transducer of the ultrasonic gas meter to start; A signal acquisition module, used to acquire the ultrasonic signal generated by the transducer, and determine at least one set of original ADC waveform data based on the ultrasonic signal, wherein the parameters included in the original ADC waveform data are voltage values; A data splitting module, used for performing data splitting on the at least one group of original ADC waveform data to obtain waveform data of a signal invalid region and waveform data of a signal valid region; When the at least one set of original ADC waveform data is split to obtain the signal invalid area waveform data and the signal valid area waveform data, it is specifically used to: Acquire the ultrasonic transmission signal of the ultrasonic gas meter within a historical period; Determine the ultrasonic waveform graphs at different time nodes within the historical period time period and the node waveform features corresponding to the ultrasonic waveform graph based on the ultrasonic transmission signal; Determine whether the node waveform feature matches the preset noise waveform feature, and if so, mark the ultrasonic waveform graph corresponding to the node waveform feature to obtain a marked ultrasonic waveform graph; The system further comprises: a rule determination module, a prediction analysis module, a weight adjustment module, a weight analysis module and a rule update module, wherein: The rule determination module is used to perform statistical analysis on the frequency of occurrence of the noise waveform segment of the marked ultrasonic waveform image, and determine the derivative rule of the noise waveform segment within the historical cycle time period; The prediction and analysis module is used to perform noise prediction and analysis on the ultrasonic signal based on the derived law to obtain an abnormal time region in which the ultrasonic signal has a probability of noise in a future periodic time period; The weight adjustment module is used to generate a noise prevention instruction when it is detected that the current time is compatible with the abnormal time area, control the ultrasonic signal interception device to intercept and check the ultrasonic signal, and when the ultrasonic signal has noise, determine the first rule node corresponding to the abnormal time area in the derived rule, and perform weighted processing on the first rule node; when the ultrasonic signal does not have noise, determine the second rule node corresponding to the abnormal time area in the derived rule, and perform weight reduction processing on the second rule node; The weight analysis module is used to perform weight analysis on different rule nodes of the derived rule based on the current time and the preset time period to obtain rule node weights; The rule updating module is used to analyze the rule node weights and update the derived rule based on the analysis results to obtain an updated derived rule; A data splicing module is used to assign values to the waveform parameters of the signal invalid area waveform data, and to splice and reorganize the assigned signal invalid area waveform data with the signal valid area waveform data to obtain at least one set of ADC waveform data to be sent; The data sending module is used to send the at least one group of ADC waveform data to be sent to the target terminal and control the display of the waveform data.
8. An electronic device, characterized in that: include: at least one processor; Memory; At least one application, wherein the at least one application is stored in a memory and configured to be executed by at least one processor, and the at least one application is configured to execute a processing method for preventing ultrasonic signal noise as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: A computer program is stored which can be loaded by a processor and executes a processing method for preventing ultrasonic signal noise according to any one of claims 1 to 6.
Citation Information
Patent Citations
Data processing method and storage equipment
CN110321063A
Low-power-consumption gas ultrasonic flowmeter system based on STM32
CN111486911A