Ultrasonic module detection method and system
By using an ultrasonic module testing method, the transparent and resonant ultrasonic data of the gas meter are analyzed and verified, which solves the problem of high defect rate in traditional gas meter testing methods and achieves efficient detection of gas meter defects and measurement accuracy.
Patent Information
- Application Number
- CN202511695200.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-19
- Publication Date
- 2026-02-17
- Estimated Expiration
- 2045-11-19
Smart Images

Figure CN121163631B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to an ultrasonic module detection method and system, belonging to the technical field of digital data processing. BACKGROUND
[0002] The gas flow meter belongs to the flow meter instrument, and records the total volume of gas flow, gas flow rate and other parameters through mechanical or flow meter internal electronic ultrasonic metering device. The gas flow meter is generally called a gas meter, which provides the measurement basis for the actual gas consumption of the gas supply department as the charging standard, and helps users monitor their own gas consumption. In the production factory of the gas meter, the manufacturer will detect the quality of the gas meter. The traditional gas meter detection method is to detect the error of batch gas meters by using the assembly line. This detection method uses a supersonic nozzle to generate high-pressure flowing gas for actual measurement. However, the gas meter detected by the traditional gas meter detection method has a high defect rate. The traditional gas meter detection method has the following problems:
[0003] The traditional gas meter detection method is difficult to detect defects in the structure of the gas meter.
[0004] The traditional gas meter detection method is difficult to accurately verify the measurement error of the ultrasonic module in the gas meter to be detected.
[0005] Therefore, it is necessary to propose an ultrasonic module detection method and system to solve the problem of high defect rate of the detected gas meter. SUMMARY
[0006] The present application provides an ultrasonic module detection method and system, which can solve the problem of high defect rate of the detected gas meter.
[0007] The ultrasonic module detection method provided by the present application comprises:
[0008] Establishing an ultrasonic module start-stop control script.
[0009] Receiving ultrasonic echo data of the ultrasonic module.
[0010] Analyzing the ultrasonic echo data to obtain through-surface ultrasonic data and resonance ultrasonic data.
[0011] Based on the through-surface ultrasonic data, it is determined whether the through-surface ultrasonic data has a clutter signal.
[0012] If the through-surface ultrasonic data has a clutter signal, it is determined that the gas meter to be detected fails the defect inspection.
[0013] If the through-surface ultrasonic data does not have a clutter signal, it is determined that the gas meter to be detected passes the defect inspection.
[0014] Resonance ultrasonic wave data of the gas meter detected through flaw detection.
[0015] Integrate the resonance ultrasonic wave data into the ultrasonic resonance algorithm.
[0016] Obtain the metering accuracy of the gas meter detected through flaw detection.
[0017] Specifically, the supersonic wave is generated when the sonic nozzle passes through the gas meter to be detected. When the supersonic wave passes through the gas meter, two mechanical waves are generated. One is the through-transmission ultrasonic wave, and the other is the resonance ultrasonic wave. The through-transmission ultrasonic wave and the resonance ultrasonic wave form a superimposed wave, which is received by the echo monitoring device of the ultrasonic module.
[0018] In this process, the host computer establishes an ultrasonic module start-stop control script based on the ultrasonic module communication link. The ultrasonic module can receive the start instruction of the start-stop control script and execute the ultrasonic receiving task. When the echo monitoring device of the ultrasonic module receives the start instruction of the start-stop control script, the echo monitoring device of the ultrasonic module receives the superimposed wave formed by the through-transmission ultrasonic wave and the resonance ultrasonic wave.
[0019] After receiving the ultrasonic echo data of the ultrasonic module, the ultrasonic echo data is analyzed to obtain the through-transmission ultrasonic wave data and the resonance ultrasonic wave data. Whether the through-transmission ultrasonic wave data has a clutter signal can determine whether the gas meter to be detected has a flaw. Generally, the through-transmission ultrasonic wave data of the same batch of gas meters is the same. When internal cracks occur in a gas meter, the through-transmission ultrasonic wave data will have a clutter. Whether the gas meter to be detected has a flaw can be determined by whether there is a clutter.
[0020] It is worth mentioning that the ultrasonic echo data can be analyzed by fast Fourier transform to obtain the through-transmission ultrasonic wave data and the resonance ultrasonic wave data.
[0021] Simply, the resonance ultrasonic wave data is calculated by time domain integration. The frequency domain function after integration can be obtained. The number of peaks of the frequency domain function can be calculated to determine the metering accuracy of the gas meter. The amount of gas flowing through the gas meter will produce high-density micro floods due to the pressure of the gas pressure. These high-density micro floods are reflected in the peak value of the frequency domain function in the resonance ultrasonic wave data. By calculating the number of peaks of the frequency domain function, the amount of gas flowing through the gas meter can be determined. The amount of gas flowing through the gas meter detected by the ultrasonic module and the amount of gas flowing through the gas meter detected by the ultrasonic module can be used to determine the metering accuracy of the gas meter detected through flaw detection.
[0022] Further, the ultrasonic module receives the network access request.
[0023] The network access request of the ultrasonic module is analyzed to obtain the API communication interface information of the ultrasonic module.
[0024] Establish a communication link between the ultrasonic module and the API communication interface information.
[0025] Based on the ultrasonic module communication link, the serial port information of the echo monitoring device is received from the ultrasonic module.
[0026] Create a script to control the start and stop of the ultrasonic module.
[0027] The ultrasonic module start / stop control script is sent to the ultrasonic module using the ultrasonic module communication link.
[0028] Based on the serial port information of the echo monitoring device and the start / stop control script of the ultrasonic module, a data receiving link for the echo monitoring device is established.
[0029] Specifically, when the ultrasonic nozzle passes through the ultrasonic module under test through a high-speed airflow, the ultrasonic metering mechanism in the gas meter under test, as an Internet of Things module, has an ultrasonic data receiving module, which is the echo monitoring device of the ultrasonic module.
[0030] The ultrasonic module uses a network access request to establish a network connection with the host computer. The host computer parses the ultrasonic module's network access request to obtain the ultrasonic module's API communication interface information. Using this API communication interface information, a communication link is established between the ultrasonic module and the host computer, enabling communication with the ultrasonic receiving module.
[0031] The ultrasonic module start / stop control script requires a response from the ultrasonic module. Using the ultrasonic module communication link, the host computer sends the ultrasonic module start / stop control script to the ultrasonic module, and the ultrasonic module can respond to the start command or the stop command.
[0032] Based on the serial port information of the echo monitoring device and the start / stop control script of the ultrasonic module, the host computer establishes a data receiving link for the echo monitoring device, and the host computer can receive the ultrasonic echo data of the ultrasonic module.
[0033] Furthermore, a command is issued to activate the ultrasonic module.
[0034] It receives data from the echo monitoring equipment to receive the ultrasonic echo data from the ultrasonic module.
[0035] Create an echo timing diagram.
[0036] Incorporate ultrasonic echo data into the echo time series diagram.
[0037] Receive the time interval length data of the segmented time domain of the echo timing diagram.
[0038] The time axis of the time interval is divided by the length of the time interval that is divided into time intervals.
[0039] Obtain at least one segmented time domain.
[0040] Specifically, after the host computer issues a command to start the ultrasonic module, the echo monitoring device will transmit ultrasonic echo data back through the communication link. Based on the echo timing diagram, the transmitted ultrasonic echo data can be recorded. The echo timing diagram is a three-dimensional orthogonal graph. The parameter of the first orthogonal axis of the echo timing diagram is the echo intensity, the parameter of the second orthogonal axis is the echo frequency, and the parameter of the third orthogonal axis is time.
[0041] The time domain segmentation of the echo timing diagram is achieved by dividing the third orthogonal axis of the echo timing diagram along the extension of the axis.
[0042] Simply put, the segmented time domain of an echo timing diagram is a time interval, which in the echo timing diagram is the length of one time interval along the time axis of the third orthogonal axis. By using the length of the segmented time interval, and dividing the time axis of that time interval, at least one segmented time domain can be obtained. These segmented time domains will have two endpoints; the endpoint furthest from the origin of the coordinate system will contain a planar information map of the echo intensity and frequency.
[0043] Furthermore, the system time is invoked.
[0044] Based on system time, determine the segmented time domain in which the system time is located.
[0045] Define the segmented time domain in which the system time resides as the first target time domain.
[0046] Define the system time-adjacent segmented time domains as the second target time domain.
[0047] The ultrasonic frequency domain distribution of the first target in the time domain and the ultrasonic frequency domain distribution of the second target in the time domain are compared.
[0048] Determine whether the ultrasonic frequency domain distribution of the first target in the time domain matches the ultrasonic frequency domain distribution of the second target in the time domain.
[0049] If the ultrasonic frequency distribution in the first target time domain matches the ultrasonic frequency distribution in the second target time domain, then the ultrasonic frequency distribution data in the first target time domain is retrieved and the data from the receiving echo monitoring device is returned.
[0050] If the ultrasonic frequency distribution in the first target time domain does not match the ultrasonic frequency distribution in the second target time domain, the system time is returned until a shutdown command is received.
[0051] Specifically, system time is a point in time. Based on the length of the time interval of the segmented time domain, the system time is divided into three-dimensional orthogonal systems along the time axis of the three-dimensional orthogonal system. The segmented time domain where the system time is located is the first target time domain, and the segmented time domain adjacent to the system time is the second target time domain.
[0052] At the endpoints of the first target's time domain, there will be a planar information map showing the echo intensity and frequency. This planar information map of the first target's time domain represents the ultrasonic frequency domain distribution within the first target's time domain. Similarly, at the endpoints of the second target's time domain, there will be a planar information map showing the echo intensity and frequency. This planar information map of the second target's time domain represents the ultrasonic frequency domain distribution within the second target's time domain.
[0053] If the planar information diagram of the first target time domain is different from that of the second target time domain, it indicates that the entire ultrasonic module is not in a stable working state, that is, the ultrasonic frequency domain distribution of the first target time domain does not match the ultrasonic frequency domain distribution of the second target time domain.
[0054] If the planar information diagram of the first target time domain is the same as that of the second target time domain, it indicates that the entire ultrasonic module is in a stable working state, that is, the ultrasonic frequency domain distribution of the first target time domain matches the ultrasonic frequency domain distribution of the second target time domain. At this time, it is necessary to call the planar information diagram of the first target time domain.
[0055] Furthermore, storage folders for different testing batches were created.
[0056] The ultrasonic frequency domain distribution data of the first target in the time domain of each batch are included in the storage folder.
[0057] Select the ultrasonic frequency domain distribution data of the first target in the time domain of a batch.
[0058] Create separate folders for transmissive ultrasound data and resonant ultrasound data.
[0059] Based on the ID identifier of the echo monitoring equipment, the ultrasonic frequency domain distribution data with the ID identifier are classified.
[0060] Obtain transmissive ultrasound data and resonant ultrasound data.
[0061] The transparent ultrasonic data in the ultrasonic frequency domain distribution data of the first target in the time domain is included in the transparent ultrasonic data belonging folder.
[0062] The resonant ultrasonic data in the ultrasonic frequency domain distribution data of the first target in the time domain is included in the resonant ultrasonic data subfolder.
[0063] Return the ultrasonic frequency domain distribution data of the first target in the selected batch in the time domain, until all batches have been selected.
[0064] Specifically, when each batch of gas meters undergoes ultrasonic testing, the ultrasonic module, while in a stable operating state, will retrieve the first target time domain planar information map. Storage folders for different testing batches are created, and the ultrasonic frequency domain distribution data of the first target time domain for each batch—that is, the first target time domain planar information map for each batch—is included in these storage folders.
[0065] The ultrasonic frequency domain distribution data of the first target in a batch can be used to obtain a planar information map of the first target in the time domain. By analyzing the ultrasonic echo data in the planar information map of the first target in the time domain using Fast Fourier Transform, transparent ultrasonic data and resonant ultrasonic data can be obtained.
[0066] For each different batch of tests, create separate folders for transmissive ultrasonic data and resonant ultrasonic data. Include the transmissive ultrasonic data from the first target time-domain ultrasonic frequency distribution data in the transmissive ultrasonic data folder. Include the resonant ultrasonic data from the first target time-domain ultrasonic frequency distribution data in the resonant ultrasonic data folder.
[0067] Furthermore, all transparent ultrasonic data are retrieved from their respective folders.
[0068] Two transparent ultrasonic data sets were randomly selected and placed into separate folders using a random algorithm.
[0069] Determine whether the frequency domain distribution of the ultrasonic data from two transparent surfaces matches within their respective folders.
[0070] If the ultrasonic frequency domain distributions of the two transparent ultrasonic data belonging to different folders match, then any one of the ultrasonic frequency domain distributions in the two transparent ultrasonic data belonging to different folders shall be used as the standard ultrasonic frequency domain distribution data model.
[0071] If the ultrasonic frequency domain distributions in the two transparent ultrasonic data folders do not match, then return to the method of randomly selecting two transparent ultrasonic data folders using a random algorithm until a standard ultrasonic frequency domain distribution data model is generated.
[0072] Specifically, it retrieves all the folders containing the transparent ultrasonic data, randomly selects two folders containing the transparent ultrasonic data, and can retrieve the transparent ultrasonic data in these two folders.
[0073] Generally, gas meters from different batches are made using the same mold, and the ultrasonic data from these transmissive surfaces are identical. When the ultrasonic frequency domain distributions of two transmissive ultrasonic data sets in different folders match, then any one of the ultrasonic frequency domain distributions in the folders of the two transmissive ultrasonic data sets is taken as the standard ultrasonic frequency domain distribution data model.
[0074] Standard ultrasonic frequency domain distribution data models can be used to determine whether other transparent ultrasonic data contain clutter signals.
[0075] Furthermore, the standard ultrasonic frequency domain distribution data model is invoked.
[0076] Select a folder to store the transmissive ultrasonic data.
[0077] Receive ultrasonic frequency domain distribution data from folders containing transparent ultrasonic data.
[0078] Determine whether the ultrasonic frequency domain distribution data matches the standard ultrasonic frequency domain distribution data model.
[0079] If the ultrasonic frequency domain distribution data matches the standard ultrasonic frequency domain distribution data model, then the transparent ultrasonic data does not have clutter signals. Return to the previous step and select a folder to which the transparent ultrasonic data belongs, until all folders to which the transparent ultrasonic data belongs have been selected.
[0080] If the ultrasonic frequency domain distribution data does not match the standard ultrasonic frequency domain distribution data model, then the unreliability judgment value of the standard ultrasonic frequency domain distribution data model is incremented by one.
[0081] Place the selected transmissive ultrasonic data into the folder containing the transmissive ultrasonic data to be selected.
[0082] Return to the previous step and select a folder to which the transparent ultrasonic data belongs, until all folders to which the transparent ultrasonic data belongs have been selected.
[0083] Determine if the number of folders to which the selected transmissive ultrasonic data belongs is zero.
[0084] If the number of folders containing the ultrasonic data to be selected is zero, then the defect inspection step ends.
[0085] If the number of folders to which the selected transparent ultrasonic data belongs is not zero, then it is further determined whether the unreliability determination value of the standard ultrasonic frequency domain distribution data model is greater than or equal to the unreliability determination number threshold.
[0086] If the unreliability judgment value of the standard ultrasonic frequency domain distribution data model is greater than or equal to the unreliability judgment number threshold, then return to call all transparent ultrasonic data belonging to the folder until the defect inspection step ends.
[0087] If the unreliability judgment value of the standard ultrasonic frequency domain distribution data model is less than the unreliability judgment number threshold, then each gas meter corresponding to the folder to be selected for transparent ultrasonic data will be classified as a defective quality inspection result.
[0088] Specifically, select the folder containing the transparent ultrasonic data. If the ultrasonic frequency domain distribution data in the selected folder matches the standard ultrasonic frequency domain distribution data model, then the transparent ultrasonic data does not contain clutter signals. If the ultrasonic frequency domain distribution data in the selected folder does not match the standard ultrasonic frequency domain distribution data model, it indicates that the ultrasonic frequency domain distribution data in the selected folder contains clutter signals. Transparent ultrasonic data containing clutter signals generally corresponds to gas meters with defects.
[0089] When the ultrasonic frequency domain distribution data in the selected transparent ultrasonic data folder does not match the standard ultrasonic frequency domain distribution data model, an anomaly in the standard ultrasonic frequency domain distribution data model may occur. To reduce detection errors, the unreliability judgment value of the standard ultrasonic frequency domain distribution data model will be incremented by one. If the unreliability judgment value of the standard ultrasonic frequency domain distribution data model is greater than or equal to the unreliability judgment number threshold, the process will return to the step of randomly selecting two transparent ultrasonic data folders using a random algorithm and reselecting the standard ultrasonic frequency domain distribution data model.
[0090] If the unreliability threshold of the standard ultrasonic frequency domain distribution data model is less than the unreliability threshold number, then the standard ultrasonic frequency domain distribution data model is considered reliable. Generally, this unreliability threshold number is a constant value of three per thousand of the total number of gas meters being tested.
[0091] Assuming the standard ultrasonic frequency domain distribution data model is reliable, the gas meters corresponding to the transparent ultrasonic data in the folders to be selected can all be identified as defective gas meters.
[0092] Furthermore, the resonant ultrasonic data of each gas meter that passed the defect inspection is retrieved from its respective folder.
[0093] Select a folder to store the resonant ultrasound data.
[0094] Retrieve resonance ultrasound data from the folder containing the resonance ultrasound data.
[0095] By using continuous Fourier transform, ultrasonic data for each resonant frequency value in the resonant ultrasonic data is extracted.
[0096] Obtain at least one ultrasound data point.
[0097] Based on the resonant frequency value of the gas, the resonant ultrasonic data of the gas are determined.
[0098] Time-domain integration was performed on the resonant ultrasonic data of the air.
[0099] Obtain the frequency domain distribution of the resonant ultrasonic waves of the air.
[0100] Include the airflow velocity from the resonant ultrasonic data in the selected resonant ultrasonic data folder. The airflow velocity is the ratio of the number of characteristic peaks in the frequency domain distribution of the air's resonant ultrasonic data to the length of the time interval.
[0101] Return to the previous step and select a folder to which the resonant ultrasound data belongs, until all folders to which the resonant ultrasound data belongs have been selected.
[0102] Specifically, the ultrasonic module performs ultrasonic testing on each gas meter, and the test data for one gas meter constitutes a batch. Each gas meter corresponds to two folders: one for transmissive ultrasonic data and another for resonant ultrasonic data.
[0103] If the transparent ultrasonic data in the folder matches the standard ultrasonic frequency domain distribution data model, it means that the gas meter has passed the defect detection.
[0104] Select the folder containing the resonant ultrasonic data of this gas meter, and retrieve the resonant ultrasonic data from that folder. Using continuous Fourier transform, extract the ultrasonic data for each resonant frequency value. This resonant frequency data includes the resonant ultrasonic data of the gas within the gas meter and the resonant ultrasonic data of the gas meter body. Retrieve the gas resonant ultrasonic data to obtain the gas's resonant ultrasonic waves. Perform time-domain integration on the gas's resonant ultrasonic waves to obtain the frequency domain distribution of the gas's resonant ultrasonic waves.
[0105] Generally, the frequency domain distribution of resonant ultrasonic waves in air is periodic. The airflow velocity can be obtained by using the ratio of the number of characteristic peaks to the length of the time interval in this frequency domain distribution. By including the airflow velocity from the resonant ultrasonic data in the selected resonant ultrasonic data folder, the airflow velocity in the resonant ultrasonic data can be used as judgment data to determine the accuracy of airflow measurement in gas meters.
[0106] Furthermore, select a folder containing the resonant ultrasonic data of a gas meter that has passed the defect inspection.
[0107] The airflow velocity is received from the resonant ultrasonic data.
[0108] The system retrieves the measured airflow velocity from the gas meters in the selected resonant ultrasonic data folder.
[0109] Determine whether the airflow velocity in the resonant ultrasonic data matches the measured airflow velocity.
[0110] If the airflow velocity in the resonant ultrasonic data matches the measured airflow velocity, then the gas meter that passed the defect inspection is confirmed to have accurate measurement accuracy.
[0111] If the airflow velocity in the resonant ultrasonic data does not match the measured airflow velocity, it is determined that the gas meter that passed the defect quality inspection is inaccurate.
[0112] Return to the previous step and select a folder to which the resonant ultrasound data belongs, until all folders to which the resonant ultrasound data belongs have been selected.
[0113] The present invention provides an ultrasonic module testing system, comprising:
[0114] The host computer is used to execute the ultrasonic module testing method described above.
[0115] The memory is connected to the host computer for communication.
[0116] Specifically, the host computer establishes an ultrasonic module start / stop control script based on the ultrasonic module's communication link. The ultrasonic module can receive the start command from the start / stop control script and execute the ultrasonic receiving task. When the ultrasonic module's echo monitoring device receives the start command from the start / stop control script, the echo monitoring device will receive the superimposed wave formed by the transparent ultrasonic waves and the resonant ultrasonic waves.
[0117] After receiving the ultrasonic echo data from the ultrasonic module, the ultrasonic echo data is analyzed to obtain through-surface ultrasonic data and resonant ultrasonic data. The presence of noise signals in the through-surface ultrasonic data can be used to determine if the gas meter under test has defects. Generally, the through-surface ultrasonic data of gas meters in the same batch are identical. When a gas meter has an internal crack, noise will appear in the through-surface ultrasonic data. The presence or absence of noise can be used to determine if the gas meter under test has defects.
[0118] Resonant ultrasonic data, through time-domain integration, yields a frequency-domain function. The number of peaks in this frequency-domain function determines the metering accuracy. The flow of gas through the meter generates high-density micro-peaks due to pressure variations. These peaks are represented as peaks in the frequency-domain function of the resonant ultrasonic data. By counting these peaks, the flow rate through the meter can be determined. Using the metered flow rate and the ultrasonic module's detection of the flow rate, the metering accuracy of a meter that has passed defect inspection can be determined.
[0119] The beneficial effects of this invention are:
[0120] When the ultrasonic metering mechanism is subjected to ultrasonic waves generated by the sonic airflow, the meter resonates. Part of the ultrasonic waves that pass through the meter and the resonant waves form superimposed ultrasonic echoes. The echo monitoring equipment of the ultrasonic module can detect these echoes. By acquiring these echoes, defects and measurement accuracy of the gas meter can be detected efficiently and quickly. Using the analytical data of multiple batches of ultrasonic echoes, the transmitted ultrasonic data of each gas meter can be compared in the same direction. When noise is found in the transmitted ultrasonic data, a defect in the gas meter can be identified. Since the transmitted ultrasonic data of each batch is largely similar, two transmitted ultrasonic data sets can be selected using a random algorithm to find a standard ultrasonic frequency domain distribution data model. Comparing the transmitted ultrasonic data of each batch with the standard ultrasonic frequency domain distribution data model allows for the rapid identification of defective ultrasonic data. Setting an unreliable judgment threshold for the standard ultrasonic frequency domain distribution data model can reduce the error in judging defective gas meters by the standard ultrasonic frequency domain distribution data model. By analyzing the resonant ultrasonic data, the airflow rate detected by the ultrasonic module in the gas meter can be determined. By comparing the airflow rate measured by the gas meter, the accuracy of the meter's measurement value can be determined, which is a relatively effective way to determine the meter's measurement accuracy. Attached Figure Description
[0121] Figure 1 This is a schematic flowchart of an ultrasonic module testing method according to an embodiment of the present invention;
[0122] Figure 2 This is a timing diagram of the distribution mismatch echo in an ultrasonic module detection method according to an embodiment of the present invention;
[0123] Figure 3 This is a distribution-matched echo timing diagram of an ultrasonic module detection method according to an embodiment of the present invention;
[0124] Figure 4 This is a diagram showing the through-surface ultrasonic data and resonant ultrasonic data of an ultrasonic module testing method according to an embodiment of the present invention.
[0125] Figure 5 This is a frequency domain distribution diagram of the resonant ultrasonic waves in an ultrasonic module detection method according to an embodiment of the present invention.
[0126] Figure 6 This is a structural connection diagram of an ultrasonic module testing system according to an embodiment of the present invention.
[0127] Figure label:
[0128] 100 - Host computer; 200 - Memory. Detailed Implementation
[0129] To make the objectives, technical solutions, and advantages of the present invention clearer, the technical solutions of the present invention will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0130] like Figure 1 As shown, the ultrasonic module testing method provided by the present invention includes:
[0131] S100, create the ultrasonic module start / stop control script.
[0132] Specifically, S110 receives the network access request from the ultrasonic module.
[0133] S120 parses the network access request of the ultrasonic module to obtain the API communication interface information of the ultrasonic module.
[0134] S130 establishes a communication link between the ultrasonic module and the API communication interface information of the ultrasonic module.
[0135] S140, based on the ultrasonic module communication link, receives serial port information from the echo monitoring device of the ultrasonic module.
[0136] S150, Create the ultrasonic module start / stop control script.
[0137] S160 uses the ultrasonic module communication link to send the ultrasonic module start / stop control script to the ultrasonic module.
[0138] S170 establishes a data receiving link for the echo monitoring device based on the serial port information of the echo monitoring device and the start / stop control script of the ultrasonic module.
[0139] The host computer continuously monitors network access signals initiated within the network. Each ultrasonic module, when initiating a network access request, carries its own basic identification information, including but not limited to the device's unique ID, initial communication signal strength, preset communication frequency band parameters, and the coordinates of the module's physical installation location (in the case of a multi-module collaborative scenario). The host computer temporarily stores these received network access request information, forming a set containing multiple request nodes. Each request node can be abstracted as a set of data points containing the aforementioned multi-dimensional parameters.
[0140] Before parsing, the request nodes collected in S110 are processed: First, the physical installation location coordinates (or spatial mapping coordinates of the communication signal coverage area) of each request node are used as core parameters to construct a two-dimensional or three-dimensional point set space. Then, the point set is delineated by boundary division, that is, based on the distribution density and spatial correlation of the point set, a concave polygon boundary (or a concave boundary in high-dimensional space) that can tightly enclose most of the valid request nodes is generated. The function of this concave boundary is to filter out request nodes within a reasonable communication range. Data points that fall inside or on the concave boundary are determined to be valid network access request nodes, while data points that fall outside the concave boundary (usually modules with abnormal signal strength, locations deviating from reasonable installation areas, or parameter conflicts) are marked as abnormal network access request nodes and temporarily excluded from the subsequent parsing process.
[0141] For the valid network access request nodes selected by the concave hull algorithm, the host computer then parses the information they carry and extracts the API communication interface information of each ultrasonic module, including key information such as interface protocol type, data transmission baud rate, encryption method, and interface access permissions.
[0142] Before establishing a link, the API interface information of valid request nodes undergoes secondary verification: parameters such as API interface protocol compatibility and historical communication stability scores for each module are transformed into new feature points, constructing an interface feature point set. A concave hull algorithm is used to calculate the boundaries of this feature point set, determining a standard interface feature concave hull range. This range is fitted by the interface feature points of historically verified stable communication modules. If the interface feature points of the current valid request node fall within this standard concave hull range, its interface information is determined to be compatible with the host computer's communication protocol. If it exceeds the range, an interface parameter adaptation and adjustment process is triggered until its feature points are included within the standard concave hull range. Then, based on the adapted API communication interface information, bidirectional communication links between the host computer and each ultrasonic module are established one by one.
[0143] At this point, the concave hull algorithm is used to monitor the stability of the communication link in real time: the serial port information transmission delay and data packet loss rate of each module within a unit of time are used as dynamic feature points to construct a real-time transmission feature point set. Every preset time interval (e.g., 100 milliseconds), the concave hull algorithm is run to generate the concave boundary of the current transmission feature point set. If the real-time transmission feature points of a certain module continuously exceed the concave boundary (i.e., the delay or packet loss rate is abnormal), it is determined that there is a temporary fault in the serial port of the echo monitoring device of that module. The host computer will temporarily interrupt the reception of serial port information with that module, and resume reception after its feature points return to the concave hull range, to ensure that the acquired serial port information is accurate and complete.
[0144] During script development, the triggering conditions and execution logic of the script are determined using a concave hull algorithm: First, historical data on the normal start-stop response time and command execution success rate of each module under different operating conditions (such as no-load, full-load, and different water temperatures) are collected to construct a set of operating condition and response feature points. This set is then analyzed using the concave hull algorithm to generate normal response concave hull intervals for different operating conditions. These intervals are embedded in the start-stop control script as the basis for judgment. For example, if the start command response time of a module falls within the normal concave hull interval of the corresponding operating condition, the script determines that its start-up is normal. If it exceeds the interval, the script automatically triggers a retry mechanism or a fault alarm command.
[0145] During transmission, the concave hull algorithm is used to verify the integrity of data transmission: the script data is split into multiple data blocks according to a fixed fragment size, and the check value of each data block is used as a feature point to construct a transmission check point set; the reasonable check range of this point set is calculated by the concave hull algorithm. If the check point of a certain data block exceeds the concave hull range, it is determined that the fragment transmission is incorrect, and the host computer will resend the data block until the check points of all fragments fall within the concave hull range, ensuring that the start and stop control script received by the module is complete and error-free.
[0146] At this point, the concave hull algorithm is used to define the effective threshold range for data reception: combining parameters such as baud rate and data bits in the serial port information, as well as the sampling frequency set in the start / stop control script, a set of performance characteristic points of the receiving link (such as maximum data throughput and minimum reception delay) is constructed; the effective concave hull boundary of this point set is generated by the concave hull algorithm, and various parameters of the data receiving link (such as buffer size and reception frequency) will be configured to always fall within the concave hull boundary, ensuring that the link can stably receive ultrasonic echo data transmitted by the echo monitoring device and avoid data loss or reception delay caused by parameters exceeding the reasonable range.
[0147] By incorporating the concave hull algorithm into the above sub-steps, effective device nodes can be accurately selected, communication compatibility can be verified, and transmission stability can be monitored, ultimately establishing a stable and reliable ultrasonic module communication and control system.
[0148] Simply put, the ultrasonic module start / stop control script requires a response from the ultrasonic module. Using the ultrasonic module communication link, the host computer sends the ultrasonic module start / stop control script to the ultrasonic module, and the ultrasonic module can respond to the start command or the stop command.
[0149] Based on the serial port information of the echo monitoring device and the start / stop control script of the ultrasonic module, the host computer establishes a data receiving link for the echo monitoring device, and the host computer can receive the ultrasonic echo data of the ultrasonic module.
[0150] S200 receives ultrasonic echo data from the ultrasonic module.
[0151] Specifically, S211 issues a command to start the ultrasonic module.
[0152] S212 receives data from the echo monitoring device to receive ultrasonic echo data from the ultrasonic module.
[0153] S213, Create the echo timing diagram.
[0154] S214, incorporate ultrasonic echo data into the echo timing diagram.
[0155] S215 receives the time interval length data of the segmented time domain of the echo timing diagram.
[0156] S216, using the length of the time interval in the time domain, divides the time axis of the time interval length.
[0157] S217, obtain at least one segmented time domain.
[0158] Simply put, at the same frequency, the vertical axis of the echo time sequence diagram represents the ultrasonic echo intensity, and the horizontal axis represents time. The change of echo intensity at a certain fixed frequency with time can form a continuous intensity-time curve. In specific operation, first extract the intensity-time curve corresponding to a certain reference frequency (such as the natural resonant frequency of water) from the echo time sequence diagram, and uniformly sample the curve in time order to obtain a series of discrete time and intensity data points, denoted as (t1, i1), (t2, i2), ..., (tn, in), where t is the time point and i is the echo intensity at the corresponding time.
[0159] Subsequently, a triangle was constructed by selecting three consecutive data points: the first point (ta, ia) and the third point (ta+2, ia+2) were used as the two endpoints of the base, and the second point (ta+1, ia+1) was used as the vertex. The area of this triangle was calculated to reflect the amplitude of the echo intensity change between these three time points. The larger the area, the more drastic the intensity change within these three time points (i.e., a significant change in the curve slope). The smaller the area, the more gradual the intensity change (the curve tends to be stable).
[0160] To identify meaningful segmentation points, a minimum feature area threshold is preset (this threshold is determined based on the statistical results of triangle areas in historical stable echo data). When the area of a triangle formed by three consecutive points is greater than this threshold, the time point corresponding to the middle point (ta+1, ia+1) is identified as a potential segmentation point; if the area is less than or equal to the threshold, the intensity change within that interval is gradual, and segmentation is unnecessary.
[0161] After traversing all three consecutive data points, a series of potential segmentation points are obtained. At this point, the time difference between any two adjacent potential segmentation points is calculated, and the average of these time differences is used as the length of the time interval for segmentation. This is because the echo intensity changes gradually between adjacent segmentation points, making them suitable for analysis as an independent time interval. This invention can dynamically determine the length of the segmented time interval based on the actual variation characteristics of the echo intensity, avoiding over-segmentation or under-segmentation problems that may occur with a fixed interval length, making the segmented time interval more closely match the physical characteristics of the echo data.
[0162] Understandable, such as Figures 2-3 As shown, S221 calls the system time.
[0163] S222, based on system time, determine the segmented time domain in which the system time is located.
[0164] S223, define the segmented time domain in which the system time is located as the first target time domain.
[0165] S224 defines the segmented time domains that are adjacent to the system time as the second target time domain.
[0166] S225, compare the ultrasonic frequency domain distribution of the first target in the time domain with the ultrasonic frequency domain distribution of the second target in the time domain.
[0167] S226, determine whether the ultrasonic frequency domain distribution of the first target in the time domain matches the ultrasonic frequency domain distribution of the second target in the time domain.
[0168] S227a, if the ultrasonic frequency domain distribution of the first target time domain matches the ultrasonic frequency domain distribution of the second target time domain, then the ultrasonic frequency domain distribution data of the first target time domain is retrieved and the data of the receiving echo monitoring device is returned.
[0169] S227b, if the ultrasonic frequency domain distribution of the first target time domain does not match the ultrasonic frequency domain distribution of the second target time domain, then return to the calling system time until a shutdown command is received.
[0170] Simply put, an echo timing diagram is a three-dimensional orthogonal diagram. The parameter of the first orthogonal axis of the echo timing diagram is the intensity of the echo, the parameter of the second orthogonal axis is the frequency of the echo, and the parameter of the third orthogonal axis is time.
[0171] The time domain segmentation of the echo timing diagram is achieved by dividing the third orthogonal axis of the echo timing diagram along the extension of the axis.
[0172] Simply put, the segmented time domain of an echo timing diagram is a time interval, which in the echo timing diagram is the length of one time interval along the time axis of the third orthogonal axis. By using the length of the segmented time interval, and dividing the time axis of that time interval, at least one segmented time domain can be obtained. These segmented time domains will have two endpoints; the endpoint furthest from the origin of the coordinate system will contain a planar information map of the echo intensity and frequency.
[0173] S300 analyzes ultrasonic echo data to obtain transmissive ultrasonic data and resonant ultrasonic data.
[0174] Specifically, such as Figure 4 As shown in step S310, create storage folders for different test batches.
[0175] S320 includes the ultrasonic frequency domain distribution data of the first target in the time domain of each batch into the storage folder.
[0176] S330, Select the ultrasonic frequency domain distribution data of the first target in the time domain of a batch.
[0177] S340, create separate folders for transmissive ultrasonic data and resonant ultrasonic data.
[0178] S350 classifies ultrasonic frequency domain distribution data with ID identifiers based on the ID identifier of the echo monitoring device.
[0179] S360 acquires transmissive ultrasonic data and resonant ultrasonic data.
[0180] S370, the transparent ultrasonic data in the ultrasonic frequency domain distribution data of the first target time domain is included in the transparent ultrasonic data belonging folder.
[0181] S380, incorporate the resonant ultrasonic data from the ultrasonic frequency domain distribution data of the first target into the resonant ultrasonic data subfolder.
[0182] S390, return the ultrasonic frequency domain distribution data of the first target time domain of the selected batch, until all batches have been selected.
[0183] Understandably, if the planar information diagram of the first target time domain is different from that of the second target time domain, it indicates that the entire ultrasonic module is not in a stable working state, that is, the ultrasonic frequency domain distribution of the first target time domain does not match the ultrasonic frequency domain distribution of the second target time domain.
[0184] If the planar information diagram of the first target time domain is the same as that of the second target time domain, it indicates that the entire ultrasonic module is in a stable working state, that is, the ultrasonic frequency domain distribution of the first target time domain matches the ultrasonic frequency domain distribution of the second target time domain. At this time, it is necessary to call the planar information diagram of the first target time domain.
[0185] S400 determines whether the transparent ultrasonic data contains clutter signals based on the transparent ultrasonic data.
[0186] Specifically, S411 retrieves all transmissive ultrasonic data from their respective folders.
[0187] S412 uses a random algorithm to randomly select two folders containing transparent ultrasonic data.
[0188] S413, determine whether the frequency domain distribution of the ultrasonic data from the two transparent surfaces in their respective folders matches.
[0189] S414a, if the ultrasonic frequency domain distributions of the two transparent ultrasonic data belonging to different folders match, then any one of the ultrasonic frequency domain distributions in the two transparent ultrasonic data belonging to different folders shall be used as the standard ultrasonic frequency domain distribution data model.
[0190] S414b, if the ultrasonic frequency domain distributions in the two transparent ultrasonic data folders do not match, then return to the method of randomly selecting two transparent ultrasonic data folders using a random algorithm until a standard ultrasonic frequency domain distribution data model is generated.
[0191] Understandably, S421 calls the standard ultrasonic frequency domain distribution data model.
[0192] S422, Select a folder to store transparent ultrasonic data.
[0193] S423, Receives ultrasonic frequency domain distribution data from the folder containing transparent ultrasonic data.
[0194] S424, determine whether the ultrasonic frequency domain distribution data matches the standard ultrasonic frequency domain distribution data model.
[0195] S425a, if the ultrasonic frequency domain distribution data matches the standard ultrasonic frequency domain distribution data model, then the transparent ultrasonic data does not have clutter signals. Return to the step of selecting a folder to which the transparent ultrasonic data belongs, until all folders to which the transparent ultrasonic data belongs have been selected.
[0196] S425b: If the ultrasonic frequency domain distribution data does not match the standard ultrasonic frequency domain distribution data model, increment the unreliability judgment value of the standard ultrasonic frequency domain distribution data model by one. Place the selected transparent ultrasonic data distribution folder into the same folder as the selected transparent ultrasonic data distribution folder.
[0197] S426, return to the previous step and select a folder to which the transparent ultrasonic data belongs, until all folders to which the transparent ultrasonic data belongs have been selected.
[0198] S431, determine whether the number of folders to which the selected transmissive ultrasonic data belongs is zero.
[0199] S432a, if the number of folders containing the ultrasonic data to be selected is zero, then the defect inspection step ends.
[0200] S432b, if the number of folders to which the selected transparent ultrasonic data belongs is not zero, then further determine whether the unreliability determination value of the standard ultrasonic frequency domain distribution data model is greater than or equal to the unreliability determination number threshold.
[0201] S433a, if the unreliability judgment value of the standard ultrasonic frequency domain distribution data model is greater than or equal to the unreliability judgment number threshold, then return to call all the transparent ultrasonic data belonging to the folder until the defect quality inspection step ends.
[0202] S433b, if the unreliability judgment value of the standard ultrasonic frequency domain distribution data model is less than the unreliability judgment number threshold, then each gas meter corresponding to the folder to be selected for transparent ultrasonic data will be classified as a defective quality inspection result.
[0203] Simply put, the ultrasonic frequency domain distribution data of the first target in a batch can be used to obtain a planar information map of the first target in the time domain. By analyzing the ultrasonic echo data in the planar information map of the first target in the time domain using Fast Fourier Transform, the transparent ultrasonic data and resonant ultrasonic data can be obtained.
[0204] For each different batch of tests, create separate folders for transmissive ultrasonic data and resonant ultrasonic data. Include the transmissive ultrasonic data from the first target time-domain ultrasonic frequency distribution data in the transmissive ultrasonic data folder. Include the resonant ultrasonic data from the first target time-domain ultrasonic frequency distribution data in the resonant ultrasonic data folder.
[0205] If the unreliability threshold of the standard ultrasonic frequency domain distribution data model is less than the unreliability threshold number, then the standard ultrasonic frequency domain distribution data model is considered reliable. Generally, this unreliability threshold number is a constant value of three per thousand of the total number of gas meters being tested.
[0206] Assuming the standard ultrasonic frequency domain distribution data model is reliable, the gas meters corresponding to the transparent ultrasonic data in the folders to be selected can all be identified as defective gas meters.
[0207] S510, if the ultrasonic data from the transparent surface has noise signals, it is determined that the gas meter under test has failed the defect quality inspection.
[0208] S520, if the ultrasonic data transmitted through the surface does not have noise signals, then the gas meter under test is determined to have passed the defect inspection.
[0209] S600 calls up the resonant ultrasonic data of the gas meter that has passed the defect quality inspection.
[0210] The S700 incorporates resonant ultrasonic data into the ultrasonic resonance algorithm.
[0211] Specifically, the S710 retrieves the resonant ultrasonic data of each gas meter that passed the defect inspection, and assigns it to a folder.
[0212] S720, select a folder to store resonant ultrasound data.
[0213] S730, retrieves resonant ultrasound data from the folder containing the resonant ultrasound data.
[0214] The S740 uses continuous Fourier transform to extract ultrasonic data for each resonant frequency value in the resonant ultrasonic data.
[0215] S750, obtain at least one ultrasonic data.
[0216] S760 determines the resonant ultrasonic data of air based on the resonant frequency value of air.
[0217] S770 performs time-domain integration on the resonant ultrasonic data of air.
[0218] S780, obtains the frequency domain distribution of resonant ultrasonic waves in air.
[0219] S790, adds the airflow velocity from the resonant ultrasonic data to the selected resonant ultrasonic data folder. The airflow velocity is the ratio of the number of characteristic peaks in the frequency domain distribution of the air's resonant ultrasonic data to the length of the time interval.
[0220] S790a, return to the previous step and select a folder to which the resonant ultrasound data belongs, until all folders to which the resonant ultrasound data belongs have been selected.
[0221] Simply put, the frequency domain distribution of resonant ultrasonic waves in air is periodic. The airflow velocity can be obtained by using the ratio of the number of characteristic peaks to the length of the time interval in this frequency domain distribution. By including the airflow velocity from the resonant ultrasonic data in the selected resonant ultrasonic data folder, the airflow velocity in the resonant ultrasonic data can be used as judgment data to determine the accuracy of airflow measurement in gas meters.
[0222] S800 achieves the metering accuracy of gas meters that have passed defect quality inspection.
[0223] Specifically, such as Figures 4-5 As shown in S810, select a folder containing the resonant ultrasonic data of a gas meter that has passed the defect quality inspection.
[0224] S820 receives airflow velocity from resonant ultrasonic data.
[0225] S830 retrieves the measured airflow velocity from the gas meters in the selected resonant ultrasonic data folder.
[0226] S840 determines whether the airflow velocity in the resonant ultrasonic data matches the measured airflow velocity.
[0227] S851, if the airflow velocity in the resonant ultrasonic data matches the measured airflow velocity, then the gas meter that passed the defect inspection is confirmed to have accurate measurement accuracy.
[0228] S852, if the airflow velocity in the resonant ultrasonic data does not match the measured airflow velocity, then the gas meter that passed the defect quality inspection is determined to have inaccurate measurement accuracy.
[0229] S860, return to the previous step and select a folder to which the resonant ultrasound data belongs, until all folders to which the resonant ultrasound data belongs have been selected.
[0230] In this embodiment, after receiving the ultrasonic echo data from the ultrasonic module, the ultrasonic echo data is analyzed to obtain through-surface ultrasonic data and resonant ultrasonic data. It is then determined whether the through-surface ultrasonic data contains noise signals, which can help determine if the gas meter under test has defects. Generally, the through-surface ultrasonic data of gas meters in the same batch are identical. When a gas meter has an internal crack, noise will appear in the through-surface ultrasonic data. The presence or absence of noise can be used to determine if the gas meter under test has defects.
[0231] It is worth mentioning that ultrasonic echo data can be analyzed using Fast Fourier Transform to obtain transmissive ultrasonic data and resonant ultrasonic data.
[0232] Simply put, by integrating resonant ultrasonic data in the time domain, a frequency domain function can be obtained. The number of peaks in this frequency domain function determines the metering accuracy. The volume of gas flowing through the meter generates high-density micro-peaks due to pressure variations. These high-density micro-peaks are represented as peaks in the frequency domain function of the resonant ultrasonic data. By calculating the number of peaks in the frequency domain function, the volume of gas flowing through the meter can be determined. Using the gas volume measured by the meter and the gas volume detected by the ultrasonic module, the metering accuracy of a gas meter that has passed defect inspection can be determined.
[0233] likeFigure 6 As shown in one embodiment of this application, the present invention provides an ultrasonic module testing system, including a host computer 100 and a memory 200.
[0234] The host computer 100 is used to execute the ultrasonic module testing method described above.
[0235] The memory 200 is communicatively connected to the host computer 100.
[0236] In this embodiment, the host computer 100 establishes an ultrasonic module start / stop control script based on the ultrasonic module communication link. The ultrasonic module can receive the start command from the start / stop control script and execute the ultrasonic receiving task. When the echo monitoring device of the ultrasonic module receives the start command from the start / stop control script, the echo monitoring device of the ultrasonic module will receive the superimposed wave formed by the transparent ultrasonic wave and the resonant ultrasonic wave.
[0237] After receiving the ultrasonic echo data from the ultrasonic module, the host computer 100 analyzes the ultrasonic echo data to obtain the through-surface ultrasonic data and resonant ultrasonic data. It then determines whether the through-surface ultrasonic data contains noise signals, which can help identify whether the gas meter under test has defects. Generally, the through-surface ultrasonic data of gas meters in the same batch are identical. When a gas meter has an internal crack, noise will appear in the through-surface ultrasonic data. The presence or absence of noise can be used to determine whether the gas meter under test has defects.
[0238] By integrating the resonant ultrasonic data in memory 200 in the time domain, the frequency domain function can be obtained. Calculating the number of peaks in the frequency domain function determines the metering accuracy. The volume of gas flowing through the meter generates high-density micro-peaks due to pressure variations. These high-density micro-peaks are represented as peaks in the frequency domain function of the resonant ultrasonic data. By calculating the number of peaks in the frequency domain function, the volume of gas flowing through the meter can be determined. Using the gas volume measured by the meter and the gas volume detected by the ultrasonic module, the metering accuracy of a gas meter that has passed defect inspection can be determined.
[0239] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0240] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
Claims
1. A method for testing an ultrasonic module, characterized in that, include: Based on the ultrasonic module communication link, an ultrasonic module start / stop control script is established. Receives ultrasonic echo data from the ultrasonic module; Analyze ultrasonic echo data to obtain transmissive ultrasonic data and resonant ultrasonic data; Based on the transparent ultrasonic data, determine whether the transparent ultrasonic data contains clutter signals. If the ultrasonic frequency domain distributions of two transparent ultrasonic data sets in their respective folders match, then any one of the ultrasonic frequency domain distributions in the folders is used as the standard ultrasonic frequency domain distribution data model. Receive the ultrasonic frequency domain distribution data from the folders containing the transparent ultrasonic data. Determine whether the ultrasonic frequency domain distribution data matches the standard ultrasonic frequency domain distribution data model. If the ultrasonic frequency domain distribution data matches the standard ultrasonic frequency domain distribution data model, then the transparent ultrasonic data does not contain clutter signals. If the ultrasonic frequency domain distribution data does not match the standard ultrasonic frequency domain distribution data model, then increment the unreliability determination value of the standard ultrasonic frequency domain distribution data model by one. If the ultrasonic data transmitted through the surface contains noise signals, it is determined that the gas meter under test has failed the defect quality inspection. If the ultrasonic data transmitted through the surface does not contain noise signals, then the gas meter under test is determined to have passed the defect inspection. Retrieve resonant ultrasonic data from gas meters that have passed defect quality inspection; Incorporate resonant ultrasonic data into the ultrasonic resonance algorithm; incorporate the airflow velocity from the resonant ultrasonic data into the selected resonant ultrasonic data folder; the airflow velocity is the ratio of the number of characteristic peaks in the frequency domain distribution of the resonant ultrasonic data to the length of the time interval. The method involves obtaining the measurement accuracy of a gas meter that has passed a defective quality inspection. This includes selecting a folder containing the resonant ultrasonic data of the gas meter that passed the defective quality inspection; receiving the airflow velocity from the resonant ultrasonic data; retrieving the measured airflow velocity from the gas meter in the selected resonant ultrasonic data folder; determining whether the airflow velocity in the resonant ultrasonic data matches the measured airflow velocity; if the airflow velocity in the resonant ultrasonic data matches the measured airflow velocity, the measurement accuracy of the gas meter that passed the defective quality inspection is determined to be accurate; if the airflow velocity in the resonant ultrasonic data does not match the measured airflow velocity, the measurement accuracy of the gas meter that passed the defective quality inspection is determined to be inaccurate.
2. The ultrasonic module testing method according to claim 1, characterized in that, The establishment of an ultrasonic module start / stop control script based on the ultrasonic module communication link includes: Receive network access requests from ultrasonic modules; Parse the network access request of the ultrasonic module to obtain the API communication interface information of the ultrasonic module; Establish an ultrasonic module communication link using the API communication interface information of the ultrasonic module; Based on the ultrasonic module communication link, receive the echo monitoring device serial port information of the ultrasonic module; Create a start / stop control script for the ultrasonic module; The ultrasonic module start / stop control script is sent to the ultrasonic module using the ultrasonic module communication link. Based on the serial port information of the echo monitoring device and the start / stop control script of the ultrasonic module, a data receiving link for the echo monitoring device is established.
3. The ultrasonic module testing method according to claim 2, characterized in that, The process of establishing the ultrasonic module start / stop control script and receiving ultrasonic echo data from the ultrasonic module includes: Issue a command to activate the ultrasonic module; Receive data from the echo monitoring equipment to receive ultrasonic echo data from the ultrasonic module; Create an echo timing diagram; Incorporate ultrasonic echo data into the echo timing diagram; Receive the time interval length data of the segmented time domain of the echo timing diagram; The time axis of the time interval is divided by the length of the time interval that divides the time domain; Obtain at least one segmented time domain.
4. The ultrasonic module testing method according to claim 3, characterized in that, The step of establishing the ultrasonic module start / stop control script and receiving ultrasonic echo data from the ultrasonic module also includes: Reset the system time; Based on system time, determine the segmented time domain in which the system time is located; Define the segmented time domain in which the system time resides as the first target time domain; Define the system time-adjacent segmented time domains as the second target time domain; The ultrasonic frequency domain distribution of the first target in the time domain and the ultrasonic frequency domain distribution of the second target in the time domain are compared. Determine whether the ultrasonic frequency domain distribution in the time domain of the first target matches the ultrasonic frequency domain distribution in the time domain of the second target; If the ultrasonic frequency domain distribution of the first target time domain matches the ultrasonic frequency domain distribution of the second target time domain, then the ultrasonic frequency domain distribution data of the first target time domain is retrieved and the data of the receiving echo monitoring device is returned. If the ultrasonic frequency distribution in the first target time domain does not match the ultrasonic frequency distribution in the second target time domain, the system time is returned until a shutdown command is received.
5. The ultrasonic module testing method according to claim 4, characterized in that, The analysis of ultrasonic echo data to obtain through-surface ultrasonic data and resonant ultrasonic data includes: Create storage folders for different testing batches; The ultrasonic frequency domain distribution data of the first target in the time domain of each batch are included in the storage folder; Select the ultrasonic frequency domain distribution data of the first target in the time domain of a batch; Create separate folders for transmissive ultrasound data and resonant ultrasound data; Based on the ID identifier of the echo monitoring equipment, the ultrasonic frequency domain distribution data with the ID identifier are classified. Obtain transmissive ultrasonic data and resonant ultrasonic data; The ultrasonic data from the first target's time-domain ultrasonic frequency domain distribution data are included in the ultrasonic data belonging folder. The resonant ultrasonic data in the ultrasonic frequency domain distribution data of the first target in the time domain is included in the resonant ultrasonic data belonging folder; Return the ultrasonic frequency domain distribution data of the first target in the selected batch in the time domain, until all batches have been selected.
6. The ultrasonic module testing method according to claim 5, characterized in that, The determination of whether the transparent ultrasonic data contains clutter signals based on transparent ultrasonic data includes: Access all transmissive ultrasonic data belonging to their respective folders; Two folders were randomly selected from the transparent ultrasonic data using a random algorithm. Determine whether the frequency domain distribution of ultrasonic data from two different transparent surfaces matches within their respective folders. If the ultrasonic frequency domain distributions of the two transparent ultrasonic data belonging to different folders match, then any one of the ultrasonic frequency domain distributions in the two transparent ultrasonic data belonging to different folders shall be used as the standard ultrasonic frequency domain distribution data model. If the ultrasonic frequency domain distributions in the two transparent ultrasonic data folders do not match, then return to the method of randomly selecting two transparent ultrasonic data folders using a random algorithm until a standard ultrasonic frequency domain distribution data model is generated.
7. The ultrasonic module testing method according to claim 6, characterized in that, The step of determining whether the transparent ultrasonic data contains clutter signals based on the transparent ultrasonic data also includes: Call upon the standard ultrasonic frequency domain distribution data model; Select a folder to store the transmissive ultrasonic data; Receive ultrasonic frequency domain distribution data from folders containing transparent ultrasonic data; Determine whether the ultrasonic frequency domain distribution data matches the standard ultrasonic frequency domain distribution data model; If the ultrasonic frequency domain distribution data matches the standard ultrasonic frequency domain distribution data model, then the transparent ultrasonic data does not have clutter signals. Return to the previous step and select a folder to which the transparent ultrasonic data belongs, until all folders to which the transparent ultrasonic data belongs have been selected. If the ultrasonic frequency domain distribution data does not match the standard ultrasonic frequency domain distribution data model, then the unreliability judgment value of the standard ultrasonic frequency domain distribution data model is incremented by one. Place the selected transparent ultrasonic data into the folder containing the transparent ultrasonic data to be selected. Return to the previous step and select a folder to which the transparent ultrasonic data belongs, until all folders to which the transparent ultrasonic data belongs have been selected; Determine if the number of folders to which the selected transmissive ultrasonic data belongs is zero; If the number of folders containing the ultrasonic data to be selected is zero, then the defect inspection step ends. If the number of folders to which the selected transparent ultrasonic data belongs is not zero, then it is further determined whether the unreliability judgment value of the standard ultrasonic frequency domain distribution data model is greater than or equal to the unreliability judgment number threshold. If the unreliability judgment value of the standard ultrasonic frequency domain distribution data model is greater than or equal to the unreliability judgment number threshold, then return to call all the transparent ultrasonic data belonging to the folder until the defect quality inspection step ends. If the unreliability judgment value of the standard ultrasonic frequency domain distribution data model is less than the unreliability judgment number threshold, then each gas meter corresponding to the folder to be selected for transparent ultrasonic data will be classified as a defective quality inspection result.
8. The ultrasonic module testing method according to claim 7, characterized in that, The incorporation of resonant ultrasonic data into the ultrasonic resonance algorithm includes: The resonant ultrasonic data of each gas meter that passed the defect inspection are retrieved from their respective folders. Select a folder to store the resonant ultrasound data; Access the resonant ultrasound data in the folder where the resonant ultrasound data belongs; By using continuous Fourier transform, ultrasonic data for each resonant frequency value in the resonant ultrasonic data is extracted. Obtain at least one ultrasound data point; Based on the resonant frequency value of the gas, the resonant ultrasonic data of the gas are determined; Time-domain integration was performed on the resonant ultrasonic data of the air; Obtain the frequency domain distribution of the resonant ultrasonic waves in the air; Include the airflow velocity in the resonant ultrasonic data into the selected resonant ultrasonic data folder; the airflow velocity is the ratio of the number of characteristic peaks in the frequency domain distribution of the air resonant ultrasonic data to the length of the time interval. Return to the previous step and select a folder to which the resonant ultrasound data belongs, until all folders to which the resonant ultrasound data belongs have been selected.
9. An ultrasonic module testing system, characterized in that, include: A host computer is used to execute the ultrasonic module testing method as described in any one of claims 1 to 8; The memory is connected to the host computer for communication.
Citation Information
Patent Citations
Ultrasonic water meter module metering data processing method and system based on Internet of Things
CN118395351A
Ultrasonic gas meter and anomaly detection method thereof
CN120232498A