Configuration method, electronic device, cluster measurement and control device, and readable storage medium
By monitoring user commands and configuration files through the management board of the cluster monitoring and control device, the container monitoring and control type can be switched, which solves the virtual monitoring and control type requirements of different power stations, and realizes flexible configuration and improves system reliability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CYG SUNRI CO LTD
- Filing Date
- 2023-02-23
- Publication Date
- 2026-06-05
AI Technical Summary
Existing cluster monitoring and control devices cannot meet the virtual monitoring and control requirements of different power stations, resulting in an inability to achieve flexible configuration.
The cluster monitoring and control device monitors user-input switching commands through its management board, updates configuration files, and switches the container's monitoring and control type based on the configuration file upon restart. The interactive module enables flexible container configuration.
It enables flexible switching of container monitoring and control types in the cluster monitoring and control device, improves the reliability and adaptability of the system, and meets the testing needs of different power stations.
Smart Images

Figure CN116319267B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of power system automation technology, and in particular relates to a configuration method, electronic equipment, cluster monitoring and control device, and readable storage medium. Background Technology
[0002] In power systems, the application of cluster monitoring and control systems can solve the problems of poor communication quality and high failure rates in current substations. Cluster monitoring and control systems applied to smart substations consist of monitoring equipment, cluster monitoring and control devices, intelligent terminals, and gateways. The cluster monitoring and control device integrates multiple bay monitoring and control devices into a high-end embedded multi-bay monitoring and control device, which is then grouped into a cluster. Within the cluster, multiple bay monitoring and control devices act as backups for each other, solving the problem of insufficient redundancy in single-set monitoring and control systems and improving the reliability of the monitoring system.
[0003] In existing technologies, the virtual monitoring and control types integrated in cluster monitoring and control devices are fixed. However, in practical applications, different power stations have different requirements for virtual monitoring and control types, and the existing virtual monitoring and control types of cluster monitoring and control devices cannot meet the testing needs of different stations. Summary of the Invention
[0004] This application provides a configuration method, electronic device, cluster monitoring and control device, and readable storage medium, achieving the goal of flexibly configuring container monitoring and control types.
[0005] In a first aspect, embodiments of this application provide a configuration method applied to the management board of a cluster monitoring and control device, wherein the cluster monitoring and control device includes multiple containers, each container corresponding to a monitoring and control type, including:
[0006] Monitor user-input switching commands, the switching commands including a target number;
[0007] When the switching instruction is detected, the configuration file is updated according to the switching instruction;
[0008] In response to the restart command, the measurement and control type of the container corresponding to the target number is switched according to the configuration file.
[0009] It should be understood that, on the one hand, the cluster monitoring and control device contains multiple containers, each running a virtual monitoring and control function program for a specific interval. On the other hand, the configuration file is an interval configuration file, which sets the virtual monitoring and control type corresponding to each container, allocates independent memory space, Intelligent Electronic Device (IED) capability description file model, and line connection relationships for the interval logical function corresponding to each container, so that the containers carrying different virtual intervals can operate independently without affecting each other.
[0010] In one possible implementation of the first aspect, the monitoring of user input switching instructions includes:
[0011] The user-input switching operation information is monitored through the interaction module of the cluster monitoring and control device;
[0012] Use the container number contained in the switching operation information as the target number;
[0013] A switching instruction is obtained based on the target number.
[0014] It should be understood that the interaction module of the cluster monitoring and control device can be an LCD touch screen. It should be noted that the interaction module in this embodiment is a solution proposed in this application to achieve flexible configuration of container monitoring and control types, used to monitor user input switching operations to achieve the purpose of flexible configuration.
[0015] In one possible implementation of the first aspect, the step of switching the monitoring and control type of the container corresponding to the target number according to the configuration file in response to a restart command includes:
[0016] In response to a restart command, a backup file is obtained, the backup file including a first type for each of the multiple containers, the first type being the monitoring and control type corresponding to the container during the last run of the cluster monitoring and control device;
[0017] The container number whose backup file does not match the measurement and control type in the configuration file is determined as the target number;
[0018] The measurement and control type of the container corresponding to the target number in the configuration file is taken as the second type of the container corresponding to the target number;
[0019] Based on the second type of the container corresponding to the target number, determine the measurement and control parameters of the container corresponding to the target number;
[0020] Set the operating parameters and customized parameters of the container corresponding to the target number according to the measurement and control parameters of the container corresponding to the target number.
[0021] It should be understood that the backup file is a file pre-stored on the management board, used to store the measurement and control type corresponding to the container during the last run of the cluster measurement and control device. It should be noted that at the end of each shutdown, a backup is performed based on the virtual measurement and control type during the current operation of each container, resulting in the backup file.
[0022] In one possible implementation of the first aspect, determining the measurement and control parameters of the container corresponding to the target number based on the second type of the container corresponding to the target number includes:
[0023] A request instruction is generated based on the second type of the container corresponding to the target number, and the request instruction is sent to the interaction module of the cluster monitoring and control device;
[0024] The configuration parameters input by the user are obtained through the interaction module of the cluster monitoring and control device;
[0025] The configuration parameters are used as the measurement and control parameters for the container corresponding to the target number.
[0026] In one possible implementation of the first aspect, determining the measurement and control parameters of the container corresponding to the target number based on the second type of the container corresponding to the target number includes:
[0027] The measurement and control parameters corresponding to the second type are obtained according to the pre-stored parameter file, wherein the parameter file stores the measurement and control parameters corresponding to each measurement and control type.
[0028] It should be understood that after switching the measurement and control type of a container, the measurement and control parameters of the container also need to be adjusted accordingly. On the one hand, the parameters of the container whose measurement and control type has changed can be set according to the parameters input by the user; on the other hand, the measurement and control parameters of different measurement and control types are pre-stored in the management board, and the measurement and control parameters of the container whose measurement and control type has changed can be obtained directly.
[0029] In one possible implementation of the first aspect, updating the configuration file according to the switching instruction upon detection includes:
[0030] Based on the measurement and control type corresponding to each container contained in the pre-stored configuration file, obtain a temporary file;
[0031] Obtain the target number contained in the switching instruction;
[0032] The measurement and control type of the container corresponding to the target number in the temporary file is set according to the preset switching type;
[0033] Update the configuration file based on the temporary file.
[0034] It should be understood that, in order to avoid abnormal storage of configuration files due to power outages or other abnormal situations during the switching process, before updating the configuration file, the measurement and control types of all containers in the original configuration file are stored in a temporary file. The temporary file is modified according to the type switching operation, and the modified temporary file overwrites the original configuration file as the configuration file after the type switch.
[0035] In one possible implementation of the first aspect, the preset switching type is bus monitoring or bay monitoring, and setting the monitoring type of the container corresponding to the target number in the temporary file according to the preset switching type includes:
[0036] If the measurement and control type of the container corresponding to the target number in the temporary file is bus measurement and control, then change the measurement and control type of the container corresponding to the target number in the temporary file to interval measurement and control.
[0037] If the measurement and control type of the container corresponding to the target number in the temporary file is interval measurement and control, then the measurement and control type of the container corresponding to the target number in the temporary file will be changed to bus measurement and control.
[0038] In a second aspect, embodiments of this application provide an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor performs the configuration method as described in the first aspect.
[0039] Thirdly, embodiments of this application provide a cluster monitoring and control device, including the electronic equipment and interaction module described in the second aspect.
[0040] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the configuration method described in the first aspect.
[0041] It is understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here.
[0042] The beneficial effects of this application embodiment compared with the prior art are as follows: when the switching instruction is detected, the configuration file is updated according to the switching instruction; in response to the restart instruction, the measurement and control type of the container corresponding to the target number is switched according to the configuration file. The configuration method provided by this application allows users to directly perform type switching operations on containers whose types need to be adjusted. The management board of the cluster measurement and control device updates the configuration file for the measurement and control types of the managed containers in response to the switching instruction, and switches the measurement and control type of the container corresponding to the target number according to the updated configuration file during restart initialization, thus achieving the purpose of flexibly switching the measurement and control types of containers. Attached Figure Description
[0043] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0044] Figure 1 This is a schematic diagram of the structure of the cluster monitoring and control device provided in the embodiments of this application;
[0045] Figure 2 This is a schematic diagram of data transmission of the cluster monitoring and control device provided in the embodiments of this application;
[0046] Figure 3 This is a flowchart illustrating the configuration method provided in the embodiments of this application. Figure 1 ;
[0047] Figure 4 This is a schematic diagram of the configuration menu provided in the embodiments of this application. Figure 1 ;
[0048] Figure 5 This is a schematic diagram of the configuration menu provided in the embodiments of this application. Figure 2 ;
[0049] Figure 6 This is a flowchart illustrating the configuration method provided in the embodiments of this application. Figure 2 ;
[0050] Figure 7 This is a schematic diagram of the configuration device provided in the embodiments of this application;
[0051] Figure 8 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0052] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0053] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0054] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0055] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "once" or "in response to determination" or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined" or "in response to determination" or "once detected [the described condition or event]" or "in response to detection [the described condition or event]."
[0056] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0057] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized.
[0058] Figure 1 This is a schematic diagram of the structure of the cluster monitoring and control device provided in this application embodiment. Exemplarily, the cluster monitoring and control device includes a system-on-a-chip (SoC), a management board, monitoring and control board 1, monitoring and control board 2, a function input board, a power supply board, and an interaction module. The various components in the cluster monitoring and control device communicate with each other via a high-speed bus. Specifically, the SoC is a 70z20 and a highly integrated dual-core 800MHz SoC, and the management board is a quad-core, 64-bit, 1.6GHz L1043.
[0059] For example, the interaction module is a monochrome LCD panel with touch operation functionality. Specifically, the interaction module displays a configuration menu for switching containers and generates commands based on user operations, enabling the management board to respond to user input and flexibly switch container types. It should be noted that the interaction module is a new hardware structure proposed in this application to achieve flexible container type switching, based on the existing cluster monitoring and control device structure; the specific device model of the interaction module will not be shown here.
[0060] Figure 2 This is a schematic diagram of data transmission from the cluster monitoring and control device provided in an embodiment of this application. For example... Figure 2As shown, the system-on-a-chip (SoC) handles data acquisition, computation, and control output for several telemetry and control devices. The management board is used for overall system management, display, and communication via the Microsoft Media Server protocol. The telemetry and control board is a dual-core CPU board, with two Zynq7000 chips per board. Each chip contains two Cortex-A9 cores and one Field-Programmable Gate Array (FPGA). Telemetry and control board 1 implements the functions of eight virtual telemetry and control devices, while board 2 implements seven. Three cores within each board handle all telemetry, telesignaling, and synchronization data calculations and logical judgments, while a separate core handles all SV / GOOSE message processing. The management board has four homogeneous cores running a Linux system, responsible for redundancy management, setting the corresponding interval type for each core's container, and downloading applications to the corresponding containers via the management bus. It monitors the operating status of the actual telemetry and control devices and enables automatic activation and deactivation of the virtual telemetry and control devices. The management board has four direct-connect lines from its FPGA to communicate with the sub-boards, responsible for collecting measurement and control data and board operating status from each sub-board, and uploading information to the remote control and monitoring server based on the 61850 protocol. It should be understood that this application uses container virtualization technology, with a single device configured with multiple independent Linux containers, each corresponding to a virtual measurement and control device in a specific bay. The logical functions of each bay in the cluster measurement and control device are independent and isolated. Each container's virtual measurement and control type is set based on the bay configuration file CKconf.xml, and independent memory space, communication configuration files, and socket connections are allocated to each bay's logical function, avoiding interference between different bays.
[0061] Specifically, the management board provides the following management functions: First, the management board is responsible for managing the overall system status, allocating and verifying virtual measurement and control for multiple containers, and managing the entry / exit of each container; Second, the management board is responsible for collecting GOOSE / SV messages from the process layer, parsing the messages, performing measurement and control related calculations, implementing five-prevention interlocking functions, and recording displacement and alarm events; Third, the GOOSE / SV messages received by the management board are divided by this module and distributed to the corresponding virtual measurement and control within the measurement and control board for analysis and processing; Internally, it collects the calculation results from each measurement and control board, aggregates them to the management board, and sends the information to the remote control and monitoring server at the station control layer based on the 61850 protocol.
[0062] Figure 3 This is a flowchart illustrating the configuration method provided in the embodiments of this application. Figure 1 .like Figure 3 As shown, the configuration method provided in this application embodiment may include the following steps:
[0063] S301: Monitors user-input switching commands, which include the target number.
[0064] In one possible implementation, the user-input switching operation information can be monitored through the interaction module of the cluster monitoring and control device; the container number contained in the switching operation information can be used as the target number; and the switching instruction can be obtained based on the target number.
[0065] Figure 4 This is a schematic diagram of the configuration menu provided in the embodiments of this application. Figure 1 .like Figure 4 As shown, the first-level menu of the configuration menu is titled with "Number," "ID Name," "Operating Status," and "Menu Entry." In this embodiment, the menu corresponding to number 00 is an interactive menu designed to enable container type switching. Specifically, the IED name for number 00 is "Redundant Backup Measurement and Control," and its operating status is "In Operation." Users can select "Enter Menu" for number 00 to view the second-level menu corresponding to "Redundant Backup Measurement and Control." Specifically, the second-level menu includes "Operating Information," "User Settings," "Manufacturer Settings," and other information. Users can click "Manufacturer Settings" to enter the interactive interface for switching container types. The Manufacturer Settings interface displays the virtual measurement and control number and its corresponding measurement and control type. For example, the measurement and control type of virtual measurement and control 01 is "Bus Measurement and Control." When a user clicks "Bus Measurement and Control" on virtual measurement and control 01 according to on-site measurement and control requirements, the displayed "Bus Measurement and Control" is switched to "Interval Measurement and Control." It should be understood that users can switch the measurement and control types of multiple virtual measurement and control devices on the Manufacturer Settings interface according to actual measurement and control requirements.
[0066] For example, when a user clicks on "Bus Measurement and Control" of Virtual Measurement and Control 01 according to the on-site measurement and control requirements, 01 will be used as the target number.
[0067] It should be noted that the switching commands monitored by user input in this embodiment are not limited to the method implemented by the interaction module described above. For example, user input switching commands can also be obtained based on the host computer's interactive interface. It should be understood that the configuration menu displayed on the host computer interface and... Figure 4 The menu functions in the embodiments are the same, and the process of monitoring switching commands based on the host computer interface will not be described again here.
[0068] S302: When a switching command is detected, update the configuration file according to the switching command.
[0069] In this embodiment of the application, for example, when the interaction module detects that the user is... Figure 4 After clicking "Bus Monitoring and Control" in the configuration menu of the example, a switching instruction containing the target number "01" is obtained. Specifically, after obtaining the target number "01" corresponding to the container to be configured based on the monitored switching instruction, the step of updating the configuration file according to the switching instruction is continued.
[0070] It should be understood that the configuration file is a pre-stored file containing the measurement and control types corresponding to all containers. For example, the configuration file is CKconf.xml. In this embodiment, the interval information corresponding to each container is obtained by parsing the CKconf.xml file, thereby determining the interval type set for each container and associating the virtual measurement and control within the container with the actual interval measurement and control device. For example, the contents of the CKconf.xml file are shown in Table 1:
[0071] Table 1
[0072] Container number Virtual measurement and control type Corresponding interval Corresponding communication configuration file Corresponding interval model file 01 DM-1 CL1101 CL1101.cid CL1101.icd 02 DM-4 CM1102 CM1102.cid CM1102.icd 03 DM-4 CM1102 CM1102.cid CM1102.icd 04 DM-4 CM1102 CM1102.cid CM1102.icd 05 DM-4 CM1102 CM1102.cid CM1102.icd 06 DM-4 CM1102 CM1102.cid CM1102.icd 07 DM-4 CM1102 CM1102.cid CM1102.icd 08 DM-4 CM1102 CM1102.cid CM1102.icd 09 DM-4 CM1102 CM1102.cid CM1102.icd 10 DM-4 CM1102 CM1102.cid CM1102.icd 11 DM-4 CM1102 CM1102.cid CM1102.icd 12 DM-4 CM1102 CM1102.cid CM1102.icd 13 DM-4 CM1102 CM1102.cid CM1102.icd 14 DM-4 CM1102 CM1102.cid CM1102.icd 15 DM-4 CM1102 CM1102.cid CM1102.icd
[0073] In this embodiment of the application, after the target number is determined to be "01" according to the switching instruction, the measurement and control type of container number 01 in Table 1 is switched from "bus measurement and control" to "bay measurement and control", that is, the virtual measurement and control type corresponding to container number 01 in Table 1 is switched from "DM-1" to "DM-4", where "DM-1" represents "bus measurement and control" and "DM-4" represents "bay measurement and control".
[0074] It should be understood that, in the embodiments of this application, according to the actual application requirements of the power system, the measurement and control type is set to include "bus measurement and control" being switched to "interval measurement and control". That is, after the target number to be configured is determined, it is determined that the measurement and control type of the container corresponding to the number has been adjusted. The purpose of flexibly switching the container measurement and control type can be achieved by directly switching the measurement and control type of the container corresponding to the target number to another measurement and control type.
[0075] It should be noted that the container monitoring and control type switching process provided in this application can also provide other monitoring and control types according to on-site needs. Users can select the container number to be adjusted in the interactive module. Specifically, when the user operates on the configuration menu displayed in the interactive module, they select the container number to be configured and the new monitoring and control type. For example, the switching instruction includes the target number and the new monitoring and control type, and the configuration file is updated according to the target number and the new monitoring and control type.
[0076] S303: In response to a restart command, switch the measurement and control type of the container corresponding to the target number according to the configuration file.
[0077] In this embodiment, during the initialization process after the cluster monitoring and control device restarts, the management board parses the configuration file to obtain the virtual monitoring and control type, the corresponding actual interval, and the matching communication configuration file and model file for each container. Specifically, it obtains the type of the monitoring and control device being replaced on-site by parsing the CKconf.xml file, and sets the virtual monitoring and control type within the corresponding container accordingly. Furthermore, it parses the CKconf.xml file to associate the virtual monitoring and control within the container with the corresponding interval model file, adopts an automatic identification scheme for communication configuration files, uses the interval model file of the actual monitoring and control device based on the overall site configuration file, establishes LN, DO, and GOOSE sending control blocks based on the interval model file, and obtains communication parameters such as IP address, multicast address, and APP ID, as well as the virtual terminal contact table, from the interval model file. The mapping address is modified by converting the virtual monitoring and control device's communication configuration file through variable mapping and by redefining the short address description method and establishing a unified variable mapping.
[0078] It should be understood that during the process of configuring the measurement and control type of the container corresponding to the target number according to the configuration file, the measurement and control parameters are different for different measurement and control types. Therefore, it is necessary to adjust the measurement and control parameters of the container corresponding to the target number. It should be noted that before adjusting the measurement and control parameters of the container corresponding to the target number, the target number corresponding to the container whose measurement and control type has changed should be determined according to the backup file and the configuration file.
[0079] In one possible implementation, the process of determining the target number after the cluster monitoring and control device restarts is as follows:
[0080] First, in response to the restart command, backup files are retrieved. Specifically, the backup files include the first type for each of the multiple containers. It should be understood that a backup area is allocated in the management board's memory, where the measurement and control types for this container run are backed up and stored; that is, the measurement and control types corresponding to the containers during the last run of the cluster's measurement and control device are stored in the backup files.
[0081] Secondly, the container numbers whose measurement and control types are inconsistent with those in the backup file and configuration file are identified as the target numbers corresponding to the containers whose measurement and control types have changed.
[0082] Secondly, the measurement and control type of the container corresponding to the target number in the configuration file is set as the second type of the container corresponding to the target number. It should be understood that during the configuration file update process in S302, the measurement and control type corresponding to the target number in the configuration file is determined to be the switched measurement and control type, and adjustments need to be made according to the measurement and control parameters of the container corresponding to the switched measurement and control type.
[0083] Finally, based on the second type of the container corresponding to the target number, the measurement and control parameters of the container corresponding to the target number are determined, and the operating parameters and customized parameters of the container corresponding to the target number are set according to the measurement and control parameters of the container corresponding to the target number.
[0084] In one possible embodiment, a request instruction is generated based on the second type of the container corresponding to the target number, and the request instruction is sent to the interaction module of the cluster monitoring and control device; the configuration parameters input by the user are obtained through the interaction module of the cluster monitoring and control device; and the configuration parameters are used as the monitoring and control parameters of the container corresponding to the target number.
[0085] For example, Figure 5 This is a schematic diagram of the configuration menu provided in the embodiments of this application. Figure 2 After generating a request instruction based on the second type of container corresponding to the target number, the management board sends the request instruction for obtaining measurement and control parameters to the interaction module for display. After the user clicks to confirm, for example, as shown... Figure 5 As shown, the configuration menu is displayed. The first-level menu of the configuration menu is titled as Number, IDE Name, Running Status, and Menu Entry. In this embodiment, the user can select the menu with number 01, "Enter Menu," to display the second-level menu corresponding to Virtual Measurement and Control 01. Specifically, the second-level menu corresponding to Virtual Measurement and Control 01 includes Running Information, User Settings, Manufacturer Settings, and Other Information. The user can click "Running Information" to determine the current container's running version information, which includes the measurement and control type. The user can click "User Settings" to access the setting parameter options. For example, when the measurement and control type of Virtual Measurement and Control 01 is switched to "Interval Measurement and Control," the displayed setting parameter options are: Telemetry Parameters, Remote Signaling Parameters, Remote Control Parameters, Synchronization Parameters, Pressure Plate Settings, and Password Management. For example, when the measurement and control type of Virtual Measurement and Control 01 is switched to "Bus Measurement and Control," the displayed setting parameter options are: Telemetry Parameters, Remote Signaling Parameters, Remote Control Parameters, Pressure Plate Settings, and Password Management. The user can click the corresponding option to set the configuration parameters.
[0086] In one possible embodiment, the measurement and control parameters corresponding to the second type are obtained according to a pre-stored parameter file, wherein the parameter file stores the measurement and control parameters corresponding to each measurement and control type. It should be understood that within the same power system, a parameter file can be set to pre-store the measurement and control parameters corresponding to each measurement and control type. After it is determined that the measurement and control type of a container has been switched, the measurement and control parameters of the container to be configured are directly obtained according to the measurement and control parameters stored in the measurement and control file. For example, the measurement and control parameters contained in the parameter file can be set by the user in the interaction module. It should be understood that after the user sets the measurement and control parameters in the interaction module, the management board backs up the measurement and control parameters entered by the user and records them in the parameter file. It is important to understand that by storing the measurement and control parameters corresponding to each measurement and control type in the parameter file, the user's parameter setting process is simplified, and the efficiency of switching container measurement and control types is improved.
[0087] The configuration method provided in this application provides an interactive module, which allows users to directly switch the type of containers that need to be adjusted. The management board of the cluster monitoring and control device updates the configuration file of the monitoring and control type of the managed container in response to the switching operation, and switches the monitoring and control type of the container corresponding to the target number according to the updated configuration file during restart initialization, thereby achieving the purpose of flexibly switching the monitoring and control type of the container.
[0088] Figure 6 This is a flowchart illustrating the configuration method provided in the embodiments of this application. Figure 2 .like Figure 6 As shown, in Figure 3 Based on the provided embodiment, the process of updating the configuration file in S302 specifically includes the following steps:
[0089] S601: Obtain temporary files based on the measurement and control type corresponding to each container contained in the pre-stored configuration file.
[0090] In this embodiment, if an abnormal interruption or data anomaly occurs during the process of directly updating the configuration file based on the target number, it will lead to errors in the data stored in the configuration file, affecting the function of the cluster monitoring and control device. It should be understood that before updating the configuration file based on the target number, the configuration file is backed up, temporary storage space is allocated in the memory of the management board, and temporary files are generated according to the monitoring and control type corresponding to each container in the pre-stored configuration file.
[0091] S602: Obtain the target number contained in the switching instruction.
[0092] In the embodiments of this application, by way of example, in Figure 4In the configuration menu shown, when a user clicks "Bus Monitoring and Control" on Virtual Monitoring and Control 01 according to the on-site monitoring and control requirements, 01 is used as the target number. The interaction module generates a switching command based on the user's operation and sends the switching command to the management board. After parsing the switching command, the management board obtains the target number.
[0093] S603: Set the measurement and control type of the container corresponding to the target number in the temporary file according to the preset switching type.
[0094] For example, the preset switching type is bus monitoring and control or bay monitoring and control. It should be noted that monitoring and control types other than bus monitoring and control or bay monitoring and control can be added to the preset monitoring and control types according to the actual monitoring and control needs of the power system, providing users with more monitoring and control type switching options.
[0095] In one possible embodiment, if the measurement and control type of the container corresponding to the target number in the temporary file is bus measurement and control, then the measurement and control type of the container corresponding to the target number in the temporary file is changed to interval measurement and control; if the measurement and control type of the container corresponding to the target number in the temporary file is interval measurement and control, then the measurement and control type of the container corresponding to the target number in the temporary file is changed to bus measurement and control.
[0096] It should be understood that once the target number to be configured is determined, it means that the measurement and control type of the container corresponding to that number has been adjusted. The purpose of flexibly switching the measurement and control type of the container can be achieved by directly switching the measurement and control type of the container corresponding to the target number to another measurement and control type.
[0097] S604: Update the configuration file based on the temporary file.
[0098] In this embodiment of the application, the updated configuration file is overwritten, thereby enabling the switching of the measurement and control type of the container corresponding to the target number in the configuration file based on the switching instruction while retaining the original configuration file.
[0099] The configuration method provided in this application provides a temporary file by temporarily backing up the configuration file and updating the backed-up temporary file according to the switching instruction. This avoids the situation where the configuration file update fails due to program abnormalities during the direct update of the configuration file, thereby improving the success rate of updating the configuration file and the success rate of switching container monitoring and control types.
[0100] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0101] Corresponding to the configuration method in the above embodiments, Figure 7This is a schematic diagram of the configuration device provided in the embodiments of this application. For ease of explanation, only the parts related to the embodiments of this application are shown.
[0102] like Figure 7 As shown, the configuration device provided in this application embodiment includes: a monitoring module 701, an update module 702, and a switching module 703.
[0103] The monitoring module 701 is used to monitor the switching command input by the user, the switching command including the target number;
[0104] Update module 702 is used to monitor when the switching instruction is detected and update the configuration file according to the switching instruction;
[0105] The switching module 703 is used to switch the measurement and control type of the container corresponding to the target number according to the configuration file in response to the restart command.
[0106] It should be noted that the information interaction and execution process between the above modules / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.
[0107] in addition, Figure 7 The configuration device shown can be a software unit, hardware unit, or a combination of software and hardware built into an existing terminal device, or it can be integrated into the terminal device as an independent component, or it can exist as an independent terminal device.
[0108] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0109] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device 80 provided in this embodiment includes: at least one processor 81 ( Figure 8(Only one is shown in the diagram), memory 82, and computer program 83 stored in said memory 82 and executable on said at least one processor 81, wherein said processor 81 executes said computer program 83 to perform the steps performed by the electronic device in any of the above configuration method embodiments.
[0110] The processor 81 may be a central processing unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.
[0111] In some embodiments, the memory 82 may be an internal storage unit of the electronic device 80, such as a hard disk or RAM of the electronic device 80. In other embodiments, the memory 82 may be an external storage device of the electronic device 80, such as a plug-in hard disk, smart memory card (SMC), secure digital card (SD), flash memory card, etc., equipped on the electronic device 80. Furthermore, the electronic device 80 may include both internal and external storage units. The memory 82 is used to store the operating system, applications, boot loader, data, and other programs, such as the program code of the computer program. The memory 82 can also be used to temporarily store data that has been output or will be output.
[0112] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the steps in any of the above-described configuration method embodiments.
[0113] This application provides a computer program product that, when run on a terminal device, enables the terminal device to implement the steps described in any of the above configuration method embodiments.
[0114] If the integrated unit is implemented as 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, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a device / terminal equipment, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.
[0115] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0116] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0117] In the embodiments provided in this application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling or direct coupling or communication connection may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0118] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0119] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A configuration method applied to the management board of a cluster monitoring and control device, the cluster monitoring and control device comprising multiple containers, each container corresponding to a monitoring and control type, characterized in that, include: Monitor user-input switching commands, the switching commands including a target number; When the switching instruction is detected, the configuration file is updated according to the switching instruction; In response to the restart command, the measurement and control type of the container corresponding to the target number is switched according to the configuration file.
2. The method according to claim 1, characterized in that, The monitoring of user input switching commands includes: The user-input switching operation information is monitored through the interaction module of the cluster monitoring and control device; Use the container number contained in the switching operation information as the target number; A switching instruction is obtained based on the target number.
3. The method according to claim 1, characterized in that, The step of responding to a restart command and switching the monitoring and control type of the container corresponding to the target number according to the configuration file includes: In response to a restart command, a backup file is obtained, the backup file including a first type for each of the multiple containers, the first type being the monitoring and control type corresponding to the container during the last run of the cluster monitoring and control device; The container number whose backup file does not match the measurement and control type in the configuration file is determined as the target number; The measurement and control type of the container corresponding to the target number in the configuration file is taken as the second type of the container corresponding to the target number; Based on the second type of the container corresponding to the target number, determine the measurement and control parameters of the container corresponding to the target number; Set the operating parameters and customized parameters of the container corresponding to the target number according to the measurement and control parameters of the container corresponding to the target number.
4. The method according to claim 3, characterized in that, The step of determining the measurement and control parameters of the container corresponding to the target number based on the second type of the container corresponding to the target number includes: A request instruction is generated based on the second type of the container corresponding to the target number, and the request instruction is sent to the interaction module of the cluster monitoring and control device; The configuration parameters input by the user are obtained through the interaction module of the cluster monitoring and control device; The configuration parameters are used as the measurement and control parameters for the container corresponding to the target number.
5. The method according to claim 3, characterized in that, The step of determining the measurement and control parameters of the container corresponding to the target number based on the second type of the container corresponding to the target number includes: The measurement and control parameters corresponding to the second type are obtained according to the pre-stored parameter file, wherein the parameter file stores the measurement and control parameters corresponding to each measurement and control type.
6. The method according to claim 1, characterized in that, The step of updating the configuration file according to the switching instruction when the switching instruction is detected includes: Based on the measurement and control type corresponding to each container contained in the pre-stored configuration file, obtain a temporary file; Obtain the target number contained in the switching instruction; The measurement and control type of the container corresponding to the target number in the temporary file is set according to the preset switching type; Update the configuration file based on the temporary file.
7. The method according to claim 6, characterized in that, The preset switching type is bus monitoring or bay monitoring. Setting the monitoring type of the container corresponding to the target number in the temporary file according to the preset switching type includes: If the measurement and control type of the container corresponding to the target number in the temporary file is bus measurement and control, then change the measurement and control type of the container corresponding to the target number in the temporary file to interval measurement and control. If the measurement and control type of the container corresponding to the target number in the temporary file is interval measurement and control, then the measurement and control type of the container corresponding to the target number in the temporary file will be changed to bus measurement and control.
8. An electronic device, characterized in that, It includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the configuration method as described in any one of claims 1 to 7.
9. A cluster monitoring and control device, characterized in that, It includes the electronic device and the interaction module as described in claim 8.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the configuration method as described in any one of claims 1 to 7.