CN102231857B - Set-top box starting speed increasing method - Google Patents
Set-top box starting speed increasing method Download PDFInfo
- Publication number
- CN102231857B CN102231857B CN 201110183610 CN201110183610A CN102231857B CN 102231857 B CN102231857 B CN 102231857B CN 201110183610 CN201110183610 CN 201110183610 CN 201110183610 A CN201110183610 A CN 201110183610A CN 102231857 B CN102231857 B CN 102231857B
- Authority
- CN
- China
- Prior art keywords
- top box
- data section
- data
- starting speed
- software
- 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
Links
Abstract
The invention relates to the field of digital set-top boxes, and discloses a set-top box starting speed increasing method, which solves the problem of low set-top box starting speed in the prior art. Key points of the technical scheme are that: the set-top box starting speed increasing method comprises the following steps of: a, selecting a compression algorithm to compress set-top box software; b, performing security processing on an uncompressed data segment in the compressed set-top box software, and computing a related check code; c, when the set-top box is started, directly decompressing a compressed data segment in the set-top box software by adopting a decompression algorithm corresponding to the compression algorithm, and checking the uncompressed data segment by adopting the related check code; and d, running the set-top box software after the compressed data segment in the set-top box software is successfully decompressed and the uncompressed data segment is successfully checked, otherwise performing processing according to an error flow. The method is applied to the digital set-top box.
Description
Technical field
The present invention relates to the top box of digital machine field, relate to specifically a kind of method that improves set-top box starting speed.
Background technology
Along with the Digital Television industry development of globalization, digital TV set-top box each family that becomes basically universal, and have very high frequency of utilization.In the routine use process, set-top box is faced with the problem identical with computer, i.e. a starting up speed.But different from computer is that the processor of set-top box does not have the so high serviceability of computer processor, there is no the so much resource allocation of computer yet.Therefore, set-top box will in certain disposal ability, in the situation that limited resource realizes more function, will make the response speed of set-top box slack-off.And the function of set-top box operation is more, and its resource utilization is just higher, and scheduling of resource is just busier.And the high utilization rate of resource may cause data to be made mistakes, so data security is another key property of set-top box, especially is stored in the safety that relates to the data that set-top box starts on flash.The starting up speed of set-top box, the one, depend on the serviceability of the processor of set-top box, be exactly to depend on what function is set-top box need to carry out in start-up course in addition.The set-top box of the overwhelming majority is based on the consideration to data safety, the comprehensive security check is first first carried out to set-top box software compressed package (comprising compression section data and non-compression section data) in the capital in the process that starts, in the situation that guarantee data security, and then these data are carried out decompress(ion), the program after the decompress(ion) that reruns at last.And need the data of safety check more, so the verification time spent just longer, it is slower that the phenomenon that shows like this is exactly the set-top box toggle speed.
Summary of the invention
Technical problem to be solved by this invention is: propose a kind of method that improves set-top box starting speed, solve the slow problem of set-top box toggle speed in conventional art.
The present invention solves the problems of the technologies described above the technical scheme that adopts: a kind of method that improves set-top box starting speed comprises the following steps:
A. select lossless compression algorithm that set-top box software is compressed;
B. the unpacked data section in the set-top box software after compression is carried out safe handling, and calculate relevant check code;
C. when set-top box starts, directly adopt the decompression algorithm corresponding with lossless compression algorithm to carry out decompress(ion) to the packed data section in set-top box software, adopt relevant check code to carry out verification to the unpacked data section;
D. after the success decompress(ion) of the packed data section in set-top box software and unpacked data section success verification, move set-top box software, otherwise, by wrong flow processing.
Further, lossless compression algorithm described in step a is lzw or rar or zip.
Further, in step b, the unpacked data section in the set-top box software after compression is carried out safe handling, and the concrete grammar that calculates relevant check code is:
B1. the data length with the unpacked data section increases by 4 bytes;
B2. the offset address of other data segment on flash after this unpacked data section added 4;
B3. the segment data of other data segment after this unpacked data section is all moved 4 bytes backward, guarantee that its offset address and the segment data original position of reality are consistent;
B4. calculate the crc check value of unpacked data section, and be kept in 4 bytes that increase.
Concrete, described 4 bytes are increased in beginning or the end of unpacked data section.
Further, adopt the crc check value to carry out verification to the unpacked data section in step c.
Further, in steps d, described concrete grammar by wrong flow processing is: concrete data segment and the reason of makeing mistakes that prompting makes mistakes.
The invention has the beneficial effects as follows: the data to the packed data section in set-top box software directly adopt decompression algorithm to guarantee its fail safe, mode to the data check code of unpacked data section is security verified, therefore when starting, set-top box need not the data of packed data section are carried out verification, save the time, thereby improved set-top box starting speed.
Embodiment
In conventional art, set-top box is when starting, at first the set-top box software data on flash are carried out comprehensive verification, in the situation that guarantee fail safe, then these data are decompressed, therefore rerun afterwards software program after decompressing causes starting up speed slow; For above-mentioned situation, the application has proposed a kind of method that improves set-top box starting speed, decompression algorithm is combined with Security Check, namely directly adopt decompression algorithm to guarantee its fail safe to the data of the packed data section in set-top box software, the electronic products such as set-top box are very strict to the data fail safe, so must use Lossless Compression when packed data.Lossless Compression: be to utilize the statistical redundancy of data to compress, can recover initial data fully and not cause any distortion, mode validator fail safe to the data check code of unpacked data section, therefore when starting, set-top box need not the data of packed data section are carried out verification, save the time, thereby improved set-top box starting speed.
On concrete enforcement, the scheme in the application adopts following means to realize:
a. select suitable lossless compression algorithm that set-top box software is compressed: if the data after guaranteeing to compress are modified, must be known to mistake during decompression, this is because the data after compression are divided into data segment, code segment etc., if compressed some data have occured extremely, and the unidentified words to this mistake that decompress, if extremely occur in code segment, set-top box runs to this abnormal section the situations such as deadlock can occur so, if but extremely occur in data segment, it is abnormal when set-top box may appear at some function of operation so, but can not crash etc., present epidemic algorithms such as lzss, rar, zip etc. all can realize this purpose,
B. the unpacked data section in the set-top box software after compression is carried out safe handling, and calculate relevant check code: the compressed file of set-top box is all segmented, its head has one section compressed index, its form is: the memory address that this section needs unzip to, the offset address of this segment data on flash, the data length of this section, whether this segment data is compressed.For this form, the data of compression section can be directly judge whether safety of data by decompression.Yet for incompressible data segment, whether the data that can't directly judge this section safety, therefore this method proposes the data of non-compression section are carried out safe handling: the data length of unpacked data section is increased by 4 bytes, then the section that all are follow-up adds 4 at the offset address of flash, and the segment data that it is actual is all moved 4 bytes backward, guarantees its offset address and actual segment data starting position correct (at this moment the length of whole compressed file has increased by 4 bytes).Actual 4 bytes that increased of unpacked data section are placed on this nybble at beginning or the end of this section, calculate crc (CRC) check value of this segment data, and are kept in this 4 byte.Like this, when having recognized the unpacked data section during set-top box start-up routine decompressed data, identify the safety of this segment data with CRC check.
C. when set-top box starts, directly adopt the decompression algorithm corresponding with compression algorithm to carry out decompress(ion) to the packed data section in set-top box software, just can guarantee its safety, adopt the crc check code to carry out verification to the unpacked data section;
D. after the success decompress(ion) of the packed data section in set-top box software and the success verification of non-compression section, move set-top box software, otherwise, concrete data segment and the reason of makeing mistakes that prompting makes mistakes.
In above-mentioned steps b, the calculating of the crc check value of this segment data is very easy to those skilled in the art realize, no longer specific algorithm is given unnecessary details here.
Claims (6)
1. a method that improves set-top box starting speed, is characterized in that, comprises the following steps:
A. select lossless compression algorithm that set-top box software is compressed;
B. the unpacked data section in the set-top box software after compression is carried out safe handling, and calculate relevant check code;
C. when set-top box starts, directly adopt the decompression algorithm corresponding with lossless compression algorithm to carry out decompress(ion) to the packed data section in set-top box software, adopt relevant check code to carry out verification to the unpacked data section;
D. after the success decompress(ion) of the packed data section in set-top box software and unpacked data section success verification, move set-top box software, otherwise, by wrong flow processing.
2. a kind of method that improves set-top box starting speed as claimed in claim 1, is characterized in that, lossless compression algorithm described in step a is lzw or rar or zip.
3. a kind of method that improves set-top box starting speed as claimed in claim 1 or 2, is characterized in that, in step b, the unpacked data section in the set-top box software after compression carried out safe handling, and the concrete grammar of the relevant check code of calculating is:
B1. the data length with the unpacked data section increases by 4 bytes;
B2. the offset address of other data segment on flash after this unpacked data section added 4;
B3. the segment data of other data segment after this unpacked data section is all moved 4 bytes backward, guarantee that its offset address and the segment data original position of reality are consistent;
B4. calculate the crc check value of unpacked data section, and be kept in 4 bytes that increase.
4. a kind of method that improves set-top box starting speed as claimed in claim 3, is characterized in that, described 4 bytes are increased in beginning or the end of unpacked data section.
5. a kind of method that improves set-top box starting speed as claimed in claim 4, is characterized in that, adopts the crc check value to carry out verification to the unpacked data section in step c.
6. a kind of method that improves set-top box starting speed as claimed in claim 5, is characterized in that, in steps d, described concrete grammar by wrong flow processing is: concrete data segment and the reason of makeing mistakes that prompting makes mistakes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110183610 CN102231857B (en) | 2011-07-01 | 2011-07-01 | Set-top box starting speed increasing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110183610 CN102231857B (en) | 2011-07-01 | 2011-07-01 | Set-top box starting speed increasing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102231857A CN102231857A (en) | 2011-11-02 |
CN102231857B true CN102231857B (en) | 2013-05-08 |
Family
ID=44844382
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201110183610 Active CN102231857B (en) | 2011-07-01 | 2011-07-01 | Set-top box starting speed increasing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102231857B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6711683B1 (en) * | 1998-05-29 | 2004-03-23 | Texas Instruments Incorporated | Compresses video decompression system with encryption of compressed data stored in video buffer |
CN101751273A (en) * | 2008-12-15 | 2010-06-23 | 中国科学院声学研究所 | Safety guide device and method for embedded system |
CN101771804A (en) * | 2008-12-29 | 2010-07-07 | 深圳市同洲电子股份有限公司 | Backup and restore method for DTV receiving terminal software system |
CN101984405A (en) * | 2010-10-11 | 2011-03-09 | 中兴通讯股份有限公司 | Method of software version upgrade and terminal and system |
CN102045311A (en) * | 2009-10-22 | 2011-05-04 | 中兴通讯股份有限公司 | Robust header compression state transition method and decompressor |
-
2011
- 2011-07-01 CN CN 201110183610 patent/CN102231857B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6711683B1 (en) * | 1998-05-29 | 2004-03-23 | Texas Instruments Incorporated | Compresses video decompression system with encryption of compressed data stored in video buffer |
CN101751273A (en) * | 2008-12-15 | 2010-06-23 | 中国科学院声学研究所 | Safety guide device and method for embedded system |
CN101771804A (en) * | 2008-12-29 | 2010-07-07 | 深圳市同洲电子股份有限公司 | Backup and restore method for DTV receiving terminal software system |
CN102045311A (en) * | 2009-10-22 | 2011-05-04 | 中兴通讯股份有限公司 | Robust header compression state transition method and decompressor |
CN101984405A (en) * | 2010-10-11 | 2011-03-09 | 中兴通讯股份有限公司 | Method of software version upgrade and terminal and system |
Also Published As
Publication number | Publication date |
---|---|
CN102231857A (en) | 2011-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110716895B (en) | Target data archiving method, device, computer equipment and medium | |
US9374106B2 (en) | Efficient context save/restore during hardware decompression of DEFLATE encoded data | |
CN102684827B (en) | Data processing method and data processing equipment | |
US11334255B2 (en) | Method and device for data replication | |
US10204108B2 (en) | Method and apparatus for manufacturing file system update package, method and apparatus for updating file system update package, and terminal | |
CN108108394B (en) | Compressed file recovery method and storage medium of APFS file system | |
US20160147557A1 (en) | File Transfer Using Standard Blocks and Standard-Block Identifiers | |
CN106503165A (en) | Compression, decompressing method, device and equipment | |
US10158376B2 (en) | Techniques to accelerate lossless compression | |
CN104778060A (en) | Rapid and safe starting method for embedded Linux system | |
US20130167133A1 (en) | Method, terminal and system for upgrading software version | |
US8924591B2 (en) | Method and device for data segmentation in data compression | |
WO2014094479A1 (en) | Method and device for deleting duplicate data | |
CN106648955B (en) | Compression method and related device | |
US20120271802A1 (en) | Forward compatibility guaranteed data compression and decompression method and apparatus thereof | |
US10230392B2 (en) | Techniques for parallel data decompression | |
US8909606B2 (en) | Data block compression using coalescion | |
CN106055430A (en) | System backup updating method and device for PTZ camera | |
CN102231857B (en) | Set-top box starting speed increasing method | |
CN106027582A (en) | Content-related parallel downloading method and device | |
CN109947776B (en) | Data compression and decompression method and device | |
CN108959411B (en) | Processing method, device and equipment of ETL (extract transform and load) task | |
KR20190108399A (en) | Algorithm Techniques for Software Program and Digital Contents Update Improvement by using Binary Patch Method | |
CN107967157B (en) | Data processing method and device in OTA (over the air) tundish generation process | |
CN113609215A (en) | Data processing method, device, equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |