CN103686355B - A kind of restorative procedure and system of the software fault of set-top box - Google Patents

A kind of restorative procedure and system of the software fault of set-top box Download PDF

Info

Publication number
CN103686355B
CN103686355B CN201310740442.5A CN201310740442A CN103686355B CN 103686355 B CN103686355 B CN 103686355B CN 201310740442 A CN201310740442 A CN 201310740442A CN 103686355 B CN103686355 B CN 103686355B
Authority
CN
China
Prior art keywords
upgrade file
top box
read
update mode
restorative procedure
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.)
Active
Application number
CN201310740442.5A
Other languages
Chinese (zh)
Other versions
CN103686355A (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.)
Zhuhai Gotech Intelligent Technology Co Ltd
Original Assignee
Zhuhai Gotech Intelligent Technology 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 Zhuhai Gotech Intelligent Technology Co Ltd filed Critical Zhuhai Gotech Intelligent Technology Co Ltd
Priority to CN201310740442.5A priority Critical patent/CN103686355B/en
Publication of CN103686355A publication Critical patent/CN103686355A/en
Application granted granted Critical
Publication of CN103686355B publication Critical patent/CN103686355B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

This application provides a kind of restorative procedures and system of the software fault of set-top box, upgrade file is read outside set-top box first, upgrade file, the memory of set-top box is written when upgrade file is effective by the validity for then detecting the upgrade file, and is stored in preset address.It can avoid that flash is disassembled the complicated processes with cd-rom recorder again burning normal software when software fault occurs in set-top box, simplify repair process.In addition because flash need not be disassembled to carry out burning, hardware damage caused by repeated disassembled and assembled can be avoided possible.

Description

A kind of restorative procedure and system of the software fault of set-top box
Technical field
This application involves cable television technical fields, more specifically to a kind of reparation of the software fault of set-top box Method and system.
Background technology
With the development of sized enterprises in chinese DTV industry, software, the hardware version of DTV STB are gradually increasing.It is open-minded New business, solution set-top box software defect etc. are required for carrying out the upgrading of set-top box software, and upgrading can not only settlement procedure BUG, moreover it is possible to increase new function, but be easy to cause software fault in escalation process and can not normally play machine, such as software It mismatches, the address error of write-in flash, in itself more new function damage etc..
At present when software corruption normally can not play machine, it usually needs disassemble flash, with cd-rom recorder again burning Normal software, process is cumbersome and there are hardware to be risk of damage to.
Invention content
In view of this, the application provides a kind of restorative procedure and system of the software fault of set-top box, repaired with simplification Journey.
To achieve the goals above, it is proposed that scheme it is as follows:
A kind of restorative procedure of the software fault of set-top box, including:
Initialize set-top box GPIO port;
The level state for waiting for switch for detecting the set-top box terminates this and repaiies if the level state is low level Multiple process;
If the level state is high level, upgrade file is read in;
The validity for detecting the upgrade file, if the upgrade file in vain if terminate this repair process;
If the upgrade file effectively if the upgrade file is written the set-top box memory preset address.
Preferably, the reading upgrade file, including:
Select update mode;
The upgrade file is read in a manner of being suitble to the update mode.
Preferably, the update mode includes USB update modes;
The upgrade file is read in from the USB port of the set-top box.
Preferably, the update mode includes serial ports update mode;
The upgrade file is read in from the serial ports of the set-top box.
Preferably, the update mode includes over-the-air updating mode;
The upgrade file is read in from the signal receiving unit of the set-top box.
A kind of repair system of the software fault of set-top box, including:
Initial module, the GPIO mouths for initializing set-top box;
Acquisition module, the level state for waiting for switch for obtaining the set-top box;
Read module reads in upgrade file when if being high level for the level state;
Detection module, the validity for detecting the upgrade file;
Writing module, for if the upgrade file effectively if the upgrade file is written to the storage of the set-top box The preset address of device.
Preferably, the read module includes:
Selecting unit, for selecting update mode;
Unit is read in, for reading the upgrade file with the update mode.
Preferably, the update mode is USB update modes;
Unit is read in be used to read in the upgrade file from the USB port of the set-top box.
Preferably, the update mode is serial ports update mode;
Unit is read in be used to read in the upgrade file from the serial ports of the set-top box.
Preferably, the update mode is over-the-air updating mode;
It reads in unit and reads in the upgraded module from the signal receiving unit of the set-top box.
It can be seen from the above technical proposal that the restorative procedure of the software fault for the set-top box that the application proposes is from set-top box Upgrade file is read in outside, the validity of the upgrade file is then detected, when upgrade file is effective by upgrade file writing machine The memory of top box is stored in preset address.It can avoid disassembling flash numerous with cd-rom recorder again burning normal software Trivial process, simplifies repair process.
In addition it because flash need not be disassembled to carry out burning, is then installed in set-top box again, so can keep away Hardware damage caused by exempting from repeated disassembled and assembled possibility.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow chart of the restorative procedure of the software fault of set-top box disclosed in the embodiment of the present application;
Fig. 2 is a kind of flow chart of the restorative procedure of the software fault of set-top box disclosed in another embodiment of the application;
Fig. 3 is a kind of structure chart of the repair system of the software fault of set-top box disclosed in the another embodiment of the application;
Fig. 4 is a kind of structure chart of the repair system of the software fault of set-top box disclosed in the another embodiment of the application.
Specific implementation mode
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall in the protection scope of this application.
Embodiment one
Fig. 1 is a kind of flow chart of the restorative procedure of the software fault of set-top box disclosed in the embodiment of the present application.
As shown in Figure 1, restorative procedure disclosed in the present embodiment includes the following steps:
S101:Initialize the GPIO port of set-top box;
S102:Detection waits for the level state of switch.
The POWER keys of detection set top box front panel are the level state for waiting for switch, then terminate this if it is low level and repair Multiple process.
S103:Read in upgrade file.
If waiting for that the level state of switch is high level, upgrade file is read in;
S104:Detect the validity of the upgrade file.
The validity of the upgrade file of reading is detected, if upgrade file in vain if terminate this repair process.
S105:Carry out software upgrading.
If read in upgrade file effectively if by the upgrade file be written set-top box memory preset address.
It can be seen from the above technical proposal that the restorative procedure slave top of the software fault of set-top box disclosed in the present embodiment Upgrade file is read outside box, then detects the validity of the upgrade file, upgrade file is written when upgrade file is effective The memory of set-top box is stored in preset address.It can avoid disassembling flash with cd-rom recorder again burning normal software Complicated processes simplify repair process.
In addition it because flash need not be disassembled to carry out burning, is then installed in set-top box again, so can keep away Hardware damage caused by exempting from repeated disassembled and assembled possibility.
Embodiment two
Fig. 2 is a kind of flow chart of the restorative procedure of the software fault of set-top box disclosed in another embodiment of the application.
As shown in Fig. 2, restorative procedure disclosed in the present embodiment includes the following steps:
S201:Initialize GPIO port;
S202:Detection waits for the level state of switch.
The POWER keys of detection set top box front panel are the level state for waiting for switch, then terminate this if it is low level and repair Multiple process.
S203:Select update mode.
If wait for switch level state be high level update mode include USB update modes, serial ports update mode or sky Middle update mode.
S204:Upgrade file is read in USB update modes.
When selecting USB update modes, upgrade file is read in from USB port.
S205:Upgrade file is read in serial ports update mode.
When selecting serial ports update mode, upgrade file is read in by RS232 serial ports.
S206:Upgrade file is read in a manner of over-the-air updating.
When selecting over-the-air updating mode, pass through demultiplexer(demux)Obtain upgrade file.
S207:Detect the validity of the upgrade file.
The validity of the upgrade file of reading is detected, if upgrade file in vain if terminate this repair process.
S208:Carry out software upgrading.
If read in upgrade file effectively if by the upgrade file be written set-top box memory preset address.
It can be seen from the above technical proposal that technical solution disclosed in the present embodiment can be with USB update modes, serial ports more New paragon or over-the-air updating mode read in upgrade file, and the method repaired has been widened with this.
Embodiment three
Fig. 3 is a kind of structure chart of the repair system of the software fault of set-top box disclosed in the embodiment of the present application.
As shown in figure 3, repair system disclosed in the present embodiment include initial module 10, acquisition module 20, read module 30, Detection module 40 and writing module 50.
Initial module 10 is used to initialize the GPIO port 11 of set-top box.
Acquisition module 20 is used to obtain the level state for waiting for switch 21 of set-top box.
Read module 30 be used for when the level state of switch 21 be high level when read in upgrade file.
Detection module 40 is used to detect the validity of upgrade file;
Writing module 50 is used to that then the upgrade file to be written when upgrade file is effective the memory of the set-top box 51。
It can be seen from the above technical proposal that the repair system slave top of the software fault of set-top box disclosed in the present embodiment Upgrade file is read outside box, then detects the validity of the upgrade file, upgrade file is written when upgrade file is effective The memory of set-top box is stored in preset address.It can avoid disassembling flash with cd-rom recorder again burning normal software Complicated processes simplify repair process.
In addition it because flash need not be disassembled to carry out burning, is then installed in set-top box again, so can keep away Hardware damage caused by exempting from repeated disassembled and assembled possibility.
Example IV
Fig. 4 is the repair system of the software fault of set-top box disclosed in the another embodiment of the application.
As shown in figure 4, repair system disclosed in the present embodiment include initial module 10, acquisition module 20, read module 30, Detection module 50 and writing module 50.
Initial module 10 is used to initialize the GPIO port 11 of set-top box.
Acquisition module 20 is used to obtain the level state for waiting for switch 21 of set-top box.
Read module 30 be used for when the level state of switch 21 be high level when read in upgrade file.
Read module 30 includes selecting unit 31 and reads in unit 32, and selecting unit 31 is connected with unit 32 is read in, and reads Enter unit 32 to be also respectively connected with the USB port of set-top box 321, serial ports 322, signal receiving unit 323.
Selecting unit 31 is for selecting update mode, when selecting USB update modes, reads in unit 32 from USB port 321 Obtain upgrade file.
When selecting serial ports update mode, reads in unit 32 and obtain upgrade file from the serial ports 322 of set-top box.
When selecting over-the-air updating mode, it is that demultiplexer obtains to read in unit 32 from the signal receiving unit 323 of set-top box Take upgrade file.
Detection module 40 is used to detect the validity of upgrade file.
Writing module 50 is used to that then upgrade file to be written when upgrade file is effective the phase of the memory of the set-top box Answer address.
It can be seen from the above technical proposal that the repair system slave top of the software fault of set-top box disclosed in the present embodiment Upgrade file is read outside box, then detects the validity of the upgrade file, upgrade file is written when upgrade file is effective The memory of set-top box is stored in preset address.It can avoid disassembling flash with cd-rom recorder again burning normal software Complicated processes simplify repair process.
In addition it because flash need not be disassembled to carry out burning, is then installed in set-top box again, so can keep away Hardware damage caused by exempting from repeated disassembled and assembled possibility.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only that A little elements, but also include other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other The difference of embodiment, just to refer each other for identical similar portion between each embodiment.
The foregoing description of the disclosed embodiments enables professional and technical personnel in the field to realize or use the application. Various modifications to these embodiments will be apparent to those skilled in the art, as defined herein General Principle can in other embodiments be realized in the case where not departing from spirit herein or range.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest range caused.

Claims (10)

1. a kind of restorative procedure of the software fault of set-top box, which is characterized in that including:
Initialize set-top box GPIO port;
The level state for waiting for switch for detecting the set-top box terminates this and repaired if the level state is low level Journey;
If the level state is high level, upgrade file is read in;
The validity for detecting the upgrade file, if the upgrade file in vain if terminate this repair process;
If the upgrade file effectively if the upgrade file is written the set-top box memory preset address.
2. restorative procedure as described in claim 1, which is characterized in that the reading upgrade file, including:
Select update mode;
The upgrade file is read in a manner of being suitble to the update mode.
3. restorative procedure as claimed in claim 2, which is characterized in that the update mode includes USB update modes;
The upgrade file is read in from the USB port of the set-top box.
4. restorative procedure as claimed in claim 2, which is characterized in that the update mode includes serial ports update mode;
The upgrade file is read in from the serial ports of the set-top box.
5. restorative procedure as claimed in claim 2, which is characterized in that the update mode includes over-the-air updating mode;
The upgrade file is read in from the signal receiving unit of the set-top box.
6. a kind of repair system of the software fault of set-top box, which is characterized in that including:
Initial module, the GPIO mouths for initializing set-top box;
Acquisition module, the level state for waiting for switch for obtaining the set-top box;
Read module reads in upgrade file when if being high level for the level state;
Detection module, the validity for detecting the upgrade file;
Writing module, for if the upgrade file effectively if the upgrade file is written to the memory of the set-top box Preset address.
7. repair system as claimed in claim 6, which is characterized in that the read module includes:
Selecting unit, for selecting update mode;
Unit is read in, for reading the upgrade file with the update mode.
8. repair system as claimed in claim 7, which is characterized in that the update mode is USB update modes;
Unit is read in be used to read in the upgrade file from the USB port of the set-top box.
9. repair system as claimed in claim 7, which is characterized in that the update mode is serial ports update mode;
Unit is read in be used to read in the upgrade file from the serial ports of the set-top box.
10. repair system as claimed in claim 7, which is characterized in that the update mode is over-the-air updating mode;
It reads in unit and reads in the upgrade file from the signal receiving unit of the set-top box.
CN201310740442.5A 2013-12-27 2013-12-27 A kind of restorative procedure and system of the software fault of set-top box Active CN103686355B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310740442.5A CN103686355B (en) 2013-12-27 2013-12-27 A kind of restorative procedure and system of the software fault of set-top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310740442.5A CN103686355B (en) 2013-12-27 2013-12-27 A kind of restorative procedure and system of the software fault of set-top box

Publications (2)

Publication Number Publication Date
CN103686355A CN103686355A (en) 2014-03-26
CN103686355B true CN103686355B (en) 2018-07-20

Family

ID=50322422

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310740442.5A Active CN103686355B (en) 2013-12-27 2013-12-27 A kind of restorative procedure and system of the software fault of set-top box

Country Status (1)

Country Link
CN (1) CN103686355B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165038A (en) * 2018-09-04 2019-01-08 珠海迈科智能科技股份有限公司 A kind of projector self-repairing method based on OTT
CN110597674B (en) * 2019-08-05 2023-08-22 天津华来科技股份有限公司 Memory detection method, device, video recording system and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101409778A (en) * 2008-11-07 2009-04-15 深圳创维数字技术股份有限公司 Method and apparatus for upgrading set-top box software
CN101588440B (en) * 2009-07-09 2012-04-04 山东泰信电子有限公司 Software security authentication method used for digital set top box
CN102111654A (en) * 2009-12-23 2011-06-29 康佳集团股份有限公司 Set-top box software upgrading method and set-top box
CN102253851A (en) * 2011-07-26 2011-11-23 中兴通讯股份有限公司 Set-top box and upgrading method thereof
CN102262554B (en) * 2011-08-05 2014-08-20 深圳市九洲电器有限公司 Method and device for saving storage space during upgrading software, and set top box
CN102790920A (en) * 2012-07-11 2012-11-21 深圳创维数字技术股份有限公司 STB (Set Top Box) upgrading method and equipment
CN102833604A (en) * 2012-08-20 2012-12-19 青岛海信宽带多媒体技术有限公司 Set top box and fault self-detection method thereof
CN103916423A (en) * 2012-12-31 2014-07-09 华为技术有限公司 Data synchronization method and device

Also Published As

Publication number Publication date
CN103686355A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
CN102662701B (en) CPLD online upgrading method, device and service board
US8645937B2 (en) Photovoltaic plant having a plurality of inverters, inverter, USB mass storage device and method for carrying out software updates on inverters
US10311003B2 (en) Detection and identifcation of supported connection protocols in a multi-purpose storage bay
TW201339841A (en) BIOS firmware updating method and electronic device
CN108388496A (en) A kind of collection method of system log
US20130268744A1 (en) Method for detecting hardware
CN102693144A (en) Method for upgrading capacitive screen firmware used for Android mobile terminal
CN103686355B (en) A kind of restorative procedure and system of the software fault of set-top box
CN103135941A (en) Managing method of embedded memorizers, embedded memorizer and electronic device
CN106303707A (en) A kind of version method for burn-recording, system and terminal
CN102609285B (en) A method of driving intelligent Matching load
CN103218275A (en) Data error repairing method, device and equipment
CN104239211A (en) Method and device for enabling mobile terminal to rapidly enter test mode
CN103106088A (en) Hardware and firmware independently updating system and method thereof
CN110708489A (en) Communication method, communication device, electronic device and storage medium
CN103455750A (en) High-security verification method and high-security verification system for embedded devices
CN102306502A (en) Method and system for burning common interface PLUS (CI PLUS) certificate
CN102662617A (en) Implementing method for VGA (video graphics array) signal switching in KVM (kernel-based virtual machine)
TW201734800A (en) Method for setting redundant array of independent disks
CN103136010A (en) Firmware update method and firmware update device capable of being used by firmware update method
CN104281459A (en) BIOS upgrading device
CN105871598A (en) Router equipment and upgrade method of router equipment
US10872132B2 (en) Systems and methods for distinguishing information handling system provider-supported information handling resource via system license
CN110109679A (en) A kind of BIOS default value amending method, system, equipment and computer media
CN101299190A (en) Software upgrading method, system and built-in equipment of read-only file system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 519000 Guangdong city of Zhuhai province Hongqi Town Jinwan District Zhuhai Yongda Road No. 66 No. 2 building

Applicant after: ZHUHAI MAIKE INTELLIGENT TECHNOLOGY CO., LTD.

Address before: 519000 Guangdong city in Zhuhai Province town of Red Bay Area Yongda Road No. 66 No. 2 building

Applicant before: Zhuhai Gotech Electronic Technology Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: ZHUHAI GOTECH ELECTRONIC TECHNOLOGY CO., LTD. TO: ZHUHAI MAIKE INTELLIGENT TECHNOLOGY CO., LTD.

GR01 Patent grant
GR01 Patent grant