CN112255563A - Uninterruptible power supply testing method, device, system, equipment and storage medium - Google Patents
Uninterruptible power supply testing method, device, system, equipment and storage medium Download PDFInfo
- Publication number
- CN112255563A CN112255563A CN202011125996.0A CN202011125996A CN112255563A CN 112255563 A CN112255563 A CN 112255563A CN 202011125996 A CN202011125996 A CN 202011125996A CN 112255563 A CN112255563 A CN 112255563A
- Authority
- CN
- China
- Prior art keywords
- power supply
- tested
- uninterruptible power
- assembly
- main control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 174
- 238000000034 method Methods 0.000 claims abstract description 45
- 230000003213 activating effect Effects 0.000 claims abstract description 21
- 230000002159 abnormal effect Effects 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 10
- 230000004913 activation Effects 0.000 claims description 5
- 238000001514 detection method Methods 0.000 claims description 5
- 238000010998 test method Methods 0.000 claims description 4
- 238000004891 communication Methods 0.000 description 25
- 238000004458 analytical method Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 6
- 230000005611 electricity Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000000712 assembly Effects 0.000 description 1
- 238000000429 assembly Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000000523 sample Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/40—Testing power supplies
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Stand-By Power Supply Arrangements (AREA)
Abstract
The embodiment of the invention discloses a method, a device, a system, equipment and a storage medium for testing an uninterruptible power supply. The method comprises the following steps: after determining that the uninterruptible power supply to be tested and the main power supply are respectively connected with the target equipment for preset time, controlling the main power supply to be disconnected, and activating the uninterruptible power supply to be tested of the target equipment so as to enable the uninterruptible power supply to be tested to supply power to a main control assembly and/or an external assembly of the target equipment; after the main control assembly and the external assembly are determined to be initialized, detecting a serial port registration state of the main control assembly and a component registration state of the external assembly; and if the serial port registration state of the main control assembly or the assembly registration state of the external assembly is offline, controlling the mobile terminal to photograph the working state of the uninterruptible power supply to be tested to obtain a test picture corresponding to the uninterruptible power supply to be tested. The embodiment of the invention can realize the automatic test of the power supply stability of the uninterruptible power supply, save the human resources and improve the efficiency and the reliability of the test of the uninterruptible power supply.
Description
Technical Field
The embodiments of the present invention relate to power control technologies, and in particular, to a method, an apparatus, a system, a device, and a storage medium for testing an uninterruptible power supply.
Background
An Uninterruptible Power Supply (UPS) can ensure that a computer system continues to work for a period of time after Power failure so that a user can save a disk urgently, and the user is prevented from influencing work or losing data due to Power failure. In order to ensure that the uninterruptible power supply can operate stably, strict test verification needs to be performed on the performance of the uninterruptible power supply.
In the related technology, the test of the uninterruptible power supply basically comprises the steps that a tester manually operates the main control system to disconnect a main power supply, and then manually observes whether the uninterruptible power supply is normal and whether a power supply module of the uninterruptible power supply is normally connected with the main control system to work.
In the uninterruptible power supply testing method in the related art, the whole process needs the tester to manually operate and record the abnormal conditions, and the tester needs to keep higher attention in the whole process to observe the working condition of the module of the uninterruptible power supply supplying power to the uninterruptible power supply, and when the module of the uninterruptible power supply is abnormally restarted, the tester needs to check whether the working state of the module is normally stable or not in real time, which is more complicated. Especially when the uninterrupted power supply needs to be tested for the working stability repeatedly, the testing time of testing personnel is wasted, the testing efficiency and the reliability are low, and the power supply performance and the working stability of the uninterrupted power supply cannot be guaranteed.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a system, equipment and a storage medium for testing an uninterruptible power supply, so as to realize automatic testing of the power supply stability of the uninterruptible power supply, save human resources and improve the efficiency and reliability of testing.
In a first aspect, an embodiment of the present invention provides an uninterruptible power supply testing method, including:
after determining that an uninterruptible power supply to be tested and a main power supply are respectively connected with target equipment for preset time, controlling the main power supply to be disconnected, and activating the uninterruptible power supply to be tested of the target equipment so as to enable the uninterruptible power supply to be tested to supply power to a main control assembly and/or an external assembly of the target equipment;
after the main control assembly and the external assembly are determined to be initialized, detecting a serial port registration state of the main control assembly and a component registration state of the external assembly;
and if the serial port registration state of the main control assembly or the assembly registration state of the external assembly is detected to be offline, controlling the mobile terminal to photograph the working state of the uninterruptible power supply to be tested to obtain a test picture corresponding to the uninterruptible power supply to be tested.
In a second aspect, an embodiment of the present invention further provides an uninterruptible power supply testing apparatus, including:
the power supply activation module is used for controlling the main power supply to be disconnected after the uninterrupted power supply to be tested and the main power supply are respectively connected with the target equipment for preset time, and activating the uninterrupted power supply to be tested of the target equipment so that the uninterrupted power supply to be tested supplies power for a main control assembly and/or an external assembly of the target equipment;
the state detection module is used for detecting the serial port registration state of the main control assembly and the assembly registration state of the external assembly after the main control assembly and the external assembly are determined to be initialized;
and the picture acquisition module is used for controlling the mobile terminal to photograph the working state of the uninterruptible power supply to be tested if the serial port registration state of the main control assembly or the assembly registration state of the external assembly is detected to be offline, so as to obtain a test picture corresponding to the uninterruptible power supply to be tested.
In a third aspect, an embodiment of the present invention further provides an uninterruptible power supply testing system, including:
the system comprises an upper computer, a main power supply of target equipment, an uninterrupted power supply to be tested of the target equipment, a main control assembly of the target equipment, an external assembly of the target equipment and a mobile terminal;
the upper computer is respectively connected with the main power supply, the uninterrupted power supply to be tested, the main control assembly and the mobile terminal, the main power supply is connected with the main control assembly, the uninterrupted power supply to be tested is connected with the main control assembly, and the main control assembly is connected with the external assembly;
the upper computer is used for executing the uninterrupted power supply testing method in the embodiment of the invention;
the main power supply is used for being switched on or off under the control of the upper computer and supplying power to the main control assembly and the external assembly of the target equipment when the main power supply is switched on;
the uninterruptible power supply to be tested is used for being activated when the main power supply is disconnected and supplying power to the main control assembly and the external assembly of the target equipment;
the main control assembly is used for providing a serial port registration state of the main control assembly and an assembly registration state of the external assembly for the upper computer under the control of the upper computer;
the external component is used for executing a specified work task under the control of the main control component;
and the mobile terminal is used for photographing the working state of the uninterruptible power supply to be tested under the control of the upper computer and copying the photographed picture to the upper computer.
In a fourth aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the uninterruptible power supply testing method according to the embodiment of the present invention.
In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the uninterruptible power supply testing method according to the embodiment of the present invention.
According to the technical scheme, after the uninterruptible power supply to be tested and a main power supply are respectively connected with target equipment for preset time, the main power supply is controlled to be disconnected, the uninterruptible power supply to be tested of the target equipment is activated, the uninterruptible power supply to be tested is enabled to supply power to a main control assembly and/or an external assembly of the target equipment, then after initialization of the main control assembly and the external assembly is confirmed, serial port registration state of the main control assembly and assembly registration state of the external assembly are detected, when the serial port registration state of the main control assembly or the assembly registration state of the external assembly is detected to be offline, a mobile terminal is controlled to take pictures of the working state of the uninterruptible power supply to be tested, a test picture corresponding to the uninterruptible power supply to be tested is obtained, and the serial port registration state, the, And the component registration state of the external component can automatically control the mobile terminal to shoot when the serial port registration state of the main control component or the component registration state of the external component is off-line, so that a test picture corresponding to the uninterruptible power supply to be tested is obtained for subsequent positioning analysis by a tester, the power supply stability of the uninterruptible power supply is automatically tested, the human resource is saved, and the efficiency and the reliability of testing the uninterruptible power supply are improved.
Drawings
Fig. 1 is a flowchart of an uninterruptible power supply testing method according to an embodiment of the present invention.
Fig. 2 is a flowchart of a testing method for an uninterruptible power supply according to a second embodiment of the present invention.
Fig. 3 is a flowchart of a testing method for an uninterruptible power supply according to a third embodiment of the present invention.
Fig. 4 is a flowchart of a testing method for an uninterruptible power supply according to a fourth embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an uninterruptible power supply testing apparatus according to a fifth embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an uninterruptible power supply test system according to a sixth embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a computer device according to a seventh embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of an uninterruptible power supply testing method according to an embodiment of the present invention. The embodiment of the invention can be suitable for testing the performance of the uninterrupted power supply. The method can be executed by the uninterruptible power supply testing device provided by the embodiment of the invention, and the device can be realized in a software and/or hardware mode and can be generally integrated in an upper computer of an uninterruptible power supply testing system. The upper computer may be a computer device.
As shown in fig. 1, the method of the embodiment of the present invention specifically includes:
In the embodiment of the invention, the target equipment is equipment which needs uninterrupted power supply for supplying power. The target device may include a main power source, an uninterruptible power supply to be tested, a master control component, and an external component. The host computer is connected with the main power supply, the main control assembly and the mobile terminal.
Optionally, the main power supply is a programmable power supply, and is a power supply capable of automatically controlling the switch.
The main power supply is connected with the main control assembly, is a main power supply for the main control assembly of the target equipment and external assemblies at the periphery of the main control assembly, and can be automatically turned on and turned off by program control. Optionally, the upper computer is connected to the main power supply through a Universal Serial Bus (USB). The main power supply registers a serial port on the upper computer and establishes communication connection with the upper computer through the serial port. And the upper computer controls the opening and closing of the main power supply through corresponding instructions. The main power supply can be switched on or off under the control of the upper computer. The primary power source, when turned on, provides power to the master control component and/or external components of the target device.
Optionally, the uninterruptible power supply to be tested is connected to the main control assembly and the digital oscilloscope, and is configured to be activated when the main power supply is disconnected, and supply power to the main control assembly and/or an external assembly peripheral to the main control assembly, that is, supply power to the main control assembly and/or the external assembly of the target device.
The master control component may be a master controller of the target device. The main control assembly is connected with the external assembly. The main control assembly still needs to keep working when the main power supply is disconnected and needs to be supplied with power by the uninterruptible power supply to be tested. The main control assembly registers the serial port on the upper computer, establishes communication connection with the upper computer through the serial port, and can inquire whether the external assembly connected with the periphery of the main control assembly is normally registered and connected with the external assembly according to the instruction sent by the upper computer, namely, the assembly registration state of the external assembly is inquired. The main control assembly can provide the serial port registration state of the main control assembly and the assembly registration state of the external assembly for the upper computer under the control of the upper computer.
And the external assembly on the periphery of the main control assembly is used for executing the designated work task under the control of the main control assembly. The external components still need to be kept working when the main power supply is disconnected, and the uninterruptible power supply to be tested needs to supply power.
Optionally, the external components may include a wireless communication module and a positioning system module. The wireless communication module is used for ensuring that the target equipment and the external equipment are in wireless communication connection, and still needs to work when a main power supply is disconnected, and needs to be supplied with power by an uninterruptible power supply to be tested. The positioning system module is used for satellite positioning, and still needs to keep working when the main power supply is disconnected, so that the positioning system module is prevented from searching for satellites again and needing to be supplied with power by an uninterruptible power supply to be tested. The uninterrupted power supply to be tested is activated when the main power supply is disconnected, and supplies power to the main control assembly and/or the external assembly of the target equipment, so that the communication and the positioning of the target equipment are not interrupted within a period of time.
Optionally, the controlling the main power supply of the target device to be turned on, and controlling the main power supply to be turned off after the main power supply is turned on for a preset on-time, and activating the uninterruptible power supply to be tested of the target device may include: sending an opening instruction to a main power supply of target equipment, so that the main power supply is connected according to the opening instruction and supplies power to a main control assembly and an external assembly of the target equipment; and after the on-time of the main power supply reaches a preset on-time, sending a closing instruction to the main power supply so that the main power supply is switched on and off according to the closing instruction to activate the uninterrupted power supply to be tested of the target equipment.
The on command is a command for controlling the main power supply to be turned on. The off command is a command for controlling the main power supply to be turned off. The preset on-time can be set according to the service requirement. Illustratively, the preset on-time is 1 second.
In one embodiment, the host computer sends a power-on command to the primary power source of the target device. And the main power supply is switched on according to the opening instruction and supplies power to the main control assembly and the external assembly of the target equipment. And after the time length of the main power supply is connected reaches 1 second, the upper computer sends a closing instruction to the main power supply. And the main power supply is switched on and off according to the closing instruction, and the uninterrupted power supply to be tested of the target equipment is activated. The uninterrupted power supply to be tested supplies power for the main control assembly and the external assembly of the target equipment. Namely, the uninterruptible power supply to be tested supplies power to start the main control assembly and the external assembly of the target equipment.
Optionally, after it is determined that the initialization of the main control assembly and the external assembly is completed, detecting the serial port registration state of the main control assembly and the assembly registration state of the external assembly may include: and after the power supply time of the uninterrupted power supply to be tested for the main control assembly and the external assembly of the target equipment reaches the preset initialization time, sending a state query instruction to the main control assembly, and querying the serial port registration state of the main control assembly and the assembly registration state of the external assembly.
The preset initialization duration is the duration of the main control component and the external component completing initialization. After the time for the uninterruptible power supply to be tested to supply power to the main control assembly and the external assembly of the target equipment reaches the preset initialization time, the main control assembly and the external assembly can be determined to complete initialization. The state query instruction is an instruction for querying the serial port registration state of the main control assembly and the assembly registration state of the external assembly.
The serial port registration state of the main control assembly is the state of the serial port of the main control assembly communicating with the upper computer. The serial port registration state of the main control assembly comprises off-line and on-line. When the registration of the serial port of the main control assembly and the upper computer is on line, the main control assembly can establish communication connection with the upper computer through the serial port, and the registration state of the serial port of the main control assembly is on line at the moment. When the serial port of the main control assembly communicating with the upper computer does not exist, the main control assembly cannot establish communication connection with the upper computer through the serial port, and the serial port registration state of the main control assembly is offline.
The component registration state of the external component is a registration connection state of the external component and the master component. The component registration status of the external component includes offline and online. After the initialization is completed, the external component needs to be registered and connected with the main control component. And if the external component is normally registered and connected with the main control component, the component registration state of the external component is online. And if the external component is not normally registered and connected with the main control component, the component registration state of the external component is offline. The main control assembly inquires whether an external assembly connected with the periphery of the main control assembly is normally registered and connected with the main control assembly according to a state inquiry instruction sent by the upper computer, namely, the assembly registration state of the external assembly is inquired, and the inquired assembly registration state of the external assembly is fed back to the upper computer.
Specifically, after the power supply time of the master control assembly and the external assembly of the target device to be tested reaches the preset initialization time, the upper computer sends a state query instruction to the master control assembly through a serial port of the master control assembly in communication with the upper computer, and queries the serial port registration state of the master control assembly and the assembly registration state of the external assembly.
And if the upper computer cannot detect the serial port of the communication between the main control assembly and the upper computer, namely the serial port of the communication between the main control assembly and the upper computer does not exist, determining that the serial port registration state of the main control assembly is offline.
If the upper computer detects the serial port of the communication between the main control assembly and the upper computer, a state query instruction is sent to the main control assembly through the serial port of the communication between the main control assembly and the upper computer, the assembly registration state of the external assembly fed back after the main control assembly queries is obtained, and the assembly registration state of the fed back external assembly is on-line, the serial port registration state of the main control assembly is determined to be on-line, and the assembly registration state of the external assembly is determined to be on-line.
If the upper computer detects the serial port of the communication between the main control assembly and the upper computer, a state query instruction is sent to the main control assembly through the serial port of the communication between the main control assembly and the upper computer, the assembly registration state of the external assembly fed back after the main control assembly queries is obtained, and the fed back assembly registration state of the external assembly is offline, the serial port registration state of the main control assembly is determined to be online, and the assembly registration state of the external assembly is determined to be offline.
And 103, if the serial port registration state of the main control assembly or the assembly registration state of the external assembly is detected to be offline, controlling the mobile terminal to photograph the working state of the uninterruptible power supply to be tested to obtain a test picture corresponding to the uninterruptible power supply to be tested.
In the embodiment of the invention, the serial port registration state of the main control assembly is off-line, which indicates that the main control assembly needing to be tested and powered by the uninterruptible power supply is abnormal due to the fact that the power supply of the uninterruptible power supply to be tested is stopped or insufficient, namely the uninterruptible power supply to be tested is abnormal. The registration state of the external component is off-line, which indicates that the external component requiring the uninterruptible power supply to be tested is abnormal due to the fact that the uninterruptible power supply to be tested stops or the power supply is insufficient, namely the uninterruptible power supply to be tested is abnormal.
And if the upper computer detects that the serial port registration state of the main control assembly or the assembly registration state of the external assembly is off-line and indicates that the uninterruptible power supply to be tested is abnormal in power supply, the upper computer controls the mobile terminal to photograph the working state of the uninterruptible power supply to be tested to obtain a test picture corresponding to the uninterruptible power supply to be tested.
Optionally, the controlling the mobile terminal to photograph the working state of the to-be-tested uninterruptible power supply to obtain a test picture corresponding to the to-be-tested uninterruptible power supply, including: and the control mobile terminal takes pictures of a work indicator lamp of the uninterruptible power supply to be tested and a screen of a digital oscilloscope connected with the uninterruptible power supply to be tested to obtain a test picture corresponding to the uninterruptible power supply to be tested. When the uninterruptible power supply to be tested is abnormal, a working indicator lamp for indicating the working state of the uninterruptible power supply to be tested and a screen of the digital oscilloscope are photographed, and the photograph is stored.
The mobile terminal is provided with a camera. The camera of the mobile terminal faces a working indicator lamp of the uninterruptible power supply to be tested and a screen of the digital oscilloscope connected with the uninterruptible power supply to be tested. The mobile terminal is used for shooting a working indicator lamp of the uninterruptible power supply to be tested and a screen of the digital oscilloscope connected with the uninterruptible power supply to be tested under the control of the upper computer, and copying the shot picture to the upper computer. Optionally, the upper computer is connected with the mobile terminal through a USB cable. The upper computer controls the mobile intelligent terminal to take pictures through corresponding instructions.
And an oscilloscope probe of the digital oscilloscope is connected with the voltage output end of the uninterruptible power supply to be tested. And displaying the output voltage of the uninterruptible power supply to be tested on a screen of the digital oscilloscope.
Optionally, the mobile terminal is controlled to photograph a work indicator lamp of the uninterruptible power supply to be tested and a screen of a digital oscilloscope connected to the uninterruptible power supply to be tested, so as to obtain a test picture corresponding to the uninterruptible power supply to be tested, and the method may include: sending a photographing instruction to the mobile terminal so that the mobile terminal photographs a working indicator lamp of the uninterruptible power supply to be tested and a screen of a digital oscilloscope connected with the uninterruptible power supply to be tested according to the photographing instruction and copies the photographed picture; and acquiring a photo copied by the mobile terminal, renaming the photo according to the current abnormal state and/or the current timestamp of the uninterruptible power supply to be tested, and determining the renamed photo as a test picture corresponding to the uninterruptible power supply to be tested.
The photographing instruction is an instruction for controlling the mobile terminal to photograph. And the mobile terminal takes pictures of a working indicator lamp of the uninterruptible power supply to be tested and a screen of the digital oscilloscope connected with the uninterruptible power supply to be tested according to the picture taking instruction, and automatically copies the taken pictures to the upper computer. The upper computer obtains a photo copied by the mobile terminal, renames the photo according to the current abnormal state and the current timestamp of the uninterruptible power supply to be tested, and determines the renamed photo as a test picture corresponding to the uninterruptible power supply to be tested so as to be used for subsequent positioning analysis by a tester.
Optionally, if the upper computer detects that the serial port registration state of the master control assembly is offline, the current abnormal state of the uninterruptible power supply to be tested is that the master control registration serial port is offline; and if the upper computer detects that the component registration state of the external component is offline, the current abnormal state of the uninterrupted power supply to be tested is the offline of the external component.
The tester can check the test picture corresponding to the uninterruptible power supply to be tested through the time of the occurrence of the abnormality and judge the correct reason of causing the abnormality. For example, whether the UPS to be tested is directly disconnected from output is judged by turning on and off a working indicator lamp of the UPS to be tested in a test picture, and whether the output voltage waveform and the output voltage of the UPS to be tested are abnormal is checked by testing the oscilloscope waveform and the measurement parameters displayed on a screen of a digital oscilloscope in the test picture.
The embodiment of the invention provides an uninterruptible power supply testing method, which comprises the steps of controlling a main power supply to be disconnected after the uninterruptible power supply to be tested and the main power supply are respectively connected with target equipment for preset time, activating the uninterruptible power supply to be tested of the target equipment to supply power to a main control assembly and/or an external assembly of the target equipment, detecting the serial port registration state of the main control assembly and the assembly registration state of the external assembly after the main control assembly and the external assembly are determined to be initialized, controlling a mobile terminal to take a picture of the working state of the uninterruptible power supply to be tested when the serial port registration state of the main control assembly or the assembly registration state of the external assembly are detected to be offline, obtaining a test picture corresponding to the uninterruptible power supply, and automatically detecting the serial port registration state, the external assembly to be tested, of the main, And the component registration state of the external component can automatically control the mobile terminal to shoot when the serial port registration state of the main control component or the component registration state of the external component is off-line, so that a test picture corresponding to the uninterruptible power supply to be tested is obtained for subsequent positioning analysis by a tester, the power supply stability of the uninterruptible power supply is automatically tested, the human resource is saved, and the efficiency and the reliability of testing the uninterruptible power supply are improved.
Example two
Fig. 2 is a flowchart of a testing method for an uninterruptible power supply according to a second embodiment of the present invention. Embodiments of the invention may be combined with various alternatives in one or more of the embodiments described above.
As shown in fig. 2, the method of the embodiment of the present invention specifically includes:
In the embodiment of the invention, the upper computer sends an opening instruction to the main power supply of the target equipment. And the main power supply is switched on according to the opening instruction and supplies power to the main control assembly and the external assembly of the target equipment. The on command is a command for controlling the main power supply to be turned on.
In the embodiment of the present invention, the off instruction is an instruction for controlling the main power supply to be turned off. The preset on-time can be set according to the service requirement. Illustratively, the preset on-time is 1 second. And after the time length of the main power supply is connected reaches the preset connection time length, the upper computer sends a closing instruction to the main power supply. And the main power supply is switched on and off according to the closing instruction, and the uninterrupted power supply to be tested of the target equipment is activated. The uninterrupted power supply to be tested supplies power for the main control assembly and the external assembly of the target equipment. Namely, the uninterruptible power supply to be tested supplies power to start the main control assembly and the external assembly of the target equipment.
In the embodiment of the present invention, the preset initialization duration is a duration for completing initialization of the main control component and the external component. After the time for the uninterruptible power supply to be tested to supply power to the main control assembly and the external assembly of the target equipment reaches the preset initialization time, the main control assembly and the external assembly can be determined to complete initialization. The state query instruction is an instruction for querying the serial port registration state of the main control assembly and the assembly registration state of the external assembly.
After the power supply time of the master control assembly and the external assembly of the target equipment by the uninterrupted power supply to be tested reaches the preset initialization time, the upper computer sends a state query instruction to the master control assembly through a serial port of the master control assembly communicated with the upper computer, and queries the serial port registration state of the master control assembly and the assembly registration state of the external assembly.
And if the upper computer cannot detect the serial port of the communication between the main control assembly and the upper computer, namely the serial port of the communication between the main control assembly and the upper computer does not exist, determining that the serial port registration state of the main control assembly is offline.
If the upper computer detects the serial port of the communication between the main control assembly and the upper computer, a state query instruction is sent to the main control assembly through the serial port of the communication between the main control assembly and the upper computer, the assembly registration state of the external assembly fed back after the main control assembly queries is obtained, and the assembly registration state of the fed back external assembly is on-line, the serial port registration state of the main control assembly is determined to be on-line, and the assembly registration state of the external assembly is determined to be on-line.
If the upper computer detects the serial port of the communication between the main control assembly and the upper computer, a state query instruction is sent to the main control assembly through the serial port of the communication between the main control assembly and the upper computer, the assembly registration state of the external assembly fed back after the main control assembly queries is obtained, and the fed back assembly registration state of the external assembly is offline, the serial port registration state of the main control assembly is determined to be online, and the assembly registration state of the external assembly is determined to be offline.
And 204, if the serial port registration state of the main control assembly or the assembly registration state of the external assembly is detected to be offline, sending a photographing instruction to the mobile terminal so that the mobile terminal photographs a working indicator lamp of the uninterruptible power supply to be tested and a screen of a digital oscilloscope connected with the uninterruptible power supply to be tested according to the photographing instruction and copies the photographed picture.
In the embodiment of the invention, the photographing instruction is an instruction for controlling the mobile terminal to photograph. And the upper computer sends a photographing instruction to the mobile terminal. And the mobile terminal takes pictures of a working indicator lamp of the uninterruptible power supply to be tested and a screen of the digital oscilloscope connected with the uninterruptible power supply to be tested according to the picture taking instruction, and automatically copies the taken pictures to the upper computer.
And step 205, obtaining a photo copied by the mobile terminal, renaming the photo according to the current abnormal state and/or the current timestamp of the uninterruptible power supply to be tested, and determining the renamed photo as a test picture corresponding to the uninterruptible power supply to be tested.
In the embodiment of the invention, the upper computer acquires the picture copied by the mobile terminal, renames the picture according to the current abnormal state and the current timestamp of the uninterruptible power supply to be tested, and determines the renamed picture as the test picture corresponding to the uninterruptible power supply to be tested so as to be used for subsequent positioning analysis by testers.
The embodiment of the invention provides an uninterruptible power supply testing method, which comprises the steps of controlling the main power supply of target equipment to be switched on and switched off after a preset switching-on duration is switched on by sending an instruction to a main power supply instruction of the target equipment, activating an uninterruptible power supply to be tested of the target equipment, inquiring the serial port registration state of a main control assembly and the assembly registration state of an external assembly by sending a state inquiry instruction to the main control assembly after the main control assembly and the external assembly are determined to be initialized, controlling a mobile terminal to take pictures of a working indicator lamp of the uninterruptible power supply to be tested and a screen of a digital oscilloscope connected with the uninterruptible power supply to be tested when the serial port registration state of the main control assembly or the assembly registration state of the external assembly is detected to be off, obtaining a test picture corresponding to the uninterruptible power supply to be tested, controlling the main power supply of the target equipment to be switched, the uninterrupted power supply to be tested of the target device is activated, and the serial port registration state of the main control assembly and the assembly registration state of the external assembly which need to be powered by the uninterrupted power supply to be tested can be automatically detected by sending a state query instruction.
EXAMPLE III
Fig. 3 is a flowchart of a testing method for an uninterruptible power supply according to a third embodiment of the present invention. Embodiments of the invention may be combined with various alternatives in one or more of the embodiments described above.
As shown in fig. 3, the method of the embodiment of the present invention specifically includes:
In the embodiment of the invention, if the control assembly detects that the serial port registration state of the main control assembly is online and the assembly registration state of the external assembly is online, the fact that the uninterruptible power supply to be tested is normally powered is shown, and the current testing process is finished.
Optionally, after detecting the serial port registration state of the master control component and the component registration state of the external component, the method further includes: judging whether the uninterruptible power supply to be tested has power output; if yes, waiting for stopping output according to a preset waiting time length; if not, the main power supply is switched on to charge the uninterruptible power supply to be tested.
Optionally, the preset waiting time may be set according to a service requirement. The preset waiting time is the time for the uninterruptible power supply to be tested to stop outputting.
In order to ensure that the uninterruptible power supply to be tested can be continuously and circularly automatically tested, whether the uninterruptible power supply to be tested still has electricity output needs to be judged in each testing process, namely whether the uninterruptible power supply to be tested has electricity is judged. Optionally, the operation of determining whether the uninterruptible power supply to be tested has an electrical output may be performed at any time in the testing process, which is not limited herein. And when the uninterruptible power supply to be tested is in a power failure state, the main power supply is switched on to charge the uninterruptible power supply to be tested. And when the uninterruptible power supply to be tested is electrified, continuing to perform the next operation or the next testing process.
Optionally, judging whether the uninterruptible power supply to be tested has an electric output includes: judging whether the uninterrupted power supply to be tested reaches a preset charging frequency or not; if so, determining that the uninterruptible power supply to be tested does not have power output; and if not, determining that the uninterrupted power supply to be tested has power output.
Optionally, the preset charging frequency is a frequency for supplying power and charging the main control assembly and/or the external assembly of the target device after the uninterruptible power supply to be tested is fully charged, and the preset charging frequency is related to the test frequency. When the uninterrupted power supply to be tested reaches the preset charging times, the uninterrupted power supply to be tested does not have power output; and when the uninterrupted power supply to be tested does not reach the preset charging times, the uninterrupted power supply to be tested also outputs electricity. For example, the number of testing times is 100, and the ups to be tested supplies power to the main control component and/or the external component of the target device and charges 20 times, so the preset number of charging times includes 20, 40, 60, and 80, and the ups to be tested needs to be charged when reaching the above-mentioned number of charging times.
And 303, controlling the mobile terminal to photograph the working state of the uninterruptible power supply to be tested to obtain a test picture corresponding to the uninterruptible power supply to be tested.
The testing times are the preset total times that the uninterruptible power supply to be tested needs to be tested in a circulating mode. Each UPS to be tested has a corresponding test frequency. And judging whether the testing times are finished each time after the testing process is executed once, and determining that the testing of the uninterruptible power supply to be tested is finished until the testing times are finished.
Optionally, determining whether the test times are completed includes: recording the number of times of testing minus one; judging whether the test times are less than or equal to 0: if so, determining that the test times are finished; if not, determining that the testing times are not finished. In a specific example, the number of tests is 10, and each time a test process is executed, the number of tests is recorded minus one, and whether the number of tests is less than or equal to 0 is determined. After the 1 st test process is executed, the recorded test times are reduced by one, the test times are updated to be 9, namely the test times are greater than 0, and the test times are determined not to be completed. After the 2 nd test process is executed, the recorded test times are reduced by one, the test times are updated to be 8, namely the test times are greater than 0, and the test times are determined not to be completed. After the 10 th test process is executed, the recorded test times are reduced by one, the test times are updated to be 0, namely the test times are equal to 0, and the test times are determined to be completed.
If the test times are not finished, returning to execute the operation of determining that the uninterruptible power supply to be tested and the main power supply are respectively connected with the target equipment for preset time, controlling the main power supply to be disconnected, activating the uninterruptible power supply to be tested of the target equipment so as to enable the uninterruptible power supply to be tested to supply power for the main control assembly and/or the external assembly of the target equipment, and executing the test process again until the test times are finished.
The one-time test process may include: after determining that an uninterruptible power supply to be tested and a main power supply are respectively connected with target equipment for preset time, controlling the main power supply to be disconnected, and activating the uninterruptible power supply to be tested of the target equipment so as to enable the uninterruptible power supply to be tested to supply power to a main control assembly and/or an external assembly of the target equipment; after the main control assembly and the external assembly are determined to be initialized, detecting a serial port registration state of the main control assembly and a component registration state of the external assembly; and if the serial port registration state of the main control assembly or the assembly registration state of the external assembly is detected to be offline, controlling the mobile terminal to photograph the working state of the uninterruptible power supply to be tested, obtaining a test picture corresponding to the uninterruptible power supply to be tested, and determining that the current test process is finished. .
Alternatively, a test procedure may include: after determining that an uninterruptible power supply to be tested and a main power supply are respectively connected with target equipment for preset time, controlling the main power supply to be disconnected, and activating the uninterruptible power supply to be tested of the target equipment so as to enable the uninterruptible power supply to be tested to supply power to a main control assembly and/or an external assembly of the target equipment; after the main control assembly and the external assembly are determined to be initialized, detecting a serial port registration state of the main control assembly and a component registration state of the external assembly; and when detecting that the serial port registration state of the main control assembly is online and the assembly registration state of the external assembly is online, determining that the current test process is finished.
And 305, determining that the test is finished, and generating a test record report corresponding to the uninterruptible power supply to be tested.
In the embodiment of the invention, the upper computer determines that the test is finished after the test times are finished, and generates the test record report corresponding to the uninterruptible power supply to be tested.
Optionally, generating a test record report corresponding to the to-be-tested uninterruptible power supply may include: counting the test processes, namely counting the abnormal times of power supply of the uninterruptible power supply to be tested and counting the normal times of power supply of the uninterruptible power supply to be tested; and generating a test record report corresponding to the uninterruptible power supply to be tested according to the abnormal power supply times, the normal power supply times and a test picture corresponding to the uninterruptible power supply to be tested, which is obtained when the uninterruptible power supply to be tested is abnormal in power supply. And the tester can determine the power supply performance and the working stability of the uninterruptible power supply to be tested according to the test record report.
The embodiment of the invention provides a test method of an uninterruptible power supply, which is characterized in that whether the test times are finished or not is judged; if the test times are not finished, returning to execute the operation of determining that the uninterruptible power supply to be tested and the main power supply are respectively connected with the target equipment for preset time, controlling the main power supply to be disconnected, and activating the uninterruptible power supply to be tested of the target equipment so that the uninterruptible power supply to be tested supplies power for a main control assembly and/or an external assembly of the target equipment; if the test times are determined to be finished, the test is determined to be finished, and a test record report corresponding to the uninterruptible power supply to be tested is generated, so that the power supply performance and the working stability of the uninterruptible power supply can be automatically tested repeatedly, the working time of testers can be effectively reduced, and the test efficiency of the power supply performance and the working stability of the uninterruptible power supply is improved.
Example four
Fig. 4 is a flowchart of a testing method for an uninterruptible power supply according to a fourth embodiment of the present invention. As shown in fig. 4, the method of the embodiment of the present invention specifically includes:
In the embodiment of the invention, the preset full-charging duration is the duration required by the charging of the uninterruptible power supply.
In the embodiment of the invention, the serial port number and the baud rate of the communication between the main power supply and the upper computer and the serial port number and the baud rate of the communication between the main control assembly and the upper computer are respectively set, and the communication connection between the main power supply and the main control assembly and the upper computer is established.
And step 403, controlling the main power supply of the target equipment to be switched on for a preset switching-on duration and then to be switched off, and activating the uninterruptible power supply to be tested of the target equipment.
And 407, recording the number of times of serial port offline plus one.
And step 408, controlling the mobile terminal to take a picture, acquiring a picture copied by the mobile terminal, and renaming and storing the picture.
And step 409, recording the number of tests minus one.
And step 412, turning on the main power supply to charge the uninterruptible power supply to be tested, waiting for a preset full-filling time, and turning off the main power supply after full filling.
And step 413, waiting for a preset waiting time.
And step 414, determining the end of the test, and outputting a test record report.
In the embodiment of the invention, the test record report can comprise registration state on-line times, registration state off-line times and a test picture which is obtained when the power supply of the uninterruptible power supply to be tested is abnormal and corresponds to the uninterruptible power supply to be tested.
The embodiment of the invention provides an uninterruptible power supply testing method, which is characterized in that a host computer is connected and communicated with a main controller and a main power supply through a serial port of the host computer, then the host computer inquires the serial port registration state of a main control assembly and the assembly registration state of an external assembly through a state inquiry instruction in a period of time after the main power supply is turned off, when the serial port registration state of the main control assembly or the assembly registration state of the external assembly is detected to be offline, the host computer automatically controls a mobile terminal to take a picture and automatically copy the picture to the host computer so as to be used for subsequent positioning analysis of a tester, and test results are automatically counted after the test is finished, so that the power supply performance and the working stability of the uninterruptible power supply can be automatically and repeatedly tested for many times in a circulating manner, the working time of the tester.
EXAMPLE five
Fig. 5 is a schematic structural diagram of an uninterruptible power supply testing apparatus according to a fifth embodiment of the present invention. As shown in fig. 5, the apparatus includes: a power activation module 501, a status detection module 502, and a picture acquisition module 503.
The power activation module 501 is configured to control the main power supply to be turned off and activate the to-be-tested uninterruptible power supply of the target device after determining that the to-be-tested uninterruptible power supply and the main power supply are respectively connected with the target device for a preset time, so that the to-be-tested uninterruptible power supply supplies power to a main control component and/or an external component of the target device; a state detection module 502, configured to detect a serial port registration state of the master control component and a component registration state of the external component after it is determined that the master control component and the external component are initialized; the picture obtaining module 503 is configured to, if it is detected that the serial port registration state of the main control component or the component registration state of the external component is offline, control the mobile terminal to photograph the working state of the to-be-tested uninterruptible power supply, so as to obtain a test picture corresponding to the to-be-tested uninterruptible power supply.
The embodiment of the invention provides an uninterruptible power supply testing device, which is characterized in that after an uninterruptible power supply to be tested and a main power supply are respectively connected with target equipment for preset time, the main power supply is controlled to be disconnected, the uninterruptible power supply to be tested of the target equipment is activated, so that the uninterruptible power supply to be tested supplies power to a main control assembly and/or an external assembly of the target equipment, then after the main control assembly and the external assembly are determined to be initialized, the serial port registration state of the main control assembly and the assembly registration state of the external assembly are detected, when the serial port registration state of the main control assembly or the assembly registration state of the external assembly is detected to be offline, a mobile terminal is controlled to photograph the working state of the uninterruptible power supply to be tested, a test picture corresponding to the uninterruptible power supply is obtained, the serial port registration state, the serial port registration, And the component registration state of the external component can automatically control the mobile terminal to shoot when the serial port registration state of the main control component or the component registration state of the external component is off-line, so that a test picture corresponding to the uninterruptible power supply to be tested is obtained for subsequent positioning analysis by a tester, the power supply stability of the uninterruptible power supply is automatically tested, the human resource is saved, and the efficiency and the reliability of testing the uninterruptible power supply are improved.
On the basis of the foregoing embodiments, the power activation module 501 may include: the power supply opening unit is used for sending an opening instruction to a main power supply of the target equipment so as to enable the main power supply to be connected according to the opening instruction and supply power to a main control assembly and an external assembly of the target equipment; and the power supply closing unit is used for sending a closing instruction to the main power supply after the on time of the main power supply reaches a preset on time, so that the main power supply is turned on and off according to the closing instruction, and the uninterrupted power supply to be tested of the target equipment is activated.
On the basis of the foregoing embodiments, the state detection module 502 may include: and the instruction query unit is used for sending a state query instruction to the main control assembly and querying the serial port registration state of the main control assembly and the assembly registration state of the external assembly after the power supply time of the uninterrupted power supply to be tested for the main control assembly and the external assembly of the target equipment reaches the preset initialization time.
On the basis of the foregoing embodiments, the picture obtaining module 503 may include: and the picture acquisition unit is used for controlling the mobile terminal to take pictures of a working indicator lamp of the uninterruptible power supply to be tested and a screen of the digital oscilloscope connected with the uninterruptible power supply to be tested so as to obtain a test picture corresponding to the uninterruptible power supply to be tested.
On the basis of the foregoing embodiments, the picture acquiring unit may include: the photographing control subunit is used for sending a photographing instruction to the mobile terminal so that the mobile terminal photographs a working indicator lamp of the uninterruptible power supply to be tested and a screen of a digital oscilloscope connected with the uninterruptible power supply to be tested according to the photographing instruction and copies the photographed picture; and the photo renaming subunit is used for acquiring the photo copied by the mobile terminal, renaming the photo according to the current abnormal state and/or the current timestamp of the uninterruptible power supply to be tested, and determining the renamed photo as a test picture corresponding to the uninterruptible power supply to be tested.
On the basis of the above embodiments, the uninterruptible power supply testing device may further include: the output judgment module is used for judging whether the uninterruptible power supply to be tested has power output; the waiting module is used for waiting to stop outputting according to the preset waiting time length if the output is stopped; and the charging module is used for switching on the main power supply to charge the uninterruptible power supply to be tested if the main power supply is not powered on.
On the basis of the foregoing embodiments, the output determining module may include: the frequency judging unit is used for judging whether the uninterrupted power supply to be tested reaches a preset charging frequency or not; the first determining unit is used for determining the no-power output of the uninterrupted power supply to be detected if the uninterrupted power supply to be detected does not have power; and the second determining unit is used for determining that the uninterrupted power supply to be tested has power output if the uninterrupted power supply to be tested does not have power output.
On the basis of the above embodiments, the uninterruptible power supply testing device may further include: the frequency judging module is used for judging whether the testing frequency is finished or not; the operation returning module is used for returning and executing the operation of controlling the main power supply to be disconnected and activating the uninterruptible power supply to be tested of the target equipment after determining that the uninterruptible power supply to be tested and the main power supply are respectively connected with the target equipment for preset time if the test times are not finished, so that the uninterruptible power supply to be tested supplies power to a main control assembly and/or an external assembly of the target equipment; and the report generation module is used for determining that the test is finished and generating a test record report corresponding to the uninterruptible power supply to be tested if the test times are determined to be finished.
The uninterruptible power supply testing device can execute the uninterruptible power supply testing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the uninterruptible power supply testing method.
EXAMPLE six
Fig. 6 is a schematic structural diagram of an uninterruptible power supply test system according to a sixth embodiment of the present invention. As shown in fig. 6, the system specifically includes: the system comprises an upper computer 601, a main power supply 602 of the target device, an uninterruptible power supply to be tested 603 of the target device, a main control component 604 of the target device, an external component 605 of the target device and a mobile terminal 606.
The upper computer 601 is connected with the main power supply 602, the uninterruptible power supply to be tested 603, the main control assembly 604 and the mobile terminal 606, the main power supply 602 is connected with the main control assembly 604, the uninterruptible power supply to be tested 603 is connected with the main control assembly 604, and the main control assembly 604 is connected with the external assembly 605.
The upper computer 601 is configured to control the main power source 602 to be turned off after determining that the uninterruptible power supply to be tested 603 and the main power source 602 are respectively connected with the target device for a preset time, and activate the uninterruptible power supply to be tested 603 of the target device, so that the uninterruptible power supply to be tested 603 supplies power to the main control component 604 and/or the external component 605 of the target device; after determining that the main control component 604 and the external component 605 are initialized, detecting a serial port registration state of the main control component 604 and a component registration state of the external component 605; if the serial port registration state of the main control component 604 or the component registration state of the external component 605 is detected to be offline, the mobile terminal 606 is controlled to photograph the working state of the uninterruptible power supply to be tested 603, and a test picture corresponding to the uninterruptible power supply to be tested 603 is obtained.
The main power supply 602 is configured to be turned on or off under the control of the upper computer 601, and supply power to the main control component 604 and the external component 605 of the target device when the main power supply is turned on.
The uninterruptible power supply to be tested 603 is configured to be activated when the main power supply 602 is disconnected, and supply power to the main control component 604 and the external component 605 of the target device.
The main control component 604 is configured to provide the serial port registration state of the main control component 604 and the component registration state of the external component 605 for the upper computer 601 under the control of the upper computer 601.
The external component 605 is configured to execute a specified work task under the control of the main control component 604.
The mobile terminal 606 is configured to photograph the working state of the uninterruptible power supply 603 to be tested under the control of the upper computer 601, and copy the photographed picture to the upper computer 601.
Specifically, after the upper computer 601 determines that the uninterruptible power supply to be tested 603 and the main power supply 602 are respectively connected with the target device for a preset time, the main power supply 602 is controlled to be disconnected, and the uninterruptible power supply to be tested 603 of the target device is activated. The uninterruptible power supply to be tested 603 supplies power to the main control component 604 and/or the external component 605 of the target device. After determining that the main control component 604 and the external component 605 are initialized, the upper computer 601 detects the serial port registration state of the main control component 604 and the component registration state of the external component 605. If the upper computer 601 detects that the serial port registration state of the main control component 604 or the component registration state of the external component 605 is offline, the mobile terminal 606 is controlled to photograph the working state of the uninterruptible power supply to be tested 603, and a test picture corresponding to the uninterruptible power supply to be tested 603 is obtained.
Optionally, the photographing the working state of the to-be-tested uninterruptible power supply 603 includes: and photographing a working indicator lamp of the uninterruptible power supply to be tested 603 and a screen of a digital oscilloscope connected with the uninterruptible power supply to be tested 603.
The embodiment of the invention provides an uninterruptible power supply testing system, which is characterized in that after an uninterruptible power supply to be tested and a main power supply are respectively connected with target equipment for preset time, the main power supply is controlled to be disconnected, the uninterruptible power supply to be tested of the target equipment is activated, so that the uninterruptible power supply to be tested supplies power to a main control assembly and/or an external assembly of the target equipment, then after the main control assembly and the external assembly are determined to be initialized, the serial port registration state of the main control assembly and the assembly registration state of the external assembly are detected, when the serial port registration state of the main control assembly or the assembly registration state of the external assembly is detected to be offline, a mobile terminal is controlled to photograph the working state of the uninterruptible power supply to be tested, a testing picture corresponding to the uninterruptible power supply is obtained, the serial port registration state, the serial port registration, And the component registration state of the external component can automatically control the mobile terminal to shoot when the serial port registration state of the main control component or the component registration state of the external component is off-line, so that a test picture corresponding to the uninterruptible power supply to be tested is obtained for subsequent positioning analysis by a tester, the power supply stability of the uninterruptible power supply is automatically tested, the human resource is saved, and the efficiency and the reliability of testing the uninterruptible power supply are improved.
EXAMPLE seven
Fig. 7 is a schematic structural diagram of a computer device according to a seventh embodiment of the present invention. FIG. 7 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention.
The computer device 12 shown in fig. 7 is only an example and should not bring any limitations to the functionality or scope of use of the embodiments of the present invention.
As shown in FIG. 7, computer device 12 is embodied in the form of a general purpose computer device. The components of computer device 12 may include, but are not limited to: one or more processors 16, a memory 28, and a bus 18 that connects the various system components (including the memory 28 and the processors 16). The processor 16 includes, but is not limited to, an AI processor.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, and commonly referred to as a "hard drive"). Although not shown in FIG. 7, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The processor 16 of the computer device 12 executes various functional applications and data processing, such as implementing the ups test method provided by the embodiments of the present invention, by running programs stored in the memory 28. The method specifically comprises the following steps: after determining that an uninterruptible power supply to be tested and a main power supply are respectively connected with target equipment for preset time, controlling the main power supply to be disconnected, and activating the uninterruptible power supply to be tested of the target equipment so as to enable the uninterruptible power supply to be tested to supply power to a main control assembly and/or an external assembly of the target equipment; after the main control assembly and the external assembly are determined to be initialized, detecting a serial port registration state of the main control assembly and a component registration state of the external assembly; and if the serial port registration state of the main control assembly or the assembly registration state of the external assembly is detected to be offline, controlling the mobile terminal to photograph the working state of the uninterruptible power supply to be tested to obtain a test picture corresponding to the uninterruptible power supply to be tested.
Example eight
An eighth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the uninterruptible power supply testing method provided in all the embodiments of the invention in this application. The method specifically comprises the following steps: after determining that an uninterruptible power supply to be tested and a main power supply are respectively connected with target equipment for preset time, controlling the main power supply to be disconnected, and activating the uninterruptible power supply to be tested of the target equipment so as to enable the uninterruptible power supply to be tested to supply power to a main control assembly and/or an external assembly of the target equipment; after the main control assembly and the external assembly are determined to be initialized, detecting a serial port registration state of the main control assembly and a component registration state of the external assembly; and if the serial port registration state of the main control assembly or the assembly registration state of the external assembly is detected to be offline, controlling the mobile terminal to photograph the working state of the uninterruptible power supply to be tested to obtain a test picture corresponding to the uninterruptible power supply to be tested.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (12)
1. An uninterruptible power supply testing method is characterized by comprising the following steps:
after determining that an uninterruptible power supply to be tested and a main power supply are respectively connected with target equipment for preset time, controlling the main power supply to be disconnected, and activating the uninterruptible power supply to be tested of the target equipment so as to enable the uninterruptible power supply to be tested to supply power to a main control assembly and/or an external assembly of the target equipment;
after the main control assembly and the external assembly are determined to be initialized, detecting a serial port registration state of the main control assembly and a component registration state of the external assembly;
and if the serial port registration state of the main control assembly or the assembly registration state of the external assembly is detected to be offline, controlling the mobile terminal to photograph the working state of the uninterruptible power supply to be tested to obtain a test picture corresponding to the uninterruptible power supply to be tested.
2. The method of claim 1, wherein after determining that the uninterruptible power supply to be tested and the main power supply are respectively connected with the target device for a preset time, controlling the main power supply to be disconnected and activating the uninterruptible power supply to be tested of the target device comprises:
sending an opening instruction to a main power supply so that the main power supply is connected according to the opening instruction to supply power to a main control assembly and an external assembly of the target equipment;
and after the on-time of the main power supply reaches a preset on-time, sending a closing instruction to the main power supply so that the main power supply is switched on and off according to the closing instruction to activate the uninterrupted power supply to be tested of the target equipment.
3. The method according to claim 1, wherein the detecting the serial port registration status of the main control component and the component registration status of the external component after determining that the main control component and the external component complete initialization comprises:
and after the power supply time of the uninterrupted power supply to be tested for the main control assembly and the external assembly of the target equipment reaches the preset initialization time, sending a state query instruction to the main control assembly, and querying the serial port registration state of the main control assembly and the assembly registration state of the external assembly.
4. The method of claim 1, wherein the controlling the mobile terminal to photograph the operating state of the to-be-tested uninterruptible power supply to obtain a test picture corresponding to the to-be-tested uninterruptible power supply comprises:
and the control mobile terminal takes pictures of a work indicator lamp of the uninterruptible power supply to be tested and a screen of a digital oscilloscope connected with the uninterruptible power supply to be tested to obtain a test picture corresponding to the uninterruptible power supply to be tested.
5. The method of claim 4, wherein the controlling the mobile terminal to take a picture of a working indicator lamp of the uninterruptible power supply to be tested and a screen of a digital oscilloscope connected to the uninterruptible power supply to be tested to obtain a test picture corresponding to the uninterruptible power supply to be tested comprises:
sending a photographing instruction to the mobile terminal so that the mobile terminal photographs a working indicator lamp of the uninterruptible power supply to be tested and a screen of a digital oscilloscope connected with the uninterruptible power supply to be tested according to the photographing instruction and copies the photographed picture;
and acquiring a photo copied by the mobile terminal, renaming the photo according to the current abnormal state and/or the current timestamp of the uninterruptible power supply to be tested, and determining the renamed photo as a test picture corresponding to the uninterruptible power supply to be tested.
6. The method according to claim 1, after detecting the serial port registration status of the master component and the component registration status of the external component, further comprising:
judging whether the uninterruptible power supply to be tested has power output;
if yes, waiting for stopping output according to a preset waiting time length;
if not, the main power supply is switched on to charge the uninterruptible power supply to be tested.
7. The method of claim 6, wherein determining whether the uninterruptible power supply to be tested has an electrical output comprises:
judging whether the uninterrupted power supply to be tested reaches a preset charging frequency or not;
if so, determining that the uninterruptible power supply to be tested does not have power output;
and if not, determining that the uninterrupted power supply to be tested has power output.
8. The method of claim 1, 6 or 7, further comprising:
judging whether the test times are finished or not;
if the test times are not finished, returning to execute control to switch on the main power supply, and after the main power supply is switched on for a preset switching-on time, controlling the main power supply to be switched off and activating the operation of the uninterruptible power supply to be tested;
and if the test times are determined to be finished, determining that the test is finished, and generating a test record report corresponding to the uninterrupted power supply to be tested.
9. An uninterruptible power supply testing device, comprising:
the power supply activation module is used for controlling the main power supply to be disconnected after the uninterrupted power supply to be tested and the main power supply are respectively connected with the target equipment for preset time, and activating the uninterrupted power supply to be tested of the target equipment so that the uninterrupted power supply to be tested supplies power for a main control assembly and/or an external assembly of the target equipment;
the state detection module is used for detecting the serial port registration state of the main control assembly and the assembly registration state of the external assembly after the main control assembly and the external assembly are determined to be initialized;
and the picture acquisition module is used for controlling the mobile terminal to photograph the working state of the uninterruptible power supply to be tested if the serial port registration state of the main control assembly or the assembly registration state of the external assembly is detected to be offline, so as to obtain a test picture corresponding to the uninterruptible power supply to be tested.
10. An uninterruptible power supply test system, comprising:
the system comprises an upper computer, a main power supply of target equipment, an uninterrupted power supply to be tested of the target equipment, a main control assembly of the target equipment, an external assembly of the target equipment and a mobile terminal;
the upper computer is respectively connected with the main power supply, the uninterrupted power supply to be tested, the main control assembly and the mobile terminal, the main power supply is connected with the main control assembly, the uninterrupted power supply to be tested is connected with the main control assembly, and the main control assembly is connected with the external assembly;
the upper computer is used for executing the uninterruptible power supply testing method according to any one of claims 1 to 8;
the main power supply is used for being switched on or off under the control of the upper computer and supplying power to the main control assembly and the external assembly of the target equipment when the main power supply is switched on;
the uninterruptible power supply to be tested is used for being activated when the main power supply is disconnected and supplying power to the main control assembly and the external assembly of the target equipment;
the main control assembly is used for providing a serial port registration state of the main control assembly and an assembly registration state of the external assembly for the upper computer under the control of the upper computer;
the external component is used for executing a specified work task under the control of the main control component;
and the mobile terminal is used for photographing the working state of the uninterruptible power supply to be tested under the control of the upper computer and copying the photographed picture to the upper computer.
11. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the computer program when executed by the processor implements the method of testing an uninterruptible power supply as claimed in any of claims 1 to 8.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method for testing an uninterruptible power supply as claimed in any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011125996.0A CN112255563B (en) | 2020-10-20 | 2020-10-20 | Uninterruptible power supply test method, device, system, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011125996.0A CN112255563B (en) | 2020-10-20 | 2020-10-20 | Uninterruptible power supply test method, device, system, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112255563A true CN112255563A (en) | 2021-01-22 |
CN112255563B CN112255563B (en) | 2024-04-12 |
Family
ID=74245623
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011125996.0A Active CN112255563B (en) | 2020-10-20 | 2020-10-20 | Uninterruptible power supply test method, device, system, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112255563B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113190392A (en) * | 2021-05-14 | 2021-07-30 | 宁畅信息产业(北京)有限公司 | Stability testing method and device for power module, controller and storage medium |
CN116522878A (en) * | 2023-07-04 | 2023-08-01 | 成都领目科技有限公司 | Method, device and medium for maintaining consistency import report of oscilloscope test data |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130138365A1 (en) * | 2011-11-30 | 2013-05-30 | Sahba Etaati | Uninterruptible power supply testing |
CN204759127U (en) * | 2015-06-25 | 2015-11-11 | 国家电网公司 | Long -range on -line monitoring system of multi -functional UPS power |
CN105044514A (en) * | 2015-07-27 | 2015-11-11 | 兖州煤业股份有限公司 | Switch power supply state monitoring system |
JP2017016656A (en) * | 2015-06-29 | 2017-01-19 | 益網科技股▲ふん▼有限公司 | Network facility having intelligent type power arrangement function |
CN210187769U (en) * | 2019-02-22 | 2020-03-27 | 广州勤正电力科技有限公司 | Alternating current-direct current portable power source testing arrangement |
KR102154614B1 (en) * | 2020-02-11 | 2020-09-10 | (주)에너캠프 | Intelligent portable energy storage system with dock type uninterruptible power supply |
-
2020
- 2020-10-20 CN CN202011125996.0A patent/CN112255563B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130138365A1 (en) * | 2011-11-30 | 2013-05-30 | Sahba Etaati | Uninterruptible power supply testing |
CN204759127U (en) * | 2015-06-25 | 2015-11-11 | 国家电网公司 | Long -range on -line monitoring system of multi -functional UPS power |
JP2017016656A (en) * | 2015-06-29 | 2017-01-19 | 益網科技股▲ふん▼有限公司 | Network facility having intelligent type power arrangement function |
CN105044514A (en) * | 2015-07-27 | 2015-11-11 | 兖州煤业股份有限公司 | Switch power supply state monitoring system |
CN210187769U (en) * | 2019-02-22 | 2020-03-27 | 广州勤正电力科技有限公司 | Alternating current-direct current portable power source testing arrangement |
KR102154614B1 (en) * | 2020-02-11 | 2020-09-10 | (주)에너캠프 | Intelligent portable energy storage system with dock type uninterruptible power supply |
Non-Patent Citations (1)
Title |
---|
张雪云等: ""基于微信小程序的电源监测管理系统设计"", 《计算机与现代化》, no. 12, 31 December 2017 (2017-12-31), pages 98 - 102 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113190392A (en) * | 2021-05-14 | 2021-07-30 | 宁畅信息产业(北京)有限公司 | Stability testing method and device for power module, controller and storage medium |
CN113190392B (en) * | 2021-05-14 | 2023-08-01 | 宁畅信息产业(北京)有限公司 | Stability testing method and device for power module, controller and storage medium |
CN116522878A (en) * | 2023-07-04 | 2023-08-01 | 成都领目科技有限公司 | Method, device and medium for maintaining consistency import report of oscilloscope test data |
CN116522878B (en) * | 2023-07-04 | 2023-10-24 | 成都领目科技有限公司 | Method, device and medium for maintaining consistency import report of oscilloscope test data |
Also Published As
Publication number | Publication date |
---|---|
CN112255563B (en) | 2024-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112255563B (en) | Uninterruptible power supply test method, device, system, equipment and storage medium | |
JP3063708B2 (en) | Non-stop power supply system, backup target device used therefor, and recording medium recording program for operating computer as backup target device | |
CN102087625A (en) | Boot test system and test method | |
US20070021848A1 (en) | Testing system and related method for testing an electronic device by determining a power on/off signal | |
US10488468B2 (en) | Quality-control-testing system for portable charging devices and methods of use | |
CN109726135A (en) | Multi-core debugging method and device and computer readable storage medium | |
CN111796978B (en) | Interface detection method, device, system, equipment and storage medium | |
EP2798428B1 (en) | Apparatus and method for managing operation of a mobile device | |
CN113190443A (en) | Test method, test device, computer equipment and storage medium | |
WO2020062235A1 (en) | Test board, test system and test method for charging device | |
EP3719516B1 (en) | Charging device test system and method | |
CN111124455B (en) | Battery management system upgrading method, device, server and storage medium | |
CN105893196A (en) | Server debugging auxiliary tool and system | |
CN111142502A (en) | Processing method, device and equipment for ECU detection and storage medium | |
CN114116034B (en) | Distributed brushing method and device | |
CN114474149B (en) | Automatic test method, device, server and readable storage medium | |
CN109783261A (en) | The collapse processing method and processing device of terminal applies, electronic equipment, storage medium | |
CN114116353A (en) | Equipment testing method, device, equipment and storage medium | |
CN110134559B (en) | BMC fault detection method, system and related components | |
CN113721090B (en) | Input/output circuit inspection method for universal weapon system | |
CN113434347B (en) | Power-off automatic test system and method for mobile terminal | |
US9116191B2 (en) | Voltage-drop testing system, voltage-drop control apparatus, and method thereof | |
CN107272450A (en) | The long-range control method and device of a kind of Laboratory Instruments | |
US11132043B2 (en) | Power failure detecting system and method for dual central processing unit | |
CN113704033A (en) | Hardware testing device and method and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 510000 Block C, 115 Gaopu Road, Tianhe District, Guangzhou City, Guangdong Province Applicant after: XAG Co., Ltd. Address before: 510000 Block C, 115 Gaopu Road, Tianhe District, Guangzhou City, Guangdong Province Applicant before: Guangzhou Xaircraft Technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |