Aging test method, device and equipment and computer readable storage medium
By designing an aging test method and device that allows the host computer to be connected to multiple controllers, the problem of low efficiency caused by frequent replacement of controllers is solved, batch testing is achieved and costs are reduced.
Patent Information
- Application Number
- CN202410736556.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-08-27
AI Technical Summary
Frequent replacement of controllers in existing aging test methods results in low test efficiency and high equipment purchase costs.
By designing an aging test method and device, the host computer is allowed to connect to multiple target controllers, send instructions and detect the status of relays and motors, thereby achieving batch aging testing and reducing the frequency of controller replacement.
It improves the efficiency of aging testing, reduces equipment purchase costs, and enables simultaneous testing of multiple controllers.
Smart Images

Figure CN118549809A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of motor testing, and in particular to an aging test method, device, equipment and computer-readable storage medium. Background Art
[0002] Aging test is a test to check the working condition of a product after a period of continuous use. Since aging test can verify the long-term stability and reliability of the product, in the production and manufacturing of controllers, factories generally conduct reasonable aging tests on controllers to strengthen the evaluation of product life, performance, reliability, etc., so as to further improve product design and manufacturing process and improve product quality level.
[0003] In the related art, a dedicated host computer (PC) and supporting operating software are generally used to perform a one-to-one aging test on the controller, that is, one host computer only performs an aging test on one controller at a time. Due to the large size and high cost of PCs, factories generally do not purchase PCs in batches, and generally implement aging tests by constantly replacing the controllers connected to the host computer.
[0004] The existing aging test method has a technical problem of low aging test efficiency due to frequent replacement of controllers during aging test. Summary of the invention
[0005] The main purpose of the present invention is to provide an aging test method, device, equipment and computer-readable storage medium, aiming to solve the technical problem of low aging test efficiency caused by frequent replacement of controllers during aging test.
[0006] To achieve the above object, the present invention provides an aging test method, which is applied to a host computer, the host computer is connected to a plurality of target controllers, each of which is respectively connected to a relay and a motor, and the method comprises:
[0007] Sending a first instruction to each of the target controllers, and receiving first information fed back by each of the target controllers, wherein the first instruction is used to trigger each of the target controllers to control the opening and closing of a correspondingly connected relay, the first information represents the opening and closing state of the relay, and each of the target controllers is placed in a preset high temperature environment;
[0008] Detecting whether the first information fed back by each of the target controllers matches the first instruction;
[0009] If the first information fed back by each of the target controllers matches the first instruction, a second instruction is sent to each of the target controllers, and second information fed back by each of the target controllers is received, wherein the second instruction is used to trigger each of the target controllers to control the movement of the corresponding connected motor, and the second information represents the position of the motor;
[0010] Detecting whether the second information fed back by each of the target controllers matches the second instruction;
[0011] If the second information fed back by each of the target controllers matches the second instruction, the process returns to executing: the step of sending the first instruction to each of the target controllers until each of the target controllers is placed in the preset high temperature environment for a preset time period.
[0012] Optionally, the method further comprises:
[0013] After connecting to each of the target controllers, detecting whether the number of connected target controllers is consistent with a preset number;
[0014] If the number of connected target controllers is consistent with the preset number, the step of sending the first instruction to each of the target controllers is performed.
[0015] Optionally, the first instruction includes a pull-in instruction and a disconnection instruction, the first information includes a first signal representing a pull-in state of the relay, and a second signal representing a disconnection state of the relay, and the step of detecting whether the first information fed back by each of the target controllers matches the first instruction includes:
[0016] If it is detected that the first instruction is a pull-in instruction and the first information is a first signal, determining that the first information matches the first instruction;
[0017] If it is detected that the first instruction is a pull-in instruction and the first information is a second signal, it is determined that the first information does not match the first instruction;
[0018] If it is detected that the first instruction is a disconnection instruction and the first information is a second signal, determining that the first information matches the first instruction;
[0019] If it is detected that the first instruction is a disconnection instruction and the first information is a first signal, it is determined that the first information does not match the first instruction.
[0020] Optionally, after the step of detecting whether the first information fed back by each of the target controllers matches the first instruction, the method further includes:
[0021] taking first information that does not match the first instruction as first target information;
[0022] The target controller that feeds back the first target information is used as the first controller to remove the first controller from each of the target controllers, and execute: the step of sending the second instruction to each of the target controllers.
[0023] Optionally, the step of detecting whether the second information fed back by each of the target controllers matches the second instruction includes:
[0024] Determine a target motor position based on the second instruction, wherein the target motor position is a position specified to be reached when the second instruction triggers each target controller to control the corresponding connected motor to move;
[0025] Based on the second information fed back by each of the target controllers, the actual motor position of the motor connected to each of the target controllers is correspondingly determined, and the difference between each of the actual motor positions and the target motor position is calculated, wherein the actual motor position is the position that the motor connected to the target controller actually reaches after receiving the second instruction;
[0026] Taking the actual motor position whose difference is less than a preset threshold as the first position, and determining that the second information corresponding to the first position matches the second instruction;
[0027] The actual motor position whose difference is greater than or equal to the preset threshold is taken as the second position, and it is determined that the second information corresponding to the second position does not match the second instruction.
[0028] Optionally, after the step of detecting whether the second information fed back by each of the target controllers matches the second instruction, the method further includes:
[0029] using second information that does not match the second instruction as second target information;
[0030] The target controller that feeds back the second target information is used as the second controller to remove the second controller from each of the target controllers, and execute: the step of sending the first instruction to each of the target controllers.
[0031] Optionally, the method further comprises:
[0032] If it is detected that the time that each of the target controllers has been placed in the preset high-temperature environment reaches a preset time length, the number of each of the target controllers, the number of the first controller, and the number of the second controller are output respectively.
[0033] In addition, to achieve the above-mentioned purpose, the present invention further provides an aging test device, which is applied to a host computer, the host computer is connected to a plurality of first controllers, each of which is respectively connected to a relay and a motor, and the device comprises:
[0034] A load test module, used for sending a first instruction to each of the target controllers, and receiving first information fed back by each of the target controllers, wherein the first instruction is used to trigger each of the target controllers to control the opening and closing of a correspondingly connected relay, the first information represents the opening and closing state of the relay, and each of the target controllers is placed in a preset high temperature environment; detecting whether the first information fed back by each of the target controllers matches the first instruction;
[0035] A pulse test module, used for sending a second instruction to each of the target controllers if the first information fed back by each of the target controllers matches the first instruction, and receiving second information fed back by each of the target controllers, wherein the second instruction is used to trigger each of the target controllers to control the movement of the corresponding connected motor, and the second information represents the position of the motor; and detecting whether the second information fed back by each of the target controllers matches the second instruction;
[0036] A cyclic testing module is used to return to the step of sending the first instruction to each of the target controllers if the second information fed back by each of the target controllers matches the second instruction, until each of the target controllers is placed in the preset high temperature environment for a preset time period.
[0037] In addition, to achieve the above-mentioned purpose, the present invention also provides an aging test device, which includes: a memory, a processor, and an aging test program stored in the memory and executable on the processor, wherein the aging test program is configured to implement the steps of the aging test method described above.
[0038] In addition, to achieve the above-mentioned purpose, the present invention further provides a computer-readable storage medium, on which an aging test program is stored, and when the aging test program is executed by a processor, the steps of the aging test method described above are implemented.
[0039] The present invention sends a first instruction to each target controller and receives the first information fed back by each target controller, wherein the first instruction is used to trigger each target controller to control the opening and closing of the corresponding connected relay, the first information represents the opening and closing state of the relay, and each target controller is placed in a preset high temperature environment; detects whether the first information fed back by each target controller matches the first instruction; if the first information fed back by each target controller matches the first instruction, sends a second instruction to each target controller, and receives the second information fed back by each target controller, wherein the second instruction is used to trigger each target controller to control the corresponding connected motor movement, and the second information represents the position of the motor; detects whether the second information fed back by each target controller matches the second instruction; if the second information fed back by each target controller matches the second instruction, returns to execute: the step of sending the first instruction to each target controller until the time each target controller is placed in the preset high temperature environment reaches a preset duration. The present invention realizes that a host can perform aging tests with multiple controllers at the same time, without frequently replacing the controller, greatly improving the efficiency of the factory in performing aging tests on the controller, and effectively reducing the cost of purchasing aging test equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a schematic diagram of the process of the first embodiment of the aging test method of the present invention;
[0041] Figure 2 A schematic diagram of a verification process of a load test according to an embodiment of the present invention;
[0042] Figure 3 A schematic diagram of a detection process of controller connection according to an embodiment of the present invention;
[0043] Figure 4 It is a schematic diagram of a module of an aging test device involved in an embodiment of the present invention;
[0044] Figure 5 It is a structural schematic diagram of an aging test device for a hardware operating environment involved in an embodiment of the present invention.
[0045] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0046] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0047] The embodiment of the present invention provides an aging test method, referring to Figure 1 , Figure 1 FIG. 1 is a flow chart of a first embodiment of an aging test method of the present invention.
[0048] In this embodiment, the aging test method is applied to a host computer, the host computer is connected to a plurality of target controllers, each of the target controllers is respectively connected to a relay and a motor, and includes:
[0049] Step S100: sending a first instruction to each of the target controllers, and receiving first information fed back by each of the target controllers, wherein the first instruction is used to trigger each of the target controllers to control the opening and closing of a correspondingly connected relay, and the first information represents the opening and closing state of the relay, and each of the target controllers is placed in a preset high temperature environment;
[0050] In this embodiment, the target controller refers to the controller to be subjected to the aging test, and each target controller is connected to a relay and a motor, and is connected to the host computer. The opening and closing states of the relay include a closed state and an open state. The preset high temperature environment is an environment that reaches a preset temperature required for the aging test of the controller. In practical applications, the preset temperature is generally 55 degrees Celsius, and the preset high temperature environment can be achieved by a constant temperature box.
[0051] This embodiment uses a touch screen as a host computer to connect to multiple target controllers, so that the aging test of each target controller is completed by sending instructions through the touch screen. Compared with the traditional PC-side dedicated host computer, the touch screen has the advantages of smaller size, lower cost, and low usage threshold, which is convenient for operators to operate it more conveniently, so as to realize batch and automation of controller aging testing.
[0052] Those skilled in the art will know that the controller controls the opening and closing of the relay by the magnitude of the output current or voltage, and the load capacity refers to the ability of the output voltage or current to remain unaffected after an external load device is connected.
[0053] In this embodiment, after the target controller controls the opening and closing of the corresponding connected relay according to the first instruction sent by the touch screen, the relay will feed back a signal to the target controller, and the signal reflects the opening and closing state of the relay. The target controller reads the signal and feeds the signal back to the touch screen as the first information. After the touch screen receives the first information, it can judge whether the load capacity of the target controller is normal under the aging test according to whether the first information matches the first instruction.
[0054] Step S200: Detecting whether the first information fed back by each of the target controllers matches the first instruction;
[0055] In this embodiment, the first instruction includes a pull-in instruction and a disconnection instruction, wherein the pull-in instruction is used to trigger the target controller to control the corresponding connected relay to pull in, and the disconnection instruction is used to trigger the target controller to control the corresponding connected relay to disconnect. The first information includes a first signal representing the pull-in state of the relay, and a second signal representing the disconnection state of the relay.
[0056] In this embodiment, please refer to Figure 2 , Figure 2 The following is a schematic diagram of a verification process of a load test according to an embodiment of the present invention, wherein step S200 includes:
[0057] Step S210: If it is detected that the first instruction is a pull-in instruction and the first information is a first signal, determining that the first information matches the first instruction;
[0058] In this embodiment, if it is detected that the first instruction is a closure instruction, and the first information fed back by the target controller is a first signal, that is, the relay connected to the target controller is in a closure state, then it is judged that the first information fed back by the target controller matches the first instruction, thereby determining that the load capacity of the target controller is still normal, and the aging test can continue.
[0059] Step S220: If it is detected that the first instruction is a pull-in instruction and the first information is a second signal, it is determined that the first information does not match the first instruction;
[0060] In this embodiment, if it is detected that the first instruction is an attraction instruction, and the first information fed back by the target controller is the second signal, that is, the relay connected to the target controller is in a disconnected state, then it is judged that the first information fed back by the target controller does not match the first instruction, thereby determining that the load capacity of the target controller is abnormal, and then determining that the aging test of the target controller has failed, which makes it easier for operators to eliminate it and improve the yield rate of the controller finally leaving the factory.
[0061] Step S230: If it is detected that the first instruction is a disconnect instruction and the first information is a second signal, determining that the first information matches the first instruction;
[0062] In this embodiment, if it is detected that the first instruction is a disconnection instruction, and the first information fed back by the target controller is the second signal, that is, the relay connected to the target controller is in a disconnected state, then it is judged that the first information fed back by the target controller matches the first instruction, thereby determining that the load capacity of the target controller is still normal, and the aging test can continue.
[0063] Step S240: If it is detected that the first instruction is a disconnection instruction and the first information is a first signal, it is determined that the first information does not match the first instruction.
[0064] In this embodiment, if it is detected that the first instruction is a disconnection instruction, and the first information fed back by the target controller is a first signal, that is, the relay corresponding to the target controller is in the energized state, then it is judged that the first information fed back by the target controller does not match the first instruction, thereby determining that the load capacity of the target controller is abnormal, and then determining that the aging test of the target controller has failed, which makes it easier for operators to eliminate it and improve the yield rate of the controller finally leaving the factory.
[0065] It is not difficult to understand that in this embodiment, the above detection operation is performed on the first information fed back by each target controller, so as to determine whether the load capacity of each target controller is normal.
[0066] This embodiment verifies the load capacity of each target controller by detecting whether the first information fed back by each target controller matches the first instruction sent by the touch screen, thereby determining whether each target controller has passed the aging test and whether it needs to be eliminated.
[0067] It is worth mentioning that during the aging test, the touch screen will record the test data of each target controller, which is convenient for engineers to improve the production process of the controller based on the test data.
[0068] Step S300: If the first information fed back by each of the target controllers matches the first instruction, a second instruction is sent to each of the target controllers, and second information fed back by each of the target controllers is received, wherein the second instruction is used to trigger each of the target controllers to control the movement of the corresponding connected motor, and the second information represents the position of the motor;
[0069] In this embodiment, if it is detected that the first information fed back by each target controller matches the first instruction sent by the touch screen, a second instruction is sent to each target controller.
[0070] It is not difficult to understand that the second instruction includes the target motor position, which is the position to which the motor moves, and the second information includes the actual motor position, which is the position actually reached after the motor moves.
[0071] Those skilled in the art will appreciate that the controller controls the movement of the motor by generating a pulse signal.
[0072] In this embodiment, the target controller receives the second instruction sent by the touch screen, and controls the corresponding connected motor to move to the target motor position specified by the second instruction. After the motor movement is completed, the motor encoder will feed back a signal to the target controller, which reflects the actual motor position of the motor. The target controller receives the signal and feeds the signal back to the touch screen as the second information. After the touch screen receives the second information, it can judge whether the target controller's ability to generate a pulse signal is normal under the aging test based on whether the second information matches the second instruction, that is, whether the actual motor position matches the target motor position.
[0073] Step S400: Detecting whether the second information fed back by each of the target controllers matches the second instruction;
[0074] In this embodiment, step S400 includes:
[0075] Step S410: determining a target motor position based on the second instruction, wherein the target motor position is a position specified to be reached when the second instruction triggers each target controller to control the corresponding connected motor to move;
[0076] In this embodiment, the second instruction includes the target motor position. According to the second instruction, the target motor position can be determined, so as to judge whether the motor loses steps under the aging test based on the target motor position and the actual motor position, and then determine whether the target controller's ability to generate pulse signals is normal.
[0077] Step S420: Based on the second information fed back by each of the target controllers, the actual motor position of the motor connected to each of the target controllers is correspondingly determined, and the difference between each of the actual motor positions and the target motor position is calculated, wherein the actual motor position is the position that the motor connected to each of the target controllers actually reaches after receiving the second instruction;
[0078] In this embodiment, the second information includes the actual motor position. After the touch screen receives the second information fed back by each target controller, it can determine the actual motor position of the motor connected to each target controller, and then calculate the difference between each actual motor position and the target motor position.
[0079] Step S430: taking the actual motor position whose difference is less than a preset threshold as the first position, and determining that the second information corresponding to the first position matches the second instruction;
[0080] In this embodiment, the preset threshold value can be set according to the user's requirement for the controller performance. The higher the user's requirement for the controller performance, the smaller the preset threshold value.
[0081] It can be understood that if the difference between the actual motor position and the target motor position is less than the preset threshold, the actual motor position with the difference less than the preset threshold is taken as the first position, and the second information corresponding to the first position is determined to match the second instruction, that is, it is considered that the ability of the target controller corresponding to the first position to generate a pulse signal is still normal under the aging test, and the aging test can continue.
[0082] Step S440: taking the actual motor position whose difference is greater than or equal to the preset threshold as the second position, and determining that the second information corresponding to the second position does not match the second instruction.
[0083] In this embodiment, if the difference between the actual motor position and the target motor position is greater than or equal to a preset threshold, the actual motor position whose difference is greater than or equal to the preset threshold is taken as the second position, and it is determined that the second information corresponding to the second position does not match the second instruction, that is, it is considered that the target controller corresponding to the second position has an abnormal ability to generate a pulse signal under the aging test, and it needs to be eliminated to improve the yield rate of the controllers leaving the factory.
[0084] Step S500: If the second information fed back by each of the target controllers matches the second instruction, the process returns to the step of sending the first instruction to each of the target controllers until each of the target controllers is placed in the preset high temperature environment for a preset time period.
[0085] In this embodiment, if the second information fed back by each target controller matches the second instruction sent by the touch screen, the execution is returned to: the step of sending the first instruction to each of the target controllers, and performing a cyclic test on each target controller until the aging test of the preset duration is completed, that is, until the time each target controller is placed in the preset high temperature environment reaches the preset duration.
[0086] In order to better complete the aging test of the target controller, in the cycle test, the first command sent by the touch screen during the load test (that is, testing whether the load capacity of each target controller is normal) is alternately changed between the disconnection command and the pull-in command, so as to more accurately and comprehensively test the load capacity of the target controller and obtain more accurate aging test results. Obviously, detecting whether the first information matches the first command means detecting whether the first information fed back by each target controller in this cycle matches the first command sent by the touch screen in this cycle.
[0087] Accordingly, during the pulse test (i.e., testing whether the ability of each target controller to generate a pulse signal is normal), the target motor position included in the second instruction sent by the touch screen will also change to control the motor to alternate between forward and reverse rotation, thereby achieving a more comprehensive and accurate pulse test and more accurately determining whether the ability of the target controller to generate a pulse signal is normal. It is not difficult to understand that detecting whether the second information matches the second instruction means detecting whether the second information fed back by each target controller in this cycle matches the second instruction sent by the touch screen in this cycle.
[0088] This embodiment sends a first instruction to each target controller and receives the first information fed back by each target controller, wherein the first instruction is used to trigger each target controller to control the opening and closing of the corresponding connected relay, the first information represents the opening and closing state of the relay, and each target controller is placed in a preset high temperature environment; detects whether the first information fed back by each target controller matches the first instruction; if the first information fed back by each target controller matches the first instruction, sends a second instruction to each target controller, and receives the second information fed back by each target controller, wherein the second instruction is used to trigger each target controller to control the corresponding connected motor movement, and the second information represents the position of the motor; detects whether the second information fed back by each target controller matches the second instruction; if the second information fed back by each target controller matches the second instruction, returns to execute: the step of sending the first instruction to each target controller until the time each target controller is placed in the preset high temperature environment reaches the preset duration. This embodiment realizes that one host can perform aging tests with multiple controllers at the same time, without frequently replacing the controller, greatly improving the efficiency of the factory in aging testing the controller, and effectively reducing the cost of purchasing aging test equipment.
[0089] In one possible implementation, please refer to Figure 3 , Figure 3 This is a schematic diagram of a detection process of controller connection according to an embodiment of the present invention, wherein the method further includes:
[0090] Step S600: After connecting to each of the target controllers, detecting whether the number of connected target controllers is consistent with a preset number;
[0091] In this embodiment, the preset number refers to the preset number of target controllers to be subjected to the aging test.
[0092] Step S700: If the number of connected target controllers is consistent with the preset number, executing: the step of sending the first instruction to each of the target controllers.
[0093] In this embodiment, after the touch screen is connected to each target controller, the touch screen detects the connected target controllers. If the number of connected target controllers is consistent with the preset number, the step of sending a first instruction to each of the target controllers is performed to start the aging test for each target controller. If the number of connected target controllers is inconsistent with the preset number, a prompt message is generated to prompt the operator to detect whether the connection between the touch screen and the target controller is normal.
[0094] This embodiment detects the connection between the target controller and the touch screen before the formal aging test, thereby avoiding the situation where the aging test cannot be performed normally due to abnormal connection, and improving the efficiency of the aging test.
[0095] In a possible implementation manner, after the step of detecting whether the first information fed back by each target controller matches the first instruction, the method further includes:
[0096] Step A10: taking the first information that does not match the first instruction as the first target information;
[0097] Step A20: Use the target controller that feeds back the first target information as the first controller to remove the first controller from each of the target controllers, and execute: the step of sending the second instruction to each of the target controllers.
[0098] In this embodiment, the first controller is a target controller whose load capacity is abnormal during the aging test, that is, a target controller that feeds back the first target information.
[0099] It is not difficult to understand that the first controller is removed from each target controller because the first controller has been detected to have failed the aging test (ie, the load capacity is abnormal), and there is no need to send the first instruction or the second instruction to the first controller.
[0100] In this embodiment, if it is detected that the first information fed back by a target controller does not match the first instruction, the first information that does not match the first instruction is used as the first target information, and the target controller that feeds back the first target information is used as the first controller, and the first instruction or the second instruction is no longer sent to perform an aging test on the first controller. While reducing the resource consumption of the aging test, the first controller with abnormal load capacity during the aging test is recorded, which facilitates the operator to eliminate the first controller and improve the quality of the controllers leaving the factory.
[0101] It is worth mentioning that if in the first cycle of the aging test, it is detected that the first information fed back by the target controller does not match the first instruction, the touch screen will not use the first information as the first target information, but will generate a prompt message to prompt the operator to check whether the connection of the target controller is abnormal. This is because when the controller is connected to the relay, there may be poor contact or strong interference, resulting in inaccurate information fed back by the controller, which in turn affects the confidence of the aging test results.
[0102] In a possible implementation manner, after the step of detecting whether the second information fed back by each target controller matches the second instruction, the method further includes:
[0103] Step B10: taking the second information that does not match the second instruction as the second target information;
[0104] Step B20: Use the target controller that feeds back the second target information as the second controller to remove the second controller from each of the target controllers, and execute: the step of sending the first instruction to each of the target controllers.
[0105] In this embodiment, the second controller is a target controller whose ability to generate pulse signals in the aging test is abnormal, that is, a target controller that feeds back the second target information.
[0106] It is not difficult to understand that the second controller is removed from each target controller because the second controller has been detected to have failed the aging test (ie, the ability to generate pulse signals is abnormal), and there is no need to send the first instruction or the second instruction to the first controller.
[0107] In this embodiment, if it is detected that the second information fed back by a target controller does not match the second instruction, the second information that does not match the second instruction is used as the second target information, and the target controller that feeds back the second target information is used as the second controller. The first instruction or the second instruction is no longer sent to perform an aging test on the first controller. While reducing the resource consumption of the aging test, the second controller with an abnormal ability to generate a pulse signal during the aging test is recorded, which makes it easier for the operator to eliminate the second controller and improve the quality of the controllers leaving the factory.
[0108] It is worth mentioning that if in the first cycle of the aging test, it is detected that the second information fed back by the target controller does not match the second instruction, the touch screen will not use the first information as the first target information, but will generate a prompt message to prompt the operator to check whether the connection of the target controller is abnormal. This is because when the controller is connected to the motor, there may be poor contact or strong interference, resulting in inaccurate information fed back by the controller, which in turn affects the confidence of the aging test results.
[0109] In a possible implementation, the method further includes:
[0110] Step S800: if it is detected that the time that each of the target controllers has been placed in the preset high temperature environment reaches a preset time, then the number of each of the target controllers, the number of the first controller, and the number of the second controller are output respectively;
[0111] Those skilled in the art can understand that the duration of the aging test is generally 4 hours. In this embodiment, the preset duration is 4 hours. When the target controller is placed in the preset high temperature environment for the preset duration, it indicates that the aging test has been completed. At this time, the touch screen will output the number of the target controller, the number of the first controller, and the number of the second controller respectively, so that the operator can understand the quality of each controller and eliminate the first controller and the second controller.
[0112] It is not difficult to understand that during the aging test, according to user needs, the touch screen can also record the instructions sent to each controller in each cycle (i.e., the first instruction and the second instruction), as well as the information fed back by each controller (i.e., the first information and the second information), so that users can understand the detailed test data of each controller in the aging test, thereby comprehensively evaluating the quality of the controllers produced in this batch by the factory, and then improving the production process of the controllers.
[0113] In addition, the present invention also provides an aging test device, which is applied to a host computer, and the host computer is connected to a plurality of target controllers, each of which is connected to a relay and a motor, respectively. Figure 4 , Figure 4 The module diagram of the aging test device involved in the embodiment of the present invention is as follows:
[0114] The load test module 10 is used to send a first instruction to each of the target controllers, and receive first information fed back by each of the target controllers, wherein the first instruction is used to trigger each of the target controllers to control the opening and closing of a correspondingly connected relay, and the first information represents the opening and closing state of the relay, and each of the target controllers is placed in a preset high temperature environment; detect whether the first information fed back by each of the target controllers matches the first instruction;
[0115] The pulse test module 20 is used to send a second instruction to each of the target controllers if the first information fed back by each of the target controllers matches the first instruction, and receive second information fed back by each of the target controllers, wherein the second instruction is used to trigger each of the target controllers to control the movement of the corresponding connected motor, and the second information represents the position of the motor; and detect whether the second information fed back by each of the target controllers matches the second instruction;
[0116] The loop test module 30 is used to return to the step of sending the first instruction to each target controller if the second information fed back by each target controller matches the second instruction, until each target controller is placed in the preset high temperature environment for a preset time period.
[0117] In one embodiment, the cycle test module 30 is further configured to:
[0118] After connecting to each of the target controllers, detecting whether the number of connected target controllers is consistent with a preset number;
[0119] If the number of connected target controllers is consistent with the preset number, the step of sending the first instruction to each of the target controllers is performed.
[0120] In one embodiment, the first instruction includes a pull-in instruction and a disconnection instruction, the first information includes a first signal representing a pull-in state of the relay, and a second signal representing a disconnection state of the relay, and the load test module 10 is further used to:
[0121] If it is detected that the first instruction is a pull-in instruction and the first information is a first signal, determining that the first information matches the first instruction;
[0122] If it is detected that the first instruction is a pull-in instruction and the first information is a second signal, it is determined that the first information does not match the first instruction;
[0123] If it is detected that the first instruction is a disconnection instruction and the first information is a second signal, determining that the first information matches the first instruction;
[0124] If it is detected that the first instruction is a disconnection instruction and the first information is a first signal, it is determined that the first information does not match the first instruction.
[0125] In one embodiment, the pulse test module 20 is further used for:
[0126] taking first information that does not match the first instruction as first target information;
[0127] The target controller that feeds back the first target information is used as the first controller to remove the first controller from each of the target controllers, and execute: the step of sending the second instruction to each of the target controllers.
[0128] In one embodiment, the pulse test module 20 is further used for:
[0129] Determine a target motor position based on the second instruction, wherein the target motor position is a position specified to be reached when the second instruction triggers each target controller to control the corresponding connected motor to move;
[0130] Based on the second information fed back by each of the target controllers, the actual motor position of the motor connected to each of the target controllers is correspondingly determined, and the difference between each of the actual motor positions and the target motor position is calculated, wherein the actual motor position is the position that the motor connected to the target controller actually reaches after receiving the second instruction;
[0131] Taking the actual motor position whose difference is less than a preset threshold as the first position, and determining that the second information corresponding to the first position matches the second instruction;
[0132] The actual motor position whose difference is greater than or equal to the preset threshold is taken as the second position, and it is determined that the second information corresponding to the second position does not match the second instruction.
[0133] In one embodiment, the cycle test module 30 is further configured to:
[0134] using second information that does not match the second instruction as second target information;
[0135] The target controller that feeds back the second target information is used as the second controller to remove the second controller from each of the target controllers, and execute: the step of sending the first instruction to each of the target controllers.
[0136] In one embodiment, the cycle test module 30 is further configured to:
[0137] If it is detected that the time that each of the target controllers has been placed in the preset high-temperature environment reaches a preset time length, the number of each of the target controllers, the number of the first controller, and the number of the second controller are output respectively.
[0138] The aging test device provided in the embodiment of the present invention adopts the aging test method in the above embodiment, which can solve the technical problem of low aging test efficiency caused by frequent replacement of controllers during aging test. Compared with the prior art, the beneficial effects of the aging test device provided in the embodiment of the present invention are the same as the beneficial effects of the aging test method provided in the above embodiment, and other technical features in the aging test device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0139] In addition, the present invention also provides an aging test device, which includes a memory, a processor, and an aging test program stored in the memory and executable on the processor, wherein the aging test program implements the steps of the above-mentioned aging test method when executed by the processor.
[0140] Please refer to Figure 5 , Figure 5 It is a structural schematic diagram of an aging test device for a hardware operating environment involved in an embodiment of the present invention.
[0141] like Figure 5 As shown, the aging test equipment may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0142] Those skilled in the art will understand that Figure 5 The structure shown in the figure does not constitute a limitation on the aging test equipment, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0143] like Figure 5 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module and an aging test program.
[0144] exist Figure 5 In the aging test device shown, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the aging test device of the present invention can be set in the aging test device, and the aging test device calls the aging test program stored in the memory 1005 through the processor 1001, and executes the aging test method provided by the embodiment of the present invention.
[0145] In addition, the present invention also provides a computer-readable storage medium, on which an aging test program is stored. When the aging test program is executed by a processor, the steps of the aging test method described above are implemented.
[0146] The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the above-mentioned embodiments of the aging test method, and will not be described in detail herein.
[0147] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0148] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0149] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0150] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. An aging test method, It is characterized in that The aging test method is applied to a host computer, the host computer is connected to a plurality of target controllers, each of the target controllers is respectively connected to a relay and a motor, and the method comprises the following steps: Sending a first instruction to each of the target controllers, and receiving first information fed back by each of the target controllers, wherein the first instruction is used to trigger each of the target controllers to control the opening and closing of a correspondingly connected relay, the first information represents the opening and closing state of the relay, and each of the target controllers is placed in a preset high temperature environment; Detecting whether the first information fed back by each of the target controllers matches the first instruction; If the first information fed back by each of the target controllers matches the first instruction, a second instruction is sent to each of the target controllers, and second information fed back by each of the target controllers is received, wherein the second instruction is used to trigger each of the target controllers to control the movement of the corresponding connected motor, and the second information represents the position of the motor; Detecting whether the second information fed back by each of the target controllers matches the second instruction; If the second information fed back by each of the target controllers matches the second instruction, the process returns to executing: the step of sending the first instruction to each of the target controllers until each of the target controllers is placed in the preset high temperature environment for a preset time period.
2. The aging test method according to claim 1, It is characterized in that The method further comprises: After connecting to each of the target controllers, detecting whether the number of connected target controllers is consistent with a preset number; If the number of connected target controllers is consistent with the preset number, the step of sending the first instruction to each of the target controllers is performed.
3. The aging test method according to claim 1, It is characterized in that The first instruction includes a pull-in instruction and a disconnection instruction, the first information includes a first signal representing a pull-in state of the relay, and a second signal representing a disconnection state of the relay, and the step of detecting whether the first information fed back by each of the target controllers matches the first instruction includes: If it is detected that the first instruction is a pull-in instruction and the first information is a first signal, determining that the first information matches the first instruction; If it is detected that the first instruction is a pull-in instruction and the first information is a second signal, it is determined that the first information does not match the first instruction; If it is detected that the first instruction is a disconnection instruction and the first information is a second signal, determining that the first information matches the first instruction; If it is detected that the first instruction is a disconnection instruction and the first information is a first signal, it is determined that the first information does not match the first instruction.
4. The aging test method according to claim 3, It is characterized in that After the step of detecting whether the first information fed back by each of the target controllers matches the first instruction, the method further includes: taking first information that does not match the first instruction as first target information; The target controller that feeds back the first target information is used as the first controller to remove the first controller from each of the target controllers, and execute: the step of sending the second instruction to each of the target controllers.
5. The aging test method according to claim 4, It is characterized in that The step of detecting whether the second information fed back by each target controller matches the second instruction comprises: Determine a target motor position based on the second instruction, wherein the target motor position is a position specified to be reached when the second instruction triggers each target controller to control the corresponding connected motor to move; Based on the second information fed back by each of the target controllers, the actual motor position of the motor connected to each of the target controllers is correspondingly determined, and the difference between each of the actual motor positions and the target motor position is calculated, wherein the actual motor position is the position that the motor connected to the target controller actually reaches after receiving the second instruction; Taking the actual motor position whose difference is less than a preset threshold as the first position, and determining that the second information corresponding to the first position matches the second instruction; The actual motor position whose difference is greater than or equal to the preset threshold is taken as the second position, and it is determined that the second information corresponding to the second position does not match the second instruction.
6. The aging test method according to claim 5, It is characterized in that After the step of detecting whether the second information fed back by each of the target controllers matches the second instruction, the method further includes: using second information that does not match the second instruction as second target information; The target controller that feeds back the second target information is used as the second controller to remove the second controller from each of the target controllers, and execute: the step of sending the first instruction to each of the target controllers.
7. The aging test method according to claim 6, It is characterized in that The method further comprises: If it is detected that the time that each of the target controllers has been placed in the preset high-temperature environment reaches a preset time length, the number of each of the target controllers, the number of the first controller, and the number of the second controller are output respectively.
8. An aging test device, It is characterized in that The aging test device is applied to a host computer, the host computer is connected to a plurality of target controllers, each of the target controllers is respectively connected to a relay and a motor, and the device comprises: A load test module, used for sending a first instruction to each of the target controllers, and receiving first information fed back by each of the target controllers, wherein the first instruction is used to trigger each of the target controllers to control the opening and closing of a correspondingly connected relay, the first information represents the opening and closing state of the relay, and each of the target controllers is placed in a preset high temperature environment; detecting whether the first information fed back by each of the target controllers matches the first instruction; A pulse test module, used for sending a second instruction to each of the target controllers if the first information fed back by each of the target controllers matches the first instruction, and receiving second information fed back by each of the target controllers, wherein the second instruction is used to trigger each of the target controllers to control the movement of the corresponding connected motor, and the second information represents the position of the motor; and detecting whether the second information fed back by each of the target controllers matches the second instruction; A cyclic testing module is used to return to the step of sending the first instruction to each of the target controllers if the second information fed back by each of the target controllers matches the second instruction, until each of the target controllers is placed in the preset high temperature environment for a preset time period.
9. An aging test device, It is characterized in that The device comprises: a memory, a processor, and an aging test program stored in the memory and executable on the processor, wherein the aging test program is configured to implement the steps of the aging test method according to any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores an aging test program, and when the aging test program is executed by a processor, the steps of the aging test method according to any one of claims 1 to 7 are implemented.
