CN106850720A - Method for upgrading software, apparatus and system - Google Patents

Method for upgrading software, apparatus and system Download PDF

Info

Publication number
CN106850720A
CN106850720A CN201510890426.3A CN201510890426A CN106850720A CN 106850720 A CN106850720 A CN 106850720A CN 201510890426 A CN201510890426 A CN 201510890426A CN 106850720 A CN106850720 A CN 106850720A
Authority
CN
China
Prior art keywords
terminal
upgrading
software
data
mentioned
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.)
Pending
Application number
CN201510890426.3A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201510890426.3A priority Critical patent/CN106850720A/en
Priority to PCT/CN2016/108939 priority patent/WO2017097210A1/en
Publication of CN106850720A publication Critical patent/CN106850720A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/108Resource delivery mechanisms characterised by resources being split in blocks or fragments

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a kind of method for upgrading software, apparatus and system, methods described includes:Software upgrading is sent to upgrade server to ask;Obtain that above-mentioned upgrade server returns with the software upgrading corresponding response message of request, wherein, the response message is used to indicating the address information of the first terminal for having obtained data of upgrading;The upgrading data that the first terminal has been obtained are obtained according to the address information, and software upgrading is carried out according to the upgrading data.The above-mentioned technical proposal provided using the present invention, solves the problems, such as that the set-top-box system software upgrading occupied bandwidth time is long and upgrade cycle is long in the prior art, and then reach the effect that escalation process is rapidly completed on STB terminal.

Description

Method for upgrading software, apparatus and system
Technical field
The present invention relates to the communications field, in particular to a kind of method for upgrading software, apparatus and system.
Background technology
With the fast development of mobile Internet and OTT, (Over The Top, are carried by internet to user For various application services)/IPTV (Internet Protocol Television, IPTV) The extensive of Set Top Box emerges, and increasing family and personal is watched TV section using network machine top box Mesh, the increase of network machine top box commercially occupancy, the also maintenance to Set Top Box brings more pressure And challenge, the software upgrading mode of present main flow is all C/S (Client/Server, client computer and service Device) framework, whether the backward server lookup of STB terminal start has version updating, and discovery has renewal, Redaction just is downloaded from upgrade server, Fig. 1 is the structured flowchart of software update system in the prior art, I.e. one server is simultaneously for multiple Set Top Boxes provide image download service.Machine top is used additionally, due to user The time period of box all compares concentration, so easily occur what a large amount of Set Top Boxes were upgraded to server request simultaneously Situation, takes massive band width, influences other business, and Consumer's Experience and operator's O&M are all brought necessarily The puzzlement of degree.In sum, following 2 problems are primarily present during present updating set-top box software:
1. network machine top box is essentially all Android system, and system upgrade bag all than larger, typically there is 150 Many million, the bandwidth of user is taken in downloading process for a long time, bring influence to user's TV reception.
2. single upgrade server faces numerous set-top box clients, due to CPU (Central Processing Unit, central processing unit) ability, memory size, the limitation such as the network bandwidth can be simultaneously The quantity for providing service to Set Top Box is very limited, is all relatively to collect along with the usage scenario of Set Top Box In time period, cause all Set Top Boxes all complete software upgrading needs time it is more long, so as to cause Upgrade cycle is long.
For in the related art, it is long long with upgrade cycle that updating set-top box software takes the user bandwidth time Problem, not yet proposes effective solution.
The content of the invention
The invention provides a kind of method for upgrading software, apparatus and system, with least solving correlation technique Updating set-top box software takes the problem that the user bandwidth time is long and upgrade cycle is long.
According to an aspect of the invention, there is provided a kind of method for upgrading software, including:To Set Top Box Upgrade server sends software upgrading request;Obtain above-mentioned upgrade server returning with above-mentioned software upgrading Corresponding response message is asked, wherein, the response message is used to indicate obtained upgrading data first eventually The address information at end;According to the upgrading data that the above-mentioned first terminal of address above mentioned acquisition of information has been obtained, and Software upgrading is carried out according to above-mentioned upgrading data.
Further, above-mentioned upgrading data packet is included:When part upgrading data, data of all upgrading, according to The upgrading data that the above-mentioned first terminal of address above mentioned acquisition of information has been obtained, including:Believed according to address above mentioned Breath obtains above-mentioned all upgrading data from above-mentioned first terminal;Or according to address above mentioned information according to specified row Sequence obtains above-mentioned part upgrading data respectively from multiple above-mentioned first terminals, wherein, from above-mentioned multiple first Some above-mentioned all upgrading data of upgrading data composition that terminal is obtained.
Further, when the quantity of the second terminal that above-mentioned part upgrading data are obtained from above-mentioned first terminal During more than predetermined threshold value, to above-mentioned first terminal send for obtain above-mentioned part upgrading data request it Afterwards, the above method also includes:The Set Top Box list information of above-mentioned first terminal feedback is received, wherein, should Set Top Box list information includes:The address information of one or more third terminals;The third terminal from The first terminal obtains the part upgrading data;Address information according to above-mentioned third terminal is from above-mentioned Third terminal obtains above-mentioned part upgrading data.
Further, above-mentioned specified sequence includes:Randomly ordered, order sorts.
Further, when specify be ordered as randomly ordered when, in preferentially obtaining above-mentioned Set Top Box list information Above-mentioned part upgrading data minimum part upgrading data of amount to obtain.
According to an aspect of the invention, there is provided another method for upgrading software, including:Receive the The software upgrading request that two terminals send;Returned to above-mentioned second terminal corresponding with above-mentioned software upgrading request Response message, wherein, the response message be used for indicate obtained upgrading data first terminal address Information, the upgrading data that above-mentioned second terminal has been obtained according to the above-mentioned first terminal of address above mentioned acquisition of information, And carry out software upgrading according to above-mentioned upgrading data.
According to another aspect of the present invention, there is provided a kind of software updating apparatus, including:Sending module, uses Asked in software upgrading is sent to the upgrade server of Set Top Box;First acquisition module, it is above-mentioned for obtaining Upgrade server return with the above-mentioned software upgrading corresponding response message of request, wherein, the response message The address information of the first terminal for indicating to have obtained upgrading data;Second acquisition module, for basis The upgrading data that the above-mentioned first terminal of address above mentioned acquisition of information has been obtained, and entered according to above-mentioned upgrading data Row software upgrading.
According to an aspect of the invention, there is provided a kind of software updating apparatus, include in the upgrading data packet: When part upgrading data, data of all upgrading, second acquisition module, including:First obtains submodule Block, for obtaining all upgrading data from the first terminal according to the address information;Or second Acquisition submodule, for being distinguished from multiple first terminals according to specified sequence according to the address information The part upgrading data are obtained, wherein, from some ascending series that the multiple first terminal is obtained According to composition all upgrading data.
According to another aspect of the present invention, there is provided another software updating apparatus, including:Receiver module, Software upgrading request for receiving second terminal transmission;Module is returned to, for being returned to above-mentioned second terminal Return with the above-mentioned software upgrading corresponding response message of request, wherein, the response message be used for instruction obtained The address information of the first terminal of data of upgrading, above-mentioned second terminal is above-mentioned according to address above mentioned acquisition of information The upgrading data that first terminal has been obtained, and carry out software upgrading according to above-mentioned upgrading data.
According to another aspect of the present invention, there is provided a kind of software update system, including:Upgrade server, First terminal, second terminal, wherein, above-mentioned upgrade server, for receiving the soft of second terminal transmission Part upgrade request, and the corresponding response message of above-mentioned software upgrading request is sent to above-mentioned second terminal, its In, the response message is used for the address information that instruction has obtained the first terminal of upgrading data;Above-mentioned second Terminal, for obtaining above-mentioned upgrading data from above-mentioned first terminal according to address above mentioned information, and according to upper Stating upgrading data carries out software upgrading.
Further, said system also includes:4th terminal, in above-mentioned second terminal from above-mentioned first When terminal obtains above-mentioned upgrading data, to the above-mentioned upgrading data of above-mentioned second terminal acquisition request.
By the present invention, send software upgrading to the upgrade server of Set Top Box and ask;Obtain above-mentioned upgrading clothes Business device return with the above-mentioned software upgrading corresponding response message of request, wherein, the response message is for referring to Show the address information of the first terminal for having obtained upgrading data;According to address above mentioned acquisition of information above-mentioned first The upgrading data that terminal has been obtained, and carry out software upgrading according to above-mentioned upgrading data.Solve existing skill Caused by the set-top-box system software upgrading occupied bandwidth time is long in art and upgrade cycle is long poor user experience and The difficult problem of operator's O&M, and then reach the effect that escalation process is rapidly completed on STB terminal.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes of the application Point, schematic description and description of the invention is used to explain the present invention, does not constitute to of the invention Improper restriction.In the accompanying drawings:
Fig. 1 is the structured flowchart of software update system in the prior art;
Fig. 2 is the flow chart of method for upgrading software according to embodiments of the present invention;
Fig. 3 is the structured flowchart of software update system according to embodiments of the present invention;
Fig. 4 is another flow chart of method for upgrading software according to embodiments of the present invention;
Fig. 5 is the flow chart of the method for upgrading software according to example of the present invention;
Fig. 6 is the structured flowchart of the second acquisition module of software updating apparatus 66 according to embodiments of the present invention;
Fig. 7 is the structured flowchart of software updating apparatus according to embodiments of the present invention;
Fig. 8 is another structured flowchart of software updating apparatus according to embodiments of the present invention;
Fig. 9 is the structured flowchart of software update system according to embodiments of the present invention;
Figure 10 is another structured flowchart of software update system according to embodiments of the present invention.
Specific embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that In the case of not conflicting, the feature in embodiment and embodiment in the application can be mutually combined.
It should be noted that the term " in description and claims of this specification and above-mentioned accompanying drawing One ", " second " etc. is for distinguishing similar object, without for describing specific order or first Order afterwards.
Method for upgrading software is provided in the present embodiment, and Fig. 2 is software liter according to embodiments of the present invention The flow chart of level method, as shown in Fig. 2 the flow comprises the following steps:
Step S202, sends software upgrading and asks to the upgrade server of Set Top Box;
Step S204, obtain that above-mentioned upgrade server returns with the above-mentioned software upgrading corresponding response of request Information, wherein, the response message is used for the address information that instruction has obtained the first terminal of upgrading data;
Step S206, according to the upgrading data that the above-mentioned first terminal of address above mentioned acquisition of information has been obtained, and Software upgrading is carried out according to above-mentioned upgrading data.
By above-mentioned each step, when software redaction is upgraded, sent to the upgrade server of Set Top Box Software upgrading is asked;Obtain that above-mentioned upgrade server returns with the above-mentioned software upgrading corresponding response of request Information, wherein, the response message is used for the address information that instruction has obtained the first terminal of upgrading data; According to the upgrading data that the above-mentioned first terminal of address above mentioned acquisition of information has been obtained, and according to above-mentioned ascending series According to carrying out software upgrading.Using above-mentioned technical proposal, set-top-box system software liter in the prior art is solved Level poor user experience and operator's O&M is difficult asks caused by the occupied bandwidth time is long and upgrade cycle is long Topic, and then multiple spot download is reached, the dependence to upgrade server performance and bandwidth is broken away from, reduce due to rising The upgrade problem that level server performance factor is brought, shortens the update time of Set Top Box.
In a preferred embodiment, included in above-mentioned upgrading data packet:Part upgrading data, all liter During DBMS, according to the upgrading data that the above-mentioned first terminal of address above mentioned acquisition of information has been obtained, including: Above-mentioned all upgrading data are obtained from above-mentioned first terminal according to address above mentioned information;Or according to address above mentioned Information obtains above-mentioned part upgrading data respectively according to specified sequence from multiple above-mentioned first terminals, wherein, From some above-mentioned all upgrading data of upgrading data composition that above-mentioned multiple first terminals are obtained.
In another preferred embodiment, when obtaining above-mentioned part upgrading data from above-mentioned first terminal When the quantity of second terminal exceedes predetermined threshold value, sent for obtaining above-mentioned part liter to above-mentioned first terminal After the request of DBMS, the above method also includes:Receive the Set Top Box list of above-mentioned first terminal feedback Information, wherein, the Set Top Box list information includes:Above-mentioned part ascending series are obtained from above-mentioned first terminal According to one or more third terminals address information;Address information according to above-mentioned third terminal is from above-mentioned Third terminal obtains above-mentioned part upgrading data.The specified sequence includes:Randomly ordered, order sorts. When specify be ordered as randomly ordered when, preferentially obtain above-mentioned part ascending series in above-mentioned Set Top Box list information According to the minimum part upgrading data of amount to obtain.
Based on the technical scheme that above-described embodiment is provided, above-mentioned technical proposal is entered below in conjunction with an example Row explanation, Fig. 3 is the structured flowchart of software update system according to embodiments of the present invention, with reference to Fig. 3 To describe software upgrade process in detail.Traditional set top box upgrading image download is all to dispose one in a network Platform or many upgrade servers, all of terminal set top box (first terminal, i.e. in the present embodiment Two terminals or third terminal) all it is to carry out around server.When data message amount is big and downloads use Amount mesh may result in terminal set top box speed of download slow even server crash when increasing severely, in this implementation In example, the Set Top Box in network can provide the role of upgrade server, be individual flat between each Set Top Box Deng relation, as shown in figure 3, each Set Top Box can both have been obtained from other Set Top Boxes and serviced, also will be to Other Set Top Boxes provide service, have basic difference with traditional File Sharing Technique, are a kind of emerging Resource Sharing Technology, Set Top Box can be made to be connected to other Set Top Boxes carries out file download, has broken away from list The limitation of one upgrade server.The upgrade server disposed i.e. in network no longer needs full-time offer to download clothes It is engaged in, the upgrade file of most original is placed on this server, and this file is asked when Set Top Box, Server just records the download situation of each Set Top Box, when follow-up other Set Top Boxes need to download this file, Server will provide set-top box IP addresses and the port that other possess the mirror image to this Set Top Box, then This Set Top Box is directly communicated with other Set Top Boxes, and file, that is, server are downloaded from Set Top Box Send file may be without have sent, because other Set Top Boxes can be from possessing this document again Set Top Box in obtain.It should be noted that Set Top Box first terminal, second terminal and in embodiment Three terminals with the change in each stage can be mutual transformation role.For example when STB terminal does not have Software upgrade data and when sending request to server, it is second terminal;When second terminal from other machine Set top box terminal obtain software upgrade data and for other STB terminals provide upgrade data download service when its It is first terminal;When other STB terminal reaches due to downloading the STB terminal of software upgrade data to it During to a default threshold value, the STB terminal will will obtain the first terminal of software upgrade data Address information is downloaded to the Set Top Box for needing to download for it, and now first terminal just becomes third terminal. In addition to so that the process for downloading mirror image does not bring influence to user's viewing TV, using without interface, after The mechanism that platform speed limit is downloaded.Any prompting is not ejected in downloading process, by one small block count of every download Carry out to smooth the bandwidth that control is downloaded for a period of time according to regard to dormancy, allow user to downloading the process unaware of mirror image.
A kind of method for upgrading software is provided in the present embodiment, and Fig. 4 is according to embodiments of the present invention soft Another flow chart of part upgrade method, software upgrade process is described in detail with reference to Fig. 4.For side Just illustrate, the collection for participating in all Set Top Boxes that a specific file is downloaded is collectively referred to as a session.One Data of upgrading in individual session, in the present embodiment are part upgrading data, and part upgrading data are equal length Blocks of files, block length can determine according to actual conditions, such as 32KB.When a Set Top Box starts to add When entering a session, it does not have blocks of files.But over time, accumulation is arrived more and more by it Blocks of files.When it downloads blocks of files, also for other Set Top Boxes upload the blocks of files that it has been downloaded, As long as so adding, the Set Top Box of session is more, speed of download is also faster.Set Top Box once obtains whole Individual file, stays on a period of time, is that other Set Top Boxes upload blocks of files.
As shown in figure 4, when finding that version needs to update in set-top-box system, software upgrading step is:
Step S401, Set Top Box 1 downloads file to upgrade server request;
Step S402, server is the machine top for having downloaded completion with downloaded part upgrading data block Box information is (at least including IP (Internet Protocol, the agreement interconnected between network) addresses and end Slogan) return to the Set Top Box 1 of current request;
Step S403, the acquisition of information that the resolution server of Set Top Box 1 is returned can download list;
Step S404, when data block A in set-top-box system also not acquired in which Set Top Box, machine Top box 1 then will be to downloading data A at upgrade server;
Step S405, the Set Top Box 2 in connection list downloads block data C;
Step S406, Set Top Box 1 is to the shared piecemeal downloaded of upgrade server;
Step S407, to the offer service of Set Top Box 3 arch, it downloads piecemeal A to Set Top Box 1 simultaneously;
Step S408, Set Top Box 2 downloads its block data for having obtained to the request of Set Top Box 3;
Step S409, Set Top Box 1 downloads block data B from Set Top Box 3;
Step S410, all block datas of Set Top Box 1 are downloaded and completed, and perform MD5 (Message-Digest Algorithm5, Message-Digest Algorithm 5) effect ensure file download success;
Step S411, Set Top Box 1 continues to provide data download service to other Set Top Boxes;
Step S412, when all set top box upgradings are finished in set-top-box system, under the declaration of Set Top Box 1 stops Carry service.
A kind of method for upgrading software is provided in the present embodiment, and Fig. 5 is the software according to example of the present invention The flow chart of upgrade method, as shown in figure 5, the method includes:
Step S502, when software version update, receives the software upgrading request of second terminal transmission;
Step S504, to the return of above-mentioned second terminal and the above-mentioned software upgrading corresponding response message of request, Wherein, the response message is used to indicating the address information of the first terminal for having obtained upgrading data, above-mentioned the The upgrading data that two terminals have been obtained according to the above-mentioned first terminal of address above mentioned acquisition of information, and according to above-mentioned Upgrading data carry out software upgrading.
By above-mentioned each step, when software version update, receive the software upgrading of second terminal transmission Request;To the return of above-mentioned second terminal and the above-mentioned software upgrading corresponding response message of request, wherein, should Response message is used for the address information that instruction has obtained the first terminal of upgrading data, above-mentioned second terminal root According to the upgrading data that the above-mentioned first terminal of address above mentioned acquisition of information has been obtained, and according to above-mentioned upgrading data Carry out software upgrading.By above-mentioned technical proposal, set-top-box system software upgrading in the prior art is solved Occupied bandwidth time problem long and upgrade cycle caused poor user experience long and operator's O&M difficulty, And then reach the effect that escalation process is rapidly completed on STB terminal.
In the present invention is implemented, for the sequence for downloading block data, the embodiment of the present invention is mainly provided Two kinds of technical schemes:(1) order sorts;(2) it is randomly ordered.
The first situation:(1) order sorts
Additionally provide in this example a kind of Set Top Box sort in sequence download block data software upgrading Method, in a download session for file, all of Set Top Box logically creates an interconnection State.Between Set Top Box and upgrade server, Set Top Box and Set Top Box are all to be connected with each other, mutually it Between all provide download and upload service.
When Set Top Box presses the sequence download of block data order, a piecemeal is often downloaded, just to server report Its blocking information for possessing is accused, and corresponding download service is externally provided, specific implementation step is as follows:
Step A, Set Top Box downloads image file to upgrade server request, server return it is current under The set top box information of this file is carried, this information at least IP including Set Top Box, port, and gathered around Some file blocks;
Step B, Set Top Box provides this block data according to these information according to the sequential search of piecemeal Set Top Box, and be connected in this Set Top Box and download corresponding block data, if also without any machine top Box provides this piecemeal, then just downloaded from upgrade server;
Step C, Set Top Box has been downloaded after the piecemeal on certain Set Top Box, reports what it possessed to server Blocking information, while providing download service, is conveniently supplied to other Set Top Boxes to download;
Step D, then to other Set Top Boxes or upgrade server request download other have not yet been downloaded point Block;
Step E, circulates C, D step, until all piecemeals have all been downloaded successively;
Step F, upgrading data have been downloaded, and MD5 verifications are performed to whole file, it is ensured that file download is normal;
Step G, continuation externally provides the download service of this file;
Step H, after the regular hour, stops external service, and this is downloaded and completes.
Second situation:(2) it is randomly ordered
A kind of software upgrading side of Set Top Box according to randomly ordered download block data is provided in this example Method, Set Top Box has often downloaded a piecemeal, just to server using the method for randomly ordered download piecemeal Its blocking information for possessing is reported, and corresponding download service is externally provided, specific implementation step is as follows:
Step A, Set Top Box downloads image file to upgrade server request, server return it is current under The set top box information of this file is carried, this information at least IP including Set Top Box, port, and it is all The file block downloaded;
Step B, Set Top Box calculates current set top box and has not yet been downloaded according to block data distributed intelligence, and And the number that possesses in the entire network is minimum block data, connection possesses the machine top of this block data Box is downloaded, if this piecemeal all there is not yet in all of Set Top Box, just from upgrade server Upper download;
Step C, Set Top Box has been downloaded after the piecemeal on certain Set Top Box, reports what it possessed to server Blocking information, and download service is provided, facilitate other Set Top Boxes to download;In the network of server return simultaneously Newest block data distributed intelligence, Set Top Box continues to download other piecemeals;
Step D, circulates above-mentioned steps successively, until all piecemeals have all been downloaded;
Step E, upgrading data have been downloaded, and MD5 verifications are performed to whole file, it is ensured that file download is normal;
Step F, continuation externally provides the download service of this file;
Step G, after the regular hour, stops external service, and this is downloaded and completes.
Through the above description of the embodiments, those skilled in the art can be understood that basis The method of above-described embodiment can add the mode of required general hardware platform to realize by software, certainly Can be by hardware, but the former is more preferably implementation method in many cases.Based on such understanding, this The part that the technical scheme of invention substantially contributes to prior art in other words can be with software product Form is embodied, the computer software product storage a storage medium (such as ROM/RAM, magnetic disc, CD) in, including some instructions are used to so that a station terminal equipment (can be mobile phone, computer, clothes Business device, or the network equipment etc.) perform the above-mentioned method of each embodiment of the invention.
A kind of software updating apparatus are additionally provided in the present embodiment, and correspondence above-mentioned steps S202-S206 should Device had carried out repeating no more for explanation for realizing above-described embodiment and preferred embodiment.Such as Used below, term " module " can realize the combination of the software and/or hardware of predetermined function.To the greatest extent Device described by pipe following examples is preferably realized with software, but hardware, or software and hard The realization of the combination of part is also that may and be contemplated.
Fig. 6 is the structured flowchart of software updating apparatus according to embodiments of the present invention, as shown in fig. 6, should Device includes such as lower module:
Sending module 62, asks for sending software upgrading to the upgrade server of Set Top Box;
First acquisition module 64, is connected with sending module 62, for obtaining what above-mentioned upgrade server was returned With the above-mentioned software upgrading corresponding response message of request, wherein, above-mentioned response message is used to indicate whether to deposit The first terminal of upgrading data is being obtained, when there is the first terminal for having obtained upgrading data, the sound Answer the address information that information is above-mentioned first terminal;
Second acquisition module 66, is connected, for according to address above mentioned acquisition of information with the first acquisition module 64 The upgrading data that above-mentioned first terminal has been obtained, and carry out software upgrading according to above-mentioned upgrading data.
By the comprehensive function of above-mentioned modules, sending module 62 sends to the upgrade server of Set Top Box Software upgrading is asked, and it is returning with above-mentioned software upgrading that the first acquisition module 64 obtains above-mentioned upgrade server Asking corresponding response message, response message is used for the address that instruction has obtained the first terminal of upgrading data Information, the ascending series that the second acquisition module 66 has been obtained according to the above-mentioned first terminal of address above mentioned acquisition of information According to, and carry out software upgrading according to above-mentioned upgrading data.Solve set-top-box system software in the prior art Upgrading poor user experience and operator's O&M is difficult asks caused by the occupied bandwidth time is long and upgrade cycle is long Topic, and then multiple spot download is reached, the dependence to upgrade server performance and bandwidth is broken away from, reduce due to rising The upgrade problem that level server performance factor is brought, shortens the update time of Set Top Box.
In a preferred software updating apparatus, included when in above-mentioned upgrading data packet:Part upgrading data, All during upgrading data, the second acquisition module 66, including:First acquisition submodule 662, for basis Address above mentioned information obtains above-mentioned all upgrading data from above-mentioned first terminal;Or second acquisition submodule 664, for obtaining above-mentioned respectively from multiple above-mentioned first terminals according to specified sequence according to address above mentioned information Part upgrading data, wherein, from some upgrading data compositions that above-mentioned multiple first terminals are obtained State all upgrading data.
Another software updating apparatus are additionally provided in the present embodiment, correspond to above-mentioned steps S502-S504, As shown in another structured flowchart of software updating apparatus Fig. 8 according to embodiments of the present invention, the device includes Such as lower module:
Receiver module 82, the software upgrading request for receiving second terminal transmission;
Module 84 is returned, is connected with receiver module 82, for being returned and above-mentioned software to above-mentioned second terminal The corresponding response message of upgrade request, wherein, the response message is used to indicate to have obtained the of upgrading data The address information of one terminal, above-mentioned second terminal has been obtained according to the above-mentioned first terminal of address above mentioned acquisition of information The upgrading data for taking, and carry out software upgrading according to above-mentioned upgrading data.
By the comprehensive function of above-mentioned modules, receiver module 82 receives the software liter that second terminal sends Level request;Return to module 84 and return to response letter corresponding with above-mentioned software upgrading request to above-mentioned second terminal Breath, wherein, the response message is used for the address information that instruction has obtained the first terminal of upgrading data, on State the upgrading data that second terminal has been obtained according to the above-mentioned first terminal of address above mentioned acquisition of information, and according to Above-mentioned upgrading data carry out software upgrading.Using above-mentioned technical proposal, Set Top Box in the prior art is solved System software upgrading occupied bandwidth time caused poor user experience long with upgrade cycle long and operator's O&M Difficult problem, and then multiple spot download is reached, the dependence to upgrade server performance and bandwidth is broken away from, subtract Less due to the upgrade problem that upgrade server performance factor brings, shorten the update time of Set Top Box.
It should be noted that above-mentioned modules can be by software or hardware to realize, for the latter, Can be accomplished by the following way, but not limited to this:Above-mentioned module is respectively positioned in same processor;Or, Above-mentioned module is located in multiple processors respectively.
In the present embodiment, a kind of software update system is additionally provided, Fig. 8 is according to embodiments of the present invention Software update system structured flowchart, as shown in figure 9, the system includes:Upgrade server 94, the One terminal 92, second terminal 96, wherein, upgrade server 94 sends for receiving second terminal 96 Software upgrading request, and send above-mentioned software upgrading to second terminal 96 and ask corresponding response message, Wherein, the response message is used for the address information that instruction has obtained the first terminal 92 of upgrading data;Second Terminal 96, for obtaining above-mentioned upgrading data from first terminal 92 according to address above mentioned information, and according to upper Stating upgrading data carries out software upgrading.
In an optional example, such as another knot of software update system Figure 10 according to embodiments of the present invention Said system shown in structure block diagram also includes the 4th terminal 98, the 4th terminal 98, in second terminal 96 When obtaining above-mentioned upgrading data from first terminal 92, to the above-mentioned upgrading data of the acquisition request of second terminal 96.
In order to be better understood from above-mentioned technical proposal, above-mentioned technical proposal is entered below in conjunction with preferred embodiment Row explanation, but the protection scheme for limiting the embodiment of the present invention is not used in, it is specific as follows:
Just start after having downloaded all upgrading data there is provided a kind of Set Top Box in a preferred embodiment of the invention The method for upgrading software of download service is provided, specific implementation step is as follows:
Step A, Set Top Box downloads upgrading data to upgrade server request, and server is returned and currently gathered around There are the set top box information of this data of all upgrading, this information at least IP including Set Top Box, port;
Step B, Set Top Box is connected to corresponding Set Top Box according to these information, in downloading this Set Top Box Whole upgrading data, if the current connection number of this Set Top Box exceedes predetermined threshold value, that continues to taste Next Set Top Box is tried, until finding a Set Top Box that can provide service, if to all not having finally Set Top Box available for download, just downloads from upgrade server;
Step C, data of all upgrading have been downloaded, and MD5 verifications are performed to whole file, it is ensured that file download Normally, the installation of upgrading data packet is performed after verification passes through, and completion has been downloaded to server feedback State, while opening download service;
Step D, externally provides this download service for all upgrading data, is downloaded for other Set Top Boxes;
Step E, after the regular hour, stops external download service.
A kind of set-top box recording is additionally provided in a preferred embodiment of the invention downloaded partial data point from it The method for upgrading software of the Set Top Box download information of block.Set Top Box has often downloaded a partial data piecemeal, Its partial data blocking information for possessing need not be reported to server, by provide download server or Set-top box recording this information, it is assumed that each Set Top Box can only allow simultaneously 2 Set Top Boxes therefrom under Carry partial data piecemeal, so when Set Top Box 1 be connected to Set Top Box 2 start a query at download certain part number During according to piecemeal, if the download service that Set Top Box 2 is currently provided also is less than predetermined threshold value, then Set Top Box 1 Just download part deblocking can be started with slave top box 2;Else if the clothes that Set Top Box 2 is currently provided Predetermined threshold value has been arrived in business, return one contain before downloaded from Set Top Box 2 or The Set Top Box list of this partial data piecemeal is downloaded, such Set Top Box 1 just gets other and possesses this The set top box information of partial data piecemeal, so circulation is gone down successively, and Set Top Box 1 can get more next The set top box informations for possessing this partial data piecemeal, can provide the Set Top Box of download service more for it More and more, specific implementation step is as follows:
Step A, Set Top Box to upgrade server ask download part deblocking, server return before from Here downloaded the set top box information of partial data piecemeal, this information at least IP including Set Top Box, Port, and the partial data piecemeal situation for being possessed;
Step B, the information that Set Top Box is returned according to upgrade server is connected to the described machine in list Whether top box, inquiry can therefrom download the partial data piecemeal, if this Set Top Box can be carried For download service, that just downloads corresponding partial data piecemeal from this Set Top Box;If this machine top Predetermined threshold value has been arrived in the download service that box is currently provided, it is impossible to is provided download service again, is returned to one The individual Set Top Box list information downloaded here from or downloaded, Set Top Box is again from this list Selection Set Top Box goes to download corresponding partial data piecemeal, if finally providing this without any Set Top Box Individual partial data piecemeal, then just download from upgrade server;
Step C, Set Top Box has been downloaded after certain partial data piecemeal, there is provided the Set Top Box of download service or Person's upgrade server just records this information, there is provided downloaded to follow-up other Set Top Boxes;
Step D, the Set Top Box list information in step B, then to other Set Top Boxes or upgrading clothes Other partial data piecemeals having not yet been downloaded are downloaded in business device request;
Step E, circulates B, C, D step, until all partial data piecemeals have all been downloaded successively;
Step F, total data piecemeal has been downloaded, and MD5 verifications is performed to whole file, it is ensured that file download Normally;
Step G, continuation externally provides the download service of this file.
In sum, the embodiment of the present invention has reached following technique effect:Solve machine top in the prior art Box system software upgrading occupied bandwidth time caused poor user experience long with upgrade cycle long and operator's fortune Difficult problem is tieed up, and then reaches multiple spot download, break away from the dependence to upgrade server performance and bandwidth, Reduce the update time for shortening Set Top Box due to the upgrade problem that upgrade server performance factor brings;Afterwards Platform is downloaded, and the file block of fritter is only downloaded every time, and escalation process will not be to user's TV reception band To influence, the effect of Consumer's Experience is lifted.
Obviously, those skilled in the art should be understood that above-mentioned of the invention each module or each step can To be realized with general computing device, they can be concentrated on single computing device, or distribution On the network that multiple computing devices are constituted, alternatively, the journey that they can be can perform with computing device Sequence code is realized, it is thus possible to performed by computing device in being stored in storage device, and And in some cases, shown or described step can be performed with different from order herein, or They are fabricated to each integrated circuit modules respectively, or the multiple modules in them or step are made Realized into single integrated circuit module.So, the present invention is not restricted to any specific hardware and software With reference to.
The preferred embodiments of the present invention are the foregoing is only, is not intended to limit the invention, for this area Technical staff for, the present invention can have various modifications and variations.It is all in the spirit and principles in the present invention Within, any modification, equivalent substitution and improvements made etc. should be included in protection scope of the present invention Within.

Claims (10)

1. a kind of method for upgrading software, it is characterised in that including:
Software upgrading is sent to the upgrade server of Set Top Box to ask;
Obtain that the upgrade server returns with the software upgrading corresponding response message of request, wherein, The response message is used for the address information that instruction has obtained the first terminal of upgrading data;
The upgrading data that the first terminal has been obtained are obtained according to the address information, and according to the liter DBMS carries out software upgrading.
2. method according to claim 1, it is characterised in that included in the upgrading data packet:Portion When decilitre DBMS, data of all upgrading, the first terminal is obtained according to the address information and has been obtained Upgrading data, including:
All upgrading data are obtained from the first terminal according to the address information;Or
The part is obtained according to the address information respectively according to specified sequence from multiple first terminals Upgrading data, wherein, some upgrading data compositions obtained from the multiple first terminal are described complete Portion's upgrading data.
3. method according to claim 2, it is characterised in that when obtaining institute from the first terminal When the quantity for stating the second terminal of part upgrading data exceedes predetermined threshold value, sent to the first terminal and used After the request for obtaining the part upgrading data, methods described also includes:
The Set Top Box list information of the first terminal feedback is received, wherein, the Set Top Box list information bag Include:The address information of one or more third terminals;The third terminal is obtained from the first terminal The part upgrading data;
Address information according to the third terminal obtains the part upgrading data from the third terminal.
4. according to the method in claim 2 or 3, it is characterised in that the specified sequence includes: Randomly ordered, order sorts.
5. a kind of method for upgrading software, it is characterised in that including:
Receive the software upgrading request that second terminal sends;
To second terminal return and the software upgrading corresponding response message of request, wherein, the sound Answer information for indicate obtained upgrade data first terminal address information, the second terminal according to The address information obtains the upgrading data that the first terminal has been obtained, and is entered according to the upgrading data Row software upgrading.
6. a kind of software updating apparatus, it is characterised in that including:
Sending module, asks for sending software upgrading to the upgrade server of Set Top Box;
First acquisition module, for obtaining the right with software upgrading request of the upgrade server return The response message answered, wherein, the response message is used for the ground that instruction has obtained the first terminal of upgrading data Location information;
Second acquisition module, for obtaining the upgrading that the first terminal has been obtained according to the address information Data, and carry out software upgrading according to the upgrading data.
7. device according to claim 6, it is characterised in that included in the upgrading data packet:Portion When decilitre DBMS, data of all upgrading, second acquisition module, including:
First acquisition submodule, for obtaining the whole from the first terminal according to the address information Upgrading data;Or
Second acquisition submodule, for being sorted from multiple described first according to specified according to the address information Terminal obtains the part upgrading data respectively, wherein, from multiple portions that the multiple first terminal is obtained Decilitre DBMS composition all upgrading data.
8. a kind of software updating apparatus, it is characterised in that including:
Receiver module, the software upgrading request for receiving second terminal transmission;
Module is returned to, for returning to response letter corresponding with software upgrading request to the second terminal Breath, wherein, the response message is used for the address information that instruction has obtained the first terminal of upgrading data, institute State second terminal and the upgrading data that the first terminal has been obtained are obtained according to the address information, and according to The upgrading data carry out software upgrading.
9. a kind of software update system, it is characterised in that including:Upgrade server, first terminal, the Two terminals, wherein,
The upgrade server, the software upgrading request for receiving second terminal transmission, and to described the Two terminals send the software upgrading and ask corresponding response message, wherein, the response message is used to indicate The address information of the first terminal of upgrading data is obtained;
The second terminal, for obtaining the ascending series from the first terminal according to the address information According to, and carry out software upgrading according to the upgrading data.
10. system according to claim 9, it is characterised in that the system also includes:4th Terminal, for when the second terminal obtains the upgrading data from the first terminal, to described the Two terminal requests obtain the upgrading data.
CN201510890426.3A 2015-12-07 2015-12-07 Method for upgrading software, apparatus and system Pending CN106850720A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510890426.3A CN106850720A (en) 2015-12-07 2015-12-07 Method for upgrading software, apparatus and system
PCT/CN2016/108939 WO2017097210A1 (en) 2015-12-07 2016-12-07 Method, apparatus and system for upgrading software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510890426.3A CN106850720A (en) 2015-12-07 2015-12-07 Method for upgrading software, apparatus and system

Publications (1)

Publication Number Publication Date
CN106850720A true CN106850720A (en) 2017-06-13

Family

ID=59013732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510890426.3A Pending CN106850720A (en) 2015-12-07 2015-12-07 Method for upgrading software, apparatus and system

Country Status (2)

Country Link
CN (1) CN106850720A (en)
WO (1) WO2017097210A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218359A (en) * 2017-07-03 2019-01-15 深圳市中兴微电子技术有限公司 A kind of method and server end of internet of things equipment software upgrading
CN109547983A (en) * 2017-08-11 2019-03-29 浙江绍兴苏泊尔生活电器有限公司 Cooking appliance, control method and system thereof and server
CN113051544A (en) * 2019-12-26 2021-06-29 瑞昱半导体股份有限公司 External device and verification updating method thereof

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113067730A (en) * 2021-03-18 2021-07-02 上海挚想科技有限公司 Upgrading method, system and medium for terminal equipment of Internet of things
CN113377396B (en) * 2021-05-21 2022-07-12 珠海格力电器股份有限公司 Upgrading method and device, electronic equipment and storage medium
CN113660117B (en) * 2021-08-03 2024-06-11 西安万像电子科技有限公司 Method and device for accelerating content delivery of terminal equipment and content delivery system
CN114449554B (en) * 2022-01-28 2024-01-19 深圳Tcl新技术有限公司 Equipment upgrading method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141303A (en) * 2007-09-24 2008-03-12 华为技术有限公司 Client terminal updating method, server, client terminal of network management system
CN101778097A (en) * 2009-11-25 2010-07-14 中兴通讯股份有限公司 Network updating method and system and main service side used for realizing network upgrade
CN101795203A (en) * 2009-02-03 2010-08-04 华为软件技术有限公司 Method and device for downloading software upgrading data packet
US20110131413A1 (en) * 2009-11-30 2011-06-02 Electronics And Telecommunications Research Institute Apparatus and method for dynamic update of software-based iptv conditional access system
CN102387165A (en) * 2010-08-27 2012-03-21 腾讯科技(深圳)有限公司 System and method for upgrading software

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710934B (en) * 2009-11-25 2011-11-30 中兴通讯股份有限公司 Set-top box edition upgrading method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141303A (en) * 2007-09-24 2008-03-12 华为技术有限公司 Client terminal updating method, server, client terminal of network management system
CN101795203A (en) * 2009-02-03 2010-08-04 华为软件技术有限公司 Method and device for downloading software upgrading data packet
CN101778097A (en) * 2009-11-25 2010-07-14 中兴通讯股份有限公司 Network updating method and system and main service side used for realizing network upgrade
US20110131413A1 (en) * 2009-11-30 2011-06-02 Electronics And Telecommunications Research Institute Apparatus and method for dynamic update of software-based iptv conditional access system
CN102387165A (en) * 2010-08-27 2012-03-21 腾讯科技(深圳)有限公司 System and method for upgrading software

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218359A (en) * 2017-07-03 2019-01-15 深圳市中兴微电子技术有限公司 A kind of method and server end of internet of things equipment software upgrading
CN109547983A (en) * 2017-08-11 2019-03-29 浙江绍兴苏泊尔生活电器有限公司 Cooking appliance, control method and system thereof and server
CN109547983B (en) * 2017-08-11 2024-05-28 浙江绍兴苏泊尔生活电器有限公司 Cooking appliance, control method and system thereof and server
CN113051544A (en) * 2019-12-26 2021-06-29 瑞昱半导体股份有限公司 External device and verification updating method thereof

Also Published As

Publication number Publication date
WO2017097210A1 (en) 2017-06-15

Similar Documents

Publication Publication Date Title
CN106850720A (en) Method for upgrading software, apparatus and system
CN110830564B (en) CDN scheduling method, device, system and computer readable storage medium
CN101326493B (en) Method and device for distributing load of multiprocessor server
CN112512100B (en) Slice priority-based AMF (advanced metering framework) redirection method and newly-added management network element
US20090119388A1 (en) Content relaying device and content relaying method
CN101132373A (en) Method of providing qos for a flow
CN110460879B (en) Video request scheduling method, device, server and storage medium
CN107181804A (en) The method for down loading and device of resource
CN101662658B (en) Program push method, set-top box and electronic program guide
CN107040615A (en) Method for down loading, terminal and the computer-readable recording medium of media slicing
CN109982152A (en) P2P CDN method for processing business, intelligent gateway and CDN platform
CN110099292B (en) Data center node determination method and device and electronic equipment
CN104702980B (en) A kind of EPG data processing method, EPG server and EPG data processing system
CN112995783A (en) Advertisement insertion method, electronic device and storage medium
WO2012155702A1 (en) Method, system, service processing server for updating service key
CN101431659A (en) Interactive Web TV system and its processing method
CN111698281B (en) Resource downloading method and device, electronic equipment and storage medium
CN107734397A (en) Television advertisement obtaining and displaying method, advertisement server, television and system
CN112169312A (en) Queuing scheduling method, device, equipment and storage medium for cloud game service
CN105847173A (en) Content providing control method, terminal device and user device
CN110337043A (en) Video broadcasting method, device and the storage medium of TV
CN105933728A (en) Playing request method, device, and system
CN101800751B (en) Distributed real-time data-coding transmission method
CN112925946B (en) Service data storage method and device and electronic equipment
CN104602047A (en) Share method of EPG (error pattern generator) data, server, terminal and system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170613