A gas meter complete machine automatic testing system and method
By designing a complete automatic test system for gas meters, using simulated fingers and program-controlled power supplies to simulate real usage scenarios, the problems of low efficiency and high error rate of existing test methods have been solved, a comprehensive test of the functions and performance of gas meters has been achieved, and testing has been improved. efficiency and reliability.
Patent Information
- Application Number
- CN202410981601.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-07-22
AI Technical Summary
The existing gas meter integrated testing method has low efficiency and high error rate, making it difficult to ensure the verification of the performance and functions of the entire machine. It also lacks performance testing and the number of test samples is insufficient, resulting in a prolonged test cycle.
A gas meter automatic test system is designed, including a test rack, a gas supply device, a standard meter, a test unit and a PC test machine. It simulates real usage scenarios and performs functions through simulated fingers, program-controlled power supply, battery pack and communication module. and performance testing, supporting simultaneous testing of multiple gas meters.
It achieves comprehensive testing of the functions and performance of gas meters, improves testing efficiency and reliability, saves testing time and costs, can test multiple gas meters at the same time, increases the number of samples, and ensures the accuracy of test results.
Smart Images

Figure CN118500509B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of metering instrument testing, and in particular to a gas meter complete machine automatic testing system and method. Background Art
[0002] In the process of smart gas meter integration testing, the existing method is to manually test and test each function one by one, which requires a lot of manpower to manually execute the test items. This method is inefficient and has a high error rate. Some existing instrument integration test systems have the following problems:
[0003] 1) Some test devices implement simulated automated testing, but only verify some components in the product, making it difficult to ensure that the entire machine works correctly; for example, publication number CN 109029645 A only performs functional verification on the control circuit board of the gas meter, lacking verification of the performance of the entire machine; publication number CN109141588B tests the control circuit board of the gas meter, and multiple parts that should be included in the product are tested in an external simulation manner, and only some components of the entire machine are tested, which is very different from the real product and cannot well ensure that the real function and performance of the product meet customer needs.
[0004] 2) Integration testing includes functional and performance testing. Currently, there is a lack of test instruments or environments, which means that only functional testing can be performed, and performance testing is difficult. In addition, there is only one gas meter involved in the automated test, and the number of samples is insufficient. The functional and performance superposition tests will extend the test cycle. For example, publication number CN 117367546 A can only implement functional testing of one gas meter at a time. When functional testing and performance testing need to be performed simultaneously, they can only be performed serially, not in parallel, and multiple samples cannot be tested. Summary of the invention
[0005] In view of the problems existing in the prior art, the object of the present invention is to provide a technical solution for a gas meter complete machine automatic testing system and method.
[0006] The gas meter complete machine automatic test system is characterized by comprising a test rack, a gas supply device, a standard meter, a plurality of test units and a PC test machine.
[0007] The test rack is used to install various devices in the test system. The test rack is set to a multi-layer structure, and each layer is equipped with a power supply interface, a gas supply interface, and a test unit;
[0008] The gas supply device includes an air pump and a frequency converter, the air pump is used to provide the gas to be measured, and the frequency converter is used to control the air flow speed of the air pump;
[0009] The standard meter is a gas meter that has been calibrated to meet the functional and metering performance standards, and is used to compare data with the gas meter being tested.
[0010] The test unit includes a gas meter under test, a programmable power supply, a battery pack, a control unit, a current detection device, a communication module, a simulated finger and a communication unit. The programmable power supply is controlled by a PC test machine to adjust the output voltage. The battery pack simulates different voltage environments and consists of three groups of batteries. The first group of batteries has normal voltage, the second group of batteries has undervoltage, and the third group of batteries has no voltage. The control unit is a multi-channel relay for controlling the simulated finger and selecting the power supply channel of the gas meter under test. The current detection device is a high-precision ammeter with programmable control for accurately measuring the power consumption of the gas meter. The communication module uses a switch or USB hub for communicating with each module. The simulated finger is an electric push rod. The communication unit uses infrared or Bluetooth to realize data transmission between the PC test machine and each gas meter under test.
[0011] The gas meter complete machine automatic testing system is characterized by:
[0012] The PC test machine is connected to the frequency converter through a communication cable, and the frequency converter is connected to the air pump. The air flows out of the air pump, passes through the standard meter, and enters multiple gas meters under test. The gas meter under test and the standard meter are ventilated at the same time to compare the data. After the ventilation is completed, the PC test machine calculates the data difference based on the flow data in the meter sent back by the communication module to determine whether it is within the allowable error range, thereby determining the reliability of the performance test.
[0013] The PC tester connects to the control unit through the communication module to select the power supply of the tested gas meter, which is a program-controlled power supply or three battery packs. The PC tester sends instructions to the program-controlled power supply to change the voltage, and uses the program-controlled power supply to test the working state and voltage alarm function of the gas meter under different voltages; the battery packs with different capacities are used to truly simulate the user's battery replacement scenario: normal voltage, undervoltage, and loss of voltage. The control unit selects any battery scenario to simulate the user replacing the battery, and then tests the voltage detection function and alarm function of the gas meter under the corresponding situation;
[0014] In the test unit, a dummy battery tool is placed in the battery compartment of the gas meter under test to fix the power supply line terminal, and the programmable power supply and three battery packs are respectively connected to the current detection device through the control unit and connected to the battery compartment power supply line;
[0015] The PC test machine controls the simulated finger to press or release the button on the panel of the tested gas meter through the control unit, uses the current detection device to test the power consumption of the gas meter, and connects the current detection device through the communication module to read the current value;
[0016] The gas meter under test includes an MCU, a metering unit, a first communication channel, a second communication channel, a valve unit, an alarm unit, a clock unit, a storage unit and a display unit. The MCU is responsible for coordinating information exchange between components within the meter to realize corresponding functions. The metering unit is responsible for data measurement and recording during ventilation. The second communication channel is responsible for proximal information exchange. The first communication channel is responsible for remote information exchange with the background. The valve unit is responsible for switching valves in the gas meter. The alarm unit is responsible for feedback of abnormal conditions through the first communication channel or the second communication channel when an abnormality occurs in the meter. The clock unit is responsible for providing time information in real time. The storage unit is responsible for corresponding data information when the storage function is realized. The display unit is responsible for displaying the meter status information. The PC test machine uses wireless communication to connect to the second communication channel of the gas meter under test to realize the collection of data from the gas meter under test.
[0017] The testing method of the gas meter complete machine automatic testing system is characterized in that a PC testing machine tests the functions and performance of the gas meter to verify whether the functions completed by the cooperation of the various components of the gas meter are successfully realized, and whether the performance of each component during the test meets the requirements. The functional test includes a second communication channel opening function test, a synchronous balance function test, a valve opening function test, a micro-flow detection function test, a long-term gas use function test and an ultra-large flow detection function test. The performance test includes a gas meter working state test under different voltage states, a gas meter running power consumption test and analysis, a gas meter battery assembly working condition test, a first communication channel reporting success rate performance test and a key reporting success rate performance test method.
[0018] The test method of the gas meter complete automatic test system is characterized in that the second communication channel opening function test steps are as follows:
[0019] S101 PC test machine sends a closing command to the control unit, the corresponding circuit of the relay is closed to supply positive current to the mechanical transmission device of the simulated finger, and the simulated finger is pushed forward by the transmission device. The pushing time t is The calculation shows that, where x represents the distance from the tip of the simulated finger to the button on the second communication channel being pressed, and v represents the moving speed of the simulated finger under the push of the transmission device, after t time, the PC test machine sends a disconnection command to the control unit, the corresponding circuit of the relay is disconnected, and the power supply to the mechanical transmission device is stopped, and the simulated finger stays for 1 second;
[0020] S102 The PC tester sends a closing command to the control unit, the corresponding circuit of the relay is closed, the transmission device rotates in the opposite direction, driving the simulated finger to move in the opposite direction for t time, the simulated finger moves away from the second communication channel button and returns to the original position, the PC tester sends a disconnecting command to the control unit, the corresponding circuit of the relay is disconnected, and the power supply to the mechanical transmission device is stopped;
[0021] S103 PC test machine controls the proximal communication device to send a command to the gas meter to modify the time "year, month, day, hour, minute, second" in the meter to 000000000000000, and then reads the time in the gas meter through the proximal communication device. If the read time in the meter is between 000000000000000 and 000000000000010, it means that the second communication channel is successfully opened and the function is normal; otherwise, it means that the opening fails and the function is abnormal.
[0022] The test method of the gas meter complete automatic test system is characterized in that the synchronous balance function test steps are as follows:
[0023] S201 The PC test machine sends a closing command to the control unit to control the corresponding circuit of the relay to close, supplying a positive current to the mechanical transmission device of the simulated finger. The simulated finger moves forward under the push of the transmission device. After t time, the relay is disconnected to stop supplying power to the mechanical transmission device of the simulated finger. The simulated finger stays for 3 seconds.
[0024] S202 The PC test machine sends a closing command to the control unit, controls the corresponding circuit of the relay to close, and the transmission device rotates in the reverse direction, driving the simulated finger to move in the reverse direction for a time period of t, and the simulated finger moves away from the second communication channel button and returns to its original position;
[0025] S203 The PC test machine executes the read command, and the communication module of the test unit returns the reported information. The user balance data is read through the key parsing operation. If the corresponding data part exists, it means that the synchronization balance function is normal, otherwise it is not.
[0026] The test method of the gas meter complete automatic test system is characterized in that the valve opening function test steps are as follows:
[0027] S301 PC test machine sends a closing command to the control unit, the corresponding circuit of the relay is closed to power the mechanical transmission device of the simulated finger, the simulated finger is pushed forward by the transmission device, and after t time, the simulated finger stays for 1 second;
[0028] S302 The PC test machine continues to execute the script command, the corresponding circuit of the relay is closed, the transmission device rotates in the reverse direction, and drives the simulated finger to move in the reverse direction for t time. The simulated finger moves away from the second communication channel button and returns to its original position.
[0029] S303 PC test machine sends a read command, and the communication module of the test unit returns the reported information. The valve filling part data is read through the key parsing operation. If the corresponding data part indicates that the valve is open, it means that the valve opening function is normal, otherwise it is the opposite.
[0030] The testing method of an automatic testing system for a whole gas meter is characterized in that the testing steps of the micro-flow detection function are as follows:
[0031] S401 The PC testing machine sends a command to the frequency converter, and the frequency converter changes the power supply frequency to make the air pump generate a micro-airflow.
[0032] S402 The PC testing machine sends a reading command, reads the flow data of the metering unit in the standard meter through the communication module, the sampling frequency is f, and calculates the difference in flow velocity between two consecutive sampling points , where vn and v(n - 1) represent the flow velocities of the two consecutive sampling points. Set a threshold T, T = 0.01 * min{vn, v(n - 1)}. If Δv < T, it is determined that the airflow is stable, and the PC testing machine starts to monitor the information transmitted back through the first communication channel of the testing unit.
[0033] S403 The PC testing machine determines that the flow data read in the standard meter is always less than the minimum flow threshold parameter of the gas meter to be tested. If it is greater than this parameter, the recording is stopped and S401 is executed again.
[0034] S404 The PC testing machine continues to execute the reading command, reads the micro-flow detection record through the communication module in the testing unit. If there is a micro-flow alarm identifier after parsing the information transmitted back by the gas meter in the testing unit through the communication module, this function is normal; otherwise, this function is abnormal.
[0035] The testing steps of the long-term gas usage function are as follows:
[0036] S501 The PC testing machine sends a command to the frequency converter, and the frequency converter changes the power supply frequency to make the air pump generate a constant airflow.
[0037] S502 The PC testing machine sends a reading command, reads the flow data of the metering unit in the standard meter through the communication module, the sampling frequency is f, and calculates the difference in flow velocity between two consecutive sampling points , where vn and v(n - 1) represent the flow velocities of the two consecutive sampling points. Set a threshold T, T = 0.01 * min{vn, v(n - 1)}. If Δv < T, it is determined that the airflow is stable, and the PC testing machine starts to monitor the information transmitted back in the first communication channel of the testing unit.
[0038] S503 The PC testing machine sends a reading command, reads the constant-flow record through the communication module in the testing unit. If there is a constant-flow alarm identifier after parsing the information transmitted back by the gas meter in the testing unit through the communication module, this function is normal; otherwise, vice versa.
[0039] The testing steps of the ultra-large flow detection function are as follows:
[0040] The S601 PC test machine sends commands to the frequency converter, changes the power supply frequency through the frequency converter, and enables the air pump to generate an ultra-large air flow;
[0041] The S602 PC test machine sends a read command, reads the flow rate data of the metering unit in the standard meter through the communication module, the sampling frequency is f, and calculates the difference in flow velocity between two consecutive sampling points , where vn and v(n - 1) represent the flow velocities of the previous and next sampling points, set a threshold T, T = 0.01 * min{vn, v(n - 1)}, if Δv < T, it is determined that the air flow is stable, and the PC test machine starts to monitor the information returned in the first communication channel of the test unit;
[0042] The S603 PC test machine sends a read command, reads the ultra-large flow rate record through the communication module in the test unit. If there is an ultra-large flow rate alarm identifier after parsing the information returned by the gas meter in the test unit through the communication module, this function is normal, otherwise it is the opposite.
[0043] The test method of a gas meter whole machine automatic test system as described above is characterized in that the test method of the gas meter in different voltage states is as follows:
[0044] The S701 PC test machine sends a closing instruction to the control unit, selects a programmable power supply to supply power to the gas meter to be tested through the control unit, and controls the programmable power supply to output sufficient voltage through the communication interface of the programmable power supply;
[0045] The S702 PC test machine sends a closing instruction to the control unit, the corresponding circuit of the relay closes to supply power to the mechanical transmission device of the simulation finger, and the simulation finger advances forward under the push of the transmission device. After t time, the simulation finger stays for 6 seconds;
[0046] The S703 PC test machine executes a read command, reads the power consumption data through the communication module in the test unit. If there is an identifier of sufficient power supply after parsing the information returned by the gas meter in the test unit through the communication module, this function is normal, otherwise it is the opposite;
[0047] The S704 PC test machine sends a command to set the voltage, controls the programmable power supply to output sufficient voltage through the communication interface of the programmable power supply, and then drops 0.01 volts every 1 second to detect the under-voltage point;
[0048] The S705 PC test machine continuously monitors the information returned in the first communication channel. If an identifier of battery under-voltage alarm appears in the information, it is determined that the under-voltage function is normal. If no under-voltage alarm identifier appears until the under-voltage point Vq, it is determined that the under-voltage function fails;
[0049] The S706 PC tester sends a command to set the voltage, and controls the programmable power supply to output sufficient voltage through the communication interface of the programmable power supply, and then drops 0.01 volt every 1 second to detect the voltage loss point;
[0050] S707 PC test machine continuously monitors the information sent back by the first communication channel. If the battery pressure loss alarm identifier appears in the information, it is judged that the pressure loss function is normal. If the pressure loss alarm identifier does not appear until the pressure loss point Vs, it is judged that the pressure loss function is invalid.
[0051] The gas meter battery assembly working condition test method is as follows:
[0052] The S901 PC test machine selects the first group of batteries to supply power to the gas meter under test through the control unit;
[0053] The S902 PC tester controls the simulated finger key presses through relays to report. The PC tester analyzes the reported data and determines that it has passed if the battery is sufficient.
[0054] The S903 PC test machine selects the second battery group to supply power to the gas meter under test through the control unit;
[0055] The S904 PC test machine uses relay control to simulate finger key presses and reports. The PC test machine analyzes the reported data and determines that the battery is under-voltage and passes the test.
[0056] The S905 PC test machine selects the third battery group to supply power to the gas meter under test through the control unit;
[0057] The S906 PC test machine uses relay control to simulate finger key presses and reports. If the PC test machine waits for 1 minute and no data is reported, it is considered passed.
[0058] The S907 PC test machine selects the first group of batteries to supply power to the gas meter under test through the control unit;
[0059] The S908 PC test machine controls the simulated finger report through a relay. The PC test machine analyzes the reported data and determines that it has passed if the battery power is sufficient.
[0060] The test method of the gas meter complete automatic test system is characterized in that the gas meter running power consumption test and analysis method is as follows:
[0061] The S801 PC test machine selects the program-controlled power supply of the corresponding test unit through the control unit and configures the program-controlled power supply to output normal voltage;
[0062] The S802 PC test machine controls the inverter to start the air pump and adjust the air flow to a large flow rate;
[0063] S803 Turn on the current detection device, and the PC test machine reads the real-time current data i of the current detection device every 1 second, saves it, and calculates the static current sum M1=M1+i at the same time, which lasts for 2 hours;
[0064] S804 PC test machine turns off the inverter and calculates the average current N1=M1 / 2 / 3600 within 2 hours;
[0065] The S805 PC test machine reads the real-time current data j of the current detection device every 1 second and saves it, and calculates the total current M2=M2+j in static state for 22 hours;
[0066] S806 Calculate the static average current N2 for 22 hours = M2 / 22 / 3600;
[0067] The S807 PC test machine uses relay control to simulate finger long press button to start reporting;
[0068] The S808 PC test machine reads the real-time current data k of the current detection device every 1 second and saves it. At the same time, it calculates the total current M3=M3+k under large flow, and the total reporting time is t 上报 ;
[0069] S809 calculates and reports the average current N3=M3 / t during this period 上报 ;
[0070] S810 Calculate 24 hours + t 上报 Total current consumption M=M1+M2+M3;
[0071] S811 The total capacity of the battery is Q, and the usage time T is calculated based on the daily current consumption 使用 =Q / M, if T 使用 If it is greater than the number of days set in the test method, the output result is normal power consumption.
[0072] The test method of the gas meter complete automatic test system is characterized in that the performance test method of the first communication channel reporting success rate is as follows:
[0073] The S1001 PC test machine controls the simulated finger through the relay to open the second communication channel of the tested gas meter, and sets the timing reporting period p of the tested gas meter through the second communication channel;
[0074] S1002 The PC tester receives the reported data of the gas meter under test and accumulates the number of reports m for a period of time T 持续 ;
[0075] S1003 Calculate the theoretical reporting times n based on the duration and reporting cycle 理论 =T持续 / p, the actual number of reports is m, and the reporting success rate is r=m / n 理论 If the reporting success rate is higher than 99%, the reporting success rate of the first communication channel is determined to be qualified;
[0076] The performance test method of the key reporting success rate is as follows:
[0077] The S1101 PC test machine controls the simulated finger to press the button of the gas meter under test for a period of time p through the relay to trigger the report;
[0078] S1102 The PC tester receives the reported data from the gas meter and accumulates the number of reports m; this lasts for a period of time T 持续 ;
[0079] S1103 calculates the theoretical reporting times n based on the duration and reporting cycle 理论 =T 持续 / p, the actual number of reports is m, and the key reporting success rate is r=m / n 理论 If the reporting success rate is higher than 99%, the key reporting success rate is considered qualified.
[0080] The present invention realizes the function and performance test of the whole gas meter, communicates with the gas meter through the wireless communication unit, performs key test by simulating fingers, tests the metering function by providing real airflow through an air pump, provides different voltages through a programmable power supply, simulates the user replacing the battery through battery packs with different capacities, and restores the real use scenario of the product as much as possible for testing; and the system is provided with multiple test units, which can measure multiple gas meters at the same time, increases the test samples, and improves the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] Figure 1 It is a structural schematic diagram of the present invention;
[0082] Figure 2 It is a structural diagram of the test unit;
[0083] Figure 3 This is a schematic diagram of the power supply connection structure. DETAILED DESCRIPTION
[0084] The present invention will be further described below in conjunction with the accompanying drawings:
[0085] A gas meter complete machine automatic testing system comprises a testing rack, a gas supply device, a standard meter, a plurality of testing units and a PC testing machine.
[0086] The test rack is used to install various devices in the test system. The test rack is set up as a multi-layer structure, and each layer is equipped with a 220V power supply interface, a gas supply interface, and a test unit.
[0087] The gas supply device includes an air pump and a frequency converter. The air pump is used to provide the gas to be measured, and the frequency converter is used to control the air flow speed of the air pump.
[0088] The standard meter is a gas meter that has been calibrated to meet the functional and metering performance standards and is used to compare data with the gas meter being tested.
[0089] The test unit includes a gas meter under test, a programmable power supply, a battery pack, a control unit, a current detection device, a communication module, a simulated finger and a communication unit. The programmable power supply is controlled by a PC test machine to adjust the output voltage. The battery pack simulates different voltage environments and consists of three groups of batteries. The first group of batteries has normal voltage, the second group of batteries has undervoltage, and the third group of batteries has no voltage. The control unit is a multi-channel relay used to control the simulated finger and select the power supply channel of the gas meter under test. The current detection device is a high-precision ammeter with programmable control, which is used to accurately measure the power consumption of the gas meter. The communication module adopts a switch or USB hub, which is determined by the communication interface of the gas meter or instrument under test, and is used to communicate with each module. The simulated finger is an electric push rod. The communication unit adopts infrared or Bluetooth, which can be flexibly configured depending on the specific product to realize data transmission between the PC test machine and each gas meter under test.
[0090] The PC test machine is connected to the inverter through a communication cable, and the inverter is connected to the air pump. The air flows out of the air pump, passes through the standard meter, and enters multiple gas meters under test. The gas meter under test and the standard meter are ventilated at the same time (it can be air or air-methane mixed gas) to compare the data. After the ventilation is completed, the PC test machine calculates the data difference based on the flow data in the meter sent back by the communication module to determine whether it is within the allowable error range, thereby determining the reliability of the performance test.
[0091] The PC test machine connects to the control unit through the communication module to select the power supply for the gas meter being tested, which is a programmable power supply or three battery packs. The PC test machine sends instructions to the programmable power supply to change the voltage, and uses the programmable power supply to test the working status and voltage alarm function of the gas meter under different voltages. Specifically, the PC test machine controls the control unit through the communication module to select the programmable power supply as the power supply device for the gas meter. The PC test machine then sends instructions to the programmable power supply to change the voltage. The working status of the gas meter and the completeness of the voltage alarm function are judged by whether the communication unit connected to the gas meter sends back normal voltage, loss of voltage or undervoltage signals to the PC test machine during the voltage change process, and whether the alarm information is sent back at the loss of voltage or undervoltage point.
[0092] The battery replacement scenario of users is realistically simulated through battery packs with different capacities. The batteries replaced by users may have three states: normal voltage, undervoltage, and loss of voltage. Any battery scenario is selected through the control unit to simulate the user replacing the battery, and then the voltage detection function and alarm function of the gas meter are tested under the corresponding situation. In the test unit, a fake battery tooling is placed in the battery compartment of the gas meter under test to fix the power supply line terminals. The programmable power supply and three battery packs are respectively connected to the current detection device through the control unit and connected to the battery compartment power supply line. In this way, the integrity of the meter can be ensured without wiring from the circuit board.
[0093] The PC test machine controls the simulated finger to press or release the button on the panel of the tested gas meter through the control unit, uses the current detection device to test the power consumption of the gas meter, and connects the current detection device through the communication module to read the current value.
[0094] The gas meter under test includes an MCU, a metering unit, a first communication channel, a second communication channel, a valve unit, an alarm unit, a clock unit, a storage unit and a display unit. The MCU is responsible for coordinating information exchange among components within the meter to realize corresponding functions. The metering unit is responsible for data measurement and recording during ventilation. The second communication channel is responsible for proximal information exchange. The first communication channel is responsible for remote information exchange with the background. The valve unit is responsible for switching valves in the gas meter. The alarm unit is responsible for feedback of abnormal conditions through the first communication channel or the second communication channel when an abnormality occurs in the meter. The clock unit is responsible for providing time information in real time. The storage unit is responsible for corresponding data information when the storage function is realized. The display unit is responsible for displaying the meter status information. The PC test machine uses wireless communication to connect to the second communication channel of the gas meter under test (without connecting a communication cable) to realize the collection of data from the gas meter under test.
[0095] The present invention uses multiple groups of test units in parallel to increase the test sampling rate. Figure 2 The two control units in the figure are the same, but because it is inconvenient to illustrate, they are split into two locations.
[0096] A test method for a gas meter complete machine automatic test system. A PC test machine executes a gas meter function and performance test, and can generate a log and a report to verify whether the functions completed by the cooperation of various components of the gas meter are successfully realized, and whether the performance of each component during the test process meets the requirements. The function test includes a second communication channel opening function test, a synchronous balance function test, a valve opening function test, a micro-flow detection function test, a long-term gas use function test, and an ultra-large flow detection function test. The performance test includes a gas meter working state test under different voltage states, a gas meter running power consumption test and analysis, a gas meter battery component working condition test, a first communication channel reporting success rate performance test, and a key reporting success rate performance test method. The tester can select the required test method to execute, and the PC test machine will execute the corresponding command, control the test unit to complete the specified test method, and generate a corresponding test report.
[0097] To test the second communication channel opening function, the steps are as follows:
[0098] S101 PC test machine sends a closing command to the control unit, the corresponding circuit of the relay is closed to supply positive current to the mechanical transmission device of the simulated finger, and the simulated finger is pushed forward by the transmission device. The pushing time t is The calculation shows that x represents the distance from the tip of the simulated finger to the button of the second communication channel, and v represents the moving speed of the simulated finger under the push of the transmission device; after t time, the PC test machine sends a disconnection command to the control unit, the corresponding circuit of the relay is disconnected, and the power supply to the mechanical transmission device is stopped. The simulated finger stays for 1 second;
[0099] S102 The PC tester sends a closing command to the control unit, the corresponding circuit of the relay is closed, the transmission device rotates in the opposite direction, driving the simulated finger to move in the opposite direction for t time, the simulated finger moves away from the second communication channel button and returns to the original position, the PC tester sends a disconnecting command to the control unit, the corresponding circuit of the relay is disconnected, and the power supply to the mechanical transmission device is stopped;
[0100] The S103 PC test machine controls the proximal communication device to send a command to the gas meter to modify the time in the meter to 000000000000000 (year-month-day hour-minute-second), and then reads the time in the gas meter through the proximal communication device. If the read time in the meter is between 00000000000000 and 000000000000010, it means that the second communication channel is successfully opened; otherwise, it means that the opening fails and the function is abnormal.
[0101] To test the synchronization balance function, follow these steps:
[0102] S201 The PC testing machine sends a closing instruction to the control unit, which controls the corresponding circuit of the relay to close, supplies forward current to the mechanical transmission device of the simulation finger, and the simulation finger advances forward under the push of the transmission device; after t seconds, the relay is disconnected to stop supplying power to the mechanical transmission device of the simulation finger, and the simulation finger stays for 3 seconds;
[0103] S202 The PC testing machine sends a closing instruction to the control unit, which controls the corresponding circuit of the relay to close, the transmission device rotates in the reverse direction, drives the simulation finger to move in the reverse direction for t seconds, and the simulation finger moves away from the second communication channel button and returns to the original position;
[0104] S203 The PC testing machine executes a read command, receives the reported information returned by the communication module of the testing unit, and reads part of the user balance data through key parsing operations. If the corresponding data part exists, it indicates that the balance synchronization function is normal, otherwise it is the opposite.
[0105] To test the valve opening function, the steps are as follows:
[0106] S301 The PC testing machine sends a closing instruction to the control unit, the corresponding circuit of the relay closes to supply power to the mechanical transmission device of the simulation finger, and the simulation finger advances forward under the push of the transmission device; after t seconds, the simulation finger stays for 1 second;
[0107] S302 The PC testing machine continues to execute the script command, the corresponding circuit of the relay closes, the transmission device rotates in the reverse direction, drives the simulation finger to move in the reverse direction for t seconds, and the simulation finger moves away from the second communication channel button and returns to the original position;
[0108] S303 The PC testing machine sends a read command, receives the reported information returned by the communication module of the testing unit, and reads part of the valve filling data through key parsing operations. If the corresponding data part indicates that the valve is open, it means the valve opening function is normal, otherwise it is the opposite.
[0109] To test the micro-flow detection function, the steps are as follows:
[0110] S401 The PC testing machine sends a command to the frequency converter, and the frequency converter changes the power supply frequency to make the air pump generate a micro-airflow;
[0111] S402 The PC testing machine sends a read command, reads the flow data of the metering unit in the standard meter through the communication module, the sampling frequency is f, and calculates the difference in flow velocity between two consecutive sampling points , where vn and v(n - 1) represent the flow velocities of the previous and next sampling points, set a threshold T, T = 0.01 * min{vn, v(n - 1)}. If Δv < T, it is judged that the airflow is stable, and the PC testing machine starts to monitor the information returned by the first communication channel of the testing unit;
[0112] In S403, the PC testing machine determines that the flow rate data in the read standard table is always less than the minimum flow threshold parameter of the gas meter under test. If it is greater than this parameter, the recording is stopped and S401 is executed again;
[0113] In S404, the PC testing machine continues to execute the read command, reads the minute flow detection record through the communication module in the testing unit. If there is a minute flow alarm identifier after parsing the information returned by the gas meter in the testing unit through the communication module, this function is normal; otherwise, this function is abnormal.
[0114] To test the long-term gas consumption function, the steps are as follows:
[0115] In S501, the PC testing machine sends a command to the frequency converter, and the frequency converter changes the power supply frequency to make the air pump generate a constant air flow;
[0116] In S502, the PC testing machine sends a read command, reads the flow rate data of the metering unit in the standard table through the communication module, the sampling frequency is f, and calculates the difference in flow velocities between two consecutive sampling points , where vn and v(n - 1) represent the flow velocities of the previous and subsequent sampling points. Set a threshold T, T = 0.01 * min{vn, v(n - 1)}. If Δv < T, it is determined that the air flow is stable, and the PC testing machine starts to monitor the information returned in the first communication channel of the testing unit;
[0117] In S503, the PC testing machine sends a read command, reads the constant flow record through the communication module in the testing unit. If there is a constant flow alarm identifier after parsing the information returned by the gas meter in the testing unit through the communication module, this function is normal; otherwise, it is the opposite.
[0118] To test the ultra-large flow detection function, the steps are as follows:
[0119] In S601, the PC testing machine sends a command to the frequency converter, and through the frequency converter, changes the power supply frequency to make the air pump generate an ultra-large air flow;
[0120] In S602, the PC testing machine sends a read command, reads the flow rate data of the metering unit in the standard table through the communication module, the sampling frequency is f, and calculates the difference in flow velocities between two consecutive sampling points , where vn and v(n - 1) represent the flow velocities of the previous and subsequent sampling points. Set a threshold T, T = 0.01 * min{vn, v(n - 1)}. If Δv < T, it is determined that the air flow is stable, and the PC testing machine starts to monitor the information returned in the first communication channel of the testing unit;
[0121] In S603, the PC testing machine sends a read command, reads the ultra-large flow record through the communication module in the testing unit. If there is an ultra-large flow alarm identifier after parsing the information returned by the gas meter in the testing unit through the communication module, this function is normal; otherwise, it is the opposite.
[0122] The test method of the gas meter working status under different voltage conditions is as follows:
[0123] The power supply of the gas meter generally has sufficient power, undervoltage, and loss of pressure. In different states, the gas meter needs to give the user corresponding status prompts. Use the PC test machine to configure the number of test units, the meter number of each gas meter to be tested, and the gas meter undervoltage and loss of pressure alarm enable, and start the system;
[0124] The S701 PC tester sends a closing command to the control unit, which selects the program-controlled power supply to supply power to the gas meter under test, and controls the program-controlled power supply to output sufficient voltage through the communication interface of the program-controlled power supply;
[0125] S702 PC test machine sends a closing command to the control unit, the corresponding circuit of the relay is closed to power the mechanical transmission device of the simulated finger, and the simulated finger is pushed forward by the transmission device; after t time, the simulated finger stays for 6 seconds;
[0126] S703 The PC test machine executes the read command and reads the power data through the communication module in the test unit. If the information sent back by the communication module of the gas meter in the test unit is parsed and there is an identifier of sufficient power supply, then the function is normal, otherwise it is not.
[0127] The S704 PC tester sends a command to set the voltage, and controls the programmable power supply to output sufficient voltage through the communication interface of the programmable power supply, and then drops 0.01 volt every 1 second to detect the undervoltage point;
[0128] The S705 PC tester continuously monitors the information sent back through the first communication channel. If the battery undervoltage alarm identifier appears in the information, it is determined that the undervoltage function is normal. If the undervoltage alarm identifier does not appear until the undervoltage point Vq, it is determined that the undervoltage function is invalid.
[0129] The S706 PC tester sends a command to set the voltage, and controls the programmable power supply to output sufficient voltage through the communication interface of the programmable power supply, and then drops 0.01 volt every 1 second to detect the voltage loss point;
[0130] The S707 PC tester continuously monitors the information sent back through the first communication channel. If the battery pressure loss alarm identifier appears in the information, it is determined that the pressure loss function is normal. If no pressure loss alarm identifier appears until the pressure loss point Vs, it is determined that the pressure loss function is invalid.
[0131] The gas meter running power consumption test and analysis method, the steps are as follows:
[0132] A test model is needed to test the operating power consumption of the gas meter. Here, the test method is designed according to the model of 2 hours of high flow, 22 hours of static state, and 1 report. The number of test units is configured through the PC test machine, and the test method of each test unit is configured, and the system is started.
[0133] The S801 PC test machine selects the program-controlled power supply of the corresponding test unit through the control unit and configures the program-controlled power supply to output normal voltage;
[0134] The S802 PC test machine controls the inverter to start the air pump and adjust the air flow to a large flow rate;
[0135] S803 Turn on the current detection device, and the PC test machine reads the real-time current data i of the current detection device every 1 second, saves it, and calculates the static current sum M1=M1+i at the same time, which lasts for 2 hours;
[0136] The S804 PC test machine calculates the average current N1=M1 / 2 / 3600 within 2 hours by turning off the inverter;
[0137] The S805 PC test machine reads the real-time current data j of the current detection device every 1 second and saves it, and calculates the total current M2 = M2+j in static state for 22 hours;
[0138] S806 Calculate the static average current N2 for 22 hours = M2 / 22 / 3600;
[0139] The S807 PC test machine uses relay control to simulate finger long press button to start reporting;
[0140] The S808 PC test machine reads the real-time current data k of the current detection device every 1 second and saves it. At the same time, it calculates the total current M3=M3+k under large flow, and the total reporting time is t 上报 ;
[0141] S809 calculates and reports the average current N3=M3 / t during this period 上报 ;
[0142] S810 Calculate 24 hours + t 上报 Total current consumption M=M1+M2+M3;
[0143] S811 The total capacity of the battery is Q, and the usage time T is calculated based on the daily current consumption 使用 =Q / M, if T 使用 If it is greater than the number of days set in the test method, the output result is normal power consumption;
[0144] At the same time, N1, N2, and N3 are also reflected in the report for manual review. The current data in the database is used to generate a current curve, which can be directly displayed in the system and also reflected in the test report.
[0145] The working condition test method of the gas meter battery assembly is as follows:
[0146] Since the programmable power supply can output stable voltage and sufficient current, it cannot completely replace the actual working condition of the battery, so it is also designed to use batteries of different lengths to simulate the user's replacement of batteries and test the working condition of the gas meter; there are three actual batteries in total, battery group 1 is a new battery, battery group 2 is an undervoltage battery, and battery group 3 is a pressure-loss battery; the number of test units, the meter number of each gas meter under test and related information are configured by the PC test machine and entered into the system, and the test method of each test unit is configured, and the system is started;
[0147] The S901 PC test machine selects the first group of batteries to supply power to the gas meter under test through the control unit;
[0148] The S902 PC tester controls the simulated finger key presses through relays to report. The PC tester analyzes the reported data and determines that it has passed if the battery is sufficient.
[0149] The S903 PC test machine selects the second battery group to supply power to the gas meter under test through the control unit;
[0150] The S904 PC test machine uses relay control to simulate finger key presses and reports. The PC test machine analyzes the reported data and determines that the battery is under-voltage and passes the test.
[0151] The S905 PC test machine selects the third battery group to supply power to the gas meter under test through the control unit;
[0152] The S906 PC test machine uses relay control to simulate finger key presses and reports. If the PC test machine waits for 1 minute and no data is reported, it is considered passed.
[0153] The S907 PC test machine selects the first group of batteries to supply power to the gas meter under test through the control unit;
[0154] The S908 PC test machine controls the simulated finger report through a relay. The PC test machine analyzes the reported data and determines that it has passed if the battery power is sufficient.
[0155] The performance test method of the first communication channel reporting success rate, the steps are as follows:
[0156] Configure the number of test units, the meter number of each gas meter being tested and related information into the system through the PC test machine, configure the test method of each test unit, and start the system;
[0157] The S1001 PC test machine controls the simulated finger through the relay to open the second communication channel of the tested gas meter, and sets the timing reporting period p of the tested gas meter through the second communication channel;
[0158] S1002 The PC tester receives the reported data of the gas meter under test and accumulates the number of reports m for a period of time T 持续 ;
[0159] S1003 Calculate the theoretical reporting times n based on the duration and reporting cycle 理论 =T 持续 / p, the actual number of reports is m, and the reporting success rate is r=m / n 理论 If the reporting success rate is higher than 99%, the reporting success rate of the first communication channel is determined to be qualified.
[0160] The performance test method for key reporting success rate is as follows:
[0161] Configure the number of test units, the meter number of each gas meter being tested and related information into the system through the PC test machine, configure the test method of each test unit, and start the system;
[0162] The S1101 PC test machine controls the simulated finger through the relay to press and hold the button of the gas meter under test according to the period p to trigger the report;
[0163] S1102 The PC tester receives the reported data from the gas meter and accumulates the number of reports m; this lasts for a period of time T 持续 ;
[0164] S1103 calculates the theoretical reporting times n based on the duration and reporting cycle 理论 =T 持续 / p, the actual number of reports is m, and the key reporting success rate is r=m / n 理论 If the reporting success rate is higher than 99%, the key reporting success rate is considered qualified.
[0165] The present invention can perform automated function and performance tests on multiple gas meters simultaneously, and can also perform different test tasks separately, which can greatly improve the efficiency and reliability of the entire test task and save test time and test costs; and the present invention takes into account the habit of simulating users operating gas meters, such as using simulated fingers touching buttons, simulating users replacing batteries with different capacities, etc., and tests are performed as much as possible with reference to actual usage scenarios to ensure that the product operates reliably on site.
Claims
1. A gas meter complete machine automatic testing system, characterized in that Including test rack, air supply device, standard table, several test units and PC test machine, The test rack is used to install various devices in the test system. The test rack is set to a multi-layer structure, and each layer is equipped with a power supply interface, a gas supply interface, and a test unit; The gas supply device includes an air pump and a frequency converter, the air pump is used to provide the gas to be measured, and the frequency converter is used to control the air flow speed of the air pump; The standard meter is a gas meter that has been calibrated to meet the functional and metering performance standards, and is used to compare data with the gas meter being tested. The test unit includes a gas meter to be tested, a programmable power supply, a battery pack, a control unit, a current detection device, a communication module, a simulated finger and a communication unit. The programmable power supply is controlled by a PC test machine to adjust the output voltage. The battery pack simulates different voltage environments and consists of three groups of batteries. The first group of batteries has normal voltage, the second group of batteries has undervoltage, and the third group of batteries has no voltage. The control unit is a multi-channel relay used to control the simulated finger and select the power supply channel of the gas meter to be tested. The current detection device is a high-precision ammeter with programmable control, which is used to accurately measure the power consumption of the gas meter. The communication module uses a switch or a USB hub to communicate with each module. The simulated finger is an electric push rod. The communication unit uses infrared or Bluetooth to realize data transmission between the PC test machine and each gas meter to be tested. The PC test machine is connected to the frequency converter through a communication cable, and the frequency converter is connected to the air pump. The air flows out of the air pump, passes through the standard meter, and enters multiple gas meters under test. The gas meter under test and the standard meter are ventilated at the same time to compare the data. After the ventilation is completed, the PC test machine calculates the data difference based on the flow data in the meter sent back by the communication module to determine whether it is within the allowable error range, thereby determining the reliability of the performance test. The PC tester connects to the control unit through the communication module to select the power supply of the tested gas meter, which is a program-controlled power supply or three battery packs. The PC tester sends instructions to the program-controlled power supply to change the voltage, and uses the program-controlled power supply to test the working state and voltage alarm function of the gas meter under different voltages; the battery packs with different capacities are used to truly simulate the user's battery replacement scenario: normal voltage, undervoltage, and loss of voltage. The control unit selects any battery scenario to simulate the user replacing the battery, and then tests the voltage detection function and alarm function of the gas meter under the corresponding situation; In the test unit, a dummy battery tool is placed in the battery compartment of the gas meter under test to fix the power supply line terminal, and the programmable power supply and three battery packs are respectively connected to the current detection device through the control unit and connected to the battery compartment power supply line; The PC test machine controls the simulated finger to press or release the button on the panel of the tested gas meter through the control unit, uses the current detection device to test the power consumption of the gas meter, and connects the current detection device through the communication module to read the current value; The gas meter under test includes an MCU, a metering unit, a first communication channel, a second communication channel, a valve unit, an alarm unit, a clock unit, a storage unit and a display unit. The MCU is responsible for coordinating information exchange between components within the meter to realize corresponding functions. The metering unit is responsible for data measurement and recording during ventilation. The second communication channel is responsible for proximal information exchange. The first communication channel is responsible for remote information exchange with the background. The valve unit is responsible for switching valves in the gas meter. The alarm unit is responsible for feedback of abnormal conditions through the first communication channel or the second communication channel when an abnormality occurs in the meter. The clock unit is responsible for providing time information in real time. The storage unit is responsible for corresponding data information when the storage function is realized. The display unit is responsible for displaying the meter status information. The PC test machine uses wireless communication to connect to the second communication channel of the gas meter under test to realize the collection of data from the gas meter under test.
2. A method for testing a gas meter complete automatic testing system as claimed in claim 1, characterized in that The PC test machine tests the functions and performance of the gas meter to verify whether the functions completed by the various components of the gas meter are successfully realized and whether the performance of each component during the test meets the requirements. The functional test includes the second communication channel opening function test, the synchronous balance function test, the valve opening function test, the small flow detection function test, the long-term gas use function test and the ultra-large flow detection function test. The performance test includes the working status test of the gas meter under different voltage states, the power consumption test and analysis of the gas meter, the working condition test of the gas meter battery assembly, the performance test of the first communication channel reporting success rate and the performance test method of the key reporting success rate.
3. A test method for a gas meter complete machine automatic test system according to claim 2, characterized in that The steps for testing the second communication channel opening function are as follows: S101 PC test machine sends a closing command to the control unit, the corresponding circuit of the relay is closed to supply positive current to the mechanical transmission device of the simulated finger, and the simulated finger is pushed forward by the transmission device. The pushing time t is The calculation shows that, where x represents the distance from the tip of the simulated finger to the button on the second communication channel being pressed, and v represents the moving speed of the simulated finger under the push of the transmission device, after t time, the PC test machine sends a disconnection command to the control unit, the corresponding circuit of the relay is disconnected, and the power supply to the mechanical transmission device is stopped, and the simulated finger stays for 1 second; S102 The PC tester sends a closing command to the control unit, the corresponding circuit of the relay is closed, the transmission device rotates in the opposite direction, driving the simulated finger to move in the opposite direction for t time, the simulated finger moves away from the second communication channel button and returns to the original position, the PC tester sends a disconnecting command to the control unit, the corresponding circuit of the relay is disconnected, and the power supply to the mechanical transmission device is stopped; S103 The PC tester controls the proximal communication device to send a command to the gas meter to modify the time "year-month-day-hour-minute-second" to 00000000000000, and then reads the time in the gas meter through the proximal communication device. If the time read in the meter is between 000000000000000 and 000000000000010, it means that the second communication channel is successfully opened and the function is normal. Otherwise, it means the startup fails and the function is abnormal.
4. A test method for a gas meter complete automatic test system according to claim 2, characterized in that The steps for testing the synchronization balance function are as follows: S201 The PC test machine sends a closing command to the control unit to control the corresponding circuit of the relay to close, supplying a positive current to the mechanical transmission device of the simulated finger. The simulated finger moves forward under the push of the transmission device. After t time, the relay is disconnected to stop supplying power to the mechanical transmission device of the simulated finger. The simulated finger stays for 3 seconds. S202 The PC test machine sends a closing command to the control unit, controls the corresponding circuit of the relay to close, and the transmission device rotates in the reverse direction, driving the simulated finger to move in the reverse direction for a time period of t, and the simulated finger moves away from the second communication channel button and returns to its original position; S203 The PC test machine executes the read command, and the communication module of the test unit returns the reported information. The user balance data is read through the key parsing operation. If the corresponding data part exists, it means that the synchronization balance function is normal, otherwise it is not.
5. The test method of a gas meter complete automatic test system according to claim 2, characterized in that The valve opening function test steps are as follows: S301 PC test machine sends a closing command to the control unit, the corresponding circuit of the relay is closed to power the mechanical transmission device of the simulated finger, the simulated finger is pushed forward by the transmission device, and after t time, the simulated finger stays for 1 second; S302 The PC test machine continues to execute the script command, the corresponding circuit of the relay is closed, the transmission device rotates in the reverse direction, and drives the simulated finger to move in the reverse direction for t time. The simulated finger moves away from the second communication channel button and returns to its original position. S303 PC test machine sends a read command, and the communication module of the test unit returns the reported information. The valve filling part data is read through the key parsing operation. If the corresponding data part indicates that the valve is open, it means that the valve opening function is normal, otherwise it is the opposite.
6. A test method for a gas meter complete automatic test system according to claim 2, characterized in that The micro-flow detection function test steps are as follows: The S401 PC test machine sends a command to the inverter, which changes the power supply frequency to make the air pump generate a small airflow; The S402 PC tester sends a read command and reads the flow data of the metering unit in the standard meter through the communication module. The sampling frequency is f, and the difference in flow velocities between two consecutive sampling points is calculated. where vn and v(n - 1) represent the flow velocities of the two consecutive sampling points. Set a threshold T, T = 0.01 * min{vn, v(n - 1)}. If Δv < T, it is determined that the air flow is stable, and the PC tester starts to monitor the information transmitted back by the first communication channel of the test unit. S403 The PC tester determines that the flow data read from the standard table is always less than the minimum flow threshold parameter of the gas meter being tested. If it is greater than the parameter, the PC tester stops recording and executes S401 again. S404 The PC test machine continues to execute the read command and reads the micro-flow detection record through the communication module in the test unit. If the information sent back by the communication module of the gas meter in the test unit has a micro-flow alarm identifier after parsing, the function is normal, otherwise the function is abnormal; The long-term gas function test steps are as follows: The S501 PC test machine sends commands to the inverter, which changes the power supply frequency to make the air pump produce a constant airflow; The S502 PC tester sends a read command and reads the flow rate data of the metering unit in the standard meter through the communication module. The sampling frequency is f, and the difference in flow velocities between two consecutive sampling points is calculated. , where vn and v(n - 1) represent the flow velocities of the previous and next sampling points respectively. A threshold T is set, T = 0.01 * min{vn, v(n - 1)}. If Δv < T, it is determined that the air flow is stable, and the PC tester starts to monitor the information transmitted back in the first communication channel of the test unit. S503 The PC test machine sends a read command to read the constant flow record through the communication module in the test unit. If the information sent back by the communication module of the test unit gas meter has a constant flow alarm identifier after parsing, the function is normal, otherwise it is not. The steps for testing the ultra-large flow detection function are as follows: The S601 PC test machine sends commands to the inverter, which changes the power supply frequency to make the air pump generate a large airflow; The S602 PC tester sends a read command and reads the flow rate data of the metering unit in the standard meter through the communication module. The sampling frequency is f, and the difference in flow velocities between two consecutive sampling points is calculated. where vn and v(n - 1) represent the flow velocities at the two consecutive sampling points. A threshold T is set, T = 0.01 * min{vn, v(n - 1)}. If Δv < T, it is determined that the air flow is stable, and the PC tester starts to monitor the information transmitted back in the first communication channel of the test unit. The S603 PC test machine sends a read command to read the excessive flow record through the communication module in the test unit. If the information sent back by the communication module of the test unit gas meter has an excessive flow alarm identifier after parsing, the function is normal, otherwise it is not.
7. A test method for a gas meter complete automatic test system according to claim 2, characterized in that The gas meter working state test method under different voltage conditions is as follows: The S701 PC tester sends a closing command to the control unit, which selects the program-controlled power supply to supply power to the gas meter under test, and controls the program-controlled power supply to output sufficient voltage through the communication interface of the program-controlled power supply; S702 PC test machine sends a closing command to the control unit, the corresponding circuit of the relay is closed to power the mechanical transmission device of the simulated finger, the simulated finger is pushed forward by the transmission device, and after t time, the simulated finger stays for 6 seconds; S703 The PC test machine executes the read command and reads the power data through the communication module in the test unit. If the information sent back by the communication module of the gas meter in the test unit is parsed and there is an identifier of sufficient power supply, then the function is normal, otherwise it is not. The S704 PC tester sends a command to set the voltage, and controls the programmable power supply to output sufficient voltage through the communication interface of the programmable power supply, and then drops 0.01 volt every 1 second to detect the undervoltage point; The S705 PC tester continuously monitors the information sent back through the first communication channel. If the battery undervoltage alarm identifier appears in the information, it is determined that the undervoltage function is normal. If the undervoltage alarm identifier does not appear until the undervoltage point Vq, it is determined that the undervoltage function is invalid. The S706 PC tester sends a command to set the voltage, and controls the programmable power supply to output sufficient voltage through the communication interface of the programmable power supply, and then drops 0.01 volt every 1 second to detect the voltage loss point; S707 PC test machine continuously monitors the information sent back by the first communication channel. If the battery pressure loss alarm identifier appears in the information, it is judged that the pressure loss function is normal. If the pressure loss alarm identifier does not appear until the pressure loss point Vs, it is judged that the pressure loss function is invalid. The gas meter battery assembly working condition test method is as follows: The S901 PC test machine selects the first group of batteries to supply power to the gas meter under test through the control unit; The S902 PC tester controls the simulated finger key presses through relays to report. The PC tester analyzes the reported data and determines that it has passed if the battery is sufficient. The S903 PC test machine selects the second battery group to supply power to the gas meter under test through the control unit; The S904 PC test machine uses relay control to simulate finger key presses and reports. The PC test machine analyzes the reported data and determines that the battery is under-voltage and passes the test. The S905 PC test machine selects the third battery group to supply power to the gas meter under test through the control unit; The S906 PC test machine uses relay control to simulate finger key presses and reports. If the PC test machine waits for 1 minute and no data is reported, it is considered passed. The S907 PC test machine selects the first group of batteries to supply power to the gas meter under test through the control unit; The S908 PC test machine controls the simulated finger report through a relay. The PC test machine analyzes the reported data and determines that it has passed if the battery power is sufficient.
8. The test method of a gas meter complete automatic test system according to claim 2, characterized in that The gas meter operation power consumption test and analysis method is as follows: The S801 PC test machine selects the program-controlled power supply of the corresponding test unit through the control unit and configures the program-controlled power supply to output normal voltage; The S802 PC test machine controls the inverter to start the air pump and adjust the air flow to a large flow rate; S803 Turn on the current detection device, and the PC test machine reads the real-time current data i of the current detection device every 1 second, saves it, and calculates the total current M1= M1+i in the static state, for 2 hours; S804 PC test machine turns off the inverter and calculates the average current N1=M1 / 2 / 3600 within 2 hours; The S805 PC test machine reads the real-time current data j of the current detection device every 1 second and saves it, and calculates the total current M2= M2+j in static state for 22 hours; S806 Calculate the static average current N2 for 22 hours = M2 / 22 / 3600; The S807 PC test machine uses relay control to simulate finger long press button to start reporting; The S808 PC test machine reads the real-time current data k of the current detection device every 1 second and saves it. At the same time, it calculates the total current M3=M3+k under large flow, and the total reporting time is t 上报 ; S809 calculates and reports the average current N3=M3 / t during this period 上报 ; S810 Calculate 24 hours + t 上报 Total current consumption M=M1+M2+M3; S811 The total capacity of the battery is Q, and the usage time T is calculated based on the daily current consumption 使用 =Q / M, if T 使用 If it is greater than the number of days set in the test method, the output result is normal power consumption.
9. A test method for a gas meter complete automatic test system according to claim 2, characterized in that The performance test method of the first communication channel reporting success rate is as follows: The S1001 PC test machine controls the simulated finger through the relay to open the second communication channel of the tested gas meter, and sets the timing reporting period p of the tested gas meter through the second communication channel; S1002 The PC tester receives the reported data of the gas meter under test and accumulates the number of reports m for a period of time T 持续 ; S1003 Calculate the theoretical reporting times n based on the duration and reporting cycle 理论 =T 持续 / p, the actual number of reports is m, and the reporting success rate is r=m / n 理论 If the reporting success rate is higher than 99%, the reporting success rate of the first communication channel is determined to be qualified; The performance test method of the key reporting success rate is as follows: The S1101 PC test machine controls the simulated finger through the relay to press and hold the button of the gas meter under test according to the period p to trigger the report; S1102 The PC tester receives the reported data from the gas meter and accumulates the number of reports m; this lasts for a period of time T 持续 ; S1103 calculates the theoretical reporting times n based on the duration and reporting cycle 理论 =T 持续 / p, the actual number of reports is m, and the key reporting success rate is r=m / n 理论 If the reporting success rate is higher than 99%, the key reporting success rate is considered qualified.
Citation Information
Patent Citations
Gas meter function testing method and device
CN109029645A
Automatic simulation testing system for gas meters
CN109141588B
Intelligent gas meter test case automatic execution system and method
CN117367546A
System for visual function detection of gas meter flow line
CN108007535A
Testing system for function of gas meter
CN108844603A
