[go: up one dir, main page]

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
configuration update
data
information
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 OR CALCULATING; 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)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

本申请实施例公开了用于控制边缘计算设备、用于更新数据的方法和装置。该方法的一具体实施方式包括:通过通信连接的终端设备展示用于控制边缘计算设备的控制界面;接收所述终端设备发送的控制信息,其中,所述控制信息是经由所述控制界面输入的;根据所述控制信息向所述边缘计算设备发送控制指令,以控制所述边缘计算设备进行数据更新。该实施方式实现了边缘计算设备的远程控制,降低了控制边缘计算设备的人工成本。

Figure 201810550649

The embodiments of the present application disclose methods and apparatuses for controlling edge computing devices and for updating data. A specific implementation of the method includes: displaying a control interface for controlling the edge computing device through a communication-connected terminal device; receiving control information sent by the terminal device, wherein the control information is input via the control interface ; 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. This embodiment realizes the remote control of the edge computing device, and reduces the labor cost of controlling the edge computing device.

Figure 201810550649

Description

用于控制边缘计算设备、用于更新数据的方法和装置Method and apparatus for controlling edge computing device, for updating data

技术领域technical field

本申请实施例涉及物联网技术领域,具体涉及用于控制边缘计算设备、用于更新数据的方法和装置。The embodiments of the present application relate to the technical field of the Internet of Things, and in particular, to a method and apparatus for controlling edge computing devices and for updating data.

背景技术Background technique

传统物联网解决方案中,设备端产生的海量数据需要上传至云服务端,由云服务端执行复杂任务计算、落盘等操作。这样的解决方案,面临着数据安全性无法保障、带宽成本高、响应延时长等问题。为了解决以上问题,工业界提出边缘计算和物联网相结合的解决方案,在靠近物或数据源头的一侧,采用网络、计算、存储、应用核心能力为一体的开放平台,就近提供最近端服务。现阶段,可以通过人工处理的方式对边缘计算设备进行控制,例如,编译部署、配置更新、程序升级等等。In traditional IoT solutions, the massive data generated by the device needs to be uploaded to the cloud server, and the cloud server performs operations such as complex task calculation and placement. Such a solution faces problems such as inability to guarantee data security, high bandwidth costs, and long response delays. In order to solve the above problems, the industry proposes a solution that combines edge computing and the Internet of Things. On the side close to the source of the object or data, an open platform integrating network, computing, storage, and application core capabilities is used to provide the nearest end service. . At this stage, edge computing devices can be controlled by manual processing, such as compiling and deploying, configuration updates, program upgrades, and so on.

发明内容SUMMARY OF THE INVENTION

本申请实施例提出了用于控制边缘计算设备、用于更新数据的方法和装置。The embodiments of the present application propose methods and apparatuses for controlling edge computing devices and for 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. The method includes: displaying a control interface for controlling the edge computing device through a communication-connected terminal device; receiving the above Control information sent by a terminal device, wherein the control information is input via the control interface; a control instruction is sent to the edge computing device according to the control information to control the edge computing device to update data.

在一些实施例中,上述方法还包括:接收上述边缘计算设备上报的状态信息;将上述状态信息发送到上述终端设备,以供上述终端设备呈现。In some embodiments, the above-mentioned method further includes: receiving the status information reported by the above-mentioned edge computing device; and sending the above-mentioned status information to the above-mentioned terminal device for presentation by the above-mentioned terminal device.

在一些实施例中,上述控制信息包括边缘计算设备配置更新信息,其中,上述边缘计算设备更新信息包括配置更新用数据;以及根据上述控制信息向上述边缘计算设备发送控制指令,以控制上述边缘计算设备进行数据更新,包括:根据上述边缘计算设备配置更新信息生成配置更新指令,其中,上述配置更新指令包括配置更新用数据在本地的存储地址;通过第一数据通道向上述边缘计算设备发送上述配置更新指令,以供上述边缘计算设备根据上述配置更新指令通过第二数据通道获取配置更新用数据,其中,上述第一数据通道是基于MQTT协议搭建的,上述第二数据通道是基于HTTPS协议搭建的。In some embodiments, the control information includes edge computing device configuration update information, wherein the edge computing device update information includes configuration update data; and a control instruction is sent to the edge computing device according to the control information to control the edge computing The device performs data update, including: generating a configuration update instruction according to the above-mentioned edge computing device configuration update information, wherein the above-mentioned configuration update instruction includes a local storage address of the data for configuration update; sending the above-mentioned configuration to the above-mentioned edge computing device through a first data channel an update instruction for the edge computing device to obtain configuration update data through a second data channel according to the configuration update instruction, wherein the first data channel is built based on the MQTT protocol, and the second data channel is built based on the HTTPS protocol .

在一些实施例中,上述控制信息包括以下至少一项:边缘计算设备配置更新信息、边缘计算设备关联设备控制信息、边缘计算设备规则控制信息、边缘计算设备函数控制信息。In some embodiments, the above control information includes at least one of the following: edge computing device configuration update information, edge computing device associated device control information, edge computing device rule control information, and edge computing device function control information.

第二方面,本申请实施例提供了一种用于更新数据的方法,应用于边缘计算设备,包括:接收云服务端通过第一数据通道发送的配置更新指令,其中,上述第一数据通道是基于MQTT协议搭建的,上述配置更新指令包括配置更新用数据在上述云服务端的存储地址;根据上述配置更新指令包括的存储地址通过第二数据通道从上述云服务端获取上述配置更新用数据,其中,上述第二数据通道是基于HTTPS协议搭建的;使用上述配置更新用数据进行配置更新。In a second aspect, an embodiment of the present application provides a method for updating data, which is applied to an edge computing device, including: receiving a configuration update instruction sent by a cloud server through a first data channel, where the first data channel is Based on the MQTT protocol, the configuration update instruction includes a storage address of the data for configuration update in the cloud server; the data for configuration update is obtained from the cloud server through the second data channel according to the storage address included in the configuration update instruction, wherein , the above-mentioned second data channel is built based on the HTTPS protocol; the above-mentioned data for configuration update is used for configuration update.

在一些实施例中,上述方法还包括:检测上述配置更新用数据在运行过程中是否出现异常;响应于检测到上述配置更新用数据在运行过程中出现异常,采用回滚机制对上述配置更新用数据进行处理。In some embodiments, the above method further includes: detecting whether the above-mentioned configuration update data is abnormal during the running process; in response to detecting that the above-mentioned configuration update data is abnormal during the running process, adopting a rollback mechanism to update the above-mentioned configuration update data. data is processed.

第三方面,本申请实施例提供了一种用于控制边缘计算设备的装置,设置于云服务端,装置包括:展示单元,被配置成通过通信连接的终端设备展示用于控制边缘计算设备的控制界面;第一接收单元,被配置成接收上述终端设备发送的控制信息,其中,上述控制信息是经由上述控制界面输入的;控制单元,被配置成根据上述控制信息向上述边缘计算设备发送控制指令,以控制上述边缘计算设备进行数据更新。In a third aspect, an embodiment of the present application provides an apparatus for controlling an edge computing device, which is set at a cloud server, and the apparatus includes: a display unit configured to display a device used for controlling the edge computing device through a communication-connected terminal device. a control interface; a first receiving unit configured to receive control information sent by the terminal device, wherein the control information is input via the control interface; a control unit configured to send control information to the edge computing device according to the control information instruction to control the above edge computing device to update data.

在一些实施例中,上述装置还包括:第二接收单元,被配置成接收上述边缘计算设备上报的状态信息;发送单元,被配置成将上述状态信息发送到上述终端设备,以供上述终端设备呈现。In some embodiments, the above-mentioned apparatus further includes: a second receiving unit, configured to receive the status information reported by the above-mentioned edge computing device; and a sending unit, configured to send the above-mentioned status information to the above-mentioned terminal equipment for the above-mentioned terminal equipment. render.

在一些实施例中,上述控制信息包括边缘计算设备配置更新信息,其中,上述边缘计算设备更新信息包括配置更新用数据;以及上述控制单元进一步被配置成:根据上述边缘计算设备配置更新信息生成配置更新指令,其中,上述配置更新指令包括配置更新用数据在本地的存储地址;通过第一数据通道向上述边缘计算设备发送上述配置更新指令,以供上述边缘计算设备根据上述配置更新指令通过第二数据通道获取配置更新用数据,其中,上述第一数据通道是基于MQTT协议搭建的,上述第二数据通道是基于HTTPS协议搭建的。In some embodiments, the control information includes edge computing device configuration update information, wherein the edge computing device update information includes configuration update data; and the control unit is further configured to: generate a configuration according to the edge computing device configuration update information An update instruction, wherein the configuration update instruction includes a local storage address of the data for configuration update; the configuration update instruction is sent to the edge computing device through the first data channel, so that the edge computing device can pass the second configuration update instruction according to the configuration update instruction. The data channel acquires data for configuration update, wherein the first data channel is built based on the MQTT protocol, and the second data channel is built based on the HTTPS protocol.

在一些实施例中,上述控制信息包括以下至少一项:边缘计算设备配置更新信息、边缘计算设备关联设备控制信息、边缘计算设备规则控制信息、边缘计算设备函数控制信息。In some embodiments, the above control information includes at least one of the following: edge computing device configuration update information, edge computing device associated device control information, edge computing device rule control information, and edge computing device function control information.

第四方面,本申请实施例提供了一种用于更新数据的的装置,设置于边缘计算设备,装置包括:指令接收单元,被配置成接收云服务端通过第一数据通道发送的配置更新指令,其中,上述第一数据通道是基于MQTT协议搭建的,上述配置更新指令包括配置更新用数据在上述云服务端的存储地址;获取单元,被配置成根据上述配置更新指令包括的存储地址通过第二数据通道从上述云服务端获取上述配置更新用数据,其中,上述第二数据通道是基于HTTPS协议搭建的;更新单元,被配置成使用上述配置更新用数据进行配置更新。In a fourth aspect, an embodiment of the present application provides an apparatus for updating data, which is set on an edge computing device, and the apparatus includes: an instruction receiving unit configured to receive a configuration update instruction sent by a cloud server through a first data channel , wherein the first data channel is built based on the MQTT protocol, and the configuration update instruction includes the storage address of the data for configuration update in the cloud server; the acquisition unit is configured to pass the second storage address according to the storage address included in the configuration update instruction. The data channel obtains the data for configuration update from the cloud server, wherein the second data channel is built based on the HTTPS protocol; the update unit is configured to use the data for configuration update to perform configuration update.

在一些实施例中,上述装置还包括:检测单元,被配置成检测上述配置更新用数据在运行过程中是否出现异常;回滚单元,被配置成响应于检测到上述配置更新用数据在运行过程中出现异常,采用回滚机制对上述配置更新用数据进行处理。In some embodiments, the above-mentioned apparatus further includes: a detection unit, configured to detect whether the above-mentioned data for configuration update is abnormal during operation; a rollback unit, configured to respond to detecting that the above-mentioned data for configuration update is in the operation process If an exception occurs in the above, the rollback mechanism is used to process the data for the above configuration update.

第五方面,本申请实施例提供了一种服务器,该服务器包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当上述一个或多个程序被上述一个或多个处理器执行时,使得上述一个或多个处理器实现如第一方面中任一实现方式描述的方法。In a fifth aspect, an embodiment of the present application provides a server, the server includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are stored by the one or more programs described above When executed by the processor, the above-mentioned one or more processors are caused to implement the method described in any one of the implementation manners of the first aspect.

第六方面,本申请实施例提供了一种边缘计算设备,该边缘计算设备包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当上述一个或多个程序被上述一个或多个处理器执行时,使得上述一个或多个处理器实现如第二方面中任一实现方式描述的方法。In a sixth aspect, embodiments of the present application provide an edge computing device, the edge computing device comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are When executed by the one or more processors, the above one or more processors are caused to implement the method described in any one of the implementation manners of the second aspect.

第七方面,本申请实施例提供了一种计算机可读介质,其上存储有计算机程序,其中,该计算机程序被处理器执行时实现如第一方面中任一实现方式描述的方法。In a seventh aspect, an embodiment of the present application provides a computer-readable medium on which a computer program is stored, wherein, when the computer program is executed by a processor, the method described in any implementation manner of the first aspect is implemented.

第八方面,本申请实施例提供了一种计算机可读介质,其上存储有计算机程序,其中,该计算机程序被处理器执行时实现如第二方面中任一实现方式描述的方法。In an eighth aspect, an embodiment of the present application provides a computer-readable medium on which a computer program is stored, wherein, when the computer program is executed by a processor, the method described in any implementation manner of the second aspect is implemented.

本申请实施例提供的用于控制边缘计算设备方法和装置,通过通信连接的终端设备展示用于控制边缘计算设备的控制界面,而后接收终端设备发送的控制信息,最后根据控制信息向边缘计算设备发送控制指令,以控制边缘计算设备进行数据更新,从而实现了边缘计算设备的远程控制,降低了控制边缘计算设备的人工成本。The method and device for controlling an edge computing device provided by the embodiments of the present application, the terminal device connected through communication displays a control interface for controlling the edge computing device, then receives the control information sent by the terminal device, and finally reports to the edge computing device according to the control information. Sending control commands to control the edge computing device to update data, thereby realizing the remote control of the edge computing device and reducing the labor cost of controlling the edge computing device.

附图说明Description of drawings

通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

图1是本申请的一个实施例可以应用于其中的示例性系统架构图;FIG. 1 is an exemplary system architecture diagram to which an embodiment of the present application may be applied;

图2是根据本申请的用于控制边缘计算设备的方法的一个实施例的流程图;2 is a flowchart of one embodiment of a method for controlling an edge computing device according to the present application;

图3是根据本申请的用于控制边缘计算设备的方法的一个应用场景的示意图;3 is a schematic diagram of an application scenario of the method for controlling an edge computing device according to the present application;

图4是根据本申请的用于更新数据的方法的一个实施例的流程图;4 is a flowchart of one embodiment of a method for updating data according to the present application;

图5是根据本申请的用于控制边缘计算设备的装置的一个实施例的结构示意图;5 is a schematic structural diagram of an embodiment of an apparatus for controlling an edge computing device according to the present application;

图6是根据本申请的用于更新数据的装置的一个实施例的结构示意图;6 is a schematic structural diagram of an embodiment of an apparatus for updating data according to the present application;

图7是适于用来实现本申请实施例的云服务器或边缘计算设备的计算机系统的结构示意图。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 ways

下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the related invention, but not to limit the invention. In addition, it should be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.

图1示出了可以应用本申请实施例的用于控制边缘计算设备、用于更新数据的方法或用于控制边缘计算设备、用于更新数据的装置的示例性系统架构100。FIG. 1 shows 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, and an apparatus for updating data to which embodiments of the present application may be applied.

如图1所示,系统架构100可以包括终端设备101,云服务器102,边缘计算设备103、边缘计算设备关联设备104和网络105、106、107。网络105用以在终端设备101和云服务器102之间提供通信链路的介质。网络106用以在云服务器102和边缘计算设备103之间提供通信链路的介质。网络107用以在边缘计算设备103和边缘计算设备关联设备104之间提供通信链路的介质。网络105、106、107可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。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 associated device 104 , and networks 105 , 106 , and 107 . The network 105 is a medium for providing a communication link between the terminal device 101 and the cloud server 102 . The network 106 is a medium used to provide a communication link between the cloud server 102 and the edge computing device 103 . The network 107 is a medium used to provide a communication link between the edge computing device 103 and the edge computing device associated device 104 . The networks 105, 106, 107 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.

管理人员可以使用终端设备101通过网络105与云服务器102进行交互,以发送管理信息。终端设备101上可以安装有各种通讯客户端应用,例如网页浏览器应用、购物类应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等。Managers can use the terminal device 101 to interact with the cloud server 102 through the network 105 to send management information. Various communication client applications may be installed on the terminal device 101, such as web browser applications, shopping applications, search applications, instant communication tools, email clients, social platform software, and the like.

云服务器102可以通过网络105和边缘计算设备103进行交互,以接收或发送信息等。The cloud server 102 can interact with the edge computing device 103 through the network 105 to receive or send information and the like.

边缘计算设备103可以通过网络107与边缘计算设备关联设备104进行交互,以接收或发送信息等。The edge computing device 103 may interact with the edge computing device associated device 104 through the network 107 to receive or send information and the like.

终端设备101可以是硬件,也可以是软件。当终端设备101为硬件时,可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑膝上型便携计算机和台式计算机等等。当终端设备101为软件时,可以安装在上述所列举的电子设备中。其可以实现成多个软件或软件模块(例如用来提供分布式服务),也可以实现成单个软件或软件模块。在此不做具体限定。The terminal device 101 may be hardware or software. When the terminal device 101 is hardware, it can be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like. When the terminal device 101 is software, it can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (eg, to provide distributed services), or as a single software or software module. There is no specific limitation here.

云服务器102可以是提供各种服务的服务器,例如,对终端设备101显示的管理界面提供支持的后台服务器,后台服务器可以接收管理人员通过终端设备101显示的界面输入的管理信息。又例如,对边缘计算设备103下发控制指令,以及对边缘计算设备103上传的信息进行处理的后台服务器。The cloud server 102 can be a server that provides various services, for example, a background server that supports the management interface displayed by the terminal device 101 , and the background server can receive management information input by the administrator through the interface displayed by the terminal device 101 . For another example, a backend server that issues control instructions to the edge computing device 103 and processes information uploaded by the edge computing device 103 .

边缘计算设备103可以是指为边缘计算设备关联设备104提供各种服务的设备,例如,对边缘计算设备关联设备104上传的信息进行计算、分析处理、存储等电子设备。The edge computing device 103 may refer to a device that provides various services for the edge computing device associated device 104 , for example, an electronic device that calculates, analyzes, processes, and stores information uploaded by the edge computing device associated device 104 .

边缘计算设备关联设备104可以是指与边缘计算设备103相连的联网设备,边缘计算设备关联设备104上可以安装有各种传感器,并将传感器测量到的数据发送给边缘计算设备103。边缘计算设备关联设备104包括但不限于摄像头、智能电视、智能音箱、智能电灯、智能插座等等等等。The edge computing device associated device 104 may refer to a networked device connected to the edge computing device 103 . Various sensors may be installed on the edge computing device associated device 104 , and the data measured by the sensor may be sent to the edge computing device 103 . Edge computing device-associated devices 104 include, but are not limited to, cameras, smart TVs, smart speakers, smart lights, smart sockets, and the like.

需要说明的是,本申请实施例所提供的用于控制边缘计算设备的方法一般由云服务器102执行,相应地,用于控制边缘计算设备的装置一般设置于云服务器102中。本申请实施例所提供的用于更新数据的方法一般由边缘计算设备103执行,相应地,用于更新数据的装置一般设置于边缘计算设备103中。It should be noted that the method for controlling the edge computing device provided by the embodiments of the present application is generally executed by the cloud server 102 , and accordingly, the apparatus for controlling the edge computing device is generally set in the cloud server 102 . The methods for updating data provided in the embodiments of the present application are generally executed by the edge computing device 103 , and accordingly, the apparatus for updating data is generally set in the edge computing device 103 .

应该理解,图1中的终端设备,云服务器,边缘计算设备、边缘计算设备关联设备和网络仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备,云服务器,边缘计算设备、边缘计算设备关联设备和网络。It should be understood that the terminal device, cloud server, edge computing device, edge computing device-associated device and network in FIG. 1 are merely illustrative. According to implementation needs, there can be any number of terminal devices, cloud servers, edge computing devices, edge computing devices associated devices, and networks.

继续参考图2,示出了根据本申请的用于控制边缘计算设备的方法的一个实施例的流程200。该用于控制边缘计算设备的方法,可以应用于云服务端(例如图1所示的云服务器102),包括以下步骤:With continued reference to FIG. 2, a flow 200 of one embodiment of a method for controlling an edge computing device according to the present application is shown. The method for controlling an edge computing device, which can be applied to a cloud server (for example, the cloud server 102 shown in FIG. 1 ), includes the following steps:

步骤201,通过通信连接的终端设备展示用于控制边缘计算设备的控制界面。Step 201 , the terminal device connected through communication displays a control interface for controlling the edge computing device.

在本实施例中,用于控制边缘计算设备的方法的执行主体(例如图1所示的云服务器102)可以通过通信连接的终端设备(例如图1所示的终端设备101)展示用于控制边缘计算设备的控制界面。作为示例,用户可以通过终端设备所安装的浏览器应用查看用于控制边缘计算设备的控制界面。作为示例,上述控制界面可以显示与边缘计算设备相关的各种信息,例如,边缘计算设备的配置信息、规则信息、函数信息、以及所连接的边缘计算设备关联设备的信息。作为示例,控制界面可以是网页形式的。这时,执行主体可以将网页形式的控制界面发送给终端设备。再由终端设备自动显示,也可以执行主体发送展示命令,以控制终端设备进行显示。可以理解的是,上述控制界面可以设置为一个界面,也可以设置为多个界面。例如,当所显示内容较多时,也可以设置为多个界面,此时,用户可以通过点击当前所显示界面上的按钮进入其他界面。需要说明的是,控制界面上信息的具体显示形式可以根据实际需要进行设置,此处不做限定。In this embodiment, the execution body of the method for controlling an edge computing device (for example, the cloud server 102 shown in FIG. 1 ) may display a communication-connected terminal device (for example, the terminal device 101 shown in FIG. 1 ) for controlling the edge computing device. Control interface for edge computing devices. As an example, a user may view a control interface for controlling the edge computing device through a browser application installed on the terminal device. As an example, the above-mentioned control interface can display various information related to the edge computing device, for example, configuration information, rule information, function information of the edge computing device, and information of devices associated with the connected edge computing device. As an example, the control interface may be in the form of a web page. At this time, the execution body can send the control interface in the form of a web page to the terminal device. It is then automatically displayed by the terminal device, or the execution subject can send a display command to control the terminal device to display. It can be understood that, the above-mentioned control interface may be set as one interface, or may be set as multiple interfaces. For example, when there are many displayed contents, multiple interfaces can also be set. At this time, the user can enter other interfaces by clicking buttons on the currently displayed interface. It should be noted that the specific display form of the information on the control interface can be set according to actual needs, which is not limited here.

实践中,上述用户可以是指具有控制边缘计算设备权限的管理人员,例如,上述执行主体在步骤201之前可以通过上述终端设备向用户展示权限验证界面,该权限验证界面可以用于采集用户的身份验证信息(例如,用户名、密码等等)。之后,上述执行主体可以对权利验证界面采集到的身份验证信息进行验证,从而判断用户是否具有控制边缘计算设备的权限。In practice, the above-mentioned user may refer to a manager who has the authority to control the edge computing device. For example, the above-mentioned execution subject can display the authority verification interface to the user through the above-mentioned terminal device before step 201, and the authority verification interface can be used to collect the user's identity. Authentication information (eg, username, password, etc.). Afterwards, the above-mentioned execution subject can verify the identity verification information collected on the rights verification interface, so as to determine whether the user has the authority to control the edge computing device.

步骤202,接收终端设备发送的控制信息。Step 202: Receive control information sent by the terminal device.

在本实施例中,上述执行主体可以接收上述终端设备发送的控制信息。其中,上述控制信息是经由上述控制界面输入的。实践中,上述用户可以通过上述终端设备所展示的控制界面输入控制信息。上述控制信息可以是对边缘计算设备的控制信息。例如,控制边缘计算设备上的配置数据、程序、规则等的更新,如,控制信息转发规则的更新。上述控制信息还可以是对边缘计算设备关联设备(例如图1所示的边缘计算设备关联设备104)的控制信息,例如,控制边缘计算设备关联设备的接入、删除等等。In this embodiment, the above-mentioned execution body may receive the control information sent by the above-mentioned terminal device. Wherein, the above-mentioned control information is input via the above-mentioned control interface. In practice, the above-mentioned user may input control information through the control interface displayed by the above-mentioned terminal device. The above control information may be control information for the edge computing device. For example, to control the update of configuration data, programs, rules, etc. on the edge computing device, for example, to control the update of information forwarding rules. The above-mentioned control information may also be control information for an edge computing device associated device (eg, the edge computing device associated device 104 shown in FIG. 1 ), for example, controlling access, deletion and the like of the edge computing device associated device.

通常,一个边缘计算设备会与多个边缘计算设备关联设备建立通信连接,并对多个边缘计算设备关联设备上传的信息进行计算、分析处理、存储等处理。通过上述终端设备的浏览器显示的控制界面,用户可以查看每个边缘计算设备连接的多个边缘计算设备关联设备的信息,例如,各个边缘计算设备关联设备的设备名称、说明、属性等等。Usually, one edge computing device establishes a communication connection with multiple edge computing device associated devices, and performs processing such as calculation, analysis processing, storage, etc. on the information uploaded by the multiple edge computing device associated devices. Through the control interface displayed by the browser of the terminal device, the user can view the information of multiple edge computing devices associated devices connected to each edge computing device, for example, the device name, description, attributes, etc. of each edge computing device associated device.

在本实施例的一些可选的实现方式中,上述控制信息可以包括以下至少一项:边缘计算设备配置更新信息、边缘计算设备关联设备控制信息、边缘计算设备规则控制信息、边缘计算设备函数控制信息。In some optional implementations of this embodiment, the above control information may include at least one of the following: edge computing device configuration update information, edge computing device associated device control information, edge computing device rule control information, and edge computing device function control information information.

上述边缘计算设备配置更新信息可以是指用于更新边缘计算设备配置的信息,边缘计算设备配置更新信息可以包括配置更新用数据。实践中,当用户想要更新边缘计算设备上的某些配置或程序时,可以在终端设备上显示的控制界面中确定待更新的配置或程序,并上传配置更新用数据,例如,配置文件、程序包等等。The above-mentioned edge computing device configuration update information may refer to information used to update the edge computing device configuration, and the edge computing device configuration update information may include configuration update data. In practice, when the user wants to update some configurations or programs on the edge computing device, the configuration or program to be updated can be determined in the control interface displayed on the terminal device, and the data for configuration update, such as configuration files, packages, etc.

上述边缘计算设备关联设备控制信息可以是指用于控制边缘计算设备关联设备的信息。实践中,当用户想要对与边缘计算设备通信连接的某个边缘计算设备关联设备进行控制(例如,控制其断开连接)时,可以在终端设备上显示的控制界面中确定该边缘计算设备关联设备,并输入针对该边缘计算设备关联设备的控制信息。The above edge computing device associated device control information may refer to information used to control the edge computing device associated device. In practice, when a user wants to control a device associated with an edge computing device that is communicatively connected to an edge computing device (for example, to control its disconnection), the edge computing device can be determined in the control interface displayed on the terminal device. Associate the device, and enter the control information for the device associated with the edge computing device.

上述边缘计算设备规则控制信息可以是指用于控制边缘计算设备上执行的规则的信息,例如,对边缘计算设备上执行的规则进行修改信息。The above edge computing device rule control information may refer to information used to control the rules executed on the edge computing device, for example, information on modifying the rules executed on the edge computing device.

上述边缘计算设备函数控制信息可以是指用于控制边缘计算设备上进行计算的计算函数的信息,例如,对边缘计算设备上进行计算的计算函数的修改信息。The above-mentioned edge computing device function control information may refer to information used to control the computing function performed on the edge computing device, for example, modification information on the computing function performed on the edge computing device.

步骤203,根据控制信息向边缘计算设备发送控制指令,以控制边缘计算设备进行数据更新。Step 203: 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.

在本实施例中,上述执行主体可以根据步骤202接收到的控制信息向边缘计算设备发送控制指令,以控制边缘计算设备进行数据更新。例如,当上述控制信息为用于控制边缘计算设备上的配置数据的更新的信息时,上述执行主体可以根据该控制信息向边缘计算设备发送配置更新的控制指令,以控制边缘计算设备进行配置数据更新。In this embodiment, the above-mentioned execution subject 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 update data. For example, when the above-mentioned control information is information used to control the update of configuration data on the edge computing device, the above-mentioned executive 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. renew.

在本实施例的一些可选的实现方式中,上述控制信息可以包括边缘计算设备配置更新信息,其中,上述边缘计算设备更新信息可以包括配置更新用数据。上述步骤203可以具体通过如下步骤进行:In some optional implementations of this embodiment, the aforementioned control information may include edge computing device configuration update information, where the aforementioned edge computing device update information may include configuration update data. The above step 203 can be specifically performed through the following steps:

首先,根据边缘计算设备配置更新信息生成配置更新指令。First, a configuration update instruction is generated according to the edge computing device configuration update information.

在这里,上述执行主体可以根据边缘计算设备配置更新信息生成配置更新指令。其中,上述配置更新指令可以包括配置更新用数据在本地的存储地址。Here, the above-mentioned executive body may generate a configuration update instruction according to the edge computing device configuration update information. Wherein, the above-mentioned configuration update instruction may include a local storage address of the data for configuration update.

之后,通过第一数据通道向边缘计算设备发送配置更新指令,以供边缘计算设备根据配置更新指令通过第二数据通道获取配置更新用数据。Afterwards, a configuration update instruction is sent to the edge computing device through the first data channel, so that the edge computing device obtains the data for configuration update through the second data channel according to the configuration update instruction.

在这里,上述执行主体可以通过第一数据通道向上述边缘计算设备发送配置更新指令。上述边缘计算设备接收到配置更新指令之后,可以根据配置更新指令中所包括的存储地址,通过第二数据通道主动去上述执行主体拉取配置更新用数据,并使用配置更新用数据对配置进行更新。上述第一数据通道可以是基于MQTT(Message Queuing TelemetryTransport,消息队列遥测传输)协议搭建的,上述第二数据通道可以是基于HTTPS(HyperText Transfer Protocol over Secure Socket Layer)协议搭建的。MQTT是一个即时通讯协议,具有小型传输、开销小、协议交换最小化等特点,可以降低网络流量。实践中,还可以将MQTT与SSL(Secure Sockets Layer,安全套接层)/TLS(Transport Layer Security,传输层安全)加密融合在一起,保证信息传输的安全性。HTTPS是以安全为目标的HTTP(HyperText Transfer Protocol,超文本传输协议)通道,简单讲是HTTP的安全版,可以保证信息传输的安全性。相对而言,基于HTTPS建立的数据通道更加适合用于拉取大数据,但建立成本较高。Here, the above-mentioned execution body may send a configuration update instruction to the above-mentioned edge computing device through the first data channel. After the above-mentioned edge computing device receives the configuration update instruction, according to the storage address included in the configuration update instruction, it can actively go to the above-mentioned execution body through the second data channel to pull the configuration update data, and use the configuration update data to update the configuration. . The first data channel may be built based on the MQTT (Message Queuing Telemetry Transport) protocol, and the second data channel may be built based on the HTTPS (HyperText Transfer Protocol over Secure Socket Layer) protocol. MQTT is an instant messaging protocol with the characteristics of small transmission, low overhead, and minimal protocol exchange, which can reduce network traffic. In practice, MQTT can also be combined with SSL (Secure Sockets Layer, Secure Sockets Layer)/TLS (Transport Layer Security, Transport Layer Security) encryption to ensure the security of information transmission. HTTPS is a secure HTTP (HyperText Transfer Protocol) channel. Simply speaking, it is a secure version of HTTP, which can ensure the security of information transmission. Relatively speaking, the data channel established based on HTTPS is more suitable for pulling big data, but the establishment cost is high.

本实现方式中,通过第一数据通道发送配置更新指令,通过第二数据通道拉取配置更新用数据,可以实现根据不同数据类型采用不同的传输协议,从而降低了网络开销。In this implementation manner, the configuration update instruction is sent through the first data channel, and the configuration update data is pulled through the second data channel, so that different transmission protocols can be adopted according to different data types, thereby reducing network overhead.

在本实施例的一些可选的实现方式中,上述用于控制边缘计算设备的方法还可以包括图2中未示出的以下步骤:In some optional implementations of this embodiment, the above-mentioned method for controlling an edge computing device may further include the following steps not shown in FIG. 2 :

步骤204,接收边缘计算设备上报的状态信息。Step 204: Receive status information reported by the edge computing device.

在这里,上述执行主体可以实时接收上述边缘计算设备上报的状态信息。状态信息可以用于表征边缘计算设备的状态,包括但不限于在线状态、离线状态、数据更新状态等等。Here, the execution body may receive the status information reported by the edge computing device in real time. Status information can be used to characterize the status of the edge computing device, including but not limited to online status, offline status, data update status, and so on.

步骤205,将状态信息发送到终端设备,以供终端设备呈现。In step 205, the status information is sent to the terminal device for presentation by the terminal device.

在这里,上述执行主体可以将步骤204中接收到的状态信息发送到上述终端设备,以供终端设备进行呈现。通过这种实现方式,上述用户可以通过终端设备远程、实时监控边缘计算设备的状态,从而使用户对边缘计算设备的监控更加便利。Here, the above-mentioned execution body may send the status information received in step 204 to the above-mentioned terminal device, so that the terminal device can present it. Through this implementation, the above-mentioned user can monitor the status of the edge computing device remotely and in real time through the terminal device, thereby making it more convenient for the user to monitor the edge computing device.

继续参见图3,图3是根据本实施例的用于控制边缘计算设备方法的应用场景的一个示意图。在图3的应用场景中,用户首先通过终端设备301的浏览器发起一个用于控制边缘计算设备303的控制界面浏览请求。云服务端302接收到该控制界面浏览请求之后,可以通过终端设备301展示用于控制边缘计算设备303的控制界面。然后,用户可以在该控制界面输入控制信息,随后云服务端302可以接收到终端设备301发送的该控制信息。最后,云服务端302可以根据该控制信息向边缘计算设备303发送控制指令,以控制边缘计算设备303进行数据更新。Continue to refer to FIG. 3 , which is a schematic diagram of an application scenario of the method for controlling an edge computing device according to this embodiment. In the application scenario of FIG. 3 , the user first initiates a control interface browsing 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 can display the control interface for controlling the edge computing device 303 through the terminal device 301 . Then, the user can input control information on the control interface, and then the cloud server 302 can receive the control information sent by the terminal device 301 . Finally, the cloud server 302 can 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 update data.

本申请的上述实施例提供的用于控制边缘计算设备的方法,实现了边缘计算设备的远程控制,降低了控制边缘计算设备的人工成本。The method for controlling an edge computing device provided by the above embodiments of the present application realizes the remote control of the edge computing device and reduces the labor cost of controlling the edge computing device.

进一步参考图4,其示出了用于更新数据的方法的一个实施例的流程400。该用于更新数据的方法的流程400,可以应用于边缘计算设备,包括以下步骤:With further reference to Figure 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 can be applied to edge computing devices, includes the following steps:

步骤401,接收云服务端通过第一数据通道发送的配置更新指令。Step 401: Receive a configuration update instruction sent by the cloud server through the first data channel.

在本实施例中,用于更新数据的方法的执行主体(例如图1所示的边缘计算设备103)可以通过接收云服务端(例如图1所示的云服务器102)通过第一数据通道发送的配置更新指令。上述配置更新指令包括配置更新用数据在上述云服务端的存储地址。上述第一数据通道可以是基于MQTT协议搭建的。In this embodiment, the execution body of the method for updating data (for example, the edge computing device 103 shown in FIG. 1 ) may send the data through the first data channel by receiving the cloud server (for example, the cloud server 102 shown in FIG. 1 ). config update directive. The above-mentioned configuration update instruction includes a storage address of the data for configuration update on the above-mentioned cloud server. The above-mentioned first data channel may be established based on the MQTT protocol.

步骤402,根据配置更新指令包括的存储地址通过第二数据通道从云服务端获取配置更新用数据。Step 402: Acquire data for configuration update from the cloud server through the second data channel according to the storage address included in the configuration update instruction.

在本实施例中,上述执行主体可以根据配置更新指令中所包括的存储地址,通过第二数据通道从上述云服务端获取配置更新用数据。上述第二数据通道可以是基于HTTPS协议搭建的。In this embodiment, the execution body may acquire 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 above-mentioned second data channel may be established based on the HTTPS protocol.

步骤403,使用配置更新用数据进行配置更新。Step 403, use the data for configuration update to perform configuration update.

在本实施例中,上述执行主体可以使用步骤402中获取的配置更新用数据进行配置更新。In this embodiment, the above-mentioned execution body may use the data for configuration update acquired in step 402 to perform configuration update.

在本实施例的一些可选的实现方式中,上述用于更新数据的方法还可以包括图4中未示出的以下步骤:In some optional implementations of this embodiment, the above-mentioned method for updating data may further include the following steps not shown in FIG. 4 :

步骤404,检测配置更新用数据在运行过程中是否出现异常。Step 404: Detect whether the data for configuration update is abnormal during the running process.

在这里,上述执行主体可以实时检测上述配置更新用数据在运行过程中是否出现异常。例如,根据上述配置更新数据进行配置更新之后,检测到不能进行信息处理、或信息处理过程中出现错误提示,此时,可以确定检测配置更新用数据在运行过程中是否出现异常。Here, the above-mentioned execution body can detect in real time whether the above-mentioned data for configuration update is abnormal during the running process. For example, after the configuration update is performed according to the above configuration update data, it is detected that information processing cannot be performed, or an error message occurs during the information processing process.

步骤405,响应于检测到配置更新用数据在运行过程中出现异常,采用回滚机制对配置更新用数据进行处理。Step 405, in response to detecting that the data for configuration update is abnormal during the running process, use a rollback mechanism to process the data for configuration update.

在这里,响应于检测到上述配置更新用数据在运行过程中出现异常,上述执行主体可以采用回滚机制对上述配置更新用数据进行处理。此处,回滚(Rollback)指的是程序或数据处理错误,将程序或数据恢复到上一次正确状态的行为。本实现方式保证了边缘计算设备配置更新出现异常时,边缘计算设备的正常运作。Here, in response to detecting that the data for configuration update is abnormal during the running process, the execution subject may use a rollback mechanism to process the data for configuration update. Here, rollback refers to a program or data processing error, and the behavior of restoring the program or data to the last correct state. This implementation ensures the normal operation of the edge computing device when the configuration update of the edge computing device is abnormal.

本申请的上述实施例提供的用于更新数据的方法,实现了边缘计算设备配置数据的自动更新。另外,通过第一数据通道接收配置更新指令,通过第二数据通道拉取配置更新用数据,实现了根据不同数据类型采用不同的传输协议,从而降低了网络开销。The methods for updating data provided by the above embodiments of the present application realize automatic updating of configuration data of edge computing devices. In addition, the configuration update instruction is received through the first data channel, and the configuration update data is pulled through the second data channel, so that different transmission protocols are adopted according to different data types, thereby reducing network overhead.

进一步参考图5,作为对图2所示方法的实现,本申请提供了一种用于控制边缘计算设备的装置的一个实施例,该装置设置于云服务端,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。Further referring 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, the apparatus is set on a cloud server, and the embodiment of the apparatus is the same as that shown in FIG. 2 . Corresponding to the method embodiments shown, the apparatus can be specifically applied to various electronic devices.

如图5所示,本实施例的用于控制边缘计算设备的装置500包括:展示单元501、第一接收单元502和控制单元503。其中,展示单元501被配置成通过通信连接的终端设备展示用于控制边缘计算设备的控制界面;第一接收单元502被配置成接收上述终端设备发送的控制信息,其中,上述控制信息是经由上述控制界面输入的;控制单元503被配置成根据上述控制信息向上述边缘计算设备发送控制指令,以控制上述边缘计算设备进行数据更新。As shown in FIG. 5 , the apparatus 500 for controlling an edge computing device in this embodiment includes: a display unit 501 , a first receiving unit 502 and a control unit 503 . The display unit 501 is configured to display a control interface for controlling the edge computing device through a terminal device connected through communication; the first receiving unit 502 is configured to receive the control information sent by the terminal device, wherein the control information is sent via the above-mentioned The control unit 503 is configured to send a control instruction to the above-mentioned edge computing device according to the above-mentioned control information, so as to control the above-mentioned edge computing device to perform data update.

在本实施例中,用于控制边缘计算设备的装置500的展示单元501、第一接收单元502和控制单元503的具体处理及其所带来的技术效果可分别参考图2对应实施例中步骤201、步骤202和步骤203的相关说明,在此不再赘述。In this embodiment, the specific processing of the display unit 501 , the first receiving unit 502 and the control unit 503 of the apparatus 500 for controlling the edge computing device and the technical effects brought about by them may refer to the steps in the corresponding embodiment of FIG. 2 respectively. The related descriptions of step 201 , step 202 and step 203 will not be repeated here.

在本实施例的一些可选的实现方式中,上述装置500还可以包括:第二接收单元(图中未示出),被配置成接收上述边缘计算设备上报的状态信息;发送单元(图中未示出),被配置成将上述状态信息发送到上述终端设备,以供上述终端设备呈现。In some optional implementations of this embodiment, the above apparatus 500 may further include: a second receiving unit (not shown in the figure), configured to receive the status information reported by the above edge computing device; a sending unit (not shown in the figure) not shown), configured to send the above-mentioned status information to the above-mentioned terminal device for presentation by the above-mentioned terminal device.

在本实施例的一些可选的实现方式中,上述控制信息包括边缘计算设备配置更新信息,其中,上述边缘计算设备更新信息包括配置更新用数据;以及上述控制单元503进一步被配置成:根据上述边缘计算设备配置更新信息生成配置更新指令,其中,上述配置更新指令包括配置更新用数据在本地的存储地址;通过第一数据通道向上述边缘计算设备发送上述配置更新指令,以供上述边缘计算设备根据上述配置更新指令通过第二数据通道获取配置更新用数据,其中,上述第一数据通道是基于MQTT协议搭建的,上述第二数据通道是基于HTTPS协议搭建的。In some optional implementations of this embodiment, the above-mentioned control information includes edge computing device configuration update information, wherein the above-mentioned edge computing device update information includes configuration update data; and the above-mentioned control unit 503 is further configured to: according to the above-mentioned The configuration update information of the edge computing device generates a configuration update instruction, wherein the configuration update instruction includes a local storage address of the data for configuration update; the configuration update instruction is sent to the edge computing device through the first data channel, for the edge computing device The data for configuration update is obtained through the second data channel according to the above-mentioned configuration update instruction, wherein the above-mentioned first data channel is built based on the MQTT protocol, and the above-mentioned second data channel is built based on the HTTPS protocol.

在本实施例的一些可选的实现方式中,上述控制信息包括以下至少一项:边缘计算设备配置更新信息、边缘计算设备关联设备控制信息、边缘计算设备规则控制信息、边缘计算设备函数控制信息。In some optional implementations of this embodiment, the above control information includes at least one of the following: edge computing device configuration update information, edge computing device associated device control information, edge computing device rule control information, and edge computing device function control information .

进一步参考图6,作为对上述图4所示方法的实现,本申请提供了一种用于更新数据的装置的一个实施例,该装置设置于边缘计算设备,该装置实施例与图4所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。Further referring to FIG. 6 , as an implementation of the method shown in FIG. 4 above, the present application provides an embodiment of an apparatus for updating data, the apparatus is set in an edge computing device, and the apparatus embodiment is the same as that shown in FIG. 4 . Corresponding to the method embodiments described above, the apparatus can be specifically applied to various electronic devices.

如图6所示,本实施例的用于更新数据的装置600包括:指令接收单元601、获取单元602和更新单元603。其中,指令接收单元601被配置成接收云服务端通过第一数据通道发送的配置更新指令,其中,上述第一数据通道是基于MQTT协议搭建的,上述配置更新指令包括配置更新用数据在上述云服务端的存储地址;获取单元602被配置成根据上述配置更新指令包括的存储地址通过第二数据通道从上述云服务端获取上述配置更新用数据,其中,上述第二数据通道是基于HTTPS协议搭建的;更新单元603被配置成使用上述配置更新用数据进行配置更新。As shown in FIG. 6 , the apparatus 600 for updating data in this embodiment includes: an instruction receiving unit 601 , an acquiring unit 602 and an updating unit 603 . The instruction receiving unit 601 is configured to receive a configuration update instruction sent by the cloud server through a first data channel, wherein the first data channel is constructed based on the MQTT protocol, and the configuration update instruction includes the configuration update data stored in the cloud The storage address of the server; the obtaining unit 602 is configured to obtain the above-mentioned configuration update data from the above-mentioned cloud server through a second data channel according to the storage address included in the above-mentioned configuration update instruction, wherein the above-mentioned second data channel is built based on the HTTPS protocol ; The update unit 603 is configured to perform configuration update using the above-mentioned data for configuration update.

在本实施例中,用于更新数据的装置600的指令接收单元601、获取单元602和更新单元603的具体处理及其所带来的技术效果可分别参考图4对应实施例中步骤402、步骤402和步骤403的相关说明,在此不再赘述。In this embodiment, the specific processing of the instruction receiving unit 601 , the obtaining unit 602 and the updating unit 603 of the apparatus 600 for updating data and the technical effects brought about by them may refer to steps 402 and 402 in the corresponding embodiment of FIG. 4 , respectively. The related descriptions of step 402 and step 403 will not be repeated here.

在本实施例的一些可选的实现方式中,上述装置还包括:检测单元(图中未示出),被配置成检测上述配置更新用数据在运行过程中是否出现异常;回滚单元(图中未示出),被配置成响应于检测到上述配置更新用数据在运行过程中出现异常,采用回滚机制对上述配置更新用数据进行处理。In some optional implementations of this embodiment, the above-mentioned apparatus further includes: a detection unit (not shown in the figure) configured to detect whether the above-mentioned configuration update data is abnormal during the running process; (not shown in the figure), configured to use a rollback mechanism to process the above data for configuration update in response to detecting that the above data for configuration update is abnormal during the running process.

下面参考图7,其示出了适于用来实现本申请实施例的云服务器或边缘计算设备的计算机系统700的结构示意图。图7示出的云服务器或边缘计算设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Referring next to FIG. 7 , it shows a schematic structural diagram of a computer system 700 suitable for implementing the cloud server or edge computing device of the embodiments of the present application. The cloud server or edge computing device shown in FIG. 7 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present application.

如图7所示,计算机系统700包括中央处理单元(CPU,Central Processing Unit)701,其可以根据存储在只读存储器(ROM,Read Only Memory)702中的程序或者从存储部分706加载到随机访问存储器(RAM,Random Access Memory)703中的程序而执行各种适当的动作和处理。在RAM 703中,还存储有系统700操作所需的各种程序和数据。CPU 701、ROM702以及RAM 703通过总线704彼此相连。输入/输出(I/O,Input/Output)接口705也连接至总线704。As shown in FIG. 7 , the computer system 700 includes a central processing unit (CPU, Central Processing Unit) 701, which can be loaded into random access according to a program stored in a read only memory (ROM, Read Only Memory) 702 or from a storage part 706 Various appropriate operations and processes are executed by a program in a memory (RAM, Random Access Memory) 703 . In the RAM 703, various programs and data necessary for the operation of the system 700 are also stored. The CPU 701 , the ROM 702 , and the RAM 703 are connected to each other through a bus 704 . An input/output (I/O, Input/Output) interface 705 is also connected to the bus 704 .

以下部件连接至I/O接口705:包括硬盘等的存储部分706;以及包括诸如LAN(局域网,Local Area Network)卡、调制解调器等的网络接口卡的通信部分707。通信部分707经由诸如因特网的网络执行通信处理。驱动器708也根据需要连接至I/O接口705。可拆卸介质709,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器708上,以便于从其上读出的计算机程序根据需要被安装入存储部分706。The following components are connected to the I/O interface 705: a storage section 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, and the like. The communication section 707 performs communication processing via a network such as the Internet. Drivers 708 are also connected to 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, etc., is mounted on the drive 708 as needed so that a computer program read therefrom is installed into the storage section 706 as needed.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分707从网络上被下载和安装,和/或从可拆卸介质709被安装。在该计算机程序被中央处理单元(CPU)701执行时,执行本申请的方法中限定的上述功能。In particular, according to embodiments 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 carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 707 and/or installed from the removable medium 709 . When the computer program is executed by the central processing unit (CPU) 701, the above-described functions defined in the method of the present application are performed.

需要说明的是,本申请所述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium described in this application may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this application, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

可以以一种或多种程序设计语言或其组合来编写用于执行本申请的操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present application may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, but also conventional procedural programming language - such as "C" language or similar programming language. 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 kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).

附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。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 that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks 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 is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.

描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括展示单元、第一接收单元和控制单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,展示单元还可以被描述为“通过通信连接的终端设备展示用于控制边缘计算设备的控制界面的单元”。The units involved in the embodiments of the present application may be implemented in a software manner, and may also be implemented in a hardware manner. The described unit can also be provided in the processor, for example, it can be described as: a processor includes a display unit, a first receiving unit and a control unit. Among them, the names of these units do not constitute a limitation of the unit itself under certain circumstances. For example, the display unit can also be described as "a unit that displays the control interface used to control the edge computing device through the terminal device connected by communication" .

作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的装置中所包含的;也可以是单独存在,而未装配入该装置中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该装置执行时,使得该装置:通过通信连接的终端设备展示用于控制边缘计算设备的控制界面;接收上述终端设备发送的控制信息,其中,上述控制信息是经由上述控制界面输入的;根据上述控制信息向上述边缘计算设备发送控制指令,以控制上述边缘计算设备进行数据更新。As another aspect, the present application also provides a computer-readable medium, which may be included in the apparatus described in the above-mentioned embodiments, or may exist independently without being assembled into the apparatus. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the apparatus, the apparatus causes the apparatus to: display a control interface for controlling the edge computing equipment through the terminal equipment connected by communication; receive the above-mentioned terminal equipment The control information sent by the device, wherein the control information is input via the control interface; according to the control information, a control instruction is sent to the edge computing device to control the edge computing device to update data.

作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的装置中所包含的;也可以是单独存在,而未装配入该装置中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该装置执行时,使得该装置:接收云服务端通过第一数据通道发送的配置更新指令,其中,上述第一数据通道是基于MQTT协议搭建的,上述配置更新指令包括配置更新用数据在上述云服务端的存储地址;根据上述配置更新指令包括的存储地址通过第二数据通道从上述云服务端获取上述配置更新用数据,其中,上述第二数据通道是基于HTTPS协议搭建的;使用上述配置更新用数据进行配置更新。As another aspect, the present application also provides a computer-readable medium, which may be included in the apparatus described in the above-mentioned embodiments, or may exist independently without being assembled into the apparatus. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the device, the device causes the device to: receive a configuration update instruction sent by the cloud server through the first data channel, wherein the above-mentioned first The data channel is built based on the MQTT protocol, and the above-mentioned configuration update instruction includes the storage address of the data for configuration update in the above-mentioned cloud server; according to the storage address included in the above-mentioned configuration update instruction, the above-mentioned configuration update is obtained from the above-mentioned cloud server through the second data channel. data, wherein the above-mentioned second data channel is established based on the HTTPS protocol; the above-mentioned data for configuration update is used for configuration update.

以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an illustration of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solution formed by the specific combination of the above technical features, and should also cover the above technical features or Other technical solutions formed by any combination of its equivalent features. For example, a technical solution is formed by replacing the above-mentioned features with the technical features disclosed in this application (but not limited to) with similar functions.

Claims (14)

1.一种用于控制边缘计算设备的方法,应用于云服务端,包括:1. A method for controlling an edge computing device, applied to a cloud server, comprising: 通过通信连接的终端设备展示用于控制边缘计算设备的控制界面,其中,所述边缘计算设备与多个边缘计算设备关联设备建立通信连接,所述边缘计算设备用于对所述多个边缘计算设备关联设备上传的信息进行处理;A terminal device connected through communication displays a control interface for controlling an edge computing device, wherein the edge computing device establishes a communication connection with a plurality of edge computing device-related devices, and the edge computing device is used to control the plurality of edge computing devices. The information uploaded by the device is associated with the device for processing; 接收所述终端设备发送的控制信息,其中,所述控制信息是经由所述控制界面输入的,所述控制信息包括边缘计算设备配置更新信息,所述边缘计算设备更新信息包括配置更新用数据;receiving control information sent 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 configuration update data; 根据所述控制信息向所述边缘计算设备发送控制指令,以控制所述边缘计算设备进行数据更新,包括:根据所述边缘计算设备配置更新信息生成配置更新指令,其中,所述配置更新指令包括配置更新用数据在本地的存储地址;通过第一数据通道向所述边缘计算设备发送所述配置更新指令,以供所述边缘计算设备根据所述配置更新指令通过第二数据通道获取配置更新用数据,其中,所述第一数据通道是基于MQTT协议搭建的,所述第二数据通道是基于HTTPS协议搭建的。Sending a control instruction to the edge computing device according to the control information to control the edge computing device to perform data update includes: generating a configuration update instruction according to the edge computing device configuration update information, wherein the configuration update instruction includes the local storage address of the data for configuration update; send the configuration update instruction to the edge computing device through the first data channel, so that the edge computing device can obtain the configuration update through the second data channel according to the configuration update instruction data, wherein the first data channel is built based on the MQTT protocol, and the second data channel is built based on the HTTPS protocol. 2.根据权利要求1所述的方法,其中,所述方法还包括:2. The method of claim 1, wherein the method further comprises: 接收所述边缘计算设备上报的状态信息;receiving status information reported by the edge computing device; 将所述状态信息发送到所述终端设备,以供所述终端设备呈现。The status information is sent to the terminal device for presentation by the terminal device. 3.根据权利要求1所述的方法,其中,所述控制信息包括以下至少一项:3. The method of claim 1, wherein the control information comprises at least one of the following: 边缘计算设备配置更新信息、边缘计算设备关联设备控制信息、边缘计算设备规则控制信息、边缘计算设备函数控制信息。Edge computing device configuration update information, edge computing device associated device control information, edge computing device rule control information, and edge computing device function control information. 4.一种用于更新数据的方法,应用于边缘计算设备,其中,所述边缘计算设备与多个边缘计算设备关联设备建立通信连接,所述边缘计算设备用于对所述多个边缘计算设备关联设备上传的信息进行处理,包括: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 computing the multiple edge computing devices. The device is associated with the information uploaded by the device for processing, including: 接收云服务端通过第一数据通道发送的配置更新指令,其中,所述第一数据通道是基于MQTT协议搭建的,所述配置更新指令包括配置更新用数据在所述云服务端的存储地址;receiving a configuration update instruction sent by the cloud server through a first data channel, wherein the first data channel is constructed based on the MQTT protocol, and the configuration update instruction includes the storage address of the data for configuration update in the cloud server; 根据所述配置更新指令包括的存储地址通过第二数据通道从所述云服务端获取所述配置更新用数据,其中,所述第二数据通道是基于HTTPS协议搭建的;Obtain the configuration update data from the cloud server through a second data channel according to the storage address included in the configuration update instruction, wherein the second data channel is established based on the HTTPS protocol; 使用所述配置更新用数据进行配置更新。The configuration update is performed using the data for configuration update. 5.根据权利要求4所述的方法,其中,所述方法还包括:5. The method of claim 4, wherein the method further comprises: 检测所述配置更新用数据在运行过程中是否出现异常;Detecting whether the data for configuration update is abnormal during the running process; 响应于检测到所述配置更新用数据在运行过程中出现异常,采用回滚机制对所述配置更新用数据进行处理。In response to detecting that the data for configuration update is abnormal during the running process, a rollback mechanism is used to process the data for configuration update. 6.一种用于控制边缘计算设备的装置,设置于云服务端,包括:6. A device for controlling edge computing equipment, set on a cloud server, comprising: 展示单元,被配置成通过通信连接的终端设备展示用于控制边缘计算设备的控制界面,其中,所述边缘计算设备与多个边缘计算设备关联设备建立通信连接,所述边缘计算设备用于对所述多个边缘计算设备关联设备上传的信息进行处理;A presentation unit configured to present a control interface for controlling an edge computing device through a communication-connected terminal 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 the information uploaded by the associated devices of the plurality of edge computing devices; 第一接收单元,被配置成接收所述终端设备发送的控制信息,其中,所述控制信息是经由所述控制界面输入的,所述控制信息包括边缘计算设备配置更新信息,所述边缘计算设备更新信息包括配置更新用数据;a first receiving unit, configured to receive control information sent by the terminal device, wherein the control information is input via the control interface, and the control information includes edge computing device configuration update information, the edge computing device Update information includes configuration update data; 控制单元,被配置成根据所述控制信息向所述边缘计算设备发送控制指令,以控制所述边缘计算设备进行数据更新,所述控制单元进一步被配置成:根据所述边缘计算设备配置更新信息生成配置更新指令,其中,所述配置更新指令包括配置更新用数据在本地的存储地址;通过第一数据通道向所述边缘计算设备发送所述配置更新指令,以供所述边缘计算设备根据所述配置更新指令通过第二数据通道获取配置更新用数据,其中,所述第一数据通道是基于MQTT协议搭建的,所述第二数据通道是基于HTTPS协议搭建的。a control unit, 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 perform data update, the control unit is further configured to: update information according to the edge computing device configuration generating a configuration update instruction, wherein the configuration update instruction includes a local storage address of the data for configuration update; sending the configuration update instruction to the edge computing device through the first data channel, so that the edge computing device can The configuration update instruction obtains data for configuration update through a second data channel, wherein the first data channel is built based on the MQTT protocol, and the second data channel is built based on the HTTPS protocol. 7.根据权利要求6所述的装置,其中,所述装置还包括: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 state information to the terminal device for presentation by the terminal device. 8.根据权利要求6所述的装置,其中,所述控制信息包括以下至少一项:8. The apparatus of claim 6, wherein the control information comprises at least one of the following: 边缘计算设备配置更新信息、边缘计算设备关联设备控制信息、边缘计算设备规则控制信息、边缘计算设备函数控制信息。Edge computing device configuration update information, edge computing device associated device control information, edge computing device rule control information, and edge computing device function control information. 9.一种用于更新数据的装置,设置于边缘计算设备,其中,所述边缘计算设备与多个边缘计算设备关联设备建立通信连接,所述边缘计算设备用于对所述多个边缘计算设备关联设备上传的信息进行处理,包括:9. An apparatus for updating data, set in 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 computing the multiple edge computing devices. The device is associated with the information uploaded by the device for processing, including: 指令接收单元,被配置成接收云服务端通过第一数据通道发送的配置更新指令,其中,所述第一数据通道是基于MQTT协议搭建的,所述配置更新指令包括配置更新用数据在所述云服务端的存储地址;The instruction receiving unit is configured to receive a configuration update instruction sent by the cloud server through a first data channel, wherein the first data channel is built based on the MQTT protocol, and the configuration update instruction includes configuration update data in the The storage address of the cloud server; 获取单元,被配置成根据所述配置更新指令包括的存储地址通过第二数据通道从所述云服务端获取所述配置更新用数据,其中,所述第二数据通道是基于HTTPS协议搭建的;an obtaining unit, 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, wherein the second data channel is established based on the HTTPS protocol; 更新单元,被配置成使用所述配置更新用数据进行配置更新。An update unit configured to perform configuration update using the configuration update data. 10.根据权利要求9所述的装置,其中,所述装置还包括:10. The apparatus of claim 9, wherein the apparatus further comprises: 检测单元,被配置成检测所述配置更新用数据在运行过程中是否出现异常;a detection unit, configured to detect whether the configuration update data is abnormal during operation; 回滚单元,被配置成响应于检测到所述配置更新用数据在运行过程中出现异常,采用回滚机制对所述配置更新用数据进行处理。The rollback unit is configured to, in response to detecting that the data for configuration update is abnormal during the running process, use a rollback mechanism to process the data for configuration update. 11.一种服务器,包括:11. A server comprising: 一个或多个处理器;one or more processors; 存储装置,其上存储有一个或多个程序,a storage device on which one or more programs are stored, 当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-3中任一所述的方法。The one or more programs, 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.一种边缘计算设备,包括:12. An edge computing device, comprising: 一个或多个处理器;one or more processors; 存储装置,其上存储有一个或多个程序;a storage device on which one or more programs are stored; 当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求4-5中任一所述的方法。The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 4-5. 13.一种计算机可读介质,其上存储有计算机程序,其中,所述程序被处理器执行时实现如权利要求1-3中任一所述的方法。13. A computer-readable medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the method of any one of claims 1-3. 14.一种计算机可读介质,其上存储有计算机程序,其中,所述程序被处理器执行时实现如权利要求4-5中任一所述的方法。14. A computer-readable medium having stored thereon a computer program, 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 (11)

* 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 edge computing of power system
CN110351153B (en) * 2019-08-19 2022-01-04 蘑菇物联技术(深圳)有限公司 Edge computing system based on online configuration and dynamic configuration file issuing
CN110445659B (en) * 2019-08-19 2021-07-13 蘑菇物联技术(深圳)有限公司 A method to achieve easy switching between local and cloud
CN113132176B (en) 2019-12-31 2024-02-02 华为云计算技术有限公司 A method, node and edge computing system for controlling edge nodes
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
CN114327556A (en) * 2021-12-30 2022-04-12 四川启睿克科技有限公司 Device and method for realizing application configuration hot update based on Internet of things edge cloud cooperation

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 珠海格力电器股份有限公司 Firmware upgrading 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 intrusion into smart home internal network
CN102413182A (en) * 2011-11-17 2012-04-11 南京天溯自动化控制系统有限公司 Intelligent household equipment 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 珠海格力电器股份有限公司 Firmware upgrading 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
US11956225B2 (en) Web browser-based device communication workflow
CN108632101B (en) Method and apparatus for updating configuration object, edge computing device, and medium
US12143392B2 (en) System and method to securely execute datacenter management operations remotely
WO2022105591A1 (en) Cache server performance test method and apparatus, device, and medium
WO2021130500A1 (en) A system and method for automated process orchestration
CN112165480B (en) Information acquisition method, device and electronic device
CN111580833A (en) Application update method and system, local management agent device and cloud server
CN111930709B (en) Data storage method, apparatus, electronic device, and computer readable medium
US11502899B2 (en) Dynamic product installation based on user feedback
CN111786939A (en) Method, device and system for testing of Internet of Things management platform
CN115022328B (en) Server cluster, testing method and device of server cluster and electronic equipment
CN114840379A (en) Log generation method, device, server and storage medium
CN112181975B (en) Method and apparatus for creating a database in a data warehouse
WO2021042715A1 (en) System, method, and device for developing smart contract
US12393678B1 (en) Integrated development environment extension for developing information technology and security operations application apps
CN115756744A (en) Container-based application access method, device, system, electronic device and medium
CN109271310B (en) Development testing method and device for network function of mobile application program
CN113760727A (en) Interface regression testing method and device
CN113268406A (en) Method, device, equipment and computer readable medium for testing software
CN112543228A (en) Data transmission method and device, electronic equipment and computer readable medium
CN120201023B (en) A file transmission method and device for remote desktop access based on BS architecture
CN113704080A (en) Automatic testing method and device
CN113722634B (en) Data processing method, device, electronic device and computer-readable medium
CN117354360A (en) Material management method and device and electronic equipment

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