CN109936609A - Terminal chain type upgrade method, device and updating and management server - Google Patents

Terminal chain type upgrade method, device and updating and management server Download PDF

Info

Publication number
CN109936609A
CN109936609A CN201711371086.9A CN201711371086A CN109936609A CN 109936609 A CN109936609 A CN 109936609A CN 201711371086 A CN201711371086 A CN 201711371086A CN 109936609 A CN109936609 A CN 109936609A
Authority
CN
China
Prior art keywords
terminal
upgraded
upgrade
updating
management server
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.)
Granted
Application number
CN201711371086.9A
Other languages
Chinese (zh)
Other versions
CN109936609B (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.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies 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 Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201711371086.9A priority Critical patent/CN109936609B/en
Publication of CN109936609A publication Critical patent/CN109936609A/en
Application granted granted Critical
Publication of CN109936609B publication Critical patent/CN109936609B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a kind of terminal chain type upgrade method, device and updating and management servers.Wherein, the described method includes: terminal device is after the description information for receiving the transmission of updating and management server, with the matched terminal device of the description information as terminal to be upgraded to the first response message of updating and management server feedback, so that updating and management server determines the preferred equipment cluster including at least two terminals to be upgraded.Multiple upgrade components in upgrade package are distributed to each of preferred equipment cluster terminal to be upgraded by updating and management server again.After terminal to be upgraded receives the upgrade command of updating and management server transmission, according to upgrade components inventory upgrade components needed for requesting upgrading in other terminal devices communicated to connect with the terminal to be upgraded.To ensure all terminals to be upgraded finally available all upgrade components, and then improve the success rate of upgrading.It improves as network fluctuation influence caused by transmission process.

Description

Terminal chain type upgrade method, device and updating and management server
Technical field
The present invention relates to internet of things field, in particular to a kind of terminal chain type upgrade method, device and upgrading Management server.
Background technique
Internet of Things is the important component of generation information technology, and the important development stage in " informationization " epoch. The increasingly intelligent update for be unableing to do without each of Internet of Things, software upgrading is most important one link.And Internet of Things It is the connected network of an object object, connects a large amount of equipment in network, therefore, batch upgrade becomes main upgrading mode.
In the related technology, the mode of batch upgrade be updating and management server by upgrade package be sent to equipment carry out it is excellent First upgrade.It reinforms the equipment that other do not upgrade and uses multicast upgrading.All equipment not upgraded are added to upgrading multicast group, by The equipment preferentially upgraded sends upgrade package into the multicast group, and the equipment not upgraded so that other are all passes through multicast message Receive update version document.But this mode is simultaneously unreliable, once the equipment for network fluctuation occur or preferentially upgrading goes offline Situations such as, the equipment that residue does not upgrade can not receive complete version file, and upgrading is caused to fail.Simultaneously as preferential rise The equipment of grade can not also learn concrete condition, can not carry out upgrade package re-transmission.Cause upgrade package transmission efficiency is low and is final The problems such as success rate for upgrading is not high.
Summary of the invention
The purpose of the present invention is to provide a kind of terminal chain type upgrade method, device and updating and management servers, to change When kind batch upgrade multiple terminal devices, the problems such as upgrade package efficiency of transmission and low success rate for upgrading.
To achieve the goals above, technical solution used in the embodiment of the present invention is as follows:
In a first aspect, being applied to version updating system, institute the embodiment of the invention provides a kind of terminal chain type upgrade method The system of stating includes the updating and management server communicated to connect between each other and multiple terminal devices, which comprises the liter Grade management server sends the corresponding description information of upgrade package to terminal device described in each, and the description information includes described The corresponding Version Description information of upgrade package and upgrade components inventory;The terminal device is after receiving the description information, inspection Survey the terminal device whether with the Version Description information matches;When matching, then the terminal device is as to be upgraded Terminal is to first response message of updating and management server feedback;The updating and management server is according to described the received One response message determines the preferred equipment cluster including at least two terminals to be upgraded;The updating and management server is by the upgrading It is to be upgraded that the corresponding multiple upgrade components of upgrade components inventory described in Bao Zhongyu are distributed to each of described preferred equipment cluster Terminal;After the terminal to be upgraded receives the upgrade command that the updating and management server is sent, according to the upgrading group Part inventory is soft to carry out from upgrade components needed for request upgrading in other terminal devices communicated to connect with the terminal to be upgraded Part upgrading.
Second aspect, the embodiment of the invention provides a kind of terminal chain type upgrade methods, are applied to updating and management server, The updating and management server and multiple terminal devices communicate to connect, which comprises send out to terminal device described in each Send upgrade package corresponding description information, the description information includes the corresponding Version Description information of the upgrade package and upgrade components Inventory;Receive the first response message of the terminal to be upgraded feedback in the terminal device, wherein the terminal to be upgraded and institute State Version Description information matches;Determine to include the excellent of at least two terminals to be upgraded according to first response message received Optional equipment cluster;Multiple upgrade components corresponding with the upgrade components inventory in the upgrade package are distributed to the preferred equipment Each of cluster terminal to be upgraded;Upgrade command is sent to the terminal to be upgraded, so that the terminal to be upgraded is according to institute Upgrade components inventory required upgrade components of request upgrading from other terminal devices communicated to connect with the terminal to be upgraded are stated, To carry out software upgrading.
The third aspect, the embodiment of the invention provides a kind of terminal chain type update devices, are applied to updating and management server, The updating and management server and multiple terminal devices communicate to connect, and described device includes: sending module, are used for each institute It states terminal device and sends the corresponding description information of upgrade package, the description information includes the corresponding Version Description letter of the upgrade package Breath and upgrade components inventory;Receiving module, for receiving the first response letter of the feedback of the terminal to be upgraded in the terminal device Breath, wherein the terminal to be upgraded and the Version Description information matches;Determining module, for according to described the received One response message determines the preferred equipment cluster including at least two terminals to be upgraded;Distribution module, being used for will be in the upgrade package Multiple upgrade components corresponding with the upgrade components inventory are distributed to each of preferred equipment cluster terminal to be upgraded; Sending module is also used to send upgrade command to the terminal to be upgraded, so that the terminal to be upgraded is according to the upgrading group Part inventory is soft to carry out from upgrade components needed for request upgrading in other terminal devices communicated to connect with the terminal to be upgraded Part upgrading.
Fourth aspect, the embodiment of the invention provides a kind of updating and management server, the updating and management server and more A terminal equipment in communication connection, the updating and management server includes: memory;Processor;And terminal chain type update device, The software that the terminal chain type update device is installed in the memory and is executed including one or more by the processor Functional module group, the terminal chain type update device includes: sending module, for sending upgrade package to terminal device described in each Corresponding description information, the description information include the corresponding Version Description information of the upgrade package and upgrade components inventory;It connects Module is received, for receiving the first response message of the feedback of the terminal to be upgraded in the terminal device, wherein the end to be upgraded End and the Version Description information matches;Determining module includes extremely for determining according to first response message received The preferred equipment cluster of few two terminals to be upgraded;Distribution module, for by the upgrade package with the upgrade components inventory pair The multiple upgrade components answered are distributed to each of preferred equipment cluster terminal to be upgraded;Sending module is also used to institute State terminal to be upgraded and send upgrade command so that the terminal to be upgraded according to the upgrade components inventory from the end to be upgraded Upgrade components needed for request upgrading in other terminal devices of communication connection are held, to carry out software upgrading.
Compared with prior art, a kind of terminal chain type upgrade method provided by the invention.This method is managed by the upgrading It manages server and sends the corresponding description information of upgrade package to terminal device described in each, and according to receive and description information The first response messages of terminal to be upgraded feedback of Version Description information matches determine to include at least two terminals to be upgraded Preferred equipment cluster, and multiple upgrade components corresponding with upgrade components inventory in the upgrade package are distributed to the preferred equipment Each of cluster terminal to be upgraded upgrades failure caused by avoiding the terminal device individually preferentially upgraded from once going offline.Work as institute State after terminal to be upgraded receives the upgrade command that the updating and management server is sent, according to the upgrade components inventory from Upgrade components needed for request upgrading in other terminal devices of the terminal communication connection to be upgraded, to carry out software upgrading.Often A terminal to be upgraded according to the upgrade components actually obtained the case where to upgrade components needed for other premises equipment requests, with Ensure all terminals to be upgraded finally available all upgrade components, and then improves the success rate of upgrading.Meanwhile it will rise The mode that grade packet is divided into upgrade components is distributed, and to reduce the occupancy for transmitting upgrade components Time Bandwidth between terminal device, is also improved Since network fluctuation is influenced caused by transmission process.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is a kind of structural schematic diagram of version updating system provided in an embodiment of the present invention.
Fig. 2 is the structural schematic diagram of updating and management server shown in Fig. 1.
Fig. 3 is a kind of step flow chart of terminal chain type upgrade method provided in an embodiment of the present invention.
Fig. 4 is a kind of timing diagram of terminal chain type upgrade method provided in an embodiment of the present invention.
Fig. 5 provides a kind of the step of terminal chain type upgrade method applied to updating and management server for the embodiment of the present invention Flow chart.
Fig. 6 is a kind of schematic diagram of terminal chain type update device provided in an embodiment of the present invention.
Icon: 100- updating and management server;111- memory;112- processor;113- communication unit;200- terminal is set It is standby;300- version updating system;400- terminal chain type update device;401- sending module;402- receiving module;403- determines mould Block;404- distribution module.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
In the related technology, the equipment in same more new system is mainly incited somebody to action by upgrade server in progress batch upgrade Upgrade package is sent to an equipment and is preferentially upgraded.Reinform the equipment that other do not upgrade and the apparatus assembly group preferentially upgraded Broadcast group.Upgrade package is sent to the equipment not upgraded from the equipment preferentially upgraded, the equipment not upgraded so that other are all passes through group Broadcast message sink upgrade package.But this mode, on the one hand, unreliable since multicast message is transmitted with UDP format.On the other hand, Once situations such as equipment for network fluctuation occur or preferentially upgrading goes offline all can cause the equipment not upgraded that can not receive Complete version file, and then upgrading is caused to fail.Simultaneously as the equipment preferentially upgraded can not also learn concrete condition, It not can be carried out upgrade package re-transmission, make entire escalation process inefficiency.Therefore, the present invention provides a kind of terminal chain type upgrading sides Method, device and updating and management server improve upgrade package efficiency of transmission and success rate for upgrading, reduce the property of updating and management server Energy pressure, escalation process are quick, safely controllable.
Referring to FIG. 1, a kind of version updating system 300 provided in an embodiment of the present invention.The version updating system 300 is wrapped Include the updating and management server 100 communicated to connect between each other and multiple terminal devices 200.Specifically, the updating and management clothes Business device 100 and each terminal device 200 communicate to connect, and are the terminal device 200 that updating and management server 100 communicates to connect In each terminal device 200 with other terminal devices 200 communicate to connect.
Above-mentioned terminal device 200, which can be, to be needed to have from what the acquisition of updating and management server 100 upgrade package was upgraded Data acquisition, data processing function equipment.For the convenience of description, in embodiments of the present invention, can be with terminal device 200 It is illustrated for video camera IPC and hard disk video recorder NVR.
It referring to figure 2., is the block diagram of above-mentioned updating and management server 100.The updating and management server 100 wraps Include terminal chain type update device 400, memory 111, processor 112 and communication unit 113.
The memory 111, processor 112 and each element of communication unit 113 are directly or indirectly electrical between each other Connection, to realize the transmission or interaction of data.For example, these elements can pass through one or more communication bus or letter between each other Number line, which is realized, to be electrically connected.The terminal chain type update device 400 includes at least one can be with software or firmware (Firmware) Form be stored in the memory 111 or be solidificated in the operating system (Operating of the updating and management server 100 System, OS) in software function module.The processor 112 is for executing the executable mould stored in the memory 111 Block, such as software function module and computer program etc. included by the terminal chain type update device 400.
Wherein, the memory 111 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..Wherein, memory 111 is for storing program or data.The communication unit 113 is for passing through institute The communication connection that network is established between the updating and management server 100 and other communication terminals is stated, and for passing through the net Network sending and receiving data.
It should be understood that structure shown in Fig. 2 is only the structural schematic diagram of updating and management server 100, the upgrading Management server 100 may also include the more perhaps less component than shown in Fig. 2 or match with different from shown in Fig. 2 It sets.Each component shown in Fig. 2 can be realized using hardware, software, or its combination.
First embodiment
Referring to FIG. 3, Fig. 3 is a kind of flow chart for terminal chain type upgrade method that present pre-ferred embodiments provide.It answers For version updating system 300 shown in FIG. 1.Above-mentioned terminal chain type upgrade method the following steps are included:
Step S101, updating and management server 100 send the corresponding description letter of upgrade package to each terminal device 200 Breath.
In embodiments of the present invention, foregoing description information includes the corresponding Version Description information of the upgrade package and upgrading group Part inventory.Above-mentioned Version Description information includes the information such as version number information, applicable model, digital signature.Above-mentioned upgrade components are clear Single includes the information for constituting multiple upgrade components of upgrade package, for example, the number of upgrade components, the title of each upgrade components, Inspection data etc..It is alternatively possible to which foregoing description information is sent to and the updating and management server 100 by way of multicast All terminal devices 200 of communication connection.
Step S102, the terminal device 200 after receiving description information, detect the terminal device 200 whether with The Version Description information matches.
In embodiments of the present invention, each receives the terminal device 200 of the description information to Version Description information Checked, for example, verification version number information whether be higher than current version number, verification applicable model it is whether consistent with itself, Whether check figures signature is also effective.If passing through verification, then it represents that the Version Description information is matched with the terminal device 200.? It is exactly that the corresponding upgrade package of the description information is suitable for the terminal device 200.
Step S103, when matching, then the terminal device 200 is used as terminal to be upgraded to the updating and management service Device 100 feeds back the first response message.
In embodiments of the present invention, with the successful terminal device 200 of above-mentioned Version Description information matches then as to be upgraded Terminal feeds back the first response message to updating and management server 100.Preferably, above-mentioned terminal to be upgraded can be born according to current It carries data and generates corresponding first response message.Above-mentioned load data can be, but not limited to, and to include that the equipment is current connect Connect number of resources threshold value, residual capacity threshold value etc..
Do not ignore the description information then with the successful terminal device 200 of above-mentioned Version Description information matches, does not respond.
Step S104, updating and management server 100 determined according to the first response message for receiving include at least two to The preferred equipment cluster of upgrading terminals.
In embodiments of the present invention, updating and management server 100 according to the first response message of each received and its Corresponding response speed calculates corresponding priority parameter when the response that each corresponds to terminal to be upgraded.As a kind of fact side Formula, can calculate priority parameter according to the preparatory weighted value for assigning response time and the first response message, and all weighted values Be 1.For example, preset the corresponding weighted value of response speed be 50%, can the corresponding weighted value of connection resource number threshold value be 30%, the corresponding weighted value of residual capacity threshold value is 20%, then its corresponding priority parameter be=30%* can connection resource number threshold Value+20%* residual capacity threshold value+50%* response speed.
It treats upgrading terminals from high to low according to priority parameter to be ranked up, by end to be upgraded before the specified ranking of arrangement End is used as preparatory device cluster.Above-mentioned specified ranking can be determined according to total number of terminals to be upgraded and preset ratio, and be not less than two. For example, total number of terminals to be upgraded is 100, preset ratio 30%, then specifying ranking is 30, that is, is arranged according to priority parameter It is listed in composition preferred equipment cluster in first 30 terminals to be upgraded.It should be noted that such as according to total number of terminals to be upgraded and in advance If ratio-dependent specifies ranking less than 2, its value is set to 2.To ensure, though occur in preferred equipment cluster one it is to be upgraded Terminal fault will not influence entire escalation process.
Step S105, the updating and management server 100 will be corresponding multiple with the upgrade components inventory in upgrade package Upgrade components are distributed to each of preferred equipment cluster terminal to be upgraded.
In the present embodiment, upgrade package exists in the form of multiple upgrade components.Multiple upgrade components are distributed to described The mode of each of preferred equipment cluster terminal to be upgraded may is that the corresponding upgrading of the upgrade package according to preset rules Component is distributed to each of preferred equipment cluster terminal to be upgraded, so that each of described preferred equipment cluster is wait rise Grade terminal receives at least one upgrade components, and the same upgrade components are at least sent to two in the preferred equipment cluster A different terminal to be upgraded.Preset rules can be but be not limited to, conditional poll, conditional random and according to excellent The receivable resource quantity of each of optional equipment cluster terminal to be upgraded is allocated.For example, can be by multiple upgrade components In a manner of poll, it is sent to according to corresponding receivable resource quantity to each of preferred equipment cluster terminal to be upgraded Few upgrade components, repeat at least 2 times.
Step S106, updating and management server 100 send upgrade command to terminal to be upgraded.
In embodiments of the present invention, it can be and complete in the updating and management server 100 to multiple liters in upgrade package After the distribution of level assembly, upgrade command is sent to terminal to be upgraded.
Step S107, after the terminal to be upgraded receives the upgrade command that the updating and management server 100 is sent, According to the upgrade components inventory needed for request upgrading in other terminal devices 200 communicated to connect with the terminal to be upgraded Upgrade components.
In embodiments of the present invention, upgrade components needed for above-mentioned upgrading can be terminal to be upgraded and complete description information pair The upgrade components that the upgrading answered also lacks.For terminal to be upgraded, upgrading required upgrade components is to record in description information There are none obtained upgrade components.
As an implementation, the liter that the updating and management server 100 is sent is received in the terminal to be upgraded After grade instruction, it can be checked whether according to the upgrade components inventory and obtain corresponding all upgrade components.If to Upgrading terminals do not obtain corresponding all upgrade components, then determine needed for the upgrading according to the upgrade components inventory Upgrade components, and generate corresponding with upgrade components needed for upgrading described in each acquisition request.For example, can be according to liter Upgrade components corresponding inspection data in description information, generates acquisition request needed for grade.The terminal to be upgraded successively will be every One acquisition request is sent to other all terminal devices 200 communicated to connect with the terminal to be upgraded.Specifically, pass through group The mode broadcast is sent to other terminal devices 200.
Other terminal devices 200 communicated to connect with the terminal to be upgraded inquire whether itself has after receiving acquisition request Upgrade components corresponding with acquisition request, such as successively itself acquired upgrade components is compared by inspection data.If Have, according to itself can connection resource number generate the second response message, and feed back to send the acquisition request terminal to be upgraded. If it is not, ignoring the acquisition request.
It is described from having fed back according to the second response message obtained after terminal to be upgraded receives the second response message Corresponding destination request terminal is determined in the terminal device 200 of second response message.Specifically, it can be responded by each second The corresponding response speed of information, can connection resource number be reference factor, corresponding threshold value is divided according to different brackets, carries out weight fortune Calculation obtains the second priority parameter.And determine that the corresponding terminal device 200 of maximum second response message of the second priority parameter is mesh Mark requesting terminal.The terminal to be upgraded obtains the upgrading institute corresponding with the acquisition request from the destination request terminal The upgrade components needed, until getting all upgrade components of the corresponding upgrade package of description information.And successively upgraded.Tool Body, which, which establishes, carries out point-to-point upgrade components transmission using TCP connection, and when starting transmission, establishes Connection two equipment can connection resource number respectively subtract one.After being transmitted, residue can connection resource number all respectively plus one.At this In embodiment, upgrade components transmission uses TCP connection, and instructs and sent in the form of UDP, both ensure that efficiency, and had had increase The reliability of transmission.
It should be noted that utilizing the upgrade components when the terminal to be upgraded receives the upgrade components Corresponding inspection data verifies the upgrade components in inventory.If using the corresponding upgrading group by verifying Part is upgraded.If unverified, the corresponding upgrade components are deleted, and to communicating to connect with the terminal to be upgraded Other corresponding described upgrade components of 200 request of terminal device, until obtaining all correct upgrade components.
In embodiments of the present invention, terminal to be upgraded gets a upgrade components and is then risen according to the upgrade components Grade is sent completely message to the updating and management server 100 again after completing to the upgrading of all upgrade components.Upgrade components Between transmission and escalation process it is independent, could upgrade after being transmitted independent of entire upgrade package.And then improve upgrading Speed.And with the gradually expansion of escalation process, it is possible to provide the terminal to be upgraded of upgrade components is more and more, makes whole biography Defeated speed and updating speed can be getting faster.
Further, the method can also include when the terminal completion to be upgraded description information is corresponding all The upgrade components upgrading when, Xiang Suoshu updating and management server 100 is sent completely message.When the updating and management service When device 100 receives the completion message of all terminal feedbacks to be upgraded, the terminal hair to be upgraded of Xiang Suoyou Deletion corresponding with the upgrade package is sent to instruct.The terminal to be upgraded is deleted corresponding according to the deletion instruction received The upgrade package.
The version updating system 300 constituted with updating and management server 100, multiple video camera IPC and hard disk video recorder NVR For, the present embodiment is illustrated, as shown in Figure 4, which comprises
Step S1: updating and management server 100 is retouched in a manner of multicast to IPC1, IPC2, IPC3, IPC4 and NVR transmission State information, it is IPC that the corresponding Version Description information of the description information, which includes applicable model,.Upgrade package includes Config, Media And tri- upgrade components of Basic.
Step S2:IPC1, IPC2, IPC3 and IPC4 generate the first response message according to the load data of itself, and to liter Grade management server 100 is fed back, and NVR ignores the description information.
Step S3: updating and management server 100 according to the first response message received, calculate IPC1, IPC2, IPC3 and The corresponding priority parameter of IPC4, and arranged from high to low, select arrangement preceding 3 IPC2, IPC3 and IPC4 as preferably Device cluster, and Config and Media is sent to IPC2;Media and Basic is sent to IPC3;To IPC4 send Config and Basic。
Step S4: updating and management server 100 sends upgrade command to IPC1, IPC2, IPC3 and IPC4.
Upgrade components needed for step S5:IPC2 determines upgrading according to the upgrade components inventory in description information are Basic, Then acquisition request corresponding with Basic is sent to IPC1, IPC3, IPC4 and NVR in a manner of multicast.
Step S6:IPC3 and IPC4 have Basic, then generate the second response message and be sent to IPC2.
Step S7:IPC2 chooses IPC3 as destination request terminal according to IPC3 and IPC4 the second response message sent, And it establishes connection and obtains Basic.IPC1, IPC3, IPC4 also according to the mode of step S5-S7, make its obtain Config, Tri- upgrade components of Media and Basic, and complete to upgrade.
Step S8:IPC1, IPC2, IPC3 and IPC4 are fed back to updating and management server 100 completes message.
Step S9: updating and management server 100 is sent to IPC1, IPC2, IPC3 and IPC4 deletes instruction, control IPC1, IPC2, IPC3 and IPC4 delete tri- upgrade components of Config, Media and Basic.
Second embodiment
Referring to figure 5., Fig. 5 is a kind of flow chart for terminal chain type upgrade method that present pre-ferred embodiments provide.It answers For updating and management server 100 shown in FIG. 1, the above method includes:
Step S201 sends the corresponding description information of upgrade package, the description information to terminal device 200 described in each Including the corresponding Version Description information of the upgrade package and upgrade components inventory.
In embodiments of the present invention, foregoing description information includes the corresponding Version Description information of the upgrade package and upgrading group Part inventory.Above-mentioned Version Description information includes the information such as version number information, applicable model, digital signature.Above-mentioned upgrade components are clear Single includes the information for constituting multiple upgrade components of upgrade package, for example, the number of upgrade components, the title of each upgrade components, Inspection data etc..It is alternatively possible to which foregoing description information is sent to and the updating and management server 100 by way of multicast All terminal devices 200 of communication connection.
Step S202 receives the first response message of the terminal to be upgraded feedback in the terminal device 200.
In embodiments of the present invention, above-mentioned terminal to be upgraded and the Version Description information matches.Each receives institute The terminal device 200 for stating description information checks Version Description information, for example, whether verification version number information is higher than currently Version number, whether applicable model consistent with itself for verification, check figures signature whether also effectively.If passing through verification, then it represents that The Version Description information is matched with the terminal device 200.Namely the corresponding upgrade package of the description information is set suitable for the terminal Standby 200.
Step S203 determines to include at least two terminals to be upgraded according to first response message received Preferred equipment cluster.
In embodiments of the present invention, updating and management server 100 according to the first response message of each received and its Corresponding response speed calculates corresponding priority parameter when the response that each corresponds to terminal to be upgraded.As a kind of fact side Formula, can calculate priority parameter according to the preparatory weighted value for assigning response time and the first response message, and all weighted values Be 1.It treats upgrading terminals from high to low according to priority parameter to be ranked up, by terminal to be upgraded before the specified ranking of arrangement As preparatory device cluster.Above-mentioned specified ranking can be determined according to total number of terminals to be upgraded and preset ratio, and be not less than two.
Multiple upgrade components corresponding with the upgrade components inventory in the upgrade package are distributed to described by step S204 Each of preferred equipment cluster terminal to be upgraded.
In embodiments of the present invention, upgrade package exists in the form of multiple upgrade components.Multiple upgrade components are distributed to The mode of each of preferred equipment cluster terminal to be upgraded may is that according to preset rules that the upgrade package is corresponding Upgrade components are distributed to each of preferred equipment cluster terminal to be upgraded, so that each of described preferred equipment cluster Terminal to be upgraded receives at least one upgrade components, and the same upgrade components are at least sent in the preferred equipment cluster Two different terminals to be upgraded.
Step S205 sends upgrade command to the terminal to be upgraded, so that the terminal to be upgraded is according to the upgrading Bill of component required upgrade components of request upgrading from other terminal devices 200 communicated to connect with the terminal to be upgraded, with Carry out software upgrading.
3rd embodiment
Please refer to Fig. 6, a kind of terminal chain type update device 400 that present pre-ferred embodiments provide.Applied to shown in Fig. 1 Updating and management server 100, above-mentioned terminal chain type update device 400 include: sending module 401, receiving module 402, determine Module 403 and distribution module 404.
Sending module 401, it is described for sending the corresponding description information of upgrade package to terminal device 200 described in each Description information includes the corresponding Version Description information of the upgrade package and upgrade components inventory.
Receiving module 402, for receiving the first response message of the feedback of the terminal to be upgraded in the terminal device 200, Wherein, the terminal to be upgraded and the Version Description information matches.
Determining module 403, for determining to include described at least two wait rise according to first response message received The preferred equipment cluster of grade terminal.
Distribution module 404, for dividing multiple upgrade components corresponding with the upgrade components inventory in the upgrade package It is sent to each of preferred equipment cluster terminal to be upgraded.
Sending module 401 is also used to send upgrade command to the terminal to be upgraded, so that the terminal foundation to be upgraded The upgrade components inventory required upgrading of request upgrading from other terminal devices 200 communicated to connect with the terminal to be upgraded Component, to carry out software upgrading.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description Specific work process, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In conclusion a kind of terminal chain type upgrade method, device and updating and management server provided by the invention.Wherein, The described method includes: the updating and management server sends the corresponding description information of upgrade package to terminal device described in each, The description information includes the corresponding Version Description information of the upgrade package and upgrade components inventory;The terminal device is receiving To after the description information, detect the terminal device whether with the Version Description information matches;It is when matching, then described Terminal device is as terminal to be upgraded to first response message of updating and management server feedback;The updating and management server The preferred equipment cluster including at least two terminals to be upgraded is determined according to first response message received;The upgrading pipe It manages server and multiple upgrade components corresponding with the upgrade components inventory in the upgrade package is distributed to the preferred equipment Each of cluster terminal to be upgraded;When the terminal to be upgraded receives the upgrade command that the updating and management server is sent Afterwards, according to the upgrade components inventory needed for request upgrading in other terminal devices communicated to connect with the terminal to be upgraded Upgrade components, to carry out software upgrading.To reduce the performance pressures of server, Single Point of Faliure is avoided.Between terminal device It mutually obtains upgrade components to be unfolded with chain-like manner, point-to-point transmission improves reliability, efficiency of transmission and success rate.Together When, upgrade package splits into component, and transmission and escalation process are independent, could upgrade after being transmitted independent of entire file, improves The speed of upgrading.With the gradually expansion for possessing escalation process, can transmission assembly packet equipment it is more and more, overall transfer speed Degree and updating speed can be getting faster.Establish model consider network condition and can the factors such as connection resource number, according to each equipment Performance and network condition dynamic establish reasonable connection, the load pressure of balanced each equipment keeps escalation process more smooth.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product, Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement It realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should also be noted that similar label and letter exist Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing It is further defined and explained.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of terminal chain type upgrade method, which is characterized in that be applied to version updating system, the system comprises mutual The updating and management server and multiple terminal devices of communication connection, which comprises
The updating and management server sends the corresponding description information of upgrade package, the description letter to terminal device described in each Breath includes the corresponding Version Description information of the upgrade package and upgrade components inventory;
The terminal device after receiving the description information, detect the terminal device whether with the Version Description information Matching;
When matching, then the terminal device responds to the updating and management server feedback first as terminal to be upgraded and believes Breath;
The updating and management server determines to include at least two described to be upgraded according to first response message received The preferred equipment cluster of terminal;
The updating and management server distributes multiple upgrade components corresponding with the upgrade components inventory in the upgrade package To each of preferred equipment cluster terminal to be upgraded;
After the terminal to be upgraded receives the upgrade command that the updating and management server is sent, according to the upgrade components Inventory is from upgrade components needed for request upgrading in other terminal devices communicated to connect with the terminal to be upgraded, to carry out software Upgrading.
2. the method as described in claim 1, which is characterized in that the updating and management server by the upgrade package with it is described The corresponding multiple upgrade components of upgrade components inventory are distributed to the step of each of preferred equipment cluster terminal to be upgraded Include:
The corresponding upgrade components of the upgrade package are distributed to each of described preferred equipment cluster wait rise according to preset rules Grade terminal, so that each of described preferred equipment cluster terminal to be upgraded receives at least one upgrade components, and same Two different terminals to be upgraded that upgrade components are at least sent in the preferred equipment cluster.
3. method according to claim 2, which is characterized in that when the terminal to be upgraded receives the updating and management service After the upgrade command that device is sent, according to the upgrade components inventory from other terminal devices with terminal communication connection to be upgraded It is middle request upgrading needed for upgrade components the step of include:
After the upgrade command that the terminal to be upgraded receives that the updating and management server is sent, according to the upgrading group Part inventory, which checks whether, obtains corresponding all upgrade components;
If not obtaining corresponding all upgrade components, determined needed for the upgrading according to the upgrade components inventory Upgrade components, and generate acquisition request corresponding with upgrade components needed for upgrading described in each;
The terminal to be upgraded is successively by each described acquisition request to other terminals with terminal communication connection to be upgraded Equipment is sent, and to obtain the second response message, second response message is by receiving the acquisition request and having described obtain The terminal device of upgrade components needed for requesting the corresponding upgrading is taken to generate and feed back;
The terminal device is determined from the terminal device for feeding back second response message according to the second response message obtained Corresponding destination request terminal;
The terminal to be upgraded from the destination request terminal obtain corresponding with the acquisition request upgrading needed for liter Level assembly, to complete to upgrade.
4. method as claimed in claim 3, which is characterized in that the method also includes:
When the terminal to be upgraded receives the upgrade components, corresponding inspection data in the upgrade components inventory is utilized The upgrade components are verified;
If being upgraded by verifying using the corresponding upgrade components;
If unverified, the corresponding upgrade components are deleted, and to other ends communicated to connect with the terminal to be upgraded The corresponding upgrade components of end equipment request.
5. method as claimed in claim 3, which is characterized in that the described method includes:
When the terminal to be upgraded completes the upgrading of the corresponding all upgrade components of the description information, to the liter Grade management server is sent completely message;
When the updating and management server receives the completion message of all terminal feedbacks to be upgraded, Xiang Suoyou The terminal to be upgraded send deletion corresponding with the upgrade package and instruct;
The terminal to be upgraded deletes the corresponding upgrade package according to the deletion instruction received.
6. the method as described in claim 1, which is characterized in that the terminal device is managed as terminal to be upgraded to the upgrading Manage the first response message of server feedback the step of include:
The terminal to be upgraded generates corresponding first response message according to current load data.
7. method as claimed in claim 6, which is characterized in that the updating and management server is according to described first received Response message determines that the preferred equipment cluster step including at least two terminals to be upgraded includes:
The updating and management server generates corresponding according to the corresponding response speed of first response message and load data The priority parameter of the terminal to be upgraded;
According to the priority parameter, determine at least two corresponding terminals to be upgraded as the preferred equipment cluster.
8. a kind of terminal chain type upgrade method, which is characterized in that be applied to updating and management server, the updating and management server It is communicated to connect with multiple terminal devices, which comprises
The corresponding description information of upgrade package is sent to terminal device described in each, the description information includes the upgrade package pair The Version Description information and upgrade components inventory answered;
Receive the first response message of the terminal to be upgraded feedback in the terminal device, wherein the terminal to be upgraded and institute State Version Description information matches;
The preferred equipment cluster including at least two terminals to be upgraded is determined according to first response message received;
Multiple upgrade components corresponding with the upgrade components inventory in the upgrade package are distributed in the preferred equipment cluster Each terminal to be upgraded;
Send upgrade command to the terminal to be upgraded so that the terminal to be upgraded according to the upgrade components inventory from this Upgrade components needed for request upgrading in other terminal devices of terminal communication connection to be upgraded, to carry out software upgrading.
9. a kind of terminal chain type update device, which is characterized in that be applied to updating and management server, the updating and management server It is communicated to connect with multiple terminal devices, described device includes:
Sending module, for sending the corresponding description information of upgrade package, the description information packet to terminal device described in each Include the corresponding Version Description information of the upgrade package and upgrade components inventory;
Receiving module, for receive the terminal to be upgraded in the terminal device feedback the first response message, wherein it is described to Upgrading terminals and the Version Description information matches;
Determining module includes at least two terminals to be upgraded for determining according to first response message received Preferred equipment cluster;
Distribution module, it is described for being distributed to multiple upgrade components corresponding with the upgrade components inventory in the upgrade package Each of preferred equipment cluster terminal to be upgraded;
Sending module is also used to send upgrade command to the terminal to be upgraded, so that the terminal to be upgraded is according to the liter Level assembly inventory from upgrade components needed for request upgrading in other terminal devices communicated to connect with the terminal to be upgraded, with into Row software upgrading.
10. a kind of updating and management server, which is characterized in that the updating and management server and multiple terminal devices communication link It connects, the updating and management server includes:
Memory;
Processor;And
Terminal chain type update device, the terminal chain type update device be installed in the memory and including one or more by The software function mould group that the processor executes, the terminal chain type update device include:
Sending module, for sending the corresponding description information of upgrade package, the description information packet to terminal device described in each Include the corresponding Version Description information of the upgrade package and upgrade components inventory;
Receiving module, for receive the terminal to be upgraded in the terminal device feedback the first response message, wherein it is described to Upgrading terminals and the Version Description information matches;
Determining module includes at least two terminals to be upgraded for determining according to first response message received Preferred equipment cluster;
Distribution module, it is described for being distributed to multiple upgrade components corresponding with the upgrade components inventory in the upgrade package Each of preferred equipment cluster terminal to be upgraded;
Sending module is also used to send upgrade command to the terminal to be upgraded, so that the terminal to be upgraded is according to the liter Level assembly inventory from upgrade components needed for request upgrading in other terminal devices communicated to connect with the terminal to be upgraded, with into Row software upgrading.
CN201711371086.9A 2017-12-19 2017-12-19 Terminal chain type upgrading method and device and upgrading management server Active CN109936609B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711371086.9A CN109936609B (en) 2017-12-19 2017-12-19 Terminal chain type upgrading method and device and upgrading management server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711371086.9A CN109936609B (en) 2017-12-19 2017-12-19 Terminal chain type upgrading method and device and upgrading management server

Publications (2)

Publication Number Publication Date
CN109936609A true CN109936609A (en) 2019-06-25
CN109936609B CN109936609B (en) 2021-11-16

Family

ID=66983192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711371086.9A Active CN109936609B (en) 2017-12-19 2017-12-19 Terminal chain type upgrading method and device and upgrading management server

Country Status (1)

Country Link
CN (1) CN109936609B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110875850A (en) * 2019-09-27 2020-03-10 深圳市中电数通智慧安全科技股份有限公司 Firmware upgrading method and system, readable storage medium and terminal equipment
CN111399886A (en) * 2020-04-13 2020-07-10 上海依图网络科技有限公司 Method and system for rapidly upgrading equipment
CN113141267A (en) * 2020-01-19 2021-07-20 阿里巴巴集团控股有限公司 Firmware upgrading and information processing method, device and equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447884A (en) * 2007-11-26 2009-06-03 华为技术有限公司 Method for achieving software upgrade by cooperation among network elements, equipment and system therefor
CN101478556A (en) * 2007-12-31 2009-07-08 突触计算机系统(上海)有限公司 Method and apparatus for downloading peer-to-peer transmitted data slice
US20090327063A1 (en) * 2008-06-27 2009-12-31 Microsoft Corporation Online Services Offer Management
CN102694674A (en) * 2011-03-25 2012-09-26 华为技术有限公司 Upgrading method in access network, apparatus and access network thereof
CN104199679A (en) * 2014-08-01 2014-12-10 百度在线网络技术(北京)有限公司 Method and device used for obtaining updating
CN104468697A (en) * 2014-10-10 2015-03-25 浙江广播电视集团 Radio station data transmission load distribution method
CN104994265A (en) * 2015-07-06 2015-10-21 浙江宇视科技有限公司 Method and system for upgrading web cameras in batch
CN106657383A (en) * 2017-01-12 2017-05-10 腾讯科技(深圳)有限公司 Data downloading method and relevant equipment
CN107040399A (en) * 2016-02-04 2017-08-11 京东方科技集团股份有限公司 A kind of upgrade file method for down loading, equipment and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447884A (en) * 2007-11-26 2009-06-03 华为技术有限公司 Method for achieving software upgrade by cooperation among network elements, equipment and system therefor
CN101478556A (en) * 2007-12-31 2009-07-08 突触计算机系统(上海)有限公司 Method and apparatus for downloading peer-to-peer transmitted data slice
US20090327063A1 (en) * 2008-06-27 2009-12-31 Microsoft Corporation Online Services Offer Management
CN102694674A (en) * 2011-03-25 2012-09-26 华为技术有限公司 Upgrading method in access network, apparatus and access network thereof
CN104199679A (en) * 2014-08-01 2014-12-10 百度在线网络技术(北京)有限公司 Method and device used for obtaining updating
CN104468697A (en) * 2014-10-10 2015-03-25 浙江广播电视集团 Radio station data transmission load distribution method
CN104994265A (en) * 2015-07-06 2015-10-21 浙江宇视科技有限公司 Method and system for upgrading web cameras in batch
CN107040399A (en) * 2016-02-04 2017-08-11 京东方科技集团股份有限公司 A kind of upgrade file method for down loading, equipment and system
CN106657383A (en) * 2017-01-12 2017-05-10 腾讯科技(深圳)有限公司 Data downloading method and relevant equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘贺: ""基于服务质量的负载均衡技术及实现研究"", 《全国优秀硕士学位论文全文数据库》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110875850A (en) * 2019-09-27 2020-03-10 深圳市中电数通智慧安全科技股份有限公司 Firmware upgrading method and system, readable storage medium and terminal equipment
CN113141267A (en) * 2020-01-19 2021-07-20 阿里巴巴集团控股有限公司 Firmware upgrading and information processing method, device and equipment
CN111399886A (en) * 2020-04-13 2020-07-10 上海依图网络科技有限公司 Method and system for rapidly upgrading equipment

Also Published As

Publication number Publication date
CN109936609B (en) 2021-11-16

Similar Documents

Publication Publication Date Title
CN111083722A (en) Model pushing method, model requesting method, model pushing device, model requesting device and storage medium
CN107105050B (en) Storage and downloading method and system for service objects
US8903972B2 (en) Method and apparatus for sharing contents using information of group change in content oriented network environment
CN102945175A (en) Terminal software online upgrading system and method based on cloud computing environment
CN104301395A (en) Method, electronic equipment and system for upgrading devices automatically
CN103906087A (en) Access point upgrading method, device and system
CN109936609A (en) Terminal chain type upgrade method, device and updating and management server
CN104717282A (en) Method, device and system for controlling intelligent terminals with Android operating system
CN109510744A (en) Internet of Things device intelligence cut-in method and device
CN102420863B (en) Rapid file distribution system, method thereof and apparatus thereof
CN111083204B (en) File transmission method, device and storage medium
CN109962961A (en) A kind of reorientation method and system of content distribution network CDN service node
CN105099774A (en) Router software upgrading method and system
CN106547645A (en) Automatically the method and server system of image shelves are repaired
CN104077152B (en) A kind of method and device of embedded system batch upgrade
CN112152825B (en) Multi-stage module upgrading method and device for household appliance and electronic equipment
CN103731424B (en) A kind of transmission method of network data, apparatus and system
CN105281940A (en) Method, device and system of HELLO message interaction on the basis of NETCONF (The Network Configuration Protocol)
CN101958934B (en) Electronic program guide incremental content synchronization method, device and system
CN111343220B (en) Repeater, distributed file transmission method, distributed file transmission system, medium and electronic equipment
CN105119968A (en) Picture transmission method and device
CN110912717B (en) Broadcasting method and server of centerless multi-channel concurrent transmission system
CN107707590A (en) System, the method and device of data transfer
CN103514407A (en) Method and system for killing viruses of audio/video files transmitted from office network to production network
CN110971716B (en) Address configuration method, device, system and computer readable storage medium

Legal Events

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