CN102298534A - Method for writing software into set-top box - Google Patents

Method for writing software into set-top box Download PDF

Info

Publication number
CN102298534A
CN102298534A CN2011102830802A CN201110283080A CN102298534A CN 102298534 A CN102298534 A CN 102298534A CN 2011102830802 A CN2011102830802 A CN 2011102830802A CN 201110283080 A CN201110283080 A CN 201110283080A CN 102298534 A CN102298534 A CN 102298534A
Authority
CN
China
Prior art keywords
software
data
top box
functional
merging
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011102830802A
Other languages
Chinese (zh)
Other versions
CN102298534B (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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201110283080.2A priority Critical patent/CN102298534B/en
Publication of CN102298534A publication Critical patent/CN102298534A/en
Application granted granted Critical
Publication of CN102298534B publication Critical patent/CN102298534B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to a method for writing software into a set-top box. The method comprises the following steps of: deleting unnecessary functions in own software of the set-top box according to different requirements to reduce the space occupation volume of the own software; identifying valid data and invalid data to be written into functional software and deleting the invalid data; splitting and compressing the valid data in the functional software; filling every part of the split and compressed functional software into vacant parts of the own software to form combined software, and writing the combined software into Flash of the set-top box; and updating the written combined software according to a splitting format. According to the method for writing software into the set-top box, the functional software of a third party can be efficiently written into the set-top box on the premise of not increasing the Flash storage space of the set-top box to complete software upgrading of the third party. Meanwhile, the production cost is lowered, the production efficiency is increased, the use of resources such as manpower, financial resources and the like is reduced, and the product stability is enhanced remarkably.

Description

Software writes the method for set-top box
Technical field
The present invention relates to the method that software writes set-top box, specifically third party software is write the method for set-top box.
Background technology
Along with the Digital Television industry development of globalization, the function of digital TV set-top box from strength to strength, and is more and more close to computing machine, also begins on set-top box popular as functions such as online, recreation.Therefore, need to develop function corresponding also more and more for digital TV set-top box.And the manpower of set-top box producer and resource all are limited, can not all application software of oneself exploitation.Therefore increasing set-top box producer selects to cooperate the faster and better software of developing the outstanding various functions of set-top box with the third party software developer.But the problem of this existence for top box producer is, there is the set-top box production procedure of oneself in each producer, when set-top box is produced, need at first whether detection hardware intact, whether set-top box can normally move, be to write on the Flash chip again with corresponding software by writing the journey device, then through production line with Flash chip paster to mainboard, finish collection assembling.All can in own software, place own specific plant produced module when therefore each set-top box is produced, be used to check basic hardware capability.
After set-top box adopts third party software, do not have plant produced module in the third party software, and the third party software developer can not develop the plant produced module at the particular requirement of each top box producer yet at different set-top box.If set-top box producer directly uses third party software to carry out software and hardware and detects, will carry out very loaded down with trivial details operation, and inefficiency, and the inspection item that has may can't detect at all.At this problem, set-top box manufacturer all can use the software of oneself to produce usually earlier, comes the content that needs detect is detected with the plant produced module of oneself earlier.After detecting, again third party software (is packaged into third party software upgrading stream earlier by USB, network or big net signal then, be then multiplexed in the digital television signal together and broadcast, set-top box receives the upgrading flow data in the rear end) the upgrading mode third party software is written to set-top box.But this method has increased this step of upgrading third party software, has also increased production time, cost of labor and the resources of production, has reduced production efficiency, has also increased the risk of makeing mistakes in the escalation process.
Summary of the invention
The invention provides the method that a kind of software writes set-top box, can be under the prerequisite that does not increase set-top box Flash (flash memory) storage space, efficiently third-party functional software is written in the set-top box, finish the third party software upgrading, reduce production cost, improved production efficiency and product stability.
Software of the present invention writes the method for set-top box, comprising:
According to unwanted function in the own software of different demand deletion set-top box, to reduce the space hold capacity of own software; Because the Flash memory span of set-top box is fixed, if increase the capacity of Flash, need carry out corresponding modification to set-top box software, and the quantity that increases Flash can make production cost improve and the change of set-top box inner structure, therefore by deleting the remaining space that unwanted function in the own software increases Flash, be efficient ways.
Discern valid data and invalid data in the functional software to be written, and delete described invalid data; Data in the functional software are not all to be valid data, by the data type is discerned, and information such as separately address of valid data and invalid data, length are carried out record, delete invalid data at last, reduce the size of functional software.
Valid data in the described functional software are split and compress; The purpose that splits is for functional software being divided into several portions by certain form, and each is partially filled in each vacant part of own software.Compression is in order further to reduce to split the size of back each several part functional software.
With split and compression after the each several part of functional software be filled into and form one in the vacant part of described own software and merge software, described merging software is write among the Flash (flash memory) of set-top box, wiring method is with existing to write own method of producing software identical.
The merging software that is written among the described Flash is upgraded according to splitting form, but the effect of renewal is that the software after merging is formed a complete executive software, makes other hardware and it is called operation.
Further, the valid data in the functional software are split and compression comprises:
The medium of memory function software is carried out the division that functional software splits form, comprising: the start offset position of regional number, area data, area data length, regional effective marker, zone compression sign, data address and the length of data in merging software in merging software; The data of storing by described mode are carried out lossless compress (as, forms such as lzss, rar); Wherein area data length is stored is data length after each zone compression; The address of efficient zoned data content in described merged file is stored in the address of described data in merging software.
On this basis, when split and compression after the each several part of functional software be filled into the vacant part of described own software after, the each several part of the functional software of being filled is stored by described fractionation form.
Further, upgrade and comprise according to splitting form:
According to the address of described data in merging software, obtain the subregion number and the partition information of functional software;
According to described partition information, the corresponding data of write-in functions software in the space of institute's memory address correspondence.
Concrete, the corresponding data of write-in functions software comprises: according to the regional effective marker of being stored, judge whether this zone is effective, if invalid, the start offset position from the area data of storage writes the invalid data that is complementary with area data length; If effectively, according to address and data the length during merging software of data in merging software, obtain area data, judge whether needs decompress(ion) of this area data according to zone compression sign again, decompress(ion) if desired, decompressing method according to correspondence carries out decompress(ion) to data, and the start offset position from area data begins to write executable area data at last.
Write the method for set-top box by software of the present invention, can under the prerequisite that does not increase set-top box Flash (flash memory) storage space, efficiently third-party functional software be written in the set-top box, finish the third party software upgrading.Also reduce production cost simultaneously, improved production efficiency, reduced the use of resources such as manpower financial capacity, and significantly improved product stability.
Below in conjunction with the embodiment of embodiment, foregoing of the present invention is described in further detail again.But this should be interpreted as that the scope of the above-mentioned theme of the present invention only limits to following example.Do not breaking away under the above-mentioned technological thought situation of the present invention, various replacements or change according to ordinary skill knowledge and customary means are made all should comprise within the scope of the invention.
Embodiment
Software of the present invention writes the method for set-top box, comprising:
According to the different demands of each manufacturer, unwanted function in the own software of deletion set-top box is to reduce the space hold capacity of own software.Because the Flash memory span of set-top box is fixed, if increase the capacity of Flash, need carry out corresponding modification to set-top box software, and the quantity that increases Flash can make production cost improve and the change of set-top box inner structure, therefore by deleting the remaining space that unwanted function in the own software increases Flash, be efficient ways.
Discern valid data and invalid data (being generally the Oxff data) in the functional software to be written, and delete described invalid data.Data in the functional software are not all to be valid data, by the data type is discerned, and information such as separately address of valid data and invalid data, length are carried out record, delete invalid data at last, reduce the size of functional software.
Valid data in the functional software are split and compress, comprising: the medium of memory function software is carried out the division that functional software splits form, comprising: the start offset position of regional number, area data, area data length, regional effective marker, zone compression sign, data address and the length of data in merging software in merging software; The data of storing by described mode are carried out lossless compress (as, forms such as lzss, rar); Wherein area data length is stored is data length after each zone compression; The address of efficient zoned data content in described merged file is stored in the address of described data in merging software.For example, if the value of certain " zone compression sign " is 1, the value of " length of data in merging software " represents that then this area data is compressed, and is the length of the data segment after the compression.If the value of " regional effective marker " is 0, should the zone be the invalid data zone so.Efficient zoned data content, leaving the position that merges in the software in is the value address pointed of " address of data in merging software ".The purpose that splits is for functional software being divided into several portions by certain form, and each is partially filled in each vacant part of own software.Compression is in order further to reduce to split the size of back each several part functional software.
The each several part of the functional software after will splitting and compress then is filled into to form in the vacant part of described own software and merges software, then these has been filled the information such as start address, data length of functional software data and has stored by above-mentioned form.Formed merging software is write among the Flash (flash memory) of set-top box, wiring method is with existing to write own method of producing software identical.
The merging software that is written among the described Flash is upgraded according to splitting form, but the effect of renewal is that the software after merging is formed a complete executive software, makes other hardware call operation to it.Concrete update method is:
According to the address of the data of being stored in merging software, own software obtains the subregion number and the partition information of functional software;
According to the regional effective marker of being stored in the partition information that obtains, judge whether this zone is effective, if invalid, the start offset position of area data from storage writes the invalid data that is complementary with area data length; If effectively, according to address and data the length during merging software of data in merging software, obtain area data, judge whether needs decompress(ion) of this area data according to zone compression sign again, decompress(ion) if desired, decompressing method according to correspondence carries out decompress(ion) to data, and the start offset position from area data begins to write executable area data at last.
Write the method for set-top box by software of the present invention, can under the prerequisite that does not increase set-top box Flash storage space, efficiently third-party functional software be written in the set-top box, finish the third party software upgrading.

Claims (5)

1. software writes the method for set-top box, it is characterized by to comprise:
According to unwanted function in the own software of different demand deletion set-top box, to reduce the space hold capacity of own software;
Discern valid data and invalid data in the functional software to be written, and delete described invalid data;
Valid data in the described functional software are split and compress;
With split and compression after the each several part of functional software be filled into and form one in the vacant part of described own software and merge software, described merging software is write among the Flash of set-top box;
The merging software that is written among the described Flash is upgraded according to splitting form.
2. software as claimed in claim 1 writes the method for set-top box, it is characterized by the valid data in the functional software are split and compression comprises:
The medium of memory function software is carried out the division that functional software splits form, comprising: the start offset position of regional number, area data, area data length, regional effective marker, zone compression sign, data address and the length of data in merging software in merging software; The data of storing by described mode are carried out lossless compress; Wherein area data length is stored is data length after each zone compression; The address of efficient zoned data content in described merged file is stored in the address of described data in merging software.
3. software as claimed in claim 2 writes the method for set-top box, it is characterized by when split and compression after the each several part of functional software be filled into the vacant part of described own software after, the each several part of the functional software of being filled is stored by described fractionation form.
4. write the method for set-top box as claim 2 or 3 described softwares, it is characterized by and describedly upgrade and comprise according to splitting form:
According to the address of described data in merging software, obtain the subregion number and the partition information of functional software;
According to described partition information, the corresponding data of write-in functions software in the space of institute's memory address correspondence.
5. software as claimed in claim 4 writes the method for set-top box, the corresponding data that it is characterized by write-in functions software comprises: according to the regional effective marker of being stored, judge whether this zone is effective, if it is invalid, the start offset position of area data from storage writes the invalid data that is complementary with area data length; If effectively, according to address and data the length during merging software of data in merging software, obtain area data, judge whether needs decompress(ion) of this area data according to zone compression sign again, decompress(ion) if desired, decompressing method according to correspondence carries out decompress(ion) to data, and the start offset position from area data begins to write executable area data at last.
CN201110283080.2A 2011-09-22 2011-09-22 Method for writing software into set-top box Expired - Fee Related CN102298534B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110283080.2A CN102298534B (en) 2011-09-22 2011-09-22 Method for writing software into set-top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110283080.2A CN102298534B (en) 2011-09-22 2011-09-22 Method for writing software into set-top box

Publications (2)

Publication Number Publication Date
CN102298534A true CN102298534A (en) 2011-12-28
CN102298534B CN102298534B (en) 2015-02-18

Family

ID=45358970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110283080.2A Expired - Fee Related CN102298534B (en) 2011-09-22 2011-09-22 Method for writing software into set-top box

Country Status (1)

Country Link
CN (1) CN102298534B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102543193A (en) * 2011-12-31 2012-07-04 深圳创维数字技术股份有限公司 Flash memory recording method as well as recording equipment and system
CN103517141A (en) * 2013-10-11 2014-01-15 成都三零凯天通信实业有限公司 Sectional type data upgrading method based on IP set top box
CN104102860A (en) * 2014-08-11 2014-10-15 北京奇虎科技有限公司 Protecting method and running method and device and system for Android platform application program
CN108255606A (en) * 2018-01-02 2018-07-06 深圳市文鼎创数据科技有限公司 Implementation method, device and the storage device of Autorun programs storage
CN108513163A (en) * 2017-02-27 2018-09-07 晨星半导体股份有限公司 Oftware updating method for TV and relevant circuit

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798034A (en) * 2004-12-31 2006-07-05 中国科学院声学研究所 Method for upgrading software of digital terminal system in DVB system
EP0685824B1 (en) * 1994-05-31 2007-02-07 International Business Machines Corporation Data decompression and transfer system
CN102081532A (en) * 2010-10-15 2011-06-01 福建新大陆通信科技股份有限公司 Method for dynamically upgrading functions of set top box

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0685824B1 (en) * 1994-05-31 2007-02-07 International Business Machines Corporation Data decompression and transfer system
CN1798034A (en) * 2004-12-31 2006-07-05 中国科学院声学研究所 Method for upgrading software of digital terminal system in DVB system
CN102081532A (en) * 2010-10-15 2011-06-01 福建新大陆通信科技股份有限公司 Method for dynamically upgrading functions of set top box

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102543193A (en) * 2011-12-31 2012-07-04 深圳创维数字技术股份有限公司 Flash memory recording method as well as recording equipment and system
CN102543193B (en) * 2011-12-31 2015-12-09 深圳创维数字技术有限公司 A kind of flash recordable method, recording device and programming system
CN103517141A (en) * 2013-10-11 2014-01-15 成都三零凯天通信实业有限公司 Sectional type data upgrading method based on IP set top box
CN104102860A (en) * 2014-08-11 2014-10-15 北京奇虎科技有限公司 Protecting method and running method and device and system for Android platform application program
CN108513163A (en) * 2017-02-27 2018-09-07 晨星半导体股份有限公司 Oftware updating method for TV and relevant circuit
CN108513163B (en) * 2017-02-27 2020-12-11 联发科技股份有限公司 Software updating method for television and related circuit
CN108255606A (en) * 2018-01-02 2018-07-06 深圳市文鼎创数据科技有限公司 Implementation method, device and the storage device of Autorun programs storage
CN108255606B (en) * 2018-01-02 2021-06-15 深圳市文鼎创数据科技有限公司 Method and device for realizing storage of Autorun program and storage equipment

Also Published As

Publication number Publication date
CN102298534B (en) 2015-02-18

Similar Documents

Publication Publication Date Title
CN103605540B (en) Flash mirror fast writing method based on Android system
CN103473099B (en) Software upgrading method and system for mobile terminal
CN102298534B (en) Method for writing software into set-top box
CN110377226B (en) Compression method and device based on storage engine bluestore and storage medium
CN105763602A (en) Data request processing method, server and cloud interactive system
CN105975311B (en) Application starting method and device
JP2008065834A (en) Fusion memory device and method
CN102543193A (en) Flash memory recording method as well as recording equipment and system
CN107947799A (en) A kind of data compression method and apparatus
CN103077166A (en) Spatial multiplexing method and device for small file storage
CN109542495A (en) A kind of method for upgrading software and device
CN114661322B (en) Upgrade method of operating system, electronic equipment and storage medium
CN102141926A (en) Application program management method, device and digital television set top box
CN104065906A (en) Video recording method and device of digital video recording equipment
CN106445616B (en) Method and device for upgrading terminal equipment from multiple systems to single system
CN112306368B (en) Method and device for expanding user data partition by EMMC (enhanced multi-media card)
CN112182010A (en) Dirty page refreshing method and device, storage medium and electronic equipment
CN114579055B (en) Disk storage method, device, equipment and medium
CN106909398B (en) Compression method and device for executable file
CN103092634A (en) Set-top box software upgrading method for multiple flash devices
CN102520981A (en) Production method of INAND/NAND-based multi-partition storage device
CN107577474B (en) Processing method and device for upgrading file and electronic equipment
US20170177603A1 (en) Compressed data rearrangement to optimize file compression
KR101604222B1 (en) Recording apparatus and method
CN101251807A (en) Method for upgrading set top box front panel programmable SCM

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150218