Edge device function online configuration method based on remote deployment

文档序号:7210 发布日期:2021-09-17 浏览:31次 中文

1. An edge device function online configuration method based on remote deployment is characterized by comprising the following steps:

receiving function change information sent by a cloud Internet of things platform; the function change information is generated by the cloud Internet of things platform based on a function change request sent by a user; the function change request is used for changing the target function of the edge device;

carrying out application configuration change on the edge equipment according to the function change information so as to enable the edge equipment to be provided with a target function application; the target function application is used for enabling the edge device to have the target function.

2. The method of claim 1, wherein the function change information includes a control instruction, and wherein performing application configuration change on the edge device according to the function change information to enable the edge device to install a target function application comprises:

if the control instruction is an unloading instruction, unloading the functional application to be unloaded corresponding to the unloading instruction so as to enable the edge device to be provided with the target functional application; the target function application comprises a function application except the function application to be uninstalled.

3. The method of claim 2, wherein the function change information further includes an application configuration file, and wherein performing application configuration change on the edge device according to the function change information to enable the edge device to install a target function application comprises:

if the control instruction is an installation instruction, performing application installation operation based on the application configuration file, and installing a to-be-installed functional application corresponding to the installation instruction so as to enable the edge device to be installed with a target functional application; the target function application comprises the function application to be installed;

if the control instruction is a change instruction, uninstalling the functional application to be uninstalled corresponding to the change instruction, performing application installation operation based on the application configuration file, and installing the functional application to be installed corresponding to the change instruction, so that the edge device is provided with a target functional application; the target function application comprises a function application to be installed corresponding to the change instruction.

4. The method according to any one of claims 1 to 3, wherein before the step of receiving function change information sent by a cloud-based IOT platform, the method further comprises:

when the edge device initializes the application configuration, acquiring application configuration files and configuration information corresponding to a plurality of initialization function applications; each initialization function application corresponds to a function application model, and an application configuration file and configuration information corresponding to the initialization function application are generated based on the function application model;

and performing application configuration by adopting the application configuration files and the configuration information corresponding to the plurality of initialization function applications, so as to preset the plurality of initialization function applications in the edge device.

5. An edge device function online configuration method based on remote deployment is characterized by comprising the following steps:

generating function change information in response to a function change request sent by a client; wherein the function change request is used for changing the target function of the edge device;

sending the function change information to edge equipment to change application configuration of the edge equipment according to the function change information, so that the edge equipment is provided with a target function application; the target function application is used for enabling the edge device to have the target function.

6. The method of claim 5, wherein the function change information comprises an application configuration file, and wherein generating the function change information in response to a function change request sent by a client comprises:

responding to a function change request sent by a client, acquiring a candidate application configuration file uploaded to a cloud Internet of things platform by the client, and verifying the candidate application configuration file;

and generating function change information based on the verified candidate application configuration file.

7. The method of claim 5, wherein prior to the step of generating change of function information in response to a change of function request sent by a client, the method further comprises:

when the edge device initializes the application configuration, acquiring a function configuration request for configuring a plurality of initialization function applications;

generating application configuration files and configuration information corresponding to the plurality of initialization function applications according to a plurality of preset application models; each initialized function application corresponds to a function application model;

and sending the application configuration files and the configuration information corresponding to the plurality of initialization function applications to the edge device so as to preset the plurality of initialization function applications in the edge device.

8. The method according to any one of claims 5 to 7, further comprising:

responding to a version query request sent by a client, and acquiring version query information which is returned by the edge device and aims at the version query request;

and sending the version query information to the client to feed back to a user.

9. An apparatus for remotely deploying edge device function online configuration, the apparatus comprising:

the function change information receiving module is used for receiving function change information sent by the cloud Internet of things platform; the function change information is generated by the cloud Internet of things platform based on a function change request sent by a user; the function change request is used for changing the target function of the edge device;

the application configuration changing module is used for carrying out application configuration change on the edge equipment according to the function changing information so as to enable the edge equipment to be provided with a target function application; the target function application is used for enabling the edge device to have the target function.

10. The utility model provides a high in clouds thing networking platform which characterized in that includes:

the function change request response module is used for responding to a function change request sent by the client and generating function change information; wherein the function change request is used for changing the target function of the edge device;

the function change information sending module is used for sending the function change information to edge equipment so as to carry out application configuration change on the edge equipment according to the function change information and enable the edge equipment to be provided with a target function application; the target function application is used for enabling the edge device to have the target function.

11. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program implements the steps of the method for on-line configuration of edge device functionality based on remote deployment of any one of claims 1 to 8.

12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method for on-line configuration of remote deployment-based edge device functionality of any one of claims 1 to 8.

Background

The construction process of the digital power grid is a process of digitalizing, intelligentizing and internetworking the traditional power grid, wherein the edge layer of the digital power grid is an important link for connecting a physical power grid and the digital power grid, is close to a power grid sensing data source, provides edge intelligent service, and meets key requirements of the digital power grid on agile connection, real-time service, data optimization, application intelligence and the like.

In the prior art, software programs of edge layer equipment are usually written before the equipment leaves a factory, and subsequent program upgrading and updating maintenance are performed by equipment manufacturers in a mode of directly replacing board cards or upgrading on site, so that functional requirements cannot be redefined or modified flexibly, and the requirements of flexible and changeable service change and new increase on an edge side are difficult to meet.

Disclosure of Invention

In view of the foregoing, there is a need to provide a method, an apparatus, a computer device, and a storage medium for remotely deploying based on edge device function online configuration, which can solve the above-mentioned problems.

A method for remotely deployed based on online configuration of edge device functions, the method comprising:

receiving function change information sent by a cloud Internet of things platform; the function change information is generated by the cloud Internet of things platform based on a function change request sent by a user; the function change request is used for changing the target function of the edge device;

carrying out application configuration change on the edge equipment according to the function change information so as to enable the edge equipment to be provided with a target function application; the target function application is used for enabling the edge device to have the target function.

In one embodiment, the function change information includes a control instruction, and the performing application configuration change on the edge device according to the function change information to enable the edge device to install a target function application includes:

if the control instruction is an unloading instruction, unloading the functional application to be unloaded corresponding to the unloading instruction so as to enable the edge device to be provided with the target functional application; the target function application comprises a function application except the function application to be uninstalled.

In one embodiment, the function change information further includes an application configuration file, and the performing application configuration change on the edge device according to the function change information so that the edge device has a target function application installed therein includes:

if the control instruction is an installation instruction, performing application installation operation based on the application configuration file, and installing a to-be-installed functional application corresponding to the installation instruction so as to enable the edge device to be installed with a target functional application; the target function application comprises the function application to be installed;

if the control instruction is a change instruction, uninstalling the functional application to be uninstalled corresponding to the change instruction, performing application installation operation based on the application configuration file, and installing the functional application to be installed corresponding to the change instruction, so that the edge device is provided with a target functional application; the target function application comprises a function application to be installed corresponding to the change instruction.

In one embodiment, before the step of receiving function change information sent by the cloud internet of things platform, the method further includes:

when the edge device initializes the application configuration, acquiring application configuration files and configuration information corresponding to a plurality of initialization function applications; each initialization function application corresponds to a function application model, and an application configuration file and configuration information corresponding to the initialization function application are generated based on the function application model;

and performing application configuration by adopting the application configuration files and the configuration information corresponding to the plurality of initialization function applications, so as to preset the plurality of initialization function applications in the edge device.

A method for remotely deployed based on online configuration of edge device functions, the method comprising:

generating function change information in response to a function change request sent by a client; wherein the function change request is used for changing the target function of the edge device;

sending the function change information to edge equipment to change application configuration of the edge equipment according to the function change information, so that the edge equipment is provided with a target function application; the target function application is used for enabling the edge device to have the target function.

In one embodiment, the function change information includes an application configuration file, and the generating function change information in response to a function change request sent by a client includes:

responding to a function change request sent by a client, acquiring a candidate application configuration file uploaded to a cloud Internet of things platform by the client, and verifying the candidate application configuration file;

and generating function change information based on the verified candidate application configuration file.

In one embodiment, before the step of generating the function change information in response to the function change request sent by the client, the method further includes:

when the edge device initializes the application configuration, acquiring a function configuration request for configuring a plurality of initialization function applications;

generating application configuration files and configuration information corresponding to the plurality of initialization function applications according to a plurality of preset application models; each initialized function application corresponds to a function application model;

and sending the application configuration files and the configuration information corresponding to the plurality of initialization function applications to the edge device so as to preset the plurality of initialization function applications in the edge device.

In one embodiment, the method further comprises:

responding to a version query request sent by a client, and acquiring version query information which is returned by the edge device and aims at the version query request;

and sending the version query information to the client to feed back to a user.

An apparatus for remotely deployed edge device function on-line configuration, the apparatus comprising:

the function change information receiving module is used for receiving function change information sent by the cloud Internet of things platform; the function change information is generated by the cloud Internet of things platform based on a function change request sent by a user; the function change request is used for changing the target function of the edge device;

the application configuration changing module is used for carrying out application configuration change on the edge equipment according to the function changing information so as to enable the edge equipment to be provided with a target function application; the target function application is used for enabling the edge device to have the target function.

A high in the clouds thing networking platform, high in the clouds thing networking platform includes:

the function change request response module is used for responding to a function change request sent by the client and generating function change information; wherein the function change request is used for changing the target function of the edge device;

the function change information sending module is used for sending the function change information to edge equipment so as to carry out application configuration change on the edge equipment according to the function change information and enable the edge equipment to be provided with a target function application; the target function application is used for enabling the edge device to have the target function.

A computer device comprising a memory storing a computer program and a processor implementing the steps of the method for on-line configuration of edge device functionality based on remote deployment as described above when the computer program is executed.

A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for on-line configuration of edge device functionality based on remote deployment, as described above.

According to the method, the device, the computer equipment and the storage medium for the online configuration of the functions of the edge equipment based on the remote deployment, the function change information is generated by the cloud internet of things platform based on the function change request sent by the user through receiving the function change information sent by the cloud internet of things platform, the function change request is used for changing the target function of the edge equipment, and further the application configuration change is carried out on the edge equipment according to the function change information, so that the edge equipment is provided with the target function application which is used for enabling the edge equipment to have the target function, the flexible configuration of the function application of the edge equipment is realized, the application configuration change is carried out on the edge equipment according to the function change information through receiving the function change information sent by the cloud internet of things platform, the function application of the edge equipment can be flexibly redefined and modified, and the edge equipment can meet flexible and variable service change, And (5) newly adding a demand.

Drawings

FIG. 1 is a diagram of an application environment of a method for on-line configuration of edge device functions based on remote deployment according to an embodiment;

FIG. 2 is a schematic flow chart illustrating a method for online configuration of edge device functionality based on remote deployment according to an embodiment;

FIG. 3a is a diagram of a digital power grid architecture in one embodiment;

FIG. 3b is a diagram illustrating an edge device application configuration change, according to an embodiment;

FIG. 4 is a schematic flow chart illustrating another method for remotely-deployed edge device function online configuration according to an embodiment;

FIG. 5 is a diagram illustrating an edge device functionality change flow according to an embodiment;

FIG. 6 is a block diagram of an apparatus for remotely deploying edge device function online according to an embodiment;

fig. 7 is a block diagram illustrating a structure of a cloud internet of things platform according to an embodiment;

FIG. 8 is a diagram of the internal structure of a computer device in one embodiment;

FIG. 9 is an internal block diagram of another computer device in one embodiment.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

The method for configuring the edge device function on line based on remote deployment can be applied to the application environment shown in fig. 1. The edge device 101 may establish a network connection with the cloud internet of things platform 102 and communicate with the cloud internet of things platform 102, and the client may be installed in the terminal 103 and send a request to the cloud internet of things platform 102 through a network to adjust the function configuration of the edge device 101.

Specifically, the terminal 103 may include, but is not limited to, various personal computers, notebook computers, smart phones, and tablet computers; the cloud internet of things platform 102 may be implemented by using an independent server or a server cluster formed by a plurality of servers.

In a specific implementation, the client may generate a function change request in response to a user operation, and send the function change request to the cloud internet of things platform 102. After receiving the function change request, the cloud internet of things platform 102 may generate function change information based on the function change request, and send the function change information to the edge device 101, and then the edge device 101 may change application configuration according to the function change information to install a target function application, so that the edge device 101 has a target function.

In one embodiment, as shown in fig. 2, an online configuration method based on remotely deployed edge device functions is provided, which is described by taking the method as an example applied to the edge device 101 in fig. 1, and includes the following steps:

step 201, receiving function change information sent by a cloud Internet of things platform; the function change information is generated by the cloud Internet of things platform based on a function change request sent by a user; the function change request is used for changing the target function of the edge device;

the target function may be one or more service functions in the power distribution and utilization scenario, such as service functions of protection, control, metering, PMU, monitoring, and the like.

As an example, the edge device may be a digital grid edge computing control apparatus, and the edge computing control apparatus may be configured with a plurality of functions, each of which may be specific to a corresponding application scenario requirement.

In practical application, the cloud internet of things platform can generate function change information based on a function change request sent by a user, and can send the function change information to the edge device, and the edge device can receive the function change information sent by the cloud internet of things platform to change the target function of the edge device.

Specifically, as shown in fig. 3a, the digital power grid may be composed of a cloud, an edge layer, and a framework of a sensing layer, where the cloud may include a cloud internet of things platform, and may perform unified management on an edge computing control device (i.e., an edge device), and a user may modify, redefine, update software, and the like, for a functional application in the edge computing control device by remotely logging in the cloud internet of things platform.

The cloud Internet of things platform can be communicated with the edge computing control device through the edge device management module and sends function change information to change the function of the edge computing control device; the database may store information such as software defined models, containers, and application programs corresponding to the respective functional applications in the edge computing control unit. The cloud Internet of things platform can realize analysis and calculation, state monitoring and value mining of big data, and support the application of electric network services such as management, production, service and the like.

The perception layer can complete digital acquisition of physical states of a digital power grid by accessing various enhanced sensing control devices, and comprises electric sensing, online monitoring, electric energy metering, reactive compensation, environment monitoring, partial discharge monitoring, charging piles, intelligent circuit breakers and the like.

The edge layer can be configured with an edge computing control device (i.e. an edge device), which can adopt a hardware modularization and a software APP design mode, including a hardware layer, an operating system layer and an application layer. Based on the high-performance multi-core architecture chip special for electric power, a hardware layer can be accessed to sensing equipment of a sensing layer, supports the access of protection, control, metering, PMU and monitoring services under a typical matched electric field scene, and completes data aggregation, local analysis and processing; the operating system can comprise a peripheral driver, a system kernel, a file system, a security container, a message bus and the like, wherein the security container can be used for supporting service application, providing a standardized and isolated operating environment for a service application program, and enabling various services to be operated in the container, such as a plurality of services of monitoring, controlling, protecting, metering, PMU and the like; the application layer can run various service function applications and simultaneously run the edge side device management module, and the edge computing control device can interact with the cloud Internet of things platform through the edge side device management module, so that the function applications of the application layer can be flexibly customized to meet the requirements of new addition, expansion and change of service scenes.

Step 202, changing the application configuration of the edge device according to the function change information so as to enable the edge device to install a target function application; the target function application is used for enabling the edge device to have the target function.

After receiving the function change information, the target function application corresponding to the edge device may be determined according to the function change information, and further, application configuration change may be performed on the edge device according to the function change information, so that the edge device is installed with the target function application, and thus the edge device may have the target function corresponding to the target function application.

Specifically, the edge computing control device (i.e., the edge device) may run a device management program, communicate with the cloud internet of things platform, and then receive function change information sent by the cloud internet of things platform, so as to change the currently running function application of the edge computing control device according to the function change information.

The traditional edge layer equipment which is set for meeting the requirement of a single application scene only in a power distribution and utilization scene has the defects of single equipment function and characteristic and fixation, so that the edge layer equipment is various in types and complex in application, management and maintenance.

And adopt edge calculation controlling means (promptly edge device) in this application, through hardware modularization, the design of software APP ization, can satisfy the demand of different application scenes, it can satisfy all kinds of business requirements to have realized single kind equipment, simplified the application, the management, maintain, and send function change information to edge device through high in the clouds thing networking platform, to newly-increased function demand or modify original function demand, edge device can carry out the application configuration change according to the function change information of receiving, thereby make edge device possess nimble characteristic, the convenience of function change has been promoted.

In the embodiment of the application, by receiving the function change information sent by the cloud internet of things platform, the function change information is generated by the cloud internet of things platform based on a function change request sent by a user, the function change request is used for changing the target function of the edge device, and further, the application configuration change is carried out on the edge device according to the function change information, so that the edge device is provided with the target function application, the target function application is used for enabling the edge device to have the target function, the flexible configuration of the function application of the edge device is realized, the application configuration change is carried out on the edge device according to the function change information by receiving the function change information sent by the cloud internet of things platform, the function application of the edge device can be flexibly redefined and modified, and the edge device can meet flexible and changeable service change and newly-added requirements.

In one embodiment, the function change information may include a control instruction, and the performing application configuration change on the edge device according to the function change information to enable the edge device to install a target function application may include:

if the control instruction is an unloading instruction, unloading the functional application to be unloaded corresponding to the unloading instruction so as to enable the edge device to be provided with the target functional application; the target function application comprises a function application except the function application to be uninstalled.

After the function change information is received, since the function change information may include the control instruction, when the control instruction is the uninstall instruction, the to-be-uninstalled function application corresponding to the uninstall instruction may be determined according to the function change information, and then the to-be-uninstalled function application in the edge device may be uninstalled.

In an optional embodiment, when the control instruction in the function change information is an uninstall instruction, that is, a corresponding uninstall operation is executed, the to-be-uninstalled function application may be determined according to the function change information, and then an uninstall command provided by the operating system is called to uninstall the to-be-uninstalled function application, so that the to-be-uninstalled function application is removed from the originally installed function application of the edge device.

According to the embodiment, if the control instruction is the uninstalling instruction, the functional application to be uninstalled corresponding to the uninstalling instruction is uninstalled, so that the edge device is provided with the target functional application, the target functional application comprises the functional applications except the functional application to be uninstalled, and the functional application of the edge device can be flexibly configured, so that the edge device can meet flexible and variable service change and new increase requirements.

In an embodiment, the function change information may further include an application configuration file, and the performing application configuration change on the edge device according to the function change information so that the edge device has a target function application installed therein may include the following steps:

if the control instruction is an installation instruction, performing application installation operation based on the application configuration file, and installing a to-be-installed functional application corresponding to the installation instruction so as to enable the edge device to be installed with a target functional application; the target function application comprises the function application to be installed;

as an example, the application configuration file may be an image file of the functional application, and the edge device may receive the image file and store the image file in a local file system, so as to perform a change operation on the currently running functional application.

After the function change information is received, since the function change information may further include an application configuration file, when the control instruction is an installation instruction, the to-be-installed function application corresponding to the installation instruction may be determined according to the function change information, and then the to-be-installed function application may be installed in the edge device based on the application configuration file.

In an optional embodiment, when the control instruction in the function change information is an installation instruction, corresponding installation operation is executed, the function application to be installed may be determined according to the function change information, and then a container installation command provided by the operating system is called to install the function application to be installed, so as to add a new function application to be installed in the function applications originally installed in the edge device.

If the control instruction is a change instruction, uninstalling the functional application to be uninstalled corresponding to the change instruction, performing application installation operation based on the application configuration file, and installing the functional application to be installed corresponding to the change instruction, so that the edge device is provided with a target functional application; the target function application comprises a function application to be installed corresponding to the change instruction.

In practical application, when the control instruction is a change instruction, the to-be-uninstalled functional application corresponding to the change instruction may be determined according to the function change information, then the to-be-uninstalled functional application may be uninstalled first, and then the to-be-installed functional application may be reinstalled based on the application configuration file in the function change information.

In an optional embodiment, when the control instruction in the function change information is a change instruction, the corresponding change operation is executed, the function application corresponding to the change instruction may be determined according to the function change information, and then a new function application may be installed after the original function application is uninstalled, so as to update or modify the originally installed function application of the edge device, and the function application may be restarted by using an application restart command after the function application is changed.

For example, as shown in fig. 3B, the cloud internet-of-things platform may issue a command (i.e., a control instruction in the function change information) to perform device definition update on the edge device, and the edge device may store the received image file in the local file system, and then may perform change operation on the currently running function application in the edge device based on the edge-side device management module in the application layer, such as original application uninstallation, newly added application installation, related application restart, and the like, and further may complete device definition update of the edge device after the function application is changed, that is, the edge computing control device (i.e., the edge device) is updated from "device a" to "device B", where a service function of "device a" may be different from a service function of "device B", such as "device a" may have service functions of protection, control, PMU, and "device B" may have a control function of controlling the edge device B " The service functions of metering, monitoring and the like are not limited in this application; or the service function of the "device B" may be a service function in which the service function of the "device a" is updated.

According to the embodiment, if the control instruction is the installation instruction, application installation operation is carried out based on the application configuration file, the to-be-installed functional application corresponding to the installation instruction is installed, so that the edge device is provided with the target functional application, the target functional application comprises the to-be-installed functional application, if the control instruction is the change instruction, the to-be-uninstalled functional application corresponding to the change instruction is uninstalled, application installation operation is carried out based on the application configuration file, the to-be-installed functional application corresponding to the change instruction is installed, so that the edge device is provided with the target functional application, the target functional application comprises the to-be-installed functional application corresponding to the change instruction, the functional application of the edge device can be flexibly configured, and the edge device can meet flexible and changeable service change and new increase requirements.

In an embodiment, before the step of receiving the function change information sent by the cloud internet of things platform, the method may include the following steps:

when the edge device initializes the application configuration, acquiring application configuration files and configuration information corresponding to a plurality of initialization function applications; each initialization function application corresponds to a function application model, and an application configuration file and configuration information corresponding to the initialization function application are generated based on the function application model;

in practical application, initialization application configuration can be performed based on application scenarios and requirements of the edge device, a corresponding function application model can be preset for each initialization function application, an application configuration file and configuration information corresponding to the initialization function application can be generated through the function application model, and further, when the application configuration is initialized, the application configuration file and configuration information corresponding to each of a plurality of initialization function applications can be acquired so as to configure the initialization function application for the edge device.

And performing application configuration by adopting the application configuration files and the configuration information corresponding to the plurality of initialization function applications, so as to preset the plurality of initialization function applications in the edge device.

After obtaining the application configuration file and configuration information corresponding to each of the plurality of initialization function applications, the edge device may preset the plurality of initialization function applications by using the obtained application configuration file and configuration information.

For example, compared with the conventional edge layer device, the edge computing control device (i.e. the edge device) can only configure specific parameters in the field, and after the edge computing control device is installed in the field, according to different application scenes and requirements in the field, the user can describe the definition of the edge computing control device, such as a combination of services (i.e. multiple initialization function applications) that can be described as station terminals, feeder terminals, station terminals, metering terminals and so on, by adopting a uniform definition description language, and providing a visual definition description configuration tool, further, according to the definition description of the edge computing control device, a preset function application model can be adopted to generate a corresponding image file (namely an application configuration file) and configuration information, for the requirement of the newly added function, the corresponding mirror image file can be added after the application function is developed.

According to the embodiment, when the edge device initializes the application configuration, the application configuration files and the configuration information corresponding to the plurality of initialization function applications are obtained, each initialization function application corresponds to one function application model, the application configuration files and the configuration information corresponding to the initialization function applications are generated based on the function application models, and then the application configuration files and the configuration information corresponding to the plurality of initialization function applications are adopted for application configuration, so that the plurality of initialization function applications are preset in the edge device, and therefore the edge device can meet flexible and variable service change and new increase requirements.

In an embodiment, as shown in fig. 4, an online configuration method for edge device functions based on remote deployment is provided, which is described by taking the method as an example applied to the cloud internet of things platform 102 in fig. 1, and includes the following steps:

step 401, responding to a function change request sent by a client, and generating function change information; wherein the function change request is used for changing the target function of the edge device;

in specific implementation, the client can generate a function change request based on user operation, and can send the function change request to the cloud internet of things platform, and the cloud internet of things platform can respond to the received function change request to generate function change information.

Step 402, sending the function change information to an edge device, so as to change application configuration of the edge device according to the function change information, and enable the edge device to be provided with a target function application; the target function application is used for enabling the edge device to have the target function.

After the function change information is generated, the cloud internet of things platform can send the function change information to the edge device, and further can determine the target function application corresponding to the edge device according to the function change information, so that the edge device is subjected to application configuration change according to the function change information, the target function application is installed on the edge device, and the edge device can have the target function corresponding to the target function application.

In the embodiment of the application, function change information is generated by responding to a function change request sent by a client, the function change request is used for changing the target function of the edge device, and then the function change information is sent to the edge device, so that application configuration change is carried out on the edge device according to the function change information, the edge device is provided with a target function application, the target function application is used for enabling the edge device to have the target function, flexible configuration of the function application of the edge device is achieved, the function change information is sent through a cloud Internet of things platform, application configuration change is carried out on the edge device according to the function change information, the function application of the edge device can be flexibly redefined and modified, and the edge device can meet flexible and changeable service change and new increase requirements.

In one embodiment, the function change information may include an application configuration file, and the generating the function change information in response to a function change request sent by a client may include:

responding to a function change request sent by a client, acquiring a candidate application configuration file uploaded to a cloud Internet of things platform by the client, and verifying the candidate application configuration file;

in practical application, a user can upload a candidate application configuration file for performing application configuration change on the edge device to the cloud internet of things platform, and then respond to a function change request sent by the client, and the cloud internet of things platform can acquire the uploaded candidate application configuration file and verify the candidate application configuration file.

And generating function change information based on the verified candidate application configuration file.

In a specific implementation, since the function change information may include an application configuration file, the function change information may be generated based on a verified candidate application configuration file, for example, for a function application to be installed or updated, a user may upload a related image file (i.e., a candidate application configuration file) to a cloud internet of things platform, and may issue an installation command and an image file after the file is approved to change the application configuration of the edge device.

In an example, as shown in fig. 5, the cloud internet of things platform may communicate with the user and the edge computing control device (i.e., the edge device) through the edge device management module, may receive a remote login request of the user, may also receive an image file uploaded by the user and store the image file in the database, and then may audit the uploaded image file, so that the cloud internet of things platform may issue an update command and the image file after audit (i.e., the function change information) to the edge device.

According to the embodiment, the function change request sent by the client is responded, the candidate application configuration file uploaded to the cloud Internet of things platform by the client is obtained, the candidate application configuration file is verified, the function change information is generated based on the verified candidate application configuration file, the function application of the edge device can be flexibly configured based on the application configuration file uploaded by the user, and the function application of the edge device is flexibly redefined and modified.

In one embodiment, before the step of generating the function change information in response to the function change request sent by the client, the following steps may be included:

when the edge device initializes the application configuration, acquiring a function configuration request for configuring a plurality of initialization function applications;

generating application configuration files and configuration information corresponding to the plurality of initialization function applications according to a plurality of preset application models; each initialized function application corresponds to a function application model;

and sending the application configuration files and the configuration information corresponding to the plurality of initialization function applications to the edge device so as to preset the plurality of initialization function applications in the edge device.

In an example, function application models for a plurality of conventional application scenarios of the edge device may be preset, and different function application models are used to configure a container and function applications of the edge device, so that the edge device has different service function characteristics, and thus a single edge device may fulfill application requirements such as protection, control, metering, PMU, monitoring service, and the like.

For example, for conventional required applications, corresponding functional application models can be configured, and application configuration files and configuration information are directly issued by the cloud internet of things platform, so that application requirements on conventional station terminals, feeder line terminals, station area terminals, gateways and the like can be met; for newly-increased demand application, the demand can be subjected to function description through a user to develop the newly-increased application, and a corresponding application configuration file is uploaded to the cloud Internet of things platform to be issued through the cloud Internet of things platform to perform application configuration change on the edge device.

According to the embodiment, when the edge device initializes the application configuration, the function configuration request for configuring the plurality of initialization function applications is obtained, then the application configuration files and the configuration information corresponding to the plurality of initialization function applications are generated according to the plurality of preset application models, each initialization function application corresponds to one function application model, and then the application configuration files and the configuration information corresponding to the plurality of initialization function applications are sent to the edge device, so that the plurality of initialization function applications are preset in the edge device, and therefore the edge device can meet flexible and variable service change and new increase requirements.

In one embodiment, the method may further include the steps of:

responding to a version query request sent by a client, and acquiring version query information which is returned by the edge device and aims at the version query request;

and sending the version query information to the client to feed back to a user.

As an example, the version query information may include information such as a version identification of the edge device, a software definition of the functional application, and the like.

In practical application, the client can respond to user operation to generate a version query request, send the version query request to the cloud Internet of things platform, and then through communication between the cloud Internet of things platform and the edge device, the cloud Internet of things platform can receive version query information aiming at the version query request returned by the edge device and send the version query information to the client.

In an example, the cloud internet of things platform can support remote login of a user and import of a functional application model corresponding to the edge device by running the edge device management module, can support management of a device state, an operating system and a container version of the edge device, and can also support online updating, unloading, installing and batch management of a container and an application program.

When the field service of the edge device is changed, the user can modify the function application model of the edge device by logging in the cloud Internet of things platform, and further can complete the change of the functions of the edge device.

By the embodiment, the version query information aiming at the version query request returned by the edge device is obtained in response to the version query request sent by the client, and then the version query information is sent to the client to be fed back to a user, so that the version information of the edge device can be queried, and the version management of the edge device can be carried out through the cloud Internet of things platform.

It should be understood that although the various steps in the flow charts of fig. 1-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-5 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.

In one embodiment, as shown in fig. 6, there is provided a remotely deployed edge device function online configuration apparatus, including:

the function change information receiving module 601 is configured to receive function change information sent by a cloud internet of things platform; the function change information is generated by the cloud Internet of things platform based on a function change request sent by a user; the function change request is used for changing the target function of the edge device;

an application configuration change module 602, configured to perform application configuration change on the edge device according to the function change information, so that the edge device is installed with a target function application; the target function application is used for enabling the edge device to have the target function.

In one embodiment, the function change information includes control instructions, and the application configuration change module 602 includes:

the unloading sub-module is used for unloading the functional application to be unloaded corresponding to the unloading instruction if the control instruction is the unloading instruction, so that the edge device is provided with a target functional application; the target function application comprises a function application except the function application to be uninstalled.

In one embodiment, the function change information further includes an application configuration file, and the application configuration change module 602 includes:

the installation submodule is used for carrying out application installation operation based on the application configuration file if the control instruction is an installation instruction, and installing a to-be-installed functional application corresponding to the installation instruction so as to enable the edge device to be provided with a target functional application; the target function application comprises the function application to be installed;

the change submodule is used for unloading the functional application to be unloaded corresponding to the change instruction if the control instruction is the change instruction, carrying out application installation operation based on the application configuration file, and installing the functional application to be installed corresponding to the change instruction so as to enable the edge device to be provided with a target function application; the target function application comprises a function application to be installed corresponding to the change instruction.

In one embodiment, the apparatus further comprises:

the initialization file acquisition module is used for acquiring application configuration files and configuration information corresponding to a plurality of initialization function applications when the edge device initializes the application configuration; each initialization function application corresponds to a function application model, and an application configuration file and configuration information corresponding to the initialization function application are generated based on the function application model;

and the initialization application configuration module is used for performing application configuration by adopting the application configuration files and the configuration information corresponding to the plurality of initialization function applications so as to preset the plurality of initialization function applications in the edge device.

In the embodiment of the application, by receiving the function change information sent by the cloud internet of things platform, the function change information is generated by the cloud internet of things platform based on a function change request sent by a user, the function change request is used for changing the target function of the edge device, and further, the application configuration change is carried out on the edge device according to the function change information, so that the edge device is provided with the target function application, the target function application is used for enabling the edge device to have the target function, the flexible configuration of the function application of the edge device is realized, the application configuration change is carried out on the edge device according to the function change information by receiving the function change information sent by the cloud internet of things platform, the function application of the edge device can be flexibly redefined and modified, and the edge device can meet flexible and changeable service change and newly-added requirements.

In one embodiment, as shown in fig. 7, there is provided a cloud internet of things platform, including:

a function change request response module 701, configured to generate function change information in response to a function change request sent by a client; wherein the function change request is used for changing the target function of the edge device;

a function change information sending module 702, configured to send the function change information to an edge device, so as to perform application configuration change on the edge device according to the function change information, so that the edge device is installed with a target function application; the target function application is used for enabling the edge device to have the target function.

In one embodiment, the function change information includes an application configuration file, and the function change request response module 701 includes:

the to-be-verified file acquisition submodule is used for responding to a function change request sent by a client, acquiring a candidate application configuration file uploaded to a cloud Internet of things platform by the client and verifying the candidate application configuration file;

and the function change information generation sub-module is used for generating function change information based on the verified candidate application configuration file.

In one embodiment, the apparatus further comprises:

a function configuration request obtaining module, configured to obtain, when an edge device initializes application configuration, a function configuration request for configuring a plurality of initialized function applications;

the configuration file generation module is used for generating application configuration files and configuration information corresponding to the plurality of initialization function applications according to a plurality of preset application models; each initialized function application corresponds to a function application model;

a configuration file sending module, configured to send the application configuration file and the configuration information corresponding to each of the plurality of initialization function applications to the edge device, so as to preset the plurality of initialization function applications in the edge device.

In one embodiment, the apparatus further comprises:

the version query information acquisition module is used for responding to a version query request sent by a client and acquiring the version query information which is returned by the edge device and aims at the version query request;

and the feedback module is used for sending the version query information to the client so as to feed back to a user.

In the embodiment of the application, function change information is generated by responding to a function change request sent by a client, the function change request is used for changing the target function of the edge device, and then the function change information is sent to the edge device, so that application configuration change is carried out on the edge device according to the function change information, the edge device is provided with a target function application, the target function application is used for enabling the edge device to have the target function, flexible configuration of the function application of the edge device is achieved, the function change information is sent through a cloud Internet of things platform, application configuration change is carried out on the edge device according to the function change information, the function application of the edge device can be flexibly redefined and modified, and the edge device can meet flexible and changeable service change and new increase requirements.

For specific definition of the apparatus for configuring edge device functions on line based on remote deployment, refer to the above definition of the method for configuring edge device functions on line based on remote deployment, which is not described herein again. The modules in the remote deployment-based edge device function on-line configuration apparatus can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.

In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the online configuration data based on the remotely deployed edge device functions. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method for remotely deployed edge device function-based online configuration.

In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 9. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the online configuration data based on the remotely deployed edge device functions. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method for remotely deployed edge device function-based online configuration.

Those skilled in the art will appreciate that the configurations shown in fig. 8 or 9 are merely block diagrams of some configurations relevant to the present disclosure, and do not constitute a limitation on the computing devices to which the present disclosure may be applied, and that a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.

In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:

receiving function change information sent by a cloud Internet of things platform; the function change information is generated by the cloud Internet of things platform based on a function change request sent by a user; the function change request is used for changing the target function of the edge device;

carrying out application configuration change on the edge equipment according to the function change information so as to enable the edge equipment to be provided with a target function application; the target function application is used for enabling the edge device to have the target function.

In one embodiment, the processor, when executing the computer program, also implements the steps of the method for configuring edge device functionality on-line based on remote deployment in the other embodiments described above.

In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:

generating function change information in response to a function change request sent by a client; wherein the function change request is used for changing the target function of the edge device;

sending the function change information to edge equipment to change application configuration of the edge equipment according to the function change information, so that the edge equipment is provided with a target function application; the target function application is used for enabling the edge device to have the target function.

In one embodiment, the processor, when executing the computer program, also implements the steps of the method for configuring edge device functionality on-line based on remote deployment in the other embodiments described above.

In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:

receiving function change information sent by a cloud Internet of things platform; the function change information is generated by the cloud Internet of things platform based on a function change request sent by a user; the function change request is used for changing the target function of the edge device;

carrying out application configuration change on the edge equipment according to the function change information so as to enable the edge equipment to be provided with a target function application; the target function application is used for enabling the edge device to have the target function.

In one embodiment, the computer program when executed by the processor further implements the steps of the method for on-line configuration of edge device functionality based on remote deployment in the other embodiments described above.

In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:

generating function change information in response to a function change request sent by a client; wherein the function change request is used for changing the target function of the edge device;

sending the function change information to edge equipment to change application configuration of the edge equipment according to the function change information, so that the edge equipment is provided with a target function application; the target function application is used for enabling the edge device to have the target function.

In one embodiment, the computer program when executed by the processor further implements the steps of the method for on-line configuration of edge device functionality based on remote deployment in the other embodiments described above.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.

The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:一种配置数据更新方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!