WO2015176550A1 - 一种机顶盒配置破坏的修复方法及装置 - Google Patents

一种机顶盒配置破坏的修复方法及装置 Download PDF

Info

Publication number
WO2015176550A1
WO2015176550A1 PCT/CN2015/071339 CN2015071339W WO2015176550A1 WO 2015176550 A1 WO2015176550 A1 WO 2015176550A1 CN 2015071339 W CN2015071339 W CN 2015071339W WO 2015176550 A1 WO2015176550 A1 WO 2015176550A1
Authority
WO
WIPO (PCT)
Prior art keywords
configuration
top box
set top
file
normal
Prior art date
Application number
PCT/CN2015/071339
Other languages
English (en)
French (fr)
Inventor
王茜
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015176550A1 publication Critical patent/WO2015176550A1/zh

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/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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • 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

Definitions

  • the invention relates to the technical field of repairing a set top box configuration, in particular to a method and a device for repairing a set top box configuration damage.
  • IPTV Internet Protocol Television
  • IPTV Internet Protocol Television
  • the set-top box For the set-top box, if the IPTV service system needs to be connected, the set-top box needs to be correctly configured, the network environment, the user account password, the service system setting, etc., and these configurations need to be written into the set-top box for reading and using the set-top box. Once the key configuration error occurs, or the configuration partition of the set-top box configuration is damaged due to some unpredictable factors such as power failure, the set-top box cannot be read to the correct configuration, and the service system cannot be accessed and the IPTV service is available. When users encounter this situation, they can't know exactly where the error occurred, so that the set-top box can only be used normally through rework, and the repair process takes time, affecting the user to watch IPTV, and also increases the operator's input cost. Therefore, how to avoid some configuration errors caused by abnormalities and unable to access the system, and realize the automatic repair configuration of the set-top box becomes very important.
  • the object of the present invention is to provide a method and a device for repairing a set top box configuration to solve the problem that the set top box user in the related art is abnormally powered off due to an erroneous operation or a power failure of the set top box during the write configuration process, and thus the IPTV service cannot be enjoyed.
  • the problem is to provide a method and a device for repairing a set top box configuration to solve the problem that the set top box user in the related art is abnormally powered off due to an erroneous operation or a power failure of the set top box during the write configuration process, and thus the IPTV service cannot be enjoyed.
  • a method for repairing a set top box configuration failure includes the following steps:
  • the configuration determined to be normal is written into a configuration file for storage, and the boot process is continued;
  • the configuration in the set top box configuration partition is repaired using the configuration previously saved in the configuration file, and the set top box is restarted.
  • the step of determining whether the configuration in the set top box configuration partition is normal includes:
  • the step of repairing the configuration in the set top box configuration partition by using the configuration saved in the configuration file before comprises:
  • the file in the configuration partition is erased, and it is determined whether the configuration repair file previously saved in the configuration file is normal;
  • the configuration in the set top box configuration partition is repaired by using the configuration repair file previously saved in the configuration file.
  • the configuration in the set top box configuration partition is repaired by using the configuration repair file previously saved in the configuration file.
  • the method further includes:
  • the configuration repair operation is not performed.
  • a repair device for destroying a set top box configuration comprising a configuration judgment module and a configuration processing module, wherein:
  • the configuration determining module is configured to: determine whether the configuration in the set top box configuration partition is normal during the startup of the set top box;
  • the configuration processing module is configured to: when it is determined that the configuration of the set top box is normal, write the configuration that is determined to be normal to a configuration file for saving, and continue the booting process; when it is determined that the configuration of the set top box is abnormal, use The configuration previously saved in the configuration file fixes the configuration in the set top box configuration partition and restarts the set top box.
  • the configuration determining module is configured to determine whether the configuration in the set top box configuration partition is normal according to the following manner:
  • the configuration processing module includes a first repair unit, wherein
  • the configuration determining module is further configured to: determine whether the configuration abnormality of the set top box is abnormal of the set top box configuration partition; and determine whether the configuration repair file previously saved in the configuration file is normal;
  • the first repairing unit is configured to: when the configuration determining module determines that the configuration abnormality of the set top box is abnormal, the file in the configuration partition is erased, and notify the configuration determining module to save before saving Whether the configuration repair file in the configuration file is normal; when the configuration determination module determines that the configuration repair file saved in the configuration file is normal, the configuration repair file saved in the configuration file is used to repair the The configuration in the set-top box configuration partition.
  • the configuration processing module further includes a second repair unit, where
  • the configuration determining module is further configured to: determine whether the configuration abnormality of the set top box is a key configuration abnormality in the set top box configuration partition; and determine whether the configuration repair file previously saved in the configuration file is normal;
  • the second repairing unit is configured to: when the configuration determining module determines that the configuration abnormality of the set top box is a key configuration abnormality in the set top box configuration partition, notify the configuration determining module to determine that the configuration is previously saved in the configuration file. Whether the configuration repair file is normal, and when the configuration determination module determines that the configuration repair file saved in the configuration file is normal, the configuration repair file saved in the configuration file is used to repair the set top box configuration partition. Configuration.
  • the configuration processing module is further configured to:
  • the configuration determination module determines that the configuration repair file previously saved in the configuration file is abnormal, the configuration repair operation is not performed.
  • a computer program comprising program instructions that, when executed by a computer, cause the computer to perform any of the above-described repair methods for set top box configuration corruption.
  • a carrier carrying the computer program A carrier carrying the computer program.
  • the technical solution of the present invention automatically detects the abnormal configuration of the set-top box and automatically starts the configuration and repair process to repair the configuration without user participation, ensuring that the user can enjoy the IPTV service in a timely and effective manner, reducing the repair of the set-top box, and saving operating costs.
  • FIG. 1 is a flowchart of a method for repairing a configuration failure of a set top box according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a repairing device for destroying a set top box according to an embodiment of the present invention
  • FIG. 3 is a flowchart of detecting a boot configuration of a set top box according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a process for repairing and repairing a set top box according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for repairing a configuration change of a set top box according to an embodiment of the present invention. As shown in FIG. 1 , the method includes the following steps:
  • Step S101 During the startup of the set top box, determine whether the configuration in the set top box configuration partition is normal;
  • Determining whether the configuration in the set top box configuration partition is normal includes: determining the set top Whether the box configuration partition is normal, and it is determined whether the key configuration in the set top box configuration partition is normal.
  • the key configuration may be set in advance, or may be an important configuration that is commonly used by those skilled in the art.
  • the key configuration refers to the configuration that the set-top box must be configured when it leaves the factory. Without these configurations, the set-top box cannot operate normally.
  • the key configuration can include only the product serial number and other necessary information.
  • Step S102 When it is determined that the configuration of the set top box is normal, the configuration determined to be normal is written into a configuration file for saving, and the booting process is continued;
  • Step S103 When it is determined that the configuration of the set top box is abnormal, the configuration in the set top box configuration partition is repaired by the configuration saved in the configuration file, and the set top box is restarted.
  • repairing the configuration in the set top box configuration partition by using a configuration saved in the configuration file includes: when it is determined that the configuration abnormality of the set top box is abnormal, the set top box configuration partition is abnormal, Erasing the file in the configuration partition, and determining whether the configuration repair file saved in the configuration file is normal; if it is determined that the configuration repair file saved in the configuration file is normal, the current save is used in the The configuration in the configuration file fixes the configuration in the set top box configuration partition; and when it is determined that the configuration abnormality of the set top box is a key configuration abnormality in the set top box configuration partition, it is determined that the configuration in the configuration file is previously saved.
  • the configuration of the repair file is normal; if it is determined that the configuration repair file saved in the configuration file is normal, the configuration in the set top box configuration partition is repaired by using the configuration saved in the configuration file. And when it is determined that the configuration repair file stored in the configuration file is abnormal, the configuration repair operation is not performed.
  • FIG. 2 is a schematic diagram of a repairing device for destroying a set top box according to an embodiment of the present invention. As shown in FIG. 2, the method includes:
  • the configuration determining module 201 is configured to: determine whether the configuration in the set top box configuration partition is normal during the startup of the set top box;
  • the configuration processing module 202 is configured to: when it is determined that the configuration of the set top box is normal, write the configuration determined to be normal to a configuration file for saving, and continue the booting process, and when determining that the configuration of the set top box is abnormal, The configuration in the set top box configuration partition is repaired with the configuration previously saved in the configuration file, and the set top box is restarted.
  • the determining whether the configuration in the set top box configuration partition is normal includes: determining whether the set top box configuration partition is normal, and determining whether a key configuration in the set top box configuration partition is normal.
  • the configuration processing module 202 includes: a first repairing unit 2021, configured to: when determining that the configuration abnormality of the set top box is the set top box configuration partition, erasing a file in the configuration partition, and determining that the configuration is saved in the previous configuration Whether the configuration repair file in the file is normal, and when it is determined that the configuration repair file saved in the configuration file is normal, the configuration in the set top box configuration partition is repaired by the configuration saved in the configuration file.
  • the second repairing unit 2022 is configured to: when it is determined that the configuration abnormality of the set top box is a key configuration in the set top box configuration partition, determine whether the configuration repair file saved in the configuration file is normal, and when determining If the configuration repair file previously saved in the configuration file is normal, the configuration in the set top box configuration partition is repaired by the configuration previously saved in the configuration file. And when it is determined that the configuration repair file stored in the configuration file is abnormal, the configuration repair operation is not performed.
  • the embodiment of the invention further discloses a repairing device for the destruction of the set top box configuration, comprising the configuration judging module and the configuration processing module as described in FIG. 2, wherein:
  • the configuration determining module is configured to: determine whether the configuration in the set top box configuration partition is normal during the startup of the set top box;
  • the configuration processing module is configured to: when it is determined that the configuration of the set top box is normal, write the configuration that is determined to be normal to a configuration file for saving, and continue the booting process; when it is determined that the configuration of the set top box is abnormal, use The configuration previously saved in the configuration file fixes the configuration in the set top box configuration partition and restarts the set top box.
  • the configuration determining module is configured to determine whether the configuration in the set top box configuration partition is normal according to the following manner:
  • the configuration processing module includes a first repair unit, wherein
  • the configuration determining module is further configured to: determine whether the configuration abnormality of the set top box is abnormal of the set top box configuration partition; determine whether the configuration repair file previously saved in the configuration file is positive often;
  • the first repairing unit is configured to: when the configuration determining module determines that the configuration abnormality of the set top box is abnormal, the file in the configuration partition is erased, and notify the configuration determining module to save before saving Whether the configuration repair file in the configuration file is normal; when the configuration determination module determines that the configuration repair file saved in the configuration file is normal, the configuration repair file saved in the configuration file is used to repair the The configuration in the set-top box configuration partition.
  • the configuration processing module further includes a second repair unit, wherein
  • the configuration determining module is further configured to: determine whether the configuration abnormality of the set top box is a key configuration abnormality in the set top box configuration partition; and determine whether the configuration repair file previously saved in the configuration file is normal;
  • the second repairing unit is configured to: when the configuration determining module determines that the configuration abnormality of the set top box is a key configuration abnormality in the set top box configuration partition, notify the configuration determining module to determine that the configuration is previously saved in the configuration file. Whether the configuration repair file is normal, and when the configuration determination module determines that the configuration repair file saved in the configuration file is normal, the configuration repair file saved in the configuration file is used to repair the set top box configuration partition. Configuration.
  • the configuration processing module is further configured to:
  • the configuration determination module determines that the configuration repair file previously saved in the configuration file is abnormal, the configuration repair operation is not performed.
  • FIG. 3 is a flowchart of detecting a boot configuration of a set top box according to an embodiment of the present invention. As shown in FIG. 3, the method includes the following steps:
  • Step S301 The set top box is powered on, and the configuration is read from the configuration partition.
  • Step S302 The set top box determines whether the configuration read from the configuration partition is normal
  • Whether the read configuration is normal includes whether the configuration can be read normally and whether the read configuration is normal. If the read configuration is normal, proceed to step S303; if the read configuration is abnormal, then Proceed to step S304. Whether the configuration is normal includes: the set-top box performs validity check on the configuration read from the configuration partition. If the configuration partition is found to be unsuccessful, and some key configurations are illegal or the content is empty, the configuration is considered abnormal. Otherwise, if the configuration partition is open and critical If the configuration has a value and is within a reasonable range, the configuration is considered normal.
  • Step S303 If the read configuration is normal, the read configuration information is written in the FLASH file, and the process of starting the boot of the set top box is continued;
  • Step S304 If the read configuration is abnormal, the reason for reading the abnormality is recorded, and the repair configuration process is started to perform the repair of the configuration.
  • FIG. 4 is a flowchart of a process for repairing and repairing a set top box according to an embodiment of the present invention. As shown in FIG. 4, the method includes the following steps:
  • Step 1 Start the configuration repair process.
  • Step 2 determining an abnormality caused by the destruction of the current configuration partition
  • the set-top box reads the configuration from the configuration partition, and detects some important configurations that affect the login of the set-top box. If the content of the configuration item is empty or the content is illegal, the read configuration is abnormal due to the critical configuration. Go to step 3. If the configuration partition cannot be opened or the configuration cannot be read from the configuration partition, the read configuration is abnormal due to the configuration partition destruction. Go to step 4.
  • Step 3 Determine whether the configuration file saved in the flash is normal. If it is normal, use the configuration saved in the flash to repair the current set-top box configuration. Otherwise, no configuration repair is performed.
  • Step 4 Erase the configuration partition and determine whether the configuration saved in the current flash file is normal. If it is normal, the configuration file saved in the flash is written to the configuration partition for repair configuration, otherwise the configuration is not repaired.
  • Step 5 Restart the set-top box.
  • the embodiment of the invention further discloses a computer program, comprising program instructions, which, when executed by a computer, enable the computer to perform the repair method of any of the above-mentioned set top box configuration destruction.
  • the embodiment of the invention also discloses a carrier carrying the computer program.
  • the technical solution of the present invention can perform configuration self-test during the startup process of the set-top box, and when the read configuration is abnormal, the repair configuration process is started to be automatically repaired, thereby ensuring that the user normally views the IPTV. program.
  • the technical solution of the present invention automatically detects the abnormal configuration of the set-top box and automatically starts the configuration and repair process to repair the configuration without user participation, ensuring that the user can enjoy the IPTV service in a timely and effective manner, reducing the repair of the set-top box, and saving operating costs. Therefore, the present invention has strong industrial applicability.

Abstract

一种机顶盒配置破坏的修复方法及装置,涉及多媒体终端技术领域,其方法包括以下步骤:机顶盒开机启动期间,判断所述机顶盒配置分区中的配置是否正常;当判断所述机顶盒的配置正常时,将判断为正常的配置写入一个配置文件中进行保存,并继续进行开机流程;当判断所述机顶盒的配置异常时,利用之前保存在所述配置文件中的配置修复所述机顶盒配置分区中的配置,并重新启动所述机顶盒。本发明技术方案通过判断机顶盒配置分区中的配置异常,自动启动配置修复进程来对配置进行修复,无需用户参与,保证用户能够及时有效的享受IPTV服务,减少机顶盒的返修,节省运营成本。

Description

一种机顶盒配置破坏的修复方法及装置 技术领域
本发明涉及机顶盒配置破坏的修复技术领域,特别涉及一种机顶盒配置破坏的修复方法及装置。
背景技术
随着IPTV(Internet Protocol Television,网络协议电视)技术的不断发展,IPTV以其丰富的节目源,方便快捷的操作方式,强大的多媒体业务能力,被越来越多的用户所接受。机顶盒作为IPTV业务使用的终端设备,已悄然进入万千用户家庭。
对于机顶盒而言,如果需要接入IPTV业务系统,则需要对机顶盒进行正确的配置,网络环境,用户账号密码,业务系统设置等,这些配置都需要写入机顶盒中,供机顶盒读取使用。一旦关键配置发生错误,或者保存机顶盒配置的配置分区因为断电等一些不可预知的因素遭受破坏,机顶盒开机无法读取正确的配置,就无法接入业务系统,享受IPTV服务了。用户碰到这种情况,也无从知晓到底哪里发生了错误,以至于机顶盒只能通过返修才可以正常使用,而返修的过程需要时间,影响用户观看IPTV,也增加了运营商投入成本。因此,如何能够避免一些异常导致的配置错误而无法接入系统,实现机顶盒自动修复配置,变得十分重要。
发明内容
本发明的目的在于提供一种机顶盒配置破坏的修复方法及装置,以解决相关技术中的机顶盒用户由于错误操作或者机顶盒在写配置过程中异常断电,导致的机顶盒启动异常,进而无法享受IPTV服务的问题。
为解决上述技术问题,采用如下技术方案:
一种机顶盒配置破坏的修复方法,包括以下步骤:
机顶盒开机启动期间,判断所述机顶盒配置分区中的配置是否正常;
当判断所述机顶盒的配置正常时,将判断为正常的配置写入一个配置文件中进行保存,并继续进行开机流程;
当判断所述机顶盒的配置异常时,利用之前保存在所述配置文件中的配置修复所述机顶盒配置分区中的配置,并重新启动所述机顶盒。
可选地,所述判断所述机顶盒配置分区中的配置是否正常的步骤包括:
判断所述机顶盒配置分区是否正常,且判断所述机顶盒配置分区中的关键配置是否正常。
可选地,当判断所述机顶盒的配置异常时,利用在前保存在所述配置文件中的配置修复所述机顶盒配置分区中的配置的步骤包括:
当判断所述机顶盒的配置异常是所述机顶盒配置分区异常时,擦除配置分区中的文件,并判断之前保存在所述配置文件中的配置修复文件是否正常;
若判断之前保存在所述配置文件中的配置修复文件正常,则利用之前保存在所述配置文件中的配置修复文件修复所述机顶盒配置分区中的配置。
可选地,当判断所述机顶盒的配置异常时,利用之前保存在所述配置文件中的配置修复所述机顶盒配置分区中的配置的步骤包括:
当判断所述机顶盒的配置异常是所述机顶盒配置分区中的关键配置异常时,判断之前保存在所述配置文件中的配置修复文件是否正常;
若判断之前保存在所述配置文件中的配置修复文件正常,则利用之前保存在所述配置文件中的配置修复文件修复所述机顶盒配置分区中的配置。
可选地,该方法还包括:
若判断之前保存在所述配置文件中的配置修复文件异常,则不做配置修复操作。
一种机顶盒配置破坏的修复装置,包括配置判断模块和配置处理模块,其中:
所述配置判断模块设置成:机顶盒开机启动期间,判断所述机顶盒配置分区中的配置是否正常;
所述配置处理模块设置成:当判断所述机顶盒的配置正常时,将判断为正常的配置写入一个配置文件中进行保存,并继续进行开机流程;当判断所述机顶盒的配置异常时,利用之前保存在所述配置文件中的配置修复所述机顶盒配置分区中的配置,并重新启动所述机顶盒。
可选地,所述配置判断模块设置成按照如下方式判断所述机顶盒配置分区中的配置是否正常:
判断所述机顶盒配置分区是否正常,且判断所述机顶盒配置分区中的关键配置是否正常。
可选地,配置处理模块包括第一修复单元,其中
所述配置判断模块还设置成:判断所述机顶盒的配置异常是否是所述机顶盒配置分区异常;判断之前保存在所述配置文件中的配置修复文件是否正常;
所述第一修复单元设置成:当所述配置判断模块判断所述机顶盒的配置异常是所述机顶盒配置分区异常时,擦除配置分区中的文件,并通知所述配置判断模块判断之前保存在所述配置文件中的配置修复文件是否正常;当所述配置判断模块判断之前保存在所述配置文件中的配置修复文件正常,则利用之前保存在所述配置文件中的配置修复文件修复所述机顶盒配置分区中的配置。
可选地,所述配置处理模块还包括第二修复单元,其中
所述配置判断模块还设置成:判断所述机顶盒的配置异常是否是所述机顶盒配置分区中的关键配置异常;判断之前保存在所述配置文件中的配置修复文件是否正常;
所述第二修复单元设置成:当所述配置判断模块判断所述机顶盒的配置异常是所述机顶盒配置分区中的关键配置异常时,通知所述配置判断模块判断之前保存在所述配置文件中的配置修复文件是否正常,当所述配置判断模块判断之前保存在所述配置文件中的配置修复文件正常,则利用之前保存在所述配置文件中的配置修复文件修复所述机顶盒配置分区中的配置。
可选地,所述配置处理模块还设置成:
若所述配置判断模块判断之前保存在所述配置文件中的配置修复文件异常,则不做配置修复操作。
一种计算机程序,包括程序指令,当该程序指令被计算机执行时,使得该计算机可执行上述任意的机顶盒配置破坏的修复方法。
一种载有所述计算机程序的载体。
与相关技术相比较,本发明技术方案的有益效果在于:
本发明技术方案通过自动检测机顶盒配置异常,并自动启动配置修复进程来对配置进行修复,无需用户参与,保证用户能够及时有效的享受IPTV服务,减少机顶盒的返修,节省运营成本。
附图概述
图1是本发明实施例提供的一种机顶盒配置破坏的修复方法流程图;
图2是本发明实施例提供的一种机顶盒配置破坏的修复装置示意图;
图3是本发明实施例提供的机顶盒开机配置检测的流程图;
图4是本发明实施例提供的机顶盒配置破坏修复过程的流程图。
本发明的较佳实施方式
以下结合附图对本发明的优选实施例进行详细说明,应当理解,以下所说明的优选实施例仅用于说明和解释本发明,并不用于限定本发明。
图1显示了本发明实施例提供的一种机顶盒配置破坏的修复方法流程图,如图1所示,包括以下步骤:
步骤S101:机顶盒开机启动期间,判断所述机顶盒配置分区中的配置是否正常;
所述的判断所述机顶盒配置分区中的配置是否正常包括:判断所述机顶 盒配置分区是否正常,且判断所述机顶盒配置分区中的关键配置是否正常。其中,关键配置可以事先设置,也可以是对于本领域技术人员来说常用的重要配置。关键配置是指机顶盒出厂时必须要配置的配置,缺少这些配置,机顶盒不能正常运行,比如关键配置可以仅包括产品序列号,还可以包括其他必要信息。
步骤S102:当判断所述机顶盒的配置正常时,将判断为正常的配置写入一个配置文件中进行保存,并继续进行开机流程;
步骤S103:当判断所述机顶盒的配置异常时,利用在前保存在所述配置文件中的配置修复所述机顶盒配置分区中的配置,并重新启动所述机顶盒。
当判断所述机顶盒的配置异常时,利用在前保存在所述配置文件中的配置修复所述机顶盒配置分区中的配置包括:当判断所述机顶盒的配置异常是所述机顶盒配置分区异常时,擦除配置分区中的文件,并判断在前保存在所述配置文件中的配置修复文件是否正常;若判断在前保存在所述配置文件中的配置修复文件正常,则利用在前保存在所述配置文件中的配置修复所述机顶盒配置分区中的配置;以及,当判断所述机顶盒的配置异常是所述机顶盒配置分区中的关键配置异常时,判断在前保存在所述配置文件中的配置修复文件是否正常;若判断在前保存在所述配置文件中的配置修复文件正常,则利用在前保存在所述配置文件中的配置修复所述机顶盒配置分区中的配置。并当判断在前保存在所述配置文件中的配置修复文件异常,则不做配置修复操作。
图2显示了本发明实施例提供的一种机顶盒配置破坏的修复装置示意图,如图2所示,包括:
配置判断模块201,设置成:机顶盒开机启动期间,判断所述机顶盒配置分区中的配置是否正常;
配置处理模块202,设置成:当判断所述机顶盒的配置正常时,将判断为正常的配置写入一个配置文件中进行保存,并继续进行开机流程,以及当判断所述机顶盒的配置异常时,利用在前保存在所述配置文件中的配置修复所述机顶盒配置分区中的配置,并重新启动所述机顶盒。
其中,所述的判断所述机顶盒配置分区中的配置是否正常包括:判断所述机顶盒配置分区是否正常和判断所述机顶盒配置分区中的关键配置是否正常。
所述配置处理模块202包括:第一修复单元2021,设置成:当判断所述机顶盒的配置异常是所述机顶盒配置分区时,擦除配置分区中的文件,并判断在前保存在所述配置文件中的配置修复文件是否正常,以及当判断在前保存在所述配置文件中的配置修复文件正常,则利用在前保存在所述配置文件中的配置修复所述机顶盒配置分区中的配置。第二修复单元2022,设置成:当判断所述机顶盒的配置异常是所述机顶盒配置分区中的关键配置时,判断在前保存在所述配置文件中的配置修复文件是否正常,以及当判断在前保存在所述配置文件中的配置修复文件正常,则利用在前保存在所述配置文件中的配置修复所述机顶盒配置分区中的配置。并当判断在前保存在所述配置文件中的配置修复文件异常,则不做配置修复操作。
本发明实施例还公开了一种机顶盒配置破坏的修复装置,包括如图2所述的配置判断模块和配置处理模块,其中:
所述配置判断模块设置成:机顶盒开机启动期间,判断所述机顶盒配置分区中的配置是否正常;
所述配置处理模块设置成:当判断所述机顶盒的配置正常时,将判断为正常的配置写入一个配置文件中进行保存,并继续进行开机流程;当判断所述机顶盒的配置异常时,利用之前保存在所述配置文件中的配置修复所述机顶盒配置分区中的配置,并重新启动所述机顶盒。
可选地,所述配置判断模块设置成按照如下方式判断所述机顶盒配置分区中的配置是否正常:
判断所述机顶盒配置分区是否正常,且判断所述机顶盒配置分区中的关键配置是否正常。
可选地,配置处理模块包括第一修复单元,其中
所述配置判断模块还设置成:判断所述机顶盒的配置异常是否是所述机顶盒配置分区异常;判断之前保存在所述配置文件中的配置修复文件是否正 常;
所述第一修复单元设置成:当所述配置判断模块判断所述机顶盒的配置异常是所述机顶盒配置分区异常时,擦除配置分区中的文件,并通知所述配置判断模块判断之前保存在所述配置文件中的配置修复文件是否正常;当所述配置判断模块判断之前保存在所述配置文件中的配置修复文件正常,则利用之前保存在所述配置文件中的配置修复文件修复所述机顶盒配置分区中的配置。
可选地,配置处理模块还包括第二修复单元,其中
所述配置判断模块还设置成:判断所述机顶盒的配置异常是否是所述机顶盒配置分区中的关键配置异常;判断之前保存在所述配置文件中的配置修复文件是否正常;
所述第二修复单元设置成:当所述配置判断模块判断所述机顶盒的配置异常是所述机顶盒配置分区中的关键配置异常时,通知所述配置判断模块判断之前保存在所述配置文件中的配置修复文件是否正常,当所述配置判断模块判断之前保存在所述配置文件中的配置修复文件正常,则利用之前保存在所述配置文件中的配置修复文件修复所述机顶盒配置分区中的配置。
可选地,所述配置处理模块还设置成:
若所述配置判断模块判断之前保存在所述配置文件中的配置修复文件异常,则不做配置修复操作。
图3显示了本发明实施例提供的机顶盒开机配置检测的流程图,如图3所示,包括以下步骤:
步骤S301:机顶盒开机启动,并从配置分区中读取配置;
步骤S302:机顶盒判断从配置分区中所读取的配置是否正常;
所述读取的配置是否正常包括是否能够正常读取配置和读取到的配置是否正常,若所读取的配置都正常,则进入步骤S303;若所读取的配置有不正常的,则进入步骤S304。所述的配置是否正常包括:机顶盒对从配置分区读取到的配置进行有效性检测,如果发现打开配置分区失败,某些关键配置非法或者内容为空,则认为配置异常。否则,如果配置分区打开正常并且关键 配置有值且均在合理范围内,则认为配置正常。
步骤S303:所读取的配置正常,则将读取到的配置信息写入FLASH文件中保存,并继续机顶盒启动开机的流程;
步骤S304:所读取的配置异常,则记录读取异常的原因,并启动修复配置进程来进行配置的修复。
图4显示了本发明实施例提供的机顶盒配置破坏修复过程的流程图,如图4所示,包括以下步骤:
步骤1、启动配置修复进程;
步骤2、判断当前配置分区破坏导致的异常;
机顶盒从配置分区中读取配置,对其中一些影响到机顶盒登录的重要配置进行检测,如果发现该配置项内容为空或者内容非法,则认为关键配置导致的读取配置异常,进入步骤3;如果发现配置分区无法打开,或者无法从配置分区读取配置,则认为配置分区破坏导致的读取配置异常,进入步骤4。
步骤3、判断flash中保存的配置文件是否正常,如果正常,则用flash中保存的配置修复当前机顶盒配置,否则不做配置修复。
步骤4、擦除配置分区,并判断当前flash文件中保存的配置是否正常,若正常,则用flash中保存的配置文件写入到配置分区中进行修复配置,否则不做配置修复。
步骤5、重新启动机顶盒。
本发明实施例还公开了一种计算机程序,包括程序指令,当该程序指令被计算机执行时,使得该计算机可执行上述任意的机顶盒配置破坏的修复方法。
本发明实施例还公开了一种载有所述计算机程序的载体。
综上所述,本发明技术方案具有以下技术效果:
本发明技术方案能够在机顶盒开机启动过程中进行配置自检,当发现读取配置异常后则启动修复配置进程进行自动修复,保证了用户正常观看IPTV 节目。
尽管上文对本发明进行了详细说明,但是本发明不限于此,本技术领域技术人员可以根据本发明的原理进行各种修改。因此,凡按照本发明原理所作的修改,都应当理解为落入本发明的保护范围。
工业实用性
本发明技术方案通过自动检测机顶盒配置异常,并自动启动配置修复进程来对配置进行修复,无需用户参与,保证用户能够及时有效的享受IPTV服务,减少机顶盒的返修,节省运营成本。因此本发明具有很强的工业实用性。

Claims (12)

  1. 一种机顶盒配置破坏的修复方法,包括以下步骤:
    机顶盒开机启动期间,判断所述机顶盒配置分区中的配置是否正常;
    当判断所述机顶盒的配置正常时,将判断为正常的配置写入一个配置文件中进行保存,并继续进行开机流程;
    当判断所述机顶盒的配置异常时,利用之前保存在所述配置文件中的配置修复所述机顶盒配置分区中的配置,并重新启动所述机顶盒。
  2. 根据权利要求1所述的机顶盒配置破坏的修复方法,其中,所述判断所述机顶盒配置分区中的配置是否正常的步骤包括:
    判断所述机顶盒配置分区是否正常,且判断所述机顶盒配置分区中的关键配置是否正常。
  3. 根据权利要求2所述的机顶盒配置破坏的修复方法,其中,当判断所述机顶盒的配置异常时,利用在前保存在所述配置文件中的配置修复所述机顶盒配置分区中的配置的步骤包括:
    当判断所述机顶盒的配置异常是所述机顶盒配置分区异常时,擦除配置分区中的文件,并判断之前保存在所述配置文件中的配置修复文件是否正常;
    若判断之前保存在所述配置文件中的配置修复文件正常,则利用之前保存在所述配置文件中的配置修复文件修复所述机顶盒配置分区中的配置。
  4. 根据权利要求2所述的机顶盒配置破坏的修复方法,其中,当判断所述机顶盒的配置异常时,利用之前保存在所述配置文件中的配置修复所述机顶盒配置分区中的配置的步骤包括:
    当判断所述机顶盒的配置异常是所述机顶盒配置分区中的关键配置异常时,判断之前保存在所述配置文件中的配置修复文件是否正常;
    若判断之前保存在所述配置文件中的配置修复文件正常,则利用之前保存在所述配置文件中的配置修复文件修复所述机顶盒配置分区中的配置。
  5. 根据权利要求3或4所述的机顶盒配置破坏的修复方法,该方法还包括:
    若判断之前保存在所述配置文件中的配置修复文件异常,则不做配置修复操作。
  6. 一种机顶盒配置破坏的修复装置,包括配置判断模块和配置处理模块,其中:
    所述配置判断模块设置成:机顶盒开机启动期间,判断所述机顶盒配置分区中的配置是否正常;
    所述配置处理模块设置成:当判断所述机顶盒的配置正常时,将判断为正常的配置写入一个配置文件中进行保存,并继续进行开机流程;当判断所述机顶盒的配置异常时,利用之前保存在所述配置文件中的配置修复所述机顶盒配置分区中的配置,并重新启动所述机顶盒。
  7. 根据权利要求6所述的机顶盒配置破坏的修复装置,其中,所述配置判断模块设置成按照如下方式判断所述机顶盒配置分区中的配置是否正常:
    判断所述机顶盒配置分区是否正常,且判断所述机顶盒配置分区中的关键配置是否正常。
  8. 根据权利要求7所述的机顶盒配置破坏的修复装置,其中,所述配置处理模块包括第一修复单元,其中
    所述配置判断模块还设置成:判断所述机顶盒的配置异常是否是所述机顶盒配置分区异常;判断之前保存在所述配置文件中的配置修复文件是否正常;
    所述第一修复单元设置成:当所述配置判断模块判断所述机顶盒的配置异常是所述机顶盒配置分区异常时,擦除配置分区中的文件,并通知所述配置判断模块判断之前保存在所述配置文件中的配置修复文件是否正常;当所述配置判断模块判断之前保存在所述配置文件中的配置修复文件正常,则利用之前保存在所述配置文件中的配置修复文件修复所述机顶盒配置分区中的配置。
  9. 根据权利要求7所述的机顶盒配置破坏的修复装置,其中,所述配置处理模块还包括第二修复单元,其中
    所述配置判断模块还设置成:判断所述机顶盒的配置异常是否是所述机 顶盒配置分区中的关键配置异常;判断之前保存在所述配置文件中的配置修复文件是否正常;
    所述第二修复单元设置成:当所述配置判断模块判断所述机顶盒的配置异常是所述机顶盒配置分区中的关键配置异常时,通知所述配置判断模块判断之前保存在所述配置文件中的配置修复文件是否正常,当所述配置判断模块判断之前保存在所述配置文件中的配置修复文件正常,则利用之前保存在所述配置文件中的配置修复文件修复所述机顶盒配置分区中的配置。
  10. 根据权利要求8或9所述的机顶盒配置破坏的修复装置,其中,所述配置处理模块还设置成:
    若所述配置判断模块判断之前保存在所述配置文件中的配置修复文件异常,则不做配置修复操作。
  11. 一种计算机程序,包括程序指令,当该程序指令被计算机执行时,使得该计算机可执行权利要求1-5中任一项所述的机顶盒配置破坏的修复方法。
  12. 一种载有权利要求11所述计算机程序的载体。
PCT/CN2015/071339 2014-05-19 2015-01-22 一种机顶盒配置破坏的修复方法及装置 WO2015176550A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410210052.1A CN105100896B (zh) 2014-05-19 2014-05-19 一种机顶盒配置破坏的修复方法及装置
CN201410210052.1 2014-05-19

Publications (1)

Publication Number Publication Date
WO2015176550A1 true WO2015176550A1 (zh) 2015-11-26

Family

ID=54553387

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/071339 WO2015176550A1 (zh) 2014-05-19 2015-01-22 一种机顶盒配置破坏的修复方法及装置

Country Status (2)

Country Link
CN (1) CN105100896B (zh)
WO (1) WO2015176550A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107769945B (zh) * 2016-08-19 2021-02-23 中国电信股份有限公司 用于实现自动配置的方法、装置和iptv智能终端

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174985A (zh) * 2007-09-28 2008-05-07 华为技术有限公司 恢复配置信息的方法和装置
CN101800840A (zh) * 2010-05-25 2010-08-11 成都东银信息技术股份有限公司 一种机顶盒升级方法
CN102938857A (zh) * 2012-11-27 2013-02-20 乐视致新电子科技(天津)有限公司 一种机顶盒在线升级的方法
CN103514013A (zh) * 2013-09-11 2014-01-15 深圳市共进电子股份有限公司 一种网关产品flash配置丢失处理方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101437106B (zh) * 2007-11-16 2011-01-05 深圳Tcl工业研究院有限公司 一种机顶盒系统及其自行修复的方法
CN101222527B (zh) * 2008-01-25 2011-12-07 中兴通讯股份有限公司 一种保护终端关键配置的方法及其系统
US20090328119A1 (en) * 2008-06-25 2009-12-31 Alcatel Lucent Packet Recovery Server Based Triggering Mechanism for IPTV Diagnostics
CN102439565B (zh) * 2011-10-28 2013-04-24 华为技术有限公司 启动恢复的方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174985A (zh) * 2007-09-28 2008-05-07 华为技术有限公司 恢复配置信息的方法和装置
CN101800840A (zh) * 2010-05-25 2010-08-11 成都东银信息技术股份有限公司 一种机顶盒升级方法
CN102938857A (zh) * 2012-11-27 2013-02-20 乐视致新电子科技(天津)有限公司 一种机顶盒在线升级的方法
CN103514013A (zh) * 2013-09-11 2014-01-15 深圳市共进电子股份有限公司 一种网关产品flash配置丢失处理方法

Also Published As

Publication number Publication date
CN105100896B (zh) 2019-12-10
CN105100896A (zh) 2015-11-25

Similar Documents

Publication Publication Date Title
US10114655B2 (en) Rapid start up method for electronic equipment
US20090217257A1 (en) Apparatus and Method for Firmware Update
US9946600B2 (en) Method of detecting power reset of a server, a baseboard management controller, and a server
US8738965B2 (en) Test method and test device for restarting a computer based on a hardware information comparison and a restart count
WO2013103023A1 (ja) 情報処理装置、情報処理方法、およびコンピュータプログラム
WO2014161339A1 (zh) 固件升级方法及装置
WO2016062084A1 (zh) 掉电处理方法、装置及电子设备
KR101513711B1 (ko) 손상된 하드디스크 파일 시스템을 복구하기 위한 방법 및 시스템
CN105760200A (zh) 终端设备及其系统升级方法
WO2016206514A1 (zh) 启动处理方法及装置
CN103970564A (zh) 嵌入式操作系统自动修复升级功能的方法及其系统
US8621195B2 (en) Disabling communication ports
WO2012000328A1 (zh) 一种多媒体终端设备及其维护方法
CN109766140A (zh) 一种机顶盒启动异常的定位方法及装置
US20060090158A1 (en) Rewritable, nonvolatile memory, electronic device, method of rewriting rewritable, nonvolatile memory, and storage medium having stored thereon rewrite program
WO2015176550A1 (zh) 一种机顶盒配置破坏的修复方法及装置
CN101526908A (zh) 固件更新装置和方法
TWI534609B (zh) Automatic scanning and repair method for electronic devices
US10691569B2 (en) System and method for testing a data storage device
US9342392B2 (en) Image forming apparatus, image forming apparatus control method, and recording medium
TW201617861A (zh) 韌體更新方法及其電子裝置
TW201015296A (en) Method for auto-testing environment variable setting
US20140122024A1 (en) Booting verification method of computer and electronic device
JP2011150383A (ja) ファームウェア書き込み方法
US20140310511A1 (en) Computer system and control method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15796106

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15796106

Country of ref document: EP

Kind code of ref document: A1