Meter testing method and apparatus, electronic device, medium, and product
By generating simulated flow field data files during electronic flow meter testing and importing them into the controller, the problem of high testing costs in existing technologies is solved, realizing a low-cost and efficient testing method.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GOLDCARD SMART GROUP (HANGZHOU) CO LTD
- Filing Date
- 2024-12-31
- Publication Date
- 2026-06-30
AI Technical Summary
In the existing technology, the testing of electronic flow meters needs to be carried out in real-world scenarios, which results in high testing costs and requires consideration of equipment aging and regular maintenance issues.
By acquiring flow field data from the test site, generating simulated flow field data files, and using flow field simulation tools to convert them into text data, the data is imported into the controller of the instrument under test for testing, thus avoiding subsequent maintenance of the test site.
It reduces testing costs, improves the convenience and accuracy of testing, supports concurrent testing by multiple users, and ensures high consistency of flow field data for each test.
Smart Images

Figure CN122306198A_ABST
Abstract
Description
Technical Field
[0001] This application relates to meter testing technology, and more particularly to a meter testing method, apparatus, electronic device, medium, and product. Background Technology
[0002] An electronic flow meter is a commonly used type of flow meter, consisting of a base meter and a controller. The base meter collects flow data from the site, while the controller parses and processes the data collected by the base meter. During the product development of an electronic flow meter, testing is necessary to ensure the accuracy of the controller algorithm.
[0003] In existing technologies, testing of electronic flow meters needs to be conducted in real-world scenarios, taking into account issues such as equipment aging and regular maintenance, resulting in high testing costs. Summary of the Invention
[0004] This application provides a meter testing method, apparatus, electronic device, medium, and product to reduce meter testing costs.
[0005] On the one hand, this application provides a method for testing a meter, including:
[0006] Obtain flow field data measured by instruments at the test site to obtain a flow field data file, wherein the flow field data file includes flow field data in string format;
[0007] Import the flow field data file into the flow field simulation tool, and use the flow field simulation tool to convert the flow field data file into a simulated flow field data file, wherein the simulated flow field data file includes flow field data in text format;
[0008] In addition, the target data format of the instrument under test is obtained, the flow field data in text form is converted into flow field data in the target data format, and the flow field data in the target data format is imported into the controller of the instrument under test, thereby testing the instrument under test.
[0009] In one possible implementation, the flow field data includes flow rate data at different time points, and the step of acquiring flow field data measured by instruments at the test site to obtain a flow field data file includes:
[0010] The flow field data acquisition fixture is connected to the meter at the test site, and the flow data of the meter at the test site is acquired periodically and saved in the flow field data file in the storage medium.
[0011] Read the flow field data file from the storage medium.
[0012] In one possible implementation, obtaining the flow field data measured by instruments at the test site to obtain a flow field data file includes:
[0013] Connect the meters at the test site to the computer, and use a flow data acquisition tool to periodically read the flow data from the meters at the test site and save it in the flow field data file.
[0014] In one possible implementation, the flow data includes: flow rate, flight time, temperature, and gain.
[0015] In one possible implementation, the method further includes:
[0016] Obtain the cumulative flow of the meter under test during the test period, and obtain the test result of the meter under test based on the cumulative flow.
[0017] In one possible implementation, converting the flow field data file into a simulated flow field data file using the flow field simulation tool includes:
[0018] The flow field simulation tool converts the string-format flow field data into text-format flow field data and encrypts the text-format flow field data to obtain the simulated flow field data file.
[0019] In one possible implementation, the method further includes:
[0020] Save the simulated flow field data file to the simulated flow database;
[0021] The step of acquiring the target data format of the instrument under test, and converting the text-based flow field data into flow field data in the target data format, includes:
[0022] Obtain the target simulated flow field data file corresponding to the instrument under test from the simulated flow database, and convert the text-based flow field data in the target simulated flow field data file into flow field data in the target data format according to the target data format of the instrument under test.
[0023] In one possible implementation, the flow field data file is a txt file, and the simulated flow field data file is a CSV file or a bin file.
[0024] On the other hand, this application provides a meter testing device, comprising:
[0025] The acquisition module is used to acquire flow field data measured by instruments at the test site and obtain a flow field data file, wherein the flow field data file includes flow field data in string format;
[0026] A flow field simulation tool is used to convert the flow field data file into a simulated flow field data file, wherein the simulated flow field data file includes flow field data in text format.
[0027] In addition, the target data format of the instrument under test is obtained, the flow field data in text form is converted into flow field data in the target data format, and the flow field data in the target data format is imported into the controller of the instrument under test, thereby testing the instrument under test.
[0028] In another aspect, this application provides an electronic device, including: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method described above.
[0029] In another aspect, this application provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, are used to implement the method described above.
[0030] In another aspect, this application provides a computer program product including computer execution instructions, which, when executed by a processor, are used to implement the method described above.
[0031] The meter testing method, apparatus, electronic device, medium, and product provided in this application acquire string-format flow field data measured by the meter at the test site. A flow field simulation tool converts this string-format flow field data into text-format flow field data and saves it as a simulated flow field data file. When testing the meter under test, the text-format flow field data is converted into the target data format and imported into the controller of the meter under test. This allows for the simulation of the test site with only one acquisition of flow field data, eliminating the need for subsequent maintenance and effectively reducing testing costs. Furthermore, testing the meter under test only requires importing the flow field data into the meter, minimizing site requirements and supporting concurrent testing by multiple users, making testing more convenient and efficient. The flow field data from each test in the same scenario is consistent, effectively improving testing accuracy. Attached Figure Description
[0032] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0033] Figure 1 The diagram above illustrates a flowchart of the instrument testing method provided in an embodiment of this application.
[0034] Figure 2 The diagram below illustrates a flowchart of the process for obtaining flow field data files provided in an embodiment of this application.
[0035] Figure 3The diagram above illustrates a flow field data saving process provided in an embodiment of this application.
[0036] Figure 4 The diagram above illustrates a flow field simulation tool provided in this application that transmits flow data.
[0037] Figure 5 The diagram above illustrates a flowchart of the process for parsing flow data from the meter under test provided in an embodiment of this application.
[0038] Figure 6 The diagram above exemplarily illustrates the structure of the instrument testing device provided in an embodiment of this application;
[0039] Figure 7 The diagram above exemplarily illustrates the structure of an electronic device provided in an embodiment of this application.
[0040] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0041] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0042] In this application, a module refers to a functional module or a logical module. It can be in software form, where its function is implemented by a processor executing program code; or it can be in hardware form. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "OR" relationship.
[0043] First, the terms used in the embodiments of this application will be explained.
[0044] CSV: Short for Comma-Separated Values, it is a commonly used text file format for storing tabular data, such as spreadsheets or databases. A CSV file consists of one or more lines of text, each line containing one or more fields separated by commas. These fields typically represent columns in a table, and each line of text represents a row in the table.
[0045] bin: an abbreviation for binary, a file format, indicating a file with the ".bin" extension.
[0046] An electronic flow meter is a commonly used type of flow meter, consisting of a base meter and a controller. The base meter collects flow data from the site, while the controller parses and processes the data collected by the base meter. During the product development of an electronic flow meter, testing is necessary to ensure the accuracy of the controller algorithm.
[0047] In existing technologies, testing of electronic flow meters needs to be conducted in real-world scenarios, taking into account issues such as equipment aging and regular maintenance, resulting in high testing costs.
[0048] To address the aforementioned technical issues, the instrument testing method provided in this application can generate a simulated flow field data file by collecting flow field data from a single test site. The simulated flow field data file can then be used to simulate testing of the instrument, eliminating the need for subsequent maintenance work at the test site and effectively reducing testing costs.
[0049] The technical solutions of this application are illustrated below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
[0050] Figure 1 This is a schematic flowchart illustrating a meter testing method according to an embodiment of this application. The subject executing this method can be a meter testing device. Figure 1 As shown, the method may include:
[0051] S101, Obtain the flow field data measured by the instruments at the test site to obtain a flow field data file, wherein the flow field data file includes flow field data in string format.
[0052] The flow field data includes flow rate data at different time points. In practical applications, flow field data files can be acquired in two ways. Figure 2 This is a schematic diagram illustrating a process for acquiring flow field data files, provided as an embodiment of this application. Figure 2 As shown, in one possible implementation, the flow field data includes flow rate data at different time points. The flow field data is obtained by acquiring flow field data measured by instruments at the test site, resulting in a flow field data file, including:
[0053] Connect the flow field data capture tool to the meters at the test site, periodically capture the flow data of the meters at the test site, and save it in the process data file in the storage medium;
[0054] Read the flow field data file from the storage medium.
[0055] In practical implementation, the flow field data acquisition fixture can be connected to a computer. The fixture periodically (e.g., every 2 seconds) reads the flow data from the meters at the test site and saves it to a storage medium. After the meters at the test site complete data acquisition, the complete flow field data file can be read from the storage medium.
[0056] For example, the instruments at the test site can be connected to the gripping fixture via infrared or serial port.
[0057] like Figure 2 As shown, in one possible implementation, flow field data measured by instruments at the test site is obtained to generate a flow field data file, including:
[0058] Connect the meters at the test site to the computer, and use a flow data acquisition tool to periodically read the flow data from the meters at the test site and save it in a flow field data file.
[0059] In practice, the meters at the test site can be connected to a computer. A flow data acquisition tool on the computer can periodically (e.g., every 2 seconds) read the flow data from the meters at the test site and save it to a flow field data file. Once the meters at the test site have completed data acquisition, a complete flow field data file can be obtained.
[0060] For example, the instruments at the test site can be connected to the computer via a data cable interface, or the instruments at the test site can be connected to the computer via infrared or serial port.
[0061] For example, flow data may include flow rate, flight time, temperature, and gain.
[0062] The flow field data can include multiple flow data at different time points. Each flow data can include: flow velocity, uplink flight time, downlink flight time, temperature, uplink gain, and downlink gain.
[0063] S102, import the flow field data file into the flow field simulation tool, and use the flow field simulation tool to convert the flow field data file into a simulated flow field data file. The simulated flow field data file includes flow field data in text format.
[0064] In practice, the flow field data in the flow field data file is in string format, such as hexadecimal strings. The flow field data file is imported into the flow field simulation tool, which, based on the data structure specification file of the field instruments, determines the header and tail intervals of each string of flow field data, as well as the length and unit of each data item within that string, thus converting the string-format flow field data into text-format flow field data. For example, suppose a string of flow field data in the flow field data file is [02 0000 00 68AB 39 58 68AB 39 58 00 00 1E 1E 00 03 01]. According to the data structure description file of the field instrument, the flow field simulation tool determines that the string of flow field data includes the data header 02, velocity 0000 00, uplink flight time 68AB 39 58, downlink flight time 68AB 39 58, temperature 00 00, uplink gain 1E, downlink gain 1E, and data tail 00 03 01. It also determines that the units of velocity, uplink flight time, downlink flight time, and temperature are all 1 / 10000, thus converting it into text form flow field data as [0.0000,175605.1800,175605.1800,0.0000,30,30].
[0065] For example, the flow field data file can be a txt file, and the simulated flow field data file can be a CSV file or a bin file.
[0066] S103, and, acquire the target data format of the instrument under test, convert the text-based flow field data into the target data format flow field data, and import the target data format flow field data into the controller of the instrument under test, thereby testing the instrument under test.
[0067] In practice, the flow field simulation tool can determine the target data format that the instrument under test can recognize based on the data structure specification file of the instrument under test, convert the text-based flow field data in the simulated flow field data file into flow field data in the target data format, and send it to the controller of the instrument under test, thereby testing the instrument under test.
[0068] In this embodiment, the flow field data in string format measured by the instrument at the test site is acquired. The flow field simulation tool converts this string data into text format and saves it as a simulated flow field data file. When testing the instrument under test, the text format flow field data is converted into the target data format and imported into the controller of the instrument under test. This allows for the simulation of the test site with only one set of flow field data collected, eliminating the need for subsequent maintenance and effectively reducing testing costs. Furthermore, testing the instrument under test only requires importing the flow field data, minimizing site requirements and supporting concurrent testing by multiple users, making testing more convenient and efficient. The flow field data from each test in the same scenario is consistent, effectively improving testing accuracy.
[0069] Figure 3 This is a schematic diagram illustrating a flow field data storage process provided in an embodiment of this application. Figure 3 As shown, in one possible implementation, the method further includes:
[0070] Save the simulated flow field data file to the simulated flow database;
[0071] Obtain the target data format of the instrument under test, and convert the text-based flow field data into the target data format, including:
[0072] Obtain the target simulated flow field data file corresponding to the instrument under test from the simulated flow database, and convert the text-based flow field data in the target simulated flow field data file into the target data format according to the target data format of the instrument under test.
[0073] In practical implementation, after generating the simulated flow field data file, it can be saved to the simulated flow database. The simulated flow database can uniformly manage simulated flow field data files from multiple test sites. When testing the instrument under test, the target flow field for this test can be determined first, the target simulated flow field data file corresponding to the instrument under test can be obtained from the simulated flow database, and the instrument under test can be tested using the target simulated flow field data file.
[0074] In one possible implementation, the method also includes:
[0075] Obtain the cumulative flow of the meter under test during the test period, and obtain the test results of the meter under test based on the cumulative flow.
[0076] Figure 4 This is a schematic diagram illustrating the process of sending flow data using the flow field simulation tool provided in this application embodiment. Figure 4As shown, when testing the instrument under test, the flow field simulation tool reads the simulated flow field data file corresponding to the target simulated flow field from the simulated flow database. The simulated flow field data file includes multiple simulated flow data entries, allowing the tool to generate a simulated flow data list. The tool then obtains the target data format of the instrument under test, reads each simulated flow data entry from the simulated flow data list, and converts each entry into the target data format, thus transforming the simulated flow data into data recognizable by the instrument under test. Finally, the tool sequentially sends the target data format simulated flow data to the controller of the instrument under test via a serial port or other communication method.
[0077] Figure 5 This is a schematic diagram illustrating the process of parsing flow data from the meter under test, as provided in an embodiment of this application. Figure 5 As shown, in the specific implementation, after the controller of the device under test receives multiple simulated flow data in target data format sent by the flow field simulation tool, it first verifies the validity of the data. If the data is valid, it parses each simulated flow data in target data format to obtain the flow velocity, uplink / downlink flight time, uplink / downlink gain, and temperature corresponding to each simulated flow data. Based on each simulated flow data, filtering is performed to remove abnormal data, and flow velocity processing, flow accumulation calculation, and flow anomaly detection are also performed to finally obtain the cumulative flow over the test period.
[0078] The computer can obtain the cumulative flow rate measured by the meter under test within the test period, determine whether the cumulative flow rate is accurate, and thus obtain the test result of the meter under test.
[0079] In one possible implementation, the flow field data file is converted into a simulated flow field data file using a flow field simulation tool, including:
[0080] The flow field data in string format is converted into flow field data in text format using a flow field simulation tool, and then the text flow field data is encrypted to obtain a simulated flow field data file.
[0081] In practice, when writing flow field data in text form to a simulated flow field data file, encryption can be performed to effectively improve data security.
[0082] This application also provides a meter testing device. Figure 6 This is a schematic diagram of the structure of the instrument testing device provided in an embodiment of this application. Figure 6 As shown, the instrument testing device 600 may include:
[0083] The acquisition module 61 is used to acquire the flow field data measured by the instruments at the test site and obtain a flow field data file, wherein the flow field data file includes flow field data in string form;
[0084] Flow field simulation tool 62 is used to convert the flow field data file into a simulated flow field data file, wherein the simulated flow field data file includes flow field data in text form;
[0085] In addition, the target data format of the instrument under test is obtained, the flow field data in text form is converted into flow field data in the target data format, and the flow field data in the target data format is imported into the controller of the instrument under test, thereby testing the instrument under test.
[0086] In practical applications, instrument testing devices can be implemented through computer programs, such as application software; or they can be implemented as media storing relevant computer programs, such as USB flash drives or cloud drives; or they can be implemented through physical devices that integrate or install relevant computer programs, such as chips or servers.
[0087] In one possible implementation, the acquisition module 61 includes: a flow field data capture fixture;
[0088] The flow field data acquisition fixture is connected to the meters at the test site and is used to periodically acquire the flow data of the meters at the test site and save it in a flow field data file in a storage medium.
[0089] The flow field simulation tool 62 is also used to read the flow field data file from the storage medium.
[0090] In one possible implementation, the acquisition module 61 includes: a computer connected to meters at the test site, the computer including a flow data acquisition tool;
[0091] A flow data acquisition tool is used to periodically read the flow data of the meters at the test site and save it in the flow field data file.
[0092] In one possible implementation, the flow data includes: flow rate, flight time, temperature, and gain.
[0093] In one possible implementation, the device further includes:
[0094] The testing module is used to obtain the cumulative flow of the meter under test during the testing period, and to obtain the test result of the meter under test based on the cumulative flow.
[0095] In one possible implementation, the flow field simulation tool is specifically used for:
[0096] The flow field simulation tool converts the string-format flow field data into text-format flow field data and encrypts the text-format flow field data to obtain the simulated flow field data file.
[0097] In one possible implementation, the flow field simulation tool is further used for:
[0098] Save the simulated flow field data file to the simulated flow database;
[0099] Obtain the target simulated flow field data file corresponding to the instrument under test from the simulated flow database, and convert the text-based flow field data in the target simulated flow field data file into flow field data in the target data format according to the target data format of the instrument under test.
[0100] In one possible implementation, the flow field data file is a txt file, and the simulated flow field data file is a CSV file or a bin file.
[0101] The instrument testing device provided in this application embodiment is used to execute the instrument testing method, and its specific implementation is as described above, and will not be repeated here.
[0102] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application, such as... Figure 7 As shown, the electronic device includes:
[0103] The electronic device includes a processor 291 and a memory 292; it may also include a communication interface 293 and a bus 294. The processor 291, memory 292, and communication interface 293 can communicate with each other via the bus 294. The communication interface 293 can be used for information transmission. The processor 291 can invoke logical instructions stored in the memory 292 to execute the methods of the above embodiments.
[0104] Furthermore, the logic instructions in the aforementioned memory 292 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.
[0105] The memory 292, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of this application. The processor 291 executes functional applications and data processing by running the software programs, instructions, and modules stored in the memory 292, thereby implementing the methods in the above-described method embodiments.
[0106] The memory 292 may include a program storage area and a data storage area. The program storage area may store the operating system and application programs required for at least one function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory 292 may include high-speed random access memory and may also include non-volatile memory.
[0107] This application provides a non-transitory computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the methods described in the foregoing embodiments.
[0108] This application provides a computer program product, including computer execution instructions, which, when executed by a processor, implement the methods provided in any of the embodiments described above.
[0109] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0110] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A method of testing a watch, characterized in that, include: Obtain flow field data measured by instruments at the test site to obtain a flow field data file, wherein the flow field data file includes flow field data in string format; Import the flow field data file into the flow field simulation tool, and use the flow field simulation tool to convert the flow field data file into a simulated flow field data file, wherein the simulated flow field data file includes flow field data in text format; In addition, the target data format of the instrument under test is obtained, the flow field data in text form is converted into flow field data in the target data format, and the flow field data in the target data format is imported into the controller of the instrument under test, thereby testing the instrument under test.
2. The method according to claim 1, characterized in that, The flow field data includes flow rate data at different time points. The flow field data obtained from the measurements of instruments at the test site, resulting in a flow field data file, includes: The flow field data acquisition fixture is connected to the meter at the test site, and the flow data of the meter at the test site is acquired periodically and saved in the flow field data file in the storage medium. Read the flow field data file from the storage medium.
3. The method according to claim 2, characterized in that, The process of obtaining flow field data measured by instruments at the test site to obtain a flow field data file includes: Connect the meters at the test site to the computer, and use a flow data acquisition tool to periodically read the flow data from the meters at the test site and save it in the flow field data file.
4. The method according to claim 3, characterized in that, The flow data includes: flow rate, flight time, temperature, and gain.
5. The method according to claim 1, characterized in that, The method further includes: Obtain the cumulative flow of the meter under test during the test period, and obtain the test result of the meter under test based on the cumulative flow.
6. The method according to claim 1, characterized in that, The step of converting the flow field data file into a simulated flow field data file using the flow field simulation tool includes: The flow field simulation tool converts the string-format flow field data into text-format flow field data and encrypts the text-format flow field data to obtain the simulated flow field data file.
7. The method according to claim 1, characterized in that, The method further includes: Save the simulated flow field data file to the simulated flow database; The step of acquiring the target data format of the instrument under test, and converting the text-based flow field data into flow field data in the target data format, includes: Obtain the target simulated flow field data file corresponding to the instrument under test from the simulated flow database, and convert the text-based flow field data in the target simulated flow field data file into flow field data in the target data format according to the target data format of the instrument under test.
8. The method according to any one of claims 1-7, characterized in that, The flow field data file is a txt file, and the simulated flow field data file is a CSV file or a bin file.
9. A meter testing device, characterized in that, include: The acquisition module is used to acquire flow field data measured by instruments at the test site and obtain a flow field data file, wherein the flow field data file includes flow field data in string format; A flow field simulation tool is used to convert the flow field data file into a simulated flow field data file, wherein the simulated flow field data file includes flow field data in text format. In addition, the target data format of the instrument under test is obtained, the flow field data in text form is converted into flow field data in the target data format, and the flow field data in the target data format is imported into the controller of the instrument under test, thereby testing the instrument under test.
10. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1-8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-8.
12. A computer program product, characterized in that, The computer program product includes computer execution instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-8.