Test method and device of spare power automatic switching device and electronic equipment
By analyzing the control parameters in the target file and generating a status sequence, combining the automatic testing of the remaining control parameters, the problem of manual testing time and high error rate is solved, and a more efficient and accurate test process is achieved.
Patent Information
- Application Number
- CN202411822397.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2044-12-11
AI Technical Summary
Manual testing of self-injection devices results in a long test time, poor stability, and high error rate, affecting the stability of the power system.
By receiving the control parameters in the target file, analyzing and generating a status sequence, combining the remaining control parameters to automatically test the self-invested device and output the test results.
It realizes automated testing, reduces test complexity, improves test stability and accuracy, and solves the problems of time-consuming and high error rates caused by manual testing.
Smart Images

Figure CN119689111A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automated testing technology, and in particular to a testing method and device for a standby automatic test device, and electronic equipment. Background Art
[0002] The backup automatic switching device is an automatic device widely used in power systems. Its main function is to automatically switch to the backup power supply when the main power supply fails to ensure the stable operation of the power system.
[0003] To adapt to the development of digital substations, digital backup automatic switching devices are gradually being promoted and applied. Different from the hard-connected circuit of conventional backup automatic switching devices, the circuit of digital backup automatic switching devices is realized through optical fiber virtual circuits. Therefore, when debugging the logical functions of digital backup automatic switching devices, it is necessary to map the virtual circuits according to the actual access quantity of power supply components. In related technologies, the debugging personnel manually perform the above-mentioned test on the backup automatic switching device, which is labor-intensive and complicated. Once the debugging fails to find the error in time, the backup automatic switching device will not work correctly, affecting the stability of the power system. Therefore, there are problems such as long test time, poor stability and high error rate caused by manual testing.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present application provide a method and device for testing a standby automatic start-up device, and an electronic device, so as to at least solve the technical problems of long testing time and high error rate during the testing process caused by manually testing the standby automatic start-up device.
[0006] According to one aspect of an embodiment of the present application, a testing method for a standby automatic start-up device is provided, comprising: receiving a target file for recording control parameters of the standby automatic start-up device, wherein the control parameters are used to control the communication function and logical function of the standby automatic start-up device; parsing the target file to obtain the control parameters, and generating a state sequence according to the control parameters, wherein the state sequence corresponds to the logical function of the standby automatic start-up device, and the state sequence is used to record the states of other devices in the target system that communicate with the standby automatic start-up device, and the target system is the system to which the standby automatic start-up device belongs; testing the standby automatic start-up device according to the state sequence and the remaining control parameters, and outputting the test results, wherein the remaining control parameters are the control parameters recorded in the target file and not included in the state sequence, and the remaining control parameters are used to define the communication function of the standby automatic start-up device.
[0007] Optionally, the control parameters include: first-class parameters used when controlling the standby automatic power supply device to communicate with other devices in the target system; parsing the target file to obtain control parameters, including: extracting a first parameter set related to the receiving virtual terminal of the standby automatic power supply device in the target file, and extracting a second parameter set related to the publishing virtual terminal of the standby automatic power supply device, wherein the receiving virtual terminal is a virtual interface used by the standby automatic power supply device to receive data, and the publishing virtual terminal is a virtual interface used by the standby automatic power supply device to publish data; determining the target data associated with the target multicast address in the first parameter set and the second parameter set as the first-class parameters, wherein the target multicast address is the multicast address of the standby automatic power supply device.
[0008] Optionally, the control parameters also include: second-category parameters for controlling the operating status of the standby automatic power supply device; parsing the target file to obtain the control parameters also includes: determining the fixed value parameters in the target file as second-category parameters, wherein the fixed value parameters include: priority parameters and attribute parameters, the priority parameters are used to describe the standby automatic power supply priority of each other device, the standby automatic power supply priority is used to indicate the order of each other device as a backup power supply, the attribute parameters are used to describe the attributes of each other device, and the attribute parameters include: pressure set value, no-pressure set value, no-flow set value, and delay set value.
[0009] Optionally, a state sequence is generated according to the control parameters, including: extracting a priority parameter from the control parameters, wherein the priority parameter is used to describe the backup automatic power supply priority of each other device, and the backup automatic power supply priority is used to indicate the order in which each other device serves as a backup power supply; and arranging the control parameters associated with each other device according to the priority parameter to obtain a state sequence.
[0010] Optionally, the standby automatic start-up device is tested according to the state sequence and the remaining control parameters, including: classifying the state sequence and the remaining control parameters associated with the same test moment into a test set to obtain multiple test sets, wherein each test set corresponds to a test strategy, the test strategy records the test conditions and test logic, the remaining control parameters are used to define the test conditions, and the state sequence is used to define the test logic; the standby automatic start-up device is tested using the test set associated with the test moment.
[0011] Optionally, the standby automatic start-up device is tested using a test set associated with the test moment, including: for each test moment, determining the test set associated with the test moment, and configuring the data transmission channel in the target system according to the remaining control parameters in the test set; adjusting the status of each other device at different test moments according to the order defined by the status sequence in the test set, wherein the status includes: standby automatic start-up charging, standby automatic start-up starting, standby automatic start-up execution, and standby automatic start-up ending.
[0012] Optionally, the testing method of the standby automatic start-up device also includes: in the process of testing the standby automatic start-up device, when each other device is in a different state, detecting each other device to obtain the actual parameter value of each other device during the test process; comparing the actual parameter value with the preset parameter value to obtain a comparison result, wherein the preset parameter value is the parameter value of each other device when it operates correctly according to the test logic; when the comparison result indicates that the preset parameter value is the same as the actual parameter value, configuring each other device to the next state of the current state, and continuing to test the standby automatic start-up device, wherein the next state is located next to the current state in the state sequence; when the comparison result indicates that the preset parameter value is different from the actual parameter value, outputting information indicating a test abnormality.
[0013] According to another aspect of an embodiment of the present application, a testing device for a standby automatic start-up device is also provided, comprising: a receiving module, receiving a target file for recording control parameters of the standby automatic start-up device, wherein the control parameters are used to control the communication function and logical function of the standby automatic start-up device; a parsing module, parsing the target file, obtaining the control parameters, and generating a state sequence according to the control parameters, wherein the state sequence corresponds to the logical function of the standby automatic start-up device, and the state sequence is used to record the states of other devices in the target system that communicate with the standby automatic start-up device, and the target system is the system to which the standby automatic start-up device belongs; a testing module, testing the standby automatic start-up device according to the state sequence and the remaining control parameters, and outputting the test results, wherein the remaining control parameters are the control parameters recorded in the target file and not included in the state sequence, and the remaining control parameters are used to define the communication function of the standby automatic start-up device.
[0014] According to another aspect of an embodiment of the present application, there is also provided an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the above-mentioned test method of the automatic standby device through the computer program.
[0015] According to another aspect of the embodiment of the present application, a computer program product is also provided, including computer instructions, which implement the steps of the above-mentioned test method of the backup automatic start-up device when the computer instructions are executed by a processor.
[0016] In an embodiment of the present application, a target file for recording control parameters of a standby automatic start-up device is received, wherein the control parameters are used to control the communication function and the logic function of the standby automatic start-up device; the target file is parsed to obtain the control parameters, and a state sequence is generated according to the control parameters, wherein the state sequence corresponds to the logic function of the standby automatic start-up device, and the state sequence is used to record the state of other devices in the target system that communicate with the standby automatic start-up device, and the target system is the system to which the standby automatic start-up device belongs; the standby automatic start-up device is tested according to the state sequence and the remaining control parameters, and the test results are output, wherein the remaining control parameters are recorded in the target file and are not included in the state sequence The remaining control parameters are used to define the communication function of the standby automatic start-up device. By automatically identifying the file recording the control parameters of the standby automatic start-up device, the communication function parameters and logic function parameters of the standby automatic start-up device are obtained. The standby automatic start-up device is tested according to the above-mentioned communication function parameters and logic function parameters read, thereby achieving the purpose of automated testing of the standby automatic start-up device, thereby achieving the technical effect of reducing the complexity of testing the standby automatic start-up device, improving the stability of the testing process, and improving the accuracy of the testing process, thereby solving the technical problems of long testing time and high error rate during the testing process caused by manual testing of the standby automatic start-up device. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0018] Figure 1 It is a hardware structure block diagram of a computer terminal for implementing a test method of a standby automatic switching device according to an embodiment of the present application;
[0019] Figure 2 It is a flowchart of the steps of a testing method of a standby automatic switching device according to an embodiment of the present application;
[0020] Figure 3 It is a parameter related to publishing a virtual terminal recorded in a target file according to an embodiment of the present application;
[0021] Figure 4 is a fixed value parameter record list according to an embodiment of the present application;
[0022] Figure 5 is a schematic diagram of a target file recording logical function parameters according to an embodiment of the present application;
[0023] Figure 6 It is a structural diagram of a test device for a self-closing device according to an embodiment of the present application;
[0024] Figure 7This is a working flow diagram of a testing device for a standby automatic switching device according to an embodiment of the present application;
[0025] Figure 8 It is a schematic diagram of a test system for a self-closing device according to an embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] In order to better understand the embodiments of the present application, the technical terms involved in the embodiments of the present application are explained as follows:
[0029] Backup automatic transfer device: also known as microcomputer line backup automatic transfer protection device, its core part adopts high-performance single-chip microcomputer, including central processing unit (CPU) module, relay module, AC power supply module, human-computer dialogue module, etc.
[0030] Automatic backup: The backup power supply is automatically put into use.
[0031] Backup automatic switch device: The working principle of the backup automatic switch device is based on real-time monitoring and logical judgment of the power system status. It usually monitors the voltage, current and other electrical parameters of the main power supply, as well as the availability of the backup power supply. When the voltage or current of the main power supply is lower than the preset no-voltage or no-current setting value, the backup automatic switch device will determine that the main power supply has failed, and according to the set logic and time delay, it will automatically trip the circuit breaker of the main power supply, and then try to close the circuit breaker of the backup power supply to restore power supply.
[0032] In the related art, the debugging personnel test the standby automatic switching device by mapping the virtual circuit of the standby automatic switching device according to the actual access quantity of the power supply element. The debugging workload is large and complicated, and the debugging personnel are required to have a high skill level. Once the debugging fails to find the error in time, the standby automatic switching device cannot operate correctly, affecting the stability of the power system; therefore, there are problems such as high debugging time consumption, low stability, and high error rate in the debugging process. In order to solve this problem, a relevant solution is provided in the embodiment of the present application, which is described in detail below.
[0033] According to an embodiment of the present application, a method embodiment for testing a standby automatic re-entry device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0034] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal for implementing a test method for a backup automatic switching device is shown. Figure 1 As shown, the computer terminal 10 may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0035] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10. As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0036] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the test method of the standby automatic start-up device in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the test method of the standby automatic start-up device described above is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0037] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0038] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 .
[0039] The embodiment of the present application provides a test method for a standby automatic start-up device that can be operated in the above operating environment. Figure 2 is a flowchart of the steps of the test method of the automatic switching device provided in the embodiment of the present application, such as Figure 2 As shown, the method comprises the following steps:
[0040] Step S202, receiving a target file for recording control parameters of the standby automatic start-up device, wherein the control parameters are used to control the communication function and the logic function of the standby automatic start-up device.
[0041] The method provided by the embodiment of the present application completes the automated testing of the standby automatic start-up device by identifying the parameters recorded in the input file and configuring the test strategy according to the recorded parameters. Therefore, in step S202, the file (i.e., the target file) recording the parameters required for testing the standby automatic start-up device is first input to the system / device executing the method provided by the embodiment of the present application; the parameters required for testing the standby automatic start-up device include: parameters for controlling the standby automatic start-up device to realize the communication function, and parameters for controlling the standby automatic start-up device to realize the logical function. The logical function refers to the logic of switching to the backup power supply in the event of a power failure. The above-mentioned target file package is a file that records the contents of two different files at the same time, one of the above-mentioned two different files is the contents recorded in the process layer configuration (Configured Circuit Description, CCD) file of the standby automatic start-up device, and the other file is an AST file that uses an adaptive standard template (Adapted Standard Template, AST) to record the parameters of the power system equipment to be monitored and operated by the standby automatic start-up device.
[0042] Optionally, the control parameters include: first-class parameters used when controlling the standby automatic power supply device to communicate with other devices in the target system; parsing the target file to obtain control parameters, including: extracting a first parameter set related to the receiving virtual terminal of the standby automatic power supply device in the target file, and extracting a second parameter set related to the publishing virtual terminal of the standby automatic power supply device, wherein the receiving virtual terminal is a virtual interface used by the standby automatic power supply device to receive data, and the publishing virtual terminal is a virtual interface used by the standby automatic power supply device to publish data; determining the target data associated with the target multicast address in the first parameter set and the second parameter set as the first-class parameters, wherein the target multicast address is the multicast address of the standby automatic power supply device.
[0043] As mentioned in the above embodiment, the control parameters recorded in the target file received in step S202 are used to control the standby automatic recharging device to realize the communication function and the logic function, then the control parameters must include the (first type) parameters used to control the standby automatic recharging device to communicate with other devices; in this embodiment, the parameters (i.e., the first type of parameters) used to control the standby automatic recharging device to realize the communication function are obtained by parsing the target file received in step S202, wherein the (first type) parameters used to control the standby automatic recharging device to realize the communication function are recorded in the CCD file contained in the target file, including: multiple parameters related to the receiving virtual terminal of the standby automatic recharging device (i.e., the first parameter set), and multiple parameters related to the publishing virtual terminal of the standby automatic recharging device (i.e., the second parameter set), wherein the receiving virtual terminal is a virtual interface for the standby automatic recharging device to receive data, for example, a voltage receiving virtual terminal for receiving voltage signals and related data, a current receiving virtual terminal for receiving current signals and related data, and a circuit breaker position receiving virtual terminal for receiving circuit breaker positions. , a switch position receiving virtual terminal for receiving the switch position, a disconnect signal receiving virtual terminal for receiving a trip signal (for disconnecting and no longer communicating), and a closed signal receiving virtual terminal for receiving a closing signal (for connecting and starting communication); a publishing virtual terminal is a virtual interface used by the standby automatic transfer device to publish data, for example, a charging status publishing virtual terminal for publishing the charging status of the standby automatic transfer device, a discharging status publishing virtual terminal for publishing the discharging status of the standby automatic transfer device, a success status publishing virtual terminal for publishing the successful switching information of the standby power supply, an action status publishing virtual terminal for publishing the switching action (such as disconnecting and closing) performed by the standby automatic transfer device, a startup status publishing virtual terminal for publishing the start of the logical function of the standby automatic transfer device, a failure status publishing virtual terminal for publishing the failure information of the standby power supply switching, a component tripping output publishing virtual terminal for publishing the tripping (disconnecting) command of each component (such as a circuit breaker, a switch), and a component closing output publishing virtual terminal for publishing the closing (closing) command of each component (such as a circuit breaker, a switch). If the above parameters associated with the publishing virtual terminal (i.e., the second parameter set) are also associated with the multicast address (MAC address) of the standby automatic throw device, it means that these parameters control the standby automatic throw device. If the above parameters associated with the receiving virtual terminal (i.e., the first parameter set) are also associated with the multicast address (MAC address) of the standby automatic throw device, it means that these parameters control the standby automatic throw device. Therefore, the parameters associated with the multicast address (i.e., the target multicast address) of the standby automatic throw device are selected from the first parameter set and the second parameter set as the (first type) parameters used to control the standby automatic throw device to communicate with other devices. By identifying the parameters related to the publishing virtual terminal recorded in the CCD file, identifying the parameters related to the receiving virtual terminal, and recording the Boolean values of these parameters, the state action change process of the standby automatic throw device can be determined. Figure 3It is a parameter related to the published virtual terminal recorded in the target file to identify the set of parameters for receiving the published virtual terminal (i.e., the second parameter set) <goosepub>Take the process of identifying the parameters (of the first type) used to control the communication between the automatic switching device and other devices as an example. Figure 3 Step 1: Identification confirmation <goosepub>and the multicast address (MAC-Address) of its corresponding data set (DataSet); Step 2: Identify the data object (FCDA) of the data set (DataSet), obtain the short address (sAddr) of the data object required for judgment, and use it to identify the parameter attribute; Step 3: Record the Boolean value of the data in the short address of the data object to which the corresponding parameter belongs, and use it to record the action process changes of the standby automatic transfer device; Among them, if Figure 3 As shown, the virtual terminal information of the standby automatic switching device includes digital messages of switch quantities such as the switch position, manual tripping, and closing of each component, and is used to match the parameters of standby automatic switching action information such as standby automatic switching charging, standby automatic switching power-on, standby automatic switching success, standby automatic switching failure, component tripping outlet, component closing outlet, and load shedding outlet.
[0044] According to some optional embodiments of the present application, the control parameters also include: second-category parameters for controlling the operating status of the standby automatic power supply device; parsing the target file to obtain the control parameters also includes: determining the fixed value parameters in the target file as second-category parameters, wherein the fixed value parameters include: priority parameters and attribute parameters, the priority parameters are used to describe the standby automatic power supply priority of each other device, the standby automatic power supply priority is used to indicate the order of each other device as a backup power supply, the attribute parameters are used to describe the attributes of each other device, and the attribute parameters include: pressure set value, no pressure set value, no flow set value, and delay set value.
[0045] The control parameters recorded in the target file also include logic function parameters (i.e., second-class parameters) used to control the standby automatic transfer device to realize the logic function, wherein the operation state of the standby automatic transfer device is adjusted by the second-class parameters to realize the purpose of controlling the standby automatic transfer device to realize the logic function. The above-mentioned second-class parameters are recorded in the AST file in the target file and are extracted by the following method: reading the corresponding fields (lbl) (i.e., the fixed value parameters) and their attribute values (val) of each fixed value in the AST fixed value file; Figure 4 is a list of fixed value parameter records, such as Figure 4 As shown in the table, the symbolic representation (i.e., fixed value symbol), field name, attribute value (i.e., set value) and value range of various fixed value parameters are recorded; in this embodiment, whether the parameter recorded in the target file is a fixed value parameter can be determined by Figure 4 The parameters in the preset record list shown are matched to determine the Figure 4 It can be seen that the attribute value of the fixed value parameter can indicate the value and state of the corresponding parameter, and can also indicate the priority of the corresponding parameter. Therefore, the fixed value parameters in this embodiment include: parameters indicating the priority of each component (i.e., priority parameters), attribute parameters indicating the value, state, etc. of each component; Figure 4 As shown, the priority parameter is used to indicate the order in which each component participates in the backup power supply. When the hardware device / equipment participates in the backup power supply, it is often used as a backup power supply. When the line participates in the backup power supply, it is often used to transmit the signal sent by the backup power supply. Therefore, the priority parameter can also be used to indicate the order in which the hardware device / equipment (i.e. other equipment) is used as a backup power supply; and the attribute parameters include: a plurality of attribute parameters used to describe the components, such as a pressure set value, a non-pressure set value, a non-current set value, a delay set value, and a rated voltage value. Among them, the pressure set value is the (first) preset voltage value used to determine whether the component can be used as a backup power supply. , only when the voltage value of the backup power supply is greater than the voltage setting value, the component can be started as a backup power supply; the no-voltage setting value is the (second) preset voltage value used to determine whether the main power supply fails. When the voltage value of the main power supply exceeds the no-voltage setting value, it is determined that the main power supply has failed; the no-current setting value is the (first) preset current value used to determine whether there is no current flowing through the line. When the current value of the line is lower than the no-current setting value, it is determined that there is no current flowing through the line; the delay setting value is a preset time value for delayed startup / shutdown. For example, if a main power supply failure is detected, it will switch to the backup power supply after the delay setting value.
[0046] In addition, in this embodiment, after extracting the parameters (i.e., the second type of parameters) used to control the standby automatic start-up device to realize the logical function, the second type of parameters can also be verified according to the value range recorded in the fixed value parameter; for example, for a certain fixed value parameter, if the attribute value of the fixed value parameter is within its corresponding preset range, it is determined that the verification has passed, and the standby automatic start-up device can be controlled to operate according to the instructions of the parameter; otherwise, if the attribute value of the fixed value parameter does not belong to its corresponding preset range, it is determined that the verification has not passed, and the standby automatic start-up device is refused to be controlled to operate according to the instructions of the parameter. Figure 5 It is a schematic diagram of the target file recording the logical function parameters. The logical function parameters are based on Figure 5 The format shown is recorded in the AST file included in the target file. Next, refer to Figure 5 Taking an example to illustrate the process of extracting logical function parameters, the device / system that executes the method provided in the embodiment of the present application reads the corresponding fields (lbl) of each constant in the AST constant file and its attribute values (val), wherein, except for the backup automatic start-up priority constant, the attribute values of other parameters are bound to the first constant parameter (val) that appears in the field below the search constant name (lal), such as the primary side rated current (lbl) of the 110kV Banbin A line, whose attribute value (val) is 1200, and the unit (ut) is ampere (A). The backup automatic start-up priority constant first reads the component name description (lbl), and then reads the priority constants (val) one by one in the field below, and then combines them in sequence to form the priority corresponding to each component, such as component 1, 110kV Banbin A line, component 3, 110kV Banbin B line, corresponding to priorities 0, 1, 0, 2, respectively. The smaller the attribute value corresponding to the priority parameter, the higher the priority. When controlling the standby automatic start-up device to implement the logical function, identify the component parameters in the AST file to confirm the components (In1-In4) involved in the standby automatic start-up logic, identify the pressure set value, no-pressure set value, no-flow set value, and time delay set value in the AST file, and set the corresponding verification value according to the set value. The pressure set value must be more than 1.05 times the set value, and the no-pressure set value and no-flow set value must be less than 0.95 times the set value. The time delay set value is used to determine whether the entire action process of starting the standby automatic start-up, tripping the main supply component, and closing the standby supply component is correct. Identify the standby automatic start-up priority set value in the AST file (the smaller the value, the higher the priority), and confirm the main supply component and the standby supply component. The AST set value file is the standardized set value file of the standby automatic start-up device. The set value file sets the component properties, the component participation in the standby automatic start-up and its priority, and clarifies the standby automatic start-up setting logic.
[0047] Step S204, parse the target file to obtain control parameters, and generate a state sequence based on the control parameters, wherein the state sequence corresponds to the logical function of the standby automatic start-up device, and the state sequence is used to record the state of other devices in the target system that communicate with the standby automatic start-up device. The target system is the system to which the standby automatic start-up device belongs.
[0048] After receiving the file (i.e., the target file) recording the control parameters of the standby automatic start-up device in step S202, in step S204, the target file is parsed to extract the control parameters recorded in the target file; further, in order to be able to test the standby automatic start-up device based on the control parameters, in step S204, a state sequence is also generated according to the control parameters, wherein the state sequence is generated according to the parameters in the control parameters used to control the logical functions of the standby automatic start-up device, and the state sequence is used to record the states of other devices communicating with the standby automatic start-up device at different test times, the above-mentioned other devices not only communicate with the standby automatic start-up device, but also belong to the same system (i.e., the target system) as the standby automatic start-up device, and the target system may be an electric power system; the standby automatic start-up device controls other devices by communicating with other devices to realize the logical functions of the standby automatic start-up device, and the other devices are various components in the electric power system, such as lines, transformers, etc.
[0049] Optionally, a state sequence is generated according to the control parameters, including: extracting a priority parameter from the control parameters, wherein the priority parameter is used to describe the backup automatic power supply priority of each other device, and the backup automatic power supply priority is used to indicate the order in which each other device serves as a backup power supply; and arranging the control parameters associated with each other device according to the priority parameter to obtain a state sequence.
[0050] The state sequence is used to control the logical function of the standby automatic start-up device. Specifically, the state of the standby automatic start-up device at different times is adjusted according to the arrangement order of multiple states recorded in the state sequence, that is, the state sequence is generated by the arrangement of parameters representing the state. In this embodiment, when the state sequence is generated according to the parameters in the (target) file, the parameters used to control the standby automatic start-up device to realize the logical function (that is, the second type of parameters) are firstly screened from all the parameters recorded in the file. Further, the priority parameters for indicating the order of each component in the system (that is, the target system) to which the standby automatic start-up device belongs as a standby power supply are screened out; the parameters associated with other devices are arranged according to the order of the components (that is, other devices) indicated by the priority parameters as standby power supplies. For example, the priority parameter corresponding to the order of component 1, 110kV Banbin A line, component 3, 110kV Banbin B line is It shows that their respective priorities are 0, 1, 0, 2. If they are arranged in order from high to low priority, the control parameters associated with component 1 and the control parameters associated with component 3 are arranged as the first in the state sequence, the control parameters associated with 110kV Banbin A line are arranged as the second in the state sequence, and the control parameters associated with 110kV Banbin B line are arranged as the third in the state sequence to generate a state sequence; if they are arranged in order from low to high priority, the control parameters associated with component 1 and the control parameters associated with component 3 are arranged as the third in the state sequence, the control parameters associated with 110kV Banbin A line are arranged as the second in the state sequence, and the control parameters associated with 110kV Banbin B line are arranged as the first in the state sequence to generate a state sequence; usually, components with high priority are preferred as backup power supplies.
[0051] Step S206, testing the standby automatic start-up device according to the state sequence and the remaining control parameters, and outputting the test results, wherein the remaining control parameters are control parameters recorded in the target file and not included in the state sequence, and the remaining control parameters are used to define the communication function of the standby automatic start-up device.
[0052] In step S206, the standby automatic start-up device is tested based on the state sequence generated in step S204 and the parameters in the target file that are not used to generate the state sequence (i.e., the remaining parameters), wherein the state sequence is used to control the logical function of the standby automatic start-up device during the test, and the parameters in the target file that are not used to generate the state sequence (i.e., the remaining parameters) are used to control the communication function of the standby automatic start-up device during the test (so that it communicates according to different lines); and finally the test results of the standby automatic start-up device are output.
[0053] According to some optional embodiments of the present application, the standby automatic start-up device is tested according to the state sequence and the remaining control parameters, including: classifying the state sequence and the remaining control parameters associated with the same test moment into a test set to obtain multiple test sets, wherein each test set corresponds to a test strategy, the test strategy records the test conditions and the test logic, the remaining control parameters are used to define the test conditions, and the state sequence is used to define the test logic; the standby automatic start-up device is tested using the test set associated with the test moment.
[0054] In this embodiment, when the standby automatic start-up device is tested, the communication function and logic function of the standby automatic start-up device are controlled according to the instructions of the control parameters, wherein the control logic function is mainly realized through the state sequence, and the state of the standby automatic start-up device is adjusted according to the record of the state sequence, while the control communication function is realized through the parameters (i.e., the remaining control parameters) in the target file that do not belong to the state sequence, and the communication lines (input lines and output lines) of the standby automatic start-up device are adjusted through the remaining control parameters to realize the control of the communication function of the standby automatic start-up device. When multiple rounds of tests are performed on the standby automatic start-up device, each round of tests corresponds to a different test time (the time when the test starts is determined as the test time), and the control parameters used in each round of tests are associated with the same test time. Therefore, in this embodiment, the test data set (i.e., test set) used in each round of tests can be screened by the test time. The specific attribute values of the control parameters contained in each test set are different, and the method of testing the standby automatic start-up device is different. Therefore, each test set corresponds to a test strategy. Since each round of testing needs to test both the communication function and the logic function, each test set contains parameters for controlling the communication function (i.e., the remaining control parameters) and parameters for controlling the logic function (i.e., the state sequence). When using the test set corresponding to each test moment to execute the corresponding test strategy, the test environment is created by controlling the parameters of the communication function (i.e., the remaining control parameters), and the test logic is defined through the state sequence to complete the complete test of the standby automatic transfer device.
[0055] Optionally, the standby automatic start-up device is tested using a test set associated with the test moment, including: for each test moment, determining the test set associated with the test moment, and configuring the data transmission channel in the target system according to the remaining control parameters in the test set; adjusting the status of each other device at different test moments according to the order defined by the status sequence in the test set, wherein the status includes: standby automatic start-up charging, standby automatic start-up starting, standby automatic start-up execution, and standby automatic start-up ending.
[0056] As mentioned in the previous embodiment, each test moment is associated with a test set, and each test set also includes parameters for controlling the communication function of the standby automatic reclosing device (i.e., the remaining control parameters) and parameters for controlling the logical function of the standby automatic reclosing device (i.e., the state sequence). In this embodiment, the communication function of the standby automatic reclosing device is controlled by configuring the data transmission channel in the system (i.e., the target system) to which the standby automatic reclosing device belongs according to the remaining control parameters; specifically, the output channels of the virtual terminals (publishing virtual terminals and receiving virtual terminals) of each component are automatically associated and arranged in the order of component numbers. For example, the short address inputs of the virtual terminals corresponding to the switch position, manual trip, and closing of component 1 are bound to output channels 1-3. When the Boolean value of the short address corresponding to the subsequent output channel is set to 1, the switch input information (switch position, manual trip, and closing) of the standby automatic reclosing device is set to 1 accordingly. The states of other devices communicating with the standby automatic re-start device in the same system (i.e., the target system) are adjusted according to the state sequence to realize the control of the logical functions of the standby automatic re-start device. For example, each standby automatic re-start action information is automatically associated according to the virtual terminal (publishing end virtual terminal and receiving end virtual terminal) information, and arranged in the order of the standby automatic re-start virtual terminals released. For example, the short addresses of the virtual terminals corresponding to the standby automatic re-start charging, standby automatic re-start energizing, standby automatic re-start success, standby automatic re-start failure, the tripping outlet of the component, and the closing outlet of the component are input and recorded to the input quantity channels 1-6. When the Boolean value corresponding to the short address of the subsequent input quantity channel is set to 1, the action information of the standby automatic re-start device (standby automatic re-start charging, standby automatic re-start energizing, standby automatic re-start success, standby automatic re-start failure) will be set to 1 accordingly. Among them, the standby automatic charging means that the standby automatic device is ready and waiting for the backup power supply switching to be executed; the standby automatic starting means that the main power failure is detected, and the standby automatic device immediately executes the operation of tripping the main power circuit breaker to prepare for switching to the backup power supply (the other equipment at this time is the equipment serving as the main power supply and the equipment serving as the backup power supply); the standby automatic execution means that the standby automatic device waits for a delay set time after tripping the main power circuit breaker and then closes the backup power circuit breaker (the other equipment at this time is the backup power circuit breaker and the equipment serving as the backup power supply); the standby automatic ending means that after the backup power circuit breaker is successfully closed and operates stably, the standby automatic device enters the end state.
[0057] According to some other optional embodiments of the present application, the testing method of the standby automatic start-up device also includes: in the process of testing the standby automatic start-up device, when each other device is in a different state, each other device is detected to obtain the actual parameter value of each other device during the test process; the actual parameter value is compared with the preset parameter value to obtain a comparison result, wherein the preset parameter value is the parameter value of each other device when it operates correctly according to the test logic; when the comparison result indicates that the preset parameter value is the same as the actual parameter value, each other device is configured to the next state of the current state, and the standby automatic start-up device is continued to be tested, wherein the next state is located next to the current state in the state sequence; when the comparison result indicates that the preset parameter value is different from the actual parameter value, information indicating a test abnormality is output.
[0058] In this embodiment, a standby automatic throw action state sequence is generated according to the fixed value parameters in the AST file, and the standby automatic throw device is controlled by the state sequence to charge the standby automatic throw, start the standby automatic throw, act the standby automatic throw, and run the standby automatic throw successfully in sequence to complete the whole process of the standby automatic throw device operation; according to the state sequence, all states such as the standby automatic throw success are simulated to determine whether the standby automatic throw action process is normal. During the whole process, the virtual terminal displacement situation of the standby automatic throw device is released, and the whole numerical value is recorded; the test result is determined according to the recorded numerical value. For example, step 1: the standby automatic throw charging state, set the output channel value. The main supply element with a priority of 1 sets the switch position to 1, the manual jump is 0, and it is 1 after closing, and the element voltage is greater than the pressure set value; the standby supply element with a priority of 2 sets the switch position to 0, the manual jump is 0, and it is 0 after closing, the element voltage is greater than the pressure set value, the bus voltage is greater than the pressure set value, and the actual parameter value of the standby automatic throw charging switch is 1, which is the same as the preset parameter value, then enter the next step (step 2), otherwise the action abnormality is judged and the information indicating the test abnormality is output. Step 2: The backup automatic start-up, the voltage of the main supply element with priority 1 and the bus voltage are less than the no-pressure setting value, and the actual parameter value of the backup automatic start switch is 1, then enter the next step (step 3), otherwise the abnormal action is judged and the information indicating the abnormal test is output. Step 3: After the delay setting time for waiting for the backup automatic switch to cut the main supply is met, the main supply element with priority 1 sets the switch position to 0, the manual trip is 0, and it is 1 after closing, and the backup automatic action switch is 1, then enter the next step (step 4), otherwise the abnormal action is judged and the information indicating the abnormal test is output. Step 4: After the switch trip waiting time (delay setting value) is met, the backup supply element with priority 2 sets the switch position to 0, the manual trip is 0, and it is 2 after closing, and the debugging output is ended. In the above execution process, the component mode meets the corresponding state of the backup automatic switch priority setting value, and when the bus and backup supply element voltage values meet the pressure setting value, the backup automatic switch should be charged correctly, otherwise it will be discharged; when the bus voltage value meets the no-pressure setting value and the main supply element current value meets the no-current setting value, the backup automatic switch should act, otherwise it will not act.
[0059] It should be noted that in the embodiments of the present application, except for 0 and 1 used to indicate priority, 0 and 1 indicating other signals (such as manual tripping, closing, and switch position) are all logical values in binary form, wherein 0 indicates circuit breaking, disconnection, and no signal input, and 1 indicates circuit closing, closing, and signal input. For example, a switch position of 0 indicates that the circuit breaker or switch is in an open state, that is, the switch does not conduct current, and the controlled circuit or device is disconnected from the power supply; a switch position of 1 indicates that the circuit breaker or switch is in a closed state, that is, the switch is closed to conduct the circuit, allowing current to pass, the circuit breaker is closed, and the circuit between the power supply and the load is connected through the circuit breaker. A manual trip of 0 indicates that there is no manual trip signal input, that is, the circuit breaker is not tripped due to manual operation (there may be a fault in the main power supply). A manual trip of 1 indicates that there is a manually triggered trip command, which usually means that the disconnection of the circuit breaker is caused by human operation (there is no fault in the main power supply). After closing, it is 0, indicating that the circuit breaker was not successfully closed, which means that the circuit breaker immediately tripped after being controlled by the backup automatic switching device to close, and failed to remain in the closed state; after closing, it is 1, indicating that the circuit breaker closing operation has been completed and the circuit breaker is in the closed state, that is, the switch is turned on, allowing current to pass.
[0060] Through the above steps, it is possible to automatically identify the target file that contains both the recorded contents of the CCD file and the recorded contents of the AST file, extract the relevant parameters of the virtual circuit of the standby automatic start-up device (i.e., the control parameters used to control the communication function) and the relevant parameters of the standby start-up logic (i.e., the control parameters used to control the logic function), and use the above control parameters to automatically adapt the standby automatic start-up power supply components and perform standby automatic start-up logic function tests, assist debugging personnel to quickly debug the logic of the digital standby automatic start-up device, and automatically determine whether the action process is correct; solve the problem that the logic debugging of the digital standby automatic start-up device is complicated and requires manual component matching, and realize the function of automatic testing of the standby automatic start-up device.
[0061] Figure 6 is a structural diagram of a test device for a backup automatic switching device provided in an embodiment of the present application, such as Figure 6 As shown, the test device for the standby automatic start-up device includes: a receiving module 60, which receives a target file for recording control parameters of the standby automatic start-up device, wherein the control parameters are used to control the communication function and logical function of the standby automatic start-up device; a parsing module 62, which is used to parse the target file to obtain the control parameters, and generate a state sequence according to the control parameters, wherein the state sequence corresponds to the logical function of the standby automatic start-up device, and the state sequence is used to record the state of other devices in the target system that communicate with the standby automatic start-up device, and the target system is the system to which the standby automatic start-up device belongs; a testing module 64, which is used to test the standby automatic start-up device according to the state sequence and the remaining control parameters, and output the test results, wherein the remaining control parameters are the control parameters recorded in the target file and not included in the state sequence, and the remaining control parameters are used to define the communication function of the standby automatic start-up device.
[0062] Figure 7 This is the working flow chart of the test device for the automatic switching device. Figure 7 As shown, the test device of the standby automatic start-up device starts working, and receives a file (i.e., a target file) recording the parameters (i.e., control parameters) for controlling the logical functions and communication functions of the standby automatic start-up device through the receiving module 60, wherein the above-mentioned target file can be transmitted by the user terminal to the terminal executing the method provided by the embodiment of the present application, or can be input by the user on the interactive interface of the terminal executing the method provided by the embodiment of the present application; the target file also includes the AST constant value file and the CCD configuration file. The receiving module 60 reads the AST constant value file and the CCD configuration file, checks whether the reading is successful, and determines whether the device type of the file matches. If not, the test is terminated. Next, the file received by the receiving module 60 is parsed by the parsing module 62, and the control parameters are extracted from it, wherein the relevant parameters representing the output quantities such as the switch position, manual trip, closing, current and voltage are extracted from the CCD configuration file; the parameters used to define the status of other devices communicating with the standby automatic start-up device in the same system (i.e., the target system) are extracted from the AST constant value file, and the state sequence of the standby automatic start-up logic is generated according to the parameters extracted from the AST constant value file, and the state sequence includes the states of the above-mentioned other devices at different test times. The test module 64 controls the standby automatic throw device to execute the corresponding logical action through the state sequence, simulates the working condition of the standby automatic throw element through the parameters (i.e., the remaining control parameters) in the target file that do not belong to the state sequence, completes the test of the standby automatic throw device under different test conditions and different standby automatic throw logics, and outputs the test results. In this embodiment, the output test results can be in the form of a report, and the test module 64 outputs the standby automatic throw action logic information and records the action report; outputs the standby automatic throw action logic information corresponding to mode 1 to mode N in sequence, and receives the standby automatic throw action information in sequence to form the action report of mode 1 to mode N; after the test is completed, the test report is output for reference by the debugging personnel.
[0063] It should be noted that Figure 6 The preferred implementation of the illustrated embodiment can be found in Figure 2 The relevant description of the illustrated embodiment will not be repeated here.
[0064] Figure 8 is a schematic diagram of a test system for a self-closing device. The method provided in the embodiment of the present application can also be performed by Figure 8 The system shown is executed as Figure 8 As shown, the test system of the standby automatic throw device includes: a file identification interface, a human-computer interaction unit, a logic processing unit, an information output unit and an information receiving unit. Among them, the file identification interface is used to receive and identify the target file containing the CDD file and the AST file. The CCD file records the control parameters for controlling the communication function of the standby automatic throw device, and the AST file records the control parameters for controlling the logical function of the standby automatic throw device. The human-computer interaction unit is used to present a human-computer interaction interface for the debugging personnel to input the target file, view the test results, or control the standby automatic throw device to achieve other functions. The logic processing unit is used to determine the standby automatic throw logic used during the test according to the parameters of the logical function of the standby automatic throw device, determine the test conditions according to the virtual terminal (publishing virtual terminal and receiving virtual terminal) information recorded in the target file, and transmit information to the standby automatic throw device through different data channels under different test conditions, simulate the external input of the digital standby automatic throw device, and transmit the state sequence of the standby automatic throw action logic process to the information output unit. At the same time, according to the collection results of the information receiving unit, it is automatically judged whether the standby automatic throw action logic is correct. The information output unit is used to output the state quantity corresponding to the logic process state sequence that the logic processing unit needs to test to the digital standby automatic transfer device; the information receiving unit is used to receive the action information output by the digital standby automatic transfer device, such as the standby automatic transfer charging success, the standby automatic transfer action success, the standby automatic transfer failure, the component tripping output, the component closing output, the load shedding output and other information.
[0065] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the above test method of the automatic backup device through the computer program.
[0066] The processor in the above-mentioned electronic device is used to run a program that performs the following functions: receiving a target file for recording control parameters of the standby automatic start-up device, wherein the control parameters are used to control the communication function and logical function of the standby automatic start-up device; parsing the target file to obtain the control parameters, and generating a state sequence based on the control parameters, wherein the state sequence corresponds to the logical function of the standby automatic start-up device, and the state sequence is used to record the state of other devices in the target system that communicate with the standby automatic start-up device, and the target system is the system to which the standby automatic start-up device belongs; testing the standby automatic start-up device according to the state sequence and the remaining control parameters, and outputting the test results, wherein the remaining control parameters are control parameters recorded in the target file and not included in the state sequence, and the remaining control parameters are used to define the communication function of the standby automatic start-up device.
[0067] The embodiment of the present application also provides a computer program product, including computer instructions, which implement the steps of the above-mentioned test method of the automatic backup device when executed by a processor.
[0068] It should be noted that the various modules in the test device of the above-mentioned standby automatic start-up device can be program modules (for example, a set of program instructions that implement a certain specific function) or hardware modules. For the latter, it can be expressed in the following forms, but is not limited to this: the expression form of each of the above-mentioned modules is a processor, or the functions of each of the above-mentioned modules are implemented by a processor.
[0069] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0070] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0071] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0072] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0073] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0074] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the relevant technology or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.
[0075] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.< / goosepub> < / goosepub>
Claims
1. A method for testing a self-closing device, characterized in that: include: Receiving a target file for recording control parameters of a standby automatic start-up device, wherein the control parameters are used to control a communication function and a logic function of the standby automatic start-up device; Parsing the target file to obtain the control parameters, and generating a state sequence according to the control parameters, wherein the state sequence corresponds to the logical function of the standby automatic start-up device, and the state sequence is used to record the states of other devices in the target system that communicate with the standby automatic start-up device, and the target system is the system to which the standby automatic start-up device belongs; The standby automatic start-up device is tested according to the state sequence and the remaining control parameters, and the test results are output, wherein the remaining control parameters are control parameters recorded in the target file and not included in the state sequence, and the remaining control parameters are used to define the communication function of the standby automatic start-up device.
2. The method according to claim 1, characterized in that The control parameters include: first type parameters used when controlling the communication between the standby automatic transfer device and other devices in the target system; the target file is parsed to obtain the control parameters, including: Extracting a first parameter set related to a receiving virtual terminal of the standby automatic power-on device from the target file, and extracting a second parameter set related to a publishing virtual terminal of the standby automatic power-on device, wherein the receiving virtual terminal is a virtual interface of the standby automatic power-on device for receiving data, and the publishing virtual terminal is a virtual interface of the standby automatic power-on device for publishing data; The target data associated with the target multicast address in the first parameter set and the second parameter set is determined as the first type of parameters, wherein the target multicast address is the multicast address of the backup automatic transfer device.
3. The method according to claim 1, characterized in that The control parameters also include: a second type of parameters for controlling the operating state of the standby automatic transfer device; parsing the target file to obtain the control parameters also includes: Determine the fixed value parameters in the target file as the second category parameters, wherein the fixed value parameters include: priority parameters and attribute parameters, the priority parameters are used to describe the backup automatic switching priority of each of the other devices, the backup automatic switching priority is used to indicate the order of each of the other devices as a backup power supply, the attribute parameters are used to describe the attributes of each of the other devices, and the attribute parameters include: pressure set value, no pressure set value, no current set value, and delay set value.
4. The method according to claim 1, characterized in that: Generating a state sequence according to the control parameters includes: Extracting a priority parameter from the control parameter, wherein the priority parameter is used to describe the backup automatic power supply priority of each of the other devices, and the backup automatic power supply priority is used to indicate the order in which each of the other devices serves as a backup power supply; The control parameters associated with each of the other devices are arranged according to the priority parameter to obtain the state sequence.
5. The method according to claim 1, characterized in that Testing the standby automatic switching device according to the state sequence and the remaining control parameters includes: Classifying the state sequence and the remaining control parameters associated with the same test moment into a test set to obtain a plurality of the test sets, wherein each test set corresponds to a test strategy, the test strategy records a test condition and a test logic, the remaining control parameters are used to define the test condition, and the state sequence is used to define the test logic; The standby automatic transfer device is tested using a test set associated with the test moment.
6. The method according to claim 5, characterized in that The standby automatic switching device is tested using a test set associated with the test time, including: For each of the test moments, determining the test set associated with the test moment, and configuring the data transmission channel in the target system according to the remaining control parameters in the test set; The states of each of the other devices at different test times are adjusted in the order defined by the state sequence in the test set, wherein the states include: standby automatic charging, standby automatic starting, standby automatic starting execution, and standby automatic starting completion.
7. The method according to claim 6, characterized in that The method further comprises: During the test of the standby automatic switching device, when each of the other devices is in a different state, each of the other devices is detected to obtain an actual parameter value of each of the other devices during the test; Comparing the actual parameter value with the preset parameter value to obtain a comparison result, wherein the preset parameter value is the parameter value when each of the other devices operates correctly according to the test logic; When the comparison result indicates that the preset parameter value is the same as the actual parameter value, each of the other devices is configured to be the next state of the current state, and the standby automatic transfer device is continuously tested, wherein the next state is located next to the current state in the state sequence; In the case where the comparison result indicates that the preset parameter value is different from the actual parameter value, information indicating a test abnormality is output.
8. A test device for a self-closing device, characterized in that: include: A receiving module receives a target file for recording control parameters of the standby automatic start-up device, wherein the control parameters are used to control the communication function and logic function of the standby automatic start-up device; A parsing module, used for parsing the target file to obtain the control parameters, and generating a state sequence according to the control parameters, wherein the state sequence corresponds to the logical function of the standby automatic start-up device, and the state sequence is used to record the state of other devices in the target system that communicate with the standby automatic start-up device, and the target system is the system to which the standby automatic start-up device belongs; A test module is used to test the standby automatic start-up device according to the state sequence and the remaining control parameters, and output the test results, wherein the remaining control parameters are control parameters recorded in the target file and not included in the state sequence, and the remaining control parameters are used to define the communication function of the standby automatic start-up device.
9. An electronic device, comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to execute the test method of the automatic start-up device according to any one of claims 1 to 7 through the computer program.
10. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by the processor, the steps of the test method of the backup automatic start device described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Spare automatic switching comprehensive tester
CN101750555A
Spare power automatic switching device monitoring method and device, electronic equipment and storage medium
CN113258671A
Spare power automatic switching non-power-cut visual test method and device based on digital analog circuit breaker
CN113533889A
Automated emergency power supply test featuring user selection of load percentage or exhaust temperature
US20120109552A1
Cited By
Method and system for testing uninterrupted spare power automatic switching device based on visual control
CN120539511A
Automatic test method, system and equipment for spare power automatic switching device and storage medium
CN122410185A