A method, device, electronic device and storage medium for testing power supply of multiple switches

Executing test instructions in parallel through registration pool groups solves the problem of a large waiting time in multi-switch tests, improves test efficiency and authenticity, and ensures that the reliability of switch tests matches the ambient temperature.

CN116032812BActive Publication Date: 2024-10-22INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211668015.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-23
Publication Date
2024-10-22
Estimated Expiration
2042-12-23

AI Technical Summary

Technical Problem

Existing switch testing methods account for a large proportion of waiting time when testing multiple switches, resulting in low test efficiency, and may cause test distortion when ambient temperature requirements exist.

Method used

Group the switches under test through the registration pool and execute power-on or power-off test instructions in parallel to reduce the number of instructions sent and waiting time. Use the checker and rest area to monitor the switch status and dynamically adjust the preset time threshold of the test group to improve Test efficiency and authenticity.

Benefits of technology

Significantly improves the efficiency and reliability of multi-switch testing, ensuring that the authenticity of the test results matches the ambient temperature.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116032812B_ABST
    Figure CN116032812B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, electronic device and storage medium for testing power supply of multiple switches, and relates to the field of switch testing technology. The method includes: registering at least two switches to be tested in a registration pool, receiving registration requests of all switches to be tested through the registration pool, and grouping the switches to be tested according to the registration requests, obtaining test groups and sending them to the executor; parsing the registration request through the executor and executing the test instructions on the corresponding switch ports according to the parsing situation; verifying the test status in the test group through the verifier, and in response to the test status being a successful test, placing the switch corresponding to the successful test into a rest area to wait; monitoring whether the placed switch meets the requirements through the rest area, and outputting the test results. The present application can control the power on and off of other switch ports in parallel during the power on or off waiting time of the switch, thereby significantly improving the test efficiency and ensuring the authenticity and reliability of the switch test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of switch testing, and in particular to a method, device, electronic device and storage medium for testing power supply of multiple switches. Background Art

[0002] A DC cabinet is a power device that can provide direct current to the outside. The DC cabinet has a cabinet structure, similar to an electric control cabinet. There are multiple ports on the front panel of the cabinet, which can be connected to the switch through a power cord to provide power for switch testing. The DC cabinet is connected to an RS232 serial line, through which external devices can send control commands to control the switch of a certain port. Currently, there are scenarios where DC power is used to power switches, so switches need to be tested in a DC environment before leaving the factory.

[0003] Since the DC cabinet uses RS232 for communication, the current test method is to power on, wait, and power off one port of the cabinet one by one. The specific steps of the existing interactive machine test method are as follows:

[0004] 1. The server sends a power-on command to the power cabinet port of the first machine;

[0005] 2. The server delays and waits for the power-on command to take effect;

[0006] 3. The server sends status query commands to each port of the power cabinet of the first machine to query the current status of the port and check whether the power-on command is effective;

[0007] 4. The server delays and waits for the query command to take effect;

[0008] 5. The server receives the current status of the port and makes a judgment. If the port is not powered on, the server re-executes steps 1-4 until the port is powered on successfully.

[0009] 6. The server executes steps 1-5 for the subsequent switch ports in sequence until all the switches to be tested have completed the power-on action. Similarly, the power-off action is similar to the above steps.

[0010] This test method has little effect on the test of a single switch, but for the test of multiple switches, the time from the power-on of the first switch to the power-on of the nth switch increases proportionally with the increase of the switches under test, which seriously affects the test efficiency. The power-on time of a machine = t1 (power-on command sending time) + t2 (waiting time) + t3 (query status command sending time) + t4 (waiting time). Among these four parts of time, t2 = t4 >> t1 = t3. It can be seen that the waiting time for powering on and off accounts for a very large proportion.

[0011] Therefore, the prior art has the following defects:

[0012] 1. In the time consumed by testing a single switch, waiting time accounts for a very large proportion. When some ports fail to power on or off, the remaining switches can only wait in line, which seriously blocks the test queue and affects the test efficiency.

[0013] 2. If the switch test has requirements for the ambient temperature, this power-on method will cause a large deviation in the synchronization between the test and the ambient temperature, and in severe cases may even cause test distortion. Summary of the invention

[0014] In order to solve at least one of the problems mentioned in the above background technology, the present application provides a multi-switch power supply test method, device, electronic device and storage medium, which can control the power on and off of other switch ports in parallel during the power-on or power-off waiting time of the switch, thereby significantly improving the test efficiency and ensuring the authenticity and reliability of the switch test.

[0015] The specific technical solutions provided by the embodiments of this application are as follows:

[0016] In a first aspect, a multi-switch power supply testing method is provided, comprising:

[0017] Register at least two switches to be tested in a registration pool, receive registration requests of all switches to be tested through the registration pool, group the switches to be tested according to the registration requests, obtain test groups and send them to the executor;

[0018] Parsing the registration request by the executor and executing the test instruction on the corresponding switch port according to the parsing result;

[0019] Verify the test status in the test group by a verifier, and in response to the test status being a test success, place the switch corresponding to the test success into a rest area to wait;

[0020] The rest area monitors whether the switches placed therein meet the requirements and outputs the test results.

[0021] Further, the test group includes at least one of a power-on test group and a power-off test group, the test instruction includes at least one of a power-on instruction and a power-off instruction, and the obtaining of the test group and sending it to the executor includes:

[0022] Obtain a power-on test group and / or a power-off test group and send it to the actuator;

[0023] The step of parsing the registration request by the executor and executing a test instruction on the corresponding switch port according to the parsing result includes:

[0024] The registration request is parsed by the executor, and a power-on instruction and a power-off instruction are respectively executed on the switch ports corresponding to the power-on test group and the power-off test group according to the parsing results.

[0025] Further, the checking of the test status in the test group by a checker, and in response to the test status being a test success, placing the switch corresponding to the test success in a rest area to wait, comprises:

[0026] Verifying the test status in the power-on test group and / or the power-off test group by a verifier;

[0027] In response to the test status of the switch port in the power-on test group being a successful power-on, placing the corresponding switch that has been successfully powered on into a rest area to wait;

[0028] In response to the test status of the switch port in the power-off test group being a successful power-off, the corresponding switch that has been successfully powered off is placed in a rest area to wait.

[0029] Further, after verifying the test status in the power-on test group and / or the power-off test group by the verifier, the method further includes:

[0030] In response to the test status of the switch port in the power-on test group being a power-on failure, re-executing the power-on instruction on the corresponding switch port that failed to power on by the executor until the power-on is successful;

[0031] In response to the test status of the switch port in the power-off test group being a power-off failure, the executor re-executes the power-off instruction on the corresponding switch port that has failed to power off until the power-off is successful.

[0032] Furthermore, the rest area monitors whether the switch placed therein meets the requirements and outputs the test results, including:

[0033] Monitoring the test times of the switches placed in the rest area through the rest area, wherein the test times include at least one of power-on times and power-off times;

[0034] In response to detecting that the number of tests of the currently placed switch is greater than a preset number threshold, the rest area determines that the test of the currently placed switch fails;

[0035] In response to detecting that the number of tests of the currently placed switch is not greater than a preset number threshold, the rest area determines that the test of the currently placed switch is successful.

[0036] Further, the step of monitoring whether the switch placed in the rest area meets the requirements and outputting the test result also includes:

[0037] The rest area starts timing from the first switch entering the test group until the timing stops after a preset time threshold is reached;

[0038] In response to the fact that the placement time of the currently placed switch does not exceed the preset waiting threshold of the same test packet, the rest area determines that the test of the currently placed switch is successful.

[0039] Furthermore, after starting to time the first switch entering the test group through the rest area and stopping the timing after waiting for a preset time threshold, the method further includes:

[0040] Reading the temperature sensor of each of the switches placed in the rest area, and recording the temperature value and waiting time of each of the switches placed in the rest area;

[0041] The preset time threshold under the same test group is dynamically adjusted according to the temperature value and the waiting time.

[0042] In a second aspect, a multi-switch power supply testing device is provided, the device comprising:

[0043] A registration module, used to register at least two switches to be tested in a registration pool, receive registration requests of all the switches to be tested through the registration pool, group the switches to be tested according to the registration requests, obtain test groups and send them to the executor;

[0044] An execution module, configured to parse the registration request through the executor and execute a test instruction on the corresponding switch port according to the parsing result;

[0045] A verification module, used for verifying the test status in the test group through a verifier, and in response to the test status being a test success, placing the switch corresponding to the test success into a rest area to wait;

[0046] The waiting module is used to monitor whether the switch placed in the rest area meets the requirements and output the test results.

[0047] According to a third aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the multi-switch power supply test method when executing the computer program.

[0048] According to a fourth aspect, a computer-readable storage medium is provided, storing computer-executable instructions, wherein the computer-executable instructions are used to execute the multi-switch power supply testing method.

[0049] The embodiments of the present application have the following beneficial effects:

[0050] The embodiments of the present application provide a multi-switch power supply test method, device, electronic device and storage medium, which can split and group according to test requirements through a registration pool, and convert the original instructions executed on a single device into execution instructions for the corresponding group in the registration pool, thereby reducing the number of instructions sent, and reducing the overall waiting time of the test according to the verifier and the rest pool, thereby significantly improving the production test efficiency; it can improve the matching degree between the test and the ambient temperature, and ensure the authenticity and reliability of the test. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments 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 drawings can be obtained based on these drawings without creative work.

[0052] Figure 1 The overall flow chart of the multi-switch power supply testing method provided by the embodiment of the present application is shown;

[0053] Figure 2 A specific flow chart of a multi-switch power supply testing method according to an embodiment of the present application is shown;

[0054] Figure 3 A schematic diagram showing the structure of a multi-switch power supply test device provided in an embodiment of the present application is shown;

[0055] Figure 4 An exemplary system is shown that can be used to implement the various embodiments described in this application. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0057] It should be understood that in the description of the present application, unless the context clearly requires otherwise, words such as "include", "comprises", and the like in the entire specification and claims should be interpreted as having an inclusive meaning rather than an exclusive or exhaustive meaning; that is, the meaning of "including but not limited to".

[0058] Embodiment 1

[0059] This application provides a multi-switch power supply test method, referring to Figure 1 ,include:

[0060] S1. Register at least two switches to be tested in a registration pool, receive registration requests of all switches to be tested through the registration pool, group the switches to be tested according to the registration requests, obtain test groups and send them to the executor;

[0061] S2, parsing the registration request through the executor and executing the test instruction on the corresponding switch port according to the parsing result;

[0062] S3, verifying the test status in the test group by a verifier, and in response to the test status being a success, placing the switch corresponding to the success in the test into a rest area to wait;

[0063] S4. Monitor the switches in the rest area to see if they meet the requirements and output the test results.

[0064] Specifically, the server first registers all switches that need to be tested in the registration pool. The server is responsible for pushing the target switch to the registration pool to keep the server simple and stable; the registration pool is responsible for collecting the test requirements of the switches to be tested and breaking them down into groups according to the requirements. For example, if the test requirement is a power-on and power-off requirement, the switches can be classified and grouped according to the need for power-on testing and power-off testing. Those that need power-on testing are grouped in one group, and those that need power-off testing are grouped in another group. In this way, a power-on test instruction can be sent to the power-on group through the executor, or a power-off test instruction can be sent to the power-off group through the executor, without sending instructions to each switch, thereby reducing the number of instructions sent. Then the status is judged by the verifier, and those that are successfully verified by the verifier are placed in the rest area to wait, thereby significantly reducing the overall waiting time, significantly improving the production test efficiency, and ensuring the authenticity and reliability of the test.

[0065] The following will be combined Figure 2 For further explanation:

[0066] In some implementations, the test group includes at least one of a power-on test group and a power-off test group, and the test instruction includes at least one of a power-on instruction and a power-off instruction. Based on this, S1 includes:

[0067] S11, registering at least two switches to be tested in a registration pool, and receiving registration requests of all switches to be tested through the registration pool;

[0068] S12. Group the switches to be tested according to the registration request, obtain a power-on test group and / or a power-off test group, and send them to the executor.

[0069] Based on this, S2 includes:

[0070] S21, parsing the registration request through the executor and executing the power-on instruction and the power-off instruction on the switch ports corresponding to the power-on test group and the power-off test group respectively according to the parsing results.

[0071] Specifically, a DUT (Device under test, switch under test) requires two power supplies in groups. For example, DUT1 uses Port1-1 and Port1-2 for power supply; DUT2 uses Port2-1 and Port2-2 for power supply. The registration request includes a power-on test request and a power-off test request. After receiving the request, the registration pool will break up the channel groups of each DUT, regroup them according to the power-on and power-off requirements, and group them into power-on test groups and power-off test groups, and transmit the new groups to the actuator. The actuator monitors the register all the time. If there is no request in the register, no operation is performed. If a request is received, the corresponding switch instruction is issued to the corresponding port of the corresponding group. For example, a power-on test instruction is uniformly issued to the power-on test group; a power-off test instruction is uniformly issued to the power-off test group. In this way, a power-on test instruction can be sent to the power-on group through the actuator, or a power-off test instruction can be sent to the power-off group through the actuator, without sending instructions to each switch, thereby reducing the number of instructions sent.

[0072] In some implementations, based on this, S3 includes:

[0073] S31, verifying the test status in the power-on test group and / or the power-off test group by a verifier;

[0074] S32a, in response to the test status of the switch port in the power-on test group being a successful power-on, placing the corresponding switch that has been successfully powered on into a rest area to wait;

[0075] S33a, in response to the test status of the switch port in the power-off test group being a successful power-off, placing the corresponding switch that has been successfully powered off into a rest area to wait.

[0076] In some embodiments, after S31, the method further includes:

[0077] S32b, in response to the test status of the switch port in the power-on test group being a power-on failure, re-executing the power-on instruction on the corresponding switch port that failed to power on through the executor until the power-on is successful;

[0078] S33b, in response to the test status of the switch port in the power-off test group being a power-off failure, re-executing the power-off instruction on the corresponding switch port that failed to power off through the executor until the power-off is successful.

[0079] Specifically, the verifier is also a separate process. The verifier verifies the test status in the real grouping of the DUT port based on the real grouping. Exemplarily, it is necessary to verify the power-on status of the switch port in the power-on test grouping. If the test status of the switch port in the power-on test grouping is power-on success, the port corresponding to the switch under the grouping is deleted from the executor list, and the switch is placed in the rest area for waiting; if the test status of the switch port in the power-on test grouping is power-on failure, it is necessary to re-power it through the executor, and keep it in the executor list and repeat the execution until the power-on is successful. Similarly, it is necessary to verify the power-off status of the switch port in the power-off test grouping. If the test status of the switch port in the power-off test grouping is power-off success, the port corresponding to the switch under the grouping is deleted from the executor list, and the switch is placed in the rest area for waiting; if the test status of the switch port in the power-off test grouping is power-off failure, it is necessary to re-power it through the executor, and keep it in the executor list and repeat the shutdown instruction until the power-off is successful.

[0080] In some embodiments, S4 includes:

[0081] S41, monitoring the test times of the switch in the rest area through the rest area, where the test times include at least one of power-on times and power-off times;

[0082] S42, in response to detecting that the number of tests of the currently placed switch is greater than a preset number threshold, the rest area determines that the test of the currently placed switch fails;

[0083] S43: In response to detecting that the number of tests of the currently placed switch is not greater than a preset number threshold, the rest area determines that the test of the currently placed switch is successful.

[0084] Specifically, the rest area can monitor the number of tests of the switch, such as the number of power-on or power-off times. In the executor queue, the number of executions of the power-on command or power-off command executed on the switch port can be recorded, and the execution number is used to describe the number of attempts to successfully power on or power off the switch port. When the number of tests of the currently placed switch is not greater than the preset number threshold (for example, 5 times, 10 times, etc., which can be adjusted according to the actual business scenario), it can be determined that the currently placed switch meets the requirements and the test is successful.

[0085] In some embodiments, S4 further includes:

[0086] S44, starting from the first switch entering the test group through the rest area, and stopping the timing until the preset time threshold is reached;

[0087] S45. In response to the fact that the placement time of the currently placed switch does not exceed the preset waiting threshold of the same test group, the rest area determines that the test of the currently placed switch is successful.

[0088] Specifically, the time point when the first switch of the current test group enters the rest area can be taken as the starting timing time point of the test group. The preset time threshold for waiting thereafter is the maximum waiting time under the test group. Within this time limit, if the switch of the test group is also placed in the rest area, it is also regarded as a successful test of the placed switch. If the waiting time is exceeded, the switch under the test group that does not enter the rest area is regarded as a test failure.

[0089] In some embodiments, after S44, the method further includes:

[0090] S46, reading the temperature sensor of each inserted switch, and recording the temperature value and waiting time of each inserted switch when it is placed in the rest area;

[0091] S47. Dynamically adjust the preset time threshold under the same test group according to the temperature value and the waiting time.

[0092] Specifically, the ambient temperature of the switch can also be considered as an influencing factor, and the temperature value and waiting time of the switch when it is placed can be recorded. The temperature value can be directly read from the temperature sensor of the switch, and the waiting time can be calculated by the time point when it is placed and the starting time point of the first placement of the test group to which the switch belongs. The corresponding relationship between the comprehensive temperature and the waiting time can be calculated by the temperature value and waiting time of each switch. Then, according to the corresponding relationship, the preset time threshold in the same test group or the same test scenario (power-on test or power-off test) can be dynamically adjusted, and the range of change of the preset time threshold can also be set according to the temperature change.

[0093] In this embodiment, the registration pool can be used to split and group the devices according to the test requirements, and the original instructions executed on a single device can be converted into execution instructions for the corresponding group in the registration pool, thereby reducing the number of instructions sent, and reducing the overall waiting time of the test according to the verifier and the rest pool, thereby significantly improving the production test efficiency; the degree of matching between the test and ambient temperature can be improved to ensure the authenticity and reliability of the test.

[0094] It should be noted that the terms "S1", "S2", etc. are only used for the purpose of describing the steps, and do not specifically refer to the order or sequence, nor are they used to limit the present application. They are only for the convenience of describing the method of the present application, and cannot be understood as indicating the order of the steps. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present application.

[0095] Embodiment 2

[0096] Corresponding to the above embodiment, the present application also provides a multi-switch power supply test device, referring to Figure 3 The device includes a registration module, an execution module, a verification module and a waiting module.

[0097] Among them, the registration module is used to register at least two switches to be tested in the registration pool, receive registration requests of all the switches to be tested through the registration pool, and group the switches to be tested according to the registration requests to obtain test groups and send them to the executor; the execution module is used to parse the registration request through the executor and execute the test instructions on the corresponding switch port according to the parsing situation; the verification module is used to verify the test status in the test group through the verifier, and in response to the test status being a successful test, put the switch corresponding to the successful test into the rest area for waiting; the waiting module is used to monitor whether the switches placed in the rest area meet the requirements through the rest area, and output the test results.

[0098] Furthermore, the registration module is also used to obtain a power-on test group and / or a power-off test group and send it to the executor; the execution module is also used to parse the registration request through the executor and execute the power-on instruction and the power-off instruction on the switch ports corresponding to the power-on test group and the power-off test group respectively according to the parsing results.

[0099] Furthermore, the verification module is also used to verify the test status in the power-on test group and / or the power-off test group through a verifier; and is used to place the corresponding switch that has been successfully powered on in a rest area to wait in response to the test status of the switch port in the power-on test group being a successful power-on; and is also used to place the corresponding switch that has been successfully powered off in a rest area to wait in response to the test status of the switch port in the power-off test group being a successful power-off.

[0100] Furthermore, the execution module is also used to respond to the test status of the switch port in the power-on test group being a power-on failure, by the executor, to re-execute the power-on instruction on the corresponding switch port that failed to power on, until the power-on is successful; and to respond to the test status of the switch port in the power-off test group being a power-off failure, by the executor, to re-execute the power-off instruction on the corresponding switch port that failed to power off, until the power-off is successful.

[0101] Furthermore, the waiting module is also used to monitor the test times of the placed switch through the rest area, wherein the test times include at least one of the power-on times and the power-off times; and in response to detecting that the test times of the currently placed switch is greater than a preset times threshold, the rest area determines that the test of the currently placed switch has failed; and in response to detecting that the test times of the currently placed switch is not greater than a preset times threshold, the rest area determines that the test of the currently placed switch has succeeded.

[0102] Furthermore, the waiting module is also used to start timing from the first switch entering the test group through the rest area until the timing stops when the preset waiting time threshold is reached; and is also used to determine that the test of the currently placed switch is successful in response to the placement time of the currently placed switch not exceeding the preset waiting threshold of the same test group.

[0103] Furthermore, the waiting module is also used to read the temperature sensor of each of the switches placed in, record the temperature value and waiting time of each of the switches placed in the rest area; and dynamically adjust the preset time threshold under the same test group according to the temperature value and the waiting time.

[0104] The specific limitations of the multi-switch power supply test device can refer to the relevant limitations in the above-mentioned multi-switch power supply test method embodiment, so it will not be repeated here. Each module in the above-mentioned multi-switch power supply test device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0105] Embodiment 3

[0106] Corresponding to the above embodiments, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the above-mentioned multi-switch power supply test method can be implemented.

[0107] like Figure 4As shown, in some embodiments, the system can be used as any of the above-mentioned electronic devices for the multi-switch power supply test method in each of the described embodiments. In some embodiments, the system may include one or more computer-readable media (e.g., system memory or NVM / storage device) having instructions and one or more processors (e.g., (one or more) processors) coupled to the one or more computer-readable media and configured to execute instructions to implement modules to perform the actions described in this application.

[0108] For one embodiment, the system control module may include any suitable interface controller to provide any suitable interface to at least one of the processor(s) and / or any suitable device or component in communication with the system control module.

[0109] The system control module may include a memory controller module to provide an interface to the system memory. The memory controller module may be a hardware module, a software module, and / or a firmware module.

[0110] The system memory may be used, for example, to load and store data and / or instructions for the system. For one embodiment, the system memory may include any suitable volatile memory, such as a suitable DRAM. In some embodiments, the system memory may include double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).

[0111] For one embodiment, the system control module may include one or more input / output (I / O) controllers to provide interfaces to the NVM / storage devices and communication interface(s).

[0112] For example, the NVM / storage device may be used to store data and / or instructions. The NVM / storage device may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives).

[0113] The NVM / storage device may include storage resources that are physically part of the device on which the system is installed, or it may be accessible to the device without being part of the device. For example, the NVM / storage device may be accessed over a network via (one or more) communication interfaces.

[0114] The communication interface(s) may provide an interface for the system to communicate over one or more networks and / or with any other suitable device. The system may wirelessly communicate with one or more components of a wireless network in accordance with any of one or more wireless network standards and / or protocols.

[0115] For one embodiment, at least one of the processor(s) may be packaged together with the logic of one or more controllers of a system control module (e.g., a memory controller module). For one embodiment, at least one of the processor(s) may be packaged together with the logic of one or more controllers of a system control module to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) may be integrated on the same die with the logic of one or more controllers of a system control module. For one embodiment, at least one of the processor(s) may be integrated on the same die with the logic of one or more controllers of a system control module to form a system on chip (SoC).

[0116] In various embodiments, the system may be, but is not limited to: a server, a workstation, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, the system may have more or fewer components and / or a different architecture. For example, in some embodiments, the system includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an application specific integrated circuit (ASIC), and a speaker.

[0117] It should be noted that the present application can be implemented in software and / or a combination of software and hardware, for example, can be implemented using an application specific integrated circuit (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software program of the present application can be executed by a processor to implement the steps or functions described above. Similarly, the software program of the present application (including relevant data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and similar devices. In addition, some steps or functions of the present application can be implemented using hardware, for example, as a circuit that cooperates with a processor to perform each step or function.

[0118] In addition, a part of the present application may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present application through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes but is not limited to source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.

[0119] Communication media include media by which communication signals containing, for example, computer readable instructions, data structures, program modules, or other data are transmitted from one system to another. Communication media may include guided transmission media such as cables and wires (e.g., fiber optic, coaxial, etc.) and wireless (unguided transmission) media that can propagate energy waves, such as acoustic, electromagnetic, RF, microwave, and infrared. Computer readable instructions, data structures, program modules, or other data may be embodied as a modulated data signal in, for example, a wireless medium such as a carrier wave or similar mechanism such as embodied as part of spread spectrum technology. The term "modulated data signal" refers to a signal whose one or more characteristics are changed or set in such a manner as to encode information in the signal. Modulation may be analog, digital, or a hybrid modulation technique.

[0120] Here, according to an embodiment of the present application, a device is included, which includes a memory for storing computer program instructions and a processor for executing the program instructions, wherein, when the computer program instructions are executed by the processor, the device is triggered to run the methods and / or technical solutions based on the aforementioned multiple embodiments of the present application.

[0121] Embodiment 4

[0122] Corresponding to the above embodiments, the present application also provides a computer-readable storage medium storing computer-executable instructions, where the computer-executable instructions are used to execute a multi-switch power supply test method.

[0123] In this embodiment, the computer-readable storage medium may include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. For example, computer-readable storage media include, but are not limited to, volatile memory, such as random access memory (RAM, DRAM, SRAM); and non-volatile memory, such as flash memory, various read-only memories (ROM, PROM, EPROM, EEPROM), magnetic and ferromagnetic / ferroelectric memories (MRAM, FeRAM); and magnetic and optical storage devices (hard disks, magnetic tapes, CDs, DVDs); or other media now known or developed in the future that can store computer-readable information / data for use by computer systems.

[0124] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present application.

[0125] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A multi-switch power supply test method, characterized in that: include: Register at least two switches to be tested in a registration pool, receive registration requests of all switches to be tested through the registration pool, group the switches to be tested according to the registration requests, obtain test groups and send them to the executor; Parsing the registration request by the executor and executing the test instruction on the corresponding switch port according to the parsing result; Verify the test status in the test group by a verifier, and in response to the test status being a test success, place the switch corresponding to the test success into a rest area to wait; Monitor whether the switches placed in the rest area meet the requirements and output the test results; The step of monitoring whether the switch placed in the rest area meets the requirements and outputting the test results includes: Monitoring the test times of the switches placed in the rest area through the rest area, wherein the test times include at least one of power-on times and power-off times; In response to detecting that the number of tests of the currently placed switch is greater than a preset number threshold, the rest area determines that the test of the currently placed switch fails; In response to detecting that the number of tests of the currently placed switch is not greater than a preset number threshold, the rest area determines that the test of the currently placed switch is successful; The step of monitoring whether the switch placed in the rest area meets the requirements and outputting the test result also includes: The rest area starts timing from the first switch entering the test group until the timing stops after a preset time threshold is reached; In response to the placement time of the currently placed switch not exceeding the preset waiting threshold of the same test group, the rest area determines that the test of the currently placed switch is successful; After starting the timing from the first switch entering the test group through the rest area until the timing stops at a preset time threshold, the method further includes: Reading the temperature sensor of each of the switches placed in the rest area, and recording the temperature value and waiting time of each of the switches placed in the rest area; The preset time threshold under the same test group is dynamically adjusted according to the temperature value and the waiting time.

2. The multi-switch power supply testing method according to claim 1, characterized in that: The test group includes at least one of a power-on test group and a power-off test group, the test instruction includes at least one of a power-on instruction and a power-off instruction, and obtaining the test group and sending it to the executor includes: Obtain a power-on test group and / or a power-off test group and send it to the actuator; The step of parsing the registration request by the executor and executing a test instruction on the corresponding switch port according to the parsing result includes: The registration request is parsed by the executor, and a power-on instruction and a power-off instruction are respectively executed on the switch ports corresponding to the power-on test group and the power-off test group according to the parsing results.

3. The multi-switch power supply testing method according to claim 2, characterized in that: The step of checking the test status in the test group by a checker, and in response to the test status being a test success, placing the switch corresponding to the test success in a rest area to wait, comprises: Verifying the test status in the power-on test group and / or the power-off test group by a verifier; In response to the test status of the switch port in the power-on test group being a successful power-on, placing the corresponding switch that has been successfully powered on into a rest area to wait; In response to the test status of the switch port in the power-off test group being a successful power-off, the corresponding switch that has been successfully powered off is placed in a rest area to wait.

4. The multi-switch power supply testing method according to claim 3, characterized in that: After verifying the test status in the power-on test group and / or the power-off test group by the verifier, the method further includes: In response to the test status of the switch port in the power-on test group being a power-on failure, re-executing the power-on instruction on the corresponding switch port that failed to power on by the executor until the power-on is successful; In response to the test status of the switch port in the power-off test group being a power-off failure, the executor re-executes the power-off instruction on the corresponding switch port that has failed to power off until the power-off is successful.

5. A multi-switch power supply test device, characterized in that: The device comprises: A registration module, used to register at least two switches to be tested in a registration pool, receive registration requests of all the switches to be tested through the registration pool, group the switches to be tested according to the registration requests, obtain test groups and send them to the executor; An execution module, configured to parse the registration request through the executor and execute a test instruction on the corresponding switch port according to the parsing result; A verification module, used for verifying the test status in the test group through a verifier, and in response to the test status being a test success, placing the switch corresponding to the test success into a rest area to wait; A waiting module, used to monitor whether the switch placed in the rest area meets the requirements and output the test result; The step of monitoring whether the switch placed in the rest area meets the requirements and outputting the test results includes: Monitoring the test times of the switches placed in the rest area through the rest area, wherein the test times include at least one of power-on times and power-off times; In response to detecting that the number of tests of the currently placed switch is greater than a preset number threshold, the rest area determines that the test of the currently placed switch fails; In response to detecting that the number of tests of the currently placed switch is not greater than a preset number threshold, the rest area determines that the test of the currently placed switch is successful; The step of monitoring whether the switch placed in the rest area meets the requirements and outputting the test result also includes: The rest area starts timing from the first switch entering the test group until the timing stops after a preset time threshold is reached; In response to the placement time of the currently placed switch not exceeding the preset waiting threshold of the same test group, the rest area determines that the test of the currently placed switch is successful; The timing starts from the first switch entering the test group through the rest area, and the timing stops after waiting for a preset time threshold. Reading the temperature sensor of each of the switches placed in the rest area, and recording the temperature value and waiting time of each of the switches placed in the rest area; The preset time threshold under the same test group is dynamically adjusted according to the temperature value and the waiting time.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the multi-switch power supply testing method as described in any one of claims 1 to 4 is implemented.

7. A computer-readable storage medium storing computer-executable instructions, characterized in that: The computer executable instructions are used to execute the multi-switch power supply testing method described in any one of claims 1 to 4.