Terminal automatic deployment method and system
Through the microservice architecture, the automatic deployment method is implemented on edge terminal devices, which solves the problem of high operation and maintenance costs of edge terminal devices during application deployment, and realizes the rapid packaging and deployment of application software of different data protocols, reducing operation and maintenance costs.
Patent Information
- Application Number
- CN202411095748.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-11-29
AI Technical Summary
Existing edge terminal devices have problems such as centralization of data and code and high coupling between modules during application deployment, resulting in high operation and maintenance costs and the inability to quickly package and deploy application software with different data protocols.
Adopting a microservice architecture, through the automatic deployment server, receives engineering deployment data sent by the terminal device, generates a deployment list and builds deployment operation data, sends deployment operation data to the terminal device, triggers the deployment of service applications until the deployment is completed, and the application of different data protocols is realized. Quick package and deployment of software.
It reduces the operation and maintenance costs of edge terminal devices, realizes the rapid deployment of application software for different data protocols, and improves deployment efficiency and security.
Smart Images

Figure CN119052072A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things, and in particular to a terminal automatic deployment method and system. Background Art
[0002] In the related technologies, the application service deployment of the existing edge terminal (or "edge gateway") data access device mainly uses engineers to deploy related applications according to the needs of the edge terminal access data protocol, which has disadvantages such as "data and code centralization" and "too high coupling between modules". It can be seen that the edge terminal in the prior art cannot quickly package and deploy application software according to the data protocol, and there is a problem of high equipment operation and maintenance costs. Summary of the invention
[0003] The present application provides a terminal automatic deployment method and system, which realizes the rapid packaging and deployment of application software of different data protocols of edge terminals through a microservice architecture, reduces the operation and maintenance cost of edge terminal devices, and solves the problems existing in existing edge terminal devices when performing application deployment.
[0004] In a first aspect, the present application provides a terminal automatic deployment method, which is applied to an automatic deployment server, comprising:
[0005] Receiving engineering deployment data sent by a terminal device, wherein the engineering deployment data is deployment data sent when the terminal device interacts with the automatic deployment server, and the engineering deployment data carries data protocol information;
[0006] Generate a deployment list based on the project deployment data;
[0007] Building a deployment operation based on the deployment list to obtain deployment operation data;
[0008] The deployment operation data is sent to the terminal device, where the deployment operation data is used to trigger the terminal device to perform service application deployment until the service application deployment is completed.
[0009] Optionally, before receiving the engineering deployment data sent by the terminal device, the method further includes:
[0010] Receiving authentication information sent by the terminal device;
[0011] Perform device authentication based on the authentication information to obtain authentication response information;
[0012] The authentication response information is sent to the terminal device, where the authentication response information is used to trigger the terminal device to generate the project deployment data.
[0013] Optionally, the deployment operation data includes an application service installation operation, a configuration download operation, and an activation operation, and the sending the deployment operation data to the terminal device includes:
[0014] Sending the application service installation operation to the terminal device, the terminal device performing service installation based on the application service installation operation and generating a service installation result;
[0015] In response to a service installation result fed back by the terminal device, sending the configuration download operation to the terminal device based on the service installation result;
[0016] receiving a download operation result corresponding to the configuration download operation fed back by the terminal device;
[0017] The enabling operation is sent to the terminal device based on the downloading operation result, and the enabling operation is used to trigger the terminal device to start the application.
[0018] Optionally, after sending the enabling operation to the terminal device based on the downloading operation result, the method further includes:
[0019] Receiving startup response information fed back by the terminal device, wherein the startup response information is response information generated by the terminal device according to the application startup result;
[0020] Determining whether the startup response information is target startup information;
[0021] If the startup response information is not the target startup information, the step of sending the deployment operation data to the terminal device is performed until the deployment of the service application is completed.
[0022] Optionally, the method further includes:
[0023] Collect device information and protocol information from the preset engineering deployment devices;
[0024] Sharing the device information and the protocol information to a cloud server;
[0025] The cloud server generates preset deployment data based on the device information and the protocol information, and the cloud server shares the preset deployment data to the engineering deployment device through the automatic deployment server, and the engineering deployment device shares data with the terminal device.
[0026] In a second aspect, the present application provides a terminal automatic deployment method, which is applied to a terminal device and includes:
[0027] When interacting with the automatic deployment server, generating project deployment data based on preset data protocol information, and sending the project deployment data to the automatic deployment server;
[0028] receiving deployment operation data fed back by the automatic deployment server, and performing service application deployment based on the deployment operation data until the service application is deployed;
[0029] The deployment operation data is operation data generated by the automatic deployment server based on the project deployment data.
[0030] Optionally, before sending the project deployment data to the automatic deployment server, the method further includes:
[0031] Sending authentication information to the automatic deployment server;
[0032] Receiving authentication response information sent by the automatic deployment server, the authentication response information being response information obtained by the automatic deployment server performing device authentication on the authentication information;
[0033] The project deployment data is generated based on the authentication response information.
[0034] Optionally, the performing service application deployment based on the deployment operation data includes:
[0035] Extracting application service installation operations from the deployment operation data;
[0036] Perform service installation based on the application service installation operation, generate a service installation result, and send the service installation result to the automatic deployment server;
[0037] Receiving a configuration download operation issued by the automatic deployment server for the service installation result;
[0038] Perform configuration processing based on the configuration download operation to obtain a download operation result;
[0039] In response to an activation operation sent by the automatic deployment server in response to the download operation result, an application is started based on the activation operation result.
[0040] Optionally, after starting the application based on the enabling operation result, the method further includes:
[0041] Determine the application startup result;
[0042] Generate startup response information based on the application startup result;
[0043] Sending the startup response information to the target deployment server, and when the startup response information is not the target startup information, the target deployment server executes the step of sending the deployment operation data to the terminal device until the service application is deployed;
[0044] The method further includes: determining an engineering deployment device that shares data with the terminal device; and acquiring preset deployment data from the engineering deployment device, wherein the preset deployment data includes device information and protocol information.
[0045] In a third aspect, the present application provides a terminal automatic deployment system, the system comprising an automatic deployment server and a terminal device;
[0046] The automatic deployment server is used to receive the engineering deployment data sent by the terminal device when interacting with the terminal device; generate a deployment list based on the engineering deployment data; construct a deployment operation based on the deployment list to obtain deployment operation data, and send the deployment operation data to the terminal device;
[0047] The terminal device is used to generate project deployment data based on preset data protocol information when interacting with the automatic deployment server, and send the project deployment data to the automatic deployment server; receive the deployment operation data, and perform service application deployment based on the deployment operation data until the service application is deployed.
[0048] In summary, the embodiment of the present application receives the engineering deployment data sent by the terminal device on the automatic deployment server side. The engineering deployment data is the deployment data sent when the terminal device interacts with the automatic deployment server. The engineering deployment data carries data protocol information, so that the automatic deployment server can generate a deployment list based on the engineering deployment data, and then build a deployment operation based on the deployment list to obtain deployment operation data, so as to send the deployment operation data to the terminal device, so that the terminal device can be triggered to perform service application deployment through the deployment operation data until the service application is deployed. It can be seen that the present application solves the problems existing in the prior art when edge terminal devices perform application deployment, realizes the rapid packaging and deployment of application software with different data protocols for edge terminals, and reduces the operation and maintenance costs of edge terminal devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0050] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0051] Figure 1 A schematic diagram of a process of automatically deploying a server side of a terminal automatic deployment method provided in an embodiment of the present application;
[0052] Figure 2 This is a schematic diagram of the steps of automatically deploying a server side in a terminal automatic deployment method provided by an optional embodiment of the present application;
[0053] Figure 3 This is a schematic diagram of the overall concept of the terminal automatic deployment method provided by this application;
[0054] Figure 4 This is a design idea diagram of the terminal automatic deployment method provided by this application;
[0055] Figure 5 This is a design phase diagram of the terminal automatic deployment method provided by this application;
[0056] Figure 6 This is a schematic diagram of the steps of a terminal device side of a terminal automatic deployment method provided by an optional embodiment of the present application;
[0057] Figure 7 A diagram of a terminal automatic deployment system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0059] To facilitate the understanding of the embodiments of the present application, further explanation will be given below in conjunction with the drawings and specific embodiments. The embodiments do not constitute a limitation on the embodiments of the present application.
[0060] Reference Figure 1, a schematic diagram of the process of automatically deploying the server side of a terminal automatic deployment method provided in an embodiment of the present application. In a specific implementation, the terminal automatic deployment method provided in the present application can be applied to an automatic deployment server, and the automatic deployment server can jointly build a microservice architecture with terminal devices, engineering deployment hosts, etc. When the terminal device interacts with the automatic deployment server, the automatic deployment server receives the engineering deployment data sent by the terminal device to generate deployment operation data, and uses the deployment operation data to trigger the terminal device to deploy the service application until the service application is deployed. This allows the terminal device to quickly package and deploy application software with different data protocols, reducing the operation and maintenance costs of edge terminal devices.
[0061] Step 110: receiving the project deployment data sent by the terminal device.
[0062] The project deployment data is deployment data sent when the terminal device interacts with the automatic deployment server, and the project deployment data carries data protocol information.
[0063] Specifically, the project deployment data may carry data protocol information, which may represent the protocols corresponding to application software of different data protocols. By using the data protocol information carried by the project deployment data, terminal devices (also called edge terminals) may quickly package and deploy application software of different data protocols.
[0064] In a specific implementation, when a terminal device interacts with an automatic deployment server, the terminal device can obtain preset data protocol information from local storage and / or the cloud, generate engineering deployment data based on the preset data protocol information, and send the engineering deployment data to the automatic deployment server. In addition to carrying data protocol information, the engineering deployment data may also include device information of the terminal device (such as the identification and model of the terminal device, which are not limited in this example), device data, protocol information of the type edge terminal device (i.e., the protocol to be deployed), Docker container information, application APP information, JSON model information, hardware interface information (such as network port information, 232 serial port, 485 serial port), etc., which are not limited in this embodiment of the present application.
[0065] Step 120: Generate a deployment list based on the project deployment data.
[0066] In a specific implementation, the deployment list may include at least one service application to be installed / enabled, which may be a microservice application, and the present application embodiment does not limit this. After receiving the project deployment data, the automatic deployment server determines all microservice applications that need to be installed / enabled on the terminal device according to the project deployment data, and generates a deployment list so that the deployment list can be used later to determine the deployment operation, that is, to execute step 130.
[0067] Step 130: construct a deployment operation based on the deployment list to obtain deployment operation data.
[0068] The deployment operation data is sent to the terminal device, where the deployment operation data is used to trigger the terminal device to perform service application deployment until the service application deployment is completed.
[0069] Specifically, the deployment operation data may include deployment operations of one or more microservice applications, and the deployment operations may include application service installation operations, configuration download operations, and activation operations, which are not limited in the embodiments of the present application.
[0070] In a specific implementation, the automatic deployment server can determine each service application to be deployed according to the deployment list, generate the deployment operation corresponding to the service application according to the installation operation, configuration and activation operation (also called startup operation) of the service application, and then generate deployment operation data in combination with the deployment operations of all service applications, and then use the deployment operation data to deploy all service applications on the terminal device. For example, the automatic deployment server can build an installation queue, determine the installation order / priority of all service applications in turn, and add the service applications to the installation queue in turn according to the installation order / priority. The automatic deployment server can then send the deployment operation data to the terminal device, and the terminal device will perform application installation, configuration download and startup operations in turn according to the deployment operation data until all service applications are deployed. This enables rapid packaging and deployment of application software with different data protocols for edge terminals, reducing the operation and maintenance costs of edge terminal devices.
[0071] In actual processing, since the deployment operation data may involve the installation of multiple service applications, each service application has a corresponding installation operation process. Therefore, the automatic deployment server can have multiple ways of sending the deployment operation data to the terminal device.
[0072] Exemplarily, the automatic deployment server may directly send the deployment operation data including all service applications and the service application installation operation process to the terminal device, and the terminal device may install / activate the service applications in sequence until all service applications of the terminal device are deployed.
[0073] Exemplarily, the automatic deployment server can send the deployment operation data corresponding to the installation operation process of the service application to the terminal device in sequence according to the service application installation order. The terminal device can extract the installation operation process corresponding to the service application from the deployment operation data, and install, configure and enable the service application according to the installation operation process until all service applications of the terminal device are deployed.
[0074] For example, for each service application, its installation operation process can be subdivided into multiple operations such as application service installation, configuration downloading, and activation according to the steps. Therefore, the automatic deployment server can send the installation operation process of the service application to the terminal device in the order of service application installation. For example, the order of sending the installation operation can be application service installation operation -> configuration downloading operation -> activation operation. This example does not limit this. The terminal device deploys according to the received operation, so that the deployment process of the service application is orderly. Once a problem occurs in the deployment process of a service application, it can be terminated and redeployed in time to avoid waiting and wasting resources.
[0075] It can be seen that the embodiment of the present application receives the engineering deployment data sent by the terminal device on the automatic deployment server side. The engineering deployment data is the deployment data sent when the terminal device interacts with the automatic deployment server. The deployment data carries data protocol information, so that the automatic deployment server can generate a deployment list based on the engineering deployment data, and then build a deployment operation based on the deployment list to obtain deployment operation data, so as to send the deployment operation data to the terminal device, so that the terminal device can be triggered to perform service application deployment through the deployment operation data until the service application is deployed. It can be seen that the present application solves the problems existing in the prior art when edge terminal devices perform application deployment, realizes the rapid packaging and deployment of application software with different data protocols for edge terminals, and reduces the operation and maintenance costs of edge terminal devices.
[0076] Reference Figure 2 , shows a schematic flow chart of the steps of automatically deploying a server side in a terminal automatic deployment method provided by an optional embodiment of the present application. The terminal automatic deployment method may specifically include the following steps:
[0077] Step 210: receiving the project deployment data sent by the terminal device.
[0078] The project deployment data is deployment data sent when the terminal device interacts with the automatic deployment server, and the project deployment data carries data protocol information.
[0079] In the specific implementation, in order to better realize the rapid packaging and deployment of application software of different data protocols by edge terminals, the operation and maintenance costs of edge terminal devices are reduced, and security is improved. In this application, the automatic deployment server can first perform device authentication (also known as device verification) on the terminal device when interacting with the terminal device to improve data security. Specifically, when the terminal device is connected to the automatic deployment server, the terminal device can actively initiate device authentication to the automatic deployment server, and the terminal device can send the authentication information required for authentication (such as the authentication information can include device data, etc.) to the automatic deployment server for device authentication. The automatic deployment server performs device authentication on the terminal device based on the received authentication information, and when the authentication is passed, the project deployment data can be fed back to the terminal device.
[0080] In an optional embodiment, before receiving the engineering deployment data sent by the terminal device, the embodiment of the present application may further include: receiving authentication information sent by the terminal device; performing device authentication based on the authentication information to obtain authentication response information; and sending the authentication response information to the terminal device, wherein the authentication response information is used to trigger the terminal device to generate the engineering deployment data. The authentication response information can be used to determine whether the terminal device is a target terminal device.
[0081] For example, refer to Figure 3 , where the data access device can be used as a terminal device. When the terminal device interacts with the automatic deployment server, the automatic deployment server can perform device authentication based on the authentication information after receiving the authentication information sent by the terminal device. The device authentication may include but is not limited to: whether the terminal device is a security device, whether the terminal device is the target device for the automatic deployment server to deploy service applications. This example does not limit this. When the authentication is successful, the automatic deployment server can generate an authentication success result and send it to the terminal device as an authentication response message, thereby triggering the terminal device to generate engineering deployment data, improving data security, and then realizing the rapid packaging and deployment of application software with different data protocols for edge terminals, reducing the operation and maintenance costs of edge terminal devices.
[0082] In actual processing, this application uses a microservice architecture to achieve rapid packaging and deployment of application software of different data protocols by edge terminals, reducing the operation and maintenance costs of edge terminal devices. In order to better improve the microservice architecture, the microservice architecture can also include engineering deployment equipment (also known as engineering deployment host) and cloud servers (including manufacturer servers and equipment manufacturer data servers, etc.) in addition to including automatic deployment servers and edge terminals. The automatic deployment server uses the engineering deployment data collected from the engineering deployment equipment to share it with the cloud server, and data can also be shared between the terminal device and the engineering deployment equipment, such as sharing engineering deployment data.
[0083] In an optional implementation, the embodiment of the present application may further include: collecting device information and protocol information from a preset engineering deployment device; sharing the device information and the protocol information to a cloud server; wherein the cloud server generates preset deployment data based on the device information and the protocol information, the cloud server shares the preset deployment data to the engineering deployment device through the automatic deployment server, and the engineering deployment device shares data with the terminal device.
[0084] For example, refer to Figure 4 , Figure 4 This is the overall design idea diagram of this application. Among them, the manufacturer's server is responsible for storing and processing various types of data that need to be deployed by the edge terminal, including protocol information, container (Docker) information, application (APP for short) information, JSON model information, hardware interface information (network port, 232 serial port, 485 serial port), etc. of all types of edge terminal devices. The automatic deployment server is the main device involved in automatic deployment. The automatic deployment server can use data collection to collect device information and protocol information from the engineering deployment host and aggregate it to the cloud. The cloud will save the aggregated information as engineering deployment data and feed it back to the automatic deployment server. The automatic deployment server will send the received engineering deployment data to the engineering deployment host, and then the engineering deployment host will synchronously share it to the edge terminal.
[0085] For example, refer to Figure 5 , Figure 5 The interactive process between the engineering deployment host and the automatic deployment server in the scheme design stage of this application is shown. Before the interaction, the engineering deployment host can install the automatic deployment tool, and the user can use the automatic deployment tool to start the deployment operation with one click. The engineering deployment host automatically interacts with the automatic deployment server. When the interaction process starts, the engineering deployment host sends the device information of the edge terminal device to be deployed, the access device data, and the protocol to be deployed to the automatic deployment server in turn. Then the engineering deployment host waits for the automatic deployment server to respond in turn. The manufacturer's data server summarizes the access device, microservice application package, configuration, JSON model, container, protocol and other information and saves it as engineering deployment data. It is sent to the automatic deployment server through the cloud, and the engineering deployment host downloads it to the local and saves it through the automatic deployment server.
[0086] Step 220: Generate a deployment list based on the project deployment data.
[0087] Step 230: construct a deployment operation based on the deployment list to obtain deployment operation data.
[0088] The deployment operation data includes application service installation operation, configuration download operation and activation operation.
[0089] Step 240: Send the application service installation operation to the terminal device.
[0090] The terminal device performs service installation based on the application service installation operation and generates a service installation result.
[0091] Specifically, the service installation result can be divided into a normal installation result and a failed installation result. The normal installation result can be used to indicate that the terminal device has successfully installed the service application, and the failed installation result can be used to indicate that the terminal device has not successfully installed the service application. The embodiments of the present application do not impose any restrictions on this.
[0092] In a specific implementation, the automatic deployment server can split the deployment operation data into multiple operations, which can be divided into application service installation operations, configuration download operations, and activation operations. The automatic deployment server can first send the application service installation operation to the terminal device, and wait for the terminal device to complete the application service installation operation before proceeding to the next step. This ensures that the terminal device can complete the installation and startup of the service application in sequence according to the received operations, so that when an error occurs in a certain link of the deployment operation, it can be terminated and retried in time to ensure that all service applications can be enabled normally. This enables the rapid packaging and deployment of application software with different data protocols for edge terminals, reducing the operation and maintenance costs of edge terminal devices.
[0093] Step 250: In response to the service installation result fed back by the terminal device, the configuration download operation is sent to the terminal device based on the service installation result.
[0094] In a specific implementation, after the automatic deployment server receives the service installation result fed back by the terminal device, it can judge the service installation result to determine whether the service application is successfully installed on the terminal device. If the service installation result is a successful installation result, it indicates that the terminal device has successfully installed the service application. The automatic deployment server can then send the configuration download operation to the terminal device, so that the terminal device can configure the service application according to the configuration download operation, such as configuring the environment and parameters required for the operation of the service application, etc. The embodiment of the present application does not limit this.
[0095] For example, refer to Figure 3, taking the installation of microservice application 1 as an example, the automatic deployment server sends the application service installation operation corresponding to microservice application 1 to the terminal device. After receiving the installation operation, the terminal device installs microservice application 1 and can feed back the service installation result corresponding to microservice application 1 to the automatic deployment server. The automatic deployment server receives the service installation result and judges the service installation result. When the service installation result is a normal installation result, it means that the terminal device has successfully installed microservice application 1. Then the automatic deployment server can proceed to the next step, such as sending the configuration download operation corresponding to microservice application 1 to the terminal device to configure microservice application 1 using the configuration download operation; when the service installation result is a failed installation result, it means that the terminal device has not successfully installed microservice application 1. At this time, the automatic deployment server can re-send the application service installation operation until the terminal device successfully installs the microservice application 1.
[0096] Step 260: Receive a download operation result corresponding to the configuration download operation fed back by the terminal device.
[0097] Specifically, the download operation results can be divided into successful download operation results and failed download operation results. Among them, the successful download operation result can be used to characterize that the terminal device has successfully configured and downloaded the service application, and the failed download operation result can be used to characterize that the terminal device has not successfully configured and downloaded the service application. The embodiments of the present application do not limit this.
[0098] Step 270: Send the enabling operation to the terminal device based on the downloading operation result.
[0099] The enabling operation is used to trigger the terminal device to start an application.
[0100] In a specific implementation, after the automatic deployment server receives the download operation result fed back by the terminal device, it can determine whether the download operation result is a successful download operation result. If the download operation result is a successful download operation result, the automatic deployment server can determine that the terminal device has successfully configured and downloaded the service application, and then generate an enablement operation to use the enablement operation to trigger the terminal device to start the application until all service applications are deployed.
[0101] For example, refer to Figure 3When the automatic deployment server receives the download operation result corresponding to microservice application 1 as a successful download operation result, the automatic deployment server can determine that the terminal device has successfully configured and downloaded microservice application 1. At this time, the automatic deployment server can generate an enable operation to trigger the terminal device to start the service of microservice application 1 using the enable operation; when the automatic deployment server receives the download operation result corresponding to microservice application 1 as a failed download operation result, it means that the terminal device may not have successfully configured and downloaded microservice application 1. At this time, the automatic deployment server can generate a configuration download operation and send it to the terminal device, so that the terminal device can re-configure and download microservice application 1 until microservice application 1 completes the configuration download.
[0102] In an optional embodiment, after the embodiment of the present application sends an activation operation to the terminal device based on the download operation result, it may also specifically include: receiving startup response information fed back by the terminal device, the startup response information is response information generated by the terminal device according to the application startup result; determining whether the startup response information is the target startup information; if the startup response information is not the target startup information, executing the step of sending the deployment operation data to the terminal device until the service application is deployed.
[0103] Specifically, the startup response information can be used to indicate whether the service application has been successfully started and whether there are other service applications to be deployed, which is not limited in this example. When the startup response information indicates that the service application has been successfully started and there are no other service applications to be deployed, the startup response information can be used as the target startup information, and all service applications have been deployed at this time; if the startup response information indicates that the service application has not been successfully started and / or there are other service applications to be deployed, it means that the service application has not been fully deployed, and the automatic deployment server can execute the step of sending deployment operation data to the terminal device until all service applications are deployed.
[0104] For example, after the terminal device completes the installation, configuration, and activation of microservice application 1, the other microservice applications in the deployment list can be installed, configured, and activated in sequence until all microservice applications are deployed, thereby achieving rapid packaging and deployment of application software with different data protocols for edge terminals, reducing the operation and maintenance costs of edge terminal devices.
[0105] In summary, in the embodiments of the present application, when the automatic deployment server interacts with the terminal device, it receives the engineering deployment data carrying the data protocol information sent by the terminal device, generates a deployment list based on the engineering deployment data, builds a deployment operation based on the deployment list, obtains the deployment operation data, and sends the application service installation operation contained in the deployment operation data to the terminal device, so as to trigger the terminal device to install the service based on the application service installation operation, and generate a service installation result, and then sends a configuration download operation to the terminal device according to the service installation result, and sends an enable operation to the terminal device based on the download operation result corresponding to the configuration download operation fed back by the terminal device, thereby triggering the terminal device to start the application, which effectively solves the problems existing in the prior art when the edge terminal device deploys the application, realizes the rapid packaging and deployment of application software with different data protocols for the edge terminal, and reduces the operation and maintenance cost of the edge terminal device.
[0106] Reference Figure 6 , shows a schematic diagram of the steps of a terminal device side of a terminal automatic deployment method provided by an optional embodiment of the present application. The terminal automatic deployment method may specifically include the following steps:
[0107] Step 610: When interacting with the automatic deployment server, generate project deployment data based on preset data protocol information, and send the project deployment data to the automatic deployment server.
[0108] In a specific implementation, the terminal device can be the initiator of the interaction or the passive party of the interaction, and the embodiments of the present application do not limit this. The terminal device can store data protocols corresponding to different application software and various device data. When deploying an application, the terminal device can generate project deployment data using various pre-stored data information and send the project deployment data to the automatic deployment server to trigger the deployment operation of the automatic deployment server.
[0109] In an optional embodiment, before the embodiment of the present application sends the project deployment data to the automatic deployment server, it may also specifically include: sending authentication information to the automatic deployment server; receiving authentication response information sent by the automatic deployment server, the authentication response information being response information obtained by the automatic deployment server for device authentication of the authentication information; and generating the project deployment data based on the authentication response information.
[0110] Step 620: receiving the deployment operation data fed back by the automatic deployment server, and performing service application deployment based on the deployment operation data until the service application is deployed.
[0111] The deployment operation data is operation data generated by the automatic deployment server based on the project deployment data.
[0112] In a specific implementation, the terminal device can receive the deployment operation data sent by the automatic deployment server for each service application in sequence. The deployment operation data can be divided into application service installation operation, configuration download operation, and activation operation, etc. Therefore, the terminal server can execute the multiple operations contained in the deployment operation data in sequence, and the execution order can be application service installation operation->configuration download operation->activation operation, which is not limited in this embodiment of the present application.
[0113] Optionally, the above-mentioned service application deployment based on the deployment operation data until the service application deployment is completed may specifically include the following sub-steps:
[0114] Sub-step 6201, extracting the application service installation operation from the deployment operation data.
[0115] Sub-step 6202: Perform service installation based on the application service installation operation, generate a service installation result, and send the service installation result to the automatic deployment server.
[0116] In a specific implementation, the terminal device can install the service application according to the application service installation operation, such as referring to Figure 3 , the microservice application 1 can be installed. If the service application is successfully installed, the terminal device can generate a successful installation result as the service installation result; if the application is not successfully installed, the terminal device can generate a failed installation result as the service installation result. Among them, the successful installation result can be used to trigger the automatic deployment server to issue a configuration download operation, that is, to execute sub-step 6203; the failed installation result can be used to trigger the automatic deployment server to re-issue the application service installation operation, so that the terminal device re-installs the service application.
[0117] Sub-step 6203, receiving the configuration download operation sent by the automatic deployment server for the service installation result.
[0118] Sub-step 6204, performing configuration processing based on the configuration download operation to obtain the download operation result.
[0119] In a specific implementation, the terminal device configures the service application according to the configuration download operation, such as configuring the operating environment and application parameters of the service application. If the terminal device successfully configures the service application, a download operation success result can be generated as the download operation result, and the download operation success result is fed back to the automatic deployment server to trigger the automatic deployment server to generate and send an enable operation, that is, execute step 6205; if the terminal device does not successfully configure the service application, a download operation failure result can be generated as the download operation result, and is fed back to the automatic deployment server. After the automatic deployment server determines that the configuration download of the current service application has failed based on the download operation failure result, it can re-send the configuration download operation to the terminal device so that the terminal device re-configures and downloads the service application.
[0120] Sub-step 6205: In response to the activation operation sent by the automatic deployment server in response to the download operation result, start the application based on the activation operation result.
[0121] In a specific implementation, after the terminal device starts the service application according to the activation operation sent by the automatic deployment server, if the service application is successfully started and the deployment of all service applications has been completed, a startup response message can be generated, and the startup response message is used to indicate that all service applications have been deployed. If there are service applications that have not been successfully started or there are service applications that have not been deployed, a startup response message can be generated, and the startup response message is used to indicate that the service applications have not been fully deployed, so as to trigger the automatic deployment server to perform the next step.
[0122] In an optional embodiment, after the embodiment of the present application starts the program based on the enabling operation result, it may further include: determining the application startup result; generating a startup response message based on the application startup result; sending the startup response message to the target deployment server, and when the startup response message is not the target startup message, the target deployment server executes the step of sending the deployment operation data to the terminal device until the service application is deployed; the method also includes: determining an engineering deployment device for sharing data with the terminal device; obtaining preset deployment data from the engineering deployment device, and the preset deployment data includes device information and protocol information.
[0123] In summary, in the embodiments of the present application, when the terminal device interacts with the automatic deployment server, it generates project deployment data based on preset data protocol information and sends the project deployment data to the automatic deployment server, so that the automatic deployment server can generate deployment operation data based on the project deployment data, receive the deployment operation data fed back by the automatic deployment server, and perform service application deployment based on the deployment operation data until the service application is deployed. This solves the problems existing in the prior art when edge terminal devices perform application deployment, realizes the rapid packaging and deployment of application software with different data protocols for edge terminals, and reduces the operation and maintenance costs of edge terminal devices.
[0124] It should be noted that, for the purpose of simple description, the method embodiments are expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited to the described order of actions, because according to the embodiments of the present application, certain steps may be performed in other orders or simultaneously.
[0125] like Figure 7 As shown, the embodiment of the present application also provides a terminal automatic deployment system 700, including: an automatic deployment server 710 and a terminal device 720;
[0126] The automatic deployment server is used to receive the engineering deployment data sent by the terminal device when interacting with the terminal device; generate a deployment list based on the engineering deployment data; construct a deployment operation based on the deployment list to obtain deployment operation data, and send the deployment operation data to the terminal device;
[0127] The terminal device is used to generate project deployment data based on preset data protocol information when interacting with the automatic deployment server, and send the project deployment data to the automatic deployment server; receive the deployment operation data, and perform service application deployment based on the deployment operation data until the service application is deployed.
[0128] It should be noted that the terminal automatic deployment system provided in the embodiments of the present application can execute the terminal automatic deployment method provided in any embodiment of the present application, and has the corresponding functions and beneficial effects of executing the terminal automatic deployment method.
[0129] In a specific implementation, the terminal automatic deployment system can be integrated into a device, so that the device can construct deployment operation data based on the engineering deployment data, and then trigger the terminal device to deploy all service applications based on the deployment operation data. As an electronic device, it can realize the rapid packaging and deployment of application software of different data protocols of edge terminals, thereby reducing the operation and maintenance cost of edge terminal devices. The electronic device can be composed of two or more physical entities, or it can be composed of one physical entity. For example, the electronic device can be a personal computer (PC), a computer, a server, etc., and the embodiments of the present application do not impose specific restrictions on this.
[0130] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the terminal automatic deployment method provided in any of the aforementioned terminal automatic deployment method embodiments are implemented.
[0131] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0132] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A terminal automatic deployment method, characterized in that: The method is applied to automatically deploy a server, comprising: Receiving engineering deployment data sent by a terminal device, wherein the engineering deployment data is deployment data sent when the terminal device interacts with the automatic deployment server, and the engineering deployment data carries data protocol information; Generate a deployment list based on the project deployment data; Building a deployment operation based on the deployment list to obtain deployment operation data; The deployment operation data is sent to the terminal device, where the deployment operation data is used to trigger the terminal device to perform service application deployment until the service application deployment is completed.
2. The method according to claim 1, characterized in that: Before receiving the engineering deployment data sent by the terminal device, the method further includes: Receiving authentication information sent by the terminal device; Perform device authentication based on the authentication information to obtain authentication response information; The authentication response information is sent to the terminal device, where the authentication response information is used to trigger the terminal device to generate the project deployment data.
3. The method according to claim 1, characterized in that The deployment operation data includes an application service installation operation, a configuration download operation, and an activation operation, and sending the deployment operation data to the terminal device includes: Sending the application service installation operation to the terminal device, the terminal device performing service installation based on the application service installation operation and generating a service installation result; In response to a service installation result fed back by the terminal device, sending the configuration download operation to the terminal device based on the service installation result; receiving a download operation result corresponding to the configuration download operation fed back by the terminal device; The enabling operation is sent to the terminal device based on the downloading operation result, and the enabling operation is used to trigger the terminal device to start the application.
4. The method according to claim 3, characterized in that After sending the enabling operation to the terminal device based on the downloading operation result, the method further includes: Receiving startup response information fed back by the terminal device, wherein the startup response information is response information generated by the terminal device according to the application startup result; Determining whether the startup response information is target startup information; If the startup response information is not the target startup information, the step of sending the deployment operation data to the terminal device is performed until the deployment of the service application is completed.
5. The method according to any one of claims 1 to 4, characterized in that: Also includes: Collect device information and protocol information from the preset engineering deployment devices; Sharing the device information and the protocol information to a cloud server; The cloud server generates preset deployment data based on the device information and the protocol information, and the cloud server shares the preset deployment data to the engineering deployment device through the automatic deployment server, and the engineering deployment device shares data with the terminal device.
6. A terminal automatic deployment method, characterized in that: The method is applied to a terminal device, comprising: When interacting with the automatic deployment server, generating project deployment data based on preset data protocol information, and sending the project deployment data to the automatic deployment server; receiving deployment operation data fed back by the automatic deployment server, and performing service application deployment based on the deployment operation data until the service application is deployed; The deployment operation data is operation data generated by the automatic deployment server based on the project deployment data.
7. The method according to claim 6, characterized in that Before sending the project deployment data to the automatic deployment server, the method further includes: Sending authentication information to the automatic deployment server; Receiving authentication response information sent by the automatic deployment server, the authentication response information being response information obtained by the automatic deployment server performing device authentication on the authentication information; The project deployment data is generated based on the authentication response information.
8. The method according to claim 6, characterized in that The performing service application deployment based on the deployment operation data includes: Extracting application service installation operations from the deployment operation data; Perform service installation based on the application service installation operation, generate a service installation result, and send the service installation result to the automatic deployment server; Receiving a configuration download operation issued by the automatic deployment server for the service installation result; Perform configuration processing based on the configuration download operation to obtain a download operation result; In response to an activation operation sent by the automatic deployment server in response to the download operation result, an application is started based on the activation operation result.
9. The method according to claim 8, characterized in that After starting the application based on the enabling operation result, the method further includes: Determine the application launch result; Generate startup response information based on the application startup result; Sending the startup response information to the target deployment server, and when the startup response information is not the target startup information, the target deployment server executes the step of sending the deployment operation data to the terminal device until the service application is deployed; The method further includes: determining an engineering deployment device that shares data with the terminal device; and acquiring preset deployment data from the engineering deployment device, wherein the preset deployment data includes device information and protocol information.
10. A terminal automatic deployment system, characterized in that: The system includes an automatic deployment server and terminal equipment; The automatic deployment server is used to receive the engineering deployment data sent by the terminal device when interacting with the terminal device; generate a deployment list based on the engineering deployment data; construct a deployment operation based on the deployment list to obtain deployment operation data, and send the deployment operation data to the terminal device; The terminal device is used to generate project deployment data based on preset data protocol information when interacting with the automatic deployment server, and send the project deployment data to the automatic deployment server; receive the deployment operation data, and perform service application deployment based on the deployment operation data until the service application is deployed.
