CN106851410B - Set top box fault repairing method and system - Google Patents

Set top box fault repairing method and system Download PDF

Info

Publication number
CN106851410B
CN106851410B CN201611129794.7A CN201611129794A CN106851410B CN 106851410 B CN106851410 B CN 106851410B CN 201611129794 A CN201611129794 A CN 201611129794A CN 106851410 B CN106851410 B CN 106851410B
Authority
CN
China
Prior art keywords
code
top box
repair
startup
data stream
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
CN201611129794.7A
Other languages
Chinese (zh)
Other versions
CN106851410A (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.)
Newglee Technology Co ltd
Original Assignee
Newglee 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 Newglee Technology Co ltd filed Critical Newglee Technology Co ltd
Priority to CN201611129794.7A priority Critical patent/CN106851410B/en
Publication of CN106851410A publication Critical patent/CN106851410A/en
Application granted granted Critical
Publication of CN106851410B publication Critical patent/CN106851410B/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/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
    • H04N21/4425Monitoring of client processing errors or hardware failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/004Diagnosis, testing or measuring for television systems or their details for digital television systems
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a set top box fault repairing method, which comprises the following steps: detecting whether a startup success signal is received or not, and activating a self-checking mode to check the startup program code if the startup success signal is not received; reading a preset checking code, checking the starting program code step by step based on the checking code, and outputting a corresponding error code according to a checking result; encrypting the error code based on DES and sending to a repair server; the repair server analyzes the encrypted error codes and outputs corresponding repair data streams, and the set-top box receives the repair data streams and repairs the startup program codes based on the repair data streams. According to the method and the device, the codes of the set top box which is not started successfully are checked, the corresponding error codes are output, the error codes are encrypted and output to the repair server, the repair server analyzes the error codes and outputs the repair data stream to achieve programming repair of the abnormal data blocks, software repair can be achieved rapidly, time required by repair is shortened, and customer experience is improved.

Description

A kind of set-top box failure restorative procedure and system
Technical field
The present invention relates to a kind of set-top box failure restorative procedure and systems, belong to digital TV field.
Background technique
With the high speed development of digital technology and being widely used for DTV STB, majority set-top box is all used now High safety encryption system, protects content not to be cracked, and substantially increases safety.But it is widely applied with high peace system, machine Also some hidden danger are generated in top box use, for example high peace set-top box program is destroyed or is operating abnormally, and is unable to normal boot-strap.Due to The characteristic of Gao An, cannot be by the serial ports of the machine again new software of programming, and is carried out by the methods of USB interface or OTA extensive It is multiple.So machine once occur cannot be started up, it is meant that machine will scrap processing, to radio and TV operator or use user For, it is all a kind of waste of resource.Therefore, this system is played aiming at such case developmental research when machine is in big portion Divide and be not normally functioning, in the case where cannot be started up, set-top box itself will start automatic error detection, and cooperation operator's TV is wide It broadcasts network to repair the system in machine, to save set-top box, escapes it scrapping as a result, normal use again. Under current DTV STB overall situation, it is extremely important.
Summary of the invention
To solve the above-mentioned problems, the present invention is by providing a kind of set-top box failure restorative procedure and system.
On the one hand the technical solution adopted by the present invention is a kind of set-top box failure restorative procedure, comprising the following steps: detection Booting pass signal whether is received, does not activate then Auto-Sensing Mode to proofread startup-program code;Read preset check and correction generation Code, gradually proofreads startup-program code based on the check and correction code, exports corresponding error code according to collation;Based on DES plus Close error code is simultaneously sent to remediation server;Remediation server parsing passes through the error code of encryption and exports corresponding repair data Stream, set-top box receive the repair data stream and repair startup-program code based on repair data stream.
Preferably, the startup-program code includes several data blocks, and data block includes data head and data subject, described Data head includes data block ID, data length information, crc value and satellite information.
Preferably, the check and correction code is a data block being stored in startup-program code, the Auto-Sensing Mode root The check and correction code is read according to preset data block ID, and data block locating for non-check and correction code is gradually read simultaneously based on data block ID It is compared verifying with check and correction code, is based on verification result output error code.
Preferably, the Auto-Sensing Mode further includes the chip identification code for obtaining set-top box, merges chip identification code and mistake Code, based on des encryption and is sent to remediation server;The repair data stream further includes chip identification code, and set-top box receives institute Repair data stream and proofing chip identification code are stated, is verified and startup-program code is then repaired based on repair data stream.
Preferably, the Auto-Sensing Mode further includes that merging chip identification code and error code obtain data combination SUM, to data Combination S UM carries out CRC operation to obtain its crc value, in conjunction with crc value, data combination SUM and des encryption is carried out, by encrypted result It is sent to remediation server.
On the other hand the technical solution adopted by the present invention is a kind of set-top box failure repair system, including set-top box and service Device, wherein the set-top box does not activate Auto-Sensing Mode then to proofread starting for detecting whether receive booting pass signal Program code reads preset check and correction code, gradually proofreads startup-program code based on the check and correction code, defeated according to collation Corresponding error code out based on des encryption error code and is sent to remediation server;The server is for parsing by encryption Error code and export corresponding repair data stream, set-top box is received the repair data stream and is simultaneously opened based on the reparation of repair data stream Dynamic program code;The set-top box is also used to receive the repair data stream and repairs startup program generation based on repair data stream Code.
Beneficial effects of the present invention are to be proofreaded by the code to the set-top box started not successfully, export corresponding mistake Error code is encrypted the error code and exports to remediation server, and remediation server parsing error code simultaneously exports reparation Data flow carries out programming reparation to abnormal data block to realize, can fast implement software reparation, when reducing needed for reparation Between, promote the experience of client.
Detailed description of the invention
Fig. 1 show a kind of schematic diagram of set-top box failure restorative procedure based on the embodiment of the present invention.
Specific embodiment
The present invention will be described with reference to embodiments.
Embodiment 1 based on invention, a kind of set-top box failure restorative procedure as shown in Figure 1, comprising the following steps: detection is It is no to receive booting pass signal, do not activate then Auto-Sensing Mode to proofread startup-program code;Preset check and correction code is read, Startup-program code is gradually proofreaded based on the check and correction code, corresponding error code is exported according to collation;Based on des encryption mistake Error code is simultaneously sent to remediation server;Remediation server parsing passes through the error code of encryption and exports corresponding repair data stream, Set-top box receives the repair data stream and repairs startup-program code based on repair data stream.
Control circuit built in set-top box starts a small routine, the program is for receiving when detecting startup power supply Be switched on pass signal, and the pass signal that is switched on can be inside boot program, and a signal instruction is issued in final step Normally start set-top box, is also possible to feed back by the enabling signal of the hardware of set-top box, when these hardware are activated journey When sequence is driven successfully, the signal of such as electric signal etc is fed back, when detecting these signals, output booting pass signal, When do not detect be switched on successfully when, activate Auto-Sensing Mode, Auto-Sensing Mode reads preset check and correction code first, pass through detection data Whether the Information Authentications such as length data are abnormal;Corresponding error code is exported according to Exception Type;Based on 128 des encryption mistakes Encrypted error code is sent to remediation server by code, and remediation server parses the encrypted error code, reads therein Information (position including the set-top box that request is repaired, required reparation data etc.), and export corresponding repair data stream, machine top Box receives repair data stream, according to the content of repair data stream, guides and covers and repair corresponding abnormal data block.
The startup-program code includes several data blocks, and data block includes data head and data subject, the data head Including data block ID, data length information, crc value and satellite information.
The internal applications (startup program) of set-top box hereinafter referred to as " set-top box App ", using 64K as basic unit, often 64k is a chunk(database block), 128 byte of beginning of each chunk is used to store chunk header information (data Head);Then chunk number required for being calculated app.Chunk header information mainly includes chunk id, app Version, the length of valid data, crc value and reserved information;Set-top box App carries out differentiation storage with such structure, together Shi Suoyou app chunk header can be stored into inside the chunk of a specific id in the form of data and be preserved.
The naming method of Chunk id is 0xC23Exxxx, and C23E is fixed value, and set-top box App segmentation sequence is since 1 Assignment, such as 0xC23E0001,0xC23E0002 ... ...But 0xC23E0000 is special chunk id, is used to store record just All App chunk header to begin.
The check and correction code is a data block being stored in startup-program code, and the Auto-Sensing Mode is according to preset Data block ID reads the check and correction code, based on data block ID gradually read data block locating for non-check and correction code and with proofread generation Code is compared verifying, is based on verification result output error code.
The particular database of 0xC23E0000 is stored with the check and correction code for verification, and Auto-Sensing Mode extracts this school first To code, then gradually each others database is verified according to id, then output error code.
Each data head preserves the crc value of oneself data, so we calculate chunk data's (data subject) CRC and Chunk Header(data head) compared with the crc value that saves.Crc value is different, then the chunk data is destroyed, and needs It repairs.
The Auto-Sensing Mode further includes the chip identification code for obtaining set-top box, merges chip identification code and error code, is based on Des encryption is simultaneously sent to remediation server;The repair data stream further includes chip identification code, and set-top box receives the reparation number According to stream and proofing chip identification code, it is verified and startup-program code is then repaired based on repair data stream.
After completing to test to abnormal data block, STB(digital video switching box, i.e. set-top box are obtained) Chip id(chip identification code), error code is tied on this chip id, to distinguish the error code of other set-top boxes;Work as reception To remediation server feed back repair data stream when, equally chip identification code is identified, by then receiving reparation number According to stream.
The Auto-Sensing Mode further includes that merging chip identification code and error code obtain data combination SUM, to data combination S UM CRC operation is carried out to obtain its crc value, in conjunction with crc value, data combination SUM and des encryption is carried out, encrypted result is sent to Remediation server.
In conjunction with chip id and error code to export a data combination S UM, CRC meter is carried out to this data combination SUM It calculates, obtains crc value;SUM crc value is combined with the data of original chip id and error code to merge, use des encryption algorithm The combined value is encrypted and result is sent to remediation server.
Based on the embodiment of the present invention 2, Auto-Sensing Mode will be by error code (other parts and above-described embodiment of encryption 1 is consistent), in conjunction with the network address of server, a two dimensional code is generated, then by being displayed on the screen, for customer scans, works as client The error code two dimensional code for seeing generation scans error code using mobile phone.Error code can be sent automatically to apply to front-end server PC Software tool can search correspondence according to this error code after PC application tool is connected to error code in the database of the PC software Correct data, and generate one be directed to this chip id set-top box a reparation code stream.Then it is automatically inserted into front end system System, user's set-top box can automatic trigger errors repair.
Based on the embodiment of the present invention 3, a kind of set-top box failure repair system, including set-top box and server, wherein institute Set-top box is stated for detecting whether receiving booting pass signal, does not then activate Auto-Sensing Mode to proofread startup-program code, Preset check and correction code is read, startup-program code is gradually proofreaded based on the check and correction code, is exported according to collation corresponding Error code based on des encryption error code and is sent to remediation server;The server is used to parse the error code by encryption And corresponding repair data stream is exported, set-top box receives the repair data stream and repairs startup program generation based on repair data stream Code;The set-top box is also used to receive the repair data stream and repairs startup-program code based on repair data stream.
The above, only presently preferred embodiments of the present invention, the invention is not limited to above embodiment, as long as It reaches technical effect of the invention with identical means, all should belong to protection scope of the present invention.In protection model of the invention Its technical solution and/or embodiment can have a variety of different modifications and variations in enclosing.

Claims (6)

1. a kind of set-top box failure restorative procedure, which comprises the following steps:
It detects whether to receive booting pass signal, does not activate then Auto-Sensing Mode to proofread startup-program code;
Preset check and correction code is read, startup-program code is gradually proofreaded based on the check and correction code, according to collation output pair The error code answered;
Based on des encryption error code and it is sent to remediation server;
Remediation server parsing passes through the error code of encryption and exports corresponding repair data stream, and set-top box receives the reparation number Startup-program code is repaired according to flowing and being based on repair data stream.
2. a kind of set-top box failure restorative procedure according to claim 1, which is characterized in that the startup-program code packet Include several data blocks, data block includes data head and data subject, the data head include data block ID, data length information, Crc value and satellite information.
3. a kind of set-top box failure restorative procedure according to claim 2, which is characterized in that the check and correction code is storage A data block in startup-program code, the Auto-Sensing Mode read the check and correction generation according to preset data block ID Code gradually reads data block locating for non-check and correction code based on data block ID and is compared verifying with check and correction code, based on verifying As a result output error code.
4. a kind of set-top box failure restorative procedure according to claim 3, which is characterized in that the Auto-Sensing Mode further includes The chip identification code of set-top box is obtained, merging chip identification code and error code is to merge code, based on merging generation described in des encryption Code is simultaneously sent to remediation server;
The repair data stream further includes chip identification code, and set-top box receives the repair data stream and proofing chip identification code, It is verified and startup-program code is then repaired based on repair data stream.
5. a kind of set-top box failure restorative procedure according to claim 4, which is characterized in that the Auto-Sensing Mode further includes Merge chip identification code and error code obtains data combination SUM, to data combination S UM progress CRC operation to obtain its crc value, In conjunction with crc value, data combination SUM and des encryption is carried out, encrypted result is sent to remediation server.
6. a kind of set-top box failure repair system, which is characterized in that including set-top box and server, wherein
The set-top box does not activate then Auto-Sensing Mode to proofread startup program for detecting whether receive booting pass signal Code reads preset check and correction code, gradually proofreads startup-program code based on the check and correction code, according to collation output pair The error code answered based on des encryption error code and is sent to remediation server;
The server is used to parse the error code for passing through encryption and exports corresponding repair data stream, repairs described in set-top box reception Complex data stream simultaneously repairs startup-program code based on repair data stream;
The set-top box is also used to receive the repair data stream and repairs startup-program code based on repair data stream.
CN201611129794.7A 2016-12-09 2016-12-09 Set top box fault repairing method and system Active CN106851410B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611129794.7A CN106851410B (en) 2016-12-09 2016-12-09 Set top box fault repairing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611129794.7A CN106851410B (en) 2016-12-09 2016-12-09 Set top box fault repairing method and system

Publications (2)

Publication Number Publication Date
CN106851410A CN106851410A (en) 2017-06-13
CN106851410B true CN106851410B (en) 2019-07-23

Family

ID=59140644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611129794.7A Active CN106851410B (en) 2016-12-09 2016-12-09 Set top box fault repairing method and system

Country Status (1)

Country Link
CN (1) CN106851410B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107580215A (en) * 2017-09-25 2018-01-12 深圳市九洲电器有限公司 Set top box component quality feedback method and system
CN107948636A (en) * 2017-12-13 2018-04-20 中邮科通信技术股份有限公司 A kind of automatic fault selftesting localization method based on IPTV set top box error code
CN111465007B (en) * 2019-01-18 2022-10-11 华为技术有限公司 Authentication method, device and system
CN112702653A (en) * 2020-12-17 2021-04-23 四川长虹电器股份有限公司 Method for automatically repairing smart television
CN117294836B (en) * 2023-11-27 2024-02-09 天津泰达有线电视网络有限公司 Set top box security authentication and fault analysis method and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202334788U (en) * 2011-11-01 2012-07-11 广东九联科技股份有限公司 Set top box with fault detecting function

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008035118A (en) * 2006-07-27 2008-02-14 Nec Electronics Corp Apparatus and method for processing information

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202334788U (en) * 2011-11-01 2012-07-11 广东九联科技股份有限公司 Set top box with fault detecting function

Also Published As

Publication number Publication date
CN106851410A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
CN106851410B (en) Set top box fault repairing method and system
CN110427774B (en) Block chain-based data storage method, data verification method and related device
CN103368691B (en) Data transmission method based on big-dipper satellite and device
US10778447B2 (en) Method and system for safely switching between product mode and development mode of terminal
EP2874074B1 (en) Method for implementing cross-domain jump, browser, and domain name server
CN107743115B (en) Identity authentication method, device and system for terminal application
CN105512538B (en) Debugging method and system of intelligent mobile operating system
CN105391696A (en) Terminal registration method, terminal verification method, terminal registration system and terminal verification system
HRP20000164A2 (en) Downloading data
CN103067364A (en) Virus detection method and equipment
CN110210270B (en) Two-dimensional code information security reinforcement method and system and two-dimensional code image analysis method and system
CN106131687A (en) Data burning method and device
CN107491328A (en) Updating firmware program method, system and electric equipment
CN107273150B (en) Preloading firmware downloading and writing method and device
CN104216830A (en) Method and system for detecting consistency of equipment software
CN115208951B (en) Request processing method, request processing device, electronic equipment and computer readable storage medium
CN104751532A (en) Universal patrol system and patrol method thereof
CN103714017B (en) A kind of authentication method, authentication device and authenticating device
CN104573475A (en) Method and system for authenticating transcoding service program
CN107395580B (en) Data verification method and device
CN106446699A (en) Flashing method and device and terminal
US20160119334A1 (en) Establishment of communication connection between mobile device and secure element
CN109063522B (en) Card reading method and device of card reader
CN108763934B (en) Data processing method and device, storage medium and server
CN108121911B (en) Software detection method and device

Legal Events

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