Test tool system and test method of controller
By utilizing the electromechanical conversion function of the automated test controller in the testing tooling system, the problems of low testing complexity and accuracy in existing technologies have been solved, thereby improving the production efficiency and measurement accuracy of smart water meters.
Patent Information
- Application Number
- CN202410936497.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-11-05
AI Technical Summary
In existing technologies, the testing process for the electromechanical conversion function of smart water meters is complex and non-automated, resulting in low testing accuracy and efficiency, which affects production efficiency and measurement precision.
A testing fixture system is provided, including a test station, an interface device, and a fixture circuit device. It uses a motor to simulate impeller rotation, and realizes automated testing of the controller through a main control module and a motor control module. It uses an infrared module for communication, a power management module for power supply, and a buzzer alarm module to indicate the test results.
It enables automated testing of the controller, improves testing accuracy and efficiency, avoids disassembly and reassembly problems caused by overall test anomalies, and improves the production efficiency of smart water meters.
Smart Images

Figure CN118897534A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of water meter detection, and in particular to a testing tooling system and a testing method for a controller. Background Art
[0002] Smart water meter is a new type of water meter that uses modern microelectronics technology, modern sensor technology, and smart IC card technology to measure water consumption, transmit water consumption data, and settle transactions. Smart water meters mainly include base meters and controllers. The controller is responsible for electromechanical conversion and collecting water use information. In the production process of smart water meters, it is particularly important to verify the reliability of the controller's electromechanical conversion function, which is related to the quality of smart water meter products.
[0003] In the related technologies, most smart water meters use non-magnetic sensing technology or magnetic sensing technology to perform electromechanical conversion of metering signals. The detection schemes of smart water meters mainly include the whole machine air blowing method and the motor simulation method.
[0004] The whole machine blowing method is to assemble the base meter to be tested and the controller, and then read the mechanical part of the water meter after assembly; use a fan or other methods to blow air into the water meter to simulate the flow of the water meter and obtain the reading of the electronic part; compare the reading of the mechanical part with the reading of the electronic part, and determine whether the error between the two meets the test standard. However, the test process of this method requires the assembly of the controller and the base meter, which makes it impossible to test the controller alone; during the blowing process, the airflow will drive the signaling device inside the base meter to move up and down, affecting the detection of the controller. Moreover, there is a process of manually reading the base meter data in the entire detection process, which may cause human errors. The test process is not automated, resulting in low detection efficiency.
[0005] The motor simulation method is to place the controller of the water meter on the detection fixture, set the initial cumulative amount inside the controller; place the signaling device in the electromechanical synchronization area of the fixture controller, and fix the signaling device on the motor shaft; drive the signaling device to rotate through the rotation of the motor shaft to simulate the rotation of the signaling signal of the water meter; after the rotation is set for a time, read whether the cumulative amount inside the fixture controller meets the test standard. However, this method has a single motor speed, and the motor speed cannot be adjusted in real time during the test. The direction of motor rotation cannot be controlled, and the actual water use environment cannot be simulated. Moreover, the real-time position of the signaling device is not controlled, and the number of rotations cannot be guaranteed to be an integer number of rotations. The number of rotations needs to be converted through time, resulting in errors in the results, thereby affecting the accuracy of the detection.
[0006] In summary, the related technologies for detecting electromechanical conversion functions of smart water meters have problems such as complex testing process and non-automated testing, which leads to low test accuracy and low test efficiency, and also affects the production efficiency and measurement accuracy of smart water meters. Summary of the invention
[0007] In order to address the deficiencies in the related art, the purpose of the present application is to provide a method for realizing automated testing of smart mechanical water meter controllers, thereby improving the testing efficiency and the production efficiency of smart mechanical water meters.
[0008] To achieve the above objectives, this application adopts the following technical solutions:
[0009] In a first aspect, the present application provides a test fixture system, the test fixture system is used to detect at least one controller, the controller is applied to an intelligent mechanical water meter, the controller can detect the rotation status of an impeller in the intelligent mechanical water meter, the test fixture system includes a tester interface device and a fixture circuit device, the test station is used to install the controller; the fixture circuit device is coupled to the controller through the interface device. The fixture circuit device includes a motor, a motor control module and a main control module. The motor is used to simulate the rotation condition of the impeller in the intelligent mechanical water meter; the motor control module is used to control the rotation of the motor according to the motor control parameters, the motor control parameters at least include the motor rotation number setting value, the motor control module includes a full-bridge driver chip and a second-order RC low-pass filter, the second-order RC low-pass filter is used to receive the PWM drive signal and perform a second-order RC low-pass filter on the PWM drive signal, and the full-bridge driver chip receives the signal after the second-order low-pass filter to realize DAC constant current drive for the motor; the main control module is used to obtain the motor control parameters and transmit the motor control parameters to the motor control module, and the main control module is also used to send a PWM drive signal to the motor control module; the main control module also obtains electronic metering information through the interface device, and the electronic metering information is obtained by the controller detecting the rotation condition of the motor, and the electronic metering information includes the motor rotation number measurement value measured by the controller; the main control module compares the motor rotation number measurement value with the motor rotation number setting value, and in response to the deviation between the motor rotation number measurement value and the motor rotation number setting value being less than a preset threshold, it is determined that the electromechanical conversion function of the controller is normal. 。
[0010] Furthermore, the tooling circuit device also includes a motor feedback module, which collects real-time operating parameters of the motor and transmits them to the main control module; the main control module receives the real-time operating parameters and determines whether the real-time operating parameters deviate from the motor control parameters; in response to the real-time operating parameters deviating from the motor control parameters, the main control module adjusts the PWM drive signal so that the motor control module controls the motor rotation according to the motor control parameters.
[0011] Furthermore, the controller includes a first infrared module; the tooling circuit device includes second infrared modules and secondary control modules corresponding to the number of test stations, any second infrared module can be coupled to a first infrared module through an infrared serial port protocol, any secondary control module is coupled to a second infrared module, and the secondary control module is also coupled to the main control module; through the first infrared module and the second infrared module, the controller can perform near-field communication with the secondary control module.
[0012] Furthermore, the main control module is also used to obtain and broadcast infrared query information to the secondary control module to trigger the secondary control module to clear the forward rotation number and reverse rotation number of the historical record, and enable the secondary control module to initiate a query to the coupled controller according to the infrared query information, wherein the infrared query information at least includes the simulated pipe diameter parameters, APN, software version number, IP address and port; the secondary control module can receive the query result responded by the controller, and feed the query result back to the main control module; the main control module compares the query result with the infrared query information to determine whether the query result is consistent with the comparison result of the infrared query information. In response to the consistency of the comparison result, it is determined that the preliminary test is normal and the controller is further tested; otherwise, the test is determined to be abnormal and the test of the controller is terminated.
[0013] Furthermore, the tooling circuit device also includes a power management module, and the interface device also includes a mains power interface. The power management module is connected to the mains power interface, and the power management module converts the external power provided by the mains power interface into a power supply used by the test tooling system; wherein the power management module converts the 220V power supply of the external power supply into a 12V power supply for powering the motor; the power management module converts the 12V power supply into a 5V power supply through a DC / DC converter, which is used to power at least part of the main control module; the power management module converts the 5V power supply into a 3.3V power supply through an LDO low voltage difference linear regulator, which is used to power the remaining electrical appliances of the test tooling system.
[0014] Furthermore, the tooling circuit device also includes a buzzer warning module. In response to determining that the test of the controller is abnormal, the buzzer warning module buzzes at a first preset frequency. In response to determining that the test of the controller is normal, the buzzer warning module buzzes at a second preset frequency, wherein the first preset frequency is greater than the second preset frequency, and the duration of the buzzing at the first preset frequency when the test is determined to be abnormal is longer than the duration of the buzzing at the first preset frequency when the test is determined to be normal.
[0015] Furthermore, the tooling circuit device also includes a pressure detection module, which is used to detect whether there is a controller installed downward on the test station; in response to the pressure detection module detecting that there is a controller installed downward on the test station, the test tooling system starts a test process for the controller.
[0016] In a second aspect, the present application provides a method for testing a controller, the controller is applied to an intelligent mechanical water meter, the controller can detect the rotation condition of an impeller in the intelligent mechanical water meter, the method is applied to the test fixture system of the first aspect, and the method comprises the following steps:
[0017] S101, obtaining motor control parameters, and controlling the motor to rotate according to the motor control parameters, the motor being used to simulate the rotation condition of the impeller in the intelligent mechanical water meter, the motor control parameters at least including a set value of the number of motor rotations;
[0018] S102, detecting the rotation status of the motor through the controller to obtain electronic metering information, where the electronic metering information includes a measurement value of the number of rotations of the motor measured by the controller;
[0019] S103, comparing the measured value of the number of motor rotations with the set value of the number of motor rotations, and in response to a deviation between the measured value of the number of motor rotations and the set value of the number of motor rotations being less than a preset threshold, determining that the electromechanical conversion function of the controller is normal.
[0020] Furthermore, the method also includes: collecting real-time operating parameters of the motor through a motor feedback module, and determining whether the real-time operating parameters deviate from the motor control parameters; in response to the real-time operating parameters deviating from the motor control parameters, adjusting the PWM drive signal, and controlling the motor rotation according to the motor control parameters.
[0021] Furthermore, the method also includes: in response to determining that the test of the controller is abnormal, controlling the buzzer warning module to buzz at a first preset frequency; in response to determining that the test of the controller is normal, controlling the buzzer warning module to buzz at a second preset frequency, wherein the first preset frequency is greater than the second preset frequency, and the duration of the buzzing at the first preset frequency when the test is determined to be abnormal is longer than the duration of the buzzing at the first preset frequency when the test is determined to be normal.
[0022] The testing tooling system and controller testing method of the present application can avoid the problem of abnormalities in the overall testing of the smart mechanical water meter that requires disassembly and reassembly, can realize automated testing of the controller, improve testing efficiency, and thus improve the production efficiency of the smart mechanical water meter. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a structural schematic diagram of the first test fixture system provided in an embodiment of the present application;
[0024] Figure 2 is a structural schematic diagram of a second test fixture system provided in an embodiment of the present application;
[0025] Figure 3 is a circuit diagram of a motor control module provided in an embodiment of the present application;
[0026] Figure 4 is a structural schematic diagram of a third test fixture system provided in an embodiment of the present application;
[0027] Figure 5 is a schematic diagram of a simulated actual flow rate model of an intelligent mechanical water meter provided in an embodiment of the present application;
[0028] Figure 6 is a schematic diagram of power conversion of a power management module provided in an embodiment of the present application;
[0029] Figure 7 is a circuit diagram of a buzzer warning module provided in an embodiment of the present application;
[0030] Figure 8 is a circuit diagram of a pressure detection module provided in an embodiment of the present application;
[0031] Fig. 9 It is a test flow chart specifically implemented by the test fixture system provided in the embodiment of the present application;
[0032] Fig.10 It is a flow chart of a controller testing method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0033] The present application will be described in detail below in conjunction with the specific implementation modes shown in the accompanying drawings, but these implementation modes do not limit the present application. Structural, methodological, or functional changes made by ordinary technicians in the field based on these implementation modes are included in the protection scope of the present application.
[0034] The purpose of the present application is to provide a technical solution to solve the problems of low test accuracy, low test efficiency and low production efficiency caused by the complex testing process of intelligent mechanical water meters, the inability to test the controller separately, non-automated testing, etc. in the related technologies. Based on this, the present application provides a test tooling system and a test method. The present application can avoid the problem of abnormalities in the overall test of the intelligent mechanical water meter resulting in the need for disassembly and reassembly. The present application can realize the automation and separate testing of the electromechanical conversion function of the controller to improve the test accuracy and test efficiency, thereby improving the production efficiency of the intelligent mechanical water meter.
[0035] In the intelligent mechanical water meter, it usually includes a base meter and a controller. When measuring the flow of fluid flowing through the intelligent mechanical water meter, the fluid drives the impeller of the base meter to rotate. The rotation speed of the impeller is proportional to the fluid flow rate. The controller converts the mechanical movement of the impeller into an electrical signal, and counts and processes the electrical signal to obtain the fluid flow. It can be seen that whether the electromechanical conversion function of the controller is normal is particularly important to ensure the measurement accuracy of the intelligent mechanical water meter.
[0036] In order to realize the automatic test of whether the electromechanical conversion function of the controller 200 is normal, Figure 1 As shown, a test fixture system 100 provided in an embodiment of the present application is used to detect at least one controller 200. The controller 200 is applied to an intelligent mechanical water meter, and the controller 200 can detect the rotation condition of the impeller in the intelligent mechanical water meter. The test fixture system 100 includes a test station 11, an interface device 12, and a fixture circuit device 13. Among them, the test station 11 is used to install the controller 200; the fixture circuit device 13 is coupled to the controller 200 through the interface device 12; the fixture circuit device 13 is used to simulate the mechanical movement generated by the fluid flowing through the impeller of the intelligent mechanical water meter, and the controller 200 obtains the signal of the mechanical movement and converts it into an electrical signal, and obtains the fluid flow after processing to determine whether the electromechanical conversion function of the tested controller 200 is normal.
[0037] It should be noted that the connection relationship and sequence shown in the figure are for convenience of explanation only. The connection sequence of each module should be determined by its function and internal logic, and does not constitute any limitation on the implementation process of the embodiment of the present application.
[0038] Specifically, the tooling circuit device 13 includes a motor 131, a motor control module 132 and a main control module 133. Among them, the motor 131 is used to simulate the rotation condition of the impeller in the intelligent mechanical water meter; the motor control module 132 is used to obtain the motor control parameters, and the motor control module 132 controls the rotation of the motor 131 according to the motor control parameters. The motor control parameters at least include a set value for the number of motor rotations, and may also include a start acceleration, a stop acceleration, etc., so as to more flexibly control the rotation of the motor 131. Among them, the set value for the number of motor rotations may include a forward rotation number set value and a reverse rotation number set value, so as to realize a two-way test of the rotation of the motor 131, and also realize precise control of the movement direction and position of the motor 131.
[0039] The main control module 133 is used to obtain motor control parameters, and the main control module 133 transmits the motor control parameters to the motor control module 132 so that the motor control module 132 can accurately control the rotation of the motor 131 according to the motor control parameters.
[0040] The main control module 133 also obtains electronic metering information through the interface device 12. The electronic metering information is obtained by the controller 200 detecting the rotation status of the motor 131. The electronic metering information includes the measured value of the number of motor rotations measured by the controller 200, so as to subsequently verify whether the electromechanical conversion function of the controller 200 is normal. Similar to the set value of the number of motor rotations, the measured value of the number of motor rotations also includes the measured value of the number of forward rotations and the measured value of the number of reverse rotations, so as to realize a closed loop of bidirectional testing.
[0041] The main control module 133 compares the measured value of the number of motor rotations with the set value of the number of motor rotations. In response to the deviation between the measured value of the number of motor rotations and the set value of the number of motor rotations being less than a preset threshold, it is determined that the electromechanical conversion function of the controller 200 is normal, thereby completing the test of the electromechanical conversion function of the controller 200, making it convenient for the subsequent assembly of the controller 200 with normal electromechanical function into the intelligent mechanical water meter to avoid disassembly and reinstallation, thereby improving testing efficiency.
[0042] In response to the deviation between the measured value of the number of motor rotations and the set value of the number of motor rotations being greater than or equal to a preset threshold, the main control module 133 determines that the electromechanical conversion function of the controller 200 is abnormal, so that the operation and maintenance personnel can repair or scrap the controller 200 with the abnormal function, thereby avoiding the assembly of the controller 200 into the smart mechanical water meter, resulting in measurement abnormalities of the smart mechanical water meter and the need to disassemble and reassemble the smart mechanical water meter.
[0043] It should be noted that the test fixture system 100 of the embodiment of the present application can test multiple controllers 200. The test fixture system 100 can set different motor control parameters for each controller 200 to be tested to meet various testing requirements for different controllers 200, thereby improving the diversity and flexibility of the test fixture system 100.
[0044] In order to facilitate testing of multiple controllers 200, the test station 11 can be set according to the number of test controllers 200, and each module of the test fixture system 100 can be set according to specific needs. Figure 2 As shown, an example of an embodiment of the present application is a test tooling system 100 including four test stations 11, each controller 200 is coupled to a tooling circuit device 13 via an interface device 12, and a main control module 133 is used to control multiple controllers 200 and multiple different test requirements, thereby achieving efficient testing of multiple controllers 200.
[0045] According to the above description, the test tooling system 100 of this embodiment can avoid the problem of abnormalities in the overall test of the intelligent mechanical water meter resulting in the need for disassembly and reassembly, and can realize the electromechanical conversion function of the automated test controller 200 to improve the test accuracy and test efficiency, thereby improving the production efficiency of the intelligent mechanical water meter.
[0046] Exemplarily, the motor 131 is a stepper motor, which is an electric motor that converts an electrical pulse signal into a mechanical angular displacement. The stepper motor can achieve high-precision position control through the motor control module 132 .
[0047] like Figure 3As shown, it is a circuit diagram of a motor control module 132 provided in this embodiment. The motor control module 132 uses a full-bridge driver chip, and the main control module 133 can generate a PWM (pulse width modulation) signal to transmit to the motor control module 132 to improve the control accuracy of the motor 131 by the motor control module 132. The motor control module 132 can convert the PWM signal into an analog signal through a second-order RC low-pass filter, and the analog signal can be used to control the current of the motor 131 to realize DAC (digital analog conversion) constant current drive. This method can ensure that the motor 131 runs with a constant current and a corresponding constant torque, thereby improving the accuracy and stability of the motor control module 132 controlling the operation of the motor 131.
[0048] Alternatively, if Figure 4 As shown, the tooling circuit device 13 also includes a motor feedback module 134, which collects real-time operating parameters of the motor 131 and transmits them to the main control module 133; the main control module 133 receives the real-time operating parameters and determines whether the real-time operating parameters deviate from the motor control parameters; in response to the real-time operating parameters deviating from the motor control parameters, the main control module 133 adjusts the PWM drive signal so that the motor control module 132 controls the motor 131 to rotate according to the motor control parameters, and the motor feedback module 134 realizes closed-loop control and precise control of the motor 131.
[0049] Exemplarily, the motor feedback module 134 implements FOC (Field-Oriented Control) closed-loop control on the motor 131. The motor feedback module 134 can be implemented in the form of a magnetic encoder, and the motor 131 is equipped with a magnet module. The magnetic encoder captures the angle change of the magnet module that rotates synchronously with the motor 131, and converts the angle change information into a digital signal. The magnetic encoder outputs the digital signal to the main control module 133 through the IIC (Inter-Integrated Circuit) interface. The main control module 133 can receive and process the digital signal, calculate the corresponding current regulation amount and output a PWM signal to the motor control module 132, and the operation of the motor 131 is regulated by the motor control module 132, thereby realizing real-time control and closed-loop control of the motor 131. For example, the main control module 133 can achieve the best performance and efficient operation of the motor 131 by regulating the step angle, phase inductance, moment of inertia, phase current, phase resistance, and number of phases of the motor 131.
[0050] like Figure 5As shown in the figure, it is a simulated intelligent mechanical water meter actual flow rate model realized by FOC closed-loop control in this embodiment. In the figure, the speed represents the rotation speed of the impeller, and the flow rate represents the flow speed of the fluid. The motor control module 132 controls the motor 131 to simulate the rotation condition of the impeller in the intelligent mechanical water meter through the motor control parameters, wherein the motor control parameters include the start acceleration, the shut-down acceleration, the motor running time, and the motor running direction. The motor feedback module 134 obtains the real-time operating parameters of the motor 131 and transmits them to the main control module 133, thereby obtaining the speed image in the figure. Observation Figure 5 It can be seen that the rotation speed is proportional to the flow rate, which also shows that the rotation condition of the impeller in the simulated intelligent mechanical water meter implemented by the test fixture system 100 of the present application is accurate and effective.
[0051] Alternatively, if Figure 4 As shown, the controller 200 includes a first infrared module 21, and the tooling circuit device 13 includes second infrared modules 135 and secondary control modules 136 corresponding to the number of test stations 11. Any second infrared module 135 can be coupled to a first infrared module 21 through an infrared serial port protocol, and any secondary control module 136 is coupled to a second infrared module 135 to achieve efficient and accurate communication with the controller 200. Exemplarily, in the above example, a test tooling system 100 including four test stations 11, the test tooling system 100 can test four controllers 200, each controller 200 includes a first infrared module 21, and the tooling circuit device 13 includes four second infrared modules 135 and four secondary control modules 136, so as to realize a test process in which one secondary control module 136 controls one controller 200, thereby improving the communication security and test accuracy of the test tooling system 100.
[0052] The secondary control module 136 is also coupled to the main control module 133. Through the first infrared module 21 and the second infrared module 135, the controller 200 can perform near-field communication with the secondary control module 136. Through the secondary control module 136, the test of the controller 200 of a single test station 11 and the data information interaction can be realized, so that when testing multiple controllers 200, the main control module 133 can realize more accurate testing and communication through the secondary control module 136. Among them, the near-field communication between the controller 200 and the secondary control module 136 is realized through the first infrared module 21 and the second infrared module 135, and the use of physical connection can be avoided, reducing the complexity of wiring. This communication method can also prevent external interference and illegal access, improve the safety of the test fixture system 100, and facilitate the increase of the corresponding second infrared module 135 and the secondary control module 136 according to the number of test stations 11, so that the test fixture system 100 can be expanded more flexibly.
[0053] Optionally, the secondary control module 136 is also coupled to the motor control module 132 and the motor feedback module 134 respectively, and the secondary control module 136 realizes FOC closed-loop control of the motor 131 through the motor control module 132 and the motor feedback module 134. Specifically, the motor control parameters also include startup acceleration, shutdown acceleration, motor running time, and motor running direction. The main control module 133 obtains the motor control parameters and transmits them to the secondary control module 136. The secondary control module 136 controls the motor 131 to simulate the opening, closing, and rotation of the intelligent mechanical water meter through the motor control module 132 according to the motor control parameters. The secondary control module 136 also receives the real-time operating parameters collected by the motor feedback module 134 and processes and analyzes them, calculates the corresponding current regulation amount and outputs a PWM signal to the motor control module 132 to realize FOC closed-loop control. Through continuous testing and optimization, in order to find the best control strategy, it is ensured that the test fixture system 100 maintains high performance and high efficiency.
[0054] Furthermore, the main control module 133 is also used to obtain infrared query information, and the main control module broadcasts the infrared query information to the secondary control module 136 to trigger the secondary control module 136 to clear the number of forward rotations and the number of reverse rotations recorded in the historical records, so as to perform the latest test on the controller. The number of forward rotations may include the forward rotation number setting value and the forward rotation number measurement value recorded in the historical records, and the reverse rotation number may include the reverse rotation number setting value and the reverse rotation number measurement value recorded in the historical records.
[0055] The main control module 133 broadcasts infrared query information to the secondary control module 136, and also enables the secondary control module 136 to initiate a query to the coupled controller 200 according to the infrared query information, wherein the infrared query information at least includes the pipe diameter, APN, software version number, IP address and port; the secondary control module 136 can receive the query result responded by the controller 200, and feed back the query result to the main control module 133; the main control module 133 compares the query result with the infrared query information, and determines whether the comparison result of the query result and the infrared query information is consistent. In response to the consistency of the comparison result, it is determined that the preliminary test is normal, and the controller 200 is further tested. Otherwise, it is determined that the preliminary test is abnormal and the test of the controller 200 is terminated, thereby avoiding testing risks and improving the intelligence and stability of the operation of the test tooling system 100.
[0056] Optionally, the main control module 133 also includes a human-computer interaction interface 1331, through which the test information of the corresponding test fixture system 100 can be set, adjusted, and checked, such as adjusting and checking motor control parameters, infrared query information, etc., or checking whether the electromechanical conversion function of the controller 200 is normal, etc., so as to achieve more flexible control of the test fixture system 100.
[0057] Alternatively, if Figure 4 As shown, the tooling circuit device 13 also includes a power management module 137, and the interface device 12 also includes a mains power interface 121. The power management module 137 is connected to the mains power interface 121, and the power management module 137 converts the external power provided by the mains power interface 121 into power used by the test tooling system 100.
[0058] like Figure 6 As shown, it is a circuit diagram of a power management module 137 of this embodiment to realize power conversion. The power management module 137 converts the 220V power of the external power supply into a 12V power supply through an AC / DC converter, which is used to power the motor 131; the power management module 137 converts the 12V power supply into a 5V power supply through a DC / DC converter, which is used to power at least part of the main control module 133, for example, the 5V power supply can power the human-machine interaction interface 1331; the power management module 137 converts the 5V power supply into a 3.3V power supply through an LDO low-voltage difference linear regulator, which is used to power the remaining electrical appliances of the test fixture system 100. The power management module 137 can realize efficient and accurate power processing and distribution, and improve the stability and reliability of the operation of the test fixture system 100.
[0059] Alternatively, if Figure 4 As shown, the tooling circuit device 13 also includes a buzzer warning module 138, which is coupled to the main control module 133 and provides corresponding prompts during the test and after the test. Specifically, in response to determining that the test of the controller 200 is abnormal, the buzzer warning module 138 buzzes at a first preset frequency, and in response to determining that the test of the controller 200 is normal, the buzzer warning module 138 buzzes at a second preset frequency. The first preset frequency is greater than the second preset frequency, and the duration of the buzzing at the first preset frequency when the test is determined to be abnormal is longer than the duration of the buzzing at the first preset frequency when the test is determined to be normal.
[0060] For example, the first preset frequency buzzer may be 5 Hz and beep constantly, and the second preset frequency buzzer may be 1 Hz and beep for 2 seconds. Figure 7 As shown, it is a circuit diagram of a buzzer warning module 138 of this embodiment. By setting different first preset frequency buzzers and second preset frequency buzzers, automatic prompts for test results can be achieved so that operation and maintenance personnel can respond in time.
[0061] Alternatively, if Figure 4As shown, the tooling circuit device 13 also includes a pressure detection module 139, which is used to detect whether there is a controller 200 installed downwardly on the test station 11; in response to the pressure detection module 139 detecting that there is a controller 200 installed downwardly on the test station 11, the test tooling system 100 starts a test process for the controller 200.
[0062] For example, Figure 8 FIG. 1 is a circuit diagram of a push-down detection module 139 of this embodiment. The interface device 12 may further include a push-down switch. The push-down detection module 139 converts the mechanical action of the push-down switch into an electrical signal and transmits it to the main control module 133. The electrical signal includes a low level and a high level. The low level is when not pressed down, and the high level is after pressing down. When the main control module 133 detects the high level, that is, there is a controller 200 installed under pressure, and the test fixture system 100 starts the test process for the controller 200.
[0063] like Fig. 9 As shown, it is a test process of a specific embodiment of the present application. This embodiment is described in detail by taking the test of four controllers 200 as an example. The test process of testing four controllers 200 by the test fixture system 100 specifically includes the following steps:
[0064] Step S11, setting motor control parameters and infrared query information.
[0065] The motor control parameters and infrared query information are set through the human-computer interaction interface 1331. The motor control parameters include at least a set value of the number of motor rotations, and the infrared query information includes the pipe diameter, APN, software version number, IP address and port.
[0066] Step S12: Determine whether there is a controller 200 installed downward on the test station 11?
[0067] If the judgment result is yes, execute step S13, if the judgment result is no, end the test process.
[0068] The downward pressure detection module 139 is used to detect whether there is a downwardly mounted controller 200 on the test station 11 . In response to the downward pressure detection module 139 detecting that there is a downwardly mounted controller 200 on the test station 11 , the test fixture system 100 starts a test process for the controller 200 .
[0069] Step S13: Obtain infrared query information and broadcast it.
[0070] The main control module 133 obtains and broadcasts the infrared query information to the secondary control module 136 .
[0071] Step S14: clear the historical records, initiate a query based on the infrared query information and feed back the query results.
[0072] The secondary control module 136 receives the infrared query information and triggers the secondary control module 136 to clear the forward rotation number and the reverse rotation number recorded in the historical record. The secondary control module 136 initiates a query to the coupled controller 200 according to the infrared query information.
[0073] The secondary control module 136 receives the query result responded by the controller 200 and feeds the query result back to the main control module 133; the main control module 133 compares the query result with the infrared query information.
[0074] Step S15: Determine whether the query result is consistent with the infrared query information comparison result?
[0075] If the judgment result is yes, execute step S16, if the judgment result is no, execute step S19.
[0076] The main control module 133 determines whether the query result is consistent with the comparison result of the infrared query information. In response to the comparison result being consistent, it determines that the preliminary test is normal and further tests the controller 200. Otherwise, it determines that the test is abnormal and ends the test of the controller 200.
[0077] Step S16, controlling the motor 131 to rotate according to the motor control parameters, and the controller 200 detects the rotation status of the motor 131 to obtain a measurement value of the number of motor rotations.
[0078] The motor control module 132 obtains the motor control parameters and controls the motor 131 to rotate according to the motor control parameters. The controller 200 detects the rotation status of the motor 131 to obtain electronic metering information, which includes the measured value of the number of motor rotations measured by the controller 200.
[0079] Step S17: Determine whether the comparison result between the set value of the number of motor rotations and the measured value of the number of motor rotations is less than a preset threshold value.
[0080] If the judgment result is yes, execute step S18, if the judgment result is no, execute step S19.
[0081] The main control module 133 compares the measured value of the number of motor rotations with the set value of the number of motor rotations, and in response to the deviation between the measured value of the number of motor rotations and the set value of the number of motor rotations being less than a preset threshold, determines that the electromechanical conversion function of the controller 200 is normal.
[0082] Step S18: If the test is normal, the buzzer will sound at the second preset frequency.
[0083] In response to determining that the test of the controller 200 is normal, the buzzer warning module 138 buzzes according to the second preset frequency and ends the test of the controller 200 .
[0084] Step S19: If the test is abnormal, the buzzer will sound at a first preset frequency.
[0085] In response to determining that the test of the controller 200 is abnormal, the buzzer warning module 138 buzzes according to the first preset frequency and ends the test of the controller 200 .
[0086] It should be noted that the serial numbers of the steps in the embodiments of the present application do not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0087] like Fig.10 As shown, the embodiment of the present application further provides a method for testing a controller 200, the controller 200 is applied to an intelligent mechanical water meter, the controller 200 can detect the rotation status of an impeller in the intelligent mechanical water meter, the method is applied to the test fixture system 100 of any of the above embodiments, and the method includes the following steps:
[0088] Step S101, obtaining motor control parameters, and controlling the motor 131 to rotate according to the motor control parameters. The motor 131 is used to simulate the rotation condition of the impeller in the intelligent mechanical water meter. The motor control parameters at least include a set value of the number of motor rotations.
[0089] Step S102 : The controller 200 detects the rotation status of the motor 131 to obtain electronic metering information, where the electronic metering information includes the measured value of the number of motor rotations measured by the controller 200 .
[0090] Step S103, comparing the measured value of the number of motor revolutions with the set value of the number of motor revolutions, and in response to the deviation between the measured value of the number of motor revolutions and the set value of the number of motor revolutions being less than a preset threshold, determining that the electromechanical conversion function of the controller 200 is normal.
[0091] According to the above description, the testing method of the controller 200 of this embodiment can avoid the problem of abnormalities in the overall testing of the smart mechanical water meter resulting in the need for disassembly and reassembly, and can realize the electromechanical conversion function of the automated testing controller 200 to improve the testing accuracy and testing efficiency, thereby improving the production efficiency of the smart mechanical water meter.
[0092] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution of this application can be achieved, and this application is not limited here.
[0093] Optionally, the test method of this embodiment further includes: collecting real-time operating parameters of the motor 131 through the motor feedback module 134, determining whether the real-time operating parameters deviate from the motor control parameters; in response to the real-time operating parameters deviating from the motor control parameters, adjusting the PWM drive signal, and controlling the motor 131 to rotate according to the motor control parameters. This method enables the motor feedback module 134 to achieve closed-loop control and precise control of the motor 131.
[0094] Optionally, the test method of this embodiment further includes: in response to determining that the test of the controller 200 is abnormal, controlling the buzzer warning module 138 to buzz at a first preset frequency, and in response to determining that the test of the controller 200 is normal, controlling the buzzer warning module 138 to buzz at a second preset frequency, wherein the first preset frequency is greater than the second preset frequency, and the duration of buzzing at the first preset frequency when the test is determined to be abnormal is longer than the duration of buzzing at the first preset frequency when the test is determined to be normal. By setting the process of buzzer warning, it is convenient for operation and maintenance personnel to respond in time during and after the test, thereby improving the test efficiency.
[0095] In summary, the electromechanical conversion function of the test controller 200 is an indispensable process to ensure the product quality of the intelligent mechanical water meter, which ensures the effective implementation of the subsequent intelligent mechanical water meter assembly process. The test fixture system 100 and its test method of the present application avoid the problem of abnormalities in the overall test of the intelligent mechanical water meter, which requires disassembly and reassembly, and can also realize the electromechanical conversion function of the automated test controller 200 to improve the test accuracy and test efficiency, thereby improving the production efficiency of the intelligent mechanical water meter. The present application can also realize the regulation of multiple controllers 200 and multiple test requirements, by setting different motor control parameters for each controller 200 to be tested, so as to meet the various test requirements of different controllers 200, and improve the diversity and flexibility of the test fixture system 100.
[0096] The application field of the technology of the present invention is not limited to the field of water meter detection technology. As long as the essence of the technical solution does not deviate from the scope of the technical solution of each embodiment of the present invention, it belongs to the protection scope of the present invention.
[0097] Although the preferred embodiments of the present application have been disclosed for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, without departing from the scope and spirit of the application as disclosed in the accompanying claims.
Claims
1. A test fixture system, the test fixture system is used to detect at least one controller, the controller is applied to an intelligent mechanical water meter, the controller can detect the rotation status of the impeller in the intelligent mechanical water meter, characterized in that: The test fixture system comprises: A test station, the test station is used to install the controller; Interface device; A tooling circuit device, the tooling circuit device is coupled to the controller via the interface device, and the tooling circuit device comprises: A motor, the motor being used to simulate the rotation condition of the impeller in the intelligent mechanical water meter; A motor control module, the motor control module is used to control the rotation of the motor according to motor control parameters, the motor control parameters at least include a set value of the number of motor rotations, the motor control module includes a full-bridge drive chip and a second-order RC low-pass filter, the second-order RC low-pass filter is used to receive a PWM drive signal and perform a second-order RC low-pass filter on the PWM drive signal, the full-bridge drive chip receives the signal after the second-order low-pass filter to realize DAC constant current drive for the motor; A main control module, the main control module is used to obtain the motor control parameters and transmit the motor control parameters to the motor control module, and the main control module is also used to send the PWM drive signal to the motor control module; The main control module also obtains electronic metering information through the interface device, the electronic metering information is obtained by the controller detecting the rotation status of the motor, and the electronic metering information includes a measured value of the number of rotations of the motor measured by the controller; The main control module compares the measured value of the number of motor rotations with the set value of the number of motor rotations, and determines that the electromechanical conversion function of the controller is normal in response to a deviation between the measured value of the number of motor rotations and the set value of the number of motor rotations being less than a preset threshold.
2. The test fixture system according to claim 1, characterized in that: The tooling circuit device further comprises a motor feedback module, which collects real-time operating parameters of the motor and transmits them to the main control module; The main control module receives the real-time operating parameters and determines whether the real-time operating parameters deviate from the motor control parameters; In response to the real-time operating parameter deviating from the motor control parameter, the main control module adjusts the PWM drive signal so that the motor control module controls the motor to rotate according to the motor control parameter.
3. The test fixture system for the smart water meter controller according to claim 1, characterized in that: The controller includes a first infrared module; The tooling circuit device includes second infrared modules and secondary control modules corresponding to the number of the test stations, any of the second infrared modules can be coupled to one of the first infrared modules through an infrared serial port protocol, any of the secondary control modules is coupled to one of the second infrared modules, and the secondary control module is also coupled to the main control module; The controller can perform near field communication with the secondary control module through the first infrared module and the second infrared module.
4. The test fixture system according to claim 3, characterized in that: The main control module is further used to obtain and broadcast infrared query information to the secondary control module, so as to trigger the secondary control module to clear the number of forward rotations and reverse rotations recorded in the historical records, and enable the secondary control module to initiate a query to the coupled controller according to the infrared query information, wherein the infrared query information at least includes the pipe diameter, APN, software version number, IP address and port; The secondary control module is capable of receiving the query result responded by the controller and feeding back the query result to the main control module; The main control module compares the query result with the infrared query information to determine whether the query result is consistent with the comparison result of the infrared query information. In response to the comparison result being consistent, the preliminary test is determined to be normal and further testing is performed on the controller. Otherwise, the test is determined to be abnormal and the test of the controller is terminated.
5. The test fixture system according to claim 1, characterized in that: The tooling circuit device further includes a power management module, and the interface device further includes a mains power interface, the power management module is connected to the mains power interface, and the power management module converts the external power provided by the mains power interface into a power source used by the test tooling system; Wherein, the power management module converts the 220V power supply of the external power supply into a 12V power supply for supplying power to the motor; The power management module converts the 12V power supply into a 5V power supply through a DC / DC converter, which is used to supply power to at least part of the main control module; The power management module converts the 5V power supply into a 3.3V power supply through an LDO low-dropout linear regulator, which is used to supply power to other electrical appliances of the test fixture system.
6. The test fixture system according to claim 1, characterized in that: The tooling circuit device further includes a buzzer warning module, which buzzes at a first preset frequency in response to determining that the test of the controller is abnormal, and buzzes at a second preset frequency in response to determining that the test of the controller is normal; The first preset frequency is greater than the second preset frequency, and the duration of the buzzing at the first preset frequency when the test is determined to be abnormal is longer than the duration of the buzzing at the first preset frequency when the test is determined to be normal.
7. The test fixture system according to claim 1, characterized in that: The tooling circuit device further comprises a downward pressure detection module, and the downward pressure detection module is used to detect whether there is the controller installed downwardly on the test station; In response to the pressure detection module detecting the presence of the controller installed in a pressure-down manner on the test station, the test fixture system starts a test process for the controller.
8. A method for testing a controller, wherein the controller is applied to an intelligent mechanical water meter, and the controller can detect the rotation status of an impeller in the intelligent mechanical water meter, wherein the method applies the test fixture system according to any one of claims 1 to 7, and the method comprises the following steps: S101, obtaining motor control parameters, and controlling the rotation of the motor according to the motor control parameters, wherein the motor is used to simulate the rotation condition of the impeller in the intelligent mechanical water meter, and the motor control parameters at least include a set value of the number of motor rotations; S102, detecting the rotation status of the motor by the controller to obtain electronic metering information, wherein the electronic metering information includes a measurement value of the number of rotations of the motor measured by the controller; S103, comparing the measured value of the number of rotations of the motor with the set value of the number of rotations of the motor, and in response to a deviation between the measured value of the number of rotations of the motor and the set value of the number of rotations of the motor being less than a preset threshold, determining that the electromechanical conversion function of the controller is normal.
9. The controller testing method according to claim 8, characterized in that: The method further comprises: Collecting the real-time operating parameters of the motor through a motor feedback module, and determining whether the real-time operating parameters deviate from the motor control parameters; In response to the real-time operating parameter deviating from the motor control parameter, the PWM drive signal is adjusted to control the rotation of the motor according to the motor control parameter.
10. The controller testing method according to claim 8, characterized in that: The method further comprises: In response to determining that the test of the controller is abnormal, the buzzer warning module is controlled to buzz at a first preset frequency, and in response to determining that the test of the controller is normal, the buzzer warning module is controlled to buzz at a second preset frequency, wherein the first preset frequency is greater than the second preset frequency, and the duration of the buzzing at the first preset frequency when the test is determined to be abnormal is longer than the duration of the buzzing at the first preset frequency when the test is determined to be normal.
