CN112995767A - Set top box upgrade control method, set top box and computer readable storage medium - Google Patents

Set top box upgrade control method, set top box and computer readable storage medium Download PDF

Info

Publication number
CN112995767A
CN112995767A CN201911216529.6A CN201911216529A CN112995767A CN 112995767 A CN112995767 A CN 112995767A CN 201911216529 A CN201911216529 A CN 201911216529A CN 112995767 A CN112995767 A CN 112995767A
Authority
CN
China
Prior art keywords
network
upgrade
top box
package
upgrading
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
CN201911216529.6A
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 CN201911216529.6A priority Critical patent/CN112995767A/en
Publication of CN112995767A publication Critical patent/CN112995767A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Abstract

The embodiment of the invention provides a set-top box upgrading control method, which comprises the steps that after a new version package is deployed to an upgrading server, the set-top box sends a request to the upgrading server, and when the upgrading version package is detected, if the network upgrading package is continuously detected, the network upgrading package is downloaded; after the network upgrading package is downloaded successfully, backing up the current network configuration, then enabling the network configuration of the upgraded version to take effect and initiating a network request; if the network connection is unsuccessful, restoring the current network configuration of the backup and terminating the current version upgrading process; the invention also discloses a set-top box and a computer readable storage medium, by storing the program of the function and enabling the processor to implement the scheme, the invention effectively prevents network abnormity caused by version upgrade of the set-top box and exposes problems in advance in certain implementation processes, so that the problem occurrence probability is reduced, when the problem actually occurs, the invention can effectively carry out self-repair, and effectively reduce the problem solving cost.

Description

Set top box upgrade control method, set top box and computer readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of set top boxes, in particular to a set top box upgrading control method, a set top box and a computer readable storage medium.
Background
The set-top box is internally provided with application programs with various functions, and the application programs of the set-top box need to be upgraded along with the addition of new functions of the set-top box or the solution of new problems of repair. At present, in the operation and maintenance process of the set top box, after the version of the set top box is upgraded, due to some reason, the set top box network is abnormal and cannot be normally connected with the network or the management platform, so that the set top box is in an unmanageable state, and operation and maintenance personnel need to be arranged to arrive at the home of a client to complete repair, thereby causing great operation and maintenance cost.
Therefore, how to prevent network abnormality caused by version upgrade of the set-top box becomes a problem to be solved urgently in the upgrade process of the set-top box.
Disclosure of Invention
The set top box upgrading control method, the set top box and the computer readable storage medium mainly solve the problem that operation and maintenance personnel need to finish repairing at a customer home after network abnormity is caused by version upgrading of the existing set top box, and pre-protection cannot be performed. In order to solve the above technical problem, an embodiment of the present invention provides a set top box upgrade control method, including:
after the new version package is deployed to the upgrade server, the set-top box sends a request to the upgrade server, and when the upgrade version package is detected, if the network upgrade package is continuously detected, the network upgrade package is downloaded;
after the network upgrading package is downloaded successfully, backing up the current network configuration, then enabling the network configuration of the upgraded version to take effect and initiating a network request;
if the network connection is unsuccessful, restoring the current network configuration of the backup and terminating the current version upgrading process.
Optionally, after the current version upgrading process is terminated, reporting an exception to the upgrading server.
Optionally, after receiving the abnormal information report sent by the set-top box, the upgrade server stops the current upgrade deployment, performs problem analysis, and restarts the upgrade deployment after the problem is solved.
Optionally, the validating the upgraded version of the network configuration includes: and decompressing the network upgrade package, and copying the related configuration and the components to the corresponding positions to enable the network configuration of the upgraded version to take effect.
Optionally, the deploying of the new version package to the upgrade server includes: and simultaneously deploying the network upgrading package and the upgrading version package to an upgrading server, and configuring the network upgrading package and the upgrading version package in an upgrading configuration file.
Optionally, the generating process of the network upgrade package includes: and when the upgrade server detects that the configuration information of the current network configuration is different from the configuration information of the network configuration of the upgrade version, extracting the network difference configuration, packaging the network difference configuration and adding version verification information to generate the network upgrade package.
Optionally, the extracting the network difference configuration includes: and extracting the difference content from the upgrade version package by a preset extraction method.
Optionally, the configuration information includes a configuration file, data items stored in a database, and network-related component modules.
Further, the present invention also provides a set-top box, which includes a processor, a memory and a communication bus, where the memory has one or more computer programs, and the one or more computer programs can be executed by the one or more processors to implement the steps of the set-top box upgrade control method.
Further, the present invention also provides a computer-readable storage medium storing one or more computer programs, which are executable by one or more processors to implement the steps of the set-top box upgrade control method described above.
The invention has the beneficial effects that:
according to the set-top box upgrading control method provided by the embodiment of the invention, after the new version package is deployed to the upgrading server, the set-top box sends a request to the upgrading server, and when the upgrading version package is detected, if the network upgrading package is continuously detected, the network upgrading package is downloaded; after the network upgrading package is downloaded successfully, backing up the current network configuration, then enabling the network configuration of the upgraded version to take effect and initiating a network request; if the network connection is unsuccessful, restoring the current network configuration of the backup and terminating the current version upgrading process; in some implementation processes, network abnormity caused by version upgrading of the set top box is effectively prevented, problems are exposed in advance, the problem occurrence probability is reduced, self-repairing can be effectively carried out when problems actually occur, and the problem solving cost is effectively reduced.
Additional features and corresponding advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
Fig. 1 is a basic flowchart of a set-top box upgrade control method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a set top box according to a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention are described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The first embodiment is as follows:
in order to solve the problem that the existing set top box cannot be protected in advance due to network abnormity caused by direct version upgrading, the embodiment of the invention provides a set top box upgrading control method. Fig. 1 is a basic flowchart of a set-top box upgrade control method provided in an embodiment of the present invention, where the method includes:
s101: and after the new version package is deployed to the upgrading server, the set-top box sends a request to the upgrading server and detects that the upgrading version package exists.
It should be understood that, for example, to solve the field network related failure (e.g. the configured PPPOE has wrong authentication parameters, which results in the field being unable to normally access the PPPOE environment) or the development of new network requirements (e.g. the field is added with the IPV6 network environment, and the version is to provide support for the IPV 6), the network related code or configuration needs to be modified and the whole network upgrade needs to be deployed.
Specifically, when the new version package is deployed to the upgrade server, the network upgrade package and the upgrade version package need to be deployed to the upgrade server in the upgrade configuration file at the same time.
The manufacturing process of the network upgrading packet comprises the following steps:
1. identifying changed network-related configuration information: in the integration process of the new version of the set-top box, the upgrade server detects that the configuration information of the current network configuration of the existing network is different from the configuration information of the network configuration of the upgraded version through a network configuration comparison tool. The configuration information includes: configuration files, data items stored in a database, network-related component modules.
2. Differential configuration extraction: and (3) extracting the network difference configuration from the set-top box version package by using a network configuration extraction tool from the current version project according to the network related parameter configuration in the new version and the current network version through a preset extraction method.
3. Manufacturing a network upgrading package: after the network difference configuration is extracted, all contents are packaged into a version packet and added with version check information through a version packet manufacturing tool for subsequent upgrading
And after the new version package is deployed to the upgrade server, the set top box is started up, a request is sent to the upgrade server, whether the set top box has the upgrade version package or not is detected, and whether the set top box needs to be upgraded or not is judged.
S102: judging whether a network upgrading packet is detected, if so, turning to 104; otherwise, go to 103.
After the upgrade version package is detected, the download of the upgrade version package is not performed, but whether the network upgrade package is detected is judged.
S103: and downloading the upgrade version package and upgrading the version.
Under the condition that the network upgrading package is not detected, the upgrading does not change the related configuration of the network, namely the connection condition of the network is not influenced after the upgrading, so that the upgrading version package can be directly downloaded for upgrading the version.
S104: downloading the network upgrading package, backing up the current network configuration, enabling the network configuration of the upgraded version to take effect and initiating a network request.
When the network upgrade package is detected, it is described that the upgrade changes the configuration related to the network, that is, the connection condition of the network may be affected after the upgrade. And after detecting the network upgrading package, downloading the network upgrading package to the set top box, wherein the network upgrading package is the version mirror image package needing upgrading. After the network upgrade package is downloaded successfully, the current network configuration is backed up, the network upgrade package is decompressed, the relevant configuration and components are copied to the corresponding positions, the network configuration of the upgrade version is enabled to take effect, and meanwhile, the new configuration and components are used for initiating a network request.
S105: judging whether the network connection is successful, if so, turning to 106; otherwise, go to 103.
If the network connection is successful, the upgrading version package can be directly downloaded to carry out version upgrading. If the network connection is unsuccessful, the situation of network abnormity appears after the upgrade.
S106: and restoring the current network configuration of the backup and terminating the current version upgrading process.
If the network connection is unsuccessful, restoring the current network configuration which is backed up before to enable the network to be recovered to be normal, terminating the current version upgrading process and reporting the current abnormal information to an upgrading server. And after receiving the abnormal information report sent by the set top box, the upgrade server stops the current upgrade deployment, analyzes the problem, and restarts the upgrade deployment after the problem is solved.
The set-top box upgrading control method provided by the embodiment of the invention has the advantages that after the new version package is deployed to the upgrading server, the set-top box sends a request to the upgrading server, and when the upgrading version package is detected, if the network upgrading package is continuously detected, the network upgrading package is downloaded; after the network upgrading package is downloaded successfully, backing up the current network configuration, then enabling the network configuration of the upgraded version to take effect and initiating a network request; if the network connection is unsuccessful, restoring the current network configuration of the backup and terminating the current version upgrading process; in some implementation processes, network abnormity caused by version upgrading of the set top box is effectively prevented, problems are exposed in advance, the problem occurrence probability is reduced, self-repairing can be effectively carried out when problems actually occur, and the problem solving cost is effectively reduced.
Example two
The present embodiment further provides a set-top box, as shown in fig. 2, which includes a processor 21, a memory 22 and a communication bus 23, wherein:
the communication bus 23 is used for realizing connection communication between the processor 21 and the memory 22;
the processor 21 is configured to execute one or more computer programs stored in the memory 22 to implement at least one step of the set-top box upgrade control method in the first embodiment.
The present embodiments also provide a computer-readable storage medium including volatile or non-volatile, removable or non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, computer program modules or other data. Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash Memory or other Memory technology, CD-ROM (Compact disk Read-Only Memory), Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer.
The computer-readable storage medium in this embodiment may be used to store one or more computer programs, and the stored one or more computer programs may be executed by a processor to implement at least one step of the set-top box upgrade control method in the first embodiment.
It will be apparent to those skilled in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software (which may be implemented in computer program code executable by a computing device), firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit.
In addition, communication media typically embodies computer readable instructions, data structures, computer program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to one of ordinary skill in the art. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing is a more detailed description of embodiments of the present invention, and the present invention is not to be considered limited to such descriptions. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (10)

1. A set top box upgrade control method comprises the following steps:
after the new version package is deployed to the upgrade server, the set-top box sends a request to the upgrade server, and when the upgrade version package is detected, if the network upgrade package is continuously detected, the network upgrade package is downloaded;
after the network upgrading package is downloaded successfully, backing up the current network configuration, then enabling the network configuration of the upgraded version to take effect and initiating a network request;
if the network connection is unsuccessful, restoring the current network configuration of the backup and terminating the current version upgrading process.
2. The upgrade control method for a set-top box according to claim 1, wherein the step of reporting an exception to the upgrade server is further included after the current version upgrade procedure is terminated.
3. The set-top box upgrade control method according to claim 2, wherein the upgrade server stops the current upgrade deployment and performs problem analysis after receiving the abnormal information report sent by the set-top box, and restarts the upgrade deployment after the problem is solved.
4. The set-top box upgrade control method according to claim 1, wherein said validating the upgraded version of the network configuration comprises: and decompressing the network upgrade package, and copying the related configuration and the components to the corresponding positions to enable the network configuration of the upgraded version to take effect.
5. The set-top box upgrade control method of claims 1-4, wherein deploying the new version package to an upgrade server comprises: and simultaneously deploying the network upgrading package and the upgrading version package to an upgrading server, and configuring the network upgrading package and the upgrading version package in an upgrading configuration file.
6. The set-top box upgrade control method according to claim 5, wherein the generation process of the network upgrade package comprises: and when the upgrade server detects that the configuration information of the current network configuration is different from the configuration information of the network configuration of the upgrade version, extracting the network difference configuration, packaging the network difference configuration and adding version verification information to generate the network upgrade package.
7. The set-top box upgrade control method according to claim 6, wherein the extracting the network difference configuration comprises: and extracting the difference content from the upgrade version package by a preset extraction method.
8. The set-top box upgrade control method according to claims 6-7, wherein the configuration information comprises configuration files, data items stored in a database, network-related component modules.
9. A set-top box comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more computer programs stored in the memory to implement the steps of the set-top box upgrade control method according to any one of claims 1-8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores one or more computer programs executable by one or more processors to implement the steps of the set-top box upgrade control method according to any one of claims 1-8.
CN201911216529.6A 2019-12-02 2019-12-02 Set top box upgrade control method, set top box and computer readable storage medium Pending CN112995767A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911216529.6A CN112995767A (en) 2019-12-02 2019-12-02 Set top box upgrade control method, set top box and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911216529.6A CN112995767A (en) 2019-12-02 2019-12-02 Set top box upgrade control method, set top box and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112995767A true CN112995767A (en) 2021-06-18

Family

ID=76331482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911216529.6A Pending CN112995767A (en) 2019-12-02 2019-12-02 Set top box upgrade control method, set top box and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112995767A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040092255A1 (en) * 2002-11-12 2004-05-13 De Ji Upgrading of electronic files including automatic recovery from failures and errors occurring during the upgrade
CN101001316A (en) * 2006-12-31 2007-07-18 北京广博数字电视科技有限公司 Software staging management method and system of set-top box
CN102253850A (en) * 2011-07-08 2011-11-23 烽火通信科技股份有限公司 Incremental software updating method of internet protocol television (IPTV) set top box
CN102841793A (en) * 2011-06-23 2012-12-26 中兴通讯股份有限公司 Software upgrading method and terminal
CN106604134A (en) * 2016-12-21 2017-04-26 深圳市瑞珀数码科技有限公司 Set top box based control method and apparatus
CN106843969A (en) * 2017-01-23 2017-06-13 北京晶海科技有限公司 A kind of method and system that software is updated in continuous service
CN107332690A (en) * 2017-06-06 2017-11-07 烽火通信科技股份有限公司 A kind of method that sub-network level network configuration data retracts
CN107438186A (en) * 2016-05-25 2017-12-05 中兴通讯股份有限公司 A kind of network backup reconnection method, device and set top box
CN108271054A (en) * 2017-01-03 2018-07-10 中国移动通信有限公司研究院 A kind of firmware upgrade backup method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040092255A1 (en) * 2002-11-12 2004-05-13 De Ji Upgrading of electronic files including automatic recovery from failures and errors occurring during the upgrade
CN101001316A (en) * 2006-12-31 2007-07-18 北京广博数字电视科技有限公司 Software staging management method and system of set-top box
CN102841793A (en) * 2011-06-23 2012-12-26 中兴通讯股份有限公司 Software upgrading method and terminal
CN102253850A (en) * 2011-07-08 2011-11-23 烽火通信科技股份有限公司 Incremental software updating method of internet protocol television (IPTV) set top box
CN107438186A (en) * 2016-05-25 2017-12-05 中兴通讯股份有限公司 A kind of network backup reconnection method, device and set top box
CN106604134A (en) * 2016-12-21 2017-04-26 深圳市瑞珀数码科技有限公司 Set top box based control method and apparatus
CN108271054A (en) * 2017-01-03 2018-07-10 中国移动通信有限公司研究院 A kind of firmware upgrade backup method and device
CN106843969A (en) * 2017-01-23 2017-06-13 北京晶海科技有限公司 A kind of method and system that software is updated in continuous service
CN107332690A (en) * 2017-06-06 2017-11-07 烽火通信科技股份有限公司 A kind of method that sub-network level network configuration data retracts

Similar Documents

Publication Publication Date Title
CN107608706B (en) Automatic hot updating method for application program based on functional module
US10701084B2 (en) Reliable and secure firmware update with a dynamic validation for internet of things (IoT) devices
EP1142309B1 (en) Method and apparatus for operating system downloads in a set-top box environment
US9244758B2 (en) Systems and methods for repairing system files with remotely determined repair strategy
CN109491698B (en) System updating method and device based on hot patch
US20160132420A1 (en) Backup method, pre-testing method for environment updating and system thereof
CN109634638B (en) Cluster software upgrading method, device, equipment and medium
CN109361542B (en) Client fault processing method, device, system, terminal and server
CN104915226A (en) Network device software starting method, device and network device
CN112099825B (en) Method, device, equipment and storage medium for upgrading component
CN111506326A (en) Method, device and equipment for upgrading terminal equipment and storage medium
CN112732285B (en) Upgrading method and device suitable for cloud computing linux operating system and electronic equipment
WO2017198156A1 (en) Service deployment method, apparatus and system
CN110806884A (en) Method and device for repairing operating system fault
CN112306552A (en) System software version management method, device and storage medium
CN113642004B (en) Method, device and equipment for safely scanning and repairing container mirror image
CN105550071A (en) System file upgrading and detecting method and communication device
CN112905230A (en) Application program management method and device, terminal equipment and storage medium
CN112995767A (en) Set top box upgrade control method, set top box and computer readable storage medium
CN103713911A (en) Single version upgrading method and single version upgrading device
CN113687867B (en) Shutdown method, system, equipment and storage medium of cloud platform cluster
CN114546420A (en) Software remote installation protection uninstalling method
CN111427718A (en) File backup method, recovery method and device
US11714631B2 (en) Method, electronic device, and computer program product for managing operating system
CN113094280B (en) Upgrade method, system, and 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