Component test method, device and equipment, readable storage medium and program product
By obtaining the interface parameters of the relay and automatically determining the test sequence, the problems of low efficiency and poor accuracy of traditional testing methods are solved, and more efficient and accurate component testing is achieved.
Patent Information
- Application Number
- CN202510172987.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-17
- Publication Date
- 2025-05-13
AI Technical Summary
Traditional component testing methods are inefficient and require manual frequent connection and removal of test devices and relays, which can easily lead to long test time and low accuracy.
By obtaining the interface parameters of each target relay, the test sequence is automatically determined and the test is performed, the first test result is obtained, and further current or voltage tests are performed if necessary to determine the status of the relay.
Improves testing efficiency, reduces manual operation errors, and enhances the accuracy and consistency of tests.
Smart Images

Figure CN119986352A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of circuit breakers, and in particular to a component testing method, device, equipment, readable storage medium and program product. Background Art
[0002] Electronic components need to be tested and accepted for quality before they are put into use. For example, the relevant plug-ins of the circuit breaker operating box need to have their internal relays tested.
[0003] Traditional testing methods usually require manual connection of the test device and the relay. When one relay is tested, the connection line between the test device and the relay is manually removed, and then the test device is connected to the next relay to be tested and tested.
[0004] However, the above test method has the problem of low test efficiency. Summary of the invention
[0005] Based on this, it is necessary to provide a component testing method, device, equipment, readable storage medium and program product that can improve testing efficiency in response to the above technical problems.
[0006] In a first aspect, the present application provides a component testing method, which is used in a component testing device, wherein the component testing device is connected to each target relay included in the component to be tested, and comprises:
[0007] Obtaining interface parameters corresponding to each target relay, where the interface parameters are used to indicate a target interface for connecting the target relay to the component test device;
[0008] Each target relay is tested according to the interface parameters corresponding to each target relay to obtain a first test result corresponding to the component to be tested.
[0009] In one embodiment, each target relay is tested according to the interface parameters corresponding to each target relay to obtain a first test result corresponding to the component to be tested, including:
[0010] According to each interface parameter, determine the test sequence corresponding to each target relay;
[0011] Testing each target relay according to the test sequence to obtain a second test result corresponding to each target relay;
[0012] The first test result is determined based on each of the second test results.
[0013] In one embodiment, each target relay is tested in a test order to obtain a second test result corresponding to each target relay, including:
[0014] In the process of testing each target relay according to the test sequence, determining the type of relay to be tested corresponding to the target relay, applying a continuously increasing current or voltage to the target relay according to the type of relay to be tested, and determining the current value or voltage value when the target relay responds to a preset response;
[0015] When the current value or the voltage value is within the preset value range, it is determined that the second test result is that the relay is normal.
[0016] In one embodiment, the method further comprises:
[0017] The first test result is output on the result display interface, and the result indicator lights corresponding to the target relays are turned on according to the second test results.
[0018] In one embodiment, before testing each target relay according to the interface parameters corresponding to each target relay to obtain a first test result corresponding to the component to be tested, the method further includes:
[0019] For each candidate relay included in the component to be tested, detecting whether the type of the relay to be tested matches the actual type corresponding to the candidate relay, and obtaining a matching result;
[0020] The candidate relay whose matching result is that the relay type to be tested matches the actual type is determined as the target relay.
[0021] In one embodiment, the method further comprises:
[0022] According to the relay identifiers of the other relays except the target relay in each candidate relay, a prompt message is output, and the prompt message is used to prompt that the relay types to be tested of the other relays are abnormal.
[0023] In a second aspect, the present application provides a component testing device, which is used for a component testing device, the component testing device is connected to each target relay included in the component to be tested, and the device includes:
[0024] An acquisition module, used for acquiring interface parameters corresponding to each target relay, the interface parameters being used for indicating a target interface for connecting the target relay with the component test device;
[0025] The test module is used to test each target relay according to the interface parameters corresponding to each target relay to obtain a first test result corresponding to the component to be tested.
[0026] In a third aspect, an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method of the first aspect when executing the computer program.
[0027] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method of the first aspect described above.
[0028] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the method in the first aspect are implemented.
[0029] The above-mentioned component testing method, device, equipment, readable storage medium and program product are used for a component testing device, and the component testing device is connected to each target relay included in the component to be tested. By obtaining the interface parameters corresponding to each target relay, each target relay can be tested according to the interface parameters corresponding to each target relay to obtain the first test result corresponding to the component to be tested, wherein. The interface parameter is used to indicate the target interface of the target relay connected to the component testing device. In this way, the target relay to be tested in each component to be tested is connected to the component testing device in advance, which avoids the problem of low test efficiency caused by constantly manually disconnecting the connecting wires between the test device and each relay in the traditional technology, and also avoids the disconnection error problem that may be caused by manually disconnecting the connecting wires, thereby improving the test accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0031] Figure 1 An application environment diagram of a component testing method in an embodiment;
[0032] Figure 2 is a schematic diagram of a structure of an exemplary component testing device;
[0033] Figure 3 A schematic diagram of a component testing method in one embodiment;
[0034] Figure 4 is a schematic flow chart of step 302 in one embodiment;
[0035] Figure 5 is a flow chart of a component testing method in another embodiment;
[0036] Figure 6 is a structural block diagram of a component testing device in one embodiment;
[0037] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0039] Electronic components need to be tested and accepted for quality before they are put into use. For example, the relevant plug-ins of the circuit breaker operating box need to have their internal relays tested.
[0040] Traditional testing methods usually require manual work to determine the coil and wiring position of each relay based on drawings, thereby connecting the test device and the relay and testing the relay according to the test device. When a relay is tested, the connecting wire between the test device and the relay is manually removed, and then the test device is connected to the next relay to be tested and tested.
[0041] However, in the above test method, manually connecting and disconnecting the connection wires between the test device and the relay one by one will lead to low overall test efficiency, and disconnection errors are prone to occur, resulting in low test accuracy.
[0042] In view of this, the present application provides a component testing method, device, equipment, readable storage medium and program product, which are used for a component testing device, wherein the component testing device is connected to each target relay included in the component to be tested, and by obtaining the interface parameters corresponding to each target relay, each target relay can be tested according to the interface parameters corresponding to each target relay to obtain a first test result corresponding to the component to be tested, wherein. The interface parameters are used to indicate the target interface of the target relay connected to the component testing device. In this way, the target relay to be tested in each component to be tested is connected to the component testing device in advance, which avoids the problem of low test efficiency caused by constantly manually disconnecting the connecting wires between the test device and each relay in the traditional technology, and also avoids the disconnection error problem that may be caused by manually disconnecting the connecting wires, thereby improving the test accuracy.
[0043] The component testing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. The component test device 101 is connected to each target relay 103 included in the component to be tested 102, wherein the component to be tested 102 may be a related plug-in of a relay control box, the target relay 103 may be a relay that can be tested, and the component test device 101 may be a device that can execute the component test method. For example, the component test device 101 may refer to Figure 2The component test device 101 may include a system power supply, a main controller, a CPLD (Complex Programmable Logic Device), a multi-directional relay array module, a voltage or current type threshold detection module, a high-precision adjustable DC voltage module, a high-precision adjustable DC current module, a measurement terminal validity detection module, a battery management and an interface, a total of 10 parts. The number and arrangement of the interfaces can be set according to the actual application scenario. In the embodiment of the present application, the interface can be a 3-row 48-hole interface. Among them, the system power supply is used to power the component test device, and the main power supply can be composed of 3.3V and 5V; the main controller can control the operation of the component test device, including controlling the running program Flash (flash memory) space, memory RAM (Random Access Memory), LCD display (Liquid Crystal Display), capacitive touch screen, USB interface (Universal Serial Bus), Ethernet interface function, LCD can be used to realize user-set related parameters, data management, system settings, software upgrades, help support and version information and other functions; CPLD is mainly used to complete digital latch control circuits, etc., through the CPU (Central Processing Unit, central processing unit) accesses and controls the multi-directional relay array module through CPLD; the multi-directional relay array module can be used to automatically switch the input terminals or contact terminals corresponding to the target relay to be tested, which is convenient for the target circuit breaker interface measurement; the voltage or current type threshold detection module is used to detect the conduction voltage or current threshold value when the contact is open or closed; the high-precision adjustable DC voltage module can be used to provide accurate output DC voltage; the high-precision adjustable DC current module can be used to provide accurate output DC current; the measurement terminal validity detection module can be used to determine the relay type corresponding to the connected relay; the battery management mainly realizes battery charging and discharging, battery power and temperature indication management; the interface includes a test interface and a general interface, the test interface can include a 3-row 48-core interface; the general interface can include a DC power port.
[0044] In an exemplary embodiment, Figure 3 As shown, a component testing method is provided, which is applied to Figure 1 The component test device 101 in the example is used for explanation, and the component test device is connected to each target relay included in the component to be tested. The method includes the following steps 301 and 302. Among them:
[0045] Step 301, obtaining interface parameters corresponding to each target relay.
[0046] The interface parameter is used to indicate the target interface through which the target relay is connected to the component test device.
[0047] Optionally, the component testing device may obtain interface parameters input by a user through an external input device; optionally, the component testing device may obtain a parameter file stored in the system, and obtain interface parameters corresponding to each target relay from the parameter file.
[0048] The target relay may be a relay included in the component to be tested and can be tested. In a possible implementation, the interface parameter includes a relay identifier corresponding to the target relay, and the component testing device may determine the target relay according to the relay identifier.
[0049] In another possible implementation, for each candidate relay included in the component to be tested, the component testing device can detect whether the type of the relay to be tested matches the actual type corresponding to the candidate relay, obtain a matching result, and determine the candidate relay whose matching result is that the type of the relay to be tested matches the actual type as the target relay.
[0050] The component to be tested may include multiple candidate relays. It is understandable that due to various reasons, not all of these candidate relays can be tested. For example, when the relay type to be tested corresponding to the candidate relay obtained by the component testing device does not match the actual type corresponding to the candidate relay, forcibly testing the candidate relay according to the relay type to be tested will cause damage to the candidate relay. Therefore, the component testing device needs to first determine the target relay whose relay type to be tested matches the actual type, and then test the target relay.
[0051] Regarding the matching process, in an embodiment of the present application, an adjustable resistor is also arranged between the input or output pin of the candidate relay and the interface of the component testing device. The component testing device can apply current or voltage to the candidate relay according to the type of the relay to be tested, and set a larger or smaller resistance value accordingly. The component testing device can determine whether the type of the relay to be tested matches the actual type corresponding to the candidate relay according to the operating condition of the candidate relay.
[0052] For candidate relays whose matching results are that the relay type to be tested does not match the actual type, that is, other relays except the target relay among the candidate relays, the component testing device can prohibit testing other relays during this test. In a possible implementation, the group detection device can also output prompt information based on the relay identification of other relays except the target relay among the candidate relays, wherein the prompt information is used to prompt that there is an abnormality in the relay type to be tested of other relays, so that the staff can adjust the relay type to be tested of other relays.
[0053] Step 302: Test each target relay according to the interface parameters corresponding to each target relay to obtain a first test result corresponding to the component to be tested.
[0054] After obtaining the interface parameters corresponding to each target relay, the component testing device can test each target relay according to the interface parameters corresponding to each target relay. Optionally, the component testing device can determine the test order corresponding to each target relay according to each interface parameter; optionally, the component testing device can determine the conduction order of each interface according to each interface parameter.
[0055] After testing each relay, the component testing device can also detect whether the test of each target relay has been completed. If the test has been completed, the component testing device can use the second test result corresponding to each target relay as the first test result.
[0056] In an embodiment of the present application, the second test result may be that the relay is normal or the relay is abnormal. The component testing device may comprehensively determine the first test result corresponding to the component to be tested by combining the second test results. For example, when all the second test results show that the relays are normal, the component testing device may determine that the first test result is that the component to be tested is normal; when there is a relay abnormality in each of the second test results, the component testing device may determine that the first test result is that the component to be tested is abnormal.
[0057] Thus, in the above-mentioned embodiment, the target relay to be tested in each component to be tested is connected to the component testing device in advance, thereby avoiding the problem of low testing efficiency caused by constantly manually disconnecting the connecting wires between the testing device and each relay in the traditional technology, and also avoiding the disconnection errors that may be caused by manual disconnection of the connecting wires, thereby improving the test accuracy.
[0058] In one embodiment, based on the above Figure 3 The embodiment shown, see Figure 4 , this embodiment relates to a process of testing each target relay according to the interface parameters corresponding to each target relay to obtain a first test result corresponding to the component under test. In this embodiment, the test parameters corresponding to the stress test include stress parameters, such as Figure 4 As shown, step 302 may include steps 401 to 403 .
[0059] Step 401, determining the test sequence corresponding to each target relay according to each interface parameter.
[0060] In the embodiment of the present application, each interface parameter includes an interface identifier of a target interface to which each target relay is connected, and the component testing device can determine a test sequence corresponding to each target relay according to the size of the interface identifier.
[0061] Step 402: Test each target relay according to the test sequence to obtain a second test result corresponding to each target relay.
[0062] In the embodiment of the present application, the component testing device can turn on different target interfaces according to the test sequence, thereby testing each target relay according to the test sequence.
[0063] In a possible implementation, the component testing device may test each target relay according to a preset test logic.
[0064] In another possible implementation, during the process of testing each target relay in accordance with the test sequence, the component testing device can determine the type of relay to be tested corresponding to the target relay, apply a continuously increasing current or voltage to the target relay according to the type of relay to be tested, and determine the current value or voltage value when the target relay produces a preset response. When the current value or voltage value is within the preset value range, the second test result is determined to be that the relay is normal.
[0065] Optionally, the component testing device may obtain the relay type to be tested input by the user through an external input device; optionally, the component testing device may obtain the relay type to be tested corresponding to each target relay through a test file stored in the system.
[0066] It can be understood that different types of relays to be tested correspond to different test methods. In the embodiment of the present application, the type of relay to be tested can be current type or voltage type. Optionally, if the type of relay to be tested is current type, the component testing device can apply a continuously increasing current to the target relay; optionally, if the type of relay to be tested is voltage type, the component testing device can apply a continuously increasing voltage to the target relay.
[0067] It can be understood that as the current or voltage increases, the target relay may have a preset response due to its characteristics. The preset response may be that the relay is opened or closed. At this time, the component testing device can obtain the current value or voltage value when the target relay has a preset response. The current value or voltage value is the threshold current or threshold voltage that the target relay can withstand. The component testing device can detect whether the current value or voltage value is within the preset value range. If the current value or voltage value is within the preset value range, the component testing device can determine that the second test result is that the relay is normal; if the current value or voltage value is not within the preset value range, the component testing device can determine that the second test result is that the relay is abnormal.
[0068] Step 403: Determine the first test result according to each second test result.
[0069] Optionally, the component testing device can directly use each second test result as the first test result; optionally, when the second test results all show that the relays are normal, the component testing device can determine that the first test result is that the component to be tested is normal; when there is a relay abnormality in each second test result, the component testing device can determine that the first test result is that the component to be tested is abnormal.
[0070] In a possible implementation manner, the component testing device may also output the first test result on a result display interface, and turn on a result indicator light corresponding to each target relay according to each second test result.
[0071] Optionally, when the second test result is that the relay is normal, the component testing device may turn on the result indicator light corresponding to the target relay, and when the second test result is that the relay is abnormal, the component testing device may not turn on the result indicator light corresponding to the target relay; optionally, when the second test result is different, after turning on the result indicator light, the result indicator light may display a different color. For example, for a target relay whose second test result is that the relay is abnormal, the corresponding result indicator light may be displayed in red after being turned on. Conversely, for a target relay whose second test result is that the relay is normal, the corresponding result indicator light may be displayed in green after being turned on.
[0072] In one embodiment, referring to Figure 5 , provides an exemplary component testing method that can be applied to Figure 1 The component testing device in the illustrated implementation environment is connected to each target relay included in the component to be tested.
[0073] Step 501: for each candidate relay included in the component to be tested, detect whether the type of the relay to be tested matches the actual type corresponding to the candidate relay, and obtain a matching result.
[0074] Step 502: determine the candidate relay whose matching result is that the relay type to be tested matches the actual type as the target relay.
[0075] Step 503: output prompt information according to the relay identifiers of the other relays in the candidate relays except the target relay.
[0076] The prompt information is used to prompt other relays that the relay type to be tested is abnormal.
[0077] Step 504, obtaining interface parameters corresponding to each target relay.
[0078] The interface parameter is used to indicate the target interface through which the target relay is connected to the component test device.
[0079] Step 505: Determine the test sequence corresponding to each target relay according to each interface parameter.
[0080] Step 506, during the process of testing each target relay according to the test sequence, determine the relay type to be tested corresponding to the target relay, apply a continuously increasing current or voltage to the target relay according to the relay type to be tested, and determine the current value or voltage value when the target relay generates a preset response.
[0081] Step 507: When the current value or the voltage value is within the preset value range, determine that the second test result is that the relay is normal.
[0082] Step 508: Determine the first test result according to each second test result.
[0083] Step 509: output the first test result on the result display interface, and turn on the result indicator lights corresponding to the target relays according to the second test results.
[0084] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0085] Based on the same inventive concept, the embodiment of the present application also provides a component testing device for implementing the component testing method involved above, and the component testing device is connected to each target relay included in the component to be tested. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more component testing device embodiments provided below can refer to the limitations of the component testing method above, and will not be repeated here.
[0086] In an exemplary embodiment, Figure 6 As shown, a component testing device is provided, including: an acquisition module 601 and a testing module 602, wherein:
[0087] An acquisition module 601 is used to acquire interface parameters corresponding to each of the target relays, wherein the interface parameters are used to indicate a target interface for connecting the target relay with the component testing device;
[0088] The testing module 602 is used to test each of the target relays according to the interface parameters corresponding to each of the target relays to obtain a first test result corresponding to the component to be tested.
[0089] In one embodiment, the testing module 602 includes:
[0090] A sequence unit, used for determining a test sequence corresponding to each of the target relays according to each of the interface parameters;
[0091] A relay testing unit, configured to test each of the target relays according to the test sequence to obtain a second test result corresponding to each of the target relays;
[0092] A result summarizing unit is used to determine the first test result according to each of the second test results.
[0093] In one embodiment, the relay testing unit is specifically configured to perform:
[0094] In the process of testing each of the target relays according to the test sequence, determining the type of relay to be tested corresponding to the target relay, applying a continuously increasing current or voltage to the target relay according to the type of relay to be tested, and determining the current value or voltage value when the target relay responds to a preset response;
[0095] When the current value or the voltage value is within a preset value range, it is determined that the second test result is that the relay is normal.
[0096] In one embodiment, the apparatus further comprises:
[0097] The output module is used to output the first test result on the result display interface and turn on the result indicator light corresponding to each of the target relays according to each of the second test results.
[0098] In one embodiment, the apparatus further comprises:
[0099] A safety matching module, for detecting, for each candidate relay included in the component to be tested, whether the type of the relay to be tested matches the actual type corresponding to the candidate relay, and obtaining a matching result;
[0100] The target determination module is used to determine the candidate relay whose matching result is that the relay type to be tested matches the actual type as the target relay.
[0101] In one embodiment, the apparatus further comprises:
[0102] The abnormality prompt module is used to output prompt information according to the relay identifications of other relays in each candidate relay except the target relay, wherein the prompt information is used to prompt that the type of the relay to be tested of the other relays is abnormal.
[0103] Each module in the above-mentioned component testing device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.
[0104] In an exemplary embodiment, a computer device is provided. The computer device may be a component testing device, and its internal structure diagram may be as shown in FIG. Figure 7 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store component test data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a component testing method is implemented.
[0105] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0106] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0107] Acquire an interface parameter corresponding to each of the target relays, wherein the interface parameter is used to indicate a target interface for connecting the target relay with the component testing device;
[0108] Each of the target relays is tested according to the interface parameters corresponding to each of the target relays to obtain a first test result corresponding to the component to be tested.
[0109] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0110] Determine the test sequence corresponding to each of the target relays according to each of the interface parameters;
[0111] Testing each of the target relays according to the test sequence to obtain a second test result corresponding to each of the target relays;
[0112] The first test result is determined according to each of the second test results.
[0113] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0114] In the process of testing each of the target relays according to the test sequence, determining the type of relay to be tested corresponding to the target relay, applying a continuously increasing current or voltage to the target relay according to the type of relay to be tested, and determining the current value or voltage value when the target relay responds to a preset response;
[0115] When the current value or the voltage value is within a preset value range, it is determined that the second test result is that the relay is normal.
[0116] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0117] The first test result is output on a result display interface, and the result indicator lights corresponding to the target relays are turned on according to the second test results.
[0118] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0119] For each candidate relay included in the component to be tested, detecting whether the type of the relay to be tested matches the actual type corresponding to the candidate relay, and obtaining a matching result;
[0120] The candidate relay whose matching result is that the relay type to be tested matches the actual type is determined as the target relay.
[0121] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0122] According to the relay identifiers of other relays except the target relay in each of the candidate relays, prompt information is output, where the prompt information is used to prompt that the relay type to be tested of the other relays is abnormal.
[0123] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0124] Acquire an interface parameter corresponding to each of the target relays, wherein the interface parameter is used to indicate a target interface for connecting the target relay with the component testing device;
[0125] Each of the target relays is tested according to the interface parameters corresponding to each of the target relays to obtain a first test result corresponding to the component to be tested.
[0126] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0127] Determine the test sequence corresponding to each of the target relays according to each of the interface parameters;
[0128] Testing each of the target relays according to the test sequence to obtain a second test result corresponding to each of the target relays;
[0129] The first test result is determined according to each of the second test results.
[0130] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0131] In the process of testing each of the target relays according to the test sequence, determining the type of relay to be tested corresponding to the target relay, applying a continuously increasing current or voltage to the target relay according to the type of relay to be tested, and determining the current value or voltage value when the target relay responds to a preset response;
[0132] When the current value or the voltage value is within a preset value range, it is determined that the second test result is that the relay is normal.
[0133] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0134] The first test result is output on a result display interface, and the result indicator lights corresponding to the target relays are turned on according to the second test results.
[0135] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0136] For each candidate relay included in the component to be tested, detecting whether the type of the relay to be tested matches the actual type corresponding to the candidate relay, and obtaining a matching result;
[0137] The candidate relay whose matching result is that the relay type to be tested matches the actual type is determined as the target relay.
[0138] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0139] According to the relay identifiers of other relays except the target relay in each of the candidate relays, prompt information is output, where the prompt information is used to prompt that the relay type to be tested of the other relays is abnormal.
[0140] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0141] Acquire an interface parameter corresponding to each of the target relays, wherein the interface parameter is used to indicate a target interface for connecting the target relay with the component testing device;
[0142] Each of the target relays is tested according to the interface parameters corresponding to each of the target relays to obtain a first test result corresponding to the component to be tested.
[0143] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0144] Determine the test sequence corresponding to each of the target relays according to each of the interface parameters;
[0145] Testing each of the target relays according to the test sequence to obtain a second test result corresponding to each of the target relays;
[0146] The first test result is determined according to each of the second test results.
[0147] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0148] In the process of testing each of the target relays according to the test sequence, determining the type of relay to be tested corresponding to the target relay, applying a continuously increasing current or voltage to the target relay according to the type of relay to be tested, and determining the current value or voltage value when the target relay responds to a preset response;
[0149] When the current value or the voltage value is within a preset value range, it is determined that the second test result is that the relay is normal.
[0150] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0151] The first test result is output on a result display interface, and the result indicator lights corresponding to the target relays are turned on according to the second test results.
[0152] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0153] For each candidate relay included in the component to be tested, detecting whether the type of the relay to be tested matches the actual type corresponding to the candidate relay, and obtaining a matching result;
[0154] The candidate relay whose matching result is that the relay type to be tested matches the actual type is determined as the target relay.
[0155] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0156] According to the relay identifiers of other relays except the target relay in each of the candidate relays, prompt information is output, where the prompt information is used to prompt that the relay type to be tested of the other relays is abnormal.
[0157] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0158] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0159] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0160] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A component testing method, characterized in that: For a component testing device, the component testing device is connected to each target relay included in the component to be tested, and the method includes: Acquire an interface parameter corresponding to each of the target relays, wherein the interface parameter is used to indicate a target interface for connecting the target relay with the component testing device; Each of the target relays is tested according to the interface parameters corresponding to each of the target relays to obtain a first test result corresponding to the component to be tested.
2. The method according to claim 1, characterized in that The step of testing each target relay according to the interface parameters corresponding to each target relay to obtain a first test result corresponding to the component to be tested includes: Determine the test sequence corresponding to each of the target relays according to each of the interface parameters; Testing each of the target relays according to the test sequence to obtain a second test result corresponding to each of the target relays; The first test result is determined according to each of the second test results.
3. The method according to claim 2, characterized in that The step of testing each of the target relays according to the test sequence to obtain a second test result corresponding to each of the target relays includes: In the process of testing each of the target relays according to the test sequence, determining the type of relay to be tested corresponding to the target relay, applying a continuously increasing current or voltage to the target relay according to the type of relay to be tested, and determining the current value or voltage value when the target relay responds to a preset response; When the current value or the voltage value is within a preset value range, it is determined that the second test result is that the relay is normal.
4. The method according to claim 2, characterized in that: The method further comprises: The first test result is output on a result display interface, and the result indicator lights corresponding to the target relays are turned on according to the second test results.
5. The method according to any one of claim 3, characterized in that: Before testing each of the target relays according to the interface parameters corresponding to each of the target relays to obtain a first test result corresponding to the component under test, the method further includes: For each candidate relay included in the component to be tested, detecting whether the type of the relay to be tested matches the actual type corresponding to the candidate relay, and obtaining a matching result; The candidate relay whose matching result is that the relay type to be tested matches the actual type is determined as the target relay.
6. The method according to claim 5, characterized in that The method further comprises: According to the relay identifiers of other relays except the target relay in each of the candidate relays, prompt information is output, where the prompt information is used to prompt that the type of the relay to be tested of the other relays is abnormal.
7. A component testing device, characterized in that: Used in a component testing device, the component testing device is connected to each target relay included in the component to be tested, and the device includes: An acquisition module, used for acquiring interface parameters corresponding to each of the target relays, wherein the interface parameters are used for indicating a target interface for connecting the target relay with the component testing device; The testing module is used to test each of the target relays according to the interface parameters corresponding to each of the target relays to obtain a first test result corresponding to the component to be tested.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.