A method, device and electronic equipment for configuring universal edge equipment of a hydropower station
By integrating the configuration methods of front-end, back-end, compilation tool chain and protocol plug-in in the edge equipment of hydropower stations, the unified management problem of different equipment models is solved, the operation and maintenance costs are reduced, and the safety and interconnectivity are improved, and the hydropower station is realized Unified configuration management of different edge devices on site.
Patent Information
- Application Number
- CN202310371080.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-07
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2043-04-07
AI Technical Summary
Due to the differences between different manufacturers and models of hydropower station edge equipment, the configuration management tool is highly coupled, making it difficult to achieve unified management, which increases operation and maintenance costs and security risks, and there is a risk of resource waste and leakage in code compilation and transmission.
Provide a universal edge device configuration method for hydropower stations. By integrating front-end, back-end, compilation tool chain and protocol plug-in, the code compilation interpretation process is migrated to the compilation tool chain, the preset encryption communication method is adopted, and the protocol plug-in is used to configure parameters. and the transmission of code logic to reduce the demand for device memory computing power and the risk of transmission leakage.
It realizes unified configuration management of different edge devices, reduces operation and maintenance costs, improves the interconnectivity and portability of business logic, and ensures timely and accurate communication information and the security of code logic.
Smart Images

Figure CN116436776B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of edge server technology, and in particular to a method, device and electronic equipment for configuring universal edge equipment in a hydropower station. Background Art
[0002] At present, hydropower stations generally use a large number of underlying sensors to collect and count industrial site operating parameters. These edge devices are gradually built up with the business iteration and industrial development of hydropower stations. Due to differences in procurement batches, business orientation, and functions implemented, these edge devices are generally different models from different equipment manufacturers, and the functional designs and communication protocols used are also very different.
[0003] However, due to the high degree of coupling between edge-side devices and configuration tools in hydropower stations, equipment engineers and operation and maintenance personnel usually have to use special configuration tools to configure and manage specific edge devices. The industrial site lacks flexibility, which increases the difficulty and cost of equipment deployment management and operation and maintenance. In addition, due to the different designs of communication protocols and data models between edge devices of different manufacturers, it is difficult to communicate and interconnect directly. The lack of data sharing and business cooperation will lead to chaotic wiring at the industrial site, repeated data collection, waste of resources and potential safety hazards in the hydropower station system. The existing code logic is issued and executed in the built-in code compilation environment in the edge device, and the original code issued by the configuration tool is compiled and executed. This requires the edge device to have sufficient computing and storage capabilities, and usually can only meet the code compilation of one or several languages, lacks scalability, and the transmission of original code may also have the risk of leakage. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a method, device and electronic device for configuring a universal edge device of a hydropower station to solve the technical problem in the prior art that a unified configuration management tool cannot be used to manage different edge devices of hydropower stations, resulting in high business construction and operation and maintenance management costs of the hydropower station.
[0005] The technical solution proposed by the present invention is as follows:
[0006] In a first aspect, an embodiment of the present invention provides a method for configuring a universal edge device of a hydropower station, which is used for a universal edge device configuration tool of a hydropower station, and the universal edge device configuration tool of the hydropower station integrates a front end, a back end, a compilation tool chain and a protocol plug-in; the method for configuring a universal edge device of a hydropower station comprises: the front end obtains a configuration data set of the universal edge device of the hydropower station, and sends the configuration data set to the back end, wherein the configuration data set reflects the configuration requirements of the universal edge device of the hydropower station; when the configuration data set includes a first configuration parameter and a code logic to be compiled and interpreted, the back end sends the code logic to be compiled and interpreted to the compilation tool chain using a preset encryption communication method; the compilation tool chain compiles and interprets the code logic to be compiled and interpreted to obtain a target code logic, and sends the target code logic to the back end using the preset encryption communication method; the back end uses the protocol plug-in to send the first configuration parameter and the target code logic to the universal edge device of the hydropower station; the universal edge device of the hydropower station performs a configuration operation according to the first configuration parameter and the target code logic, and obtains a configuration result.
[0007] In combination with the first aspect, in a possible implementation of the first aspect, after the front end obtains a configuration data set of a universal edge device of a hydropower station and sends the configuration data set to the back end, the method further includes: when the configuration data set includes the first configuration parameters and control instruction information, the back end determines the target control device based on the control instruction information; when the target control device is the universal edge device of the hydropower station, the back end determines whether the first configuration parameters are complete based on the control instruction information; when the first configuration parameters are complete, the back end uses the protocol plug-in to send the first configuration parameters and the control instruction information to the universal edge device of the hydropower station; the universal edge device of the hydropower station performs a configuration operation according to the first configuration parameters and the control instruction information, and obtains the configuration result.
[0008] In combination with the first aspect, in another possible implementation of the first aspect, the hydropower station universal edge device configuration tool is also integrated with a database; when the target control device is the hydropower station universal edge device, the backend determines whether the first configuration parameter is complete based on the control instruction information, the method also includes: when the first configuration parameter is incomplete, the backend receives the second configuration parameter sent by the database; the backend uses the protocol plug-in to send the first configuration parameter, the second configuration parameter and the control instruction information to the hydropower station universal edge device; the hydropower station universal edge device performs configuration operations according to the first configuration parameter, the second configuration parameter and the control instruction information, and obtains the configuration result.
[0009] In combination with the first aspect, in another possible implementation of the first aspect, when the configuration data set includes the first configuration parameters and control instruction information, and the back end determines the target control device based on the control instruction information, the method also includes: when the target control device is the database, the back end sends the first configuration parameters to the database.
[0010] In combination with the first aspect, in another possible implementation of the first aspect, the method also includes: the front end obtains configuration result collection instruction information and the configuration result data collection range, and sends the configuration result collection instruction information and the configuration result data collection range to the back end; the back end uses the protocol plug-in to send the configuration result collection instruction information and the configuration result data collection range to the hydropower station universal edge device; the hydropower station universal edge device determines the target configuration result data according to the configuration result collection instruction information and the configuration result data collection range, and uses the protocol plug-in to send the target configuration result data to the back end; the back end sends the target configuration result data to the front end.
[0011] In combination with the first aspect, in another possible implementation of the first aspect, the hydropower station universal edge device determines the target configuration result data according to the configuration result collection instruction information and the configuration result data collection range, and uses the protocol plug-in to send the target configuration result data to the back end, and the method also includes: the back end determines whether the target configuration result data needs to be saved; when it is determined that the target configuration result data needs to be saved, the back end sends the target configuration result data to the database; the database performs a data synchronization update operation based on the target configuration result data, and saves the target configuration result data after the synchronization update.
[0012] In combination with the first aspect, in another possible implementation of the first aspect, the method also includes: the front end obtains a configuration result feedback time threshold, and determines the target configuration result data with feedback timeout in each type of target configuration result data sent by the back end based on the configuration result feedback time threshold.
[0013] In a second aspect, an embodiment of the present invention provides a general edge device configuration device for a hydropower station, which is used for a general edge device configuration tool for a hydropower station, and the general edge device configuration tool for a hydropower station integrates a front end, a back end, a compilation tool chain and a protocol plug-in; the general edge device configuration device for a hydropower station includes: an acquisition and sending module, which is used by the front end to acquire a configuration data set of a general edge device of a hydropower station, and send the configuration data set to the back end, wherein the configuration data set reflects the configuration requirements of the general edge device of the hydropower station; a first sending module, which is used when the configuration data set includes a first configuration parameter and a code logic to be compiled and interpreted, and the back end uses a preset encryption communication method to send the code logic to be compiled and interpreted to the compilation tool chain; a compilation and sending module, which is used by the compilation tool chain to compile and interpret the code logic to be compiled and interpreted, obtain the target code logic, and send the target code logic to the back end using the preset encryption communication method; a second sending module, which is used by the back end to send the first configuration parameter and the target code logic to the general edge device of the hydropower station using the protocol plug-in; an execution module, which is used by the general edge device of the hydropower station to perform a configuration operation according to the first configuration parameter and the target code logic, and obtain a configuration result.
[0014] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute a method for configuring a universal edge device for a hydropower station as described in the first aspect and any one of the first aspects of the embodiment of the present invention.
[0015] In a fourth aspect, an embodiment of the present invention provides an electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to execute the method for configuring a universal edge device for a hydropower station as described in the first aspect and any one of the first aspects of the embodiment of the present invention.
[0016] The technical solution provided by the present invention has the following effects:
[0017] The universal edge device configuration method for a hydropower station provided by an embodiment of the present invention migrates the code compilation and interpretation process to the compilation tool chain component. The universal edge device for a hydropower station only needs to provide a runtime environment for code operation, which greatly reduces the requirements for device memory computing power and other performance, and reduces the burden on the device; a preset encryption communication method is introduced in the communication interaction process, and the code logic to be compiled and interpreted is converted into ciphertext by encryption means before transmission, thereby ensuring that the code logic will not be leaked due to the transmission process; the protocol plug-in communication method determined by the delay can ensure that all communication information is transmitted in a timely and accurate manner. Therefore, by implementing the present invention, the correspondence between the universal edge device of a hydropower station and the universal edge device configuration tool of a hydropower station can be fully decoupled, the interconnectivity, heterogeneity and portability of the business logic can be improved, and the purpose of using the same universal edge device configuration tool for a hydropower station to uniformly configure and manage different edge devices on site of a hydropower station is achieved, thereby reducing the business construction and operation and maintenance management costs of a hydropower station. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 is a structural block diagram of a universal edge device configuration tool for a hydropower station provided according to an embodiment of the present invention;
[0020] Figure 2 is a flow chart of a method for configuring a universal edge device of a hydropower station provided according to an embodiment of the present invention;
[0021] Figure 3 is another structural block diagram of a universal edge device configuration tool for a hydropower station provided according to an embodiment of the present invention;
[0022] Figure 4 It is a schematic diagram of the process of issuing configuration of a general edge device of a hydropower station according to an embodiment of the present invention;
[0023] Figure 5 It is a schematic diagram of the process of uploading the configuration and operation results of a general edge device of a hydropower station provided in an embodiment of the present invention;
[0024] Figure 6 is a structural block diagram of a general edge device configuration device for a hydropower station provided according to an embodiment of the present invention;
[0025] Figure 7 is a schematic diagram of the structure of a computer-readable storage medium provided according to an embodiment of the present invention;
[0026] Figure 8 It is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] The embodiment of the present invention provides a method for configuring a universal edge device of a hydropower station, which is used in a universal edge device configuration tool of a hydropower station, such as Figure 1 As shown in the figure, the universal edge device configuration tool for hydropower stations integrates the front-end, back-end, compilation tool chain, protocol plug-in and database. Among them, the compilation tool chain can be python, ST (Structured Text), LD (Ladder Diagram), FBD (Function Block Diagram), etc.; the protocol plug-in can be powerlink (an open source real-time communication technology), modbus (serial communication protocol), MQTT (message queue telemetry transmission), OPCUA (an industrial control protocol), etc.
[0030] like Figure 2 As shown, the hydropower station universal edge device configuration method includes the following steps:
[0031] Step 101: The front end obtains a configuration data set of a universal edge device of a hydropower station, and sends the configuration data set to the back end.
[0032] Among them, the front end is used to provide visual application configuration and management services for the managers and operation and maintenance personnel corresponding to the general edge devices of the hydropower station; the data information in the configuration data set can reflect the different configuration requirements of the general edge devices of the hydropower station.
[0033] Specifically, the front end can obtain the configuration data set provided by the management personnel and operation and maintenance personnel corresponding to the general edge devices of the hydropower station.
[0034] Step 102: When the configuration data set includes the first configuration parameter and the to-be-compiled interpreted code logic, the backend sends the to-be-compiled interpreted code logic to the compilation tool chain using a preset encrypted communication method.
[0035] Specifically, when the configuration data set obtained by the front end includes the first configuration parameter and the interpreted code logic to be compiled, the back end reduces the complexity of the configuration by calling a preset encryption communication method, such as an encryption SDK to communicate and interact with the compilation tool chain.
[0036] By converting the code logic to be compiled and interpreted into ciphertext through encryption before transmitting it, it can be ensured that the code logic will not be leaked due to the transmission process. At the same time, an integrity verification mechanism can be introduced during the encrypted transmission process to ensure that the code logic is not lost during the transmission process, thereby ensuring the reliability and integrity of the communication data.
[0037] Step 103: The compilation tool chain compiles and interprets the code logic to be compiled and interpreted to obtain the target code logic, and uses the preset encryption communication method to send the target code logic to the back end.
[0038] Among them, the compilation tool chain can be any one of the compilation tool chains integrated in the universal edge device configuration tool of the hydropower station in the above-mentioned embodiment. The embodiment of the present invention does not make specific limitations on this, as long as the requirements are met.
[0039] Specifically, after the code logic to be compiled and interpreted is compiled and interpreted using the compilation tool chain, the obtained target code logic is sent to the corresponding backend using the encryption SDK.
[0040] By migrating the code compilation and interpretation process to the compilation tool chain components, the general edge devices of hydropower stations only need to provide an operating environment for code execution, which greatly reduces the requirements for device memory, computing power and other performance, reduces the demand restrictions on edge device performance at the hydropower station industrial site, and reduces the burden on general edge devices in hydropower stations.
[0041] Step 104: The backend uses the protocol plug-in to send the first configuration parameter and the target code logic to the universal edge device of the hydropower station.
[0042] Among them, the protocol plug-in can be any one of the protocol plug-ins integrated in the universal edge device configuration tool of the hydropower station in the above-mentioned embodiment. The embodiment of the present invention does not make specific limitations on this, as long as the requirements are met.
[0043] Specifically, the backend communicates and interacts with the universal edge device of the hydropower station through the protocol plug-in, and sends the obtained first configuration parameters and target code logic to the corresponding universal edge device of the hydropower station.
[0044] By managing and using communication protocols in the form of protocol plug-ins, and plugging in the corresponding compilation environment of the integrated compilation tool chain in the form of third-party library files, the expansion and flexible construction of the general edge device configuration tool of the hydropower station can be realized. Furthermore, users of the general edge devices of the hydropower station can conveniently configure and use different communication protocols and compilation environments through parameter selection and file introduction. At the same time, the backend can also conveniently manage and use different protocol communication functions by modifying the internal communication protocol plug-in, and further, it is convenient to configure and use a variety of different common industrial protocols, which is convenient for interconnection between different devices.
[0045] Step 105: The hydropower station universal edge device performs a configuration operation according to the first configuration parameters and the target code logic, and obtains a configuration result.
[0046] Specifically, after receiving the first configuration parameters and the target code logic, the universal edge device of the hydropower station will spontaneously perform periodic execution and obtain the corresponding configuration results.
[0047] The universal edge device configuration method for a hydropower station provided by an embodiment of the present invention migrates the code compilation and interpretation process to the compilation tool chain component. The universal edge device for a hydropower station only needs to provide a runtime environment for code operation, which greatly reduces the requirements for device memory computing power and other performance, and reduces the burden on the device; a preset encryption communication method is introduced in the communication interaction process, and the code logic to be compiled and interpreted is converted into ciphertext by encryption means before transmission, thereby ensuring that the code logic will not be leaked due to the transmission process; the protocol plug-in communication method determined by the delay can ensure that all communication information is transmitted in a timely and accurate manner. Therefore, by implementing the present invention, the correspondence between the universal edge device of a hydropower station and the universal edge device configuration tool of a hydropower station can be fully decoupled, the interconnectivity, heterogeneity and portability of the business logic can be improved, and the purpose of using the same universal edge device configuration tool for a hydropower station to uniformly configure and manage different edge devices on site of a hydropower station is achieved, thereby reducing the business construction and operation and maintenance management costs of a hydropower station.
[0048] As an optional implementation manner of an embodiment of the present invention, after step 101, the method further includes: when the configuration data set includes the first configuration parameters and control instruction information, the back end determines the target control device based on the control instruction information; when the target control device is the hydropower station universal edge device, the back end determines whether the first configuration parameters are complete based on the control instruction information; when the first configuration parameters are complete, the back end uses the protocol plug-in to send the first configuration parameters and the control instruction information to the hydropower station universal edge device; the hydropower station universal edge device performs configuration operations according to the first configuration parameters and the control instruction information, and obtains the configuration results.
[0049] Specifically, when the configuration data set acquired by the front end includes the first configuration parameter and the control instruction information, it is necessary to determine the corresponding configuration requirement according to the control instruction information, and determine the corresponding interaction object, that is, the target control device, according to the configuration requirement;
[0050] If the target control device is a universal edge device of a hydropower station, it means that the universal edge device of the hydropower station needs to be configured using the first configuration parameter and control instruction information.
[0051] First, determine whether the first configuration parameter sent by the front end is complete based on the control instruction information. If it is complete, directly use the protocol plug-in communication method to send the first configuration parameter and the control instruction information to the corresponding hydropower station universal edge device, so that the hydropower station universal edge device, under the control of the control instruction information, uses the first configuration parameter to spontaneously and periodically perform the corresponding configuration operation and obtain the configuration result.
[0052] If the first configuration parameter is incomplete, the method also includes: the back end receives the second configuration parameter sent by the database; the back end uses the protocol plug-in to send the first configuration parameter, the second configuration parameter and the control instruction information to the hydropower station universal edge device; the hydropower station universal edge device performs a configuration operation according to the first configuration parameter, the second configuration parameter and the control instruction information, and obtains the configuration result.
[0053] Specifically, the backend first needs to obtain the missing second configuration parameter in the database, and use the protocol plug-in communication method to send the first configuration parameter, the second configuration parameter and the control instruction information to the corresponding hydropower station universal edge device, so that the hydropower station universal edge device, under the control of the control instruction information, uses the first configuration parameter and the second configuration parameter to spontaneously and periodically perform the corresponding configuration operations and obtain the configuration results.
[0054] As an optional implementation manner of an embodiment of the present invention, when the configuration data set includes the first configuration parameters and control instruction information, and the back end determines the target control device based on the control instruction information, the method also includes: when the target control device is the database, the back end sends the first configuration parameters to the database.
[0055] Specifically, when the target control device is a database, it means that there is no need to configure the universal edge device of the hydropower station at present, and only the relevant first configuration parameters need to be saved in the database.
[0056] As an optional implementation manner of an embodiment of the present invention, the method also includes: the front end obtains configuration result collection instruction information and the configuration result data collection range, and sends the configuration result collection instruction information and the configuration result data collection range to the back end; the back end uses the protocol plug-in to send the configuration result collection instruction information and the configuration result data collection range to the hydropower station universal edge device; the hydropower station universal edge device determines the target configuration result data according to the configuration result collection instruction information and the configuration result data collection range, and uses the protocol plug-in to send the target configuration result data to the back end; the back end sends the target configuration result data to the front end.
[0057] After completing the configuration operation of the hydropower station universal edge device using the hydropower station universal edge device configuration tool, you can also obtain the configuration results of the hydropower station universal edge device.
[0058] First, the front end sends the acquired configuration result collection instruction information and the configuration result data collection range to the back end, so that the back end uses the protocol plug-in communication method to send the configuration result collection instruction information and the configuration result data collection range to the corresponding hydropower station general edge device;
[0059] Secondly, after receiving the configuration result collection instruction information and the configuration result data collection range, the universal edge device of the hydropower station determines the corresponding target configuration result data based on the configuration result data collection range under the control of the configuration result collection instruction information, and also feeds back the target configuration result data to the corresponding backend by using the protocol plug-in communication method;
[0060] Furthermore, it also includes: the back end determines whether the target configuration result data needs to be saved; when it is determined that the target configuration result data needs to be saved, the back end sends the target configuration result data to the database; the database performs a data synchronization update operation based on the target configuration result data, and saves the target configuration result data after the synchronization update.
[0061] Specifically, the backend may determine whether the target configuration result data needs to be saved according to actual needs. If it does not need to be saved, the target configuration result data may be sent to the corresponding frontend immediately.
[0062] If it is determined that the target configuration result data needs to be saved, communication and interaction are performed with the corresponding database, and the latest data results of synchronous update are saved, that is, the target configuration result data is sent to the corresponding database, so that the database synchronously updates the configuration data already existing in the database according to the target configuration result data, and synchronously saves it.
[0063] As an optional implementation manner of an embodiment of the present invention, the method also includes: the front end obtains a configuration result feedback time threshold, and determines the target configuration result data with feedback timeout in each type of target configuration result data sent by the back end based on the configuration result feedback time threshold.
[0064] Specifically, a timeout threshold can be set at the front end of the hydropower station universal edge device configuration tool according to actual needs to provide real-time feedback on timeout message information.
[0065] First, the front end obtains the set configuration result feedback time threshold. Secondly, the feedback time of each target configuration result data fed back by the general edge device of the hydropower station is compared with the configuration result feedback time threshold. If the feedback time exceeds the configuration result feedback time threshold, the corresponding target configuration result data is determined to be the target configuration result data with feedback timeout. Otherwise, it is determined that the feedback is not timed out.
[0066] In one example, a method for configuring a universal edge device in a hydropower station is provided. Figure 3 The universal edge device configuration tool for hydropower stations shown in the figure includes several parts: front-end application page, back-end code logic, compilation tool chain, protocol plug-in, and database.
[0067] Among them, the front-end application page mainly provides visual application configuration and management services for equipment managers and operation and maintenance personnel. Equipment managers and operation and maintenance personnel can input and adjust the configuration parameters of specified edge devices through the front-end application page, and issue equipment control instructions or code logic as needed.
[0068] The back-end logic is responsible for opening the interface to accept the configuration parameters, code logic and control instructions sent by the front-end user, and storing the corresponding information in the database or sending it to the compilation tool chain for compilation or calling the protocol plug-in to establish a communication connection with the corresponding edge device as needed.
[0069] The code logic written by the user in the front-end page needs to be compiled and interpreted into a specific file format before it can be directly executed in the edge device environment. Therefore, a compilation tool chain component is introduced to interact with the back-end logic. The back-end sends the code to be compiled in the form of a string to the compilation tool chain for compilation processing. The compilation tool chain will return the final compilation and interpretation results to the back-end in a fixed form.
[0070] The configuration tool integrates protocol plug-ins for a variety of common industrial protocols, and can automatically call the corresponding industrial communication protocol to communicate and transmit data with the specified device according to the front-end user's selection.
[0071] The database is responsible for storing the corresponding device configuration parameter information and code logic as well as the data collection results returned by some edge devices.
[0072] The method comprises two parts: using a configuration tool to send the configuration to the bottom-level acquisition device of the hydropower station and obtaining the acquisition results from the bottom-level acquisition device according to the instruction requirements.
[0073] The configuration delivery process is as follows: Figure 4 As shown:
[0074] 1. The configuration personnel send configuration parameters, code logic and running instructions through the front-end interface and pass this information to the back-end.
[0075] 2. If the transmitted data information is required to be stored in the database or the data information existing in the database needs to be read, the backend communicates and exchanges data with the database according to specific requirements.
[0076] 3. If the front-end passes the code logic that needs to be compiled and interpreted, the back-end needs to be responsible for calling the encryption SDK to communicate and interact with the compilation tool chain to compile and interpret the code logic
[0077] 4. The configuration parameters, instruction information or compiled and interpreted code logic that need to be sent are sent to the edge device, and the edge device will spontaneously perform periodic execution according to the corresponding code logic and configuration parameters.
[0078] The process of uploading the running results is as follows Figure 5 As shown:
[0079] 1. Configuration personnel issue operation result collection instructions and data collection scope on the front-end interface as needed.
[0080] 2. The backend forwards the collection instructions and collection targets to the edge device.
[0081] 3. The device transmits the corresponding data information to the backend according to the instructions and target requirements.
[0082] 4. The backend determines whether the target data needs to be saved based on actual needs. If necessary, it communicates with the database to save and synchronize the latest data results.
[0083] 5. The backend returns the target data to the front-end interface for users to use.
[0084] The embodiment of the present invention also provides a general edge device configuration device for a hydropower station, which is used for a general edge device configuration tool for a hydropower station. The general edge device configuration tool for a hydropower station integrates a front end, a back end, a compilation tool chain and a protocol plug-in; Figure 6 As shown, the device comprises:
[0085] The acquisition and sending module 601 is used for the front end to acquire the configuration data set of the universal edge device of the hydropower station, and to send the configuration data set to the back end, and the configuration data set reflects the configuration requirements of the universal edge device of the hydropower station; for details, please refer to the relevant description of step 101 in the above method embodiment.
[0086] The first sending module 602 is used for sending the to-be-compiled interpreted code logic to the compilation tool chain by the backend using a preset encryption communication method when the configuration data set includes the first configuration parameter and the to-be-compiled interpreted code logic; for details, see the relevant description of step 102 in the above method embodiment.
[0087] The compiling and sending module 603 is used for the compilation tool chain to compile and interpret the code logic to be compiled and interpreted to obtain the target code logic, and to send the target code logic to the back end using the preset encryption communication method; for details, see the relevant description of step 103 in the above method embodiment.
[0088] The second sending module 604 is used for the backend to use the protocol plug-in to send the first configuration parameter and the target code logic to the universal edge device of the hydropower station; for details, please refer to the relevant description of step 104 in the above method embodiment.
[0089] Execution module 605 is used for the universal edge device of the hydropower station to perform configuration operations according to the first configuration parameters and the target code logic, and obtain configuration results; for details, please refer to the relevant description of step 105 in the above method embodiment.
[0090] The universal edge device configuration device for a hydropower station provided by an embodiment of the present invention migrates the code compilation and interpretation process to the compilation tool chain component. The universal edge device for a hydropower station only needs to provide a runtime environment for code operation, which greatly reduces the requirements for device memory computing power and other performance, and reduces the burden on the device; a preset encryption communication method is introduced in the communication interaction process, and the code logic to be compiled and interpreted is converted into ciphertext by encryption means before transmission, thereby ensuring that the code logic will not be leaked due to the transmission process; the protocol plug-in communication method determined by the delay can ensure that all communication information is transmitted in a timely and accurate manner. Therefore, by implementing the present invention, the correspondence between the universal edge device of a hydropower station and the universal edge device configuration tool of a hydropower station can be fully decoupled, the interconnectivity, heterogeneity and portability of the business logic can be improved, and the purpose of using the same universal edge device configuration tool for a hydropower station to uniformly configure and manage different edge devices on site in a hydropower station is achieved, thereby reducing the business construction and operation and maintenance management costs of a hydropower station.
[0091] As an optional implementation manner of the embodiment of the present invention, the device also includes: a first determination module, used for when the configuration data set includes the first configuration parameters and control instruction information, the back end determines the target control device based on the control instruction information; a first judgment module, used for when the target control device is the hydropower station universal edge device, the back end judges whether the first configuration parameters are complete based on the control instruction information; a third sending module, used for when the first configuration parameters are complete, the back end uses the protocol plug-in to send the first configuration parameters and the control instruction information to the hydropower station universal edge device; a first execution module, used for the hydropower station universal edge device to perform configuration operations according to the first configuration parameters and the control instruction information, and obtain the configuration results.
[0092] As an optional implementation of an embodiment of the present invention, the universal edge device configuration tool of the hydropower station is also integrated with a database; the device also includes: a receiving module, which is used for the back end to receive the second configuration parameter sent by the database when the first configuration parameter is incomplete; a fourth sending module, which is used for the back end to use the protocol plug-in to send the first configuration parameter, the second configuration parameter and the control instruction information to the universal edge device of the hydropower station; a second execution module, which is used for the universal edge device of the hydropower station to perform configuration operations according to the first configuration parameter, the second configuration parameter and the control instruction information, and obtain the configuration result.
[0093] As an optional implementation manner of the embodiment of the present invention, the apparatus further includes: a fifth sending module, configured to, when the target control device is the database, cause the backend to send the first configuration parameter to the database.
[0094] As an optional implementation of the embodiment of the present invention, the device also includes: a first acquisition and sending module, used for the front end to acquire configuration result collection instruction information and the configuration result data collection range, and send the configuration result collection instruction information and the configuration result data collection range to the back end; a sixth sending module, used for the back end to send the configuration result collection instruction information and the configuration result data collection range to the hydropower station universal edge device using the protocol plug-in; a determination and sending module, used for the hydropower station universal edge device to determine the target configuration result data according to the configuration result collection instruction information and the configuration result data collection range, and send the target configuration result data to the back end using the protocol plug-in; a seventh sending module, used for the back end to send the target configuration result data to the front end.
[0095] As an optional implementation manner of the embodiment of the present invention, the device also includes: a second judgment module, used by the back end to judge whether the target configuration result data needs to be saved; an eighth sending module, used by the back end to send the target configuration result data to the database when it is determined that the target configuration result data needs to be saved; a synchronous update and saving module, used by the database to perform a data synchronization update operation based on the target configuration result data, and save the target configuration result data after the synchronous update.
[0096] As an optional implementation of an embodiment of the present invention, the device also includes: a second determination module, which is used for the front end to obtain a configuration result feedback time threshold, and determine the target configuration result data with feedback timeout in each type of target configuration result data sent by the back end based on the configuration result feedback time threshold.
[0097] For a detailed description of the functions of the general edge device configuration apparatus for a hydropower station provided in an embodiment of the present invention, please refer to the description of the general edge device configuration method for a hydropower station in the above embodiment.
[0098] The embodiment of the present invention also provides a storage medium, such as Figure 7 As shown, a computer program 701 is stored thereon, and when the instruction is executed by the processor, the steps of the general edge device configuration method of the hydropower station in the above embodiment are implemented. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above types of memory.
[0099] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.
[0100] The embodiment of the present invention further provides an electronic device, such as Figure 8 As shown, the electronic device may include a processor 81 and a memory 82, wherein the processor 81 and the memory 82 may be connected via a bus or other means. Figure 8 The example of connecting through bus is taken in the following.
[0101] The processor 81 may be a central processing unit (CPU). The processor 81 may also be 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, or a combination of the above chips.
[0102] The memory 82 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as the corresponding program instructions / modules in the embodiment of the present invention. The processor 81 executes various functional applications and data processing of the processor by running the non-transient software programs, instructions and modules stored in the memory 82, that is, the hydropower station universal edge device configuration method in the above method embodiment is implemented.
[0103] The memory 82 may include a program storage area and a data storage area, wherein the program storage area may store the application required for the operating device and at least one function; the data storage area may store data created by the processor 81, etc. In addition, the memory 82 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 82 may optionally include a memory remotely arranged relative to the processor 81, and these remote memories may be connected to the processor 81 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0104] The one or more modules are stored in the memory 82 and when executed by the processor 81, perform the following steps: Figure 2-5 A method for configuring a universal edge device for a hydropower station in the illustrated embodiment.
[0105] For details of the above electronic equipment, please refer to Figures 2 to 5 The corresponding related descriptions and effects in the illustrated embodiments can be understood and will not be repeated here.
[0106] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for configuring a universal edge device for a hydropower station, which is used for a universal edge device configuration tool for a hydropower station, wherein the universal edge device configuration tool for a hydropower station integrates a front end, a back end, a compilation tool chain and a protocol plug-in; It is characterized in that The method comprises: The front end obtains a configuration data set of a universal edge device of a hydropower station, and sends the configuration data set to the back end, wherein the configuration data set reflects the configuration requirements of the universal edge device of the hydropower station; When the configuration data set includes the first configuration parameter and the to-be-compiled interpretation code logic, the backend sends the to-be-compiled interpretation code logic to the compilation tool chain using a preset encryption communication method; The compiling tool chain compiles and interprets the code logic to be compiled and interpreted to obtain the target code logic, and uses the preset encryption communication method to send the target code logic to the back end; The backend uses the protocol plug-in to send the first configuration parameter and the target code logic to the universal edge device of the hydropower station; The universal edge device of the hydropower station performs a configuration operation according to the first configuration parameters and the target code logic, and obtains a configuration result.
2. The method according to claim 1, It is characterized in that After the front end obtains a configuration data set of a universal edge device of a hydropower station and sends the configuration data set to the back end, the method further includes: When the configuration data set includes the first configuration parameter and control instruction information, the backend determines a target control device based on the control instruction information; When the target control device is the universal edge device of the hydropower station, the backend determines whether the first configuration parameter is complete based on the control instruction information; When the first configuration parameters are complete, the backend uses the protocol plug-in to send the first configuration parameters and the control instruction information to the universal edge device of the hydropower station; The universal edge device of the hydropower station performs a configuration operation according to the first configuration parameter and the control instruction information, and obtains the configuration result.
3. The method according to claim 2, It is characterized in that The hydropower station universal edge device configuration tool is also integrated with a database; when the target control device is the hydropower station universal edge device, after the back end determines whether the first configuration parameter is complete based on the control instruction information, the method further includes: When the first configuration parameter is incomplete, the backend receives the second configuration parameter sent by the database; The backend uses the protocol plug-in to send the first configuration parameter, the second configuration parameter and the control instruction information to the universal edge device of the hydropower station; The universal edge device of the hydropower station performs a configuration operation according to the first configuration parameter, the second configuration parameter and the control instruction information, and obtains the configuration result.
4. The method according to claim 3, It is characterized in that When the configuration data set includes the first configuration parameter and control instruction information, and the backend determines the target control device based on the control instruction information, the method further includes: When the target control device is the database, the backend sends the first configuration parameter to the database.
5. The method according to claim 3, It is characterized in that The method further comprises: The front end obtains configuration result collection instruction information and configuration result data collection range, and sends the configuration result collection instruction information and the configuration result data collection range to the back end; The backend uses the protocol plug-in to send the configuration result collection instruction information and the configuration result data collection range to the universal edge device of the hydropower station; The universal edge device of the hydropower station determines the target configuration result data according to the configuration result collection instruction information and the configuration result data collection range, and sends the target configuration result data to the back end by using the protocol plug-in; The back end sends the target configuration result data to the front end.
6. The method according to claim 5, It is characterized in that After the hydropower station universal edge device determines the target configuration result data according to the configuration result collection instruction information and the configuration result data collection range, and sends the target configuration result data to the back end using the protocol plug-in, the method further includes: The backend determines whether the target configuration result data needs to be saved; When it is determined that the target configuration result data needs to be saved, the backend sends the target configuration result data to the database; The database performs a data synchronization update operation based on the target configuration result data, and saves the target configuration result data after synchronization update.
7. The method according to claim 6, It is characterized in that The method further comprises: The front end obtains a configuration result feedback time threshold, and determines the target configuration result data of which feedback timeout has occurred among each type of the target configuration result data sent by the back end based on the configuration result feedback time threshold.
8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the universal edge device configuration method for a hydropower station as described in any one of claims 1 to 7.
9. An electronic device, It is characterized in that include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the universal edge device configuration method for a hydropower station as described in any one of claims 1 to 7 by executing the computer instructions.
