Application component installation method and device, electronic equipment and storage medium
By sending installation files and dependency packages to the centralized control equipment in the new energy centralized control system, and using remote connection and activation information for decryption and installation, the problem of complex installation process in existing technologies is solved, realizing unified and standardized installation of centralized control equipment with multiple operating systems and improving installation efficiency.
Patent Information
- Application Number
- CN202511062809.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-30
- Publication Date
- 2025-11-28
AI Technical Summary
The installation process of components applied in existing technologies in new energy centralized control systems is complicated and inefficient, and cannot meet the installation requirements of multiple centralized control devices. Existing technologies cannot effectively solve the problems of complicated installation processes and low efficiency.
By sending installation files, including installation dependency packages and encrypted installation packages, to the centralized control equipment in the new energy centralized control system, deploying the installation dependency packages via remote connection, generating activation information to decrypt and install application components, the installation process is standardized and unified, supporting centralized control equipment with multiple operating systems.
It simplifies the installation process of application components, improves installation efficiency, and enables standardized installation of centralized control devices on different operating systems, saving installation time and resources.
Smart Images

Figure CN121029192A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of computer technology, and in particular relates to application component installation methods, apparatus, electronic devices, and storage media. Background Technology
[0002] The new energy centralized control system is used to centrally manage multiple new energy power stations (hereinafter referred to as power stations) connected to the system and to provide business services to the power stations. The new energy centralized control system consists of multiple centralized control devices. Before providing business services to the power stations, the new energy centralized control system needs to be deployed, that is, the application components required to provide business services need to be installed on the multiple centralized control devices.
[0003] However, the process of installing application components on multiple control components in a new energy centralized control system using existing technologies is relatively complex and inefficient. Summary of the Invention
[0004] This application provides an application component installation method, apparatus, electronic device, and storage medium, which can simplify the application component installation process and improve the application component installation efficiency.
[0005] In a first aspect, embodiments of this application provide an application component installation method, comprising: sending an installation file to at least one centralized control device in a new energy centralized control system; wherein the installation file includes an installation dependency package; the installation dependency package is used to provide an environment for installing the application component on at least one operating system, the at least one operating system including the type of operating system installed on the centralized control device; for each centralized control device, deploying the installation dependency package in the operating system of the centralized control device; when the installation dependency package is deployed in the operating system of the centralized control device, installing an application component in the centralized control device based on a first installation package, the first installation package corresponding to the application component that provides application services for the power station under the new energy centralized control system.
[0006] In some embodiments, the first installation package is an encrypted installation package, and the installation of the application component in the centralized control device based on the first installation package includes: sending a first instruction to each centralized control device; wherein the first instruction includes the activation information of the centralized control device, and the first instruction is used to instruct the centralized control device to decrypt the first installation package based on the activation information of the centralized control device, so as to install the application component based on the decrypted file.
[0007] In some embodiments, before sending the first instruction to each of the centralized control devices, the method further includes: for each of the centralized control devices, obtaining the machine code of the centralized control device; and generating the activation information corresponding to the centralized control device based on the machine code of the centralized control device and the scene identifier of the at least one centralized control device based on the first preset scene of the application component.
[0008] In some embodiments, the application component includes at least one sub-component, and different central control devices provide different application services to the field station. For each central control device, the central control device provides the application service corresponding to the central control device through a target sub-component among the at least one sub-component. The method further includes: sending a second instruction to the central control device, wherein the second instruction is used to instruct the central control device to run the target sub-component corresponding to the central control device, so as to enable the central control device to provide corresponding application services to the field station connected to the central control device.
[0009] In some embodiments, the installation file further includes a second installation package, which corresponds to a data read / write component that provides data read / write functionality. The application component runs based on the data read / write component to provide application services to the site. The method further includes: installing the data read / write component in the centralized control device based on the second installation package; and running the data read / write component before running the target sub-component corresponding to the centralized control device.
[0010] In some embodiments, when the operating scenario of the at least one centralized control device is updated from the first preset scenario to the second preset scenario, the method further includes: sending a third package corresponding to the second preset scenario to the at least one centralized control device; updating the application components installed in the centralized control device based on the operating system in which the installation dependency package is deployed and the third installation package, to obtain the updated application components corresponding to the second preset scenario; and running the updated application components based on the data read / write components to update the application services provided to the site.
[0011] In some embodiments, each sub-component in the application component has a first port, and the data read / write component has a second port. The method further includes: determining the installation status of the data read / write component and the deployment status of the installation dependency package based on the running status of each sub-component in the application component; performing functional tests on the sub-components of the application component based on each first port; and performing functional tests on the data read / write component based on the second port.
[0012] Secondly, this application provides an application component installation apparatus, comprising: a sending module, configured to send an installation file to at least one centralized control device in a new energy centralized control system; wherein the installation file includes an installation dependency package; the installation dependency package is used to provide an environment for installing application components on at least one operating system, the at least one operating system including the type of operating system installed on the centralized control device; a deployment module, configured to deploy the installation dependency package in the operating system of each centralized control device; and an installation module, configured to install an application component in the centralized control device based on a first installation package when the installation dependency package is deployed in the operating system of the centralized control device, the first installation package corresponding to the application component that provides application services for the power station under the new energy centralized control system.
[0013] Thirdly, embodiments of this application provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor executes the computer program to implement the method as described in any embodiment of the first aspect.
[0014] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the method described in any embodiment of the first aspect.
[0015] Fifthly, embodiments of this application provide a computer program product that, when run on a terminal device, causes the terminal device to execute the method described in any of the embodiments of the first aspect above.
[0016] It is understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here.
[0017] This application provides an application component installation method, apparatus, electronic device, and storage medium. The method includes: sending an installation file to at least one centralized control device, wherein the installation file contains an installation dependency package for providing an environment for installing the application component on at least one operating system, the at least one operating system including the type of operating system installed on the centralized control device; for each centralized control device, redeploying the installation dependency package on the operating system of the centralized control device; after deployment, even if the types of operating systems of the centralized control devices are different, the electronic device can uniformly install the application component on each centralized control device based on the same first installation package; since the first installation package is the same, the installation process for the application component is also the same for each centralized control device. In this way, a unified and standardized installation of the application component can be achieved, simplifying the installation method of the application component and thus improving the installation efficiency of the first installation package. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a flowchart illustrating the implementation of an application component installation method according to an embodiment of this application;
[0020] Figure 2 This is a flowchart illustrating the implementation of an application component installation method according to an embodiment of this application;
[0021] Figure 3 This is a flowchart illustrating the implementation of an application component installation method according to an embodiment of this application;
[0022] Figure 4 This is a flowchart illustrating the implementation of an application component installation method according to an embodiment of this application;
[0023] Figure 5 This is a structural diagram of an application component installation device provided in an embodiment of this application;
[0024] Figure 6 This is a structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0025] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0026] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0027] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0028] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."
[0029] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0030] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0031] The new energy centralized control system is used to centrally manage multiple power stations connected to it and provide business services to the power stations. The new energy centralized control system consists of multiple centralized control devices. Before providing business services to the power stations, the new energy centralized control system needs to be deployed, that is, the application components required to provide business services need to be installed on multiple centralized control devices.
[0032] In some new energy centralized control systems, the operating systems on different centralized control devices may be of different types. In related technologies, in order to adapt to different operating systems, different installation packages are needed to install the same application components on the corresponding operating systems. However, the installation methods of different installation packages are different. Existing technologies usually require installers to go to the new energy centralized control center to perform targeted installation for different operating systems. The installation process is cumbersome and results in low installation efficiency.
[0033] Based on this, this application provides an application component installation method. After a unified deployment of the installation environment, the method can automate the installation of application components on the centralized control device based on the same installation package, thus simplifying the installation process and improving the installation efficiency of application components.
[0034] The application component installation method of this application embodiment can be applied to electronic devices, which can be any device with data processing and wireless communication capabilities. For example, the electronic device can be a desktop computer, laptop, handheld computer, or cloud server.
[0035] In this application, the electronic device is connected to at least one centralized control device in the new energy centralized control system via a wired or wireless network, thereby enabling the electronic device to communicate with at least one centralized control device.
[0036] Figure 1 A flowchart illustrating the implementation of the installation method for the application components provided in this application. (For example...) Figure 1 As shown, the method includes the following steps:
[0037] S101. Send installation files to at least one centralized control device in the new energy centralized control system.
[0038] At least one of the central control devices is equipped with an operating system, and the type of operating system deployed on at least one central control device can be exactly the same, completely different, or partially the same.
[0039] The installation files include at least one installation dependency package, which provides an environment for installing application components on at least one operating system, including the type of operating system deployed on the central control device.
[0040] For example, at least one centralized control device is deployed with an operating system that includes both Windows and Linux operating systems. For instance, the number of centralized control devices is n, where n is greater than 1. Among the n centralized control devices, some are deployed with Windows and some with Linux. Therefore, the installed dependency packages support at least one operating system that includes both Windows and Linux.
[0041] The installation dependency package encapsulates dynamic libraries for at least one operating system. These dynamic libraries provide the code required for application component installation. After the installation dependency package is deployed, subsequent application component installations can select the dynamic library corresponding to the current operating system from at least one dynamic library.
[0042] The application component can be a component that provides application services to at least one power station connected to the new energy centralized control system. The types of application services include: data acquisition, data processing, status control of at least one power station, and human-machine interaction with the centralized control equipment. The application component includes multiple sub-components, and each sub-component corresponds to a type of application service.
[0043] The electronic device can send installation files to at least one centralized control device in the following ways: for example, the electronic device stores installation files and sends the stored installation files to at least one centralized control device; or, the electronic device uploads the installation files to a server and sends the server's address information to the centralized control device, which then retrieves the installation files from the server based on the address information; or, the installation files are stored on a server, the electronic device downloads the installation files from the server, and then sends the installation files to at least one centralized control device, and so on.
[0044] S102. For each centralized control device, deploy and install the dependency package in the operating system of the centralized control device.
[0045] In some embodiments, the electronic device establishes a remote connection with the central control device based on a preset protocol, and the electronic device controls the central control device to deploy and install dependency packages in the operating system of the central control device based on the remote connection.
[0046] The default protocol can be Secure Shell (SSH), which provides secure remote login, file transfer, command execution, and other operations over a network. It protects data transmission security through encryption technology, effectively preventing data eavesdropping and tampering.
[0047] For example, an electronic device sends the username and password of the central control device to the central control device via SSH to verify the identity of the electronic device. Then, the electronic device sends installation instructions to the central control device via the SSH protocol, instructing the central control device to deploy the installation package in the central control device's operating system.
[0048] Deploying and installing dependency packages in the operating system means placing the dynamic library files in the dependency packages in a path that the operating system can recognize, and configuring the relevant dependencies to ensure that the programs in the dynamic libraries can be loaded correctly when installing application components.
[0049] S103. If the installation dependency package is deployed in the operating system of the centralized control device, install the application component in the centralized control device based on the first installation package.
[0050] In this embodiment, if an installation completion instruction is received from the central control device, it is determined that the installation dependency package has been deployed in the operating system of the central control device.
[0051] The first installation package is the application component installation package. After the installation of the dependency packages is completed, each centralized control system supports the installation of the application components. The first installation package includes the executable file of the application components and the resource configuration file of the application components. At this time, the executable file in the first installation package can be run and the application components can be configured to complete the installation of the application components.
[0052] In some embodiments, the installation file further includes a first installation package, which, together with the installation dependency package, is packaged by the electronic device in the installation file and sent to at least one centralized control device. In the installation file, the first installation package and the installation dependency package have no dependency relationship and exist independently. That is, the file path of the installation dependency package is not an ancestor or descendant path of the file path of the first installation package; both reside in the same file directory.
[0053] In other embodiments, the installation file does not include a first installation package; the first installation package and the installation dependency package are sent separately by the electronic device to the central control device. For example, the electronic device may send the first installation package to at least one central control device before or after sending the installation dependency package. Specifically, the electronic device may send the first installation package to the central control device if the installation dependency package is deployed in the central control device's operating system. When the installation file does not include a first installation package, the way the electronic device sends the first installation package to at least one central control device is similar to the way the electronic device sends the installation dependency package to at least one central control device, and both can be implemented in various ways, which will not be elaborated here.
[0054] In some embodiments, the electronic device also sends a second installation package to at least one centralized control device. This second installation package corresponds to a data read / write component. The data read / write component provides data read / write functionality and includes at least a real-time library, a time-series library, and a relational database. Different libraries support writing and reading different types of data; for example, a real-time library supports writing and reading volatile data, a time-series library supports writing and reading signaling data, and a relational database supports writing and reading persistent data. The data read / write component improves the read / write rate of data or signaling.
[0055] This application does not limit the timing of sending the second installation package. The electronic device may send the second installation package to the central control device after sending the installation dependency package, or the electronic device may package the installation dependency package and the second installation package together in the installation file and send them to the central control device.
[0056] This application does not limit the timing of installing data read / write components in centralized control equipment. Data read / write components can be installed before or after application components are installed.
[0057] This application provides an application component installation method, apparatus, electronic device, and storage medium. The method includes: sending an installation file to at least one centralized control device, wherein the installation file contains an installation dependency package for providing an environment for installing the application component on at least one operating system, the at least one operating system including the type of operating system installed on the centralized control device; for each centralized control device, redeploying the installation dependency package on the operating system of the centralized control device; after deployment, even if the types of operating systems of the centralized control devices are different, the electronic device can uniformly install the application component on each centralized control device based on the same first installation package; since the first installation package is the same, the installation process for the application component is also the same for each centralized control device. In this way, a unified and standardized installation of the application component can be achieved, the installation method is simplified, and the installation efficiency of the first installation package is improved.
[0058] The first installation package was encrypted before being sent. This application has been approved. Figure 2 The examples illustrate how to install application components based on the encrypted first installation package.
[0059] This application provides an application component installation method. Figure 2 A flowchart illustrating the installation method of the application components provided in this application embodiment is shown below. Figure 2 As shown, the method includes:
[0060] S201. Send installation files to at least one centralized control device in the new energy centralized control system.
[0061] The explanation of S201 can be found in the description of S101, and will not be repeated here. In this embodiment, the installation file includes a first installation package and an installation dependency package as an example. The first installation package is encrypted before being sent, while the installation dependency package is not encrypted.
[0062] S202. Send a deployment command to install dependency packages to at least one centralized control device.
[0063] In some embodiments, before sending the deployment command, the electronic device establishes a remote connection with at least one centralized control device based on a preset protocol. The preset protocol may be the SSH protocol, which is used to provide secure remote login, command execution and file transfer services in an insecure network environment. It can protect the confidentiality of data transmission through encryption technology.
[0064] Once an electronic device establishes a remote connection with at least one centralized control device, it can send deployment commands to at least one centralized control device based on that remote connection.
[0065] Accordingly, at least one centralized control device receives the deployment command, and each centralized control device, based on the received deployment command, deploys the installation dependency package in its own operating system.
[0066] S203. If the installation dependency package is deployed in the operating system of the centralized control device, send the first instruction to at least one centralized control device based on the remote connection.
[0067] The first instruction is used to instruct the centralized control device to decrypt the first installation package based on the activation information of the centralized control device, so as to install the application component based on the decrypted file.
[0068] In some embodiments, before sending the first instruction, the electronic device needs to generate activation information for the centralized control device. The electronic device can generate the activation information for the centralized control device in the following manner: for each centralized control device, the electronic device obtains the machine code of the centralized control device, and the electronic device generates the corresponding activation information for the centralized control device based on the machine code of the centralized control device and the scene identifier of the first preset scenario in which the new energy centralized control system is currently operating.
[0069] The machine code of the centralized control equipment is used to uniquely identify the centralized control equipment. Electronic devices can obtain the machine code of the centralized control equipment in the following ways: For example, the machine code of the centralized control equipment can be generated by a machine code generation program. The electronic device sends the machine code generation program to the centralized control equipment through a remote connection. The centralized control equipment executes the machine code generation program, obtains the machine code, and sends the machine code to the electronic device. Alternatively, the machine code of each centralized control equipment can be stored in a server connected to the new energy centralized control system and the electronic device. The electronic device can obtain the machine code of each centralized control equipment from the server, and so on.
[0070] After obtaining the machine code of the centralized control device, activation information can be generated based on the machine code and the scene identifier of the first preset scene.
[0071] It is understandable that a new energy centralized control system can operate in different scenarios, including auxiliary control scenarios, new energy scenarios, and power prediction scenarios. In different scenarios, the power plants connected to the new energy centralized control system can be the same or different. In auxiliary control scenarios, the new energy centralized control system is used to monitor the status of auxiliary equipment (lighting equipment, fire alarm equipment, etc.) of the power plant (e.g., wind turbines, photovoltaic inverters, etc.). In new energy scenarios, the new energy centralized control system is used to collect and manage the operating data of the power plant. In power prediction scenarios, the new energy centralized control system is used to predict the power of the power plant using artificial intelligence algorithms.
[0072] Different application components correspond to different working scenarios. In this embodiment, when an electronic device installs application components for different working scenarios, it uses a scenario identifier corresponding to the working scenario to distinguish the activation information for the corresponding working scenario, so as to avoid installing application components from other working scenarios into the central control device in the current working scenario (i.e., the first preset scenario), thereby avoiding abnormal service of the central control device.
[0073] In some embodiments, the electronic device can directly generate activation information for the centralized control device based on the machine code of the centralized control device and the scene identifier of the first preset scene. Alternatively, the electronic device can generate activation information for the centralized control device based on information such as the machine code of the centralized control device, the scene identifier of the first preset scene, the system name of the operating system of the centralized control device, and the name of the centralized control device.
[0074] After the electronic device receives the activation information, it can send the activation information to the central control device through the first instruction. After receiving the activation information, the central control device extracts the first installation package from the installation file and can complete the installation of the application components based on the activation information.
[0075] In this embodiment, the installation dependency package is used to provide the basic environment for installing application components. It has a low level of confidentiality and is not encrypted. The application component corresponding to the first installation package is used to provide application services for the site and involves processing the site's operating data. It has a high level of confidentiality. Therefore, the first installation package is encrypted when it is sent. The activation information of the first installation package is generated by the scene identifier of the working scene of the application component corresponding to the first installation package. In this way, the activation information under different working scenes can be distinguished, avoiding the installation of application components under other working scenes into the central control equipment under the current working scene.
[0076] As described above, the application component includes at least one sub-component, and each sub-component provides an application service for the site. There are multiple centralized control devices, each providing a different service to the site. In some embodiments, multiple centralized control devices can be controlled to provide different application services to the site in the following manner: for example, after S103 or S203, a second instruction is sent to the centralized control device, which instructs the centralized control device to run the target sub-component corresponding to the centralized control device, so as to enable the centralized control device to provide the corresponding application service to the site.
[0077] Although the centralized control equipment installs all the sub-components of the application component, it uses at least one target sub-component from the sub-components to provide application services to the power station. Each centralized control equipment has a different target sub-component. For example, in the current first working scenario, the application component includes three sub-components: sub-component 1, sub-component 2, and sub-component 3. The services provided by the new energy centralized control system to the power station include: collecting the power station's operating data through sub-component 1, processing the power station's operating data through sub-component 2, and controlling the power station's status through sub-component 3. The centralized control equipment consists of three devices: centralized control equipment 1, centralized control equipment 2, and centralized control equipment 3. Centralized control equipment 1 is configured to collect the power station's operating data, so its target sub-component is sub-component 1; centralized control equipment 2 is configured to process the power station's operating data, so its target sub-component is sub-component 2; and centralized control equipment 3 is configured to control the power station's status, so its target sub-component is sub-component 3.
[0078] In this embodiment of the application, under the same working scenario, different centralized control devices provide different services to the site. After installing all the sub-components of the application component based on the first installation package, not all the sub-components are run. Instead, the target sub-component matching each centralized control device is selected to run. In this way, not only can a variety of different services be provided to the site, but the operating resources of the centralized control device can also be saved.
[0079] It is understandable that the new energy centralized control system currently operates under the first preset scenario, and the first installation package, application components, and application services provided by each centralized control device in the new energy centralized control system are all matched with the first preset scenario. When the preset scenario of the new energy centralized control system changes, the application services provided by the new energy centralized control system also change. The following will be discussed... Figure 3 The examples illustrate how electronic devices function when the work environment changes.
[0080] Figure 3 The flowchart for the implementation of the application component installation method provided in the embodiments of this application is as follows: Figure 3 The method for installing the application components provided in this embodiment of the application, after S103 or S203, further includes the following when the working scenario of at least one centralized control device is updated from the first preset scenario to the second preset scenario:
[0081] S301. Send the third installation package corresponding to the second preset scenario to at least one centralized control device.
[0082] It is understandable that the services provided by the new energy centralized control system to the power station are different under different working scenarios, and therefore the application components installed on the new energy centralized control system are also different. Accordingly, the installation packages corresponding to the application components are also different. In this application, the installation package corresponding to the application component under the second preset scenario is referred to as the third installation package.
[0083] The way electronic devices send the third installation package to the centralized control device is similar to the way electronic devices send the first installation package to the centralized control device, and both include multiple methods, which will not be elaborated here.
[0084] It is understandable that when the application scenario changes, the installation dependency package will not be updated because it is unrelated to the application scenario of the new energy centralized control system. That is, it is not necessary to send the installation dependency package to the centralized control equipment in the new energy centralized control system again; only the third installation package needs to be sent.
[0085] S302. Based on the operating system and third installation package deployed in the centralized control device, the application components installed in the centralized control device are updated to obtain the updated application components corresponding to the second preset scenario.
[0086] It is understandable that since the installation dependency package has been pre-deployed in the centralized control device, when updating application components, there is no need to deploy the dependency package again. Instead, the program in the third installation package is run based on the operating system where the installation dependency package is currently deployed, and the updated application component corresponding to the third installation package can be successfully installed.
[0087] The third installation package is also an encrypted installation package. The method of installing the updated application components based on the third installation package is the same as the method of installing the application components based on the first installation package, and will not be described in detail here.
[0088] S303. Based on the data read / write component, run the updated application component to update the application services provided to the site.
[0089] It is understandable that the data read / write component can improve the read / write speed of data / signaling, providing efficient data read / write support for the updated application component. The operation of the application component depends on the data read / write component, so the data read / write component must be run before the updated application component is run.
[0090] The updated application components can be implemented in the following way: Under different working scenarios, the target sub-components corresponding to the same centralized control device are different. Based on the second preset scenario, the target sub-component corresponding to each centralized control device is executed, and the target sub-component under the second preset scenario is run.
[0091] In this embodiment of the application, when deploying the new energy centralized control system, the installation dependency package and the application component installation package are deployed separately. In this way, only the installation dependency package needs to be deployed once to achieve the deployment of application components in multiple working scenarios, saving the installation process of application components when changing working scenarios. Moreover, even if the application service provided by the field station is changed when changing working scenarios, it is still possible to change to the application service provided by the field station.
[0092] In some embodiments, after installing application components based on the first installation package to deploy the new energy centralized control system, the deployment status of the new energy centralized control system can be detected. Next, through... Figure 4 The examples illustrate the detection of new energy deployment.
[0093] This application provides a method for installing application components, wherein each component in the application components has a first port, and the data read / write component has a second port. Figure 4 This is a flowchart illustrating the implementation of the application component installation method provided in this application embodiment. Figure 4 As shown, after S103 or S203, the method further includes:
[0094] S401. Based on the running status of each sub-component in the application component, determine the installation status of the data read / write component and the deployment status of the installation dependency packages.
[0095] In some embodiments, for each centralized control device, the installation status of the data read / write component and the deployment status of the installation dependency package on the centralized control device can be determined based on the operation status of each sub-component installed on the centralized control device.
[0096] The operational status of a subcomponent can be determined by whether it can start. In some embodiments, the startup of a subcomponent depends on the runtime environment provided by the operating system and the related functions provided by the data read / write component. If each subcomponent is considered to be able to start, it indicates that the installation of the dependency package and the data read / write component have been successfully deployed. If any subcomponent in the application component fails to start, it indicates that the deployment of the data read / write component and / or the installation of the dependency package has failed.
[0097] In other embodiments, for each centralized control device, the installation status of the data read / write component and the deployment status of its dependencies can be determined based on the operational status of certain sub-components installed on the centralized control device, such as the operational status of the target sub-component. If the target sub-component starts successfully, it indicates that the data read / write component and its dependencies have been successfully installed and deployed. If the target sub-component fails to start, it indicates that the data read / write component and / or its dependencies have failed to be deployed.
[0098] It is understandable that each sub-component operates within the same runtime environment and uses the same functionalities provided by the data read / write component. Therefore, the installation status of the data read / write component and the deployment status of its dependencies can be determined based on the running status of a single sub-component. Selecting a target sub-component to run not only allows for the detection of the installation status of the data read / write component and the deployment status of its dependencies, but also enables the provision of corresponding services to the site based on the running target sub-component after the detection is complete.
[0099] In some embodiments, the electronic device may determine the operational status of sub-components within an application component in the following manner: for example, the electronic device sends a third instruction to each centralized control device based on an established remote connection protocol. The third instruction instructs the centralized control device to run a start / stop procedure. The start / stop procedure can be configured to start at least each sub-component on the centralized control device, or it can be configured to start a target component installed on the centralized control device. Accordingly, upon receiving the third instruction, each centralized control device runs the start / stop procedure based on the third instruction to start all sub-components or the target sub-component, and sends the start result to the electronic device via the remote connection. Based on the start result, the electronic device can obtain the operational status of the corresponding sub-component.
[0100] S402. Based on each first port, perform functional testing on the sub-components of the application component.
[0101] Functional testing of sub-components refers to testing whether the sub-components can provide the corresponding application services to the site. Specifically, functional testing of the sub-components of the application component based on each first port can be carried out in the following way: For example, for the first port of the sub-component running on each central control device, the electronic device sends test data to the central control device through the first port. The sub-component processes the test data based on its provided application services and then returns the test results to the electronic device. The electronic device can determine whether the sub-component provides the corresponding service to the site based on the test results.
[0102] S403. Based on the second port, perform functional testing on the data read / write component.
[0103] Functional testing of a data read / write component refers to testing whether its read / write functions for different types of data are functioning correctly. Specifically, the electronic device sends write commands for different types of data to the data read / write component via a second port, or sends read commands for different types of data via the second port. The data read / write component performs write operations based on the write commands and read operations based on the read commands, sending the read / write results (e.g., write address and read address) back to the electronic device. The electronic device then determines whether the data read / write component is functioning correctly based on these results. For example, if the electronic device determines that the write address and read address are correct, then the data read / write component is considered to be functioning correctly.
[0104] In this embodiment, before deploying the centralized control device and putting it into use, the deployment status of the centralized control device is tested. Specifically, for application components or data reading components with ports, data transmission can be conducted through the ports to test the functionality of the application components and data reading components. For operating systems without ports that have installed dependency packages, the deployment status of the application components and data reading / writing components installed on the operating system can be used to check whether the dependency packages have been successfully deployed. After such a thorough and detailed test of the centralized control device, if there are no abnormalities in the deployment results, it can be put into use.
[0105] In this application, when the electronic device deploys application components in the centralized control device, it is done through an automated process of remotely connecting and controlling the centralized control device to first deploy the installation dependency package and then deploy the application components. When the electronic device packages the first installation package, it is also based on an automated process. Specifically, the electronic device uses a code management tool to manage the code of the application components. Whenever the code of the application components is updated, the code management tool will save the code of the new version of the application components and remove the code of the old version.
[0106] Next, the electronic device will compile the latest version of the code. During the compilation process, intermediate results will be cleaned up to ensure that the final compilation result is not affected by intermediate results. Then, the final compilation result will be packaged to obtain the first installation package corresponding to the current application component.
[0107] In this application, different application components are used for different work scenarios, and different installation packages are used for different work scenarios. For different application components, electronic devices can customize the interface resources, startup processes (target sub-components) and dynamic libraries of the application components, and delete redundant and unnecessary programs to reduce the size of the installation package. In addition, environment variable files are provided in the installation package to ensure that the installation package can start normally after installation.
[0108] Corresponding to the application component installation method described in the above embodiments, Figure 5 A structural block diagram of the application component installation device provided in the embodiments of this application is shown. For ease of explanation, only the parts related to the embodiments of this application are shown.
[0109] Reference Figure 5 The application component mounting device 50 includes:
[0110] The sending module 51 is used to send an installation file to at least one centralized control device in the new energy centralized control system; wherein, the installation file includes an installation dependency package; the installation dependency package is used to provide an environment for installing application components on at least one operating system, the at least one operating system including the type of operating system installed on the centralized control device;
[0111] Deployment module 52 is used to deploy the installation dependency package in the operating system of each of the centralized control devices;
[0112] Installation module 53 is used to install application components in the centralized control device based on the first installation package when the installation dependency package is deployed in the operating system of the centralized control device. The first installation package corresponds to the application components that provide application services for the power station under the new energy centralized control system.
[0113] In some embodiments, the first installation package is an encrypted installation package, and the installation module 53 sends a first instruction to each of the centralized control devices; wherein the first instruction includes the activation information of the centralized control device, and the first instruction is used to instruct the centralized control device to decrypt the first installation package based on the activation information of the centralized control device, so as to install the application component based on the decrypted file.
[0114] In some embodiments, the application component installation device 50 further includes an acquisition module, configured to acquire the machine code of each of the centralized control devices; and generate the activation information corresponding to the centralized control device based on the machine code of the centralized control device and the scene identifier of the at least one centralized control device based on the first preset scene of the application component installation.
[0115] In some embodiments, the application component includes at least one sub-component, and different central control devices provide different application services to the field station. For each central control device, the central control device provides the application service corresponding to the central control device through the target sub-component corresponding to the central control device in the at least one sub-component. The sending module 51 is further configured to send a second instruction to the central control device, wherein the second instruction is used to instruct the central control device to run the target sub-component corresponding to the central control device, so as to enable the central control device to provide the corresponding application service to the field station connected to the central control device.
[0116] In some embodiments, the installation file further includes a second installation package, which corresponds to a data read / write component that provides data read / write functionality. The application component runs based on the data read / write component to provide application services to the site. The installation module 53 is also used to install the data read / write component in the centralized control device based on the second installation package. The application component installation device 50 further includes a running module, which is used to run the data read / write component before running the target sub-component corresponding to the centralized control device.
[0117] In some embodiments, the sending module 51 is configured to send a third package corresponding to the second preset scenario to the at least one centralized control device when the working scenario of the at least one centralized control device is updated from the first preset scenario to the second preset scenario; the installation module 53 is further configured to update the application components installed in the centralized control device based on the operating system in which the installation dependency package is deployed and the third installation package, to obtain the updated application components corresponding to the second preset scenario; the running module is further configured to run the updated application components based on the data read / write components to update the application services provided to the site.
[0118] In some embodiments, each sub-component in the application component has a first port, the data read / write component has a second port, and the application component installation device 50 further includes a detection module. The detection module is used to determine the installation status of the data read / write component and the deployment status of the installation dependency package based on the running status of each sub-component in the application component; to perform functional testing on the sub-components of the application component based on each first port; and to perform functional testing on the data read / write component based on the second port.
[0119] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.
[0120] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0121] This application also provides an electronic device, such as... Figure 6 As shown, it illustrates a structural schematic diagram of the electronic device involved in the embodiments of this application, specifically:
[0122] The electronic device may include components such as a processor 601 with one or more processing cores, a memory 602 with one or more computer-readable storage media, a power supply 603, and an input unit 604. Those skilled in the art will understand that... Figure 6 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:
[0123] The processor 601 is the control center of the electronic device, connecting various parts of the device via various interfaces and lines. It executes various functions and processes data by running or executing software programs and / or modules stored in the memory 602, and by calling data stored in the memory 602. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 601.
[0124] The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function, etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.
[0125] The electronic device also includes a power supply 603 that supplies power to the various components. Preferably, the power supply 603 can be logically connected to the processor 601 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 603 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0126] The electronic device may also include an input unit 604, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0127] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 601 in the electronic device loads the executable files corresponding to the processes of one or more applications into the memory 602 according to the following instructions, and the processor 601 runs the applications stored in the memory 602, thereby realizing various test methods of this application.
[0128] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps described in the various method embodiments above.
[0129] This application provides a computer program product that, when run on a mobile terminal, enables the mobile terminal to implement the steps described in the above-described method embodiments.
[0130] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a photographing device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.
[0131] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0132] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0133] In the embodiments provided in this application, it should be understood that the disclosed apparatus / network devices and methods can be implemented in other ways. For example, the apparatus / network device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0134] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0135] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A method for installing application components, characterized in that, include: Send an installation file to at least one centralized control device in the new energy centralized control system; wherein, the installation file includes an installation dependency package; the installation dependency package is used to provide an environment for installing application components on at least one operating system, the at least one operating system including the type of operating system installed on the centralized control device; For each of the aforementioned centralized control devices, the installation dependency package is deployed in the operating system of the centralized control device; When the installation dependency package is deployed in the operating system of the centralized control device, the application component is installed in the centralized control device based on the first installation package, which corresponds to the application component that provides application services for the power station under the new energy centralized control system.
2. The method according to claim 1, characterized in that, The first installation package is an encrypted installation package. The installation of application components in the centralized control device based on the first installation package includes: For each of the centralized control devices, a first instruction is sent to the centralized control device; wherein the first instruction includes the activation information of the centralized control device, and the first instruction is used to instruct the centralized control device to decrypt the first installation package based on the activation information of the centralized control device, so as to install the application component based on the decrypted file.
3. The method according to claim 2, characterized in that, Before sending the first instruction to each of the centralized control devices, the method further includes: For each of the aforementioned centralized control devices, obtain the machine code of the centralized control device; Based on the machine code of the centralized control device, the at least one centralized control device generates the activation information corresponding to the centralized control device based on the scene identifier of the first preset scene of the application component.
4. The method according to claim 1, characterized in that, The application component includes at least one sub-component. Different centralized control devices provide different application services to the site. For each centralized control device, the centralized control device provides the application service corresponding to the centralized control device through the target sub-component corresponding to the centralized control device in the at least one sub-component. The method further includes: Send a second instruction to the centralized control device, wherein the second instruction is used to instruct the centralized control device to run the target sub-component corresponding to the centralized control device, so as to enable the centralized control device to provide corresponding application services for the field station connected to the centralized control device.
5. The method according to claim 4, characterized in that, The installation file also includes a second installation package, which corresponds to a data read / write component that provides data read / write functionality. The application component runs based on the data read / write component to provide application services to the site. The method further includes: Based on the second installation package, the data read / write component is installed in the centralized control device; The data read / write component is run before the target sub-component corresponding to the centralized control device is run.
6. The method according to claim 5, characterized in that, When the operating scenario of at least one centralized control device is updated from the first preset scenario to the second preset scenario, the method further includes: Send the third package corresponding to the second preset scenario to the at least one centralized control device; Based on the operating system and the third installation package that are deployed in the centralized control device, the application components installed in the centralized control device are updated to obtain the updated application components corresponding to the second preset scenario; Based on the data read / write component, the updated application component is run to update the application services provided to the site.
7. The method according to claim 5 or 6, characterized in that, Each sub-component in the application component has a first port, the data read / write component has a second port, and the method further includes: Based on the running status of each sub-component in the application component, determine the installation status of the data read / write component and the deployment status of the installation dependency package; Based on each of the first ports, functional tests are performed on the sub-components of the application component; Based on the second port, the data read / write component is functionally tested.
8. An application component mounting device, characterized in that, include: A sending module is used to send an installation file to at least one centralized control device in a new energy centralized control system; wherein, the installation file includes an installation dependency package; the installation dependency package is used to provide an environment for installing application components on at least one operating system, the at least one operating system including the type of operating system installed on the centralized control device; The deployment module is used to deploy the installation dependency package in the operating system of each of the centralized control devices. An installation module is used to install application components in the centralized control device based on a first installation package when the installation dependency package is deployed in the operating system of the centralized control device. The first installation package corresponds to the application components that provide application services for the power station under the new energy centralized control system.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 7.