CN105472418A - Abnormal state recovery method of set-top box system and set-top box - Google Patents

Abnormal state recovery method of set-top box system and set-top box Download PDF

Info

Publication number
CN105472418A
CN105472418A CN201510999509.6A CN201510999509A CN105472418A CN 105472418 A CN105472418 A CN 105472418A CN 201510999509 A CN201510999509 A CN 201510999509A CN 105472418 A CN105472418 A CN 105472418A
Authority
CN
China
Prior art keywords
register value
top box
set top
reading
data
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
CN201510999509.6A
Other languages
Chinese (zh)
Other versions
CN105472418B (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.)
Shenzhen Skyworth Digital Technology Co Ltd
Shenzhen Skyworth Software Co Ltd
Original Assignee
Shenzhen Skyworth Digital Technology Co Ltd
Shenzhen Skyworth Software 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 Shenzhen Skyworth Digital Technology Co Ltd, Shenzhen Skyworth Software Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN201510999509.6A priority Critical patent/CN105472418B/en
Publication of CN105472418A publication Critical patent/CN105472418A/en
Application granted granted Critical
Publication of CN105472418B publication Critical patent/CN105472418B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • H04N21/25858Management of client data involving client software characteristics, e.g. OS identifier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26291Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for providing content or additional data updates, e.g. updating software modules, stored at the client
    • 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
    • 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
    • H04N21/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Computer Graphics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses an abnormal state recovery method of a set-top box system and a set-top box. The abnormal state recovery method comprises the following steps: transmitting a checking instruction that carries a software version identification to a server in communication connection with the set-top box by the set-top box; receiving a check code list corresponding to the software version identification fed back by the server by responding to the checking instruction by the set-top box; checking data of each partition by the set-top box based on the check code list; and recovering data of the partition which is failed in checking by the set-top box. The technical scheme of the embodiment of the invention is conducive to reducing the update time, and reducing the storage space of an upgrade patch corresponding to data to be updated occupied in the set-top box.

Description

A kind of set-top-box system abnormality restoration methods and Set Top Box
Technical field
The present invention relates to set-top-box system detection field, be specifically related to a kind of set-top-box system abnormality restoration methods and Set Top Box.
Background technology
Digital video switching box (SetTopBox, STB), so-called Set Top Box is the equipment connecting television set and outside source.The digital signal of compression can be changed into television content by it, and shows on a television set.Except the image that the content that Set Top Box receives can provide except simulated television, sound, more be to receive digital content, make user can watch digital television program on existing television set, and carry out interactive digital amusement, education and commercialization activity by network.
But in Set Top Box use procedure, often there will be due to some loss of data on the flash of Long-Time Service, system file file by upgrading unsuccessfully when artificial destruction or system update, the system caused cannot perform and need recover.When the system of running into cannot perform, need upgrade recover time, system recovery method of the prior art be all data in Set Top Box are carried out renewals recovery, therefore, above-mentioned recovery process there is no specific aim and recovery time long.
Summary of the invention
Embodiments provide a kind of set-top-box system abnormality restoration methods and Set Top Box, to solving in prior art, when set-top-box system cannot perform, need to carry out renewals recover time, recovery operation lacks specific aim and the problem grown recovery time.
Embodiment of the present invention first aspect provides a kind of set-top-box system abnormality restoration methods, comprising:
Set Top Box sends the checking command carrying software version and identify to the server be connected with described set top box communication;
Described Set Top Box receives the check code list that described server responds the described software version mark correspondence of described checking command feedback;
Described Set Top Box verifies based on the data of described check code list to each subregion;
Described Set Top Box is recovered the data verifying failed subregion.
Wherein alternatively, before described Set Top Box sends and carries to the server be connected with described set top box communication checking command that software version identifies, described method also comprises:
Whether the register value that described Set Top Box detects described Set Top Box meets verification condition;
When detecting that the register value of described Set Top Box meets verification condition, triggering the described Set Top Box of execution and sending the step of carrying the checking command that software version identifies to the server be connected with described set top box communication.
Wherein alternatively, whether the register value that described Set Top Box detects described Set Top Box meets verification condition, comprising:
Described Set Top Box start up system boot files, and the register value after the startup of reading system boot files;
If detect, the register value after the described System guides file start of reading does not mate with the register value prestored, then described Set Top Box detects that register value meets verification condition.
Wherein alternatively, whether the register value that described Set Top Box detects described Set Top Box meets verification condition, comprising:
Described Set Top Box start up system boot files, and the register value after the startup of reading system boot files;
If detect, the register value after the described System guides file start of reading mates with the register value prestored, then described Set Top Box start up system kernel file, and the register value after the startup of reading system kernel file;
If detect the register value after the system kernel file start of reading do not mate with the described register value prestored or cannot reading system kernel file start after register value, the register value arranged after current system kernel file start is the first register value;
Described Set Top Box restarting systems boot files, and the first register value after the startup of reading system boot files;
If detect, the first register value after the described System guides file start of reading does not mate with the described register value prestored, then described Set Top Box detects that register value meets verification condition.
Wherein alternatively, whether the register value that described Set Top Box detects described Set Top Box meets verification condition, comprising:
Described Set Top Box start up system boot files, and the register value after the startup of reading system boot files;
If detect, the register value after the described System guides file start of reading mates with the register value prestored, then described Set Top Box start up system kernel file, the register value after reading system kernel file starts;
If detect, the register value after the described system kernel file start success of reading mates with the register value prestored, and described Set Top Box starts application file, and reads the register value after application file startup;
If detect the described application file of reading start after register value and the described register value prestored do not mate maybe cannot read application file start after register value, the register value arranged after current described application file startup is the second register value;
Described Set Top Box restarting systems boot files, and the second register value after the startup of reading system boot files;
If detect, the second register value after the described System guides file start of reading does not mate with the register value prestored, then described Set Top Box detects that register value meets verification condition.
Wherein alternatively, described check code list is Message Digest Algorithm 5 MD5 value list, and described Set Top Box verifies based on the data of described check code list to each subregion, comprising:
Described Set Top Box judges whether MD5 value corresponding to the data of each subregion that the described MD5 value list that described server sends the comprises MD5 value corresponding with the data of each subregion of data of set top box mates;
If judged result is coupling, then described Set Top Box checking data success;
If judged result is not for mate, then described Set Top Box checking data failure, and the partition identification to be updated that the MD5 value of preserving the data of the MD5 value unmatched Set Top Box subregion corresponding with the data of each subregion that the described MD5 value list that described server sends comprises is corresponding.
Wherein alternatively, described Set Top Box is recovered the data verifying failed subregion, comprises
Described Set Top Box sends out the renewal instruction of carrying partition identification to be updated to described server, receive described server and respond partition data corresponding to partition identification to be updated that described renewal instruction generates, the partition data corresponding to partition identification to be updated upgrades, and again performs the step that described Set Top Box verifies based on the data of described check code list to each subregion after renewal.
Wherein alternatively, if the success of described Set Top Box checking data, described Set Top Box carries out Default Value recovery to data;
Wherein alternatively, after described Set Top Box is recovered the data verifying failed subregion, described method also comprises:
The register value of described Set Top Box is set to the register value prestored, to make described Set Top Box start up system boot files again, and reading system boot files start after register value time, detect that the register value after the described System guides file start of reading mates with the register value prestored;
Described Set Top Box restarting systems boot files.
Embodiment of the present invention second aspect provides a kind of Set Top Box, it is characterized in that, comprising:
Sending module, for sending the checking command carrying software version and identify to the server be connected with described set top box communication;
Receiver module, responds the check code list of the described software version mark correspondence of described checking command feedback for receiving described server;
Correction verification module, for verifying based on the data of described check code list to each subregion;
Recover module, for recovering the data verifying failed subregion.
Wherein alternatively, described Set Top Box also comprises:
Detection module, before sending for described sending module and carry to the server be connected with described set top box communication checking command that software version identifies, whether the register value detecting described Set Top Box meets verification condition;
Trigger module, when detecting that the register value of described Set Top Box meets verification condition for described detection module, triggers the execution of described sending module and sends the operation of carrying the checking command that software version identifies to the server be connected with described set top box communication.
Wherein alternatively, described detection module comprises:
First start unit, for start up system boot files;
First reading unit, the register value after starting for reading system boot files;
First detecting unit, if for reading detected described System guides file start after register value do not mate with the register value prestored, then described detection module detects that register value meets verification condition.
Wherein alternatively, described detection module comprises:
Second start unit, for start up system boot files;
Second reading unit, the register value after starting for reading system boot files;
Second detecting unit, if for reading detected described System guides file start after register value mate with the register value prestored, then notify described second start unit start up system kernel file;
Described second start unit, also for start up system kernel file;
Described second reading unit, the register value after also starting for reading system kernel file;
Described second detecting unit, also for if reading detected system kernel file start after register value not mate with the described register value prestored or cannot reading system kernel file start after register value, notify the first setting unit current system kernel file start is set after register value be the first register value;
Described first setting unit is the first register value for the register value after arranging current system kernel file start;
Described second start unit, also for restarting systems boot files;
Described second reading unit, the first register value after also starting for reading system boot files;
Described second detecting unit, if also for reading detected described System guides file start after the first register value do not mate with the described register value prestored, then described detection module detects that register value meets verification condition.
Wherein alternatively, described detection module comprises:
3rd start unit, for start up system boot files;
Third reading gets unit, the register value after starting for reading system boot files;
3rd detecting unit, if for reading detected described System guides file start after register value mate with the register value prestored, then described 3rd start unit start up system kernel file;
Described 3rd start unit, also for start up system kernel file;
Described third reading gets unit, the register value after also starting for reading system kernel file;
Described 3rd detecting unit, if also for reading detected the success of described system kernel file start after register value mate with the register value prestored, notify described 3rd start unit startup application file, and read the register value after application file startup;
Described 3rd start unit, also for starting application file;
Described third reading gets unit, also for reading the register value after application file startup;
Described 3rd detecting unit, if also for detect the described application file of reading start after register value and the described register value prestored do not mate maybe cannot read application file start after register value, notifying that the second setting unit arranges the register value after current described application file startup is the second register value;
Described second setting unit is the second register value for the register value arranged after current described application file startup
Described 3rd start unit, also for restarting systems boot files;
Described third reading gets unit, the second register value after also starting for reading system boot files;
Described 3rd detecting unit, if also do not mate with the register value prestored for the second register value after the described System guides file start that described Set Top Box reads being detected, then described Set Top Box detects that register value meets verification condition.
Wherein alternatively, described check code list is Message Digest Algorithm 5 MD5 value list, and described correction verification module comprises:
Judging unit, for judging whether MD5 value corresponding to the data of each subregion that the described MD5 value list that described server sends the comprises MD5 value corresponding with the data of each subregion of data of set top box mates;
Storage unit, the partition identification to be updated that the MD5 value of the data of the MD5 value unmatched Set Top Box subregion that the data for preserving each subregion that the described MD5 value list that sends with described server comprises are corresponding is corresponding;
If the judged result of described judging unit is coupling, then described correction verification module checking data success;
If the judged result of described judging unit is not for mate, then described Set Top Box checking data failure, notifies the partition identification to be updated that the MD5 value of the data of the MD5 value unmatched Set Top Box subregion that the preservation of described storage unit is corresponding with the data of each subregion that the described MD5 value list that described server sends comprises is corresponding.
Described recovery module, specifically for sending out the renewal instruction of carrying partition identification to be updated to described server, receive described server and respond partition data corresponding to partition identification to be updated that described renewal instruction generates, the partition data corresponding to partition identification to be updated upgrades, and again notifies that correction verification module performs the operation verified based on the data of described check code list to each subregion after renewal.
Wherein alternatively, described Set Top Box also comprises:
Module is set, for recovering after the data of module to the failed subregion of verification recover, the register value of described Set Top Box is set to the register value prestored, to make described Set Top Box start up system boot files again, and reading system boot files start after register value time, detect that the register value after the described System guides file start of reading mates with the register value prestored;
Start module, for restarting systems boot files.
Can find out, in embodiment of the present invention technical scheme, Set Top Box sends the checking command carrying software version and identify to the server be connected with described set top box communication, receive the check code list that described server responds the described software version mark correspondence of described checking command feedback, verify based on the data of described check code list to each subregion, the data verifying failed subregion are recovered, wherein, Set Top Box is by recovering the data verifying failed subregion targetedly, be conducive to reducing update time, reduce the memory space that AKU corresponding to data to be updated takies in Set Top Box simultaneously.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the structural representation of a kind of network architecture that first embodiment of the invention provides;
Fig. 2 is the schematic flow sheet of a kind of set-top-box system abnormality restoration methods that second embodiment of the invention provides;
Fig. 3 is the schematic flow sheet of a kind of set-top-box system abnormality restoration methods that third embodiment of the invention provides;
Fig. 4 is the structural representation of a kind of Set Top Box that fourth embodiment of the invention provides;
Fig. 4-1 is the structural representation of a kind of detection module that fourth embodiment of the invention provides;
Fig. 4-2 is the structural representations of a kind of detection module that fourth embodiment of the invention provides;
Fig. 4-3 is the structural representations of a kind of detection module that fourth embodiment of the invention provides;
Fig. 5 is the structural representation of a kind of Set Top Box that fifth embodiment of the invention provides.
Embodiment
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Term " first ", " second " etc. in specification of the present invention and claims and above-mentioned accompanying drawing are for distinguishing different object, instead of for describing particular order.In addition, term " comprises " and " having " and their any distortion, and intention is to cover not exclusive comprising.Such as contain the process of series of steps or unit, method, system, product or equipment and be not defined in the step or unit listed, but also comprise the step or unit do not listed alternatively, or also comprise alternatively for other intrinsic steps of these processes, method, product or equipment or unit.
Mention that " embodiment " means in this article, the special characteristic in conjunction with the embodiments described, structure or characteristic can comprise at least one embodiment of the present invention.Each position in the description occurs that this phrase might not all refer to identical embodiment, neither with other embodiment mutual exclusion independently or alternative embodiment.Those skilled in the art's explicitly and implicitly understanding, embodiment described herein can combine with other embodiment.
The embodiment of the invention discloses a kind of set-top-box system abnormality restoration methods and Set Top Box, be conducive to reducing update time, reduce the memory space that AKU corresponding to data to be updated takies in Set Top Box simultaneously.Below be described in detail respectively.
In order to better understand a kind of set-top-box system abnormality restoration methods and Set Top Box disclosed in the embodiment of the present invention, first the network architecture that the embodiment of the present invention is suitable for is described below.Refer to Fig. 1, Fig. 1 is the structural representation of a kind of network architecture disclosed in first embodiment of the invention.As shown in Figure 1, this network architecture schematic diagram can comprise service equipment and client, and wherein, service equipment can comprise server, service host, service system and service platform etc., and client can comprise Set Top Box.Wherein, service equipment can communicate to connect with client.
Based on the network architecture shown in Fig. 1, the invention discloses a kind of set-top-box system abnormality restoration methods.Refer to Fig. 2, Fig. 2 is the schematic flow sheet of a kind of set-top-box system abnormality restoration methods that second embodiment of the invention provides, and as shown in Figure 2, the method in the embodiment of the present invention comprises the following steps:
S201, Set Top Box send the checking command carrying software version and identify to the server be connected with described set top box communication.
Wherein alternatively, before described Set Top Box sends and carries to the server be connected with described set top box communication checking command that software version identifies, described Set Top Box can also perform following operation:
Whether the register value that Set Top Box detects described Set Top Box meets verification condition;
When detecting that the register value of described Set Top Box meets verification condition, triggering the described Set Top Box of execution and sending the step of carrying the checking command that software version identifies to the server be connected with described set top box communication.
Wherein alternatively, the embodiment whether register value that described Set Top Box detects described Set Top Box meets verification condition can be:
Described Set Top Box start up system boot files, and the register value after the startup of reading system boot files;
If detect, the register value after the described System guides file start of reading does not mate with the register value prestored, then described Set Top Box detects that register value meets verification condition.
Wherein alternatively, the embodiment whether register value that described Set Top Box detects described Set Top Box meets verification condition can be:
Described Set Top Box start up system boot files, and the register value after the startup of reading system boot files;
If detect, the register value after the described System guides file start of reading mates with the register value prestored, then described Set Top Box start up system kernel file, and the register value after the startup of reading system kernel file;
If detect the register value after the system kernel file start of reading do not mate with the described register value prestored or cannot reading system kernel file start after register value, the register value arranged after current system kernel file start is the first register value;
Described Set Top Box restarting systems boot files, and the first register value after the startup of reading system boot files;
If detect, the first register value after the described System guides file start of reading does not mate with the described register value prestored, then described Set Top Box detects that register value meets verification condition.
Wherein alternatively, the embodiment whether register value that described Set Top Box detects described Set Top Box meets verification condition can be:
Described Set Top Box start up system boot files, and the register value after the startup of reading system boot files;
If detect, the register value after the described System guides file start of reading mates with the register value prestored, then described Set Top Box start up system kernel file, the register value after reading system kernel file starts;
If detect, the register value after the described system kernel file start success of reading mates with the register value prestored, and described Set Top Box starts application file, and reads the register value after application file startup;
If detect the described application file of reading start after register value and the described register value prestored do not mate maybe cannot read application file start after register value, the register value arranged after current described application file startup is the second register value;
Described Set Top Box restarting systems boot files, and the second register value after the startup of reading system boot files;
If detect, the second register value after the described System guides file start of reading does not mate with the register value prestored, then described Set Top Box detects that register value meets verification condition.
Understandably, whether Set Top Box meets verification condition by the register value automatically detecting described Set Top Box replaces by artificially judging whether extremely Set Top Box in prior art, thus can avoid the appearance of problem that the judgement caused by manual detection is inaccurate, cannot accurately locate.
S202, described Set Top Box receive the check code list that described server responds the described software version mark correspondence of described checking command feedback.
S203, described Set Top Box verify based on the data of described check code list to each subregion.
Wherein alternatively, described check code list is Message Digest Algorithm 5 MD5 value list, and the embodiment that described Set Top Box verifies based on the data of described check code list to each subregion can be:
Described Set Top Box judges whether MD5 value corresponding to the data of each subregion that the described MD5 value list that described server sends the comprises MD5 value corresponding with the data of each subregion of data of set top box mates;
If judged result is coupling, then described Set Top Box checking data success;
If judged result is not for mate, then described Set Top Box checking data failure, and the partition identification to be updated that the MD5 value of preserving the data of the MD5 value unmatched Set Top Box subregion corresponding with the data of each subregion that the described MD5 value list that described server sends comprises is corresponding.
S204, described Set Top Box are recovered the data verifying failed subregion.
Wherein alternatively, described Set Top Box to the embodiment that the data verifying failed subregion are recovered can be:
Described Set Top Box sends out the renewal instruction of carrying partition identification to be updated to described server, receive described server and respond partition data corresponding to partition identification to be updated that described renewal instruction generates, the partition data corresponding to partition identification to be updated upgrades, and again performs the step that described Set Top Box verifies based on the data of described check code list to each subregion after renewal.
Wherein alternatively, if the success of described Set Top Box checking data, described Set Top Box carries out Default Value recovery to data.
Wherein alternatively, after described Set Top Box is recovered the data verifying failed subregion, described Set Top Box can also perform following operation:
The register value of described Set Top Box is set to the register value prestored, to make described Set Top Box start up system boot files again, and reading system boot files start after register value time, detect that the register value after the described System guides file start of reading mates with the register value prestored;
Described Set Top Box restarting systems boot files.
Can find out, in embodiment of the present invention technical scheme, Set Top Box sends the checking command carrying software version and identify to the server be connected with described set top box communication, receive the check code list that described server responds the described software version mark correspondence of described checking command feedback, verify based on the data of described check code list to each subregion, the data verifying failed subregion are recovered, wherein, Set Top Box is by recovering the data verifying failed subregion targetedly, be conducive to reducing update time, reduce the memory space that AKU corresponding to data to be updated takies in Set Top Box simultaneously.
Based on the network architecture shown in Fig. 1, the invention discloses a kind of set-top-box system abnormality restoration methods.Refer to Fig. 3, Fig. 3 is the schematic flow sheet of a kind of set-top-box system abnormality restoration methods that third embodiment of the invention provides, and as shown in Figure 3, the method in the embodiment of the present invention comprises the following steps:
Whether the register value that S301, Set Top Box detect described Set Top Box meets verification condition.
Wherein, when detecting that the register value of described Set Top Box meets verification condition, triggering described Set Top Box and performing step S302.
Wherein alternatively, the embodiment whether register value that described Set Top Box detects described Set Top Box meets verification condition can be:
Described Set Top Box start up system boot files, and the register value after the startup of reading system boot files;
If detect, the register value after the described System guides file start of reading does not mate with the register value prestored, then described Set Top Box detects that register value meets verification condition.
Wherein alternatively, the embodiment whether register value that described Set Top Box detects described Set Top Box meets verification condition can be:
Described Set Top Box start up system boot files, and the register value after the startup of reading system boot files;
If detect, the register value after the described System guides file start of reading mates with the register value prestored, then described Set Top Box start up system kernel file, and the register value after the startup of reading system kernel file;
If detect the register value after the system kernel file start of reading do not mate with the described register value prestored or cannot reading system kernel file start after register value, the register value arranged after current system kernel file start is the first register value;
Described Set Top Box restarting systems boot files, and the first register value after the startup of reading system boot files;
If detect, the first register value after the described System guides file start of reading does not mate with the described register value prestored, then described Set Top Box detects that register value meets verification condition.
Wherein alternatively, the embodiment whether register value that described Set Top Box detects described Set Top Box meets verification condition can be:
Described Set Top Box start up system boot files, and the register value after the startup of reading system boot files;
If detect, the register value after the described System guides file start of reading mates with the register value prestored, then described Set Top Box start up system kernel file, the register value after reading system kernel file starts;
If detect, the register value after the described system kernel file start success of reading mates with the register value prestored, and described Set Top Box starts application file, and reads the register value after application file startup;
If detect the described application file of reading start after register value and the described register value prestored do not mate maybe cannot read application file start after register value, the register value arranged after current described application file startup is the second register value;
Described Set Top Box restarting systems boot files, and the second register value after the startup of reading system boot files;
If detect, the second register value after the described System guides file start of reading does not mate with the register value prestored, then described Set Top Box detects that register value meets verification condition.
S302, Set Top Box send the checking command carrying software version and identify to the server be connected with described set top box communication.
S303, described Set Top Box receive the check code list that described server responds the described software version mark correspondence of described checking command feedback.
S304, described Set Top Box verify based on the data of described check code list to each subregion.
Wherein, described check code list is Message Digest Algorithm 5 MD5 value list, and the embodiment that described Set Top Box verifies based on the data of described check code list to each subregion can be:
Described Set Top Box judges whether MD5 value corresponding to the data of each subregion that the described MD5 value list that described server sends the comprises MD5 value corresponding with the data of each subregion of data of set top box mates;
If judged result is coupling, then described Set Top Box checking data success;
If judged result is not for mate, then described Set Top Box checking data failure, and the partition identification to be updated that the MD5 value of preserving the data of the MD5 value unmatched Set Top Box subregion corresponding with the data of each subregion that the described MD5 value list that described server sends comprises is corresponding.
S305, described Set Top Box are recovered the data verifying failed subregion.
Wherein, described Set Top Box sends out the renewal instruction of carrying partition identification to be updated to described server, receive described server and respond partition data corresponding to partition identification to be updated that described renewal instruction generates, the partition data corresponding to partition identification to be updated upgrades, and again performs the step that described Set Top Box verifies based on the data of described check code list to each subregion after renewal.
Wherein, alternatively, if the success of described Set Top Box checking data, described Set Top Box carries out Default Value recovery to data.
S306, the register value of described Set Top Box is set to described in the register value that prestores, to make described Set Top Box start up system boot files again, and reading system boot files start after register value time, detect that the register value after the described System guides file start of reading mates with the register value prestored.
S307, described Set Top Box restarting systems boot files.
Can find out, in embodiment of the present invention technical scheme, Set Top Box sends the checking command carrying software version and identify to the server be connected with described set top box communication, receive the check code list that described server responds the described software version mark correspondence of described checking command feedback, verify based on the data of described check code list to each subregion, the data verifying failed subregion are recovered, wherein, Set Top Box is by recovering the data verifying failed subregion targetedly, be conducive to reducing update time, reduce the memory space that AKU corresponding to data to be updated takies in Set Top Box simultaneously.
Be apparatus of the present invention embodiment below, the method that apparatus of the present invention embodiment realizes for performing the inventive method embodiment two to three, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to the embodiment of the present invention two and embodiment three.
Refer to Fig. 4, Fig. 4 is the structural representation of a kind of Set Top Box that fourth embodiment of the invention provides, and as shown in Figure 4, the Set Top Box in the embodiment of the present invention comprises with lower module:
Sending module 1, for sending the checking command carrying software version and identify to the server be connected with described set top box communication;
Receiver module 2, responds the check code list of the described software version mark correspondence of described checking command feedback for receiving described server;
Correction verification module 3, for verifying based on the data of described check code list to each subregion;
Recover module 4, for recovering the data verifying failed subregion.
Wherein alternatively, described Set Top Box can further include:
Detection module 5, before sending for described sending module 1 and carry to the server be connected with described set top box communication checking command that software version identifies, whether the register value detecting described Set Top Box meets verification condition;
Trigger module 6, when detecting that the register value of described Set Top Box meets verification condition for described detection module 5, triggers the server that described sending module 1 performs to being connected with described set top box communication and sends the operation of carrying the checking command that software version identifies.
Wherein alternatively, described check code list is Message Digest Algorithm 5 MD5 value list, and described correction verification module 3 can further include:
Judging unit 31, for judging whether MD5 value corresponding to the data of each subregion that the described MD5 value list that described server sends the comprises MD5 value corresponding with the data of each subregion of data of set top box mates;
Storage unit 32, the partition identification to be updated that the MD5 value of the data of the MD5 value unmatched Set Top Box subregion that the data for preserving each subregion that the described MD5 value list that sends with described server comprises are corresponding is corresponding;
If the judged result of described judging unit 31 is couplings, then described correction verification module checking data success;
If the judged result of described judging unit 32 is not for mate, then described Set Top Box checking data failure, notifies the partition identification to be updated that the MD5 value of the data of the MD5 value unmatched Set Top Box subregion that the preservation of described storage unit 32 is corresponding with the data of each subregion that the described MD5 value list that described server sends comprises is corresponding.
Wherein alternatively, described recovery module 4, if specifically for described correction verification module 3 checking data failure, the renewal instruction of carrying partition identification to be updated is sent out to described server, receive described server and respond partition data corresponding to partition identification to be updated that described renewal instruction generates, the partition data corresponding to partition identification to be updated upgrades, and again notifies that correction verification module 3 performs the operation verified based on the data of described check code list to each subregion after renewal.
Wherein alternatively, described Set Top Box can further include:
Module 7 is set, for recovering after the data of module 4 to the failed subregion of verification recover, the register value of described Set Top Box is set to the register value prestored, to make described Set Top Box start up system boot files again, and reading system boot files start after register value time, detect that the register value after the described System guides file start of reading mates with the register value prestored;
Start module 8, for restarting systems boot files.
Wherein, as the optional execution mode of one, refer to the structural representation that Fig. 4-1, Fig. 4-1 is detection module 5 in fourth embodiment of the invention, as shown in Fig. 4-1, described detection module 5 can specifically comprise:
First start unit 51, for start up system boot files;
First reading unit 52, the register value after starting for reading system boot files;
First detecting unit 53, if for reading detected described System guides file start after register value do not mate with the register value prestored, then described detection module detects that register value meets verification condition.
Wherein, as the optional execution mode of one, refer to the structural representation that Fig. 4-2, Fig. 4-2 is detection modules 5 in fourth embodiment of the invention, as shown in the Fig. 4-2, described detection module 5 can specifically comprise:
Second start unit 54, for start up system boot files;
Second reading unit 55, the register value after starting for reading system boot files;
Second detecting unit 56, if for reading detected described System guides file start after register value mate with the register value prestored, then notify described second start unit start up system kernel file;
Described second start unit 54, also for start up system kernel file;
Described second reading unit 55, the register value after also starting for reading system kernel file;
Described second detecting unit 56, also for if reading detected system kernel file start after register value not mate with the described register value prestored or cannot reading system kernel file start after register value, notify the first setting unit current system kernel file start is set after register value be the first register value;
Described first setting unit 57 is the first register value for the register value after arranging current system kernel file start;
Described second start unit 54, also for restarting systems boot files;
Described second reading unit 55, the first register value after also starting for reading system boot files;
Described second detecting unit 56, if also for reading detected described System guides file start after the first register value do not mate with the described register value prestored, then described detection module detects that register value meets verification condition.
Wherein, as the optional execution mode of one, refer to the structural representation that Fig. 4-3, Fig. 4-3 is detection modules 5 in fourth embodiment of the invention, as shown in Fig. 4-3, described detection module 5 can specifically comprise:
3rd start unit 58, for start up system boot files;
Third reading gets unit 59, the register value after starting for reading system boot files;
3rd detecting unit 510, if for reading detected described System guides file start after register value mate with the register value prestored, then described 3rd start unit start up system kernel file;
Described 3rd start unit 58, also for start up system kernel file;
Described third reading gets unit 59, the register value after also starting for reading system kernel file;
Described 3rd detecting unit 510, also for if reading detected the success of described system kernel file start after register value mate with the register value prestored, notify that described 3rd start unit starts application file, and read the register value after application file startup;
Described 3rd start unit 58, also for starting application file;
Described third reading gets unit 59, also for reading the register value after application file startup;
Described 3rd detecting unit 510, if also for detect the described application file of reading start after register value and the described register value prestored do not mate maybe cannot read application file start after register value, notifying that the second setting unit arranges the register value after current described application file startup is the second register value;
Described second setting unit 511 is the second register value for the register value arranged after current described application file startup
Described 3rd start unit 58, also for restarting systems boot files;
Described third reading gets unit 59, the second register value after also starting for reading system boot files;
Described 3rd detecting unit 510, if also do not mate with the register value prestored for the second register value after the described System guides file start that described Set Top Box reads being detected, then described Set Top Box detects that register value meets verification condition.
Can find out, in embodiment of the present invention technical scheme, Set Top Box sends the checking command carrying software version and identify to the server be connected with described set top box communication, receive the check code list that described server responds the described software version mark correspondence of described checking command feedback, verify based on the data of described check code list to each subregion, the data verifying failed subregion are recovered, wherein, Set Top Box is by recovering the data verifying failed subregion targetedly, be conducive to reducing update time, reduce the memory space that AKU corresponding to data to be updated takies in Set Top Box simultaneously.
Please refer to Fig. 5, Fig. 5 is the structural representation of a kind of Set Top Box disclosed in the embodiment of the present invention.As shown in Figure 5, the Set Top Box in the embodiment of the present invention comprises: at least one processor 501, such as CPU, at least one receiver 503, at least one memory 504, at least one transmitter 505, at least one communication bus 502.Wherein, communication bus 502 is for realizing the connection communication between these assemblies.Wherein, in the embodiment of the present invention, the receiver 503 of device and transmitter 505 can be wired transmit ports, can be also wireless device, such as, comprise antenna assembly, for carrying out the communication of signaling or data with other node devices.Memory 504 can be high-speed RAM memory, also can be non-labile memory (non-volatilememory), such as at least one magnetic disc store.Memory 504 can also be optionally that at least one is positioned at the storage device away from aforementioned processor 501.Store batch processing code in memory 504, and described processor 501 is by communication bus 502, calls the code of storage in memory 504 to perform relevant function.
Described processor 501, for sending the checking command carrying software version and identify to the server be connected with described set top box communication; Receive the check code list that described server responds the described software version mark correspondence of described checking command feedback; Verify based on the data of described check code list to each subregion; The data verifying failed subregion are recovered.
Wherein alternatively, described processor 501, for before sending to the server be connected with described set top box communication and carrying checking command that software version identifies, whether the register value also for detecting described Set Top Box meets verification condition; When detecting that the register value of described Set Top Box meets verification condition, triggering the described Set Top Box of execution and sending the operation of carrying the checking command that software version identifies to the server be connected with described set top box communication.
Wherein alternatively, described processor 501, when whether the register value for detecting described Set Top Box meets verification condition, specifically for start up system boot files, and the register value after the startup of reading system boot files; If detect, the register value after the described System guides file start of reading does not mate with the register value prestored, then described Set Top Box detects that register value meets verification condition.
Wherein alternatively, described processor 501, when whether the register value for detecting described Set Top Box meets verification condition, specifically for start up system boot files, and the register value after the startup of reading system boot files; If detect, the register value after the described System guides file start of reading mates with the register value prestored, then described Set Top Box start up system kernel file, and the register value after the startup of reading system kernel file; If detect the register value after the system kernel file start of reading do not mate with the described register value prestored or cannot reading system kernel file start after register value, the register value arranged after current system kernel file start is the first register value; Restarting systems boot files, and the first register value after the startup of reading system boot files; If detect, the first register value after the described System guides file start of reading does not mate with the described register value prestored, then described Set Top Box detects that register value meets verification condition.
Wherein alternatively, described processor 501, when whether the register value for detecting described Set Top Box meets verification condition, specifically for start up system boot files, and the register value after the startup of reading system boot files; If detect, the register value after the described System guides file start of reading mates with the register value prestored, then described Set Top Box start up system kernel file, the register value after reading system kernel file starts; If detect, the register value after the described system kernel file start success of reading mates with the register value prestored, and described Set Top Box starts application file, and reads the register value after application file startup; If detect the described application file of reading start after register value and the described register value prestored do not mate maybe cannot read application file start after register value, the register value arranged after current described application file startup is the second register value; Described Set Top Box restarting systems boot files, and the second register value after the startup of reading system boot files; If detect, the second register value after the described System guides file start of reading does not mate with the register value prestored, then described Set Top Box detects that register value meets verification condition.
Wherein alternatively, described check code list is Message Digest Algorithm 5 MD5 value list, described processor 501, when for verifying based on the data of described check code list to each subregion, specifically for judging whether MD5 value corresponding to the data of each subregion that the described MD5 value list that described server sends the comprises MD5 value corresponding with the data of each subregion of data of set top box mates; If judged result is coupling, then described Set Top Box checking data success; If judged result is not for mate, then described Set Top Box checking data failure, and the partition identification to be updated that the MD5 value of preserving the data of the MD5 value unmatched Set Top Box subregion corresponding with the data of each subregion that the described MD5 value list that described server sends comprises is corresponding.
Wherein alternatively, described processor 501, when for recovering the data verifying failed subregion, if specifically for checking data success, carry out Default Value recovery to data; If checking data failure, the renewal instruction of carrying partition identification to be updated is sent out to described server, receive described server and respond partition data corresponding to partition identification to be updated that described renewal instruction generates, the partition data corresponding to partition identification to be updated upgrades, and again performs the operation verified based on the data of described check code list to each subregion after renewal.
Wherein alternatively, described processor is after the data for the subregion failed to verification are recovered, register value also for the register value of described Set Top Box is set to prestore, to make described Set Top Box start up system boot files again, and reading system boot files start after register value time, detect that the register value after the described System guides file start of reading mates with the register value prestored; Restarting systems boot files.
Can find out, in embodiment of the present invention technical scheme, Set Top Box sends the checking command carrying software version and identify to the server be connected with described set top box communication, receive the check code list that described server responds the described software version mark correspondence of described checking command feedback, verify based on the data of described check code list to each subregion, the data verifying failed subregion are recovered, wherein, Set Top Box is by recovering the data verifying failed subregion targetedly, be conducive to reducing update time, reduce the memory space that AKU corresponding to data to be updated takies in Set Top Box simultaneously.
The embodiment of the present invention also provides a kind of computer-readable storage medium, and wherein, this computer-readable storage medium can have program stored therein, and comprises the part or all of step of the method for supervising of any one service processes recorded in said method embodiment when this program performs.
It should be noted that, for aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
In several embodiments that the application provides, should be understood that, disclosed device, the mode by other realizes.Such as, device embodiment described above is only schematic, the such as division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprises all or part of step of some instructions in order to make a computer equipment (can be personal computer, server or the network equipment etc.) perform method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), portable hard drive, magnetic disc or CD etc. various can be program code stored medium.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is that the hardware that can carry out instruction relevant by program has come, this program can be stored in a computer-readable recording medium, storage medium can comprise: flash disk, read-only memory are (English: Read-OnlyMemory, be called for short: ROM), random access device (English: RandomAccessMemory, RAM), disk or CD etc. be called for short:.
A kind of set-top-box system abnormality restoration methods provided the embodiment of the present invention above and Set Top Box are described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (16)

1. a set-top-box system abnormality restoration methods, is characterized in that, described method comprises:
Set Top Box sends the checking command carrying software version and identify to the server be connected with described set top box communication;
Described Set Top Box receives the check code list that described server responds the described software version mark correspondence of described checking command feedback;
Described Set Top Box verifies based on the data of described check code list to each subregion;
Described Set Top Box is recovered the data verifying failed subregion.
2. the method for claim 1, is characterized in that, before described Set Top Box sends and carries to the server be connected with described set top box communication checking command that software version identifies, described method also comprises:
Whether the register value that described Set Top Box detects described Set Top Box meets verification condition;
When detecting that the register value of described Set Top Box meets verification condition, triggering the described Set Top Box of execution and sending the step of carrying the checking command that software version identifies to the server be connected with described set top box communication.
3. method as claimed in claim 2, it is characterized in that, whether the register value that described Set Top Box detects described Set Top Box meets verification condition, comprising:
Described Set Top Box start up system boot files, and the register value after the startup of reading system boot files;
If detect, the register value after the described System guides file start of reading does not mate with the register value prestored, then described Set Top Box detects that register value meets verification condition.
4. method as claimed in claim 2, it is characterized in that, whether the register value that described Set Top Box detects described Set Top Box meets verification condition, comprising:
Described Set Top Box start up system boot files, and the register value after the startup of reading system boot files;
If detect, the register value after the described System guides file start of reading mates with the described register value prestored, then described Set Top Box start up system kernel file, and the register value after the startup of reading system kernel file;
If detect the register value after the system kernel file start of reading do not mate with the described register value prestored or cannot reading system kernel file start after register value, the register value arranged after current system kernel file start is the first register value;
Described Set Top Box restarting systems boot files, and the first register value after the startup of reading system boot files;
If detect, the first register value after the described System guides file start of reading does not mate with the described register value prestored, then described Set Top Box detects that register value meets verification condition.
5. method as claimed in claim 2, it is characterized in that, whether the register value that described Set Top Box detects described Set Top Box meets verification condition, comprising:
Described Set Top Box start up system boot files, and the register value after the startup of reading system boot files;
If detect, the register value after the described System guides file start of reading mates with the described register value prestored, then described Set Top Box start up system kernel file, the register value after reading system kernel file starts;
If detect, the register value after the described system kernel file start success of reading mates with the described register value prestored, and described Set Top Box starts application file, and reads the register value after application file startup;
If detect the described application file of reading start after register value and the described register value prestored do not mate maybe cannot read application file start after register value, the register value arranged after current described application file startup is the second register value;
Described Set Top Box restarting systems boot files, and the second register value after the startup of reading system boot files;
If detect, the second register value after the described System guides file start of reading does not mate with the described register value prestored, then described Set Top Box detects that register value meets verification condition.
6. the method as described in any one of claim 3 to 5, is characterized in that, described check code list is Message Digest Algorithm 5 MD5 value list, and described Set Top Box verifies based on the data of described check code list to each subregion, comprising:
Described Set Top Box judges whether MD5 value corresponding to the data of each subregion that the described MD5 value list that described server sends the comprises MD5 value corresponding with the data of each subregion of data of set top box mates;
If judged result is coupling, then described Set Top Box checking data success;
If judged result is not for mate, then described Set Top Box checking data failure, and the partition identification to be updated that the MD5 value of preserving the data of the MD5 value unmatched Set Top Box subregion corresponding with the data of each subregion that the described MD5 value list that described server sends comprises is corresponding.
7. method as claimed in claim 6, is characterized in that, described Set Top Box is recovered the data verifying failed subregion, comprises
Described Set Top Box sends out the renewal instruction of carrying partition identification to be updated to described server;
Described Set Top Box receives described server and responds partition data corresponding to partition identification to be updated that described renewal instruction generates;
Described Set Top Box upgrades based on the partition data that the partition data of described reception is corresponding to partition identification to be updated, again performs the step that described Set Top Box verifies based on the data of described check code list to each subregion after renewal.
8. method as claimed in claim 7, is characterized in that, after described Set Top Box is recovered the data verifying failed subregion, described method also comprises:
The register value prestored described in the register value of described Set Top Box is set to, to make described Set Top Box start up system boot files again, and reading system boot files start after register value time, detect that the register value after the described System guides file start of reading mates with the described register value prestored;
Described Set Top Box restarting systems boot files.
9. a Set Top Box, is characterized in that, comprising:
Sending module, for sending the checking command carrying software version and identify to the server be connected with described set top box communication;
Receiver module, responds the check code list of the described software version mark correspondence of described checking command feedback for receiving described server;
Correction verification module, for verifying based on the data of described check code list to each subregion;
Recover module, for recovering the data verifying failed subregion.
10. Set Top Box as claimed in claim 9, it is characterized in that, described Set Top Box also comprises:
Detection module, before sending for described sending module and carry to the server be connected with described set top box communication checking command that software version identifies, whether the register value detecting described Set Top Box meets verification condition;
Trigger module, when detecting that the register value of described Set Top Box meets verification condition for described detection module, triggers the execution of described sending module and sends the operation of carrying the checking command that software version identifies to the server be connected with described set top box communication.
11. Set Top Box as claimed in claim 10, it is characterized in that, described detection module comprises:
First start unit, for start up system boot files;
First reading unit, the register value after starting for reading system boot files;
First detecting unit, if for reading detected described System guides file start after register value do not mate with the described register value prestored, then described detection module detects that register value meets verification condition.
12. Set Top Box as claimed in claim 10, it is characterized in that, described detection module comprises:
Second start unit, for start up system boot files;
Second reading unit, the register value after starting for reading system boot files;
Second detecting unit, if for reading detected described System guides file start after register value mate with the described register value prestored, then notify described second start unit start up system kernel file;
Described second start unit, also for start up system kernel file;
Described second reading unit, the register value after also starting for reading system kernel file;
Described second detecting unit, also for if reading detected system kernel file start after register value not mate with the described register value prestored or cannot reading system kernel file start after register value, notify the first setting unit current system kernel file start is set after register value be the first register value;
Described first setting unit is the first register value for the register value after arranging current system kernel file start;
Described second start unit, also for restarting systems boot files;
Described second reading unit, the first register value after also starting for reading system boot files;
Described second detecting unit, if also for reading detected described System guides file start after the first register value do not mate with the described register value prestored, then described detection module detects that register value meets verification condition.
13. Set Top Box as claimed in claim 10, it is characterized in that, described detection module comprises:
3rd start unit, for start up system boot files;
Third reading gets unit, the register value after starting for reading system boot files;
3rd detecting unit, if for reading detected described System guides file start after register value mate with the described register value prestored, then described 3rd start unit start up system kernel file;
Described 3rd start unit, also for start up system kernel file;
Described third reading gets unit, the register value after also starting for reading system kernel file;
Described 3rd detecting unit, also for if reading detected the success of described system kernel file start after register value mate with the described register value prestored, notify that described 3rd start unit starts application file, and read the register value after application file startup;
Described 3rd start unit, also for starting application file;
Described third reading gets unit, also for reading the register value after application file startup;
Described 3rd detecting unit, if also for detect the described application file of reading start after register value and the described register value prestored do not mate maybe cannot read application file start after register value, notifying that the second setting unit arranges the register value after current described application file startup is the second register value;
Described second setting unit is the second register value for the register value arranged after current described application file startup;
Described 3rd start unit, also for restarting systems boot files;
Described third reading gets unit, the second register value after also starting for reading system boot files;
Described 3rd detecting unit, if also do not mate with the described register value prestored for the second register value after the described System guides file start that described Set Top Box reads being detected, then described Set Top Box detects that register value meets verification condition.
14. Set Top Box as described in any one of claim 11 to 13, it is characterized in that, described check code list is Message Digest Algorithm 5 MD5 value list, and described correction verification module comprises:
Judging unit, for judging whether MD5 value corresponding to the data of each subregion that the described MD5 value list that described server sends the comprises MD5 value corresponding with the data of each subregion of data of set top box mates;
Storage unit, the partition identification to be updated that the MD5 value of the data of the MD5 value unmatched Set Top Box subregion that the data for preserving each subregion that the described MD5 value list that sends with described server comprises are corresponding is corresponding;
If the judged result of described judging unit is coupling, then described correction verification module checking data success;
If the judged result of described judging unit is not for mate, then described Set Top Box checking data failure, notifies the partition identification to be updated that the MD5 value of the data of the MD5 value unmatched Set Top Box subregion that the preservation of described storage unit is corresponding with the data of each subregion that the described MD5 value list that described server sends comprises is corresponding.
15. Set Top Box as claimed in claim 14, is characterized in that,
Described recovery module, specifically for sending out the renewal instruction of carrying partition identification to be updated to described server, receive described server and respond partition data corresponding to partition identification to be updated that described renewal instruction generates, the partition data corresponding to partition identification to be updated upgrades, and again notifies that correction verification module performs the operation verified based on the data of described check code list to each subregion after renewal.
16. Set Top Box as claimed in claim 15, it is characterized in that, described Set Top Box also comprises:
Module is set, for recovering after the data of module to the failed subregion of verification recover, the register value of described Set Top Box is set to the register value prestored, to make described Set Top Box start up system boot files again, and reading system boot files start after register value time, detect that the register value after the described System guides file start of reading mates with the described register value prestored;
Start module, for restarting systems boot files.
CN201510999509.6A 2015-12-28 2015-12-28 A kind of set-top-box system abnormality restoration methods and set-top box Active CN105472418B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510999509.6A CN105472418B (en) 2015-12-28 2015-12-28 A kind of set-top-box system abnormality restoration methods and set-top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510999509.6A CN105472418B (en) 2015-12-28 2015-12-28 A kind of set-top-box system abnormality restoration methods and set-top box

Publications (2)

Publication Number Publication Date
CN105472418A true CN105472418A (en) 2016-04-06
CN105472418B CN105472418B (en) 2018-07-03

Family

ID=55609632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510999509.6A Active CN105472418B (en) 2015-12-28 2015-12-28 A kind of set-top-box system abnormality restoration methods and set-top box

Country Status (1)

Country Link
CN (1) CN105472418B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608879A (en) * 2017-08-24 2018-01-19 北京珠穆朗玛移动通信有限公司 A kind of fault detection method, device and storage medium
CN107948750A (en) * 2017-12-15 2018-04-20 中广热点云科技有限公司 Set-top box automatically updates the method and its system of the rendition list
CN109766140A (en) * 2018-12-19 2019-05-17 青岛海信宽带多媒体技术有限公司 A kind of localization method and device that set-top box starting is abnormal
CN110225410A (en) * 2019-06-18 2019-09-10 青岛海信宽带多媒体技术有限公司 Prompt the method and device of set-top box exception

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101520734A (en) * 2008-12-17 2009-09-02 康佳集团股份有限公司 Method for upgrading data in flash memory, network TV and interactive set-top box thereof
US20100058312A1 (en) * 2008-07-31 2010-03-04 Kabushiki Kaisha Toshiba Content Data Providing System, Content Providing Apparatus and Content Data Processing Terminal
CN101800842A (en) * 2010-04-16 2010-08-11 四川长虹电器股份有限公司 Method for upgrading software of set-top box
CN102012831A (en) * 2010-12-08 2011-04-13 四川金网通电子科技有限公司 Over-the-air technology (OTA) upgrading method based on Linux platform
CN102890638A (en) * 2012-09-29 2013-01-23 深圳市九洲电器有限公司 Upgrade method of STB (set top box)
CN102902530A (en) * 2012-09-07 2013-01-30 四川长虹电器股份有限公司 Procedure verifying device based on Linux embedded operating system
CN104166561A (en) * 2014-07-25 2014-11-26 深圳市江波龙电子有限公司 Electronic device system start method and electronic device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100058312A1 (en) * 2008-07-31 2010-03-04 Kabushiki Kaisha Toshiba Content Data Providing System, Content Providing Apparatus and Content Data Processing Terminal
CN101520734A (en) * 2008-12-17 2009-09-02 康佳集团股份有限公司 Method for upgrading data in flash memory, network TV and interactive set-top box thereof
CN101800842A (en) * 2010-04-16 2010-08-11 四川长虹电器股份有限公司 Method for upgrading software of set-top box
CN102012831A (en) * 2010-12-08 2011-04-13 四川金网通电子科技有限公司 Over-the-air technology (OTA) upgrading method based on Linux platform
CN102902530A (en) * 2012-09-07 2013-01-30 四川长虹电器股份有限公司 Procedure verifying device based on Linux embedded operating system
CN102890638A (en) * 2012-09-29 2013-01-23 深圳市九洲电器有限公司 Upgrade method of STB (set top box)
CN104166561A (en) * 2014-07-25 2014-11-26 深圳市江波龙电子有限公司 Electronic device system start method and electronic device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608879A (en) * 2017-08-24 2018-01-19 北京珠穆朗玛移动通信有限公司 A kind of fault detection method, device and storage medium
CN107948750A (en) * 2017-12-15 2018-04-20 中广热点云科技有限公司 Set-top box automatically updates the method and its system of the rendition list
CN107948750B (en) * 2017-12-15 2019-11-01 中广热点云科技有限公司 Set-top box automatically updates the method and its system of the rendition list
CN109766140A (en) * 2018-12-19 2019-05-17 青岛海信宽带多媒体技术有限公司 A kind of localization method and device that set-top box starting is abnormal
CN110225410A (en) * 2019-06-18 2019-09-10 青岛海信宽带多媒体技术有限公司 Prompt the method and device of set-top box exception

Also Published As

Publication number Publication date
CN105472418B (en) 2018-07-03

Similar Documents

Publication Publication Date Title
CN105472418A (en) Abnormal state recovery method of set-top box system and set-top box
US20160019116A1 (en) Apparatus and method for recovering an information handling system from a non-operational state
KR20150099269A (en) Electronic device and method for firmware updating of a device
CN105556494B (en) Establishing physical presence with a trusted platform module by physically connecting or disconnecting a hot-pluggable device
US20210240491A1 (en) System and method for runtime synchronization and authentication of pre-boot device drivers for a rescue operating system
CN105468393A (en) Module version upgrading method and terminal apparatus
CN112527582A (en) Detection method, detection device, detection equipment and storage medium of server cable
US20170068585A1 (en) Method and Apparatus for Recovering System Software of Intelligent Terminal
US20170134384A1 (en) Method and device for obtaining superuser permission
CN105204880A (en) Computer system and setting method of basic input and output system
CN110633092A (en) Server for OTA (over the air) upgrading and embedded equipment upgrading method and device
CN103929676A (en) Method for remotely testing functions of intelligent television board card and intelligent television board card
CN103634388B (en) Controller is restarted in treatment storage server method and relevant device and communication system
CN107402720B (en) Hard disk processing method and device and terminal
CN110708489A (en) Communication method, communication device, electronic device and storage medium
US20180089045A1 (en) Method and device for performing hardware module diagnostics
CN107396185B (en) Upgrading method and system
CN108920338A (en) A kind of method and terminal indicating file system state
CN105549995A (en) Audio device upgrading method and apparatus
CN110703985B (en) Data synchronization method and out-of-band management equipment
KR101529713B1 (en) Method for improving system stability of android devices in abnormal power switching, and computer-readable recording medium for the same
US10725791B2 (en) Operating system boot up optimizations
CN105376646B (en) A kind of set top box upgrading program configuration method and device
CN111813600B (en) Method, device, terminal and medium for recovering controller
US9424118B2 (en) Change message broadcast error detection

Legal Events

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