CN108769214A - For controlling edge calculations equipment, the method and apparatus for updating the data - Google Patents

For controlling edge calculations equipment, the method and apparatus for updating the data Download PDF

Info

Publication number
CN108769214A
CN108769214A CN201810550649.9A CN201810550649A CN108769214A CN 108769214 A CN108769214 A CN 108769214A CN 201810550649 A CN201810550649 A CN 201810550649A CN 108769214 A CN108769214 A CN 108769214A
Authority
CN
China
Prior art keywords
edge calculations
configuration
data
calculations equipment
device
Prior art date
Application number
CN201810550649.9A
Other languages
Chinese (zh)
Inventor
黄益超
Original Assignee
北京百度网讯科技有限公司
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 北京百度网讯科技有限公司 filed Critical 北京百度网讯科技有限公司
Priority to CN201810550649.9A priority Critical patent/CN108769214A/en
Publication of CN108769214A publication Critical patent/CN108769214A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/02Network-specific arrangements or communication protocols supporting networked applications involving the use of web-based technology, e.g. hyper text transfer protocol [HTTP]
    • GPHYSICS
    • G06COMPUTING; 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-specific arrangements or communication protocols supporting networked applications
    • H04L67/02Network-specific arrangements or communication protocols supporting networked applications involving the use of web-based technology, e.g. hyper text transfer protocol [HTTP]
    • H04L67/025Network-specific arrangements or communication protocols supporting networked applications involving the use of web-based technology, e.g. hyper text transfer protocol [HTTP] for remote control or remote monitoring of the application
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/30Network-specific arrangements or communication protocols supporting networked applications involving profiles
    • H04L67/303Terminal profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/36Network-specific arrangements or communication protocols supporting networked applications involving the display of network or application conditions affecting the network application to the application user

Abstract

The embodiment of the present application discloses for controlling edge calculations equipment, the method and apparatus for updating the data.One specific implementation mode of this method includes:The control interface for controlling edge calculations equipment is shown by the terminal device of communication connection;Receive the control information that the terminal device is sent, wherein the control information is inputted via the control interface;Control instruction is sent to the edge calculations equipment according to the control information, data update is carried out to control the edge calculations equipment.The embodiment realizes the remote control of edge calculations equipment, reduces the cost of labor of control edge calculations equipment.

Description

For controlling edge calculations equipment, the method and apparatus for updating the data

Technical field

The invention relates to internet of things field, and in particular to for controlling edge calculations equipment, for updating The method and apparatus of data.

Background technology

In traditional Internet of Things solution, the mass data that equipment end generates needs to be uploaded to cloud server terminal, by cloud service End executes the operations such as complex task calculating, rule.Such solution, be faced with Information Security can not ensure, bandwidth at The problems such as this height, long response delay.In order to solve problem above, industrial quarters proposes the solution that edge calculations and Internet of Things are combined Scheme, close to the side of object or data source header, the opening being integrated using network, calculating, storage, application core ability is flat Platform provides most proximal end service nearby.At this stage, edge computing device can be controlled by way of artificial treatment, example Such as, compiling deployment, configuration update, program upgrading etc..

Invention content

The embodiment of the present application proposes for controlling edge calculations equipment, the method and apparatus for updating the data.

In a first aspect, the embodiment of the present application provides a kind of method for controlling edge calculations equipment, it is applied to cloud and takes Business end, this method include:The control interface for controlling edge calculations equipment is shown by the terminal device of communication connection;It receives The control information that above-mentioned terminal device is sent, wherein above-mentioned control information is inputted via above-mentioned control interface;According to above-mentioned It controls information and sends control instruction to above-mentioned edge calculations equipment, data update is carried out to control above-mentioned edge calculations equipment.

In some embodiments, the above method further includes:Receive the status information that above-mentioned edge calculations equipment reports;It will be upper It states status information and is sent to above-mentioned terminal device, so that above-mentioned terminal device is presented.

In some embodiments, above-mentioned control information includes edge calculations device configuration fresh information, wherein above-mentioned edge Computing device fresh information includes configuration update data;And it is sent to above-mentioned edge calculations equipment according to above-mentioned control information Control instruction carries out data update to control above-mentioned edge calculations equipment, including:It is updated according to above-mentioned edge calculations device configuration Information generates configuration more new command, wherein above-mentioned configuration more new command includes configuring update data in local storage address; Above-mentioned configuration more new command is sent to above-mentioned edge calculations equipment by the first data channel, for above-mentioned edge calculations equipment root Pass through the second data channel according to above-mentioned configuration more new command and obtain configuration update data, wherein above-mentioned first data channel is It is built based on MQTT agreements, above-mentioned second data channel is built based on HTTPS agreements.

In some embodiments, above-mentioned control information includes at least one of following:Edge calculations device configuration fresh information, Edge calculations equipment associate device controls information, edge calculations equipment Regulation control information, edge calculations equipment function control letter Breath.

Second aspect, the embodiment of the present application provide a kind of method for updating the data, and are applied to edge calculations equipment, Including:Receive the configuration more new command that cloud server terminal is sent by the first data channel, wherein above-mentioned first data channel is base It is built in MQTT agreements, above-mentioned configuration more new command includes the storage address for configuring update data in above-mentioned cloud server terminal; The storage address for including according to above-mentioned configuration more new command obtains above-mentioned configuration by the second data channel from above-mentioned cloud server terminal Update data, wherein above-mentioned second data channel is built based on HTTPS agreements;Use above-mentioned configuration update data Carry out configuration update.

In some embodiments, the above method further includes:Detect above-mentioned configuration update data in the process of running whether Occur abnormal;In response to detecting that exception occur in the process of running in above-mentioned configuration update data, using rollback mechanism to upper Configuration update is stated to be handled with data.

The third aspect, the embodiment of the present application provide a kind of device for controlling edge calculations equipment, are set to cloud clothes Business end, device include:Display unit is configured to show for controlling edge calculations equipment by the terminal device of communication connection Control interface;First receiving unit is configured to receive the control information that above-mentioned terminal device is sent, wherein above-mentioned control Information is inputted via above-mentioned control interface;Control unit is configured to according to above-mentioned control information to above-mentioned edge calculations Equipment sends control instruction, and data update is carried out to control above-mentioned edge calculations equipment.

In some embodiments, above-mentioned apparatus further includes:Second receiving unit, is configured to receive above-mentioned edge calculations and sets The standby status information reported;Transmission unit was configured to above-mentioned status information being sent to above-mentioned terminal device, for above-mentioned end End equipment is presented.

In some embodiments, above-mentioned control information includes edge calculations device configuration fresh information, wherein above-mentioned edge Computing device fresh information includes configuration update data;And above-mentioned control unit is further configured to:According to above-mentioned side Edge computing device configures fresh information and generates configuration more new command, wherein above-mentioned configuration more new command includes configuration update number According in local storage address;Above-mentioned configuration more new command is sent to above-mentioned edge calculations equipment by the first data channel, with Configuration update data are obtained by the second data channel according to above-mentioned configuration more new command for above-mentioned edge calculations equipment, In, above-mentioned first data channel is built based on MQTT agreements, and above-mentioned second data channel is built based on HTTPS agreements 's.

In some embodiments, above-mentioned control information includes at least one of following:Edge calculations device configuration fresh information, Edge calculations equipment associate device controls information, edge calculations equipment Regulation control information, edge calculations equipment function control letter Breath.

Fourth aspect, the embodiment of the present application provide a kind of device for updating the data, are set to edge calculations and set Standby, device includes:Instruction reception unit is configured to receive the configuration that cloud server terminal is sent by the first data channel and update to refer to It enables, wherein above-mentioned first data channel is built based on MQTT agreements, and above-mentioned configuration more new command includes configuration update number According to the storage address in above-mentioned cloud server terminal;Acquiring unit is configured to the storage for including according to above-mentioned configuration more new command Location obtains above-mentioned configuration update data by the second data channel from above-mentioned cloud server terminal, wherein above-mentioned second data channel It is built based on HTTPS agreements;Updating unit is configured to carry out configuration update with data using above-mentioned configuration update.

In some embodiments, above-mentioned apparatus further includes:Detection unit is configured to detect above-mentioned configuration update data Whether there is exception in the process of running;Rollback unit is configured in response to detect that above-mentioned configuration update data are being transported Occur exception during row, above-mentioned configuration update is handled with data using rollback mechanism.

5th aspect, the embodiment of the present application provide a kind of server, which includes:One or more processors; Storage device, for storing one or more programs, when said one or multiple programs are held by said one or multiple processors When row so that said one or multiple processors realize the method as described in any realization method in first aspect.

6th aspect, the embodiment of the present application provide a kind of edge calculations equipment, which includes:One or Multiple processors;Storage device, for storing one or more programs, when said one or multiple programs are by said one or more When a processor executes so that said one or multiple processors realize the side as described in any realization method in second aspect Method.

7th aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with computer program, In, the method as described in any realization method in first aspect is realized when which is executed by processor.

Eighth aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with computer program, In, the method as described in any realization method in second aspect is realized when which is executed by processor.

It is provided by the embodiments of the present application to be used to control edge calculations device, method and device, it is set by the terminal of communication connection Control interface of the standby displaying for controlling edge calculations equipment, the control information that then receiving terminal apparatus is sent, last basis It controls information and sends control instruction to edge calculations equipment, data update is carried out to control edge calculations equipment, to realize The remote control of edge calculations equipment reduces the cost of labor of control edge calculations equipment.

Description of the drawings

By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:

Fig. 1 is that one embodiment of the application can be applied to exemplary system architecture figure therein;

Fig. 2 is the flow chart according to one embodiment of the method for controlling edge calculations equipment of the application;

Fig. 3 is the schematic diagram according to an application scenarios of the method for controlling edge calculations equipment of the application;

Fig. 4 is the flow chart according to one embodiment of the method for updating the data of the application;

Fig. 5 is the structural schematic diagram according to one embodiment of the device for controlling edge calculations equipment of the application;

Fig. 6 is the structural schematic diagram according to one embodiment of the device for updating the data of the application;

Fig. 7 is adapted for the knot of the computer system of Cloud Server or edge calculations equipment for realizing the embodiment of the present application Structure schematic diagram.

Specific implementation mode

The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, is illustrated only in attached drawing and invent relevant part with related.

It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.

Fig. 1 is shown can be using the embodiment of the present application for controlling edge calculations equipment, the side for updating the data The exemplary system architecture 100 of method or device for controlling edge calculations equipment, for updating the data.

As shown in Figure 1, system architecture 100 may include terminal device 101, Cloud Server 102, edge calculations equipment 103, Edge calculations equipment associate device 104 and network 105,106,107.Network 105 is in terminal device 101 and Cloud Server The medium of communication link is provided between 102.Network 106 is logical to be provided between Cloud Server 102 and edge calculations equipment 103 Believe the medium of link.Network 107 is logical to be provided between edge calculations equipment 103 and edge calculations equipment associate device 104 Believe the medium of link.Network 105,106,107 may include various connection types, such as wired, wireless communication link or light Fiber-optic cable etc..

Administrative staff can be interacted with using terminal equipment 101 by network 105 and Cloud Server 102, with sending tube Manage information.Various telecommunication customer end applications can be installed, such as web browser applications, shopping class are answered on terminal device 101 With, searching class application, instant messaging tools, mailbox client, social platform software etc..

Cloud Server 102 can be interacted by network 105 and edge calculations equipment 103, to receive or send information Deng.

Edge calculations equipment 103 can be interacted by network 107 and edge calculations equipment associate device 104, to connect Receive or send information etc..

Terminal device 101 can be hardware, can also be software.Can have to show when terminal device 101 is hardware The various electronic equipments of display screen and supported web page browsing, including but not limited to smart mobile phone, tablet computer portable meter on knee Calculation machine and desktop computer etc..When terminal device 101 is software, may be mounted in above-mentioned cited electronic equipment. Multiple softwares or software module (such as providing Distributed Services) may be implemented into it, can also be implemented as single software or Software module.It is not specifically limited herein.

Cloud Server 102 can be to provide the server of various services, for example, the management field shown to terminal device 101 Face provides the background server supported, it is defeated that background server can receive the interface that administrative staff are shown by terminal device 101 The management information entered.In another example control instruction is issued to edge computing device 103, and edge computing device 103 is uploaded The background server that information is handled.

Edge calculations equipment 103 can refer to the equipment for providing various services for edge calculations equipment associate device 104, example Such as, the information uploaded to edge computing device associate device 104 calculated, analyzing processing, the electronic equipments such as storage.

Edge calculations equipment associate device 104 can refer to the networked devices being connected with edge calculations equipment 103, edge meter Various sensors can be equipped with by calculating on equipment associate device 104, and by sensor measurement to data be sent to edge calculations Equipment 103.Edge calculations equipment associate device 104 include but not limited to camera, smart television, intelligent sound box, intelligent electric lamp, Intelligent socket etc. etc..

It should be noted that the method for controlling edge calculations equipment that the embodiment of the present application is provided generally is taken by cloud Business device 102 executes, and correspondingly, the device for controlling edge calculations equipment is generally positioned in Cloud Server 102.The application is real It applies the method for updating the data that example is provided generally to be executed by edge calculations equipment 103, correspondingly, for what is updated the data Device is generally positioned in edge calculations equipment 103.

It should be understood that the terminal device in Fig. 1, Cloud Server, edge calculations equipment, edge calculations equipment associate device and Network is only schematical.According to needs are realized, can have any number of terminal device, Cloud Server, edge calculations Equipment, edge calculations equipment associate device and network.

With continued reference to Fig. 2, one embodiment of the method for controlling edge calculations equipment according to the application is shown Flow 200.The method for being used to control edge calculations equipment can be applied to cloud server terminal (such as cloud service shown in FIG. 1 Device 102), include the following steps:

Step 201, the control interface for controlling edge calculations equipment is shown by the terminal device of communication connection.

In the present embodiment, executive agent (such as the cloud service shown in FIG. 1 of the method for controlling edge calculations equipment Device 102) it can be shown by the terminal device (such as terminal device 101 shown in FIG. 1) of communication connection by controlling based on edge Calculate the control interface of equipment.As an example, the browser application that user can be installed by terminal device is checked for controlling The control interface of edge calculations equipment.As an example, above-mentioned control interface can show it is device-dependent various with edge calculations Information, for example, the configuration information of edge calculations equipment, Rule Information, function information and the edge calculations equipment pass connected Join the information of equipment.As an example, control interface can be form web page.At this moment, executive agent can be by form web page Control interface is sent to terminal device.Shown automatically by terminal device again, can also executive agent send displaying order, with control Terminal device is shown.It is understood that above-mentioned control interface could be provided as an interface, may be set to be multiple Interface.For example, when displayed content is more, multiple interfaces are may be set to be, at this point, user can be by clicking current institute Button on display interface enters other interfaces.It should be noted that the form that is particularly shown of information can root in control interface It is configured according to actual needs, does not limit herein.

In practice, above-mentioned user can refer to the administrative staff with control edge calculations equipment permission, for example, above-mentioned hold Row main body can show Authority Verification interface, the Authority Verification interface by above-mentioned terminal device before step 201 to user It can be used for acquiring the authentication information (for example, user name, password etc.) of user.Later, above-mentioned executive agent can be right The collected authentication information in rights verification interface is verified, to judge whether user has control edge calculations equipment Permission.

Step 202, the control information that receiving terminal apparatus is sent.

In the present embodiment, above-mentioned executive agent can receive the control information that above-mentioned terminal device is sent.Wherein, above-mentioned Controlling information is inputted via above-mentioned control interface.In practice, what above-mentioned user can be shown by above-mentioned terminal device Control interface input control information.Above-mentioned control information can be the control information to edge computing device.For example, control edge The update of configuration data, program, rule on computing device etc. e.g. controls the update of information forward rule.Above-mentioned control information It can also be that the control to edge computing device associate device (such as edge calculations equipment associate device 104 shown in FIG. 1) is believed Breath, for example, the access of control edge calculations equipment associate device, deletion etc..

In general, an edge calculations equipment can be established with multiple edge calculations equipment associate devices and be communicated to connect, and to more The processing such as the information that a edge calculations equipment associate device uploads calculated, analyzing processing, storage.Pass through above-mentioned terminal device The control interface that shows of browser, user can check multiple edge calculations equipment association of each edge calculations equipment connection The information of equipment, for example, the device name of each edge calculations equipment associate device, explanation, attribute etc..

In some optional realization methods of the present embodiment, above-mentioned control information may include at least one of following:Side Edge computing device configures fresh information, edge calculations equipment associate device controls information, edge calculations equipment Regulation controls information, Edge calculations equipment function controls information.

Above-mentioned edge calculations device configuration fresh information can refer to the information for updating edge calculations device configuration, side Edge computing device configuration fresh information may include configuration update data.In practice, set when user wants update edge calculations When standby upper certain configurations or program, configuration or journey to be updated are determined in the control interface that can be shown on the terminal device Sequence, and upload configuration update data, for example, configuration file, program bag etc..

Above-mentioned edge calculations equipment associate device control information can refer to for controlling edge calculations equipment associate device Information.In practice, when user want pair with edge calculations equipment communicate to connect some edge calculations equipment associate device into When row control (being disconnected for example, controlling it), the edge calculations are determined in the control interface that can be shown on the terminal device Equipment associate device, and input pin is to the control information of the edge calculations equipment associate device.

Above-mentioned edge calculations equipment Regulation control information can refer to for controlling the rule executed in edge calculations equipment Information, for example, modifying information to the rule executed on edge computing device.

Above-mentioned edge calculations equipment function control information can refer to being calculated in edge calculations equipment for controlling The information of function is calculated, for example, to the modification information of the calculating function calculated on edge computing device.

Step 203, control instruction is sent to edge calculations equipment according to the control information, to control the progress of edge calculations equipment Data update.

In the present embodiment, above-mentioned executive agent can be set according to the control information that step 202 receives to edge calculations Preparation send control instruction, and data update is carried out to control edge calculations equipment.For example, when above-mentioned control information is for controlling side When the newer information of the configuration data on edge computing device, above-mentioned executive agent can be according to the control information to edge calculations Equipment, which is sent, configures newer control instruction, and configuration data update is carried out to control edge calculations equipment.

In some optional realization methods of the present embodiment, above-mentioned control information may include edge calculations device configuration Fresh information, wherein above-mentioned edge calculations equipment fresh information may include configuration update data.Above-mentioned steps 203 can be with It is carried out especially by following steps:

First, configuration more new command is generated according to edge calculations device configuration fresh information.

Herein, above-mentioned executive agent can generate configuration more new command according to edge calculations device configuration fresh information. Wherein, above-mentioned configuration more new command may include configuring update data in local storage address.

Later, configuration more new command is sent to edge calculations equipment by the first data channel, for edge calculations equipment Configuration update data are obtained by the second data channel according to configuration more new command.

Herein, above-mentioned executive agent can send configuration update by the first data channel to above-mentioned edge calculations equipment Instruction.After above-mentioned edge calculations equipment receives configuration more new command, it can be deposited according to included in configuration more new command Address is stored up, actively goes above-mentioned executive agent to pull configuration update data by the second data channel, and used using configuration update Data are updated configuration.Above-mentioned first data channel can be based on MQTT (Message Queuing Telemetry Transport, message queue telemetering transmission) agreement builds, and above-mentioned second data channel can be based on HTTPS (Hyper Text Transfer Protocol over Secure Socket Layer) agreement builds.MQTT is an instant messaging Agreement has the characteristics that small-sized transmission, expense be small, agreement is exchanged and minimized, can reduce network flow.It, can be in practice By MQTT and SSL (Secure Sockets Layer, Secure Socket Layer)/TLS, (Transport Layer Security are passed Defeated layer safety) encryption is merged, ensure the safety of information transmission.HTTPS is with safely for the HTTP of target (HyperText Transfer Protocol, hypertext transfer protocol) channel, is briefly the safe version of HTTP, Ke Yibao Demonstrate,prove the safety of information transmission.In contrast, it is more suitable for based on the HTTPS data channel established for pulling big data, but It is higher to establish cost.

In this realization method, configuration more new command is sent by the first data channel, is pulled and is matched by the second data channel Update data are set, may be implemented to use different transport protocols according to different types of data, to reduce network overhead.

In some optional realization methods of the present embodiment, the above-mentioned method for controlling edge calculations equipment can be with Including unshowned following steps in Fig. 2:

Step 204, the status information that edge calculations equipment reports is received.

Herein, the status information that above-mentioned executive agent can be reported with the above-mentioned edge calculations equipment of real-time reception.State is believed Breath can be used for characterizing the state of edge calculations equipment, including but not limited to presence, off-line state, data update state etc. Deng.

Step 205, terminal device is sent status information to, so that terminal device is presented.

Herein, the status information received in step 204 can be sent to above-mentioned terminal device by above-mentioned executive agent, So that terminal device is presented.By this realization method, above-mentioned user can pass through terminal unit remote, real time monitoring side The state of edge computing device is more convenient to the monitoring of edge computing device thereby using family.

It is one of the application scenarios according to the present embodiment for controlling edge calculations device, methods with continued reference to Fig. 3, Fig. 3 A schematic diagram.In the application scenarios of Fig. 3, user initiates one for controlling side by the browser of terminal device 301 first The control interface browse request of edge computing device 303.It, can be with after cloud server terminal 302 receives the control interface browse request The control interface for controlling edge calculations equipment 303 is shown by terminal device 301.Then, user can be in control circle Face input control information, subsequent cloud server terminal 302 can receive the control information of the transmission of terminal device 301.Finally, cloud takes Being engaged in end 302 can be according to the control information to the transmission control instruction of edge calculations equipment 303, to control edge calculations equipment 303 Carry out data update.

The method for controlling edge calculations equipment that above-described embodiment of the application provides, realizes edge calculations equipment Remote control, reduce control edge calculations equipment cost of labor.

With further reference to Fig. 4, it illustrates the flows 400 of one embodiment of the method for updating the data.This is used for The flow 400 of the method updated the data, can be applied to edge calculations equipment, includes the following steps:

Step 401, the configuration more new command that cloud server terminal is sent by the first data channel is received.

In the present embodiment, executive agent (such as the edge calculations equipment shown in FIG. 1 of the method for updating the data 103) configuration that can be sent by the first data channel by receiving cloud server terminal (such as Cloud Server 102 shown in FIG. 1) More new command.Above-mentioned configuration more new command includes the storage address for configuring update data in above-mentioned cloud server terminal.Above-mentioned first Data channel can be built based on MQTT agreements.

Step 402, the storage address for including according to configuration more new command is obtained by the second data channel from cloud server terminal Configure update data.

In the present embodiment, above-mentioned executive agent can pass through according to storage address included in configuration more new command Second data channel obtains configuration update data from above-mentioned cloud server terminal.Above-mentioned second data channel can be based on HTTPS What agreement was built.

Step 403, using configuration update configuration update is carried out with data.

In the present embodiment, above-mentioned executive agent can use the configuration update obtained in step 402 to be matched with data Set update.

In some optional realization methods of the present embodiment, the above-mentioned method for updating the data can also include Fig. 4 In unshowned following steps:

Step 404, whether detection configuration update data there is exception in the process of running.

Herein, above-mentioned executive agent can detect whether above-mentioned configuration update data occur in the process of running in real time It is abnormal.For example, after being updated the data according to above-mentioned configuration and carrying out configuration update, information processing or information cannot be carried out by detecting Occurs miscue in processing procedure, at this point it is possible to which it is different to determine whether detection configuration update data occur in the process of running Often.

Step 405, in response to detecting that exception occur in the process of running in configuration update data, using rollback mechanism pair Configuration update is handled with data.

Herein, in response to detecting that exception, above-mentioned execution master occur in the process of running in above-mentioned configuration update data Body may be used rollback mechanism and be handled with data above-mentioned configuration update.Herein, rollback (Rollback) refers to program Or data processing mistake, program or data are restored to the behavior of last correct status.This realization method ensure that edge meter When calculating device configuration update appearance exception, the normal operation of edge calculations equipment.

The method for updating the data that above-described embodiment of the application provides, realizes edge calculations configuration data of device Automatically update.In addition, receiving configuration more new command by the first data channel, configuration update is pulled by the second data channel With data, realizes and different transport protocols is used according to different types of data, to reduce network overhead.

With further reference to Fig. 5, as the realization to method shown in Fig. 2, this application provides one kind by controlling based on edge One embodiment of the device of equipment is calculated, which is set to cloud server terminal, which implements with method shown in Fig. 2 Example is corresponding, which specifically can be applied in various electronic equipments.

As shown in figure 5, the device 500 for controlling edge calculations equipment of the present embodiment includes:Display unit 501, One receiving unit 502 and control unit 503.Wherein, display unit 501 is configured to show by the terminal device of communication connection Control interface for controlling edge calculations equipment;First receiving unit 502 is configured to receive what above-mentioned terminal device was sent Control information, wherein above-mentioned control information is inputted via above-mentioned control interface;Control unit 503 is configured to according to upper It states control information and sends control instruction to above-mentioned edge calculations equipment, data update is carried out to control above-mentioned edge calculations equipment.

In the present embodiment, the display unit 501 of the device 500 for controlling edge calculations equipment, the first receiving unit 502 and control unit 503 it is specific processing and its caused technique effect can be respectively with reference to step in 2 corresponding embodiment of figure 201, the related description of step 202 and step 203, details are not described herein.

In some optional realization methods of the present embodiment, above-mentioned apparatus 500 can also include:Second receiving unit (not shown) is configured to receive the status information that above-mentioned edge calculations equipment reports;Transmission unit (not shown), It is configured to above-mentioned status information being sent to above-mentioned terminal device, so that above-mentioned terminal device is presented.

In some optional realization methods of the present embodiment, above-mentioned control information includes the update of edge calculations device configuration Information, wherein above-mentioned edge calculations equipment fresh information includes configuration update data;And above-mentioned control unit 503 into one Step is configured to:Configuration more new command is generated according to above-mentioned edge calculations device configuration fresh information, wherein above-mentioned configuration update Instruction includes configuring update data in local storage address;It is sent to above-mentioned edge calculations equipment by the first data channel Above-mentioned configuration more new command, so that above-mentioned edge calculations equipment is obtained according to above-mentioned configuration more new command by the second data channel Configure update data, wherein above-mentioned first data channel is built based on MQTT agreements, and above-mentioned second data channel is base It is built in HTTPS agreements.

In some optional realization methods of the present embodiment, above-mentioned control information includes at least one of following:Edge meter Calculate device configuration fresh information, edge calculations equipment associate device control information, edge calculations equipment Regulation control information, edge Computing device function controls information.

With further reference to Fig. 6, as the realization to method shown in above-mentioned Fig. 4, this application provides one kind for updating number According to device one embodiment, which is set to edge calculations equipment, and device embodiment method as shown in fig. 4 is implemented Example is corresponding, which specifically can be applied in various electronic equipments.

As shown in fig. 6, the device 600 for updating the data of the present embodiment includes:Instruction reception unit 601 obtains list Member 602 and updating unit 603.Wherein, instruction reception unit 601 be configured to receive cloud server terminal sent out by the first data channel The configuration sent more new command, wherein above-mentioned first data channel is built based on MQTT agreements, above-mentioned configuration more new command packet Include the storage address for configuring update data in above-mentioned cloud server terminal;Acquiring unit 602 is configured to be updated according to above-mentioned configuration The storage address that instruction includes obtains above-mentioned configuration update data by the second data channel from above-mentioned cloud server terminal, wherein Above-mentioned second data channel is built based on HTTPS agreements;Updating unit 603 is configured to using above-mentioned configuration update number According to carrying out configuration update.

In the present embodiment, the instruction reception unit 601 of the device 600 for updating the data, acquiring unit 602 and update The specific processing of unit 603 and its caused technique effect can be respectively with reference to step 402, steps 402 in 4 corresponding embodiment of figure With the related description of step 403, details are not described herein.

In some optional realization methods of the present embodiment, above-mentioned apparatus further includes:Detection unit (not shown), It is configured to detect whether above-mentioned configuration update data exception occur in the process of running;Rollback unit (not shown), It is configured in response to detect that exception occur in the process of running in above-mentioned configuration update data, using rollback mechanism to above-mentioned Configuration update is handled with data.

Below with reference to Fig. 7, it illustrates suitable for for realizing the Cloud Server or edge calculations equipment of the embodiment of the present application Computer system 700 structural schematic diagram.Cloud Server or edge calculations equipment shown in Fig. 7 are only an example, no The function and use scope for coping with the embodiment of the present application bring any restrictions.

As shown in fig. 7, computer system 700 includes central processing unit (CPU, Central Processing Unit) 701, it can be according to the program being stored in read-only memory (ROM, Read Only Memory) 702 or from storage section 706 programs being loaded into random access storage device (RAM, Random Access Memory) 703 and execute various appropriate Action and processing.In RAM 703, also it is stored with system 700 and operates required various programs and data.CPU 701,ROM 702 and RAM 703 is connected with each other by bus 704.Input/output (I/O, Input/Output) interface 705 is also connected to Bus 704.

It is connected to I/O interfaces 705 with lower component:Storage section 706 including hard disk etc.;And including such as LAN (locals Net, Local Area Network) card, modem etc. network interface card communications portion 707.Communications portion 707 passes through Communication process is executed by the network of such as internet.Driver 708 is also according to needing to be connected to I/O interfaces 705.Detachable media 709, such as disk, CD, magneto-optic disk, semiconductor memory etc., as needed be mounted on driver 708 on, in order to from The computer program read thereon is mounted into storage section 706 as needed.

Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed by communications portion 707 from network, and/or from detachable media 709 are mounted.When the computer program is executed by central processing unit (CPU) 701, limited in execution the present processes Above-mentioned function.

It should be noted that computer-readable medium described herein can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two arbitrarily combines.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or arbitrary above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to:Electrical connection with one or more conducting wires, just It takes formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type and may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In this application, can be any include computer readable storage medium or storage journey The tangible medium of sequence, the program can be commanded the either device use or in connection of execution system, device.And at this In application, computer-readable signal media may include in a base band or as the data-signal that a carrier wave part is propagated, Wherein carry computer-readable program code.Diversified forms may be used in the data-signal of this propagation, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By instruction execution system, device either device use or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to:Wirelessly, electric wire, optical cable, RF etc. or above-mentioned Any appropriate combination.

The calculating of the operation for executing the application can be write with one or more programming languages or combinations thereof Machine program code, described program design language include object oriented program language-such as Java, Smalltalk, C+ +, further include conventional procedural programming language-such as " C " language or similar programming language.Program code can Fully to execute on the user computer, partly execute, executed as an independent software package on the user computer, Part executes or executes on a remote computer or server completely on the remote computer on the user computer for part. In situations involving remote computers, remote computer can pass through the network of any kind --- including LAN (LAN) Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service Provider is connected by internet).

Flow chart in attached drawing and block diagram, it is illustrated that according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part for a part for one module, program segment, or code of table, the module, program segment, or code includes one or more uses The executable instruction of the logic function as defined in realization.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, this is depended on the functions involved.Also it to note Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.

Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit can also be arranged in the processor, for example, can be described as:A kind of processor packet Include display unit, the first receiving unit and control unit.Wherein, the title of these units is not constituted to this under certain conditions The restriction of unit itself, for example, display unit is also described as " showing for controlling by the terminal device of communication connection The unit of the control interface of edge calculations equipment ".

As on the other hand, present invention also provides a kind of computer-readable medium, which can be Included in device described in above-described embodiment;Can also be individualism, and without be incorporated the device in.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the device so that should Device:The control interface for controlling edge calculations equipment is shown by the terminal device of communication connection;Above-mentioned terminal is received to set The control information that preparation is sent, wherein above-mentioned control information is inputted via above-mentioned control interface;According to above-mentioned control information to Above-mentioned edge calculations equipment sends control instruction, and data update is carried out to control above-mentioned edge calculations equipment.

As on the other hand, present invention also provides a kind of computer-readable medium, which can be Included in device described in above-described embodiment;Can also be individualism, and without be incorporated the device in.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the device so that should Device:Receive the configuration more new command that cloud server terminal is sent by the first data channel, wherein above-mentioned first data channel is base It is built in MQTT agreements, above-mentioned configuration more new command includes the storage address for configuring update data in above-mentioned cloud server terminal; The storage address for including according to above-mentioned configuration more new command obtains above-mentioned configuration by the second data channel from above-mentioned cloud server terminal Update data, wherein above-mentioned second data channel is built based on HTTPS agreements;Use above-mentioned configuration update data Carry out configuration update.

Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.People in the art Member should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Other technical solutions of arbitrary combination and formation.Such as features described above has similar work(with (but not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (16)

1. a kind of method for controlling edge calculations equipment is applied to cloud server terminal, including:
The control interface for controlling edge calculations equipment is shown by the terminal device of communication connection;
Receive the control information that the terminal device is sent, wherein the control information is inputted via the control interface;
Control instruction is sent to the edge calculations equipment according to the control information, is carried out with controlling the edge calculations equipment Data update.
2. according to the method described in claim 2, wherein, the method further includes:
Receive the status information that the edge calculations equipment reports;
The status information is sent to the terminal device, so that the terminal device is presented.
3. according to the method described in claim 1, wherein, the control information includes edge calculations device configuration fresh information, The edge calculations equipment fresh information includes configuration update data;And
Control instruction is sent to the edge calculations equipment according to the control information, is carried out with controlling the edge calculations equipment Data update, including:
Configuration more new command is generated according to the edge calculations device configuration fresh information, wherein the configuration more new command packet Configuration update data are included in local storage address;
The configuration more new command is sent to the edge calculations equipment by the first data channel, so that the edge calculations are set It is standby that configuration update data are obtained by the second data channel according to the configuration more new command, wherein first data are logical Road is built based on MQTT agreements, and second data channel is built based on HTTPS agreements.
4. according to the method described in claim 1, wherein, the control information includes at least one of following:
Edge calculations device configuration fresh information, edge calculations equipment associate device control information, edge calculations equipment Regulation control Information processed, edge calculations equipment function control information.
5. a kind of method for updating the data is applied to edge calculations equipment, including:
Receive the configuration more new command that cloud server terminal is sent by the first data channel, wherein first data channel is base It is built in MQTT agreements, the configuration more new command includes the storage address for configuring update data in the cloud server terminal;
The storage address for including according to the configuration more new command is by the second data channel from described in cloud server terminal acquisition Configure update data, wherein second data channel is built based on HTTPS agreements;
Using the configuration update configuration update is carried out with data.
6. according to the method described in claim 5, wherein, the method further includes:
Detect whether the configuration update data exception occur in the process of running;
In response to detecting that exception occur in the process of running in the configuration update data, using rollback mechanism to the configuration Update is handled with data.
7. a kind of device for controlling edge calculations equipment is set to cloud server terminal, including:
Display unit is configured to show control circle for controlling edge calculations equipment by the terminal device of communication connection Face;
First receiving unit is configured to receive the control information that the terminal device is sent, wherein the control information be through It is inputted by the control interface;
Control unit is configured to send control instruction to the edge calculations equipment according to the control information, to control It states edge calculations equipment and carries out data update.
8. device according to claim 7, wherein described device further includes:
Second receiving unit is configured to receive the status information that the edge calculations equipment reports;
Transmission unit is configured to the status information being sent to the terminal device, so that the terminal device is presented.
9. device according to claim 7, wherein the control information includes edge calculations device configuration fresh information, The edge calculations equipment fresh information includes configuration update data;And
Described control unit is further configured to:
Configuration more new command is generated according to the edge calculations device configuration fresh information, wherein the configuration more new command packet Configuration update data are included in local storage address;
The configuration more new command is sent to the edge calculations equipment by the first data channel, so that the edge calculations are set It is standby that configuration update data are obtained by the second data channel according to the configuration more new command, wherein first data are logical Road is built based on MQTT agreements, and second data channel is built based on HTTPS agreements.
10. device according to claim 7, wherein the control information includes at least one of following:
Edge calculations device configuration fresh information, edge calculations equipment associate device control information, edge calculations equipment Regulation control Information processed, edge calculations equipment function control information.
11. a kind of device for updating the data is set to edge calculations equipment, including:
Instruction reception unit is configured to receive the configuration more new command that cloud server terminal is sent by the first data channel, wherein First data channel is built based on MQTT agreements, and the configuration more new command includes configuration update data described The storage address of cloud server terminal;
Acquiring unit is configured to according to the configuration more new command storage address that includes through the second data channel from described Cloud server terminal obtains the configuration update data, wherein second data channel is built based on HTTPS agreements;
Updating unit is configured to carry out configuration update with data using the configuration update.
12. according to the devices described in claim 11, wherein described device further includes:
Detection unit is configured to detect whether the configuration update data exception occur in the process of running;
Rollback unit is configured in response to detect that exception occur in the process of running in the configuration update data, uses Rollback mechanism handles the configuration update with data.
13. a kind of server, including:
One or more processors;
Storage device is stored thereon with one or more programs,
When one or more of programs are executed by one or more of processors so that one or more of processors are real The now method as described in any in claim 1-4.
14. a kind of edge calculations equipment, including:
One or more processors;
Storage device is stored thereon with one or more programs;
When one or more of programs are executed by one or more of processors so that one or more of processors are real The now method as described in any in claim 5-6.
15. a kind of computer-readable medium, is stored thereon with computer program, wherein real when described program is executed by processor The now method as described in any in claim 1-4.
16. a kind of computer-readable medium, is stored thereon with computer program, wherein real when described program is executed by processor The now method as described in any in claim 5-6.
CN201810550649.9A 2018-05-31 2018-05-31 For controlling edge calculations equipment, the method and apparatus for updating the data CN108769214A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810550649.9A CN108769214A (en) 2018-05-31 2018-05-31 For controlling edge calculations equipment, the method and apparatus for updating the data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810550649.9A CN108769214A (en) 2018-05-31 2018-05-31 For controlling edge calculations equipment, the method and apparatus for updating the data

Publications (1)

Publication Number Publication Date
CN108769214A true CN108769214A (en) 2018-11-06

Family

ID=64001518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810550649.9A CN108769214A (en) 2018-05-31 2018-05-31 For controlling edge calculations equipment, the method and apparatus for updating the data

Country Status (1)

Country Link
CN (1) CN108769214A (en)

Citations (8)

* 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
CN104836848A (en) * 2015-04-14 2015-08-12 闪联信息技术工程中心有限公司 Method for remotely upgrading intelligent household electrical appliances
CN105744008A (en) * 2016-05-11 2016-07-06 百度在线网络技术(北京)有限公司 Intelligent home platform, and system updating method and device applied to intelligent home platform
US20170060574A1 (en) * 2015-08-27 2017-03-02 FogHorn Systems, Inc. Edge Intelligence Platform, and Internet of Things Sensor Streams System
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
CN107925850A (en) * 2015-08-28 2018-04-17 高通股份有限公司 Carry out augmented reality using small cell

Patent Citations (8)

* 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
CN104836848A (en) * 2015-04-14 2015-08-12 闪联信息技术工程中心有限公司 Method for remotely upgrading intelligent household electrical appliances
US20170060574A1 (en) * 2015-08-27 2017-03-02 FogHorn Systems, Inc. Edge Intelligence Platform, and Internet of Things Sensor Streams System
CN107925850A (en) * 2015-08-28 2018-04-17 高通股份有限公司 Carry out augmented reality using small cell
CN105744008A (en) * 2016-05-11 2016-07-06 百度在线网络技术(北京)有限公司 Intelligent home platform, and system updating method and device applied to intelligent home platform
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

Similar Documents

Publication Publication Date Title
JP5534520B2 (en) System and method for browser-based access to smart cards
US9826045B2 (en) Efficient means to test server generated applications on mobile device
US9858174B2 (en) Updatable native mobile application for testing new features
US20100094996A1 (en) System and method for a server-based files and tasks brokerage
US20130332524A1 (en) Data service on a mobile device
US20160092179A1 (en) High performant ios template based application build system
US10073679B2 (en) Efficient and intuitive databinding for mobile applications
US20140289366A1 (en) Service providing method and system for instance hosting
US10419514B2 (en) Discovery of federated logins
US8024446B2 (en) MILARRS systems and methods
US20130297973A1 (en) Automated Conformance and Interoperability Test Lab
US20150288682A1 (en) Systems and methods for digital workflow and communication
CN103733198A (en) Stream application performance monitoring metrics
JP2018523244A (en) UI state restoration in transaction system
EP2220571B1 (en) Method and apparatus for providing api service and making api mash-up, and computer readable recording medium thereof
EP2682863A1 (en) Installing applications remotely
WO2016049626A1 (en) Efficient and intuitive databinding for mobile applications
CN105765923B (en) The method of the connection of client to non-managed service is provided in client-server remote access system
CN105593835B (en) Multiple second level clouds are managed by main cloud service manager
CN104838630B (en) Application program management based on strategy
EP3213199A1 (en) Json stylesheet language transformation
US9531637B2 (en) System, apparatus, and methods for server and computer interaction via web cookies
US10123153B2 (en) Systems and methods for portable storage devices
CN102810090A (en) Gateway Data Distribution Engine
CN104169835B (en) Nullified from the center of multiple websites

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