CN116319267A - Configuration method, electronic equipment, cluster measurement and control device and readable storage medium - Google Patents

Configuration method, electronic equipment, cluster measurement and control device and readable storage medium Download PDF

Info

Publication number
CN116319267A
CN116319267A CN202310194956.9A CN202310194956A CN116319267A CN 116319267 A CN116319267 A CN 116319267A CN 202310194956 A CN202310194956 A CN 202310194956A CN 116319267 A CN116319267 A CN 116319267A
Authority
CN
China
Prior art keywords
measurement
control
target number
container
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310194956.9A
Other languages
Chinese (zh)
Inventor
袁明军
吕新亚
韩茂林
曲佐章
严寿添
孟宪初
张伟健
陈远生
邵尤慎
谢杰勇
梁舒幸
黎强
岑银
李甘源
翁铖
王水
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CYG Sunri Co Ltd
Original Assignee
CYG Sunri Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CYG Sunri Co Ltd filed Critical CYG Sunri Co Ltd
Priority to CN202310194956.9A priority Critical patent/CN116319267A/en
Publication of CN116319267A publication Critical patent/CN116319267A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J13/00Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0681Configuration of triggering conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application is applicable to the technical field of power system automation, and provides a configuration method, electronic equipment, a cluster measurement and control device and a readable storage medium, wherein the configuration method comprises the following steps: monitoring a switching instruction input by a user, wherein the switching instruction comprises a target number; when a switching instruction is monitored, updating a configuration file according to the switching instruction; and responding to the restarting instruction, and switching the measurement and control type of the container corresponding to the target number according to the configuration file. According to the configuration method, a user can directly perform type switching operation on the container with the type needing to be adjusted, the management board of the cluster measurement and control device responds to the switching instruction to update the configuration file for managing the measurement and control type of the container, and when restarting initialization, the measurement and control type of the container corresponding to the target number is switched according to the updated configuration file, so that the purpose of flexibly switching the measurement and control type of the container is achieved.

Description

Configuration method, electronic equipment, cluster measurement and control device and readable storage medium
Technical Field
The application belongs to the technical field of power system automation, and particularly relates to a configuration method, electronic equipment, a cluster measurement and control device and a readable storage medium.
Background
In the power system, the application of the cluster measurement and control system can solve the problems of poor communication quality and high fault occurrence rate of the current transformer substation. The cluster measurement and control system applied to the intelligent substation is composed of a monitoring part, a cluster measurement and control device, an intelligent terminal, a gateway and the like. The cluster measurement and control device integrates a plurality of interval measurement and control devices into a high-end embedded multi-interval measurement and control device, and then forms a cluster by the plurality of multi-interval measurement and control devices, so that the multi-interval measurement and control devices are mutually backup in the cluster, the problem that a single set of measurement and control device lacks redundancy backup is solved, and the reliability of a monitoring system is improved.
In the prior art, the virtual measurement and control type integrated by the cluster measurement and control device is fixed. However, in practical application, the virtual measurement and control types of different power stations have different requirements, and the virtual measurement and control types of the existing cluster measurement and control devices cannot meet the test requirements of different stations.
Disclosure of Invention
The embodiment of the application provides a configuration method, electronic equipment, a cluster measurement and control device and a readable storage medium, and achieves the purpose of flexibly configuring a container measurement and control type.
In a first aspect, an embodiment of the present application provides a configuration method, which is applied to a management board of a cluster measurement and control device, where the cluster measurement and control device includes a plurality of containers, each container corresponds to a measurement and control type, and includes:
monitoring a switching instruction input by a user, wherein the switching instruction comprises a target number;
when the switching instruction is monitored, updating a configuration file according to the switching instruction;
and responding to a restarting instruction, and switching the measurement and control type of the container corresponding to the target number according to the configuration file.
It should be understood that, in one aspect, the cluster measurement and control device includes a plurality of containers, and each container runs a virtual measurement and control function program at intervals. On the other hand, the configuration file is an interval configuration file, the virtual measurement and control type corresponding to each container is set in the configuration file, and the interval logic function corresponding to each container allocates independent memory space, intelligent electronic equipment (I nte l l I gent E l ectron I c Devi ce, IED) capability description file model and line connection relation, so that containers with different virtual intervals are borne, and the operations of the containers are not affected.
In a possible implementation manner of the first aspect, the monitoring the switching instruction input by the user includes:
monitoring switching operation information input by a user through an interaction module of the cluster measurement and control device;
taking a container number contained in the switching operation information as a target number;
and obtaining a switching instruction according to the target number.
It should be understood that the interaction module of the cluster measurement and control device may be a liquid crystal touch screen. It should be noted that, the interaction module in this embodiment provides a scheme for implementing the measurement and control type of the flexible configuration container for monitoring the switching operation input by the user, so as to implement the purpose of flexible configuration.
In a possible implementation manner of the first aspect, the responding to the restart instruction, according to the configuration file, switches a measurement and control type of the container corresponding to the target number, includes:
responding to a restarting instruction, acquiring a backup file, wherein the backup file comprises a plurality of first types of containers, and the first types are measurement and control types corresponding to the containers in the last running process of the cluster measurement and control device;
determining the container number of which the measurement and control types are inconsistent in the backup file and the configuration file as a target number;
taking the measurement and control type of the container corresponding to the target number in the configuration file as a second type of the container corresponding to the target number;
determining measurement and control parameters of the container corresponding to the target number according to the second type of the container corresponding to the target number;
and setting the operation parameters and the customization parameters of the container corresponding to the target number according to the measurement and control parameters of the container corresponding to the target number.
It should be understood that the backup file is a file pre-stored in the management board and is used for storing the measurement and control type corresponding to the container in the last operation process of the cluster measurement and control device. It should be noted that, when the shutdown is finished, the backup is performed according to the virtual measurement and control type in the current operation process of each container, so as to obtain the backup file.
In a possible implementation manner of the first aspect, the determining, according to the second type of the container corresponding to the target number, a measurement and control parameter of the container corresponding to the target number includes:
generating a request instruction according to a second type of the container corresponding to the target number, and sending the request instruction to an interaction module of the cluster measurement and control device;
acquiring configuration parameters input by a user through an interaction module of the cluster measurement and control device;
and taking the configuration parameters as measurement and control parameters of the container corresponding to the target number.
In a possible implementation manner of the first aspect, the determining, according to the second type of the container corresponding to the target number, a measurement and control parameter of the container corresponding to the target number includes:
and obtaining measurement and control parameters corresponding to the second type according to a pre-stored parameter file, wherein the measurement and control parameters corresponding to each measurement and control type are stored in the parameter file.
It should be understood that after the measurement and control type of the container is switched, correspondingly, measurement and control parameters of the container also need to be adjusted, on one hand, parameters of the container with the measurement and control type changed can be set according to parameters input by a user; on the other hand, the measurement and control parameters of different measurement and control types are stored in the management board in advance, so that the measurement and control parameters of the container with the changed measurement and control type can be directly obtained.
In a possible implementation manner of the first aspect, when the switching instruction is monitored, updating the configuration file according to the switching instruction includes:
obtaining a temporary file according to a measurement and control type corresponding to each container contained in the pre-stored configuration file;
obtaining a target number contained in the switching instruction;
setting measurement and control types of containers corresponding to the target numbers in the temporary file according to a preset switching type;
and updating the configuration file according to the temporary file.
It should be understood that, in order to avoid abnormal storage of the configuration file caused by power failure or other abnormal conditions in the switching process, before updating the configuration file, 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 covers the original configuration file to be used as the configuration file after the type switching.
In a possible implementation manner of the first aspect, the preset switching type is a bus measurement and control or an interval measurement and control, and the setting, according to the preset switching type, a measurement and control type of a container corresponding to the target number in the temporary file includes:
if the measurement and control type of the container corresponding to the target number in the temporary file is bus measurement and control, changing the measurement and control type of the container corresponding to the target number in the temporary file into interval measurement and control;
and if the measurement and control type of the container corresponding to the target number in the temporary file is interval measurement and control, changing the measurement and control type of the container corresponding to the target number in the temporary file into bus measurement and control.
In a second aspect, an embodiment of the present application provides an electronic device, including: comprising a memory, a processor executing the configuration method as described in the first aspect, and a computer program stored in the memory and executable on the processor.
In a third aspect, an embodiment of the present application provides a cluster measurement and control device, including an electronic device and an interaction module as described in the second aspect.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program which, when executed by a processor, implements a configuration method as described in the first aspect.
It will be appreciated that the advantages of the second to fourth aspects may be found in the relevant description of the first aspect and are not repeated here.
Compared with the prior art, the embodiment of the application has the beneficial effects that: when the switching instruction is monitored, updating the configuration file according to the switching instruction, responding to the restarting instruction, and switching the measurement and control type of the container corresponding to the target number according to the configuration file. According to the configuration method, a user can directly perform type switching operation on the container with the type needing to be adjusted, the management board of the cluster measurement and control device responds to the switching instruction to update the configuration file for managing the measurement and control type of the container, and when restarting initialization, the measurement and control type of the container corresponding to the target number is switched according to the updated configuration file, so that the purpose of flexibly switching the measurement and control type of the container is achieved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required for the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a cluster measurement and control device provided in an embodiment of the present application;
fig. 2 is a schematic diagram of data transmission of a cluster measurement and control device according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of a configuration method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a configuration menu provided in an embodiment of the present application;
FIG. 5 is a second schematic diagram of a configuration menu provided in an embodiment of the present application;
fig. 6 is a second flow chart of the configuration method provided in the embodiment of the present application;
fig. 7 is a schematic structural diagram of a configuration device provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be construed as "upon" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise.
Fig. 1 is a schematic structural diagram of a cluster measurement and control device provided in an embodiment of the present application. The cluster measurement and control device comprises a system-level chip, a management board, a measurement and control board 1, a measurement and control board 2, a function switch-in board, a power board and an interaction module. And all the plug-ins in the cluster measurement and control device are communicated through a high-speed bus. Specifically, the system-on-chip is a 70z20 and dual-core 800MHz high-integration system-on-chip, and the management board is a four-core, 64-bit, 1.6GHz L1043.
The interaction module is a monochrome liquid crystal panel with a touch operation function. Specifically, the interaction module is used for displaying a configuration menu for switching the container, and generating an instruction according to the operation of a user, so that the management board responds to the instruction input by the user to realize the purpose of flexibly switching the type of the container. It should be noted that, for the purpose of implementing flexible switching of container types, the interaction module is a new hardware structure provided on the basis of the existing cluster measurement and control device structure, and specific equipment types of the interaction module are not displayed.
Fig. 2 is a schematic diagram of data transmission of the cluster measurement and control device provided in the embodiment of the present application. As shown in FIG. 2, the system-level chip is used for data acquisition, operation and control output of a plurality of measurement and control devices, and the management board is used for overall machine management, display and Microsoft media server protocol communication. The measurement and control board is a dual-core central processing unit board, each board is provided with 2 Zynq7000 chips, each chip comprises 2 Cortex-A9 cores and 1 field programmable gate array (Fi e l d-Programmab l e Gate Array, FPGA). The measurement and control board 1 realizes 8 virtual measurement and control device functions, and the measurement and control board 2 realizes 7 virtual measurement and control functions. And 3 cores are taken in each measurement and control board to realize all telemetry, remote signaling and synchronous data calculation and logic judgment functions of measurement and control, and one core is taken alone to be responsible for all SV/GOOSE message processing. The management board 4 has isomorphic cores, runs the Li nux system, is responsible for realizing redundancy management, sets the corresponding interval type of the container of each core, and downloads the application program to the corresponding container through the management bus. The running state of the actual measurement and control device is monitored, and the automatic switching of the virtual measurement and control device is realized. The FPGA in the management board outputs 4 direct connection lines to be respectively communicated with the sub-boards, and is responsible for collecting measurement and control data of each sub-board and the running state of the board, and information is uploaded to the telemechanical and monitoring server based on 61850 protocol. It should be understood that the present application employs a container virtualization technology, where a single device is configured with multiple independent Li nux containers, each corresponding to an interval of virtual measurement and control devices. The logic functions among the intervals in the cluster measurement and control device are independent and isolated, the corresponding virtual measurement and control type of each container is set based on the interval configuration file CKConf i g.xml, and independent memory space, communication configuration file and socket l connection are distributed to each interval logic function, so that the influence among different intervals is avoided.
Specifically, the management board provides the following management functions: in the first aspect, the management board is responsible for managing the state of the whole machine, distributing and checking the corresponding virtual measurement and control of a plurality of containers, managing the input/exit of each container and other functions; in the second aspect, the management board is responsible for collecting GOOSE/SV messages of the process layer, analyzing the messages, realizing measurement and control related calculation, five-prevention interlocking function, displacement, alarm event record and the like; in the second aspect, the management board divides the received GOOSE/SV message externally by the module and shunts the GOOSE/SV message to the corresponding measurement and control board for analysis and treatment; and collecting the calculation results of each measurement and control board, and collecting the calculation results to a management board, and uploading information to a telecontrol and monitoring server of a station control layer based on 61850 protocol.
Fig. 3 is a schematic flow chart of a configuration method according to an embodiment of the present application. As shown in fig. 3, the configuration method provided in the embodiment of the present application may include the following steps:
s301: and monitoring a switching instruction input by a user, wherein the switching instruction comprises a target number.
In one possible implementation manner, switching operation information input by a user can be monitored through an interaction module of the cluster measurement and control device; taking a container number contained in the switching operation information as a target number; and obtaining a switching instruction according to the target number.
Fig. 4 is a schematic diagram of a configuration menu provided in an embodiment of the present application. As shown in fig. 4, the primary menu of the configuration menu is titled number, iled name, running status, and menu entry. In the embodiment of the application, the menu corresponding to the number 00 is an interactive menu designed for realizing the type switching of the container. Specifically, the IED name with the number of 00 is redundant backup measurement and control, and the corresponding running state is input. After the user selects the menu 'enter menu' with the number 00, a secondary menu corresponding to the redundant backup measurement and control is displayed. Specifically, the secondary menu is operation information, user settings, manufacturer settings, and other information. The user can enter the interactive interface for switching the container types by clicking the factory setting. The interface set by the manufacturer displays the number of the virtual measurement and control and the corresponding measurement and control type. For example, the measurement and control type of the virtual measurement and control 01 is bus measurement and control, a user clicks the "bus measurement and control" of the virtual measurement and control 01 according to the measurement and control requirement of the site, and the displayed "bus measurement and control" is switched into "interval measurement and control" according to the clicking operation of the user. It should be understood that the user can switch the measurement and control types of the multiple virtual measurement and control according to the actual measurement and control requirements at the interface set by the manufacturer.
For example, after a user clicks "bus measurement and control" of virtual measurement and control 01 according to the measurement and control requirement of the site, 01 is taken as the target number.
It should be noted that, in the embodiment of the present application, the method for monitoring the switching instruction input by the user is not limited to the above implementation manner according to the interaction module, and the switching instruction input by the user may be obtained based on the interaction interface of the upper computer by way of example. It should be understood that the configuration menu displayed in the upper computer interface is consistent with the menu function in the embodiment of fig. 4, and a process of monitoring the switching command according to the upper computer interaction interface is not described herein.
S302: and when the switching instruction is monitored, updating the configuration file according to the switching instruction.
In this embodiment of the present application, for example, after monitoring according to the interaction module, the user clicks "bus measurement and control" of the virtual measurement and control 01 in the configuration menu illustrated in fig. 4, a switching instruction including the target number "01" is obtained. Specifically, after the target number "01" corresponding to the container to be configured is obtained according to the monitored switching instruction, the step of updating the configuration file according to the switching instruction is continuously executed.
It should be understood that the configuration file is a pre-stored file containing the measurement and control types corresponding to all containers. Illustratively, the configuration file is a CKconf i g.xml file. In the embodiment of the application, the corresponding interval information of each container is obtained by analyzing the CKConf i g.xml file, so that the set interval type of each container is determined, and the virtual measurement and control in the container is associated with the actual interval measurement and control device. Illustratively, the CKconf i g.xml file contains the contents as shown in table 1:
TABLE 1
Container numbering Virtual measurement and control type Corresponding interval of 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
In the embodiment of the application, after determining that the target number is "01" according to the switching instruction, the measurement and control type of the container number 01 in table 1 is switched from "bus measurement and control" to "interval measurement and control", that is, the virtual measurement and control type corresponding to the container number 01 in table 1 is switched from "DM-1" to "DM-4", where "DM-1" represents "bus measurement and control" DM-4 "represents" interval measurement and control ".
It should be understood that, in the embodiment of the present application, according to the actual application requirement of the electric power system, setting the measurement and control type includes that "bus measurement and control" is switched to "interval measurement and control", that is, after determining the target number to be configured, that is, determining that the measurement and control type of the container corresponding to the number is adjusted, and directly switching the measurement and control type of the container corresponding to the target number to another measurement and control type can achieve the purpose of flexibly switching the measurement and control type of the container.
It should be noted that, in the container measurement and control type switching process provided by the application, other measurement and control types can be provided according to the field requirement, and the user can select the number of the container to be adjusted in the interaction module. Specifically, when the user operates the configuration menu displayed by the interaction module, the number of the configured container and the measurement and control type after switching are selected. The switching instruction includes a target number and a measurement and control type after switching, and updates the configuration file according to the target number and the measurement and control type after switching.
S303: and responding to the restarting instruction, and switching the measurement and control type of the container corresponding to the target number according to the configuration file.
In the embodiment of the application, in the initialization process after the cluster measurement and control device is restarted, the management board analyzes the configuration file to obtain the corresponding virtual measurement and control type and the corresponding actual interval of each container, and matches the communication configuration file and the model file. Specifically, the type of the field replaced measurement and control device is obtained by analyzing the CKConf i g.xm file, and the corresponding virtual measurement and control type in the container is set according to the type. Further, ckconf I g.xm l files are also analyzed to correlate the virtual measurement and control in the container with the corresponding interval model files, an automatic communication configuration file distinguishing scheme is adopted, the interval model files of the actual measurement and control device are used according to the total station configuration files, LN, DO and GOOSE sending control blocks are established according to the interval model files, and communication parameters such as I P addresses, multicast addresses, APP I D and the like and virtual terminal contact tables are obtained from the interval model files. The modification of the mapping address is completed by converting the variable mapping into a communication configuration file of the virtual measurement and control device, redefining a short address description mode and establishing unified mapping of the variable.
It should be understood that in the process of configuring the measurement and control types of the containers corresponding to the target numbers according to the configuration file, the measurement and control parameters corresponding to the different measurement and control types are different, so that the measurement and control parameters of the containers corresponding to the target numbers also need to be adjusted. It should be noted that, before the measurement and control parameters of the container corresponding to the target number are adjusted, the target number corresponding to the container with the current measurement and control type changed is determined according to the backup file and the configuration file.
In one possible implementation manner, after the cluster measurement and control device is restarted, the process of determining the target number is as follows:
first, in response to a restart instruction, a backup file is acquired. Specifically, the backup file includes a first type of each of the plurality of containers. It should be understood that a backup area is allocated in the memory of the management board, and the measurement and control type operated by the current container is backed up and stored in the backup area, that is, the measurement and control type corresponding to the container in the last operation process of the cluster measurement and control device is stored in the backup file.
And secondly, determining the container numbers of which the measurement and control types are inconsistent in the backup file and the configuration file as the target numbers corresponding to the containers with the changed measurement and control types.
And thirdly, taking the measurement and control type of the container corresponding to the target number in the configuration file as the second type of the container corresponding to the target number. It should be understood that in the process of updating the configuration file in S302, that is, it is determined that the measurement and control type corresponding to the target number in the configuration file is the measurement and control type after switching, and adjustment needs to be performed according to the measurement and control parameters of the container corresponding to the measurement and control type after switching.
And finally, determining measurement and control parameters of the container corresponding to the target number according to the second type of the container corresponding to the target number, and setting operation parameters and customization parameters of the container corresponding to the target number according to the measurement and control parameters of the container corresponding to the target number.
In one possible embodiment, a request instruction is generated according to a second type of the container corresponding to the target number, and the request instruction is sent to an interaction module of the cluster measurement and control device; acquiring configuration parameters input by a user through an interaction module of the cluster measurement and control device; and taking the configuration parameters as measurement and control parameters of the containers corresponding to the target numbers.
Fig. 5 is a schematic diagram of a second configuration menu according to an embodiment of the present application. After a request instruction is generated according to the second type of the container corresponding to the target number, the management board sends the request instruction for acquiring the measurement and control parameters to the interaction module for display, and after the user clicks the confirmation operation, a configuration menu is displayed, as shown in fig. 5. The primary menu of the configuration menu is titled number, iled name, running status and menu entry. In the embodiment of the application, after the user selects the menu "enter menu" with the number 01, a secondary menu corresponding to the virtual measurement and control 01 is displayed. Specifically, the secondary menu corresponding to the virtual measurement and control 01 is operation information, user setting, manufacturer setting and other information. The user can determine the running version information of the current container by clicking on the running information, wherein the running version information comprises the measurement and control type. The user may click on "user settings" to enter the set parameters option. For example, after the measurement and control type after the virtual measurement and control 01 is switched is "interval measurement and control", the displayed set parameter options are: telemetry parameters, remote signaling parameters, remote control parameters, synchronization parameters, platen setting and password management. For example, after the measurement and control type after the virtual measurement and control 01 is switched is "bus measurement and control", the displayed set parameter options are: telemetry parameters, remote control parameters, platen settings, and password management. The user may click on the corresponding option to set the configuration parameters.
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 measurement and control parameters corresponding to each measurement and control type are stored in the parameter file. It should be understood that in the same power system, a parameter file may be set to store measurement and control parameters corresponding to each measurement and control type in advance, and after the measurement and control type of the container is determined to be 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. Illustratively, the measurement and control parameters contained in the parameter file may be set by a 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 input by the user and records the measurement and control parameters in the parameter file. It is to be understood that the measurement and control parameters corresponding to each measurement and control type are stored in the parameter file, so that the parameter setting process of a user is simplified and the efficiency of switching the measurement and control type of the container is improved in the process of obtaining the measurement and control parameters.
According to the configuration method provided by the embodiment of the application, through providing the interaction module, a user can directly perform type switching operation on the container with the type needing to be adjusted, the management board of the cluster measurement and control device responds to the switching operation to update the configuration file of the measurement and control type of the management container, and when restarting initialization, the measurement and control type of the container corresponding to the target number is switched according to the updated configuration file, so that the purpose of flexibly switching the measurement and control type of the container is achieved.
Fig. 6 is a second flowchart of a configuration method according to an embodiment of the present application. As shown in fig. 6, on the basis of the embodiment provided in fig. 3, the process of updating the configuration file in S302 specifically includes the following steps:
s601: and obtaining a temporary file according to the measurement and control type corresponding to each container contained in the pre-stored configuration file.
In the embodiment of the application, in the process of updating the configuration file directly according to the target number, if abnormal interruption or abnormal data occurs, the error of the stored data in the configuration file is caused, and the functions of the cluster measurement and control device are affected. It should be understood that before updating the configuration file according to the target number, the configuration file is backed up, a temporary storage space is allocated in the memory of the management board, and a temporary file is generated according to the measurement and control type corresponding to each container contained in the pre-stored configuration file.
S602: the target number included in the switch instruction is obtained.
In the embodiment of the application, for example, in the configuration menu shown in fig. 4, after the user clicks "bus measurement and control" of the virtual measurement and control 01 according to the measurement and control requirement of the site, 01 is taken as the target number. And the interaction module generates a switching instruction according to the operation of the user and sends the switching instruction to the management board. After the management board analyzes the switching instruction, the target number is obtained.
S603: and setting the measurement and control type of the container corresponding to the target number in the temporary file according to the preset switching type.
The preset switching type is bus measurement and control or interval measurement and control. It should be noted that, measurement and control types except bus measurement and control or interval measurement and control can be added in the preset measurement and control types according to the actual measurement and control requirements of the power system, so as to provide more measurement and control type switching options for users.
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, changing the measurement and control type of the container corresponding to the target number in the temporary file into interval measurement and control; and if the measurement and control type of the container corresponding to the target number in the temporary file is interval measurement and control, changing the measurement and control type of the container corresponding to the target number in the temporary file into bus measurement and control.
It should be understood that after the target number to be configured is determined, that is, the measurement and control type of the container corresponding to the number is adjusted, the measurement and control type of the container corresponding to the target number is directly switched to another measurement and control type, so that the purpose of flexibly switching the measurement and control type of the container can be achieved.
S604: and updating the configuration file according to the temporary file.
In the embodiment of the application, the updated original configuration file is covered, so that the measurement and control type of the container corresponding to the target number in the configuration file is switched according to the switching instruction on the basis of keeping the original configuration file.
According to the configuration method provided by the embodiment of the application, the configuration file is temporarily backed up to generate the temporary file, the backed-up temporary file is updated according to the switching instruction, the situation that the configuration file is failed to update due to program abnormality in the process of directly updating the configuration file is avoided, and the success rate of updating the configuration file and the success rate of switching the measurement and control type of the container are improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
Fig. 7 is a schematic structural diagram of a configuration device according to an embodiment of the present application, corresponding to the configuration method of the above embodiment. For convenience of explanation, only portions relevant to the embodiments of the present application are shown.
As shown in fig. 7, a configuration apparatus provided in an embodiment of the present application includes: the monitoring module 701, the updating module 702 and the switching module 703.
The monitoring module 701 is configured to monitor a switching instruction input by a user, where the switching instruction includes a target number;
an updating module 702, configured to monitor that when the switching instruction is detected, update a configuration file according to the switching instruction;
and the switching module 703 is configured to switch the measurement and control type of the container corresponding to the target number according to the configuration file in response to a restart instruction.
It should be noted that, because the content of information interaction and execution process between the modules/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and details thereof are not repeated herein.
In addition, the configuration device shown in fig. 7 may be a software unit, a hardware unit, or a unit combining soft and hard, which are built in an existing terminal device, or may be integrated into the terminal device as an independent pendant, or may exist as an independent terminal device.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
Fig. 8 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, where an electronic device 80 provided in an embodiment of the present application includes: at least one processor 81 (only one is shown in fig. 8), a memory 82 and a computer program 83 stored in the memory 82 and executable on the at least one processor 81, the processor 81 implementing the steps performed by the electronic device in any of the various configuration method embodiments described above when the computer program 83 is executed.
The processor 81 may be a central processing unit (Centra l Process I ng Un it, CPU), the processor 81 may also be other general purpose processors, digital signal processors (Di gita l Si gna l Processor, DSP), application specific integrated circuits (App l I cat I on Speci f I C I ntegrated C I rcu it, AS ic), off-the-shelf programmable gate arrays (Fi e l d-Programmab l e Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 82 may in some embodiments be an internal storage unit of the electronic device 80, such as a hard disk or a memory of the electronic device 80. The memory 82 may also be an external storage device of the electronic device 80 in other embodiments, such as a plug-in hard disk, a smart memory Card (Smart Med i a Card, SMC), a Secure Digital (SD) Card, a flash memory Card (F1 ash Card) or the like, which are provided on the electronic device 80. Further, the electronic device 80 may also include both an internal memory unit and an external memory device of the electronic device 80. The memory 82 is used to store an operating system, application programs, boot Loader (Boot Loader), data, and other programs, such as program code for the computer program. The memory 82 may also be used to temporarily store data that has been output or is to be output.
Embodiments of the present application also provide a computer readable storage medium storing a computer program that, when executed by a processor, may implement the steps in any of the various configuration method embodiments described above.
The present embodiments provide a computer program product which, when run on a terminal device, causes the terminal device to perform the steps of any of the various configuration method embodiments described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to an apparatus/terminal device, a recording medium, a computer Memory, a Read-only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the apparatus/terminal device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. The configuration method is applied to a management board of a cluster measurement and control device, wherein the cluster measurement and control device comprises a plurality of containers, and each container corresponds to one measurement and control type, and is characterized by comprising the following steps:
monitoring a switching instruction input by a user, wherein the switching instruction comprises a target number;
when the switching instruction is monitored, updating a configuration file according to the switching instruction;
and responding to a restarting instruction, and switching the measurement and control type of the container corresponding to the target number according to the configuration file.
2. The method of claim 1, wherein monitoring the user-entered switching instructions comprises:
monitoring switching operation information input by a user through an interaction module of the cluster measurement and control device;
taking a container number contained in the switching operation information as a target number;
and obtaining a switching instruction according to the target number.
3. The method of claim 1, wherein the switching, in response to the restart instruction, the measurement and control type of the container corresponding to the target number according to the configuration file includes:
responding to a restarting instruction, acquiring a backup file, wherein the backup file comprises a plurality of first types of containers, and the first types are measurement and control types corresponding to the containers in the last running process of the cluster measurement and control device;
determining the container number of which the measurement and control types are inconsistent in the backup file and the configuration file as a target number;
taking the measurement and control type of the container corresponding to the target number in the configuration file as a second type of the container corresponding to the target number;
determining measurement and control parameters of the container corresponding to the target number according to the second type of the container corresponding to the target number;
and setting the operation parameters and the customization 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. A method according to claim 3, wherein determining the measurement and control parameters of the container corresponding to the target number according to the second type of the container corresponding to the target number comprises:
generating a request instruction according to a second type of the container corresponding to the target number, and sending the request instruction to an interaction module of the cluster measurement and control device;
acquiring configuration parameters input by a user through an interaction module of the cluster measurement and control device;
and taking the configuration parameters as measurement and control parameters of the container corresponding to the target number.
5. A method according to claim 3, wherein determining the measurement and control parameters of the container corresponding to the target number according to the second type of the container corresponding to the target number comprises:
and obtaining measurement and control parameters corresponding to the second type according to a pre-stored parameter file, wherein the measurement and control parameters corresponding to each measurement and control type are stored in the parameter file.
6. The method of claim 1, wherein when the switch instruction is detected, updating the configuration file according to the switch instruction comprises:
obtaining a temporary file according to a measurement and control type corresponding to each container contained in the pre-stored configuration file;
obtaining a target number contained in the switching instruction;
setting measurement and control types of containers corresponding to the target numbers in the temporary file according to a preset switching type;
and updating the configuration file according to the temporary file.
7. The method according to claim 6, wherein the preset switching type is a bus measurement and control or an interval measurement and control, and the setting the measurement and control 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, changing the measurement and control type of the container corresponding to the target number in the temporary file into interval measurement and control;
and if the measurement and control type of the container corresponding to the target number in the temporary file is interval measurement and control, changing the measurement and control type of the container corresponding to the target number in the temporary file into bus measurement and control.
8. An electronic device, comprising: computer program comprising a memory, a processor and stored in the memory and executable on the processor, the processor implementing the configuration method according to any of claims 1 to 7 when the computer program is executed.
9. The cluster measurement and control device is characterized by comprising the electronic equipment and the interaction module according to claim 8.
10. A computer readable storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the configuration method as claimed in any one of claims 1 to 7.
CN202310194956.9A 2023-02-23 2023-02-23 Configuration method, electronic equipment, cluster measurement and control device and readable storage medium Pending CN116319267A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310194956.9A CN116319267A (en) 2023-02-23 2023-02-23 Configuration method, electronic equipment, cluster measurement and control device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310194956.9A CN116319267A (en) 2023-02-23 2023-02-23 Configuration method, electronic equipment, cluster measurement and control device and readable storage medium

Publications (1)

Publication Number Publication Date
CN116319267A true CN116319267A (en) 2023-06-23

Family

ID=86828159

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310194956.9A Pending CN116319267A (en) 2023-02-23 2023-02-23 Configuration method, electronic equipment, cluster measurement and control device and readable storage medium

Country Status (1)

Country Link
CN (1) CN116319267A (en)

Similar Documents

Publication Publication Date Title
EP0602295B1 (en) Method for configuring and operating a telecommunication apparatus
EP3316052B1 (en) Multi-protocol gateway with several cores in a process control system
US8892712B2 (en) Upgrading enterprise managers
CN102455936A (en) Trunk quick allocation method
CN102622247B (en) The BIOS information configuration-system of server and method
CN101977128B (en) Interface detection method and device for communication equipment
US11438249B2 (en) Cluster management method, apparatus and system
CN109639755B (en) Associated system server decoupling method, device, medium and electronic equipment
EP4170485A1 (en) Disaster recovery method and apparatus for middleware of paas, disaster recovery device, and computer-readable storage medium
CN116319267A (en) Configuration method, electronic equipment, cluster measurement and control device and readable storage medium
CN111162938A (en) Data processing system and method
CN108427044B (en) Method, device, equipment and storage medium for testing fault protection function
CN114755223A (en) Electronic equipment wiring monitoring method, device and system
CN111083195B (en) Virtual single disk proxy system and method
CN110674522A (en) Hard disk encryption method, device, server, system and storage medium
CN112104481B (en) Equipment batch management method and device, terminal equipment and storage medium
CN114785673B (en) Method and device for acquiring abnormal information during active-standby switching
CN114443446B (en) Hard disk indicator lamp control method, system, terminal and storage medium
CN110489439B (en) Parameter processing method and power terminal
CN110955210B (en) AGV scheduling method, device and system
CN115858288A (en) Consul and JRPC-based intelligent diagnosis method and system for power management system
CN116107836A (en) Hardware equipment operation monitoring system and method
CN117714276A (en) Redis cluster deployment method and device, storage medium and electronic equipment
KR20230142670A (en) IoT-based satellite ground communication monitoring and control system
CN116828028A (en) Method, device, system, equipment and medium for issuing network element instruction

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination