Disclosure of Invention
The invention aims to overcome the defects and provide an intelligent power failure testing method and system.
The purpose of the invention is realized as follows: an intelligent power failure test system comprises a power supply module, a control end, a weak electric control module, a strong electric control module, a storage device, a display device and a network communication module; the storage device, the display device and the network communication module are connected with the control end; in the above-mentioned manner,
the power supply module is used for supplying power to the system;
the control end is used for controlling the power-on and power-off of the weak electric control module and the strong electric control module in a given time according to the set test parameters and carrying out data interactive transmission; the test parameters comprise test time, interval time, test times, power-on time and power-off time;
the weak electric control module is used for being connected with external weak electric equipment to be tested and simulating a weak electric power failure environment for testing;
and the strong electric control module is used for being connected with external strong electric equipment to be tested and simulating a strong electric power failure environment for testing.
The storage module is used for carrying out data interaction with the control terminal, storing preset data information of the equipment to be tested and set test parameter information before testing, storing test data information in the current testing process and finally storing test result data after testing is finished;
the display device is used for carrying out data interaction with the control end and displaying the currently set parameters and the real-time test condition;
the network communication module is used for performing data interaction with the control end and transmitting the test data to the Internet in real time for remote monitoring;
in the above structure, the weak current control module includes a plurality of weak current control units, the weak current control unit includes a low voltage on-off switch device, and the low voltage on-off switch device includes a relay and/or an MOS transistor.
In the above structure, the strong current control module includes a plurality of strong current control units, and each strong current control unit includes an electronic switch tube, a thyristor driver with photoelectric isolation and starting functions, a bidirectional thyristor, and a resistance-capacitance absorption loop, which are connected in sequence.
The invention also provides an intelligent power failure test method, which comprises the steps of,
s1), starting the test system, judging whether the parameters need to be reset, if yes, continuing the step after waiting for the setting of the set parameters; otherwise, reading the pre-stored parameter setting;
the parameter setting in this step includes test time, interval time, test times, power-on time and power-off time;
s2), reading the pre-stored data of the equipment to be tested;
s3), selecting a corresponding strong current control or weak current control circuit according to the data of the equipment to be tested;
s4), starting testing, judging whether real-time testing information needs to be output, if so, outputting current testing data until the testing is finished, and continuing the steps; otherwise, the step of continuing to be tested is completed;
preferably, after the step, the step of displaying and storing the output current test data is further included;
preferably, the current test data is output to a remote place through a network in the step for data interaction;
s5), judging whether to carry out next power-off test according to the parameter setting of the step S2, if so, returning to the step S3, otherwise, ending the test and saving the test result.
The intelligent power failure test system and method have the advantages that the control end drives the weak electric control module and the strong electric control module to be powered down and powered up sequentially according to parameter setting and controllable output of data of equipment to be tested. The full-automatic full-intelligent power-off test is realized, the advantages of high efficiency, labor cost saving and safety are achieved, and the test requirement that the safety factor of the strong current type is high can be met. The product can meet the test requirements of various devices, and the test cost is reduced. And remote control can be realized by matching, management is more convenient, and test reliability is ensured by real-time monitoring.
Detailed Description
In order to explain technical contents, structural features, and objects and effects of the present invention in detail, the following detailed description is given with reference to the accompanying drawings in conjunction with the embodiments.
Referring to fig. 1, the present invention first provides an intelligent power failure testing system, which includes a power module, a control terminal, a weak electric control module, a strong electric control module, a storage device, a display device and a network communication module. The weak electric control module, the strong electric control module, the storage device, the display device and the network communication module are respectively connected with the control end. Wherein:
the power supply module is used for supplying power to the system;
the control end is used for controlling the power-on and power-off of the weak electric control module and the strong electric control module in a given time according to the set test parameters and carrying out data interactive transmission;
the test parameters comprise test time, interval time, test times, power-on time, power-off time and the like;
the weak electric control module is used for being connected with external weak electric equipment to be tested and simulating a weak electric power failure environment for testing;
and the strong electric control module is used for being connected with external strong electric equipment to be tested and simulating a strong electric power failure environment for testing.
The storage module is used for carrying out data interaction with the control terminal, storing preset data information of the equipment to be tested and set test parameter information before testing, storing test data information in the current testing process and finally storing test result data after testing is finished;
the display device is used for carrying out data interaction with the control end and displaying the currently set parameters and the real-time test condition;
and the network communication module is used for performing data interaction with the control end and transmitting the test data to the Internet in real time for remote monitoring.
Therefore, after the system burns the program into the control end through the auxiliary interface, the system can start to work.
If the tested weak current equipment is connected to one of the weak current control units, the control end sends a signal to the weak current control unit above the weak current control unit to carry out weak current power-off test, and relevant data in the test are displayed on the display device. The data generated in the middle process and the final result are stored in the storage module.
Similarly, if the power-off test of the strong electric equipment needs to be carried out, the equipment is connected into the strong electric control unit, the control end sends a control signal to the strong electric control unit to carry out the power-off control test, the data in the period are displayed on the display equipment in real time, and the final data are also stored in the storage module.
The system is applicable to and controls weak current: 0-36V, strong electric: greater than 36V.
Preferably, the weak current control module in the above structure comprises 1-M multi-path weak current control units, each weak current control unit comprises a low-voltage on-off switch device, and the on-off switch device, such as a relay, a MOS, etc., performs on-off of current or voltage under the action of a signal sent from the control terminal by using the low-voltage on-off switch device. The weak current power-off test can be realized by simulating the function similar to a trigger switch through different on-off time under the control of software.
Preferably, the strong current control module in the above structure comprises a 1-N multi-channel strong current control unit, and the strong current control unit integrates a novel electronic switch tube composed of solid-state electrons, a thyristor driver with photoelectric isolation and starting functions, a bidirectional thyristor and a resistance-capacitance absorption loop. The electromagnetic attraction type relay replaces the traditional electromagnetic attraction type relay, and has the advantages of single-phase or three-phase power supply control, no contact, no action noise, switching speed, no spark interference, high safety and reliability and the like. Under the control of the microcontroller, the precise control is realized, and no phase interference is caused to the surrounding public power grid. By adopting the functional module with voltage isolation, the signal isolation between low voltage and high voltage can be realized, the occurrence of electric shock is avoided, and the safe production test is realized.
Fig. 2-5 are circuit diagrams of embodiments of the present system. As shown in fig. 2, the middle Power module includes a Power chip Power1, a USB interface USB cable and a pin JP 7. The control end is a microcontroller STC and is provided with parameter selection keys S2-S5. Fig. 3 shows a power control module, which includes 4-channel power control units. And fig. 4 is a weak electric control module, which also comprises 4 weak electric control units. Fig. 5 shows peripheral devices, which include a flat cable P2 connected to the display device, a temperature sensor P4, a memory chip 24C02 of the memory module, a control indicator LED1 and LED2 of the display device, an alarm LS1 of the display device, a main chip MAX232 of the communication and program downloading module, and a serial port DB 9.
Referring to fig. 6, which is a schematic connection diagram of a strong electric control unit assembly in the circuit diagram of the above embodiment, 220V commercial power is input into a male socket J1, and 220V commercial power is input into the male socket, and a live wire is connected with a thyristor driver U15 and a triac Q2 having photoelectric isolation and start functions.
The control end controls the whole strong current control unit through P11 with TTL level, when the control end transmits high level, the electronic switch tube Q1 is conducted, the light is emitted by the light emitting diode in the thyristor driver U15 with the photoelectric isolation and starting function, 4 and 6 pins of the thyristor driver U15 with the photoelectric isolation and starting function are triggered, the control pole of the bidirectional thyristor Q2 is connected with 4 pins of the thyristor driver U15 with the photoelectric isolation and starting function, then, the bidirectional thyristor Q2, the live wire J1 is communicated with the female socket J2 to be inserted into the testing equipment, the live wire of J2 is provided with 220V, and as the zero line of J2 is communicated with the zero line of J1, at the moment, the power plug of the testing equipment is inserted into J2, the equipment is started, and the equipment starts to run.
If the P11 is controlled by the control end to become low level in the operation process, the Q1 is cut off, the pins 1 and 2 of the U15 stop emitting light, the trigger circuit stops, when the thyristor voltage crosses zero, the thyristor stops working, the circuit of the J1 live wire leading to the J2 live wire is cut off, the voltage of the equipment to be tested is lost, and the equipment to be tested stops working.
In order to ensure that the voltage rise rate of the thyristor Q2 is not too large and the circuit is damaged when the thyristor Q2 works, an RC absorption line is often connected in parallel to two ends of the thyristor Q2 to limit the voltage rise rate of the thyristor and protect the circuit by using the characteristic that the voltage across the capacitor cannot change suddenly.
Referring to fig. 7, the level of P10 is pulled up under the control of the control end, at this time, Q1 and Q2 are turned on to form a 2-stage amplification circuit, at this time, the coil of the relay U16 is attracted, the normally closed end is biased to the normally open end, and the common end of the connection terminal is also changed from normally closed (normally open) to normally open (normally closed). D3 is connected in parallel across the relay coil to effectively prevent surge.
Referring to fig. 8, the present invention also provides a method for intelligent power down test, which comprises the steps of,
s1), starting the test system, judging whether the parameters need to be reset, if yes, continuing the step after waiting for the setting of the set parameters; otherwise, reading the pre-stored parameter setting;
the parameter setting in this step includes test time, interval time, test times, power-on time, power-off time and the like;
s2), reading the pre-stored data of the equipment to be tested;
s3), selecting a corresponding strong current control or weak current control circuit according to the data of the equipment to be tested;
s4), starting testing, judging whether real-time testing information needs to be output, if so, outputting current testing data until the testing is finished, and continuing the steps; otherwise, the step of continuing to be tested is completed;
preferably, in this step, the current test data is output to a remote device through a network for data interaction.
Preferably, after this step, the method further comprises the step of displaying and storing the output current test data.
S5), judging whether to carry out next power-off test according to the parameter setting of the step S2, if so, returning to the step S3, otherwise, ending the test and saving the test result.
In summary, the system and the testing method provided by the invention have the following effects:
1. the full-automatic full-intelligent power-off test is realized, the advantages of high efficiency, labor cost saving and safety are achieved, and the test requirement of high safety factor requirement of a strong current type can be realized;
2. the test requirements of various devices can be met, and the test cost is reduced;
3. can match and realize remote control, the management of being convenient for more, real time monitoring ensures test reliability.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.