A test method, device, medium and electronic equipment based on a test fixture

By combining cloud configuration and Modbus protocol with contact pressure optimization, the test fixture is automatically controlled to perform motor testing, solving the problem of low testing efficiency and achieving efficient and accurate motor testing.

CN120595111BActive Publication Date: 2025-11-28临海市新睿电子科技股份有限公司
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202511092802.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-08-06
Publication Date
2025-11-28
Estimated Expiration
2045-08-06

AI Technical Summary

Technical Problem

Existing testing fixtures are inefficient for testing motors, and manual testing is cumbersome and time-consuming.

Method used

By obtaining the test configuration parameters from the cloud configuration platform, the actual test process is defined using a script engine, and the target test fixture is automatically controlled to perform the test based on the Modbus communication protocol. By combining the weighted analysis of the contact pressure and rotation speed range of the probe and the electrical connection point, the contact pressure and cooling fan speed are optimized to reduce the risk of probe loosening.

Benefits of technology

It improves the testing efficiency of the test fixture, reduces manual intervention time, ensures the accuracy and reliability of test data, and reduces probe loosening and vibration interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120595111B_ABST
    Figure CN120595111B_ABST
Patent Text Reader

Abstract

The application relates to a test method and device based on a test fixture, a medium and an electronic equipment, and relates to the technical field of test fixtures. The method comprises the following steps: obtaining test configuration parameters corresponding to a motor to be tested issued by a cloud configuration platform, wherein the test configuration parameters comprise test process related parameters and a Modbus communication address mapping; defining an actual test process corresponding to the motor to be tested through a preset script engine based on the test process related parameters; determining test control information corresponding to a target test fixture according to the actual test process, wherein the target test fixture is a test fixture for testing the motor to be tested; and sending the test control information to a Modbus slave station of the target test fixture through a Modbus master station based on the Modbus communication address mapping. The application has the effect of improving the test efficiency of the test fixture.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of test fixture, in particular to a test method and device based on test fixture, medium and electronic equipment. BACKGROUND

[0002] The test fixture refers to a special test tool or hardware platform customized in the process of electronic manufacturing, embedded device development and product production, for the function verification and electrical performance test of the device under test (DUT). Many fixtures are produced because of commercial needs, because many types of fixtures are customized, some are to improve productivity, repeat specific actions, or make work more accurate. The main principle of the test fixture for testing the device under test is to connect the device under test with the test system through physical connection, signal transmission and data measurement, simulate the working conditions of the product in actual use, and detect whether the performance, function or parameter meets the requirements. During testing, the test fixture is usually connected with the electrical connection point of the device under test through a probe, and the pressure between the probe and the electrical connection point of the device under test is adjustable.

[0003] At present, the test method based on the test fixture for testing the device under test usually adopts an artificial method, tests each test item of the device under test based on the test process prepared in advance, and finally completes the test of the device under test. Once the device under test is a motor, because the test items of the motor are many, the artificial test method is tedious and time-consuming, which reduces the test efficiency of the test fixture. SUMMARY

[0004] In order to improve the test efficiency of the test fixture, the present application provides a test method and device based on test fixture, medium and electronic equipment.

[0005] In a first aspect of the present application, a test method based on test fixture is provided, which specifically comprises:

[0006] Obtain the test configuration parameters corresponding to the motor to be tested issued by the cloud configuration platform, wherein the test configuration parameters include test process related parameters and Modbus communication address mapping;

[0007] Define the actual test process corresponding to the motor to be tested based on the test process related parameters through a preset script engine;

[0008] According to the actual test process, determine the test control information corresponding to the target test fixture, wherein the target test fixture is a test fixture for testing the motor to be tested;

[0009] Based on the Modbus communication address mapping, the test control information is sent to the Modbus slave station of the target test fixture through the Modbus master station.

[0010] By adopting the technical scheme, before the motor to be tested is tested, the test configuration parameters corresponding to the motor to be tested issued by the cloud configuration platform are acquired, then the actual test flow corresponding to the motor to be tested is defined by the script engine according to the test flow related parameters on the local control end, so as to determine the test control logic of the target test fixture on the motor to be tested, and then based on the actual test flow, the test control information corresponding to the target test fixture is determined, so that the target test fixture can better control the test of the motor to be tested based on the test control information. Further, according to the Modbus communication address mapping, the local control end can support the Modbus TCP / RTU communication protocol, and then based on the Modbus TCP / RTU communication protocol, the communication between the Modbus master station and the Modbus slave station is established, the test control information is sent to the target test fixture, so that the target test fixture automatically controls the test of the motor to be tested, avoiding the problem of long time consumption of manual test, and improving the test efficiency of the test fixture.

[0011] In an embodiment, the test control information corresponding to the target test fixture is determined according to the actual test flow, specifically comprising:

[0012] According to the actual test flow, the current test item of the motor to be tested is determined, and when the current test item is a motor speed test item, the initial test speed of the motor to be tested is determined;

[0013] The actual contact pressure between the electrical connection point of the motor to be tested and the probe of the target test fixture is acquired, and at least one target pressure range is determined according to the contact pressure range between the probe of the target test fixture and the electrical connection point of the historical test motor when the probe loosens in the historical motor speed test, the target pressure range being the contact pressure range in which the probe is prone to loosen in the motor speed test;

[0014] When the contact pressure between the probe of the target test fixture and the electrical connection point of the historical test motor is in a single target pressure range, the speed range of the historical test motor speed when the probe loosens is acquired, and at least one target speed range is determined according to the speed range, the target speed range being the speed range in which the probe is prone to loosen under the corresponding target pressure range;

[0015] determining a first weight value of each of the target pressure ranges, and determining a second weight value of a target rotating speed range corresponding to each of the target pressure ranges, the first weight value representing a possibility of the contact pressure being in the target pressure range when the probe is loose, and the second weight value representing a possibility of the probe being loose when the rotating speed of the historical test motor is in the target rotating speed range;

[0016] determining an initial contact pressure of the target test fixture when the target test fixture performs the rotating speed test on the motor to be tested according to the actual contact pressure, the initial test rotating speed, the first weight value and the second weight value, and determining test control information corresponding to the target test fixture based on the initial contact pressure, the initial contact pressure being a contact pressure between the probe of the target test fixture and the electrical connection point of the motor to be tested when the initial test rotating speed is tested.

[0017] By using the above technical solution, according to the first weight value of the target pressure range and the second weight value of the corresponding target rotating speed range, in combination with the current actual contact pressure and the initial test rotating speed required by the motor to be tested, the possibility of the electrical connection point of the motor to be tested and the probe of the target test fixture being loose when the initial test rotating speed is tested at the actual contact pressure is analyzed, and then the initial contact pressure with small interference to the probe is determined, so as to reduce the risk of the probe being loose caused by the vibration of the motor to be tested rotating during the subsequent formal test.

[0018] In an embodiment, the determination of the initial contact pressure of the target test fixture when the target test fixture performs the rotating speed test on the motor to be tested according to the actual contact pressure, the initial test rotating speed, the first weight value and the second weight value specifically includes:

[0019] determining a target pressure range where the actual contact pressure is located as a key pressure range, and determining a target rotating speed range corresponding to the key pressure range as a key rotating speed range if the initial test rotating speed is included in the target rotating speed range corresponding to the key pressure range;

[0020] calculating a first product of the first weight value of the key pressure range and the second weight value of the corresponding key rotating speed range, and calculating a second product of the first weight value of the key pressure range and the second weight value of each of the important rotating speed ranges, the important rotating speed range being a target rotating speed range in an interval from 0 to the initial test rotating speed;

[0021] summing the first product and each of the second products to obtain a first summation result, and determining the actual contact pressure as the initial contact pressure of the target test fixture when the target test fixture performs the rotating speed test on the motor to be tested if the first summation result is not greater than a preset first threshold value;

[0022] If the first summation result is greater than the first threshold value, an initial contact pressure of the target test fixture for speed test of the motor to be tested is determined based on the initial test speed.

[0023] By using the above technical solution, the greater the first product is, the greater the possibility that the vibration caused by the motor to be tested reaching the initial test speed causes the probe to loosen, and the greater the possibility that the contact resistance between the probe of the target test fixture and the electrical connection point of the motor to be tested increases, resulting in distortion of the test signal finally collected. At the same time, the second product of the first weight value of each important pressure range and the second weight value of the corresponding each important speed range is recalculated, and the greater the second product is, the greater the possibility that the probe loosens when the motor to be tested is in the corresponding important speed range during the process of increasing the speed to the initial test speed. If the first summation result is greater than the first threshold value, it indicates that the overall possibility of the probe loosening during the entire process of the motor to be tested reaching the initial test speed at the actual contact pressure is relatively large. In order to make the test data obtained more accurate, the actual contact pressure needs to be adjusted, and finally the initial contact pressure of the target test fixture for formal test of the motor to be tested is obtained. If the first summation result is not greater than the first threshold value, it indicates that the overall possibility of the probe loosening during the entire process of the motor to be tested reaching the initial test speed at the actual contact pressure is relatively small, so there is no need to adjust the current actual contact pressure, that is, the actual contact pressure is directly determined as the initial contact pressure.

[0024] In an embodiment, the initial contact pressure of the target test fixture for speed test of the motor to be tested is determined based on the initial test speed, specifically comprising:

[0025] An interval from 0 to the initial test speed is determined as a first reference speed interval, and a reference speed range in each target speed range corresponding to each target pressure range is determined, the reference speed range being a target speed range having an intersection with the first reference speed interval;

[0026] A third product of a first weight value of each target pressure range and a second weight value of the corresponding reference speed range is calculated and summed to obtain a corresponding second summation result;

[0027] The minimum second summation result is selected from the second summation results, and when the minimum second summation result is not greater than a first threshold value, an initial contact pressure of the target test fixture for speed test of the motor to be tested is determined according to a target pressure range corresponding to the minimum second summation result.

[0028] By adopting the technical scheme, the greater the second sum result is, the more likely the contact pressure between the probe of the target test fixture and the electrical connection point of the motor to be tested is in the corresponding target pressure range when the initial test speed is tested, and the probe is more likely to loosen. Then, the minimum second sum result is selected from the second sum results, and if the minimum second sum result is not greater than the first threshold value, it is indicated that the contact pressure between the probe and the electrical connection point is in the target pressure range corresponding to the minimum second sum result, and the probe is less likely to loosen. Then, the initial contact pressure is determined according to the target pressure range corresponding to the minimum second sum result.

[0029] In an embodiment, the method further comprises:

[0030] In a case where the initial test speed test is completed and the target test speed needs to be continuously tested, if the overall time length during which the motor to be tested operates is greater than a preset second threshold value, an interval from the initial test speed to the target test speed is determined as a second reference speed interval, and the target test speed is greater than the initial test speed.

[0031] The initial contact pressure is adjusted and optimized according to the second reference speed interval to obtain a target contact pressure.

[0032] A cooling fan preset in the target test fixture is started, and an appropriate fan speed of the cooling fan is determined. The target contact pressure is adjusted and optimized according to the appropriate fan speed to obtain a final contact pressure, and the initial contact pressure between the probe of the target test fixture and the electrical connection point of the motor to be tested is adjusted to the final contact pressure.

[0033] By adopting the technical scheme, if the overall time length exceeds the preset second threshold value, it is indicated that the operation time is relatively long, and the motor to be tested is more likely to heat. Then, the initial contact pressure is optimized according to the second reference speed interval, so that the risk of probe loosening during acceleration from the initial test speed to the target test speed is relatively small. Finally, since the rotation of the cooling fan also causes vibration to cause the probe to loosen, the greater the fan speed is, the more likely the probe is to loosen. Therefore, the target contact pressure is adjusted and optimized again according to the appropriate fan speed to obtain the final contact pressure, so that the target test fixture performs the speed test under the final contact pressure, the risk of probe loosening is relatively low, and the test result is more accurate.

[0034] In an embodiment, the initial contact pressure is adjusted and optimized according to the second reference speed interval to obtain the target contact pressure, specifically comprising:

[0035] determining a final speed range from each target speed range corresponding to the target pressure range, the final speed range being a target speed range having an intersection with the second reference speed interval;

[0036] determining a target pressure range in which the initial contact pressure is located as a final pressure range, calculating a fourth product of a first weight value of the final pressure range and a second weight value of each final speed range corresponding to the target pressure range and summing up the fourth product to obtain a third summation result;

[0037] if the third summation result is greater than a preset first threshold value, calculating a fifth product of the first weight value of each target pressure range and the second weight value of each final speed range corresponding to the target pressure range and summing up the fifth product to obtain a corresponding fourth summation result;

[0038] selecting a minimum fourth summation result from each fourth summation result, and when the minimum fourth summation result is not greater than the first threshold value, adjusting and optimizing the initial contact pressure according to a target pressure range corresponding to the minimum fourth summation result to obtain a target contact pressure;

[0039] if the third summation result is not greater than a preset first threshold value, determining the initial contact pressure as the target contact pressure.

[0040] By adopting the technical scheme, if the third summation result is greater than the first threshold value, it indicates that the overall possibility of probe loosening in the subsequent test process of the target test speed is relatively large, and the initial contact pressure needs to be dynamically adjusted. The fifth product of the first weight value of each target pressure range and the second weight value of each final speed range corresponding to the target pressure range is calculated and summed up to obtain a corresponding fourth summation result. The minimum fourth summation result is selected from each fourth summation result. When the minimum fourth summation result is not greater than the first threshold value, it indicates that the possibility of probe loosening is relatively small when the contact pressure between the probe and the electrical connection point is in the target pressure range corresponding to the minimum fourth summation result. Therefore, the initial contact pressure is adjusted and optimized in the target pressure range corresponding to the minimum fourth summation result to obtain the target contact pressure.

[0041] In an embodiment, the determination of the suitable speed of the heat dissipation fan specifically comprises:

[0042] When the target contact pressure is not the initial contact pressure, a first speed range of the heat dissipation fan is determined according to the minimum fourth summation result. The greater the minimum fourth summation result is, the greater the speed value in the corresponding first speed range is.

[0043] determining at least one easy-to-heat region in the motor to be tested, and determining a heat risk coefficient corresponding to each easy-to-heat region;

[0044] determine a final blowing direction of the heat dissipation fan as a wind direction of the heat dissipation fan to the probe of the target test fixture, determine a target heat generation area covered by the final blowing direction as a target heat generation area, and determine a second wind speed range of the heat dissipation fan according to a heat generation risk coefficient corresponding to the target heat generation area;

[0045] perform an intersection operation on the first wind speed range and the second wind speed range to obtain a wind speed intersection interval, and determine a suitable wind speed of the heat dissipation fan based on the wind speed intersection interval;

[0046] The adjusting and optimizing the target contact pressure according to the suitable wind speed to obtain a final contact pressure specifically includes:

[0047] determine a suitable contact pressure interval between the probe of the target test fixture and the electrical connection point of the motor to be tested according to the suitable wind speed, and if the target contact pressure is not in the suitable contact pressure interval, adjust and optimize the target contact pressure based on an intersection of the suitable contact pressure interval and a target pressure range corresponding to the minimum fourth summation result to obtain a final contact pressure.

[0048] By adopting the technical solution, the greater the minimum fourth summation result is, the greater the possibility of probe loosening of the target test fixture at a test speed is, the more likely the target test fixture is affected by high humidity, the greater the interference to the test of the motor to be tested is, the greater the wind speed value in the first wind speed range is, which needs to be blown to the probe of the target test fixture to keep the area where the probe of the target test fixture is located dry as much as possible and reduce the risk of high humidity. Further, the heat generation risk coefficients corresponding to each target heat generation area are summed to obtain a coefficient sum, the greater the coefficient sum is, the greater the overall possibility of heat generation of each target heat generation area is, the more heat is generated, a greater heat dissipation wind speed is needed to achieve an effective heat dissipation effect, and the heat can also be blown to the area where the probe of the target test fixture is located to further reduce the risk of high humidity. The intersection operation is performed on the first wind speed range and the second wind speed range to finally determine the suitable wind speed of the heat dissipation fan. Finally, since the operation of the heat dissipation fan also generates vibration, which interferes with the good contact between the probe of the target test fixture and the electrical connection point of the motor to be tested, in order to reduce the interference, the suitable contact pressure interval (a contact pressure interval in which the probe is not easily interfered by vibration when the heat dissipation fan operates) is determined according to the suitable wind speed, and the final contact pressure is determined based on the intersection of the suitable contact pressure interval and the target pressure range corresponding to the minimum fourth summation result.

[0049] In a second aspect of the present application, a test device based on a test fixture is provided, specifically comprising:

[0050] The parameter acquisition module is configured to acquire test configuration parameters corresponding to a motor to be tested and issued by a cloud configuration platform, wherein the test configuration parameters comprise test procedure related parameters and a Modbus communication address mapping.

[0051] The procedure definition module is configured to define an actual test procedure corresponding to the motor to be tested based on the test procedure related parameters through a preset script engine.

[0052] The information determination module is configured to determine test control information corresponding to a target test fixture based on the actual test procedure, wherein the target test fixture is a test fixture for testing the motor to be tested.

[0053] The test control module is configured to send the test control information to a Modbus slave station of the target test fixture through a Modbus master station based on the Modbus communication address mapping.

[0054] By using the above technical solution, after the parameter acquisition module acquires the test configuration parameters corresponding to the motor to be tested, the procedure definition module defines the actual test procedure based on the test procedure related parameters, then the information determination module determines the test control information corresponding to the target test fixture, and finally the test control module sends the test control information to the Modbus slave station of the target test fixture through the Modbus master station based on the Modbus communication address mapping.

[0055] In a third aspect of the present application, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program. When the computer program is loaded and executed by a processor, the method steps of any one of the first aspect are executed.

[0056] In a fourth aspect of the present application, an electronic device is provided, and specifically comprises:

[0057] The processor, the memory, and the computer program stored in the memory and capable of running on the processor are configured to load and execute the computer program stored in the memory, so that the electronic device executes the method of any one of the first aspect.

[0058] In summary, the present application includes at least one of the following beneficial technical effects: before testing the motor to be tested, the test configuration parameters corresponding to the motor to be tested issued by the cloud configuration platform are obtained, and then the actual test process corresponding to the motor to be tested is defined by the script engine based on the test process related parameters through the local control end, so as to determine the test control logic of the target test fixture to the motor to be tested, and then based on the actual test process, the test control information corresponding to the target test fixture is determined, so that the target test fixture can better test control the motor to be tested based on the test control information. Further, according to the Modbus communication address mapping, the local control end can support the Modbus TCP / RTU communication protocol, and then based on the Modbus TCP / RTU communication protocol, the communication between the Modbus master station and the Modbus slave station is established, the test control information is sent to the target test fixture, so that the target test fixture automatically tests and controls the motor to be tested, avoids the problem of long time of manual test, and improves the test efficiency of the test fixture. BRIEF DESCRIPTION OF DRAWINGS

[0059] Figure 1 is a flow diagram of a test method based on a test fixture provided by an embodiment of the present application;

[0060] Figure 2 is a structural diagram of a test device based on a test fixture provided by an embodiment of the present application;

[0061] Figure 3 is a structural diagram of another test device based on a test fixture provided by an embodiment of the present application.

[0062] Explanation of reference signs: 11, parameter acquisition module; 12, process definition module; 13, information determination module; 14, test control module; 15, pressure adjustment module. DETAILED DESCRIPTION

[0063] In order to enable those skilled in the art to better understand the technical solutions in the specification, the technical solutions in the specification will be clearly and completely described below in conjunction with the drawings in the embodiments of the specification. Obviously, the described embodiments are only a part of the embodiments of the present application, not all the embodiments.

[0064] In the description of the embodiments of the present application, the words "exemplary", "for example", or "e.g." are used to mean "an example of" or "an example, only". Any embodiment or design solution described as "exemplary", "for example", or "e.g." in the embodiments of the present application should not be construed as being more preferred or advantageous than other embodiments or design solutions. In fact, the use of the words "exemplary", "for example", or "e.g." is intended to present related concepts in a specific manner.

[0065] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent the three cases of A alone, B alone, and A and B together. In addition, unless otherwise specified, the term "multiple" means two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Therefore, the features defined with "first" and "second" can explicitly or implicitly include one or more features. The terms "include", "contain", "have" and their variants mean "include but not limited to", unless otherwise specifically emphasized.

[0066] Referring to Figure 1 The embodiments of the present application disclose a flowchart of a test method based on a test fixture. The test method can be implemented by relying on a computer program and can also run on a test fixture-based test device based on the von Neumann system. The computer program can be integrated in an application or run as an independent tool application. Specifically, the computer program comprises the following steps:

[0067] S101: Obtain the test configuration parameters corresponding to the motor to be tested issued by the cloud configuration platform.

[0068] Specifically, the cloud configuration platform is a configuration platform deployed on a server. Testers can configure the test configuration parameters of the product that will be tested by the test fixture on this cloud configuration platform, and send them to the host computer control terminal through a preset application programming interface (API). The host computer control terminal then controls the test fixture to test the product, thereby enabling the reuse of a single test fixture for testing different products. In this embodiment, the host computer control terminal is the execution entity of the test method based on the test fixture. The host computer control terminal can be a terminal with a product testing-related client installed on it; the terminal is a personal computer. The motor to be tested is the motor that needs to be tested. Testers set the test configuration parameters corresponding to the motor to be tested in advance on the cloud configuration platform. The test configuration parameters include, but are not limited to, the test process-related parameters and Modbus communication address mapping of the motor to be tested. The test process-related parameters include, but are not limited to, the test items, the test steps for each test item, and the test thresholds corresponding to the test items. Furthermore, the test configuration parameters corresponding to the motor to be tested sent by the cloud configuration platform are obtained through the preset API. Modbus communication address mapping is the foundation and key to the host computer's support for the Modbus TCP / RTU communication protocol. It enables the host computer to access and control Modbus devices (such as PLCs, sensors, actuators, etc.) through a unified address rule.

[0069] S102: Based on the test process parameters, the actual test process corresponding to the motor under test is defined through a preset script engine.

[0070] Specifically, after obtaining the relevant parameters of the test process, a preset script engine is used to define the test process for the motor under test based on these parameters, thus obtaining the actual test process and determining the test control logic on the local host computer control terminal during the actual testing of the motor under test. In other embodiments, the actual test process corresponding to the motor under test can also be defined through a preset state machine. It should be noted that the script engine can be JavaScript. For example, the defined actual test process can be as follows:

[0071] {

[0072] "name":"Open the brake","k":"0xF013",

[0073] "v":"0x001F","nb":1,"mode":"w","timeout":2000,

[0074] "children":[

[0075] }.

[0076] S103: determining the test control information corresponding to the target test fixture according to the actual test procedure.

[0077] Specifically, the target test fixture is a test fixture for testing the to-be-tested motor. In the embodiment of the present application, the actual test procedure can be directly determined as the test control information. In other embodiments, after the actual test procedure corresponding to the to-be-tested motor is determined, since the actual test procedure contains the test sequence of each test item of the to-be-tested motor that needs to be tested, the current test item of the to-be-tested motor is determined based on the actual test procedure, that is, the test item that needs to be tested first. If the current test item is the motor speed test item, the initial test speed of the to-be-tested motor is determined, that is, the target speed that is tested first when the motor speed is tested. Specifically, the smallest test speed can be selected from at least one test speed sent by the terminal of the test personnel, and the initial test speed is determined. It should be noted that the motor speed test item is an important link for evaluating the performance of the to-be-tested motor. In the embodiment of the present application, the motor speed test item is the no-load speed test, and in other embodiments, the motor speed test item can also be the rated load speed test. In addition, the terminal is a smart phone or a personal computer.

[0078] Further, according to the preset pressure sensor, the actual contact pressure between the electrical connection point of the to-be-tested motor and the probe of the target test fixture before the to-be-tested motor formally starts testing is obtained, wherein the actual contact pressure is the pressure value when the electrical connection point of the to-be-tested motor and the probe of the target test fixture are currently in contact. It should be noted that when the target test fixture tests the to-be-tested motor, the probe of the target test fixture needs to be in contact with the electrical connection point in the to-be-tested motor, so as to form an electrical path, so that the test signal (voltage, current) can flow into the to-be-tested motor, and various test data of the to-be-tested motor can also be directly collected. In addition, the probe of the target test fixture is a key component for electrically connecting the measured object during testing.

[0079] Further, based on the test records of historical motor rotation speed tests of the target test fixture, a range of contact pressure between the probes of the target test fixture and the electrical connection points of the historical test motor is obtained when the probes are loose in the historical motor rotation speed tests. A first frequency of occurrence of each range of contact pressure is counted. If the first frequency of occurrence of a range of contact pressure exceeds a corresponding threshold value, the range of contact pressure is determined as a target pressure range. That is, when the contact pressure between the probes of the target test fixture and the electrical connection points of the motor is in the target pressure range, the probes are prone to be loose due to vibration caused by rotation of the motor. It should be noted that the test records include, but are not limited to, information such as the range of contact pressure between the electrical connection points and the probes when the probes are loose during tests of each historical test motor and the corresponding test rotation speed. The historical test motor is a motor that has been tested for rotation speed by the target test fixture.

[0080] Based on the test records, a range of rotation speed of the historical test motor is obtained when the contact pressure between the probes of the target test fixture and the electrical connection points of the historical test motor is in a single target pressure range and the probes are loose. A second frequency of occurrence of each range of rotation speed is counted. If the second frequency of occurrence of a range of rotation speed exceeds a corresponding threshold value, the range of rotation speed is determined as a target rotation speed range corresponding to the target pressure range. That is, the range of rotation speed is prone to cause the probes to be loose under the corresponding target pressure range. Then, a first weight value of each target pressure range is determined, and a second weight value of the target rotation speed range corresponding to each target pressure range is determined. The first weight value is a ratio of the first frequency of occurrence of each target pressure range to the sum of the first frequencies of occurrence of all different target pressure ranges. The first weight value represents the possibility that the contact pressure between the probes and the electrical connection points is in the target pressure range when the probes are loose. The second weight value is a ratio of the second frequency of occurrence of a single target rotation speed range corresponding to the target pressure range to the sum of the second frequencies of occurrence of all target rotation speed ranges corresponding to the target pressure range. The second weight value represents the possibility that the rotation speed of the historical test motor is in the target rotation speed range when the probes are loose.

[0081] Further, according to the actual contact pressure, the initial test rotating speed, the first weight value and the second weight value, an initial contact pressure of the target test fixture when testing the rotating speed of the to-be-tested motor is determined. The initial contact pressure is a contact pressure between the probe in the target test fixture and the electrical connection point of the to-be-tested motor when the initial test rotating speed is tested. In the embodiments of the present application, a feasible determination manner is as follows: the target pressure range in which the actual contact pressure is located is determined as a key pressure range, if the initial test rotating speed is contained in the target rotating speed range corresponding to the key pressure range, then the target rotating speed range corresponding to the key pressure range is determined as a key rotating speed range. Then, a first product of the first weight value of the key pressure range and the second weight value of the corresponding key rotating speed range is calculated. The greater the first product is, the greater the possibility that the vibration caused by the to-be-tested motor when the initial test rotating speed is reached causes the probe to loosen is, the greater the possibility that the contact resistance between the probe of the target test fixture and the electrical connection point of the to-be-tested motor increases is, and the greater the possibility that the finally collected test signal is distorted is. Meanwhile, a second product of the first weight value of the key pressure range and the second weight value of each important rotating speed range is calculated again, wherein the important rotating speed range is a target rotating speed range in an interval from 0 to the initial test rotating speed. The greater the second product is, the greater the possibility that the probe loosens when the to-be-tested motor is in the corresponding important rotating speed range during the process that the rotating speed increases to the initial test rotating speed is.

[0082] The first product is summed with each second product to obtain a first summation result. If the first summation result is greater than a preset first threshold value, it indicates that the overall possibility of the probe loosening during the process that the speed of the motor to be tested reaches the initial test speed under the actual contact pressure is relatively large. In order to obtain more accurate test data, the actual contact pressure needs to be adjusted, and finally the initial contact pressure of the target test fixture when the motor to be tested is formally tested is obtained. One feasible determination method of the initial contact pressure is as follows: an interval from 0 to the initial test speed is determined as a first reference speed interval, and then it is determined whether each target speed range corresponding to each target pressure range has an intersection with the first reference speed interval. If there is an intersection, the corresponding target speed range is determined as a reference speed range. Then, the third product of the first weight value of each target pressure range and the second weight value of each reference speed range corresponding thereto is calculated and summed to obtain a corresponding second summation result. The larger the second summation result is, the more likely it is that the contact pressure between the probe of the target test fixture and the electrical connection point of the motor to be tested is in the corresponding target pressure range during the test of the initial test speed. Then, the minimum second summation result is selected from each second summation result. If the minimum second summation result is not greater than the first threshold value, it indicates that the contact pressure between the probe and the electrical connection point is in the target pressure range corresponding to the minimum second summation result, and the possibility of the probe loosening is relatively small. Then, the initial contact pressure is determined according to the target pressure range corresponding to the minimum second summation result. Specifically, the maximum value in the target pressure range corresponding to the minimum second summation result can be determined as the initial contact pressure.

[0083] Conversely, if the first summation result is not greater than the first threshold value, it indicates that the overall possibility of the probe loosening during the process of the speed of the motor to be tested reaching the initial test speed under the actual contact pressure is small, and thus there is no need to adjust the actual contact pressure, i.e., the actual contact pressure is directly determined as the initial contact pressure. Finally, based on the initial contact pressure, the test control information corresponding to the target test fixture is determined, i.e., the information is sent to the target test fixture and used by the target test fixture to control the motor to be tested, specifically, the initial contact pressure and the actual test process are summarized to determine the final test control information. Exemplarily, after the initial contact pressure is sent to the target test fixture as the test control information, the target test fixture controls the servo motor to drive the probe to adjust the contact pressure between the probe and the electrical connection point, and the pressure sensor is used to monitor the contact pressure in real time, so as to automatically adjust the contact pressure between the probe and the electrical connection point to the initial contact pressure. This is the prior art and will not be described here. In other embodiments, the initial contact pressure can also be sent to the terminal of the test personnel, and the test personnel manually adjusts the contact pressure. It should be noted that the test control information not only includes the initial contact pressure, but also includes the current, voltage and test speed during the test of the motor to be tested.

[0084] In another embodiment, if the initial test speed test is completed, i.e., the speed of the motor to be tested reaches the initial test speed. Since the motor speed test is not only to test one speed, in the case of continuing the target test speed, the overall duration of the motor to be tested from the start of the test to the current operation is counted, and if the overall duration exceeds the preset second threshold value, it indicates that the running time is too long and is prone to heat, and thus the interval from the initial test speed to the target test speed is determined as the second reference speed interval. Wherein, the target test speed is greater than the initial test speed.

[0085] Further, according to the second reference speed range, the initial contact pressure is adjusted and optimized to obtain a target contact pressure. One possible implementation is that: it is determined whether there is an intersection between each target speed range corresponding to each target pressure range and the second reference speed range. If there is an intersection, the corresponding target speed range is determined as the final speed range, and then the final speed range corresponding to each target pressure range is determined. Then, the target pressure range in which the initial contact pressure is located is determined as the final pressure range, and the fourth product of the first weight value of the final pressure range and the second weight value of each final speed range corresponding to the final pressure range is calculated and summed to obtain a third summation result. If the third summation result is greater than the first threshold value, it means that during the subsequent test process of the target test speed, the overall possibility of probe loosening is relatively large, and the initial contact pressure needs to be dynamically adjusted. Then, the fifth product of the first weight value of each target pressure range and the second weight value of each final speed range corresponding to the target pressure range is calculated and summed to obtain a corresponding fourth summation result. The minimum fourth summation result is selected from the fourth summation results. When the minimum fourth summation result is not greater than the first threshold value, it means that the contact pressure between the probe and the electrical connection point is in the target pressure range corresponding to the minimum fourth summation result, and the possibility of probe loosening is relatively small. Then, the maximum value in the target pressure range corresponding to the minimum fourth summation result is determined as the target contact pressure, thereby reducing the risk of probe loosening during the subsequent target test speed test. Conversely, if the third summation result is not greater than the first threshold value, it means that the overall possibility of probe loosening is relatively small, and the initial contact pressure does not need to be adjusted temporarily, and the initial contact pressure is directly determined as the target contact pressure.

[0086] Further, since the overall running time of the motor to be tested is relatively long, there is a risk of overheating, and timely heat dissipation treatment is needed, so the preset heat dissipation fan in the target test fixture is started, and the appropriate speed of the heat dissipation fan is determined. One possible determination method is that: when the target contact pressure is not the initial contact pressure, the first speed range of the heat dissipation fan is matched from the preset first matching table according to the minimum fourth summation result. The larger the minimum fourth summation result is, the greater the possibility of probe loosening during the target test fixture test speed test is, and the more likely it is to be affected by high humidity, which will cause greater interference to the test of the motor to be tested. Therefore, a larger speed needs to be blown to the probe of the target test fixture to keep the area where the probe of the target test fixture is located as dry as possible and reduce the risk of high humidity. Therefore, the larger the speed value in the corresponding first speed range is. The first matching table includes different summation result ranges and corresponding speed ranges, which are both set based on human experience. For example, the first matching table includes a summation result range of 0-1, and the corresponding speed range is 5-8 m / s. If the minimum fourth summation result is in the range of 0-1, the matched first speed range is 5-8 m / s.

[0087] Further, according to the historical test of the same type of motor as the motor to be tested, the heating area statistical record is determined, the historical area where the heating phenomenon occurs is determined, the number of occurrences of each historical area is counted, and if the number of occurrences exceeds the preset number threshold, the corresponding historical area is determined as the easy heating area of the motor to be tested, that is, the area that is easy to heat in the motor to be tested. Then determine the heating risk coefficient corresponding to each easy heating area, the heating risk coefficient is the ratio of the number of occurrences of each easy heating area to the sum of the number of occurrences of all easy heating areas, the larger the heating risk coefficient, the greater the possibility of heating. Then, the blowing direction of the cooling air speed to the probe of the target test fixture is determined as the final blowing direction of the cooling air speed, and the easy heating area covered by the final blowing direction is determined as the target heating area, and then the heating risk coefficients of each target heating area are summed to obtain the sum of the coefficients. The larger the sum of the coefficients, the greater the overall possibility of heating of each target heating area, the greater the probability of generating heat, the larger cooling air speed is needed to achieve timely and effective cooling effect, and at the same time, the heat can also be blown to the area where the probe of the target test fixture is located, further reducing the risk of high humidity. According to the second matching table cached in the database, the second air speed range is determined, the second matching table includes different coefficient ranges and corresponding air speed ranges, for example, the second matching table includes a coefficient range of 0-1, and the corresponding air speed range is 6-10 m / s. If the sum of the coefficients is within the range of 0-1, the second air speed range is 6-10 m / s.

[0088] The intersection of the first air speed range and the second air speed range is calculated to obtain the air speed intersection interval, and finally the suitable air speed of the cooling fan is determined based on the air speed intersection interval. Specifically, the maximum value in the air speed intersection interval can be determined as the suitable air speed. Subsequently, the target test speed is tested, and the cooling fan blows at the final blowing direction and the suitable air speed for cooling. Not only can it reduce the risk of motor overheating in time, but also can better reduce the risk of high humidity in the area where the probe of the target test fixture is located.

[0089] Finally, since the operation of the heat dissipation fan also generates vibration, which interferes with the good contact between the probes of the target test fixture and the electrical connection points of the motor to be tested, the appropriate contact pressure range corresponding to the minimum fourth sum result is matched from the pressure matching table cached in the database according to the appropriate wind speed, that is, the contact pressure range in which the probes are not easily disturbed by the vibration of the heat dissipation fan during operation. The pressure matching table includes different wind speed ranges and corresponding appropriate contact pressure ranges, which are set based on personnel wind speed tests at different wind speed ranges. Further, the intersection of the appropriate contact pressure range and the target pressure range corresponding to the minimum fourth sum result is calculated, and the maximum value in the intersection is selected as the final contact pressure. The initial contact pressure between the probes of the target test fixture and the electrical connection points of the motor to be tested is adjusted to the final contact pressure, and subsequent testing of the target test speed is performed. In an embodiment, if there is no intersection between the appropriate contact pressure range and the target pressure range corresponding to the minimum fourth sum result, the appropriate wind speed is re-determined based on the wind speed intersection range until there is an intersection between the appropriate contact pressure range re-determined based on the appropriate wind speed and the target pressure range corresponding to the minimum fourth sum result.

[0090] S104: Based on the Modbus communication address mapping, the test control information is sent to the Modbus slave station of the target test fixture through the Modbus master station.

[0091] Specifically, after the test control information is determined, the host computer control end is enabled to support the Modbus TCP / RTU communication protocol based on the Modbus communication address mapping. Then, based on the Modbus TCP / RTU communication protocol, the test control information is sent to the Modbus slave station of the target test fixture through the Modbus master station, so that the host computer control end can issue the test control information to the target test fixture, so that the target test fixture can test the motor to be tested according to the test control information. The Modbus master station is the core role in the Modbus communication protocol, responsible for initiating communication, controlling slave devices, and processing data interaction. The Modbus slave station refers to a device that passively responds to the request of the Modbus master station in the Modbus communication network. It usually acts as a data provider or executor, and performs data reading and writing or operation according to the instruction of the master station.

[0092] The implementation principle of the test method based on the test fixture provided in the embodiment of the application is as follows: before testing the motor to be tested, the test configuration parameters corresponding to the motor to be tested issued by the cloud configuration platform are acquired, then the actual test flow corresponding to the motor to be tested is defined by using a script engine at the local control end according to the test flow related parameters, so as to determine the test control logic of the target test fixture on the motor to be tested, and then the test control information corresponding to the target test fixture is specifically determined based on the actual test flow, so that the target test fixture can better control the test of the motor to be tested based on the test control information. Further, the local control end can support the Modbus TCP / RTU communication protocol by mapping the Modbus communication address, and then the communication between the Modbus master station and the Modbus slave station is established based on the Modbus TCP / RTU communication protocol, the test control information is sent to the target test fixture, so that the target test fixture automatically controls the test of the motor to be tested, thereby avoiding the problem of long time consumption of manual test and improving the test efficiency of the test fixture.

[0093] The following is an apparatus embodiment of the application, which can be used to execute the method embodiments of the application. For details not disclosed in the apparatus embodiments of the application, please refer to the method embodiments of the application.

[0094] Please refer to Figure 2 The structure schematic diagram of the test device based on the test fixture provided in the embodiment of the application. The test device based on the test fixture can be realized by software, hardware or a combination of both to become all or part of the device. The device comprises

[0095] The parameter acquisition module 11 is configured to acquire the test configuration parameters corresponding to the motor to be tested issued by the cloud configuration platform, and the test configuration parameters comprise test flow related parameters and Modbus communication address mapping.

[0096] The flow definition module 12 is configured to define the actual test flow corresponding to the motor to be tested based on the test flow related parameters by using a preset script engine.

[0097] The information determination module 13 is configured to determine the test control information corresponding to the target test fixture according to the actual test flow, and the target test fixture is the test fixture for testing the motor to be tested.

[0098] The test control module 14 is configured to send the test control information to the Modbus slave station of the target test fixture by using the Modbus master station based on the Modbus communication address mapping.

[0099] Optionally, the information determination module 13 is specifically configured to:

[0100] According to an actual test procedure, a current test item of the motor to be tested is determined, and when the current test item is a motor speed test item, an initial test speed corresponding to the motor to be tested is determined;

[0101] An actual contact pressure between the electrical connection point of the motor to be tested and the probe of the target test fixture is obtained, and at least one target pressure range is determined according to a contact pressure range between the probe of the target test fixture and the electrical connection point of the historical test motor when the probe is loose in the historical motor speed test, the target pressure range being a contact pressure range in which the probe is prone to be loose in the motor speed test;

[0102] A speed range in which the historical test motor speed is located when the probe is loose is determined when the contact pressure between the probe of the target test fixture and the electrical connection point of the historical test motor is in a single target pressure range, and at least one target speed range is determined according to the speed range, the target speed range being a speed range in which the probe is prone to be loose under the corresponding target pressure range;

[0103] A first weight value of each target pressure range is determined, and a second weight value of the target speed range corresponding to each target pressure range is determined, the first weight value representing a possibility that the contact pressure is in the target pressure range when the probe is loose, and the second weight value representing a possibility that the historical test motor speed is in the target speed range when the probe is loose;

[0104] An initial contact pressure of the target test fixture in the motor speed test on the motor to be tested is determined according to the actual contact pressure, the initial test speed, the first weight value and the second weight value, and test control information corresponding to the target test fixture is determined based on the initial contact pressure, the initial contact pressure being a contact pressure between the probe of the target test fixture and the electrical connection point of the motor to be tested when the initial test speed is tested.

[0105] Optionally, the information determination module 13 is specifically configured to:

[0106] The target pressure range in which the actual contact pressure is located is determined as a key pressure range, and if the initial test speed is included in a target speed range corresponding to the key pressure range, the target speed range corresponding to the key pressure range is determined as a key speed range;

[0107] A first product of the first weight value of the key pressure range and the second weight value of the corresponding key speed range is calculated, and a second product of the first weight value of the key pressure range and the second weight value of each important speed range is calculated, the important speed range being a target speed range located in an interval from 0 to the initial test speed;

[0108] Sum the first product and each second product to obtain a first summation result, and if the first summation result is not greater than a preset first threshold value, the actual contact pressure is determined as an initial contact pressure when the target test fixture tests the rotational speed of the motor to be tested;

[0109] If the first summation result is greater than the first threshold value, the initial contact pressure when the target test fixture tests the rotational speed of the motor to be tested is determined based on the initial test rotational speed.

[0110] Optionally, the information determining module 13 is specifically configured to:

[0111] The interval from 0 to the initial test rotational speed is determined as a first reference rotational speed interval, and a reference rotational speed interval in each target rotational speed range corresponding to each target pressure range is determined, the reference rotational speed interval being a target rotational speed range having an intersection with the first reference rotational speed interval;

[0112] The third product of the first weight value of each target pressure range and the second weight value of the corresponding reference rotational speed range is calculated and summed to obtain a corresponding second summation result;

[0113] The minimum second summation result is selected from the second summation results, and when the minimum second summation result is not greater than a preset first threshold value, the initial contact pressure when the target test fixture tests the rotational speed of the motor to be tested is determined according to the target pressure range corresponding to the minimum second summation result.

[0114] Optionally, as shown in Figure 3 The pressure adjusting module 15 is specifically configured to:

[0115] In a case where the initial test rotational speed test is completed and the target test rotational speed needs to be continuously tested, if the overall duration of the operation of the motor to be tested is greater than a preset second threshold value, an interval from the initial test rotational speed to the target test rotational speed is determined as a second reference rotational speed interval, and the target test rotational speed is greater than the initial test rotational speed;

[0116] The initial contact pressure is adjusted and optimized according to the second reference rotational speed interval to obtain a target contact pressure;

[0117] The heat dissipation fan in the target test fixture is started, and an appropriate speed of the heat dissipation fan is determined, the target contact pressure is adjusted and optimized according to the appropriate speed to obtain a final contact pressure, and the initial contact pressure between the probe of the target test fixture and the electrical connection point of the motor to be tested is adjusted to the final contact pressure.

[0118] Optionally, the pressure adjusting module 15 is specifically configured to:

[0119] determining a final speed range from each target speed range corresponding to the target pressure range, the final speed range being a target speed range having an intersection with the second reference speed interval;

[0120] determining the target pressure range in which the initial contact pressure is located as a final pressure range, calculating a fourth product of the first weight value of the final pressure range and the second weight value of each final speed range corresponding to the final pressure range and summing up the fourth product to obtain a third summation result;

[0121] if the third summation result is greater than a preset first threshold value, calculating a fifth product of the first weight value of each target pressure range and the second weight value of each final speed range corresponding to the target pressure range and summing up the fifth product to obtain a corresponding fourth summation result;

[0122] selecting a minimum fourth summation result from the fourth summation results, and when the minimum fourth summation result is not greater than the first threshold value, adjusting and optimizing the initial contact pressure according to the target pressure range corresponding to the minimum fourth summation result to obtain a target contact pressure;

[0123] if the third summation result is not greater than the preset first threshold value, determining the initial contact pressure as the target contact pressure.

[0124] Optionally, the pressure adjusting module 15 is specifically configured to:

[0125] when the target contact pressure is not the initial contact pressure, determining a first speed range of the cooling fan according to the minimum fourth summation result, and the greater the minimum fourth summation result is, the greater the speed value in the corresponding first speed range of the cooling fan is;

[0126] determining at least one easy heating area in the motor to be tested, and determining a heating risk coefficient corresponding to each easy heating area;

[0127] determining a blowing direction of the cooling fan to the probe of the target test fixture as a final blowing direction of the cooling fan, determining an easy heating area covered by the final blowing direction as a target heating area, and determining a second speed range of the cooling fan according to the heating risk coefficient corresponding to the target heating area;

[0128] performing intersection operation on the first speed range and the second speed range to obtain a speed intersection interval, and determining a suitable speed of the cooling fan based on the speed intersection interval;

[0129] determining a suitable contact pressure interval between the probe of the target test fixture and the electrical connection point of the motor to be tested according to the suitable speed, and if the target contact pressure is not in the suitable contact pressure interval, adjusting and optimizing the target contact pressure based on the intersection of the suitable contact pressure interval and the target pressure range corresponding to the minimum fourth summation result to obtain a final contact pressure.

[0130] It should be noted that the above embodiment provides a test device based on a test fixture, which is used to execute the test method based on the test fixture. In the actual application, the above functions can be completed by different functional modules according to the needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the test device based on the test fixture and the test method based on the test fixture provided by the above embodiment belong to the same concept, and the implementation process is described in the method embodiment, which will not be repeated here.

[0131] The embodiment of the application further discloses a computer readable storage medium, and the computer readable storage medium stores a computer program, wherein the computer program is executed by a processor to realize the test method based on the test fixture.

[0132] The computer program can be stored in the computer readable medium, and the computer program includes computer program code, which can be in the form of source code, object code, executable file or some middleware form, etc. The computer readable medium includes any entity or device, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier wave signal, telecommunication signal and software distribution medium, etc. that can carry the computer program code. It should be noted that the computer readable medium includes but is not limited to the above components.

[0133] The computer readable storage medium stores the test method based on the test fixture in the computer readable storage medium, and is loaded and executed on the processor to facilitate the storage and application of the method.

[0134] The embodiment of the application further discloses an electronic device, and the computer readable storage medium stores a computer program, and the computer program is loaded and executed by the processor to realize the test method based on the test fixture.

[0135] The electronic device can be a desktop computer, a notebook computer or a cloud server, and the electronic device includes but is not limited to a processor and a memory. For example, the electronic device can further include an input / output device, a network access device and a bus, etc.

[0136] The processor can be a central processing unit (CPU), and can also be other general purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), programmable logic devices (PLD), field programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic, discrete hardware components, etc. The general purpose processor can be a microprocessor or any conventional processor, etc. The present application is not limited in this regard.

[0137] The memory can be an internal storage unit of the electronic device, such as a hard disk or a memory of the electronic device, or an external storage device of the electronic device, such as a plug-in hard disk, a smart media card (SMC), a secure digital card (SD), or a flash memory card (FC) equipped on the electronic device. The memory can also be a combination of the internal storage unit and the external storage device of the electronic device. The memory is used to store computer programs and other programs and data required by the electronic device. The memory can also be used to temporarily store data that has been output or will be output. The present application is not limited in this regard.

[0138] The electronic device stores the test method based on the test fixture of the above embodiments in the memory of the electronic device, and loads and executes the test method on the processor of the electronic device, which is convenient to use.

[0139] The above description is only exemplary embodiments of the present disclosure, and cannot limit the scope of the present disclosure. Any equivalent changes and modifications made in accordance with the teachings of the present disclosure are still within the scope of the present disclosure. The present application is intended to cover any variations, uses, or adaptive changes of the present disclosure that follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not described in the present disclosure. The specification and embodiments are only considered exemplary, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A testing method based on a test fixture, characterized in that, The method includes: Obtain the test configuration parameters corresponding to the motor to be tested issued by the cloud configuration platform. The test configuration parameters include test process related parameters and Modbus communication address mapping. Based on the parameters related to the test process, the actual test process corresponding to the motor under test is defined by a preset script engine; According to the actual testing process, the test control information corresponding to the target test fixture is determined, including: determining the current test item of the motor under test according to the actual testing process; when the current test item is a motor speed test, determining the initial test speed of the motor under test; obtaining the actual contact pressure between the electrical connection point of the motor under test and the probe of the target test fixture, and determining at least one target pressure range based on the contact pressure range between the probe of the target test fixture and the electrical connection point of the historical test motor when probe loosening occurred in historical motor speed tests, wherein the target pressure range is the contact pressure range where the probe is prone to loosening during motor speed testing; obtaining the speed range of the historical test motor when probe loosening occurred when the contact pressure between the probe of the target test fixture and the electrical connection point of the historical test motor is within a single target pressure range, and determining at least one target speed range based on the speed range. The target speed range is defined as the speed range within which probe loosening is likely to occur under the corresponding target pressure range. A first weight is determined for each target pressure range, and a second weight is determined for the target speed range corresponding to each target pressure range. The first weight represents the probability that the contact pressure is within the target pressure range when probe loosening occurs, and the second weight represents the probability that probe loosening occurs when the speed of the historically tested motor is within the target speed range. Based on the actual contact pressure, the initial test speed, the first weight, and the second weight, the initial contact pressure when the target test fixture performs a speed test on the motor under test is determined, and based on the initial contact pressure, the test control information corresponding to the target test fixture is determined. The initial contact pressure is the contact pressure between the probe and the electrical connection point of the motor under test in the target test fixture when testing the initial test speed. The target test fixture is the test fixture for testing the motor under test. Based on the Modbus communication address mapping, the test control information is sent from the Modbus master station to the Modbus slave station of the target test fixture.

2. The testing method based on a test fixture according to claim 1, characterized in that, The step of determining the initial contact pressure of the target test fixture when performing a speed test on the motor under test, based on the actual contact pressure, the initial test speed, the first weight, and the second weight, specifically includes: The target pressure range where the actual contact pressure is located is determined as the key pressure range. If the target speed range corresponding to the key pressure range includes the initial test speed, then the corresponding target speed range is determined as the key speed range. Calculate the first product of the first weight of the key pressure range and the second weight of the corresponding key speed range, and calculate the second product of the first weight of the key pressure range and the second weight of each important speed range, wherein the important speed range is the target speed range within the interval from 0 to the initial test speed; The first product and each of the second products are summed to obtain a first summation result. If the first summation result is not greater than a preset first threshold, the actual contact pressure is determined as the initial contact pressure when the target test fixture performs a speed test on the motor under test. If the first summation result is greater than the first threshold, then based on the initial test speed, the initial contact pressure of the target test fixture when performing speed testing on the motor under test is determined.

3. The testing method based on a test fixture according to claim 2, characterized in that, The step of determining the initial contact pressure of the target test fixture when performing a speed test on the motor under test based on the initial test speed specifically includes: The range from 0 to the initial test speed is defined as the first reference speed range, and a reference speed range is defined in each target speed range corresponding to each target pressure range. The reference speed range is the target speed range that intersects with the first reference speed range. Calculate the third product of the first weight of each target pressure range and the second weight of the corresponding reference speed range, and sum them to obtain the corresponding second summation result; The smallest second summation result is selected from each of the second summation results. When the smallest second summation result is not greater than a preset first threshold, the initial contact pressure of the target test fixture when performing speed testing on the motor under test is determined according to the target pressure range corresponding to the smallest second summation result.

4. The testing method based on a test fixture according to claim 1, characterized in that, The method further includes: When the initial test speed test is completed and the target test speed needs to be tested, if the total running time of the motor under test is greater than a preset second threshold, the interval between the initial test speed and the target test speed is determined as the second reference speed interval, and the target test speed is greater than the initial test speed. The initial contact pressure is adjusted and optimized based on the second reference rotation speed range to obtain the target contact pressure; Start the preset cooling fan in the target test fixture and determine the appropriate wind speed of the cooling fan. Based on the appropriate wind speed, adjust and optimize the target contact pressure to obtain the final contact pressure. Adjust the initial contact pressure between the probe of the target test fixture and the electrical connection point of the motor under test to the final contact pressure.

5. The testing method based on a test fixture according to claim 4, characterized in that, The step of adjusting and optimizing the initial contact pressure according to the second reference rotational speed range to obtain the target contact pressure specifically includes: A final speed range is determined from each target speed range corresponding to each target pressure range, wherein the final speed range is a target speed range that intersects with the second reference speed range. The target pressure range where the initial contact pressure is located is determined as the final pressure range. The fourth product of the first weight of the final pressure range and the second weight of each corresponding final speed range is calculated and summed to obtain the third summation result. If the third summation result is greater than the preset first threshold, then the fifth product of the first weight of each target pressure range and the second weight of each corresponding final speed range is calculated and summed to obtain the corresponding fourth summation result; The smallest fourth summation result is selected from all the fourth summation results. When the smallest fourth summation result is not greater than the first threshold, the initial contact pressure is adjusted and optimized according to the target pressure range corresponding to the smallest fourth summation result to obtain the target contact pressure. If the third summation result is not greater than the preset first threshold, then the initial contact pressure is determined as the target contact pressure.

6. The testing method based on a test fixture according to claim 5, characterized in that, Determining the appropriate airflow speed for the cooling fan specifically includes: When the target contact pressure is not the initial contact pressure, the first wind speed range of the cooling fan is determined according to the minimum fourth summation result. The larger the minimum fourth summation result, the larger the wind speed value in the corresponding first wind speed range. Identify at least one heat-prone area in the motor under test, and determine the heat generation risk coefficient corresponding to each heat-prone area; The wind direction from the cooling fan to the probe of the target test fixture is determined as the final airflow direction of the cooling fan. The area prone to heat generation covered by the final airflow direction is determined as the target heat generation area. Based on the heat generation risk coefficient corresponding to the target heat generation area, the second wind speed range of the cooling fan is determined. The intersection of the first wind speed range and the second wind speed range is calculated to obtain the wind speed intersection interval, and the appropriate wind speed of the cooling fan is determined based on the wind speed intersection interval. The step of adjusting and optimizing the target contact pressure based on the suitable wind speed to obtain the final contact pressure specifically includes: Based on the suitable wind speed, a suitable contact pressure range is determined between the probe of the target test fixture and the electrical connection point of the motor to be tested. If the target contact pressure is not within the suitable contact pressure range, the target contact pressure is adjusted and optimized based on the intersection of the suitable contact pressure range and the target pressure range corresponding to the minimum fourth summation result to obtain the final contact pressure.

7. A testing apparatus based on a test fixture, used to implement the testing method based on a test fixture as described in any one of claims 1 to 6, characterized in that, include: The parameter acquisition module (11) is used to acquire the test configuration parameters corresponding to the motor to be tested issued by the cloud configuration platform. The test configuration parameters include test process related parameters and Modbus communication address mapping. The process definition module (12) is used to define the actual test process corresponding to the motor under test based on the test process related parameters through a preset script engine. The information determination module (13) is used to determine the test control information corresponding to the target test fixture according to the actual test process, wherein the target test fixture is the test fixture for testing the motor to be tested; The test control module (14) is used to send the test control information to the Modbus slave station of the target test fixture through the Modbus master station based on the Modbus communication address mapping.

8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is loaded and executed by the processor, it implements the method of any one of claims 1-6.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that, When the processor loads and executes the computer program, it implements the method of any one of claims 1-6.

Citation Information

Patent Citations

  • Board card testing method, electronic equipment and storage medium

    CN120371621A