Function configuration method and device of device, equipment, storage medium and program product
By obtaining the business requirements of the energy storage valve control and maintenance device and obtaining configuration information from the predefined device configuration package, and generating configuration files for functional configuration, the problem of cumbersome functional configuration methods is solved, and the effect of simplifying configuration and improving efficiency is achieved.
Patent Information
- Application Number
- CN202311518299.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-14
- Publication Date
- 2025-05-16
AI Technical Summary
The function configuration of the energy storage valve control and maintenance device is cumbersome and difficult to effectively simplify.
A functional configuration method for a device is provided, by obtaining the business requirements of the target device, obtaining corresponding configuration information from a predefined device configuration package, and generating a configuration file for functional configuration.
The functional configuration process of energy storage valve control and maintenance devices is simplified, the development cost is reduced, the functional configuration efficiency is improved, and the configuration management of business needs is more convenient.
Smart Images

Figure CN120010940A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of power systems, and in particular to a method for configuring the function of a device, a device, equipment, a storage medium, and a program product. Background Art
[0002] Due to differences in application scenarios, the energy storage valve control system will have a variety of functional program devices, such as energy storage valve control and protection devices, energy storage valve expansion devices, etc.
[0003] Taking the energy storage valve control and protection device as an example, the energy storage valve control and protection device needs to implement different functions under different application services. In related technologies, the various functions of the energy storage valve control and protection device are usually configured in advance so that the device can work normally.
[0004] However, in the related art, there is a problem of complicated configuration method when performing functional configuration of the energy storage valve control and protection device. Summary of the invention
[0005] Based on this, it is necessary to provide a device function configuration method, device, equipment, storage medium and program product to address the above technical problems, which can simplify the function configuration of the energy storage valve control and protection device.
[0006] In a first aspect, an embodiment of the present application provides a method for configuring a function of a device, including:
[0007] Acquire at least one service requirement corresponding to the target device;
[0008] Acquire configuration information for each service requirement from a predefined device configuration package; the device configuration package includes configuration data required for multiple services of the target device;
[0009] According to the configuration information of each business requirement, a configuration file of each business requirement is generated; the configuration file is used to perform function configuration of the target device.
[0010] In an embodiment of the present application, at least one business requirement corresponding to the target device is first obtained, and then the configuration information of each business requirement is obtained from a predefined device configuration package; wherein the device configuration package includes the configuration data required for various businesses of the target device; finally, a configuration file for each business requirement is generated based on the configuration information of each business requirement; the configuration file is used to perform functional configuration of the target device. In this embodiment, various configuration data of all businesses in the energy storage valve control and protection device are predefined in advance, and the actual business requirements are decoupled from the software program. In this way, when performing functional configuration for application requirements, it is only necessary to obtain the corresponding configuration data from the predefined device configuration package according to the business requirements, and the configuration file corresponding to the business requirements can be determined based on the obtained configuration information, thereby simplifying the functional configuration of the device; and, through a set of universal device configuration packages, the functional requirements of the target device can be flexibly configured, which reduces development costs and improves functional configuration efficiency.
[0011] In one embodiment, generating a configuration file for each business requirement according to the configuration information of each business requirement includes:
[0012] For any business requirement, determine the business configuration file and communication model file of the business requirement according to the configuration information of the business requirement;
[0013] Determine the configuration file for business requirements based on the business configuration file and communication model file of business requirements.
[0014] In the embodiment of the present application, for any business demand, the business configuration file and the communication model file of the business demand are determined according to the configuration information of the business demand, and then the configuration file of the business demand is determined according to the business configuration file and the communication model file of the business demand. In this embodiment, the configuration information related to the business demand is centrally managed by means of a configuration file, which makes the management and maintenance of the configuration of the business demand more convenient; and the business configuration information includes various function configurations and parameter configurations required to implement the business demand, and the communication model file represents the communication demand of the business demand. Therefore, the configuration file of the business demand is determined according to the business configuration file and the communication model file of the business demand, so that the target device can meet the specific needs of the business and the normal communication between the business systems.
[0015] In one embodiment, determining a service configuration file of the service requirement according to the configuration information of the service requirement includes:
[0016] Determine the function configuration information and signal configuration information of the business requirements according to the configuration information of the business requirements;
[0017] Determine the service profile of the service requirement based on the function configuration information and signal configuration information of the service requirement.
[0018] In the embodiment of the present application, the function configuration information and signal configuration information of the business requirements are determined according to the configuration information of the business requirements, and then the business configuration file of the business requirements is determined according to the function configuration information and signal configuration information of the business requirements. In this embodiment, the function configuration information and signal configuration information of the business requirements are integrated into a business configuration file, which can realize the unified management of the configuration information of the business requirements and reduce the number and complexity of the business configuration files; and, the function configuration information and signal configuration information are merged into a business configuration file, so that the association and dependency between the configuration information are clearer, and the readability and comprehensibility of the business configuration file are improved.
[0019] In one embodiment, the configuration information includes hardware configuration information, instance signal information and functional modules, and the functional configuration information of the business requirement is determined according to the configuration information of the business requirement, including:
[0020] Configure the instance signal information into the function module to obtain the function instance configuration information;
[0021] The hardware configuration information and the function instance configuration information are determined as the function configuration information required by the business.
[0022] In the function configuration method of the device provided in the embodiment of the present application, the instance signal information is configured into the function module to obtain the function instance configuration information, and the hardware configuration information and the function instance configuration information are determined as the function configuration information of the business demand. In this method, the attributes in the business demand are extracted from the device configuration package and configured into the function module in the form of parameters, so as to realize the concretization of complex functions, eliminate the constraints of specialization, and realize the non-specialized and non-fixed value configuration of functions.
[0023] In one embodiment, the configuration information includes a short address and a function module of at least one function signal involved in realizing the service requirement; and according to the configuration information of the service requirement, determining the signal configuration information of the service requirement includes:
[0024] Determine the physical address of each functional signal according to the attribute information of each functional signal;
[0025] According to the functional modules, determine the input and output interfaces of each functional signal;
[0026] The short address of each functional signal, the physical address of each functional signal, and the input and output interface of each functional signal are associated to obtain the signal configuration information required by the business.
[0027] In the embodiment of the present application, the physical address of each function signal is determined according to the attribute information of each function signal, and the input and output interface of each function signal is determined according to the function module, and then the short address of each function signal, the physical address of each function signal and the input and output interface of each function signal are associated to obtain the signal configuration information of the business demand. In this embodiment, the short address, the physical address and the input and output interface of each function signal are associated, and the signal data in the physical address corresponding to the short address of the function signal can be directly mapped to the corresponding communication interface through the input and output interface of the function signal, thereby eliminating the transfer and analysis in the process of realizing the function of the business demand, and improving the processing efficiency of the function signal.
[0028] In one embodiment, determining the physical address of each functional signal according to the attribute information of each functional signal includes:
[0029] For any function signal, according to the attribute information of the function signal, a memory block matching the attribute information of the function signal is obtained from the memory pool; the memory pool includes memory blocks with multiple different attributes;
[0030] The address of the memory block is determined as the physical address of the function signal.
[0031] In an embodiment of the present application, for any function signal, according to the attribute information of the function signal, a memory block matching the attribute information of the function signal is obtained from the memory pool, and the address of the memory block is determined as the physical address of the function signal; wherein the memory pool includes a plurality of memory blocks with different attributes. In this embodiment, a physical address is assigned to the signal data of the function signal through the short address of the function signal, and the physical address of the function signal is directly mapped to the actual physical location in the memory, and the physical address can be directly used to perform read and write operations on the function signal without the need for additional address conversion or calculation, thereby improving data processing efficiency.
[0032] In one embodiment, determining a communication model file of a business requirement according to configuration information of the business requirement includes:
[0033] Acquire a standard communication model file of the target device; the standard model file includes multiple functional signals required to implement multiple services of the target device;
[0034] Obtain the short addresses of various function signals required to implement business requirements from the business configuration file;
[0035] The short address of each functional signal is mapped to the corresponding functional signal in the standard model file to obtain the communication model file required by the business.
[0036] In an embodiment of the present application, a standard communication model file of the target device is obtained; wherein the standard model file includes multiple function signals required to implement various services of the target device; the short address of each function signal required to implement the service requirements is obtained from the service configuration file, and then the short address of each function signal is mapped to the corresponding function signal in the standard model file to obtain the communication model file of the service requirements. In this embodiment, by mapping the short address of the function signal to the standard model file, the signal mapping between the service configuration file and the communication model file is realized, and the internal and external function signal management of the target device is established, so that the target device can operate normally.
[0037] In one embodiment, determining the configuration file of the business requirement according to the business configuration file and the communication model file of the business requirement includes:
[0038] Generate candidate configuration files of business requirements according to the business configuration files and communication model files of business requirements;
[0039] Perform functional verification on candidate configuration files;
[0040] If the function verification of the candidate configuration file passes, the candidate configuration file is determined as the configuration file of the business requirement.
[0041] In the function configuration method of the device provided in the embodiment of the present application, a candidate configuration file of the business requirement is generated according to the business configuration file and the communication model file of the business requirement, and the function verification of the candidate configuration file is performed. If the function verification of the candidate configuration file passes, the candidate configuration file is determined as the configuration file of the business requirement. In this method, whether the candidate configuration file meets the business requirement is determined by function verification, and the candidate configuration file is comprehensively evaluated and verified to determine the reliability and accuracy of the configuration file of the business requirement.
[0042] In one embodiment, obtaining configuration information of each service requirement from a predefined device configuration package includes:
[0043] Display all configuration data of the device configuration package in the software platform of the target device;
[0044] Configuration information required by the business is determined based on the configuration data selected by the user from the configuration data.
[0045] In the functional configuration method of the device provided in the embodiment of the present application, all the configuration data of the device configuration package are displayed in the software platform of the target device, and the configuration information of the business demand is determined according to the configuration data selected by the user from the configuration data. In this method, the configuration data required to implement the application demand is directly selected from the device configuration package in a visual manner, which simplifies the configuration process. The user only needs to select the configuration information on the interface, and there is no need to manually modify the configuration file or code, which simplifies the configuration process of the business demand and improves the configuration efficiency.
[0046] In one embodiment, the method further comprises:
[0047] In response to a configuration creation instruction triggered by a user in a software platform of a target device, detecting whether the configuration creation instruction carries reference configuration information of the target device;
[0048] In the case where the configuration creation instruction does not carry reference configuration information of the target device, executing the step of acquiring configuration information of each business requirement from a predefined device configuration package;
[0049] When the configuration creation instruction carries reference configuration information of the target device, the configuration information of each service requirement is determined according to the reference configuration information.
[0050] In an embodiment of the present application, in response to a configuration creation instruction triggered by a user in a software platform of a target device, it is detected whether the configuration creation instruction carries reference configuration information of the target device; in the case where the configuration creation instruction does not carry reference configuration information of the target device, the step of obtaining configuration information of each business requirement from a predefined device configuration package is performed; in the case where the configuration creation instruction carries reference configuration information of the target device, the configuration information of each business requirement is determined according to the reference configuration information. In this embodiment, in the case where there is no reference configuration information in the configuration creation instruction triggered by the user, the configuration information of each business requirement is obtained from the device configuration package, thereby improving the reliability of the configuration information of each business requirement; in the case where there is reference configuration information in the configuration creation instruction triggered by the user, the configuration information of each business requirement can be directly determined according to the reference configuration information, thereby quickly adapting to the configuration requirements of the target device, reducing the process of manual input or search, simplifying the configuration process of business requirements, reducing the possibility of configuration errors, and improving the accuracy and efficiency of configuration.
[0051] In one embodiment, determining configuration information of each service requirement according to reference configuration information includes:
[0052] In response to a user's request to modify the reference configuration information, obtaining the modified content of the reference configuration information;
[0053] Modify the reference configuration information according to the modified content;
[0054] The modified reference configuration information is determined as the configuration information of each business requirement.
[0055] In the embodiment of the present application, in response to the user's request to modify the reference configuration information, the modification content of the reference configuration information is obtained, and the reference configuration information is modified according to the modification content, and then the modified reference configuration information is determined as the configuration information of each business requirement. In this embodiment, the user can modify the pre-given reference configuration information so that the configuration information of the business requirement is more in line with the business requirements, thereby improving the reliability and accuracy of the configuration information of the business requirement.
[0056] In a second aspect, an embodiment of the present application further provides a device for configuring a function of a device, including:
[0057] A first acquisition module, used to acquire at least one service requirement corresponding to the target device;
[0058] A second acquisition module is used to acquire configuration information of each service requirement from a predefined device configuration package; the device configuration package includes configuration data required for multiple services of the target device;
[0059] The generation module is used to generate configuration files for each business requirement according to the configuration information of each business requirement; the configuration files are used to perform function configuration of the target device.
[0060] In a third aspect, an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method provided in any embodiment of the first aspect when executing the computer program.
[0061] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method provided in any embodiment of the first aspect above.
[0062] In a fifth aspect, an embodiment of the present application further provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the method provided in any embodiment of the first aspect above.
[0063] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are 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.
[0065] Figure 1 is an internal structure diagram of a computer device in one embodiment;
[0066] Figure 2 A schematic diagram of a flow chart of a method for configuring a function of a device in an embodiment;
[0067] Figure 3 A schematic flow chart of a method for configuring functions of a device in another embodiment;
[0068] Figure 4 A schematic flow chart of a method for configuring functions of a device in another embodiment;
[0069] Figure 5 A schematic flow chart of a method for configuring functions of a device in another embodiment;
[0070] Figure 6 A schematic flow chart of a method for configuring functions of a device in another embodiment;
[0071] Figure 7 A schematic flow chart of a method for configuring functions of a device in another embodiment;
[0072] Figure 8 A schematic flow chart of a method for configuring functions of a device in another embodiment;
[0073] Fig. 9 A schematic diagram of a configuration of a device configuration package in an embodiment;
[0074] Fig.10 A schematic diagram of the configuration of a functional example in an embodiment;
[0075] Fig.11 A schematic flow chart of a method for configuring functions of a device in another embodiment;
[0076] Fig.12 A schematic flow chart of a method for configuring functions of a device in another embodiment;
[0077] Fig.13 A schematic diagram of a configuration of a signal address example in an embodiment;
[0078] Fig.14 A schematic flow chart of a method for configuring functions of a device in another embodiment;
[0079] Fig.15 A schematic flow chart of a method for configuring functions of a device in another embodiment;
[0080] Fig.16 A schematic diagram of the operation of a signal configuration data block in one embodiment;
[0081] Fig.17 A schematic diagram of signal data flow in an embodiment;
[0082] Fig.18 A schematic flow chart of a method for configuring functions of a device in another embodiment;
[0083] Fig.19 A structural block diagram of a functional configuration device of a device in one embodiment;
[0084] Fig. 20 A structural block diagram of a functional configuration device for a device in another embodiment;
[0085] Fig.21 A structural block diagram of a functional configuration device for a device in another embodiment;
[0086] Fig. 22 A structural block diagram of a functional configuration device for a device in another embodiment;
[0087] Fig.23 A structural block diagram of a functional configuration device for a device in another embodiment;
[0088] Fig.24 A structural block diagram of a functional configuration device for a device in another embodiment;
[0089] Fig.25 A structural block diagram of a functional configuration device for a device in another embodiment;
[0090] Fig.26 A structural block diagram of a functional configuration device for a device in another embodiment;
[0091] Fig. 27 A structural block diagram of a functional configuration device for a device in another embodiment;
[0092] Fig.28 A structural block diagram of a functional configuration device for a device in another embodiment;
[0093] Fig.29 A structural block diagram of a device for configuring functions of a device in another embodiment. DETAILED DESCRIPTION
[0094] In order to make the purpose, technical solution and advantages of the present application more clear, the following will be described in detail with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.
[0095] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.
[0096] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined. The reference to "embodiment" in this article means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of this phrase in various positions in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0097] In the description of the embodiments of the present application, the term "plurality" refers to more than two (including two).
[0098] Among them, the energy storage valve control system will develop a variety of functional program devices due to differences in application scenarios, such as energy storage valve control and protection devices, energy storage valve expansion devices, etc. There will be different functions in one device, and different functions are realized through at least one plug-in. For example, the plug-ins include: high real-time data logic control application central processing unit (CPU) plug-in, management CPU function plug-in focusing on complex data processing and multi-client management, plug-in for high real-time sampling analog signal requirements, high-precision time-scale switch input and fast output (Input / Output, IO) plug-in, etc. For data such as telesignaling, remote control, pressure plate, set value, event report, event order recording (SOE), etc., it is necessary to associate data with functions through configuration and protocol to achieve normal operation of the device.
[0099] At present, each plug-in in the energy storage valve control and protection device has an independent configuration. Due to the different real-time requirements and communication mechanisms of each signal characteristic, each plug-in usually has multiple signal configurations. There will be cumbersome and inconsistent matching of plug-in configuration versions when managing the multi-function configuration of a single device. In addition, since the overall device configuration is not designed on a unified platform, the data configuration method of each function will be customized. Once there is a change in functional requirements, the existing program and communication protocol will be modified and adapted, and the configuration management will be cumbersome, and even multiple customized devices will be created.
[0100] Based on this, an embodiment of the present application provides a method for configuring the function of a device, which obtains configuration information of business requirements from a predefined device configuration package according to the business requirements of the target device, and generates a configuration file corresponding to the business requirements with the configuration information, and the configuration file is used to perform the function configuration of the target device; wherein the device configuration package includes configuration data required for various businesses of the target device. In this method, various configuration data of all businesses in the energy storage valve control and protection device are predefined in advance, and the actual business requirements are decoupled from the software program. In this way, when performing function configuration for application requirements, it is only necessary to obtain the corresponding configuration data from the predefined device configuration package according to the business requirements, and the configuration file corresponding to the business requirements can be determined based on the obtained configuration information, thereby simplifying the function configuration of the device.
[0101] Of course, it should be understood that the technical effects that can be achieved by the functional configuration method of the device provided in the embodiments of the present application are not limited to this, and other technical effects can also be achieved, for example, through a set of universal device configuration packages, flexible configuration according to application requirements, reducing development costs, improving functional configuration efficiency, etc. The technical effects that can be achieved in the embodiments of the present application can be specifically referred to in the following embodiments.
[0102] It should be noted that the function configuration method of the device provided in the embodiment of the present application is applicable to the function configuration of all devices, and the embodiment of the present application does not limit the target device.
[0103] For the convenience of explanation, the following embodiments are described with a computer device in one embodiment of the present application as the execution subject, and the computer device is used to configure the function of the target device. The computer device can be a server, and its internal structure diagram can be as follows: Figure 1As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store functional configuration data of the device. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the steps of the functional configuration method of the device provided in any of the following embodiments of the present application are implemented.
[0104] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0105] In an exemplary embodiment, Figure 2 As shown, a method for configuring the function of a device is provided, and the method is applied to Figure 1 The computer device in the example is used to illustrate, including the following steps:
[0106] S201, obtaining at least one service requirement corresponding to a target device.
[0107] The target device may be a device that requires functional configuration, that is, a certain application requirement is realized through the target device. The business requirement may be a specific requirement for the function and performance of the target device. When designing and developing the target device, the business requirements of the target device need to be clarified to ensure that the user's needs and expectations can be met.
[0108] Therefore, at least one business requirement corresponding to the target device can be determined based on user needs; taking the target device as an energy storage valve control and protection device as an example, the business requirements may include fault alarm, fault monitoring, remote monitoring, remote control, data analysis and report generation, etc.
[0109] Among them, at least one business demand corresponding to the target device is sent by a user to the computer device.
[0110] S202, obtaining configuration information of each service requirement from a predefined device configuration package; the device configuration package includes configuration data required for various services of the target device.
[0111] The configuration information of the business requirements may be the information required to be configured when implementing the business of the target device; the configuration information may include functional requirements, performance requirements, data requirements, interface requirements, and the like.
[0112] Among them, functional requirements may include specific descriptions and requirements of various sub-functions involved in realizing application requirements, as well as the implementation methods and order of each sub-function, etc.; performance requirements may include response speed, accuracy and reliability, etc.; data requirements may include the type of data and data volume collected, stored and processed, etc.; interface requirements may include interfaces for interacting with internal modules or external devices, including communication protocols, interface types, etc.
[0113] The computer device can analyze each business requirement, determine the configuration information of the business requirement, and then select the corresponding configuration data from a predefined device configuration package; for example, at least one application requirement of the target device is input into a pre-trained configuration generation model, the configuration information of each application requirement is obtained through the configuration generation model, and then the configuration information corresponding to each business requirement is obtained in the pre-defined device configuration package.
[0114] Optionally, the service requirement may carry configuration information of each service requirement. Therefore, when at least one service requirement of the target device is acquired, the configuration information of each service requirement may be directly determined.
[0115] S203, generating configuration files for each business requirement according to the configuration information of each business requirement; the configuration files are used to perform function configuration of the target device.
[0116] The configuration file can realize the application requirements of the target device. For example, the configuration file of each business requirement is respectively executed in the system of the target device to realize the corresponding business requirement.
[0117] The device configuration package can be the configuration data required for multiple services of the pre-defined target device, and each configuration data has an associated relationship; for any business requirement, when the configuration information of the business requirement is obtained from the device configuration package, the configuration information can be directly associated to generate a configuration file for the business requirement; for example, the configuration information of the business requirement includes a benchmark implementation method and instantiation parameters of the business requirement, so the instantiation parameters can be configured into the benchmark implementation method to generate the configuration file of the business requirement according to the instantiated benchmark implementation method; or the configuration information of the business requirement can be directly used to generate the configuration file of the business requirement.
[0118] In the functional configuration method of the device provided in the embodiment of the present application, at least one business requirement corresponding to the target device is first obtained, and then the configuration information of each business requirement is obtained from the predefined device configuration package; wherein the device configuration package includes the configuration data required for various businesses of the target device; finally, a configuration file for each business requirement is generated according to the configuration information of each business requirement; the configuration file is used to perform functional configuration of the target device. In this method, various configuration data of all businesses in the energy storage valve control and protection device are predefined in advance, and the actual business requirements are decoupled from the software program. In this way, when performing functional configuration for application requirements, it is only necessary to obtain the corresponding configuration data from the predefined device configuration package according to the business requirements, and the configuration file corresponding to the business requirements can be determined based on the obtained configuration information, thereby simplifying the functional configuration of the device; and through a set of universal device configuration packages, the functional requirements of the target device can be flexibly configured, which reduces the development cost and improves the efficiency of functional configuration.
[0119] In an exemplary embodiment, Figure 3 As shown, obtaining configuration information of each business requirement from a predefined device configuration package includes the following steps:
[0120] S301, displaying all configuration data of the device configuration package in the software platform of the target device.
[0121] The software platform may be a platform for functional configuration of a target device, wherein the target device may be multiple devices, that is, the software platform may be a general platform suitable for different application scenarios, and functional configuration of multiple devices may be implemented on the software platform.
[0122] When it is necessary to implement the functional configuration required by the application of the target device on the software platform, the visual interface of the software platform can be controlled to display all the configuration data in the device configuration package to the user.
[0123] S302: Determine configuration information required by the business according to the configuration data selected by the user from the configuration data.
[0124] The user may select configuration data from the device configuration package, and the configuration data selected by the user from the device configuration package is determined as configuration information of the business requirement.
[0125] Optionally, the configuration data selected by the user from the device configuration package can also be analyzed and calculated, and the calculation results can be determined as the configuration information of the business requirements; specifically, the configuration data selected by the user from the device configuration package can be input into the data processing model, the configuration data can be analyzed by the data processing model, and the configuration information of the business requirements can be output.
[0126] In the functional configuration method of the device provided in the embodiment of the present application, all the configuration data of the device configuration package are displayed in the software platform of the target device, and the configuration information of the business demand is determined according to the configuration data selected by the user from the configuration data. In this method, the configuration data required to implement the application demand is directly selected from the device configuration package in a visual manner, which simplifies the configuration process. The user only needs to select the configuration information on the interface, and there is no need to manually modify the configuration file or code, which simplifies the configuration process of the business demand and improves the configuration efficiency.
[0127] The above is a method for implementing configuration information for determining business requirements. Another method for implementing configuration information for determining business requirements is described below through an embodiment. In an exemplary embodiment, Figure 4 As shown, this embodiment includes the following steps:
[0128] S401 , in response to a configuration creation instruction triggered by a user in a software platform of a target device, detecting whether the configuration creation instruction carries reference configuration information of the target device.
[0129] The user may trigger the configuration creation instruction in the software platform of the target device by creating a new project on the software platform of the target device or by importing an existing configuration file on the software platform of the target device.
[0130] After the user triggers a configuration creation instruction in the software platform of the target device, the computer device responds to the configuration creation instruction triggered by the user in the software platform of the target device, and detects whether the configuration creation instruction carries reference configuration information of the target device; wherein the reference configuration information may be configuration information in an existing configuration file imported by the user into the software platform of the target device.
[0131] S402: When the configuration creation instruction does not carry reference configuration information of the target device, a step of acquiring configuration information of each service requirement from a predefined device configuration package is performed.
[0132] When the configuration creation instruction does not carry the reference configuration information of the target device, it means that the user has created a new project on the software platform, and then the step of obtaining the configuration information of each business requirement from the predefined device configuration package is executed.
[0133] Specifically, when the computer device detects that the configuration creation instruction does not carry the reference configuration information of the target device, all the configuration data in the device configuration package are displayed to the user on the software platform. The user then selects the configuration data corresponding to the business needs from all the configuration data in the device configuration package. The computer device determines the configuration information of the business needs based on the configuration data selected by the user from all the configuration data in the device configuration package.
[0134] It should be noted that in the embodiment of the present application, the method for determining the configuration information of the business requirements based on the configuration data selected by the user from all the configuration data in the device configuration package is the same as the description in the above embodiment, and the embodiment of the present application is no longer limited here.
[0135] S403: When the configuration creation instruction carries reference configuration information of the target device, configuration information of each service requirement is determined according to the reference configuration information.
[0136] In the case where the configuration creation instruction carries the reference configuration information of the target device, the reference configuration information can be directly determined as the configuration information of each service requirement.
[0137] Optionally, the user may also modify the reference configuration information according to business requirements, and determine the modified reference configuration information as the configuration information for each business requirement. Figure 5 As shown, according to the reference configuration information, determining the configuration information of each business requirement includes the following steps:
[0138] S501, in response to a user's request to modify reference configuration information, obtaining modified content of the reference configuration information.
[0139] The reference configuration information may not fully meet the business requirements. Therefore, the user can modify the reference configuration information in the visual interface of the software platform. For example, the user can change the communication mode of a signal in the business requirements from real-time communication to non-real-time communication.
[0140] The computer device responds to the user's request to modify the reference configuration information and directly obtains the modified content of the reference configuration information from the modification request.
[0141] S502: Modify the reference configuration information according to the modified content.
[0142] The computer device may modify the corresponding content in the reference configuration information according to the modified content; wherein the modified content is determined by the user according to the business requirements of the target device.
[0143] S503: Determine the modified reference configuration information as configuration information for each service requirement.
[0144] The computer device determines the modified reference configuration information as the configuration information of each business requirement.
[0145] In the embodiment of the present application, in response to the user's request to modify the reference configuration information, the modification content of the reference configuration information is obtained, and the reference configuration information is modified according to the modification content, and then the modified reference configuration information is determined as the configuration information of each business requirement. In this embodiment, the user can modify the pre-given reference configuration information so that the configuration information of the business requirement is more in line with the business requirements, thereby improving the reliability and accuracy of the configuration information of the business requirement.
[0146] In the function configuration method of the device provided in the embodiment of the present application, in response to the configuration creation instruction triggered by the user in the software platform of the target device, it is detected whether the configuration creation instruction carries the reference configuration information of the target device; in the case that the configuration creation instruction does not carry the reference configuration information of the target device, the step of obtaining the configuration information of each business requirement from the predefined device configuration package is executed; in the case that the configuration creation instruction carries the reference configuration information of the target device, the configuration information of each business requirement is determined according to the reference configuration information. In this method, in the case that the reference configuration information does not exist in the configuration creation instruction triggered by the user, the configuration information of each business requirement is obtained from the device configuration package, thereby improving the reliability of the configuration information of each business requirement; in the case that the reference configuration information exists in the configuration creation instruction triggered by the user, the configuration information of each business requirement can be directly determined according to the reference configuration information, so that the configuration requirements of the target device can be quickly adapted, the manual input or search process is reduced, the configuration process of the business requirements is simplified, the possibility of configuration errors is reduced, and the accuracy and efficiency of the configuration are improved.
[0147] The above embodiments describe how to obtain the configuration information of the business requirements. The following describes how to determine the configuration file according to the configuration information of the business requirements through an embodiment. In one embodiment, Figure 6 As shown, according to the configuration information of each business requirement, a configuration file for each business requirement is generated, including the following steps:
[0148] S601, for any business requirement, determine a business configuration file and a communication model file of the business requirement according to configuration information of the business requirement.
[0149] The business configuration file may be a description of the functional requirements, performance requirements, reliability requirements, user experience requirements, etc. involved when the target device implements business requirements; the communication model file may be a description of the communication requirements and interface requirements within the target device and between the target device and external devices when the target device implements business requirements, etc.
[0150] Among them, functional requirements include various functions that the target device needs to have to realize application requirements, including functional description, functional requirements, etc.; performance requirements include performance requirements for the target device to realize application requirements, including indicators such as response speed, accuracy, and reliability; reliability requirements include reliability requirements for the target device when realizing application requirements, including indicators such as long-term stable operation and low failure rate; user experience requirements include user experience requirements for the target device when realizing business requirements, including requirements such as user-friendly interface and easy operation.
[0151] Communication requirements include the communication protocol between the target device and other systems or devices when implementing application requirements, including data format, communication method, communication protocol version, etc.; interface requirements include the interface requirements for the target device to interact with other systems or devices when implementing application requirements, including interface type, data transmission method, etc.
[0152] Among them, for any business requirement, the configuration information of the business requirement may include functional requirements, performance requirements, reliability requirements, user experience requirements, communication requirements and interface requirements, etc. when the target device implements the business requirement.
[0153] Therefore, the functional requirements, performance requirements, reliability requirements, user experience requirements, communication requirements and interface requirements of the business needs can be directly obtained from the configuration information, and then the information corresponding to the functional requirements, performance requirements, reliability requirements and user experience requirements can be integrated to generate a business configuration file for the business needs, and the information corresponding to the communication requirements and interface requirements can be integrated to generate a communication model file for the business needs.
[0154] S602: Determine a configuration file of the business requirement according to the business configuration file of the business requirement and the communication model file.
[0155] The business configuration file and the communication model file of the business requirement are determined as the configuration file of the business requirement, and the configuration file includes the business configuration file and the communication model file.
[0156] In the function configuration method of the device provided in the embodiment of the present application, for any business demand, the business configuration file and the communication model file of the business demand are determined according to the configuration information of the business demand, and then the configuration file of the business demand is determined according to the business configuration file and the communication model file of the business demand. In this method, the configuration information related to the business demand is centrally managed by means of a configuration file, which can make the management and maintenance of the configuration of the business demand more convenient; and the business configuration information includes various function configurations and parameter configurations required to implement the business demand, and the communication model file represents the communication demand of the business demand. Therefore, the configuration file of the business demand is determined according to the business configuration file and the communication model file of the business demand, so that the target device can meet the specific needs of the business and the normal communication between the business systems.
[0157] In an exemplary embodiment, Figure 7 As shown, according to the configuration information of the business requirement, determining the business configuration file of the business requirement includes the following steps:
[0158] S701, determining function configuration information and signal configuration information of the business requirement according to configuration information of the business requirement.
[0159] Among them, the function configuration information may be the implementation method and processing tasks when realizing the business requirements, and the signal configuration information may be the configuration of the signals involved in realizing the business requirements.
[0160] For example, the functional configuration information may include task configuration, board configuration, function configuration and communication configuration, etc.; wherein the task configuration may be various tasks involved in realizing business requirements, such as refreshing data cycle, etc.; the board configuration may include the board involved in realizing application requirements, as well as the interface configuration, communication parameter configuration and function mode configuration corresponding to the board, etc.; the functional configuration includes various sub-functions involved in realizing business requirements, including at least one of event function, control function, parameter function and recording function, etc., as well as the method and sequence of realizing each sub-function. The signal configuration may include the parameters of various functional signals involved in realizing business requirements, such as parameters representing status signals, parameters of measurement signals, parameters of control signals and operating data parameters, etc.
[0161] The configuration information of business requirements may include task configuration, board configuration, function configuration and communication configuration of the business requirements, as well as the configuration of signals involved in implementing the business requirements. Therefore, the task configuration, board configuration, function configuration and communication configuration can be directly obtained from the configuration information of the business requirements to obtain the function configuration information of the business requirements, and the configuration of signals involved in implementing the business requirements can be obtained from the configuration information of the business requirements to obtain the signal configuration information of the business requirements.
[0162] S702: Determine a service configuration file of the service requirement according to the function configuration information and signal configuration information of the service requirement.
[0163] The function configuration information and signal configuration information of the business requirement may be directly determined as the business configuration file of the business requirement.
[0164] In the function configuration method of the device provided in the embodiment of the present application, the function configuration information and signal configuration information of the business demand are determined according to the configuration information of the business demand, and then the business configuration file of the business demand is determined according to the function configuration information and signal configuration information of the business demand. In this method, the function configuration information and signal configuration information of the business demand are integrated into a business configuration file, which can realize the unified management of the configuration information of the business demand and reduce the number and complexity of the business configuration files; and, the function configuration information and signal configuration information are merged into a business configuration file, so that the association and dependency between the configuration information are clearer, and the readability and comprehensibility of the business configuration file are improved.
[0165] Configuration information includes hardware configuration information, instance signal information and functional modules. In an exemplary embodiment, Figure 8 As shown, according to the configuration information of the business requirements, determining the functional configuration information of the business requirements includes the following steps:
[0166] S801, configure instance signal information into a function module to obtain function instance configuration information.
[0167] A device configuration package may include various types of configuration data, such as Fig. 9 As shown, Fig. 9 It can be an implementation method of a device configuration package, which may include hardware configuration information, data signal configuration and function module configuration; wherein the hardware configuration information may include task configuration, board configuration and communication configuration.
[0168] Among them, task configuration can include data management tasks, communication management tasks, debugging tasks, functional tasks and process management tasks. Data management tasks include the flow of signal data, etc., communication management tasks can include multiple data communication methods, debugging tasks can include signal operation status information, functional tasks can include multiple functional information that can be configured by the software platform, and process management tasks include each process information of multiple functions configured by the software platform.
[0169] The board configuration may include interface configuration, communication parameter configuration and function mode configuration; the interface configuration may include multiple configuration modes for each interface of each board. The communication parameter configuration may include multiple communication parameter configurations for each interface of each board, and the function mode configuration may include the functions that each board can realize.
[0170] Functional configuration may include event function, control function, parameter function and recording function, wherein the event function may represent the way in which each event task is implemented, the control function may represent the way in which each control task is implemented, the parameter function may represent the way in which a custom task is implemented, and the recording function may represent the way in which each recording task is implemented.
[0171] The data signal configuration may include parameter configurations of each type of functional signal, including state signals, measurement signals, control signals, operation signals and parameter signals; wherein the operation signal may be a signal obtained by calculating at least one of the state signal, measurement signal and control signal, and the parameter signal may be a user-defined signal. Each functional signal includes a predefined functional parameter value.
[0172] The communication configuration includes various communication modes, including at least one communication mode for inter-board communication, at least one communication mode for intra-board communication, real-time communication and non-real-time communication, and at least one communication mode for external communication.
[0173] Instance signal information may be the functional parameter values of various functional signals involved in realizing business requirements obtained by the user from the data signal configuration; functional signals may include state quantity signals, analog quantity signals, control quantity signals, event signals, and recording signals, etc.; among them, instance signal information may include the data status, update cycle, limit value, ratio, control mode, trigger method, and logic implementation of the functional signal.
[0174] The functional module can be a functional module that the user obtains from the functional configuration and needs to execute to implement business requirements. The functional module includes functional data blocks involved in implementing business requirements. The functional data blocks include various functional signals involved in implementing business requirements and parameterized configurations (functional parameters) of each functional signal.
[0175] Therefore, the instantiated numerical values of each signal in the instantiated signal can be configured into the functional data block of the functional module to obtain the instantiation configuration of the functional module, that is, the functional instance configuration information, that is, first obtain the instance signal information from the device configuration package, and then configure the instance signal information into the functional data block of the functional module.
[0176] like Fig.10 As shown, Fig.10A function instance configuration diagram is given, in which multiple types of function signals are configured in the data signal configuration, each type includes multiple function signals, and each function signal defines multiple function parameters. Taking the business requirements including function signal x1 and function signal y2 as an example, according to the business requirements, signal instance information is obtained, and the signal instance information includes function parameter p1 of function signal x1 and function parameter p2 of function signal y2. Then, the function parameters p1 and function parameters p2 corresponding to function signal x1 and function signal y2 are configured into the function data block of the function module.
[0177] S902: Determine the hardware configuration information and the function instance configuration information as the function configuration information required by the business.
[0178] Hardware configuration information may include task configuration information, board configuration information, and communication configuration information involved in realizing business requirements.
[0179] The hardware configuration information and function instance configuration information selected by the user are determined as the function configuration information required by the business.
[0180] In the function configuration method of the device provided in the embodiment of the present application, the instance signal information is configured into the function module to obtain the function instance configuration information, and the hardware configuration information and the function instance configuration information are determined as the function configuration information of the business demand. In this method, the attributes in the business demand are extracted from the device configuration package and configured into the function module in the form of parameters, so as to realize the concretization of complex functions, eliminate the constraints of specialization, and realize the non-specialized and non-fixed value configuration of functions.
[0181] The function signals used by all services of the target device are stored in the device configuration package in the form of short addresses. Therefore, the configuration information includes the short address and function module of at least one function signal involved in realizing the service requirements. In an exemplary embodiment, Fig.11 As shown, according to the configuration information of the business requirements, determining the signal configuration information of the business requirements includes the following steps:
[0182] S1101, determining the physical address of each functional signal according to the attribute information of each functional signal.
[0183] The physical address of the function signal may be a physical address storing data corresponding to the function signal.
[0184] In an exemplary embodiment, Fig.12 As shown, according to the attribute information of each functional signal, determining the physical address of each functional signal includes the following steps:
[0185] S1201, for any function signal, according to the attribute information of the function signal, obtain a memory block matching the attribute information of the function signal from a memory pool; the memory pool includes memory blocks with multiple different attributes.
[0186] The memory pool may be a memory of a preset size that is pre-allocated by a computer device to a target device, and the memory pool may store all data involved in the process of realizing the business requirements of the target device.
[0187] Among them, the attribute information may include real-time level, transmit and receive cycle length and / or data type. The internal storage can be pre-configured into memory blocks with multiple different attributes, and each memory block of each attribute includes at least one. For example, memory blocks are divided from the memory pool according to the real-time level, transmit and receive cycle length and / or data type of the functional signal; the data type may include the signal data corresponding to the functional signal being an integer, floating point or Boolean type.
[0188] Among them, the configuration information also includes the attribute information of each functional signal. Therefore, the attribute information of each functional signal can be directly obtained from the configuration information, and then according to the attribute information of each functional signal, the memory block consistent with the attribute information of the functional signal is obtained from the memory pool, and the memory block consistent with the attribute information of the functional signal in the memory pool is determined as the memory block matching the attribute information of the functional signal.
[0189] S1202, determine the address of the memory block as the physical address of the function signal.
[0190] A memory block in the memory pool that matches the attribute information of the function signal is determined as the physical address of the function signal.
[0191] Optionally, if there are multiple memory blocks matching the attribute information of the function signal in the memory pool, the address of one of the multiple memory blocks matching the attribute information of the function signal may be randomly determined as the physical address of the function signal.
[0192] like Fig.13 As shown, Fig.13 A signal address instance configuration is given, that is, through the signal instance configuration, the short addresses of the functional signals used to realize the business requirements are stored and classified, and the memory addresses are allocated to the functional signals to realize the signal memory address instantiation; specifically, first, the functional signals involved in the business requirements can be obtained from the data signal configuration in the device configuration package, and then the physical addresses of each functional signal are determined according to the attribute information of the functional signal; wherein, the short address of the functional signal can be configured in the data signal configuration in the device configuration package, therefore, the short addresses of each functional signal involved in realizing the business requirements can be obtained from the data signal configuration, and then the short addresses of each functional signal are associated with the physical address.
[0193] In an embodiment of the present application, for any function signal, according to the attribute information of the function signal, a memory block matching the attribute information of the function signal is obtained from the memory pool, and the address of the memory block is determined as the physical address of the function signal; wherein the memory pool includes a plurality of memory blocks with different attributes. In this embodiment, a physical address is assigned to the signal data of the function signal through the short address of the function signal, and the physical address of the function signal is directly mapped to the actual physical location in the memory, and the physical address can be directly used to perform read and write operations on the function signal without the need for additional address conversion or calculation, thereby improving data processing efficiency.
[0194] S1102: Determine the input and output interfaces of each functional signal according to the functional module.
[0195] The functional module includes multiple sub-processing tasks involved in realizing corresponding business requirements and the processing flow of the sub-processing tasks, etc. Each sub-processing task includes at least one input and output direction of a functional signal, etc.
[0196] Therefore, the input and output directions of each functional signal can be obtained from the flow directions of all functional signals of the functional module, thereby obtaining the input and output interfaces of each functional signal.
[0197] Among them, the input and output interfaces of the functional signals can be directly mapped to the corresponding communication interfaces according to the physical addresses of the functional signals, thereby eliminating the need for transfer and analysis during the function implementation process of business requirements and improving the processing efficiency of functional signals.
[0198] S1103, associating the short address of each functional signal, the physical address of each functional signal, and the input and output interface of each functional signal to obtain signal configuration information required by the business.
[0199] The short address of each functional signal, the physical address of each functional signal and the input and output interface of each functional signal are associated to obtain the signal configuration information of the business requirement, that is, the signal configuration information of the business requirement includes the short addresses, physical addresses and input and output interfaces corresponding to multiple functional signals.
[0200] Optionally, the short address of the function signal can be determined according to the signal type, serial number and functional module in the visual programming of the function signal, so that it is convenient to manage and configure the short address of the function signal; the signal configuration information can also include the signal name of the function signal, instance signal information, etc.
[0201] In the function configuration method of the device provided in the embodiment of the present application, the physical address of each function signal is determined according to the attribute information of each function signal, and the input and output interface of each function signal is determined according to the function module, and then the short address of each function signal, the physical address of each function signal and the input and output interface of each function signal are associated to obtain the signal configuration information of the business demand. In this method, the short address, the physical address and the input and output interface of each function signal are associated, and the signal data in the physical address corresponding to the short address of the function signal can be directly mapped to the corresponding communication interface through the input and output interface of the function signal, thereby eliminating the transfer and analysis in the function realization of the business demand and improving the processing efficiency of the function signal.
[0202] In an exemplary embodiment, Fig.14 As shown, according to the configuration information of the business requirements, determining the communication model file of the business requirements includes the following steps:
[0203] S1401, obtaining a standard communication model file of a target device; the standard model file includes a plurality of functional signals required to implement a plurality of services of the target device.
[0204] The target device may run under a standard communication protocol, and when configuring the functions of the target device, a standard communication model file corresponding to the standard communication protocol may be obtained.
[0205] Taking the IEC 61850 communication protocol as an example, the standard communication model file that can be obtained is a model file defined based on the IEC 61850 standard. The model file includes the data model and communication specifications of the target device. By running the target device under the 61850 communication protocol, the target device can realize monitoring, control, protection and other functions.
[0206] Therefore, the standard model file includes a variety of functional signals for implementing a variety of services of the target device, and these functional signals can describe various operations and states of the target device.
[0207] S1402, obtaining short addresses of various functional signals required to implement business requirements from the business configuration file.
[0208] Based on the above embodiments, it can be known that the service configuration file includes the short addresses of the functional signals required to implement the service requirements. Therefore, the short addresses of the functional signals required to implement the service requirements can be directly obtained from the service configuration file.
[0209] S1403, mapping the short address of each functional signal to the corresponding functional signal in the standard model file to obtain a communication model file of the business requirement.
[0210] According to the short addresses of the functional signals in the service configuration file, the short addresses are configured for the corresponding functional signals in the standard communication model file, and the standard communication model file after the short addresses are configured is determined as the communication model file required by the service.
[0211] In the function configuration method of the device provided in the embodiment of the present application, a standard communication model file of the target device is obtained; wherein the standard model file includes multiple function signals required to implement various services of the target device; the short address of each function signal required to implement the service requirements is obtained from the service configuration file, and then the short address of each function signal is mapped to the corresponding function signal in the standard model file to obtain the communication model file of the service requirements. In this method, by mapping the short address of the function signal to the standard model file, the signal mapping between the service configuration file and the communication model file is realized, and the internal and external function signal management of the target device is established, so that the target device can operate normally.
[0212] In an exemplary embodiment, Fig.15 As shown, according to the business configuration file and the communication model file of the business requirement, determining the configuration file of the business requirement includes the following steps:
[0213] S1501, generating a candidate configuration file of the business requirement according to the business configuration file of the business requirement and the communication model file.
[0214] The service configuration file and communication model file of the service requirement obtained above are determined as candidate configuration files of the service requirement.
[0215] Optionally, the business configuration files and communication configuration files of the business requirements may be uniformly analyzed, the business configuration files and communication model files of the business requirements may be input into the file analysis model, the business configuration files and communication model files may be analyzed by the file analysis model, and candidate configuration files of the business requirements may be output.
[0216] S1502: Perform function verification on the candidate configuration file.
[0217] Functional verification is performed on candidate configuration files to determine whether the candidate configuration files of business requirements meet the configuration requirements of business requirements.
[0218] The method of functionally verifying the candidate configuration file can be to execute the candidate configuration file to detect whether the corresponding business requirement is successfully achieved; if the business requirement is successfully achieved, it is determined that the functional verification of the candidate configuration file has passed; if the business requirement is not successfully achieved, it is determined that the functional verification of the candidate configuration file has failed.
[0219] S1503: When the function verification of the candidate configuration file passes, the candidate configuration file is determined as a configuration file that meets the business requirement.
[0220] If the function verification of the candidate configuration file passes, it means that the candidate configuration file can successfully implement the corresponding business requirement. Therefore, the candidate configuration file can be directly determined as the configuration file of the business requirement.
[0221] When the function verification of the candidate configuration file fails, the error information generated when the business requirement is not successfully implemented can be obtained, and the configuration information of the business requirement can be modified according to the error information to re-execute the step of generating the configuration file of the business requirement according to the modified configuration information.
[0222] In the function configuration method of the device provided in the embodiment of the present application, a candidate configuration file of the business requirement is generated according to the business configuration file and the communication model file of the business requirement, and the function verification of the candidate configuration file is performed. If the function verification of the candidate configuration file passes, the candidate configuration file is determined as the configuration file of the business requirement. In this method, whether the candidate configuration file meets the business requirement is determined by function verification, and the candidate configuration file is comprehensively evaluated and verified to determine the reliability and accuracy of the configuration file of the business requirement.
[0223] In an exemplary embodiment, the embodiment predefines a universal device configuration package, and implements configuration information such as task configuration, board equipment, function configuration, data signal configuration, and communication configuration of the energy storage valve control and protection device through the device configuration package, and realizes application configurations such as various functional signals, interfaces, events, tasks, communications, and debugging in engineering applications to meet signal configurations with different real-time requirements and configuration applications with different business requirements. This configuration method realizes the decoupling of application services and software programs, and can realize device function configuration in multiple application scenarios and across platforms through the device configuration package, solving the problems of device program customization, numerous configuration files, and cumbersome configuration management, while reducing the cost of customized hardware.
[0224] Moreover, on this basis, the embodiment of the present application also provides a method of mapping the physical address through the short address of the functional signal to realize the configuration of fast communication between boards or devices.
[0225] At the same time, in view of the characteristics of the energy storage valve control and protection device, such as fast response speed, multiple covered signals and large amount of data, the physical address of the signal data of the functional signal is directly mapped to the functional signal in the model file, eliminating the intermediate transfer and processing process, facilitating the model mapping of functional signals and device signals, and improving the data processing efficiency during the operation of the target device.
[0226] like Fig.16As shown, a schematic diagram of the operation of a signal configuration data block is given. First, according to the business requirements of the energy storage valve control and protection device, the system information configuration required to achieve the business requirements can be determined. The system information configuration includes hardware interface configuration, communication interface configuration and software task configuration.
[0227] Determine the implementation of business demand configuration according to the system information configuration, and obtain the configuration data of the business demand from the device configuration package, including hardware interface configuration, instance signal information and functional module configuration; then allocate physical addresses to the functional signals involved in the functional modules from the memory pool, and determine the configuration file of the business demand according to the configuration information of the business demand.
[0228] Among them, when it is necessary to implement business requirements, the configuration file is executed. At this time, the functional process corresponding to the functional module is executed; during the execution of the functional process, the signal data of each functional signal can be obtained. At this time, the signal data of each functional signal can be stored in the corresponding physical address through the physical address assigned to each functional signal; the stored signal data can also be obtained from the physical address of each functional signal, the functional process is executed, and the data refresh and other operations are completed.
[0229] like Fig.17 As shown, a schematic diagram of the signal data flow of a functional signal is given. Among them, the functional signal x1, the functional signal x2, ..., the functional signal xn, the functional signal y1, the functional signal y2, ..., the functional signal yn represent the functional signals involved in realizing various business requirements in the energy storage valve control and protection device, each functional signal has a signal address mapping, each functional signal corresponds to a physical address, and the signal type of each functional signal in the energy storage valve control and protection device can be an input signal, an output signal or an intermediate parameter signal in the process of realizing the business requirement, and the input signal in the energy storage valve control and protection device may be the output signal of other devices, the output signal in the energy storage valve control and protection device may be the input signal of other devices, and the intermediate parameter signal in the energy storage valve control and protection device may also be the intermediate parameter signal of other devices. Therefore, the energy storage valve control and protection device and other devices can interact with each other through the physical address mapped by the short address of each functional signal. In this way, the physical address is assigned to the functional signal and associated with the short address, so that the communication and application of the sending and receiving ends of the functional signal only need to be assigned an application address once, which saves the intermediate transfer space occupation and data assignment operation time.
[0230] The functional configuration of the device in the embodiment of the present application can be understood as signal and function configuration. By configuring the abstract configuration of the software and hardware behavior functions of the main decomposition target device, the basic configuration of the signal short address, and the signal instance configuration, the functional requirements of the business needs are stripped away, and the understanding of signal input and output and intermediate processing is achieved to decompose the needs and realize the business needs.
[0231] Furthermore, the basic configuration of the signal short address includes a collection of function signals used by various services of the target device. The function signals are stored in the device configuration package in the form of short address strings, and the basic properties of the function signals are classified.
[0232] In an exemplary embodiment, the present application also provides a method for configuring the function of a device, such as Fig.18 As shown, taking the target device as an energy storage valve control and protection device as an example, the embodiment includes the following steps:
[0233] S1801: According to the application requirements of the energy storage valve control and protection device, it is detected whether there is a historical configuration file.
[0234] S1802: In the absence of a historical configuration file, all configuration data of the device configuration package are displayed to the user on the software platform of the energy storage valve control and protection device.
[0235] S1803, receiving configuration data selected by the user from all configuration data in the device configuration package.
[0236] S1804: If there is a configuration file that meets the application requirements, import the historical configuration file, and modify the configuration data in the historical configuration file according to the application requirements.
[0237] S1805 determines the function module configuration required by the application from the configuration data, and instantiates the function module configuration according to the instance signal data in the configuration data to obtain the function instance configuration.
[0238] S1806, according to the short address of each functional signal in the configuration data, the functional signal in the standard communication model file of the energy storage valve control and protection device is short-address mapped to obtain a model communication file required by the application.
[0239] Among them, a physical address can be allocated to the signal data of each functional signal according to the attribute information of the short address of each functional signal, and there is a one-to-one correspondence between the short address of the functional signal and the physical address.
[0240] S1807, generating a unified configuration file and model file according to the above configuration data, function instance configuration and model communication file.
[0241] S1808, verifying the functional configuration of the application requirements according to the unified configuration file and the model file. If the functional configuration verification of the application requirements fails, re-execute step S1804.
[0242] S1809, when the functional configuration verification of the application requirement is passed, the configuration file and model file of the business requirement are obtained, and the functional configuration of the energy storage valve control and protection device is completed.
[0243] The device configuration package in the embodiment of the present application includes configuration data of various services in the energy storage valve control and protection device, including configurations of tasks, functions, signals, communication relationships, etc. Users can determine configuration information such as signal type, function parameters, mapping relationships, etc. according to application requirements, and then directly configure the service requirements from the device configuration package.
[0244] In the embodiments of the present application, under a general software platform, by stripping away configurations such as tasks and boards, and completing signal and communication configurations, the function of the entire device is platform-configured, and the function configuration is separated from the software and hardware functions, and modular configuration is performed to achieve decoupling of services and software programs. According to business requirements, corresponding function packages, signal points and interface modes are configured, and unified configuration files and model files are output to achieve multi-scenario functional applications. Through this method, it can be expanded to different platforms and rapid configuration can be achieved.
[0245] Furthermore, through the mapping of functional modules, instance signal data and signal short addresses, direct mapping of data addresses and data interaction between boards or devices is realized, eliminating the steps of packet assembly and unpacking, and data processing and refresh can be performed directly according to the mapping relationship between short addresses and physical addresses; and, a visualization mode is used to visualize the short addresses of each functional signal in the functional module, and data transmission mapping is performed directly through the physical address corresponding to the short address; and a mapping relationship is established between the short address of each functional signal in the functional module and the device model.
[0246] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0247] Based on the same inventive concept, the embodiment of the present application also provides a device for implementing the device function configuration method involved in the above-mentioned device function configuration method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in the embodiment of the device function configuration device for one or more devices provided below can refer to the limitations of the device function configuration method above, and will not be repeated here.
[0248] In an exemplary embodiment, Fig.19As shown, a device 1900 for configuring a function of a device is provided, comprising: a first acquisition module 1901, a second acquisition module 1902 and a generation module 1903, wherein:
[0249] A first acquisition module 1901 is used to acquire at least one service requirement corresponding to a target device;
[0250] The second acquisition module 1902 is used to acquire configuration information of each service requirement from a predefined device configuration package; the device configuration package includes configuration data required for multiple services of the target device;
[0251] The generating module 1903 is used to generate a configuration file for each business requirement according to the configuration information of each business requirement; the configuration file is used to perform function configuration of the target device.
[0252] In one embodiment, Fig. 20 As shown, the generation module 1903 includes:
[0253] The first determining unit 2001 is used to determine the service configuration file and the communication model file of the service requirement according to the configuration information of the service requirement for any service requirement;
[0254] The second determining unit 2002 is configured to determine a configuration file of the service requirement according to the service configuration file of the service requirement and the communication model file.
[0255] In one embodiment, Fig.21 As shown, the first determining unit 2001 includes:
[0256] The first determining subunit 2101 is used to determine the function configuration information and signal configuration information of the service requirement according to the configuration information of the service requirement;
[0257] The second determining subunit 2102 is configured to determine a service configuration file of the service requirement according to the function configuration information and the signal configuration information of the service requirement.
[0258] In one embodiment, the configuration information includes hardware configuration information, instance signal information and functional modules, such as Fig. 22 As shown, the first determining subunit 2101 includes:
[0259] The first obtaining subunit 2201 is used to configure the instance signal information into the function module to obtain the function instance configuration information;
[0260] The third determining subunit 2202 is used to determine the hardware configuration information and the function instance configuration information as the function configuration information required by the business.
[0261] In one embodiment, the configuration information includes a short address and a functional module of at least one functional signal involved in implementing the service requirement; Fig.23 As shown, the first determining subunit 2101 includes:
[0262] The fourth determining subunit 2301 is used to determine the physical address of each functional signal according to the attribute information of each functional signal;
[0263] The fifth determining subunit 2302 is used to determine the input and output interfaces of each functional signal according to the functional module;
[0264] The second obtaining subunit 2303 is used to associate the short address of each functional signal, the physical address of each functional signal and the input and output interface of each functional signal to obtain the signal configuration information required by the business.
[0265] In one embodiment, Fig.24 As shown, the fourth determining subunit 2301 includes:
[0266] The first acquisition subunit 2401 is used for acquiring, for any function signal, a memory block matching the attribute information of the function signal from a memory pool according to the attribute information of the function signal; the memory pool includes memory blocks with multiple different attributes;
[0267] The sixth determining subunit 2402 is used to determine the address of the memory block as the physical address of the function signal.
[0268] In one embodiment, Fig.25 As shown, the first determining unit 2001 includes:
[0269] The second acquisition subunit 2501 is used to acquire a standard communication model file of the target device; the standard model file includes multiple functional signals required to implement multiple services of the target device;
[0270] The third acquisition subunit 2502 is used to obtain the short addresses of various function signals required to implement the service requirements from the service configuration file;
[0271] The third obtaining subunit 2503 is used to map the short address of each functional signal to the corresponding functional signal in the standard model file to obtain the communication model file of the business requirement.
[0272] In one embodiment, Fig.26 As shown, the second determining unit 2002 includes:
[0273] A generating subunit 2601 is used to generate a candidate configuration file of the business requirement according to the business configuration file and the communication model file of the business requirement;
[0274] The verification subunit 2602 is used to perform functional verification on the candidate configuration file;
[0275] The seventh determining subunit 2603 is configured to determine the candidate configuration file as a configuration file that meets the business requirement if the function verification of the candidate configuration file passes.
[0276] In one embodiment, Fig. 27 As shown, the second acquisition module 1902 includes:
[0277] A display unit 2701, used to display all configuration data of the device configuration package in the software platform of the target device;
[0278] The third determining unit 2702 is used to determine the configuration information of the business requirement according to the configuration data selected by the user from the configuration data.
[0279] In one embodiment, Fig.28 As shown, the device 2800 also includes:
[0280] A detection module 2801 is used to detect whether the configuration creation instruction carries reference configuration information of the target device in response to a configuration creation instruction triggered by a user in a software platform of the target device;
[0281] An execution module 2802 is used to execute the step of acquiring configuration information of each service requirement from a predefined device configuration package when the configuration creation instruction does not carry reference configuration information of the target device;
[0282] The determination module 2803 is used to determine the configuration information of each service requirement according to the reference configuration information when the configuration creation instruction carries the reference configuration information of the target device.
[0283] In one embodiment, Fig.29 As shown, the determination module 2803 includes:
[0284] The acquisition unit 2901 is used to acquire the modified content of the reference configuration information in response to the user's request to modify the reference configuration information;
[0285] A modification unit 2902, configured to modify the reference configuration information according to the modification content;
[0286] The fourth determining unit 2903 is configured to determine the modified reference configuration information as configuration information of each service requirement.
[0287] Each module in the functional configuration device of the above device can be implemented in whole or in part by software, hardware and a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module above.
[0288] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0289] The implementation principles and technical effects of each step implemented by the processor in this embodiment are similar to the principles of the functional configuration method of the above-mentioned device, and will not be repeated here.
[0290] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0291] The implementation principles and technical effects of the steps implemented when the computer program in this embodiment is executed by the processor are similar to the principles of the functional configuration method of the above-mentioned device, and will not be repeated here.
[0292] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0293] The implementation principles and technical effects of the steps implemented when the computer program in this embodiment is executed by the processor are similar to the principles of the functional configuration method of the above-mentioned device, and will not be repeated here.
[0294] It should be noted that the data involved in this application (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0295] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0296] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0297] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for configuring a function of a device, characterized in that: The method comprises: Acquire at least one service requirement corresponding to the target device; Acquire configuration information of each of the service requirements from a predefined device configuration package; the device configuration package includes configuration data required for multiple services of the target device; A configuration file for each of the business requirements is generated according to the configuration information of each of the business requirements; the configuration file is used to perform function configuration of the target device.
2. The method according to claim 1, characterized in that Generating a configuration file for each of the business requirements according to the configuration information of each of the business requirements includes: For any business requirement, determine the business configuration file and communication model file of the business requirement according to the configuration information of the business requirement; A configuration file of the business requirement is determined according to the business configuration file and the communication model file of the business requirement.
3. The method according to claim 2, characterized in that Determining a service configuration file of the service requirement according to the configuration information of the service requirement includes: Determine the function configuration information and signal configuration information of the business requirement according to the configuration information of the business requirement; A service configuration file of the service requirement is determined according to the function configuration information and the signal configuration information of the service requirement.
4. The method according to claim 3, characterized in that The configuration information includes hardware configuration information, instance signal information and functional modules. According to the configuration information of the business requirement, the functional configuration information of the business requirement is determined, including: Configuring the instance signal information into the function module to obtain function instance configuration information; The hardware configuration information and the function instance configuration information are determined as the function configuration information of the business requirement.
5. The method according to claim 3 or 4, characterized in that: The configuration information includes a short address and a function module of at least one function signal involved in realizing the service requirement; and according to the configuration information of the service requirement, determining the signal configuration information of the service requirement includes: Determining the physical address of each of the function signals according to the attribute information of each of the function signals; Determine the input and output interfaces of each of the functional signals according to the functional modules; The short address of each of the function signals, the physical address of each of the function signals and the input and output interfaces of each of the function signals are associated to obtain the signal configuration information of the business requirements.
6. The method according to claim 5, characterized in that Determining the physical address of each of the function signals according to the attribute information of each of the function signals includes: For any function signal, according to the attribute information of the function signal, a memory block matching the attribute information of the function signal is obtained from a memory pool; the memory pool includes memory blocks with multiple different attributes; The address of the memory block is determined as the physical address of the function signal.
7. The method according to any one of claims 2 to 6, characterized in that: Determining a communication model file of the business requirement according to the configuration information of the business requirement includes: Acquire a standard communication model file of the target device; the standard model file includes a plurality of functional signals required to implement a plurality of services of the target device; Acquire the short addresses of the functional signals required to realize the service requirements from the service configuration file; The short address of each of the function signals is mapped to the corresponding function signal in the standard model file to obtain the communication model file of the business requirement.
8. The method according to any one of claims 2 to 7, characterized in that: The determining the configuration file of the business requirement according to the business configuration file and the communication model file of the business requirement includes: Generating a candidate configuration file for the business requirement according to the business configuration file and the communication model file of the business requirement; Performing functional verification on the candidate configuration file; In a case where the function verification of the candidate configuration file passes, the candidate configuration file is determined as the configuration file of the business requirement.
9. The method according to any one of claims 1 to 8, characterized in that: The obtaining the configuration information of each of the service requirements from the predefined device configuration package includes: Displaying all configuration data of the device configuration package in the software platform of the target device; The configuration information of the business requirement is determined according to the configuration data selected by the user from the configuration data.
10. The method according to any one of claims 1 to 9, characterized in that: The method further comprises: In response to a configuration creation instruction triggered by a user in a software platform of the target device, detecting whether the configuration creation instruction carries reference configuration information of the target device; In the case where the configuration creation instruction does not carry the reference configuration information of the target device, performing the step of acquiring the configuration information of each of the service requirements from the predefined device configuration package; In the case where the configuration creation instruction carries the reference configuration information of the target device, the configuration information of each of the service requirements is determined according to the reference configuration information.
11. The method according to claim 10, characterized in that Determining the configuration information of each of the business requirements according to the reference configuration information includes: In response to a user's request to modify the reference configuration information, obtaining modified content of the reference configuration information; Modify the reference configuration information according to the modification content; The modified reference configuration information is determined as the configuration information of each of the business requirements.
12. A device for configuring a function of a device, characterized in that: The device comprises: A first acquisition module, used to acquire at least one service requirement corresponding to the target device; A second acquisition module is used to acquire configuration information of each of the service requirements from a predefined device configuration package; the device configuration package includes configuration data required for multiple services of the target device; The generating module is used to generate a configuration file for each of the business requirements according to the configuration information of each of the business requirements; the configuration file is used to perform function configuration of the target device.
13. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 11 are implemented.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.