CN112255563B - Uninterruptible power supply test method, device, system, equipment and storage medium - Google Patents

Uninterruptible power supply test method, device, system, equipment and storage medium Download PDF

Info

Publication number
CN112255563B
CN112255563B CN202011125996.0A CN202011125996A CN112255563B CN 112255563 B CN112255563 B CN 112255563B CN 202011125996 A CN202011125996 A CN 202011125996A CN 112255563 B CN112255563 B CN 112255563B
Authority
CN
China
Prior art keywords
power supply
tested
component
main control
uninterruptible power
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.)
Active
Application number
CN202011125996.0A
Other languages
Chinese (zh)
Other versions
CN112255563A (en
Inventor
蔡锦芝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Xaircraft Technology Co Ltd
Original Assignee
Guangzhou Xaircraft Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangzhou Xaircraft Technology Co Ltd filed Critical Guangzhou Xaircraft Technology Co Ltd
Priority to CN202011125996.0A priority Critical patent/CN112255563B/en
Publication of CN112255563A publication Critical patent/CN112255563A/en
Application granted granted Critical
Publication of CN112255563B publication Critical patent/CN112255563B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/40Testing power supplies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (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 a 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 component and/or an external component of the target equipment; after the main control component and the external component are determined to be initialized, detecting the serial port registration state of the main control component and the component registration state of the external component; and if the serial port registration state of the main control component or the component registration state of the external component is offline, controlling the mobile terminal to photograph the working state of the uninterruptible power supply to be tested, and obtaining a test picture corresponding to the uninterruptible power supply to be tested. The embodiment of the invention can realize automatic testing of the power supply stability of the uninterruptible power supply, save human resources and improve the efficiency and reliability of the uninterruptible power supply test.

Description

Uninterruptible power supply test method, device, system, equipment and storage medium
Technical Field
The embodiment of the invention relates to a power supply control technology, in particular to an uninterruptible power supply test method, an uninterruptible power supply test device, an uninterruptible power supply test system, uninterruptible power supply test equipment and a uninterruptible power supply storage medium.
Background
Uninterruptible power supplies (Uninterruptible Power Supply, UPS) can ensure that the computer system continues to operate for a period of time after a power outage to enable a user to save disk in an emergency, avoiding the user from affecting the operation or losing data due to the power outage. In order to ensure that the uninterruptible power supply can stably operate, strict test verification is required to be carried out on the performance of the uninterruptible power supply.
In the related art, the uninterrupted power supply is basically tested by manually operating the main control system to disconnect the main power supply by a tester, and then manually observing whether the uninterrupted power supply is normal or not and whether a power supply module of the uninterrupted 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 to be manually operated by a tester and record abnormal conditions, and the tester is more required to keep higher attention in the whole process to observe the working condition of a module powered by the uninterruptible power supply, and when the condition that the module powered by the uninterruptible power supply is abnormally restarted and the like occurs, the tester is required to check whether the working condition of the module is normal and stable in real time, and the testing process is more complicated. Especially when the uninterrupted power supply is required to be repeatedly tested for working stability for many times, testing time of a tester is wasted, testing efficiency and reliability are low, and power supply performance and 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, which are used for realizing automatic testing of the power supply stability of the uninterruptible power supply, saving human resources and improving the testing efficiency and reliability.
In a first aspect, an embodiment of the present invention provides a method for testing an uninterruptible power supply, including:
after determining that the uninterruptible power supply to be tested and the 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 that the uninterruptible power supply to be tested supplies power for a main control component and/or an external component of the target equipment;
after the main control component and the external component are determined to be initialized, detecting a serial port registration state of the main control component and a component registration state of the external component;
and if the serial port registration state of the main control component or the component registration state of the external component is detected to be offline, controlling the mobile terminal to take a picture of the working state of the uninterruptible power supply to be tested, and obtaining 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 determining that the uninterrupted power supply to be tested and the main power supply are respectively connected with the target equipment for a preset time, and activating the uninterrupted power supply to be tested of the target equipment so as to enable the uninterrupted power supply to be tested to supply power for a main control component and/or an external component of the target equipment;
the state detection module is used for detecting the serial port registration state of the main control component and the component registration state of the external component after the main control component and the external component are determined to be initialized;
and the picture acquisition module is used for controlling the mobile terminal to take a picture of the working state of the uninterruptible power supply to be tested if the serial port registration state of the main control component or the component registration state of the external component 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 test system, including:
the method comprises the steps of an upper computer, a main power supply of target equipment, an uninterruptible power supply to be tested of the target equipment, a main control component of the target equipment, an external component 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 the embodiment of the invention;
the main power supply is used for being connected or disconnected under the control of the upper computer, and supplying power to the main control component and the external component of the target equipment when being connected;
the uninterruptible power supply to be tested is used for being activated when the main power supply is disconnected to supply power for a main control component and an external component of the target equipment;
the main control component is used for providing the serial port registration state of the main control component and the component registration state of the external component for the upper computer under the control of the upper computer;
the external component is used for executing the appointed work task under the control of the main control component;
and the mobile terminal is used for photographing the working state of the uninterrupted power supply to be tested under the control of the upper computer and copying the photographed photo 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 capable of running on the processor, where the processor implements the uninterruptible power supply testing method according to the embodiment of the present invention when executing the computer program.
In a fifth aspect, embodiments of the present invention further provide a computer readable storage medium having a computer program stored thereon, the computer program when executed by a processor implementing the uninterruptible power supply test method according to the embodiments of the present invention.
According to the technical scheme, after the uninterruptible power supply to be tested and the main power supply are respectively connected with the target equipment for a 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 the main control component and/or the external component of the target equipment, after the main control component and the external component are initialized, the serial port registration state of the main control component and the component registration state of the external component are detected, when the serial port registration state of the main control component or the component registration state of the external component is detected to be offline, the mobile terminal is controlled to take a picture of the operating state of the uninterruptible power supply to be tested, so that a test picture corresponding to the uninterruptible power supply to be tested is automatically detected, when the serial port registration state of the main control component or the component registration state of the external component is offline, the mobile terminal is automatically controlled to take a picture, the subsequent positioning analysis of a tester is realized, the automatic testing of the uninterruptible power supply is improved in power supply stability, the power supply efficiency of the uninterruptible power supply to be tested is improved, and the manpower is saved.
Drawings
Fig. 1 is a flowchart of an uninterruptible power supply testing method according to an embodiment of the invention.
Fig. 2 is a flowchart of an uninterruptible power supply testing method according to a second embodiment of the invention.
Fig. 3 is a flowchart of an uninterruptible power supply testing method according to a third embodiment of the present invention.
Fig. 4 is a flowchart of an uninterruptible power supply testing method according to a fourth embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an uninterruptible power supply testing device according to a fifth embodiment of the invention.
Fig. 6 is a schematic structural diagram of an uninterruptible power supply test system according to a sixth embodiment of the invention.
Fig. 7 is a schematic structural diagram of a computer device according to a seventh embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof.
It should be further noted that, for convenience of description, only some, but not all of the matters related to the present invention are shown in the accompanying drawings. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example 1
Fig. 1 is a flowchart of an uninterruptible power supply testing method according to an embodiment of the 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 the uninterruptible power supply testing system. The upper computer may be a computer device.
As shown in fig. 1, the method in the embodiment of the present invention specifically includes:
and 101, 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 for a main control component and/or an external component of the target equipment.
In the embodiment of the invention, the target device is a device which needs uninterrupted power supply. The target device may include a main power supply, an uninterruptible power supply to be tested, a master control component, and an external component. The upper computer is connected with the main power supply, the main control component 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 component, is the main power supply of the main control component of the target equipment and the external component at the periphery of the main control component, and can be automatically turned on and off by program control. Optionally, the upper computer is connected to the main power supply via a universal serial bus (Universal Serial Bus, USB). The main power supply registers a serial port in the upper computer, and establishes communication connection with the upper computer through the serial port. The upper computer controls the on/off of the main power supply through the corresponding instruction. The main power supply can be switched on or off under the control of the upper computer. The primary power source, when turned on, powers the master component and/or the external components of the target device.
Optionally, the uninterruptible power supply to be tested is connected with the main control assembly and the digital oscilloscope, and is used for being activated when the main power supply is disconnected to supply power for the main control assembly and/or external assemblies at the periphery of the main control assembly, namely, the main control assembly and/or the external assemblies of the target equipment.
The master control component may be the master controller of the target device. The main control component is connected with the external component. The main control component still needs to keep working when the main power supply is disconnected, and the uninterrupted power supply to be tested is required to supply power. The main control component registers the serial port with the upper computer, establishes communication connection with the upper computer through the serial port, and can inquire whether the external component connected with the periphery of the main control component is connected with the normal registration of the external component according to the instruction sent by the upper computer, namely inquires the component registration state of the external component. The main control component can provide the serial port registration state of the main control component and the component registration state of the external component for the upper computer under the control of the upper computer.
And the external component at the periphery of the main control component is used for executing the designated work task under the control of the main control component. The external components still need to be kept working when the main power supply is disconnected, and the uninterrupted power supply to be tested is needed to supply power.
Alternatively, 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 keep working when the main power supply is disconnected, and the uninterrupted power supply to be tested is needed. 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 situation that the positioning system module needs to search for satellites again and needs to be powered by the uninterruptible power supply to be tested is avoided. The uninterruptible power supply to be tested is activated when the main power supply is disconnected to supply power for the main control component and/or the external component of the target equipment, so that the communication and positioning of the target equipment are ensured to be uninterrupted within a period of time.
Optionally, the main power supply of the control target device is turned on, and after the main power supply is turned on for a preset on time, the main power supply is controlled to be turned off, and the uninterruptible power supply to be tested of the target device is activated, which may include: sending an opening instruction to a main power supply of target equipment so that the main power supply is switched on according to the opening instruction to supply power for a main control component and an external component of the target equipment; and after the time length of the main power supply is up to the preset on time length, sending an off command to the main power supply so that the main power supply is turned on and off according to the off command, and activating the uninterrupted power supply to be tested of the target equipment.
The open instruction is an instruction 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. The preset on-time is, for example, 1 second.
In one embodiment, the host computer sends an open command to the main power supply of the target device. The main power supply is switched on according to the opening instruction to supply power for the main control component and the external component of the target equipment. After the time length of the main power supply is 1 second, the upper computer sends a closing instruction to the main power supply. 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 uninterruptible power supply to be tested supplies power for the main control component and the external component of the target equipment. The main control component and the external component of the target equipment are started by the power supply of the uninterruptible power supply to be tested.
Step 102, after the main control component and the external component are determined to be initialized, detecting a serial port registration state of the main control component and a component registration state of the external component.
Optionally, after determining that the main control component and the external component complete initialization, detecting a serial port registration state of the main control component and a component registration state of the external component may include: after the time length of supplying power to the main control component and the external component of the target device by the uninterruptible power supply to be tested reaches the preset initialization time length, a state inquiry command is sent to the main control component to inquire the serial port registration state of the main control component and the component registration state of the external component.
The preset initialization time is the time for the main control component and the external component to finish initialization. And after the duration of the uninterruptible power supply to be tested for supplying power to the main control component and the external component of the target equipment reaches the preset initialization duration, the main control component and the external component can be determined to finish initialization. The state query instruction is an instruction for querying a serial port registration state of the master component and a component registration state of the external component.
The serial port registration state of the main control component is the state of the serial port of the main control component communicated with the upper computer. The serial registration state of the master control component includes offline and online. When the registration of the serial port of the main control component and the upper computer is online, the main control component can establish communication connection with the upper computer through the serial port, and the serial port registration state of the main control component is online. When the serial port for the communication between the main control component and the upper computer does not exist, the main control component cannot establish communication connection with the upper computer through the serial port, and the serial port registration state of the main control component is off-line.
The component registration state of the external component is a registration connection state of the external component and the master component. Component registration status of external components includes offline and online. After the external component completes initialization, the external component needs to register and connect with the main control component. If the external component is connected with the main control component in a normal registration way, the component registration state of the external component is online. If the external component is not connected with the main control component in normal registration, the component registration state of the external component is offline. The main control component inquires whether the external component connected with the periphery of the main control component is connected with the main control component in a normal registration mode according to a state inquiry command sent by the upper computer, namely inquires the component registration state of the external component, and feeds back the inquired component registration state of the external component to the upper computer.
Specifically, after the duration of supplying power to the main control component and the external component of the target device by the uninterruptible power supply to be tested reaches the preset initialization duration, the upper computer sends a state query instruction to the main control component through a serial port of the main control component in communication with the upper computer, and queries the serial port registration state of the main control component and the component registration state of the external component.
If the upper computer cannot detect the serial port of the main control component, namely the serial port of the main control component, which is communicated with the upper computer, does not exist, the serial port registration state of the main control component is determined to be offline.
If the upper computer detects the serial port of the main control component and the upper computer, a state query instruction is sent to the main control component through the serial port of the main control component and the upper computer, the component registration state of the external component fed back by the main control component after query is obtained, and the component registration state of the fed back external component is online, the serial port registration state of the main control component is determined to be online, and the component registration state of the external component is determined to be online.
If the upper computer detects the serial port of the main control component and the upper computer, a state query instruction is sent to the main control component through the serial port of the main control component and the upper computer, the component registration state of the external component fed back by the main control component after query is obtained, and the component registration state of the fed back external component is offline, the serial port registration state of the main control component is determined to be online, and the component registration state of the external component is determined to be offline.
And step 103, if the serial port registration state of the main control component or the component registration state of the external component is detected to be offline, controlling the mobile terminal to take a picture of the working state of the uninterruptible power supply to be tested, and obtaining 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 component is offline, which indicates that the main control component requiring the uninterrupted power supply to be tested is abnormal due to the power supply stop or the insufficient power supply of the uninterrupted power supply to be tested, namely the uninterrupted power supply to be tested is abnormal. The component registration state of the external component is offline, which indicates that the external component requiring the uninterrupted power supply to be tested is abnormal due to the stop or insufficient power supply of the uninterrupted power supply to be tested, namely the uninterrupted power supply to be tested is abnormal.
If the upper computer detects that the serial port registration state of the main control component or the component registration state of the external component is offline, which indicates that the uninterrupted power supply to be tested is abnormal, the mobile terminal is controlled to take a picture of the working state of the uninterrupted power supply to be tested, and a test picture corresponding to the uninterrupted power supply to be tested is obtained.
Optionally, the controlling the mobile terminal photographs 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, including: and the control mobile terminal photographs the screen of the work indicator lamp of the uninterrupted power supply to be tested and the screen of the digital oscilloscope connected with the uninterrupted power supply to be tested, so as to obtain a test picture corresponding to the uninterrupted power supply to be tested. When the uninterrupted power supply to be tested is abnormal, photographing a work indicator lamp indicating the working state of the uninterrupted power supply to be tested and a screen of a digital oscilloscope, and storing the photographs.
The mobile terminal is provided with a camera. The camera of the mobile terminal faces to a work indicator lamp of the uninterrupted power supply to be tested and a screen of a digital oscilloscope connected with the uninterrupted power supply to be tested. The mobile terminal is used for photographing a working indicator lamp of the uninterrupted power supply to be tested and a screen of a digital oscilloscope connected with the uninterrupted power supply to be tested under the control of the upper computer, and copying the photographed photo to the upper computer. Optionally, the upper computer is connected with the mobile terminal through a USB line. The upper computer controls the mobile intelligent terminal to take a picture through the corresponding instruction.
The oscilloscope probe of the digital oscilloscope is connected with the voltage output end of the uninterrupted power supply to be tested. The screen of the digital oscilloscope displays the output voltage of the uninterruptible power supply to be tested.
Optionally, controlling the mobile terminal to photograph the work indicator light of the uninterruptible power supply to be tested and the screen of the 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 may include: transmitting a photographing instruction to the mobile terminal, so that the mobile terminal photographs a work indicator lamp of the uninterrupted power supply to be tested and a screen of a digital oscilloscope connected with the uninterrupted power supply to be tested according to the photographing instruction, and copying the photographed photo; and 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.
The photographing instruction is an instruction for controlling the mobile terminal to photograph. And the mobile terminal photographs the work indicator lamp of the uninterrupted power supply to be tested and the screen of the digital oscilloscope connected with the uninterrupted power supply to be tested according to the photographing instruction, and automatically copies the photographed photograph to the upper computer. And the upper computer acquires the photo copied by the mobile terminal, renames the photo according to the current abnormal state and the current time stamp of the uninterrupted power supply to be tested, and determines the renamed photo as a test picture corresponding to the uninterrupted power supply to be tested for subsequent positioning analysis of a tester.
Optionally, if the upper computer detects that the serial port registration state of the main control component is offline, the current abnormal state of the uninterruptible power supply to be tested is that the main control registration serial port is offline; 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 offline of the external component.
The tester can check the test picture corresponding to the uninterrupted power supply to be tested through the occurrence time of the abnormality, and judge the correct cause of the abnormality. The method includes the steps of judging whether the UPS to be tested is directly disconnected from output by turning on and off a work indicator lamp of the UPS to be tested in a test picture, and checking whether the waveform and the output voltage of the UPS to be tested are abnormal or not by means of oscillographic waveforms and measurement parameters displayed on a screen of a digital oscillograph in the test picture.
The embodiment of the invention provides an uninterruptible power supply testing method, which comprises the steps of controlling the main power supply to be disconnected after determining that the uninterruptible power supply to be tested and the main power supply are respectively connected with target equipment for a preset time, activating the uninterruptible power supply to be tested of the target equipment, so that the uninterruptible power supply to be tested supplies power to a main control component and/or an external component of the target equipment, detecting a serial port registration state of the main control component and a component registration state of the external component after determining that the main control component and the external component are 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 component or the component registration state of the external component is detected to be offline, obtaining a test picture corresponding to the uninterruptible power supply to be tested, automatically detecting the serial port registration state of the main control component or the component registration state of the external component to be offline, realizing automatic positioning analysis of a tester, saving the manpower stability and the uninterrupted power supply, and improving the reliability and reliability of the uninterruptible power supply.
Example two
Fig. 2 is a flowchart of an uninterruptible power supply testing method according to a second embodiment of the invention. Embodiments of the invention may be combined with various alternatives to one or more of the embodiments described above.
As shown in fig. 2, the method in the embodiment of the present invention specifically includes:
step 201, sending an opening instruction to a main power supply of a target device, so that the main power supply is turned on according to the opening instruction to supply power to a main control component and an external component of the target device.
In the embodiment of the invention, the upper computer sends an opening instruction to the main power supply of the target equipment. The main power supply is switched on according to the opening instruction to supply power for the main control component and the external component of the target equipment. The open instruction is an instruction for controlling the main power supply to be turned on.
Step 202, after the time of turning on the main power supply reaches a preset turning on time, sending a turning-off instruction to the main power supply, so that the main power supply is turned on and off according to the turning-off instruction, and activating the uninterruptible power supply to be tested of the target equipment.
In the embodiment of the invention, the shutdown instruction is an instruction for controlling the main power supply to be disconnected. The preset on-time can be set according to the service requirement. The preset on-time is, for example, 1 second. And after the time length of the main power supply is up to the preset on time length, the upper computer sends a closing instruction to the main power supply. 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 uninterruptible power supply to be tested supplies power for the main control component and the external component of the target equipment. The main control component and the external component of the target equipment are started by the power supply of the uninterruptible power supply to be tested.
Step 203, after the duration of supplying power to the main control component and the external component of the target device by the ups to be tested reaches a preset initialization duration, a status query instruction is sent to the main control component to query the serial port registration status of the main control component and the component registration status of the external component.
In the embodiment of the invention, the preset initialization time is the time for the main control component and the external component to finish initialization. And after the duration of the uninterruptible power supply to be tested for supplying power to the main control component and the external component of the target equipment reaches the preset initialization duration, the main control component and the external component can be determined to finish initialization. The state query instruction is an instruction for querying a serial port registration state of the master component and a component registration state of the external component.
And after the duration of supplying power to the main control component and the external component of the target device by the uninterrupted power supply to be tested reaches the preset initialization duration, the upper computer sends a state inquiry command to the main control component through a serial port of the main control component and the upper computer, and inquires the serial port registration state of the main control component and the component registration state of the external component.
If the upper computer cannot detect the serial port of the main control component, namely the serial port of the main control component, which is communicated with the upper computer, does not exist, the serial port registration state of the main control component is determined to be offline.
If the upper computer detects the serial port of the main control component and the upper computer, a state query instruction is sent to the main control component through the serial port of the main control component and the upper computer, the component registration state of the external component fed back by the main control component after query is obtained, and the component registration state of the fed back external component is online, the serial port registration state of the main control component is determined to be online, and the component registration state of the external component is determined to be online.
If the upper computer detects the serial port of the main control component and the upper computer, a state query instruction is sent to the main control component through the serial port of the main control component and the upper computer, the component registration state of the external component fed back by the main control component after query is obtained, and the component registration state of the fed back external component is offline, the serial port registration state of the main control component is determined to be online, and the component registration state of the external component is determined to be offline.
Step 204, if the serial port registration state of the main control component or the component registration state of the external component is detected to be offline, a photographing instruction is sent to the mobile terminal, so that the mobile terminal photographs the working indicator lamp of the uninterruptible power supply to be tested and the screen of the digital oscilloscope connected with the uninterruptible power supply to be tested according to the photographing instruction, and copies the photographed photograph.
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 photographs the work indicator lamp of the uninterrupted power supply to be tested and the screen of the digital oscilloscope connected with the uninterrupted power supply to be tested according to the photographing instruction, and automatically copies the photographed photograph to the upper computer.
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 photo copied by the mobile terminal, renames the photo according to the current abnormal state and the current timestamp of the uninterrupted power supply to be tested, and determines the renamed photo as the test picture corresponding to the uninterrupted power supply to be tested for subsequent positioning analysis of the tester.
The embodiment of the invention provides an uninterruptible power supply testing method, which comprises the steps of controlling a main power supply of target equipment to be turned on and turned off after a preset on time is turned on by sending a main power supply instruction to the target equipment, activating the uninterruptible power supply to be tested of the target equipment, then after the main control component and an external component are determined to be initialized, inquiring a serial port registration state of the main control component and a component registration state of the external component by sending a state inquiry instruction to the main control component, and controlling a mobile terminal to photograph 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 component or the component registration state of the external component is detected to be offline, so as to obtain a test picture corresponding to the uninterruptible power supply to be tested, controlling the main power supply of the target equipment to be turned off after the preset on time is turned on by sending the instruction, and activating the uninterruptible power supply to be tested of the target equipment, and automatically detecting the serial port registration state of the main control component and the component registration state of the external component which need to be tested by sending a state inquiry instruction.
Example III
Fig. 3 is a flowchart of an uninterruptible power supply testing method according to a third embodiment of the present invention. Embodiments of the invention may be combined with various alternatives to one or more of the embodiments described above.
As shown in fig. 3, the method in the embodiment of the present invention specifically includes:
step 301, 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 so that the uninterruptible power supply to be tested supplies power for a main control component and/or an external component of the target device.
Step 302, after determining that the main control component and the external component complete initialization, detecting a serial port registration state of the main control component and a component registration state of the external component: if it is detected that the serial port registration status of the master component or the component registration status of the external component is offline, step 303 is executed; if it is detected that the serial port registration status of the master component is online and the component registration status of the external component is online, step 304 is performed.
In the embodiment of the invention, if the control component detects that the serial port registration state of the main control component is on-line and the component registration state of the external component is on-line, the power supply of the uninterruptible power supply to be tested is normal, and the current testing process is completed.
Optionally, after detecting the serial port registration state of the master component and the component registration state of the external component, the method further includes: judging whether the uninterrupted power supply to be tested has electric output or not; if yes, waiting for stopping outputting according to the preset waiting time; if not, the main power supply is connected to charge the uninterruptible power supply to be tested.
Optionally, the preset waiting duration may be set according to service requirements. The preset waiting time is the time for stopping outputting the uninterrupted power supply to be tested.
In order to ensure that the uninterruptible power supply to be tested can continuously and circularly automatically perform the test, whether the uninterruptible power supply to be tested has electric output or not needs to be judged in each test process, namely whether the uninterruptible power supply to be tested has electric or not is judged. Alternatively, the operation of determining whether the uninterruptible power supply to be tested has an electrical output may be performed at any time during the testing process, which is not limited herein. And when the uninterruptible power supply to be tested is powered off, the main power supply is connected to charge the uninterruptible power supply to be tested. And when the uninterruptible power supply to be tested is powered on, continuing the next operation or the next testing process.
Optionally, determining whether the uninterruptible power supply to be tested has an electrical output includes: judging whether the uninterruptible power supply to be tested reaches the preset charging times or not; if yes, determining the electroless output of the uninterruptible power supply to be tested; if not, determining that the uninterruptible power supply to be tested has electric output.
Optionally, the preset charging frequency is the frequency of supplying power to and charging the main control component and/or the external component 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 uninterruptible power supply to be tested reaches the preset charging times, the uninterruptible power supply to be tested outputs no power; and when the uninterruptible power supply to be tested does not reach the preset charging times, the uninterruptible power supply to be tested also has electric output. For example, the number of times of testing is 100, and the uninterruptible power supply to be tested is powered and charged for 20 times for the main control component and/or the external component of the target device, so that the preset charging times comprise 20, 40, 60 and 80, and the uninterruptible power supply to be tested needs to be charged when reaching the charging times.
And 303, controlling the mobile terminal to take a picture of the working state of the uninterruptible power supply to be tested, and obtaining a test picture corresponding to the uninterruptible power supply to be tested.
Step 304, judging whether the test times are finished: if not, returning to execute step 301; if yes, go to step 305.
The test times are preset total times of the uninterrupted power supply to be tested, which need to be tested in a circulating mode. Each uninterruptible power supply to be tested has a corresponding test frequency. And judging whether the test times are finished or not after each time of executing the test process once, and determining that the uninterrupted power supply to be tested is finished until the test times are finished.
Optionally, determining whether the test number is complete includes: recording the test times minus one; judging whether the test times are smaller than or equal to 0: if yes, determining that the test times are completed; if not, determining that the test times are not completed. In one embodiment, the number of tests is 10, and each time a test process is performed, the number of tests is recorded and subtracted by 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 test times are recorded and subtracted by one, the test times are updated to 9, namely, the test times are more than 0, and the test times are determined to be not completed. After the 2 nd test process is executed, the test times are recorded and subtracted by one, the test times are updated to 8, namely, the test times are more than 0, and the test times are determined to be not completed. After the 10 th test process is executed, the test times are recorded and subtracted by one, the test times are updated to 0, namely, the test times are equal to 0, and the test times are determined to be completed.
If the test times are not completed, 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 a 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 to the main control component and/or the external component of the target equipment, and executing the test process again until the test times are completed.
The one-time test procedure may include: after determining that the uninterruptible power supply to be tested and the 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 that the uninterruptible power supply to be tested supplies power for a main control component and/or an external component of the target equipment; after the main control component and the external component are determined to be initialized, detecting a serial port registration state of the main control component and a component registration state of the external component; if the serial port registration state of the main control component or the component registration state of the external component is detected to be offline, the mobile terminal is controlled to take a picture 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 current test process is determined to be completed. .
Alternatively, a test procedure may include: after determining that the uninterruptible power supply to be tested and the 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 that the uninterruptible power supply to be tested supplies power for a main control component and/or an external component of the target equipment; after the main control component and the external component are determined to be initialized, detecting a serial port registration state of the main control component and a component registration state of the external component; and when the serial port registration state of the main control component is detected to be on-line and the component registration state of the external component is detected to be on-line, determining that the current testing 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, after the test times are completed, the upper computer determines that the test is finished, and generates a test record report corresponding to the uninterruptible power supply to be tested.
Optionally, generating a test record report corresponding to the uninterruptible power supply to be tested may include: counting the test processes, counting abnormal power supply times of the uninterruptible power supply to be tested and counting normal power supply times 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 the test pictures corresponding to the uninterruptible power supply to be tested, which are obtained when the uninterruptible power supply to be tested is abnormal in power supply. And a tester can determine the power supply performance and the working stability of the uninterrupted power supply to be tested according to the test record report.
The embodiment of the invention provides an uninterruptible power supply testing method which is implemented by judging whether the testing times are finished or not; if the test times are not completed, 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 a 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 component and/or an external component of the target equipment; if the test times are determined to be completed, the test is determined to be completed, a test record report corresponding to the uninterruptible power supply to be tested is generated, the power supply performance and the working stability of the uninterruptible power supply can be automatically tested circularly and repeatedly for many times, the working time of a tester can be effectively reduced, and the testing efficiency of the power supply performance and the working stability of the uninterruptible power supply is improved.
Example IV
Fig. 4 is a flowchart of an uninterruptible power supply testing method according to a fourth embodiment of the present invention. As shown in fig. 4, the method in the embodiment of the present invention specifically includes:
step 401, setting test times, preset initialization time, preset waiting time and preset full time.
In the embodiment of the invention, the preset full time is the time required by the charging full of the uninterruptible power supply.
Step 402, setting serial numbers and baud rates of the main power supply, the main control component and the upper computer.
In the embodiment of the invention, the serial number and the baud rate of the communication between the main power supply and the upper computer are respectively set, and the communication connection between the main power supply and the main control component and the upper computer is established.
Step 403, the main power supply of the control target device is turned on for a preset on time period and then turned off, and the uninterruptible power supply to be tested of the target device is activated.
Step 404, after waiting for the preset initialization duration, sending a state query command to query the serial port registration state of the main control component and the component registration state of the external component: if the serial port registration status of the master component is online and the component registration status of the external component is online, then step 405 is performed; if the component registration status of the external component is offline, then step 406 is performed; if the serial registration status of the master component is offline, step 407 is performed.
Step 405, record the registration state online times plus one.
Step 406, record the offline number of registration states plus one.
Step 407, adding one to the offline times of the record serial port.
And 408, controlling the mobile terminal to take a picture, acquiring a picture copied by the mobile terminal, and renaming and storing the picture.
Step 409, the number of recorded tests is reduced by one.
Step 410, judging whether the test times is less than or equal to 0: if yes, go to step 414; if not, go to step 411.
Step 411, judging whether the charging frequency of the uninterruptible power supply to be tested reaches a preset charging frequency: if yes, go to step 412; if not, step 413 is performed.
And step 412, turning on the main power supply to charge the uninterruptible power supply to be tested, waiting for a preset full time period, and turning off the main power supply after full.
Step 413, waiting for a preset waiting duration.
And step 414, determining that the test is finished, and outputting a test record report.
In the embodiment of the invention, the test record report can comprise the online times of the registration state, the offline times of the registration state and the test pictures corresponding to the uninterruptible power supply to be tested, which are obtained when the uninterruptible power supply to be tested is abnormal in power supply.
The embodiment of the invention provides an uninterruptible power supply testing method, which is characterized in that an upper computer is connected and communicated with a main controller and a main power supply through a serial port of the upper computer, then the upper computer inquires the serial port registration state of a main control component and the component registration state of an external component through a state inquiry command after the main power supply is turned off for a period of time, when the serial port registration state of the main control component or the component registration state of the external component is detected to be offline, the upper computer automatically controls a mobile terminal to photograph and automatically copy the mobile terminal to the upper computer for subsequent positioning analysis of a tester, and after the test is finished, the test result is automatically counted, so that the power supply performance and the working stability of the uninterruptible power supply can be automatically and circularly tested for a plurality of times, the working time of the tester can be effectively reduced, and the power supply performance and the working stability of the uninterruptible power supply can be improved.
Example five
Fig. 5 is a schematic structural diagram of an uninterruptible power supply testing device according to a fifth embodiment of the 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 determine that, after a to-be-tested uninterruptible power supply and a main power supply are respectively turned on for a preset time with a target device, control the main power supply to be turned off, and activate the to-be-tested uninterruptible power supply of the target device, 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; the state detection module 502 is configured to detect a serial port registration state of the master control component and a component registration state of the external component after determining that the master control component and the external component are initialized; and the picture obtaining module 503 is configured to control the mobile terminal to take a picture of the working state of the uninterruptible power supply to be tested if the serial port registration state of the main control component or the component registration state of the external component is detected to be offline, so as to obtain a test picture corresponding to the uninterruptible power supply to be tested.
The embodiment of the invention provides an uninterruptible power supply testing device, which is characterized in that after determining that an uninterruptible power supply to be tested and a main power supply are respectively connected with target equipment for a 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 component and/or an external component of the target equipment, after determining that the main control component and the external component are initialized, the serial port registration state of the main control component and the component registration state of the external component are detected, when the serial port registration state of the main control component or the component registration state of the external component is detected to be offline, the mobile terminal is controlled to take a picture of the uninterruptible power supply to be tested, so that a test picture corresponding to the uninterruptible power supply to be tested is obtained, and the automatic positioning analysis of a tester is realized, the uninterrupted power supply testing efficiency is improved, and the uninterruptible power supply testing reliability is improved.
Based on the above 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 that the main power supply is switched on according to the opening instruction to supply power for a main control component and an external component of the target equipment; and the power supply closing unit is used for sending a closing instruction to the main power supply after the time length of the main power supply is up to the preset on time length, 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.
Based on the above embodiments, the state detection module 502 may include: and the instruction inquiry unit is used for sending a state inquiry instruction to the main control component after the duration of supplying power to the main control component and the external component of the target device by the uninterrupted power supply to be tested reaches the preset initialization duration, and inquiring the serial port registration state of the main control component and the component registration state of the external component.
On the basis of the above embodiments, the picture obtaining module 503 may include: and the picture acquisition unit is used for controlling the mobile terminal to photograph the working indicator lamp of the uninterrupted power supply to be tested and the screen of the digital oscilloscope connected with the uninterrupted power supply to be tested, so as to obtain a test picture corresponding to the uninterrupted power supply to be tested.
On the basis of the above embodiments, the picture acquisition unit may include: the photographing control subunit is used for sending a photographing instruction to the mobile terminal so that the mobile terminal photographs the work indicator lamp of the uninterrupted power supply to be tested and the screen of the digital oscilloscope connected with the uninterrupted power supply to be tested according to the photographing instruction, and copies the photographed photograph; and the photo renaming subunit is used for obtaining 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 judging module is used for judging whether the uninterrupted power supply to be tested has electric output or not; the waiting module is used for waiting to stop outputting according to the preset waiting time if yes; and the charging module is used for switching on the main power supply to charge the uninterruptible power supply to be tested if not.
On the basis of the above embodiments, the output judging module may include: the frequency judging unit is used for judging whether the uninterruptible power supply to be tested reaches the preset charging frequency or not; the first determining unit is used for determining the electroless output of the uninterruptible power supply to be tested if yes; and the second determining unit is used for determining that the uninterruptible power supply to be tested has electric output if not.
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 test frequency is finished or not; the operation return module is used for returning to execute the operation of controlling the main power supply to be disconnected after determining that the uninterrupted power supply to be tested and the main power supply are respectively connected with the target equipment for a preset time and activating the uninterrupted power supply to be tested of the target equipment so as to enable the uninterrupted power supply to be tested to supply power for a main control component and/or an external component of the target equipment if the test times are not determined to be completed; 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 invention. As shown in fig. 6, the system specifically includes: the host computer 601, the main power 602 of the target device, the uninterruptible power 603 to be tested of the target device, the main control component 604 of the target device, the external component 605 of the target device and the mobile terminal 606.
The host computer 601 is respectively connected to the main power source 602, the uninterruptible power source 603 to be tested, the main control component 604 and the mobile terminal 606, the main power source 602 is connected to the main control component 604, the uninterruptible power source 603 to be tested is connected to the main control component 604, and the main control component 604 is connected to the external component 605.
The upper computer 601 is configured to determine that after the uninterruptible power supply 603 to be tested and the main power supply 602 are respectively connected with a target device for a preset time, control the main power supply 602 to be disconnected, activate the uninterruptible power supply 603 to be tested of the target device, so that the uninterruptible power supply 603 to be tested supplies power to a main control component 604 and/or an external component 605 of the target device; after determining that the main control component 604 and the external component 605 complete initialization, 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 take a picture of the working state of the uninterruptible power supply 603 to be tested, so as to obtain a test picture corresponding to the uninterruptible power supply 603 to be tested.
The main power supply 602 is configured to be turned on or off under the control of the host computer 601, and to supply power to the main control component 604 and the external component 605 of the target device when turned on.
The ups to be tested 603 is configured to activate when the main power source 602 is disconnected, and supply power to the main control component 604 and the external component 605 of the target device.
The master control component 604 is configured to provide, for the host computer 601, a serial port registration state of the master control component 604 and a component registration state of the external component 605 under control of the host computer 601.
The external component 605 is configured to perform a specified task under the control of the master component 604.
The mobile terminal 606 is configured to take a picture of the working state of the ups 603 to be tested under the control of the host computer 601, and copy the taken picture to the host computer 601.
Specifically, after the host computer 601 determines that the ups 603 and the main power source 602 to be tested are respectively connected to the target device for a preset time, the main power source 602 is controlled to be disconnected, and the ups 603 to be tested of the target device is activated. The uninterruptible power supply to be tested 603 supplies power to the master 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 complete initialization, the upper computer 601 detects a serial port registration state of the main control component 604 and a component registration state of the external component 605. If the host 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 take a picture of the working state of the ups 603 to be tested, and a test picture corresponding to the ups 603 to be tested is obtained.
Optionally, photographing the working state of the ups 603 to be tested, including: and photographing a working indicator lamp of the uninterruptible power supply 603 to be tested and a screen of a digital oscilloscope connected with the uninterruptible power supply 603 to be tested.
The embodiment of the invention provides an uninterruptible power supply test system, which is characterized in that after determining that an uninterruptible power supply to be tested and a main power supply are respectively connected with target equipment for a 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 component and/or an external component of the target equipment, after determining that the main control component and the external component are initialized, the serial port registration state of the main control component and the component registration state of the external component are detected, when the serial port registration state of the main control component or the component registration state of the external component is detected to be offline, the mobile terminal is controlled to take a picture of the uninterruptible power supply to be tested, so that a test picture corresponding to the uninterruptible power supply to be tested is obtained, and the automatic positioning analysis of a tester is realized, the uninterrupted power supply reliability is improved, and the uninterrupted power supply test efficiency is 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 be construed as limiting the functionality and scope of use of embodiments of the invention.
As shown in fig. 7, the computer device 12 is in the form of a general purpose computer device. Components of computer device 12 may include, but are not limited to: one or more processors 16, a memory 28, a bus 18 that connects the various system components, including the memory 28 and the processor 16. The processor 16 includes, but is not limited to, an AI processor.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include 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.
Computer device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
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. The 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 or write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, commonly referred to as a "hard disk drive"). Although not shown in fig. 7, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules 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 in, for example, 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 or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and/or any devices (e.g., network card, modem, etc.) that enable the computer device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Moreover, computer device 12 may also communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 20. As shown, network adapter 20 communicates with other modules of computer device 12 via bus 18. It should be appreciated that although not shown in fig. 7, other hardware and/or software modules may be used in connection with computer device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processor 16 of the computer device 12 executes programs stored in the memory 28 to perform various functional applications and data processing, such as implementing the uninterruptible power supply test methods provided by embodiments of the present invention. The method specifically comprises the following steps: after determining that the uninterruptible power supply to be tested and the 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 that the uninterruptible power supply to be tested supplies power for a main control component and/or an external component of the target equipment; after the main control component and the external component are determined to be initialized, detecting a serial port registration state of the main control component and a component registration state of the external component; and if the serial port registration state of the main control component or the component registration state of the external component is detected to be offline, controlling the mobile terminal to take a picture of the working state of the uninterruptible power supply to be tested, and obtaining 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 having stored thereon a computer program which, when executed by a processor, implements an uninterruptible power supply test method as provided by all the inventive embodiments of the present application. The method specifically comprises the following steps: after determining that the uninterruptible power supply to be tested and the 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 that the uninterruptible power supply to be tested supplies power for a main control component and/or an external component of the target equipment; after the main control component and the external component are determined to be initialized, detecting a serial port registration state of the main control component and a component registration state of the external component; and if the serial port registration state of the main control component or the component registration state of the external component is detected to be offline, controlling the mobile terminal to take a picture of the working state of the uninterruptible power supply to be tested, and obtaining 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. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 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.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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 of the present invention may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ 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 kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. 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, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (11)

1. A method for testing an uninterruptible power supply, comprising:
after determining that the uninterruptible power supply to be tested and the 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 that the uninterruptible power supply to be tested supplies power for a main control component and/or an external component of the target equipment;
after the main control component and the external component are determined to be initialized, detecting a serial port registration state of the main control component and a component registration state of the external component;
if the serial port registration state of the main control component or the component registration state of the external component is detected to be offline, controlling the mobile terminal to take a picture of the working state of the uninterruptible power supply to be tested, and obtaining a test picture corresponding to the uninterruptible power supply to be tested;
judging whether the test times are finished or not;
if the test times are not completed, returning to execute control to switch on the main power supply, and after the main power supply is switched on for a preset switch-on duration, controlling the main power supply to be switched off, and activating the operation of the uninterrupted power supply to be tested;
and if the test times are determined to be completed, determining that the test is ended, and generating a test record report 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 component and an external component of the target equipment;
and after the time length of the main power supply is up to the preset on time length, sending an off command to the main power supply so that the main power supply is turned on and off according to the off command, and activating the uninterrupted power supply to be tested of the target equipment.
3. The method of claim 1, wherein detecting the serial port registration state of the master component and the component registration state of the external component after determining that the master component and the external component are initialized comprises:
after the time length of supplying power to the main control component and the external component of the target device by the uninterruptible power supply to be tested reaches the preset initialization time length, a state inquiry command is sent to the main control component to inquire the serial port registration state of the main control component and the component registration state of the external component.
4. The method of claim 1, wherein the controlling the mobile terminal to take a picture of the operating state of the ups to be tested to obtain a test picture corresponding to the ups to be tested, includes:
and the control mobile terminal photographs the screen of the work indicator lamp of the uninterrupted power supply to be tested and the screen of the digital oscilloscope connected with the uninterrupted power supply to be tested, so as to obtain a test picture corresponding to the uninterrupted power supply to be tested.
5. The method of claim 4, wherein the controlling the mobile terminal to take a picture of a screen of a work indicator light of the uninterruptible power supply to be tested and 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:
transmitting a photographing instruction to the mobile terminal so that the mobile terminal photographs a working indicator lamp of the uninterrupted power supply to be tested and a screen of a digital oscilloscope connected with the uninterrupted power supply to be tested according to the photographing instruction, and copying the photographed photograph;
and 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.
6. The method of claim 1, further comprising, after detecting the serial registration state of the master component and the component registration state of the external component:
judging whether the uninterrupted power supply to be tested has electric output or not;
if yes, waiting for stopping outputting according to the preset waiting time;
if not, the main power supply is connected 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 the preset charging times or not;
if yes, determining the uninterrupted power supply to be tested to have no power output;
if not, determining that the uninterrupted power supply to be tested has electric output.
8. An uninterruptible power supply testing apparatus, comprising:
the power supply activation module is used for controlling the main power supply to be disconnected after determining that the uninterrupted power supply to be tested and the main power supply are respectively connected with the target equipment for a preset time, and activating the uninterrupted power supply to be tested of the target equipment so as to enable the uninterrupted power supply to be tested to supply power for a main control component and/or an external component of the target equipment;
The state detection module is used for detecting the serial port registration state of the main control component and the component registration state of the external component after the main control component and the external component are determined to be initialized;
the picture acquisition module is used for controlling the mobile terminal to take a picture of the working state of the uninterruptible power supply to be tested if the serial port registration state of the main control component or the component registration state of the external component is detected to be offline, so as to obtain a test picture corresponding to the uninterruptible power supply to be tested;
the frequency judging module is used for judging whether the test frequency is finished or not;
the operation return module is used for returning to execute the operation of controlling the main power supply to be disconnected after the uninterrupted power supply to be tested and the main power supply to be tested are respectively connected with the target equipment for a preset time if the test times are not completed, and activating the uninterrupted power supply to be tested of the target equipment so as to enable the uninterrupted power supply to be tested to supply power for a main control component and/or an external component 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.
9. An uninterruptible power supply test system, comprising:
the method comprises the steps of an upper computer, a main power supply of target equipment, an uninterruptible power supply to be tested of the target equipment, a main control component of the target equipment, an external component 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 7;
the main power supply is used for being connected or disconnected under the control of the upper computer, and supplying power to the main control component and the external component of the target equipment when being connected;
the uninterruptible power supply to be tested is used for being activated when the main power supply is disconnected to supply power for a main control component and an external component of the target equipment;
the main control component is used for providing the serial port registration state of the main control component and the component registration state of the external component for the upper computer under the control of the upper computer;
The external component is used for executing the appointed work task under the control of the main control component;
and the mobile terminal is used for photographing the working state of the uninterrupted power supply to be tested under the control of the upper computer and copying the photographed photo to the upper computer.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the uninterruptible power supply test method of any of claims 1 to 7 when the computer program is executed by the processor.
11. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the uninterruptible power supply test method according to any of claims 1-7.
CN202011125996.0A 2020-10-20 2020-10-20 Uninterruptible power supply test method, device, system, equipment and storage medium Active CN112255563B (en)

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 CN112255563A (en) 2021-01-22
CN112255563B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113190392B (en) * 2021-05-14 2023-08-01 宁畅信息产业(北京)有限公司 Stability testing method and device for power module, controller and storage medium
CN116522878B (en) * 2023-07-04 2023-10-24 成都领目科技有限公司 Method, device and medium for maintaining consistency import report of oscilloscope test data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8958997B2 (en) * 2011-11-30 2015-02-17 Hewlett-Packard Development Company, L.P. Uninterruptible power supply testing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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)

* Cited by examiner, † Cited by third party
Title
"基于微信小程序的电源监测管理系统设计";张雪云等;《计算机与现代化》;20171231(第12期);第98-102、107页 *

Also Published As

Publication number Publication date
CN112255563A (en) 2021-01-22

Similar Documents

Publication Publication Date Title
CN112255563B (en) Uninterruptible power supply test method, device, system, equipment and storage medium
US7069477B2 (en) Methods and arrangements to enhance a bus
CN103163397B (en) Universal analog quantity plate detection system for nuclear plant and method
CN102087625A (en) Boot test system and test method
US8607079B2 (en) Power-on test system for testing storage device and test method employing the same
CN109726135A (en) Multi-core debugging method and device and computer readable storage medium
CN111796978B (en) Interface detection method, device, system, equipment and storage medium
CN113190443A (en) Test method, test device, computer equipment and storage medium
CN102609356A (en) Terminal product driver loading stability testing method
CN108399116A (en) A kind of server power-up state monitoring system and method
CN209784829U (en) Universal remote control and remote measurement automatic test system
CN111142502A (en) Processing method, device and equipment for ECU detection and storage medium
CN116124368A (en) Water leakage detection method for cooling water pipe joint of electromagnetic bearing control cabinet of main helium fan
CN111124455B (en) Battery management system upgrading method, device, server and storage medium
CN110134559B (en) BMC fault detection method, system and related components
CN111562974A (en) Method, device and equipment for acquiring offline data and storage medium
US9116191B2 (en) Voltage-drop testing system, voltage-drop control apparatus, and method thereof
TW200807235A (en) Testing system and method
CN114510426A (en) Software defect information acquisition method, device, equipment and storage medium
CN112394276B (en) Wireless charging test method, device, system, electronic equipment and storage medium
CN115629255A (en) Gear shifting display panel testing method, device, system, equipment and medium
CN116820946B (en) Method and device for automatically testing compatibility of target software
CN111896824B (en) Unattended reliability testing device and system
CN111929616A (en) Multi-channel cable detection method, system and computer readable storage medium
CN114968448A (en) Automatic operation and maintenance system, method, device and storage medium

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

Address after: 510000 Block C, 115 Gaopu Road, Tianhe District, Guangzhou City, Guangdong Province

Applicant after: Guangzhou Jifei Technology Co.,Ltd.

Address before: 510000 Block C, 115 Gaopu Road, Tianhe District, Guangzhou City, Guangdong Province

Applicant before: Guangzhou Xaircraft Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant