System configuration method and device for new energy station system
By analyzing and modifying system configuration files in the new energy station system, the complex problem of system configuration file modification operations in the existing technology is solved, and the effect of convenient modification and improving operation and maintenance efficiency is achieved.
Patent Information
- Application Number
- CN202510077561.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-17
- Publication Date
- 2025-04-25
AI Technical Summary
The system configuration file modification of existing new energy station systems is complicated and can easily cause system abnormalities.
By obtaining the system configuration file of the new energy station system, analyzing the file content, displaying the configuration attribute information to be modified to the background management page, modifying it, and rewrite the modified configuration information into the system configuration file.
It realizes convenient modification of system configuration files, avoids configuration errors caused by improper operation, improves the operation and maintenance efficiency of the new energy station system, and ensures the safety of the system operation.
Smart Images

Figure CN119883429A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of new energy station management systems, and in particular relates to a system configuration method and device for a new energy station system. Background Art
[0002] With the rapid development of the new energy industry, SCADA (Supervisory Control And Data Acquisition) systems are generally installed in new energy sites such as wind turbines and photovoltaics to monitor and control the on-site operating equipment of new energy sites, and realize various functions such as data collection, equipment control, measurement, parameter adjustment, and various signal alarms. Among them, the SCADA system usually needs to set configuration files during deployment and operation to ensure the normal operation of the system.
[0003] Currently, most system configuration files are modified by logging into the server using a bastion host or remote terminal control software to perform manual modifications. However, the existing modification process is complicated, and improper operation may cause other configurations to be stored, thereby causing system abnormalities. Summary of the invention
[0004] In view of the technical problems existing in the prior art, the present invention provides a system configuration method and device for a new energy station system to solve the technical problems that the existing modification operation process for the system configuration file is complicated and easily causes system abnormalities.
[0005] In order to achieve the above object, the technical solution adopted by the present invention is: The present invention provides a system configuration method for a new energy station system, comprising: Obtain the system configuration file of the new energy station system and obtain the file stream of the system configuration file; Parsing the file stream of the system configuration file to obtain the content of the system configuration file; wherein the content of the system configuration file includes a plurality of configuration attribute information, each of which is stored in the format of attribute name + attribute value; From a number of configuration attribute information, obtain and display the configuration attribute information to be modified to the background management page of the new energy station system; On the background management page of the new energy station system, modify the configuration attribute information to be modified and generate the modified configuration attribute information; The modified configuration attribute information is rewritten into the system configuration file of the new energy station system.
[0006] Furthermore, the process of obtaining the system configuration file of the new energy station system and obtaining the file flow of the system configuration file is as follows: The file operation function provided by the programming language is used to read the content of the system configuration file of the new energy station system according to the storage path of the system configuration file of the new energy station system, and obtain the file stream of the system configuration file.
[0007] Furthermore, the process of parsing the file stream of the system configuration file to obtain the content of the system configuration file is as follows: Use the load function of PyYAML to read and parse the file stream of the system configuration file to obtain the content of the system configuration file.
[0008] Furthermore, the process of obtaining and displaying the configuration attribute information to be modified from the plurality of configuration attribute information to the background management page of the new energy station system is as follows: Based on the attribute name, select the configuration attribute information to be modified from the plurality of configuration attribute information; The configuration attribute information to be modified is sent and displayed on the background management page of the new energy station system.
[0009] Furthermore, the background management page of the new energy station system provides a function for editing, saving or deleting the attribute value of the configuration attribute information to be modified.
[0010] Furthermore, the process of rewriting the modified configuration attribute information into the system configuration file of the new energy station system is as follows: The modified configuration attribute information is rewritten into the system configuration file of the new energy station system in the form of a file stream.
[0011] The present invention also provides a system configuration device for a new energy station system, comprising: A reading module is used to obtain a system configuration file of a new energy station system and obtain a file stream of the system configuration file; A parsing module, used to parse the file stream of the system configuration file to obtain the content of the system configuration file; wherein the content of the system configuration file includes a plurality of configuration attribute information, each of which is stored in the format of attribute name + attribute value; A display module is used to obtain and display the configuration attribute information to be modified from a plurality of configuration attribute information to the background management page of the new energy station system; A modification module is used to modify the configuration attribute information to be modified on the background management page of the new energy station system and generate the modified configuration attribute information; The writing module is used to rewrite the modified configuration attribute information into the system configuration file of the new energy station system.
[0012] The present invention also provides a system configuration device for a new energy station system, comprising: a processor suitable for executing a computer program; A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, the system configuration method for the new energy station system is executed.
[0013] The present invention also provides a computer-readable storage medium, which stores a computer program, and is characterized in that when the computer program is executed by a processor, it implements the system configuration method for the new energy station system.
[0014] The present invention also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the system configuration method for the new energy station system is implemented.
[0015] Compared with the prior art, the present invention has the following beneficial effects: The system configuration method for a new energy station system provided by the present invention obtains and parses a system configuration file of the new energy station system, and displays the configuration attribute information to be modified in the content of the system configuration file on a background management page, and modifies the configuration attribute information to be modified on the background management page and rewrites it into the system configuration file, thereby realizing convenient modification of the system configuration file without logging into the server for modification operations, avoiding configuration errors caused by improper operations, improving the operation and maintenance efficiency of the new energy station system, and being able to effectively ensure the operational safety of the system.
[0016] The system configuration device for a new energy station system, the system configuration equipment for a new energy station system, the computer-readable storage medium and the computer program product provided by the present invention have all the advantages of the above-mentioned system configuration method for a new energy station system. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 A flow chart of a system configuration method for a new energy station system provided in Example 1; Figure 2 A structural block diagram of a system configuration device for a new energy station system provided in Example 2; Figure 3 This is a structural block diagram of the system configuration equipment for the new energy station system provided in Example 3. DETAILED DESCRIPTION
[0019] In order to make the technical problems, technical solutions and beneficial effects solved by this application clearer, the technical solutions in the embodiments of this application will be described clearly and completely in combination with the drawings in the embodiments of this application; obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0020] Example 1 As attached Figure 1 As shown, this embodiment 1 provides a system configuration method for a new energy station system, comprising the following steps: Step 1: Get the system configuration file of the new energy station system and obtain the file stream of the system configuration file. Specifically, taking the system configuration file in the yml file format as an example, the process of obtaining the file stream of the system configuration file is as follows: using the file operation function provided by the programming language, according to the storage path of the system configuration file of the new energy station system, read the content of the system configuration file of the new energy station system and obtain the file stream of the system configuration file.
[0021] Specifically, the implementation steps for obtaining the file stream of the system configuration file are as follows: Use the open() function to open the system configuration file according to the storage path of the system configuration file of the new energy station system; After the system configuration file is opened, the entire file is read at once using the read() method, or the file is read line by line using the readlines() method to obtain the file stream of the system configuration file.
[0022] Step 2: Parse the file stream of the system configuration file to obtain the content of the system configuration file. The file stream of the system configuration file is parsed using the load function of PyYAML to obtain the content of the system configuration file. Specifically, the content of the system configuration file includes several configuration attribute information, each of which is stored in the format of attribute name + attribute value. When the configuration attribute information is a database user name and password, the storage format of the configuration attribute information is: userName:root password:123456.
[0023] Step 3: From the plurality of configuration attribute information, obtain and display the configuration attribute information to be modified to the background management page of the new energy station system. The background management page of the new energy station system provides functions for editing, saving or deleting the attribute value of the configuration attribute information to be modified; specifically, the process of obtaining and displaying the configuration attribute information to be modified to the background management page of the new energy station system is as follows: Step 31: Based on the attribute name, select the configuration attribute information to be modified from a plurality of configuration attribute information.
[0024] Step 32: Send the configuration attribute information to be modified and display it on the background management page of the new energy station system; wherein, in the configuration attribute information to be modified displayed on the background management page, only the attribute value is allowed to be modified.
[0025] Step 4: On the background management page of the new energy station system, modify the configuration attribute information to be modified and generate the modified configuration attribute information. Specifically, modify the attribute value in the configuration attribute information to be modified according to the preset modification requirements, and generate and save the modified configuration attribute information.
[0026] Step 5: rewrite the modified configuration attribute information into the system configuration file of the new energy station system.
[0027] Step 6: After rewriting the modified configuration attribute information, send a system restart instruction to the new energy station system. The system restart instruction is used to trigger the new energy station system to execute the restart command. When the new energy station system is restarted, the modified configuration attribute information takes effect.
[0028] This embodiment 1 provides a system configuration method for a new energy station system, which displays the configuration attribute information to be modified in the system configuration file content on the background management page. By modifying the configuration attribute information to be modified on the background management page and rewriting it into the system configuration file, the system configuration file can be conveniently modified, which greatly improves the operation and maintenance efficiency and ensures the operation safety of the system.
[0029] Example 2 As attached Figure 2 As shown, this embodiment 2 provides a system configuration device for a new energy station system, including a reading module, a parsing module, a display module, a modification module, a writing module and a restart module.
[0030] A reading module is used to obtain a system configuration file of a new energy station system and obtain a file stream of the system configuration file; a parsing module is used to parse the file stream of the system configuration file and obtain the content of the system configuration file; wherein the content of the system configuration file includes a plurality of configuration attribute information, and each configuration attribute information is stored in the format of attribute name + attribute value; a display module is used to obtain and display the configuration attribute information to be modified from the plurality of configuration attribute information to the background management page of the new energy station system; a modification module is used to modify the configuration attribute information to be modified on the background management page of the new energy station system and generate the modified configuration attribute information; a writing module is used to rewrite the modified configuration attribute information into the system configuration file of the new energy station system; a restart module is used to send a system restart instruction to the new energy station system after rewriting the modified configuration attribute information.
[0031] Example 3 As attached Figure 3 As shown, this embodiment 3 provides a system configuration device for a new energy station system, including: a memory for storing a computer program; a processor for implementing the steps of a system configuration method for a new energy station system when executing the computer program; or, when the processor executes the computer program, implementing the functions of each module in the above-mentioned system configuration device for a new energy station system.
[0032] When the processor executes the computer program, the steps of the system configuration method for the new energy station system are implemented, for example: Acquire a system configuration file of the new energy station system and obtain a file stream of the system configuration file; parse the file stream of the system configuration file to obtain the content of the system configuration file; acquire and display the configuration attribute information to be modified from a plurality of configuration attribute information to a background management page of the new energy station system; modify the configuration attribute information to be modified on the background management page of the new energy station system to generate modified configuration attribute information; rewrite the modified configuration attribute information into the system configuration file of the new energy station system; after rewriting the modified configuration attribute information, send a system restart instruction to the new energy station system.
[0033] When the processor executes the computer program, the functions of each module in the system configuration device for the new energy station system are realized, for example: A reading module is used to obtain a system configuration file of a new energy station system and obtain a file stream of the system configuration file; a parsing module is used to parse the file stream of the system configuration file and obtain the content of the system configuration file; wherein the content of the system configuration file includes a plurality of configuration attribute information, and each configuration attribute information is stored in the format of attribute name + attribute value; a display module is used to obtain and display the configuration attribute information to be modified from the plurality of configuration attribute information to the background management page of the new energy station system; a modification module is used to modify the configuration attribute information to be modified on the background management page of the new energy station system and generate the modified configuration attribute information; a writing module is used to rewrite the modified configuration attribute information into the system configuration file of the new energy station system; a restart module is used to send a system restart instruction to the new energy station system after rewriting the modified configuration attribute information.
[0034] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of completing preset functions, and the instruction segments are used to describe the execution process of the computer program in the system configuration device for the new energy station system.
[0035] For example, the computer program can be divided into a reading module, a parsing module, a display module, a modification module, a writing module and a restarting module, and the specific functions of each module are as follows: a reading module, used to obtain a system configuration file of a new energy station system and obtain a file stream of the system configuration file; a parsing module, used to parse the file stream of the system configuration file and obtain the content of the system configuration file; wherein the content of the system configuration file includes a number of configuration attribute information, and each configuration attribute information is stored in the format of attribute name + attribute value; a display module, used to obtain and display the configuration attribute information to be modified from the several configuration attribute information to the background management page of the new energy station system; a modification module, used to modify the configuration attribute information to be modified on the background management page of the new energy station system to generate the modified configuration attribute information; a writing module, used to rewrite the modified configuration attribute information into the system configuration file of the new energy station system; a restart module, used to send a system restart instruction to the new energy station system after rewriting the modified configuration attribute information.
[0036] The system configuration device for the new energy station system may be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The system configuration device for the new energy station system may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the above are examples of system configuration devices for the new energy station system and do not constitute a limitation on the system configuration device for the new energy station system. It may include more components than the above, or a combination of certain components, or different components. For example, the system configuration device for the new energy station system may also include input and output devices, network access devices, buses, etc.
[0037] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The processor is the control center of the system configuration device for the new energy station system, and uses various interfaces and lines to connect the various parts of the system configuration device for the new energy station system.
[0038] The memory can be used to store the computer programs and / or modules, and the processor implements various functions of the system configuration device for the new energy station system by running or executing the computer programs and / or modules stored in the memory, and calling the data stored in the memory.
[0039] The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0040] Example 4 This embodiment 4 also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the system configuration method for a new energy station system are implemented, for example: Acquire a system configuration file of the new energy station system and obtain a file stream of the system configuration file; parse the file stream of the system configuration file to obtain the content of the system configuration file; acquire and display the configuration attribute information to be modified from a plurality of configuration attribute information to a background management page of the new energy station system; modify the configuration attribute information to be modified on the background management page of the new energy station system to generate modified configuration attribute information; rewrite the modified configuration attribute information into the system configuration file of the new energy station system; after rewriting the modified configuration attribute information, send a system restart instruction to the new energy station system.
[0041] If the modules / units integrated in the system configuration device for the new energy station system are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.
[0042] Based on such understanding, the present invention implements all or part of the processes in the above-mentioned system configuration method for a new energy station system, and can also be completed by instructing related hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned system configuration method for a new energy station system can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or preset intermediate form, etc.
[0043] The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium, etc.
[0044] It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electrical carrier signals and telecommunication signals.
[0045] Example 5 This embodiment 5 provides a computer product, which computer program product includes a computer program, which is stored in a computer-readable storage medium; the processor of the system configuration device for the new energy station system reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the system configuration device for the new energy station system can execute the system configuration method for the new energy station system described in embodiment 1, which will not be repeated here.
[0046] It should be noted that a person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods.
[0047] The system configuration method for a new energy station system provided by the present invention displays the attributes in a configuration file on a background management page, operates the system configuration on the background management page, and then rewrites the adjusted configuration information into the system configuration file, thereby greatly improving the operation and maintenance efficiency and ensuring the operational safety of the system.
[0048] The above embodiment is only one of the implementation methods that can realize the technical solution of the present invention. The scope of protection claimed by the present invention is not limited only to this embodiment, but also includes changes, replacements and other implementation methods that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed by the present invention.
Claims
1. A system configuration method for a new energy station system, characterized in that: include: Obtain the system configuration file of the new energy station system and obtain the file stream of the system configuration file; Parsing the file stream of the system configuration file to obtain the content of the system configuration file; wherein the content of the system configuration file includes a plurality of configuration attribute information, each of which is stored in the format of attribute name + attribute value; From a number of configuration attribute information, obtain and display the configuration attribute information to be modified to the background management page of the new energy station system; On the background management page of the new energy station system, modify the configuration attribute information to be modified and generate the modified configuration attribute information; The modified configuration attribute information is rewritten into the system configuration file of the new energy station system.
2. A system configuration method for a new energy station system according to claim 1, characterized in that: The process of obtaining the system configuration file of the new energy station system and the file stream of the system configuration file is as follows: The file operation function provided by the programming language is used to read the content of the system configuration file of the new energy station system according to the storage path of the system configuration file of the new energy station system, and obtain the file stream of the system configuration file.
3. A system configuration method for a new energy station system according to claim 1, characterized in that: The process of parsing the file stream of the system configuration file to obtain the content of the system configuration file is as follows: Use the load function of PyYAML to read and parse the file stream of the system configuration file to obtain the content of the system configuration file.
4. A system configuration method for a new energy station system according to claim 1, characterized in that: The process of obtaining and displaying the configuration attribute information to be modified from several pieces of configuration attribute information to the background management page of the new energy station system is as follows: Based on the attribute name, select the configuration attribute information to be modified from the plurality of configuration attribute information; The configuration attribute information to be modified is sent and displayed on the background management page of the new energy station system.
5. A system configuration method for a new energy station system according to claim 4, characterized in that: The background management page of the new energy station system provides a function for editing, saving or deleting the attribute value of the configuration attribute information to be modified.
6. A system configuration method for a new energy station system according to claim 1, characterized in that: The process of rewriting the modified configuration attribute information into the system configuration file of the new energy station system is as follows: The modified configuration attribute information is rewritten into the system configuration file of the new energy station system in the form of a file stream.
7. A system configuration device for a new energy station system, characterized in that: include: A reading module is used to obtain a system configuration file of a new energy station system and obtain a file stream of the system configuration file; A parsing module, used to parse the file stream of the system configuration file to obtain the content of the system configuration file; wherein the content of the system configuration file includes a plurality of configuration attribute information, each of which is stored in the format of attribute name + attribute value; A display module is used to obtain and display the configuration attribute information to be modified from a plurality of configuration attribute information to the background management page of the new energy station system; A modification module is used to modify the configuration attribute information to be modified on the background management page of the new energy station system and generate the modified configuration attribute information; The writing module is used to rewrite the modified configuration attribute information into the system configuration file of the new energy station system.
8. A system configuration device for a new energy station system, characterized in that: include: a processor suitable for executing a computer program; A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, the system configuration method for a new energy station system as described in any one of claims 1 to 6 is executed.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the system configuration method for a new energy station system as described in any one of claims 1 to 6 is implemented.
10. A computer program product, characterized in that The computer program product includes a computer program, and when the computer program is executed by a processor, the system configuration method for a new energy station system as described in any one of claims 1 to 6 is implemented.