CN108769214B - Method and apparatus for controlling edge computing device, and method and apparatus for updating data - Google Patents

Method and apparatus for controlling edge computing device, and method and apparatus for updating data Download PDF

Info

Publication number
CN108769214B
CN108769214B CN201810550649.9A CN201810550649A CN108769214B CN 108769214 B CN108769214 B CN 108769214B CN 201810550649 A CN201810550649 A CN 201810550649A CN 108769214 B CN108769214 B CN 108769214B
Authority
CN
China
Prior art keywords
edge computing
computing device
data
configuration updating
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810550649.9A
Other languages
Chinese (zh)
Other versions
CN108769214A (en
Inventor
黄益超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810550649.9A priority Critical patent/CN108769214B/en
Publication of CN108769214A publication Critical patent/CN108769214A/en
Application granted granted Critical
Publication of CN108769214B publication Critical patent/CN108769214B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/303Terminal profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/75Indicating network or usage conditions on the user display

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a method and a device for controlling edge computing equipment and updating data. One embodiment of the method comprises: displaying a control interface for controlling the edge computing equipment by using the terminal equipment connected through communication; receiving control information sent by the terminal equipment, wherein the control information is input through the control interface; and sending a control instruction to the edge computing equipment according to the control information so as to control the edge computing equipment to update data. The implementation mode realizes the remote control of the edge computing equipment and reduces the labor cost for controlling the edge computing equipment.

Description

Method and apparatus for controlling edge computing device, and method and apparatus for updating data
Technical Field
The embodiment of the application relates to the technical field of Internet of things, in particular to a method and a device for controlling edge computing equipment and updating data.
Background
In a traditional solution of the internet of things, mass data generated by a device side needs to be uploaded to a cloud server side, and the cloud server side executes complex task calculation, tray dropping and other operations. The solution has the problems of incapability of guaranteeing data security, high bandwidth cost, long response delay and the like. In order to solve the problems, the industry provides a solution combining edge computing and the internet of things, and an open platform integrating network, computing, storage and application core capabilities is adopted on one side close to an object or a data source to provide nearest-end service nearby. At this stage, the edge computing devices may be controlled by manual processes, such as compiling and deploying, configuration updating, program upgrading, and the like.
Disclosure of Invention
The embodiment of the application provides a method and a device for controlling an edge computing device and updating data.
In a first aspect, an embodiment of the present application provides a method for controlling an edge computing device, which is applied to a cloud server, and the method includes: displaying a control interface for controlling the edge computing equipment by using the terminal equipment connected through communication; receiving control information sent by the terminal equipment, wherein the control information is input through the control interface; and sending a control instruction to the edge computing equipment according to the control information so as to control the edge computing equipment to update data.
In some embodiments, the above method further comprises: receiving the state information reported by the edge computing equipment; and sending the state information to the terminal equipment for presentation by the terminal equipment.
In some embodiments, the control information includes edge computing device configuration update information, wherein the edge computing device update information includes data for configuration updates; and sending a control instruction to the edge computing device according to the control information to control the edge computing device to update data, including: generating a configuration updating instruction according to the configuration updating information of the edge computing equipment, wherein the configuration updating instruction comprises a local storage address of data for configuration updating; and sending the configuration updating instruction to the edge computing device through a first data channel so that the edge computing device can obtain data for configuration updating through a second data channel according to the configuration updating instruction, wherein the first data channel is built based on an MQTT protocol, and the second data channel is built based on an HTTPS protocol.
In some embodiments, the control information includes at least one of: the method comprises the steps of configuration updating information of the edge computing equipment, control information of the edge computing equipment related equipment, rule control information of the edge computing equipment and function control information of the edge computing equipment.
In a second aspect, an embodiment of the present application provides a method for updating data, which is applied to an edge computing device, and includes: receiving a configuration updating instruction sent by a cloud service end through a first data channel, wherein the first data channel is built based on an MQTT protocol, and the configuration updating instruction comprises a storage address of data for configuration updating at the cloud service end; acquiring the configuration updating data from the cloud service end through a second data channel according to the storage address included in the configuration updating instruction, wherein the second data channel is established based on an HTTPS protocol; and updating the configuration by using the data for updating the configuration.
In some embodiments, the above method further comprises: detecting whether the configuration updating data is abnormal in the operation process; and processing the data for configuration updating by adopting a rollback mechanism in response to the detection of the abnormality of the data for configuration updating in the running process.
In a third aspect, an embodiment of the present application provides an apparatus for controlling an edge computing device, where the apparatus is disposed at a cloud server, and the apparatus includes: a presentation unit configured to present a control interface for controlling the edge computing device through the communicatively connected terminal device; a first receiving unit configured to receive control information transmitted by the terminal device, wherein the control information is input via the control interface; and the control unit is configured to send a control instruction to the edge computing device according to the control information so as to control the edge computing device to update data.
In some embodiments, the above apparatus further comprises: a second receiving unit, configured to receive the status information reported by the edge computing device; and the sending unit is configured to send the state information to the terminal equipment so as to be presented by the terminal equipment.
In some embodiments, the control information includes edge computing device configuration update information, wherein the edge computing device update information includes data for configuration updates; and the control unit is further configured to: generating a configuration updating instruction according to the configuration updating information of the edge computing equipment, wherein the configuration updating instruction comprises a local storage address of data for configuration updating; and sending the configuration updating instruction to the edge computing device through a first data channel so that the edge computing device can obtain data for configuration updating through a second data channel according to the configuration updating instruction, wherein the first data channel is built based on an MQTT protocol, and the second data channel is built based on an HTTPS protocol.
In some embodiments, the control information includes at least one of: the method comprises the steps of configuration updating information of the edge computing equipment, control information of the edge computing equipment related equipment, rule control information of the edge computing equipment and function control information of the edge computing equipment.
In a fourth aspect, an embodiment of the present application provides an apparatus for updating data, where the apparatus is disposed on an edge computing device, and the apparatus includes: the system comprises an instruction receiving unit, a configuration updating unit and a configuration updating unit, wherein the instruction receiving unit is configured to receive a configuration updating instruction sent by a cloud service terminal through a first data channel, the first data channel is built based on an MQTT protocol, and the configuration updating instruction comprises a storage address of data for configuration updating at the cloud service terminal; an obtaining unit, configured to obtain the configuration update data from the cloud server through a second data channel according to a storage address included in the configuration update instruction, where the second data channel is established based on an HTTPS protocol; and an updating unit configured to perform configuration update using the data for configuration update.
In some embodiments, the above apparatus further comprises: a detection unit configured to detect whether the configuration updating data is abnormal in the operation process; and the rollback unit is configured to respond to the detection that the configuration updating data is abnormal in the running process and process the configuration updating data by adopting a rollback mechanism.
In a fifth aspect, an embodiment of the present application provides a server, where the server includes: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method as described in any implementation manner of the first aspect.
In a sixth aspect, an embodiment of the present application provides an edge computing device, including: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method as described in any implementation manner of the second aspect.
In a seventh aspect, the present application provides a computer-readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method as described in any implementation manner of the first aspect.
In an eighth aspect, the present application provides a computer-readable medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the method as described in any implementation manner of the second aspect.
According to the method and the device for controlling the edge computing equipment, the control interface for controlling the edge computing equipment is displayed through the terminal equipment in communication connection, then the control information sent by the terminal equipment is received, and finally the control instruction is sent to the edge computing equipment according to the control information so as to control the edge computing equipment to update data, so that the remote control of the edge computing equipment is realized, and the labor cost for controlling the edge computing equipment is reduced.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for controlling an edge computing device according to the present application;
FIG. 3 is a schematic diagram of one application scenario of a method for controlling an edge computing device according to the present application;
FIG. 4 is a flow diagram for one embodiment of a method for updating data, according to the present application;
FIG. 5 is a schematic block diagram of one embodiment of an apparatus for controlling an edge computing device according to the present application;
FIG. 6 is a schematic block diagram illustrating one embodiment of an apparatus for updating data according to the present application;
fig. 7 is a schematic structural diagram of a computer system suitable for implementing a cloud server or an edge computing device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 illustrates an exemplary system architecture 100 for controlling an edge computing device, a method for updating data, or an apparatus for controlling an edge computing device, for updating data, to which embodiments of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include a terminal device 101, a cloud server 102, an edge computing device 103, an edge computing device association device 104, and networks 105, 106, 107. The network 105 is a medium to provide a communication link between the terminal device 101 and the cloud server 102. The network 106 is used to provide a medium for a communication link between the cloud server 102 and the edge computing devices 103. The network 107 is used to provide a medium for a communication link between the edge computing device 103 and the edge computing device association device 104. The networks 105, 106, 107 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The administrator may use the terminal apparatus 101 to interact with the cloud server 102 through the network 105 to transmit management information. Various communication client applications, such as a web browser application, a shopping application, a search application, an instant messaging tool, a mailbox client, social platform software, etc., may be installed on the terminal device 101.
The cloud server 102 may interact with the edge computing devices 103 via the network 105 to receive or send information and the like.
The edge computing device 103 may interact with the edge computing device association device 104 over the network 107 to receive or transmit information or the like.
The terminal apparatus 101 may be hardware or software. When the terminal device 101 is hardware, it may be various electronic devices having a display screen and supporting web browsing, including but not limited to a smart phone, a tablet computer, a laptop computer, a desktop computer, and the like. When the terminal apparatus 101 is software, it can be installed in the electronic apparatuses listed above. It may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The cloud server 102 may be a server that provides various services, for example, a backend server that provides support for a management interface displayed by the terminal device 101, and the backend server may receive management information input by a manager through the interface displayed by the terminal device 101. For another example, a background server that issues control instructions to the edge computing device 103 and processes information uploaded by the edge computing device 103.
The edge computing device 103 may refer to a device that provides various services for the edge computing device association device 104, for example, an electronic device that performs computation, analysis processing, storage, and the like on information uploaded by the edge computing device association device 104.
The edge computing device association device 104 may refer to a networking device connected to the edge computing device 103, and various sensors may be installed on the edge computing device association device 104 and transmit data measured by the sensors to the edge computing device 103. Edge computing device association devices 104 include, but are not limited to, cameras, smart televisions, smart speakers, smart lights, smart sockets, and the like.
It should be noted that the method for controlling the edge computing device provided in the embodiment of the present application is generally performed by the cloud server 102, and accordingly, the apparatus for controlling the edge computing device is generally disposed in the cloud server 102. The method for updating data provided by the embodiment of the present application is generally performed by the edge computing device 103, and accordingly, the apparatus for updating data is generally disposed in the edge computing device 103.
It should be understood that the terminal devices, cloud servers, edge computing devices, edge computing device association devices, and networks in fig. 1 are merely illustrative. There may be any number of terminal devices, cloud servers, edge computing devices, edge computing device association devices, and networks, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for controlling an edge computing device in accordance with the present application is shown. The method for controlling the edge computing device can be applied to a cloud server (such as the cloud server 102 shown in fig. 1), and comprises the following steps:
step 201, a control interface for controlling the edge computing device is displayed through the terminal device connected with the communication.
In this embodiment, an execution subject (e.g., the cloud server 102 shown in fig. 1) of the method for controlling the edge computing device may expose a control interface for controlling the edge computing device through a communication-connected terminal device (e.g., the terminal device 101 shown in fig. 1). As an example, a user may view a control interface for controlling an edge computing device through a browser application installed by the terminal device. As an example, the control interface described above may display various information related to the edge computing device, such as configuration information, rule information, function information of the edge computing device, and information of the connected edge computing device associated device. By way of example, the control interface may be in the form of a web page. At this time, the execution body may transmit the control interface in the form of a web page to the terminal device. And the display is automatically displayed by the terminal equipment, and the display command sent by the main body can also be executed so as to control the terminal equipment to display. It is understood that the control interface may be configured as one interface or may be configured as a plurality of interfaces. For example, when the displayed content is large, a plurality of interfaces may be set, and in this case, the user may enter another interface by clicking a button on the currently displayed interface. It should be noted that the specific display form of the information on the control interface may be set according to actual needs, and is not limited herein.
In practice, the user may refer to a manager having authority to control the edge computing device, for example, the executing entity may present an authority verification interface to the user through the terminal device before step 201, where the authority verification interface may be used to collect authentication information (e.g., a user name, a password, etc.) of the user. And then, the execution subject can verify the authentication information collected by the right verification interface so as to judge whether the user has the right to control the edge computing equipment.
Step 202, receiving control information sent by the terminal equipment.
In this embodiment, the execution main body may receive control information sent by the terminal device. Wherein the control information is input via the control interface. In practice, the user may input control information through a control interface displayed by the terminal device. The control information may be control information for an edge computing device. For example, updates to configuration data, programs, rules, etc. on the edge computing device are controlled, such as updates to control information forwarding rules. The control information may also be control information for an edge computing device associated device (e.g., the edge computing device associated device 104 shown in fig. 1), for example, control access, deletion, and the like of the edge computing device associated device.
Generally, one edge computing device establishes communication connection with a plurality of edge computing device associated devices, and performs processing such as calculation, analysis processing, storage and the like on information uploaded by the plurality of edge computing device associated devices. Through the control interface displayed by the browser of the terminal device, the user can view information of a plurality of edge computing device associated devices connected to each edge computing device, for example, device names, descriptions, attributes, and the like of the respective edge computing device associated devices.
In some optional implementations of this embodiment, the control information may include at least one of: the method comprises the steps of configuration updating information of the edge computing equipment, control information of the edge computing equipment related equipment, rule control information of the edge computing equipment and function control information of the edge computing equipment.
The edge computing device configuration update information may refer to information for updating the edge computing device configuration, and the edge computing device configuration update information may include data for configuration update. In practice, when a user wants to update some configurations or programs on the edge computing device, the configurations or programs to be updated may be determined in the control interface displayed on the terminal device, and data for configuration update, such as configuration files, packages, and the like, may be uploaded.
The above-mentioned edge computing device associated device control information may refer to information for controlling the edge computing device associated device. In practice, when a user wants to control (e.g., control disconnection of) a certain edge computing device associated device communicatively connected to the edge computing device, the edge computing device associated device may be determined in a control interface displayed on the terminal device and control information for the edge computing device associated device may be input.
The edge computing device rule control information may refer to information for controlling a rule executed on the edge computing device, for example, modification information for the rule executed on the edge computing device.
The above-mentioned edge computing device function control information may refer to information for controlling a computing function that performs a computation on the edge computing device, for example, modification information of the computing function that performs a computation on the edge computing device.
And step 203, sending a control instruction to the edge computing device according to the control information so as to control the edge computing device to update data.
In this embodiment, the execution body may send a control instruction to the edge computing device according to the control information received in step 202, so as to control the edge computing device to perform data updating. For example, when the control information is information for controlling update of configuration data on the edge computing device, the execution main body may send a control instruction for configuration update to the edge computing device according to the control information, so as to control the edge computing device to perform configuration data update.
In some optional implementations of this embodiment, the control information may include edge computing device configuration update information, where the edge computing device update information may include data for configuration update. The step 203 may be specifically performed by the following steps:
first, a configuration update instruction is generated according to the configuration update information of the edge computing device.
Here, the execution subject may generate the configuration update instruction according to the edge computing device configuration update information. The configuration update command may include a local storage address of the configuration update data.
And then, sending a configuration updating instruction to the edge computing equipment through the first data channel so that the edge computing equipment can acquire data for configuration updating through the second data channel according to the configuration updating instruction.
Here, the execution body may send a configuration update instruction to the edge computing device through a first data channel. After receiving the configuration update instruction, the edge computing device may actively pull the configuration update data from the execution main body through the second data channel according to the storage address included in the configuration update instruction, and update the configuration by using the configuration update data. The first data channel may be constructed based on an MQTT (Message Queuing telemetry transport) Protocol, and the second data channel may be constructed based on an https (hypertext Transfer Protocol over Secure Socket layer) Protocol. MQTT is an instant messaging protocol, has the characteristics of small transmission, low overhead, minimized protocol exchange and the like, and can reduce network flow. In practice, MQTT can also be merged with SSL (Secure Sockets Layer)/TLS (Transport Layer Security) encryption, so as to ensure the Security of information transmission. HTTPS is an HTTP (HyperText Transfer Protocol) channel that targets security, and is simply a secure version of HTTP, and can ensure the security of information transmission. In contrast, a data channel established based on HTTPS is more suitable for pulling large data, but the establishment cost is higher.
In the implementation mode, the configuration updating instruction is sent through the first data channel, and the configuration updating data is pulled through the second data channel, so that different transmission protocols can be adopted according to different data types, and the network overhead is reduced.
In some optional implementations of this embodiment, the method for controlling an edge computing device may further include the following steps not shown in fig. 2:
and step 204, receiving the state information reported by the edge computing equipment.
Here, the execution body may receive, in real time, the status information reported by the edge computing device. The state information may be used to characterize the state of the edge computing device including, but not limited to, online state, offline state, data update state, and the like.
Step 205, sending the state information to the terminal device for the terminal device to present.
Here, the executing entity may send the status information received in step 204 to the terminal device for the terminal device to present. Through the implementation mode, the user can monitor the state of the edge computing equipment remotely and in real time through the terminal equipment, so that the monitoring of the edge computing equipment by the user is more convenient.
With continued reference to FIG. 3, FIG. 3 is a schematic diagram of an application scenario for a method for controlling an edge computing device according to the present embodiment. In the application scenario of fig. 3, a user first initiates a control interface browse request for controlling the edge computing device 303 through the browser of the terminal device 301. After receiving the control interface browsing request, the cloud server 302 may display a control interface for controlling the edge computing device 303 through the terminal device 301. Then, the user may input control information on the control interface, and then the cloud server 302 may receive the control information sent by the terminal device 301. Finally, the cloud server 302 may send a control instruction to the edge computing device 303 according to the control information, so as to control the edge computing device 303 to perform data update.
The method for controlling the edge computing device provided by the above embodiment of the application realizes remote control of the edge computing device, and reduces labor cost for controlling the edge computing device.
With further reference to FIG. 4, a flow 400 of one embodiment of a method for updating data is shown. The process 400 of the method for updating data, which may be applied to an edge computing device, includes the steps of:
step 401, receiving a configuration update instruction sent by a cloud server through a first data channel.
In this embodiment, an execution subject (e.g., the edge computing device 103 shown in fig. 1) of the method for updating data may receive a configuration update instruction sent by a cloud server (e.g., the cloud server 102 shown in fig. 1) through a first data channel. The configuration updating instruction comprises a storage address of the data for configuration updating at the cloud server. The first data channel can be constructed based on MQTT protocol.
And 402, acquiring data for configuration updating from the cloud server through a second data channel according to the storage address included in the configuration updating instruction.
In this embodiment, the execution main body may obtain the data for configuration update from the cloud server through the second data channel according to the storage address included in the configuration update instruction. The second data channel may be built based on the HTTPS protocol.
In step 403, the configuration update is performed using the configuration update data.
In this embodiment, the execution agent may perform configuration update using the data for configuration update acquired in step 402.
In some optional implementations of this embodiment, the method for updating data may further include the following steps not shown in fig. 4:
step 404, detecting whether the configuration updating data is abnormal in the operation process.
Here, the execution main body may detect whether an abnormality occurs in the configuration update data during operation in real time. For example, after performing configuration update according to the configuration update data, it is detected that information processing cannot be performed or an error prompt occurs during the information processing, and at this time, it may be determined whether or not an abnormality occurs in the data for detecting configuration update during the operation.
Step 405, in response to detecting that the configuration updating data is abnormal in the operation process, processing the configuration updating data by using a rollback mechanism.
Here, in response to detecting that the configuration update data is abnormal during the operation, the execution main body may process the configuration update data by using a rollback mechanism. Here, Rollback (Rollback) refers to an action of a program or data processing error to restore the program or data to the last correct state. The implementation mode ensures the normal operation of the edge computing equipment when the configuration updating of the edge computing equipment is abnormal.
The method for updating data provided by the above embodiment of the present application realizes automatic update of configuration data of an edge computing device. In addition, the configuration updating instruction is received through the first data channel, and the data for configuration updating is pulled through the second data channel, so that different transmission protocols are adopted according to different data types, and the network overhead is reduced.
With further reference to fig. 5, as an implementation of the method shown in fig. 2, the present application provides an embodiment of an apparatus for controlling an edge computing device, where the apparatus is disposed at a cloud server, and the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be applied to various electronic devices.
As shown in fig. 5, the apparatus 500 for controlling an edge computing device of the present embodiment includes: a presentation unit 501, a first receiving unit 502 and a control unit 503. Wherein the presentation unit 501 is configured to present a control interface for controlling the edge computing device through the communicatively connected terminal device; the first receiving unit 502 is configured to receive control information transmitted by the terminal device, wherein the control information is input via the control interface; the control unit 503 is configured to send a control instruction to the edge computing device according to the control information to control the edge computing device to perform data updating.
In this embodiment, specific processing of the presentation unit 501, the first receiving unit 502, and the control unit 503 of the apparatus 500 for controlling an edge computing device and technical effects brought by the processing can refer to the related descriptions of step 201, step 202, and step 203 in the corresponding embodiment of fig. 2, which are not described herein again.
In some optional implementations of this embodiment, the apparatus 500 may further include: a second receiving unit (not shown in the figure), configured to receive the status information reported by the edge computing device; and a sending unit (not shown in the figure) configured to send the status information to the terminal device for presentation by the terminal device.
In some optional implementations of this embodiment, the control information includes edge computing device configuration update information, where the edge computing device update information includes data for configuration update; and the control unit 503 is further configured to: generating a configuration updating instruction according to the configuration updating information of the edge computing equipment, wherein the configuration updating instruction comprises a local storage address of data for configuration updating; and sending the configuration updating instruction to the edge computing device through a first data channel so that the edge computing device can obtain data for configuration updating through a second data channel according to the configuration updating instruction, wherein the first data channel is built based on an MQTT protocol, and the second data channel is built based on an HTTPS protocol.
In some optional implementations of this embodiment, the control information includes at least one of: the method comprises the steps of configuration updating information of the edge computing equipment, control information of the edge computing equipment related equipment, rule control information of the edge computing equipment and function control information of the edge computing equipment.
With further reference to fig. 6, as an implementation of the method shown in fig. 4, the present application provides an embodiment of an apparatus for updating data, the apparatus is disposed on an edge computing device, the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 4, and the apparatus can be applied to various electronic devices.
As shown in fig. 6, the apparatus 600 for updating data of the present embodiment includes: an instruction receiving unit 601, an acquisition unit 602, and an update unit 603. The instruction receiving unit 601 is configured to receive a configuration updating instruction sent by a cloud server through a first data channel, where the first data channel is built based on an MQTT protocol, and the configuration updating instruction includes a storage address of data for configuration updating at the cloud server; the obtaining unit 602 is configured to obtain the data for configuration update from the cloud server through a second data channel according to the storage address included in the configuration update instruction, where the second data channel is established based on an HTTPS protocol; the updating unit 603 is configured to perform configuration update using the data for configuration update described above.
In this embodiment, specific processes of the instruction receiving unit 601, the obtaining unit 602, and the updating unit 603 of the apparatus 600 for updating data and technical effects thereof may refer to the related descriptions of step 402, and step 403 in the corresponding embodiment of fig. 4, which are not described herein again.
In some optional implementations of this embodiment, the apparatus further includes: a detecting unit (not shown in the figure) configured to detect whether the configuration updating data is abnormal during the operation process; and a rollback unit (not shown in the figure) configured to, in response to detecting that the configuration updating data is abnormal in the operation process, process the configuration updating data by using a rollback mechanism.
Referring now to fig. 7, shown is a schematic block diagram of a computer system 700 suitable for use in implementing a cloud server or edge computing device of an embodiment of the present application. The cloud server or edge computing device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU)701, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage section 706 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the system 700 are also stored. The CPU 701, the ROM702, and the RAM 703 are connected to each other via a bus 704. An Input/Output (I/O) interface 705 is also connected to the bus 704.
The following components are connected to the I/O interface 705: a storage portion 706 including a hard disk and the like; and a communication section 707 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 707 performs communication processing via a network such as the internet. A drive 708 is also connected to the I/O interface 705 as needed. A removable medium 709 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 708 as necessary, so that a computer program read out therefrom is mounted into the storage section 706 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 707 and/or installed from the removable medium 709. The computer program, when executed by a Central Processing Unit (CPU)701, performs the above-described functions defined in the method of the present application.
It should be noted that the computer readable medium described herein can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a presentation unit, a first receiving unit, and a control unit. Where the names of the elements do not in some cases constitute a limitation on the elements themselves, for example, a presentation element may also be described as an "element that presents a control interface for controlling an edge computing device through a communicatively connected terminal device.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be present separately and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: displaying a control interface for controlling the edge computing equipment by using the terminal equipment connected through communication; receiving control information sent by the terminal equipment, wherein the control information is input through the control interface; and sending a control instruction to the edge computing equipment according to the control information so as to control the edge computing equipment to update data.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be present separately and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: receiving a configuration updating instruction sent by a cloud service end through a first data channel, wherein the first data channel is built based on an MQTT protocol, and the configuration updating instruction comprises a storage address of data for configuration updating at the cloud service end; acquiring the configuration updating data from the cloud service end through a second data channel according to the storage address included in the configuration updating instruction, wherein the second data channel is established based on an HTTPS protocol; and updating the configuration by using the data for updating the configuration.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (14)

1. A method for controlling an edge computing device is applied to a cloud server and comprises the following steps:
displaying a control interface for controlling edge computing equipment through terminal equipment in communication connection, wherein the edge computing equipment establishes communication connection with a plurality of edge computing equipment associated equipment, and the edge computing equipment is used for processing information uploaded by the plurality of edge computing equipment associated equipment;
receiving control information sent by the terminal equipment, wherein the control information is input through the control interface, the control information comprises edge computing equipment configuration updating information, and the edge computing equipment updating information comprises data for configuration updating;
sending a control instruction to the edge computing device according to the control information to control the edge computing device to update data, including: generating a configuration updating instruction according to the configuration updating information of the edge computing equipment, wherein the configuration updating instruction comprises a local storage address of data for configuration updating; and sending the configuration updating instruction to the edge computing equipment through a first data channel so that the edge computing equipment can obtain data for configuration updating through a second data channel according to the configuration updating instruction, wherein the first data channel is built based on an MQTT protocol, and the second data channel is built based on an HTTPS protocol.
2. The method of claim 1, wherein the method further comprises:
receiving state information reported by the edge computing equipment;
and sending the state information to the terminal equipment for presentation by the terminal equipment.
3. The method of claim 1, wherein the control information comprises at least one of:
the method comprises the steps of configuration updating information of the edge computing equipment, control information of the edge computing equipment related equipment, rule control information of the edge computing equipment and function control information of the edge computing equipment.
4. A method for updating data, applied to an edge computing device, wherein the edge computing device establishes a communication connection with a plurality of edge computing device associated devices, and the edge computing device is used for processing information uploaded by the plurality of edge computing device associated devices, and comprises the following steps:
receiving a configuration updating instruction sent by a cloud server through a first data channel, wherein the first data channel is built based on an MQTT protocol, and the configuration updating instruction comprises a storage address of data for configuration updating at the cloud server;
acquiring the data for configuration updating from the cloud server through a second data channel according to the storage address included in the configuration updating instruction, wherein the second data channel is established based on an HTTPS protocol;
and performing configuration update by using the data for configuration update.
5. The method of claim 4, wherein the method further comprises:
detecting whether the configuration updating data is abnormal in the operation process;
and processing the data for configuration updating by adopting a rollback mechanism in response to the detection of the abnormality of the data for configuration updating in the running process.
6. An apparatus for controlling an edge computing device, disposed at a cloud server, includes:
the display unit is configured to display a control interface for controlling the edge computing device through the terminal device connected in communication, wherein the edge computing device establishes communication connection with a plurality of edge computing device associated devices, and the edge computing device is used for processing information uploaded by the edge computing device associated devices;
a first receiving unit configured to receive control information transmitted by the terminal device, wherein the control information is input via the control interface, the control information includes edge computing device configuration update information, and the edge computing device update information includes data for configuration update;
a control unit configured to send a control instruction to the edge computing device according to the control information to control the edge computing device to perform data update, the control unit being further configured to: generating a configuration updating instruction according to the configuration updating information of the edge computing equipment, wherein the configuration updating instruction comprises a local storage address of data for configuration updating; and sending the configuration updating instruction to the edge computing equipment through a first data channel so that the edge computing equipment can obtain data for configuration updating through a second data channel according to the configuration updating instruction, wherein the first data channel is built based on an MQTT protocol, and the second data channel is built based on an HTTPS protocol.
7. The apparatus of claim 6, wherein the apparatus further comprises:
a second receiving unit configured to receive the status information reported by the edge computing device;
a sending unit configured to send the status information to the terminal device for presentation by the terminal device.
8. The apparatus of claim 6, wherein the control information comprises at least one of:
the method comprises the steps of configuration updating information of the edge computing equipment, control information of the edge computing equipment related equipment, rule control information of the edge computing equipment and function control information of the edge computing equipment.
9. An apparatus for updating data, disposed in an edge computing device, where the edge computing device establishes a communication connection with a plurality of edge computing device associated devices, and the edge computing device is configured to process information uploaded by the plurality of edge computing device associated devices, and the apparatus includes:
the command receiving unit is configured to receive a configuration updating command sent by a cloud server through a first data channel, wherein the first data channel is built based on an MQTT protocol, and the configuration updating command comprises a storage address of data for configuration updating at the cloud server;
the obtaining unit is configured to obtain the data for configuration updating from the cloud server through a second data channel according to a storage address included in the configuration updating instruction, wherein the second data channel is established based on an HTTPS protocol;
an updating unit configured to perform configuration update using the data for configuration update.
10. The apparatus of claim 9, wherein the apparatus further comprises:
a detection unit configured to detect whether the configuration updating data is abnormal in an operation process;
and the rollback unit is configured to respond to the detection that the configuration updating data is abnormal in the running process and process the configuration updating data by adopting a rollback mechanism.
11. A server, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-3.
12. An edge computing device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 4-5.
13. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-3.
14. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 4-5.
CN201810550649.9A 2018-05-31 2018-05-31 Method and apparatus for controlling edge computing device, and method and apparatus for updating data Active CN108769214B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810550649.9A CN108769214B (en) 2018-05-31 2018-05-31 Method and apparatus for controlling edge computing device, and method and apparatus for updating data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810550649.9A CN108769214B (en) 2018-05-31 2018-05-31 Method and apparatus for controlling edge computing device, and method and apparatus for updating data

Publications (2)

Publication Number Publication Date
CN108769214A CN108769214A (en) 2018-11-06
CN108769214B true CN108769214B (en) 2020-02-14

Family

ID=64001518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810550649.9A Active CN108769214B (en) 2018-05-31 2018-05-31 Method and apparatus for controlling edge computing device, and method and apparatus for updating data

Country Status (1)

Country Link
CN (1) CN108769214B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109740346B (en) * 2018-12-29 2020-07-14 南方电网科学研究院有限责任公司 Privacy protection method and system based on electric power system edge calculation
CN110445659B (en) * 2019-08-19 2021-07-13 蘑菇物联技术(深圳)有限公司 Method for realizing simple switching between local and cloud
CN114221846B (en) * 2019-08-19 2023-12-05 蘑菇物联技术(深圳)有限公司 Edge computing system based on online configuration and issuing configuration file
CN113132176B (en) * 2019-12-31 2024-02-02 华为云计算技术有限公司 Method for controlling edge node, node and edge computing system
CN111314339B (en) * 2020-02-12 2021-09-10 腾讯科技(深圳)有限公司 Data transmission method and device
CN111866160B (en) * 2020-07-28 2023-09-15 网易(杭州)网络有限公司 Multi-machine control method, device, equipment and storage medium
CN112511660B (en) * 2020-11-12 2023-11-24 北京软通智慧科技有限公司 Management system, method and device of edge terminal equipment and storage medium
CN112543228A (en) * 2020-11-30 2021-03-23 新奥数能科技有限公司 Data transmission method and device, electronic equipment and computer readable medium
CN112653758B (en) * 2020-12-21 2023-04-07 北京百度网讯科技有限公司 Method, device, equipment and medium for updating edge node
CN114024840A (en) * 2021-11-02 2022-02-08 浙江三维万易联科技有限公司 Request transmission method and device, storage medium and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104836848A (en) * 2015-04-14 2015-08-12 闪联信息技术工程中心有限公司 Method for remotely upgrading intelligent household electrical appliances
CN106502180A (en) * 2016-12-05 2017-03-15 广州银变电力设备有限公司 A kind of transformer Intelligent remote monitoring system and method
CN107291516A (en) * 2017-07-12 2017-10-24 珠海格力电器股份有限公司 A kind of firmware upgrade method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917431A (en) * 2010-08-13 2010-12-15 中兴通讯股份有限公司 Method and device for preventing illegal invasion of internal network of intelligent home
CN102413182A (en) * 2011-11-17 2012-04-11 南京天溯自动化控制系统有限公司 Intelligent home device remote monitoring device and method
US10007513B2 (en) * 2015-08-27 2018-06-26 FogHorn Systems, Inc. Edge intelligence platform, and internet of things sensor streams system
US9781246B2 (en) * 2015-08-28 2017-10-03 Qualcomm Incorporated Augmenting reality using a small cell
CN105744008B (en) * 2016-05-11 2019-04-09 百度在线网络技术(北京)有限公司 Smart home platform, method for updating system and device applied to the platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104836848A (en) * 2015-04-14 2015-08-12 闪联信息技术工程中心有限公司 Method for remotely upgrading intelligent household electrical appliances
CN106502180A (en) * 2016-12-05 2017-03-15 广州银变电力设备有限公司 A kind of transformer Intelligent remote monitoring system and method
CN107291516A (en) * 2017-07-12 2017-10-24 珠海格力电器股份有限公司 A kind of firmware upgrade method and system

Also Published As

Publication number Publication date
CN108769214A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
CN108769214B (en) Method and apparatus for controlling edge computing device, and method and apparatus for updating data
KR102158557B1 (en) Method and device for determining response time
US9747093B2 (en) Device driver aggregation in operating system deployment
CN108632101B (en) Method and apparatus for updating configuration object, edge computing device, and medium
CN106302445B (en) Method and apparatus for handling request
CN108833251B (en) Method and apparatus for controlling network interconnection
US11502899B2 (en) Dynamic product installation based on user feedback
CN109743209B (en) Method and device for transmitting information
CN111580833A (en) Application updating method and system, local management agent device and cloud server
CN112363879A (en) Cache server performance test method, device, equipment and medium
CN111092767B (en) Method and device for debugging equipment
CN114840379A (en) Log generation method, device, server and storage medium
CN107315672B (en) Method and device for monitoring server
CN109218338B (en) Information processing system, method and device
CN113763646B (en) Device control method, device, electronic device and computer readable medium
CN113760727A (en) Interface regression testing method and device
CN109271310B (en) Development testing method and device for network function of mobile application program
CN113132447A (en) Reverse proxy method and system
CN113407229A (en) Method and device for generating offline script
CN110011767B (en) Method and apparatus for TCP connection backup
US20170302764A1 (en) Unifying realtime and static data for presenting over a web service
CN108984313B (en) Method and device for processing information and server
US20140128112A1 (en) Converged dialog in hybrid mobile applications
CN113722634A (en) Data processing method and device, electronic equipment and computer readable medium
CN113722206A (en) Data annotation method and device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant