Comprehensive testing method for metering equipment

By configuring the serial port server and running a comprehensive test tool based on the netty framework, efficient and automated testing of metrology equipment is achieved, and the problems of low efficiency and easy introduction of errors in traditional testing methods are solved, improving the testing accuracy and efficiency.

CN119917353APending Publication Date: 2025-05-02深圳市力合微电子股份有限公司 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411979342.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

Traditional metrological equipment testing methods are inefficient and easy to introduce errors, making it difficult to achieve efficient and automated testing.

Method used

Provides a comprehensive testing method for metrology equipment, which can realize batch and multi-functional testing by configuring a serial port server and running a comprehensive testing tool, simplifying testing steps, and improving testing accuracy and efficiency.

Benefits of technology

It realizes fast and accurate verification of metrology equipment, generates standardized test reports, reduces test cycle time, greatly improves efficiency, and ensures consistency and repeatability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119917353A_ABST
    Figure CN119917353A_ABST
Patent Text Reader

Abstract

The invention discloses a comprehensive testing method for metering equipment. The comprehensive testing method comprises the following steps: associating a plurality of metering equipment with a serial server, logging in a serial server configuration interface, setting an IP (Internet Protocol), and selecting a mode of a comprehensive testing tool; running the comprehensive test tool; starting a standardized test: selecting a test batch, appointing a single or a plurality of module test positions, scanning and inputting bar codes by a code scanning gun, starting the test, synchronously pushing the test progress and the test item result of each module position in real time by a serial server interface, and pushing, displaying, issuing and receiving messages; according to actual test results of different test batches, the serial server automatically executes a preset processing flow; all actual test results are recorded in a full-amount mode, and a test report is output. According to the invention, batch and multifunctional testing can be carried out on the metering equipment according to the testing requirements, so that the testing steps are simplified, the testing accuracy and efficiency are improved, and batch testing of the metering equipment at the same time is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of measuring equipment testing, and in particular to a comprehensive testing method for measuring equipment. Background Art

[0002] In the field of industrial automation and IoT devices, metering equipment plays a core role in data collection and transmission. The accuracy and reliability of these metering equipment are critical to the precise control of the production process. In order to ensure the performance and quality of metering equipment in the production process, strict unit testing and automated testing must be implemented. However, traditional testing methods often rely on physical connections, single RS232 serial port communication or manual operation, which are not only inefficient but also prone to errors. Therefore, it is particularly urgent to develop an efficient and automated comprehensive testing tool. Summary of the invention

[0003] The purpose of the present invention is to provide a comprehensive testing method for measuring equipment, which effectively solves the technical problems existing in the above-mentioned background technology.

[0004] To achieve the above object, the present invention provides the following technical solutions.

[0005] A comprehensive testing method for measuring equipment, characterized in that it comprises the following steps:

[0006] S1. Configure the serial port server: associate multiple metering devices with the serial port server, log in to the serial port server configuration interface, set the static mode IP, and select the TCP Server mode for the comprehensive test tool, using the Socket communication connection working mode and local port;

[0007] S2. Based on S1, run the comprehensive test tool: verify the communication between the serial server and the serial port, create a test batch, classify the test items of the metering equipment, and select the built-in test items to be tested;

[0008] S3, based on S2, start standardized testing: select the test batch, specify a single or multiple module test positions, scan and enter the barcode with a barcode scanner, start the test, and the serial port server interface will push the test progress and test item results of each module position in real time, realizing the push display of sending and receiving messages;

[0009] S4. Based on S3, according to the actual test results of different test batches, the serial port server automatically executes the preset processing flow: if the test result is successful, it executes clearing, setting and querying control words, solidifying calibration parameters, reading and setting the test success flag; if the test result fails, it executes reading and setting the test failure flag;

[0010] S5. Based on S4, the comprehensive testing tool records all actual test results and outputs a test report.

[0011] Preferably, in step S1, the comprehensive testing tool is an executable file in exe format based on the line-of-sight multi-threaded message processing of the netty framework.

[0012] Preferably, in step S2, the actual serial port server IP is input, and the port performs communication echo status, thereby performing serial port communication verification.

[0013] Preferably, in step S2, the types of the test items include at least a numerical type, a hexadecimal-to-ASCII value type and a Boolean type. According to the actual test requirements of the measuring equipment, the preset parameters are read or manually input in the integrated test tool, and the test results are calculated in real time in subsequent steps.

[0014] Preferably, in step S3, if a numerical test item is selected for the measuring device, the specific test formula is:

[0015] U=DataFormat(data,Is,Ie)×Dpoint;

[0016] Among them, U is the voltage, DataFormat is the method function for the user to extract the data content specified in the message: get the original message, intercept the message block according to the start and end bits, and convert it into decimal content by byte; data is the original message; Is is the data start bit; Ie is the data end bit; Dpoint is the decimal point data precision retained.

[0017] Preferably, in step S3, if a test item of hexadecimal to ASCII value type is selected, the specific test formula is:

[0018] R0=DataFormat(data,Is,Ie)

[0019] R1=R0.each(item->∑Ascii2Char(item);

[0020] Among them, R0 is the content data block of this type; R1 is the data result of this type; DataFormat is the method function for users to extract the data content specified in the message: get the original message, intercept the message block according to the start and end bits, and convert it into decimal content by byte;

[0021] data is the original message, Is is the data start bit, Ie is the data end bit, Dpoint is the decimal point data precision; each is the traversal function;

[0022] Ascii2Char is a method function that processes a single hexadecimal byte into a corresponding specific value according to the Ascii table: specific basis.

[0023] Preferably, in step S5, the test report can be queried conditionally in the interface of the serial port server, or exported in excel file format for backup and archiving, and the program background can automatically upload it to the Seafile file system through the http interface.

[0024] Compared with the prior art, the present invention has the following beneficial effects:

[0025] (1) The present invention uses a comprehensive test tool as an executable file in exe format based on the line-of-sight multi-threaded message processing of the netty framework, which can perform batch and multi-function tests on the metering equipment according to the test requirements, thereby simplifying the test steps and improving the accuracy and efficiency of the test. It ensures that the metering equipment can be tested in batches at the same time, and the serial port server interface integrates and displays the actual test items of each device and the final test results of this metering equipment, which reduces the cycle time of the actual production test process, greatly improves efficiency, and ensures consistency and repeatability.

[0026] (2) The testing method of the present invention reduces the complexity of operation, ensures the rapid and accurate calibration of the measuring equipment, and the comprehensive testing tool can provide rapid and accurate testing for the measuring equipment and generate standardized test reports.

[0027] (3) The present invention can display the test progress in real time, push the test issuance and reception messages in real time, ensure the real-time and transparency of the test process, and also facilitate operation and maintenance analysis, thereby improving the test quality; it can calculate a single test item in real time, support preset parameter comparison, reduce the impact of human factors on the test results, and improve the accuracy of the test results. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 is a timing diagram of the present invention;

[0029] Figure 2 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION

[0030] The present invention will be further described below in conjunction with the accompanying drawings and specific implementation methods.

[0031] In the description of the present invention, unless otherwise specified, "plurality" means two or more than two; the orientations or positional relationships indicated by the terms "upper", "lower", "left", "right", "inner", "outer", "front end", "rear end", "head", "tail", etc. are based on the orientations or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", "third", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0032] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0033] like Figure 1 to Figure 2 As shown, the comprehensive test method of the measuring equipment includes the following steps:

[0034] S1. Configure the serial port server: associate multiple metering devices with the serial port server, log in to the serial port server configuration interface, set the static mode IP, and select the TCP Server mode for the comprehensive test tool, using the Socket communication connection working mode and local port;

[0035] Specifically, in step S1, the comprehensive test tool is an executable file in exe format based on the line-of-sight multi-threaded message processing of the netty framework. The serial port parameters configured for each port include at least: baud rate, data bit, check bit and stop bit. The present invention integrates a serial port server, uses netty to connect the TCP port to realize serial port communication, supports batch equipment to test, pushes the results of each test item in real time, displays the test progress, and displays the test sending and receiving messages.

[0036] S2. Based on S1, run the comprehensive test tool: verify the communication between the serial server and the serial port, create a test batch, classify the test items of the metering equipment, and select the built-in test items to be tested;

[0037] The method of verifying the communication between the serial port server and the serial port includes: inputting the actual serial port server IP, and the port communicates and echoes the status. In this embodiment, the types of test items include at least numerical type, hexadecimal to ASCII value type and Boolean type. According to the actual test requirements of the metering equipment, the preset parameters are read or manually entered in the comprehensive test tool, and the test results are calculated in real time in the subsequent steps. Check the built-in test items, such as: setting the master-slave mode, three-phase voltage, three-phase current, version date, manufacturer code, ESAM version, control word block, table search results, etc.

[0038] S3, based on S2, start the standardized test: select the test batch, specify a single or multiple module test positions, scan and enter the barcode with the barcode scanner, start the test, and the serial port server interface pushes the test progress and test item results of each module position in real time, and pushes and displays the sent and received messages; the bottom of the serial port server interface displays the messages sent and received by each module position in real time. While ensuring the real-time and transparency of the test process, it also facilitates operation and maintenance analysis and improves the test quality.

[0039] S4. Based on S3, according to the actual test results of different test batches, the serial port server automatically executes the preset processing flow: if the test result is successful, it executes clearing, setting and querying control words, solidifying calibration parameters, reading and setting the test success flag; if the test result fails, it executes reading and setting the test failure flag; real-time calculation of a single test item, supports preset parameter comparison, reduces the impact of human factors on the test results, and improves the accuracy of the test results.

[0040] S5. Based on S4, the comprehensive test tool records all actual test results and outputs a test report. In this embodiment, the test report can be queried conditionally in the interface of the serial port server, or exported in excel file format for backup and archiving. The program background automatically uploads it to the Seafile file system through the http interface, so that the test report can be viewed without being restricted by time and equipment.

[0041] In step S3, if a numerical test item is selected for the measuring equipment, the specific test formula is:

[0042] U=DataFormat(data,Is,Ie)×Dpoint;

[0043] Among them, U is the voltage, DataFormat is the method function for extracting the data content specified in the message by the user: get the original message, intercept the message block according to the start and end bits, and convert it into decimal content by byte; data is the original message; Is is the data start bit; Ie is the data end bit; Dpoint is the decimal point data precision retained. Data result example: U = 223.28V.

[0044] In step S3, if the test item of hexadecimal to ASCII value type is selected, the specific test formula is:

[0045] R0=DataFormat(data,Is,Ie)

[0046] R1=R0.each(item->∑Ascii2Char(item);

[0047] Among them, R0 is the content data block of this type; R1 is the data result of this type; DataFormat is the method function for users to extract the data content specified in the message: get the original message, intercept the message block according to the start and end bits, and convert it into decimal content by byte;

[0048] data is the original message, Is is the data start bit, Ie is the data end bit, Dpoint is the decimal point data precision; each is the traversal function;

[0049] Ascii2Char is a method function that processes a single hexadecimal byte into a corresponding specific value according to the Ascii table: specific basis. Data result example: R0 = 4C4D45, R1 = LME.

[0050] The present invention uses a comprehensive test tool as an executable file in exe format based on the line-of-sight multi-threaded message processing of the netty framework, which can perform batch and multi-function tests on the metering equipment according to the test requirements, thereby simplifying the test steps and improving the accuracy and efficiency of the test. The test method of the present invention reduces the complexity of the operation, ensures the rapid and accurate verification of the metering equipment, and the comprehensive test tool can provide rapid and accurate testing for the metering equipment and generate standardized test reports. It is ensured that the metering equipment can be tested in batches at the same time, and the serial port server interface integrates and displays the actual test items of each device and the final test results of this metering equipment, which reduces the cycle time of the actual production test process, greatly improves efficiency, and ensures consistency and repeatability.

[0051] The above-mentioned embodiments are only preferred embodiments of the present invention and cannot be used to limit the scope of rights of the present invention. Therefore, modifications, equivalent changes, improvements, etc. made according to the scope of the patent application of the present invention are still within the scope covered by the present invention.

Claims

1. A comprehensive testing method for measuring equipment, characterized in that: The following steps are involved: S1. Configure the serial port server: associate multiple metering devices with the serial port server, log in to the serial port server configuration interface, set the static mode IP, and select the TCP Server mode for the comprehensive test tool, using the Socket communication connection working mode and local port; S2. Based on S1, run the comprehensive test tool: verify the communication between the serial server and the serial port, create a test batch, classify the test items of the metering equipment, and select the built-in test items to be tested; S3, based on S2, start standardized testing: select the test batch, specify a single or multiple module test positions, scan and enter the barcode with a barcode scanner, start the test, and the serial port server interface will push the test progress and test item results of each module position in real time, realizing the push display of sending and receiving messages; S4. Based on S3, according to the actual test results of different test batches, the serial port server automatically executes the preset processing flow: if the test result is successful, it executes clearing, setting and querying control words, solidifying calibration parameters, and reading and setting the test success flag; If the test result fails, read and set the test failure flag; S5. Based on S4, the comprehensive testing tool records all actual test results and outputs a test report.

2. A comprehensive testing method for measuring equipment according to claim 1, characterized in that: In step S1, the comprehensive test tool is an executable file in exe format based on the line-of-sight multi-threaded message processing of the netty framework.

3. A comprehensive testing method for measuring equipment according to claim 2, characterized in that: In step S2, the actual serial port server IP is input, and the port performs communication echo status, thereby performing serial port communication verification.

4. A comprehensive testing method for measuring equipment according to claim 2 or 3, characterized in that: In step S2, the types of the test items include at least a numerical type, a hexadecimal-to-ASCII value type, and a Boolean type. According to the actual test requirements of the measuring equipment, the preset parameters are read in the integrated test tool or manually input, and the test results are calculated in real time in subsequent steps.

5. A comprehensive testing method for measuring equipment according to claim 4, characterized in that: In step S3, if a numerical test item is selected for the measuring equipment, the specific test formula is: U=DataFormat(data,Is,Ie)×Dpoint; Among them, U is the voltage, DataFormat is the method function for the user to extract the data content specified in the message: get the original message, intercept the message block according to the start and end bits, and convert it into decimal content by byte; data is the original message; Is is the data start bit; Ie is the data end bit; Dpoint is the decimal point data precision retained.

6. A comprehensive testing method for measuring equipment according to claim 5, characterized in that: In step S3, if the test item of hexadecimal to ASCII value type is selected, the specific test formula is: R0=DataFormat(data,Is,Ie) R1=R0.each(item->∑Ascii2Char(item); Among them, R0 is the content data block of this type; R1 is the data result of this type; DataFormat is the method function for users to extract the data content specified in the message: get the original message, intercept the message block according to the start and end bits, and convert it into decimal content by byte; data is the original message, Is is the data start bit, Ie is the data end bit, Dpoint is the decimal point data precision; each is the traversal function; Ascii2Char is a method function that processes a single hexadecimal byte into a corresponding specific value according to the Ascii table: specific basis.

7. A comprehensive testing method for measuring equipment according to claim 6, characterized in that: In step S5, the test report can be queried conditionally in the interface of the serial port server, or exported in excel file format for backup and archiving, and the program background automatically uploads it to the Seafile file system through the http interface.