CN102262554A - Method and device for saving storage space during upgrading software, and set top box - Google Patents
Method and device for saving storage space during upgrading software, and set top box Download PDFInfo
- Publication number
- CN102262554A CN102262554A CN201110226000XA CN201110226000A CN102262554A CN 102262554 A CN102262554 A CN 102262554A CN 201110226000X A CN201110226000X A CN 201110226000XA CN 201110226000 A CN201110226000 A CN 201110226000A CN 102262554 A CN102262554 A CN 102262554A
- Authority
- CN
- China
- Prior art keywords
- software
- upgrade
- flash
- top box
- internal memory
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 230000006870 function Effects 0.000 claims abstract description 15
- 230000008569 process Effects 0.000 claims description 30
- 238000001514 detection method Methods 0.000 claims description 9
- 230000037430 deletion Effects 0.000 claims description 3
- 238000000151 deposition Methods 0.000 claims description 2
- 238000012545 processing Methods 0.000 claims description 2
- 238000012546 transfer Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 9
- 230000003993 interaction Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000002679 ablation Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention belongs to the field of a digital set top box, and particularly relates to a method and a device for saving a storage space during upgrading software, and a set top box, wherein the method for saving the storage space comprises the following steps of: starting an upgrading function, and detecting whether the code stream has upgrading software with a new version; downloading the upgrading software with a new version and the protecting software together in an internal memory when detecting upgrading software with a new version; storing the protecting software from the internal memory to the FLASH; covering the upgrading software with an old version in the FLASH by the upgrading software with a new version in the internal memory; and deleting the protecting software from the FLASH after the software upgrading is finished. The method disclosed by the invention prevents the software from taking up the fixed FLASH space, so that the set top box can use cheaper FLASH with smaller capacity, thus saving the cost.
Description
Technical field
The invention belongs to the top box of digital machine field, relate in particular to method, device and the set-top box of saving storage space in a kind of software upgrade process.
Background technology
Along with the development of digital television techniques and the popularization of Digital Television, increasing digital TV terminal enters huge numbers of families, and for digital TV terminal, upgrading is its requisite function.
In the prior art, method for upgrading software comprises the steps:
1, the user enters menu and selects aerial upgrade, and the user imports specific frequency, starts upgrade function;
2, in the code stream of this specific frequency correspondence, detect the upgrade software whether redaction is arranged;
3, the upgrade software with redaction downloads in the internal memory of this machine;
4, wipe the upgrade software of legacy version, and the upgrade software of redaction is written to upgrade software district among the FLASH.
Fig. 1 is a prior art FLASH storage area synoptic diagram, as seen, except there being upgrade software, also has protection software in FLASH.The purposes of this protection software is; when carrying out for the 4th step; the upgrade software of legacy version is wiped; and the upgrade software of redaction is writing; ablation process needs a few minutes usually; as set-top box sudden power at this moment; because the upgrade software of redaction is also imperfect; can't normally start after set-top box powers on,, make set-top box start upgrade function so protection software can move; again detect, download the upgrade software of redaction; up to it is write among the FLASH, set-top box is moved by the upgrade software of this redaction, finishes this upgrading.
Protection software only uses under the situation of escalation process sudden power, but prior art protection software is kept among the FLASH all the time, has taken certain storage space.And the price of FLASH is more expensive, if can save the storage space of a part, just can preserve some softwares more commonly used, saves a FLASH, thereby reduces cost.
As seen, set-top box need start upgrade function alternately with the user from the 1st step, promptly needs the user to trigger upgrade function by telepilot or by the set top box front panel button.The user must be interrupted picture when seeing TV, enter into the upgrading picture, and escalation process needs the user to wait for, thereby influences user's sensory experience.
Summary of the invention
The technical problem to be solved in the present invention is to guarantee normally to carry out under the situation of software upgrading the storage space of saving FLASH.
For solving the problems of the technologies described above, the present invention proposes the method for saving storage space in a kind of software upgrade process, comprising:
A, startup upgrade function detect the upgrade software whether redaction is arranged in the code stream;
B, when detecting the upgrade software of redaction, download to the upgrade software of redaction and protection software in the internal memory together;
C, the protection software in the described internal memory is deposited among the described FLASH;
D, the upgrade software of redaction in the described internal memory covered the upgrade software of legacy version among the FLASH;
After E, software upgrading are finished, the protection software among the FLASH is deleted.
In addition, the invention allows for the device of saving storage space in a kind of software upgrade process, comprising:
Detection module is used for detecting the upgrade software whether code stream has redaction;
Download module is used for when described detection module detects the upgrade software of redaction, downloads to the upgrade software of redaction and protection software in the internal memory together;
The protection software processing module is used for the protection software of described internal memory is deposited among the described FLASH, and is used for after software upgrading is finished, and the protection software among the FLASH is deleted;
The upgrade software processing module is used for the upgrade software with legacy version among the upgrade software covering FLASH of described internal memory redaction.
In addition, the invention allows for a kind of set-top box of saving the device of storage space in the above-mentioned software upgrade process that comprises.
In sum, the present invention has produced following technique effect:
1, protection software does not take fixing FLASH space, so set-top box can use littler, the more cheap FLASH of capacity, thereby saves cost;
2, set-top box can be carried out software upgrading automatically under standby mode, does not need man-machine interaction, thereby does not influence user's use.
Description of drawings
Fig. 1 is a prior art FLASH storage area synoptic diagram;
Fig. 2 is the inventive method process flow diagram;
Fig. 3 is FLASH storage area synoptic diagram in the upgrade software process of the present invention;
Fig. 4 for upgrade software of the present invention finish after FLASH storage area synoptic diagram;
Fig. 5 writes in the FLASH process process flow figure after the outage for the present invention protects software;
Fig. 6 writes in the FLASH process process flow figure after the outage for upgrade software of the present invention;
Fig. 7 writes upgrade software for the present invention the method flow diagram of the user data area of FLASH;
Fig. 8 writes the user data in the internal memory for the present invention the synoptic diagram of the user data area of FLASH;
Fig. 9 is the structured flowchart of apparatus of the present invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
As Fig. 2, the present invention proposes in a kind of software upgrade process the method for saving storage space, comprising:
A, startup upgrade function detect the upgrade software whether redaction is arranged in the code stream;
B, when detecting the upgrade software of redaction, download to the upgrade software of redaction and protection software in the internal memory together;
C, the protection software in the described internal memory is deposited among the described FLASH;
D, the upgrade software of redaction in the described internal memory covered the upgrade software of legacy version among the FLASH;
After E, software upgrading are finished, the protection software among the FLASH is deleted.
Whether the upgrade software of redaction is arranged in steps A detects code stream, specifically comprise: search for all frequencies, detect the upgrade software whether redaction is arranged in the code stream of all frequency correspondences.
Fig. 3 is FLASH storage area synoptic diagram in the upgrade software process of the present invention; Fig. 4 for upgrade software of the present invention finish after FLASH storage area synoptic diagram; as seen, protection software does not finally take the physical space of FLASH, and protection software is loaded in the code stream of broadcast TV program.When set-top box is in holding state; can search for all frequencies of DVB-T automatically; and whether there is the upgrade software of redaction in the detection code stream; if have; from code stream, upgrade software and two kinds of different binary program data files of protection software of redaction are downloaded, protection software is written in the white space of FLASH, after software upgrading is finished; with the protection software among FLASH deletion, thereby saved the storage space of FLASH.
The disposal route of set-top box is described below when the set-top box sudden power.
As shown in Figure 5, if in the process of carrying out the C step, the set-top box sudden power, then also comprise after the C: after set-top box powers on, the upgrade software controller top box of legacy version normally moves among the described FLASH, when satisfying the condition that starts upgrade function, jumps to A and continues to carry out.The condition of described startup upgrade function is that set-top box is in standby mode.Set-top box can be carried out software upgrading automatically under standby mode, do not need man-machine interaction, thereby does not influence user's use.
The set-top box sudden power causes protecting software also not write FLASH, when set-top box is in standby mode again, can start upgrade function again, detects again, downloads, writes, and finishes software upgrading.
As shown in Figure 6, if in the process of carrying out the D step, the set-top box sudden power then also comprises after the D: after set-top box powered on, protection software control set-top box jumped to A continuation execution among the described FLASH.
The set-top box sudden power; cause upgrade software also not write FLASH; but protection software writes, and can't normally start set-top box power on after because the upgrade software of redaction is also imperfect this moment; so protection software can move; make set-top box start upgrade function, detect, download the upgrade software of redaction again, up to it is write among the FLASH; set-top box is moved by the upgrade software of this redaction, finishes this upgrading.
Below in conjunction with specific embodiment realization of the present invention is described in detail:
Embodiment one
As Fig. 7, shown in Figure 8, described step C specifically comprises: temporarily transfer to the user data in the user data area of FLASH in the internal memory; Protection software in the described internal memory is deposited in the user data area of described FLASH; Described step e specifically comprises: after software upgrading was finished, the protection software deletion with user data area among the FLASH deposited the described user data in the internal memory in described FLASH user data area.
This method makes when not having unnecessary FLASH white space, can be implemented in temporary protection software among the FLASH equally, thereby finish software upgrading smoothly.
Embodiment two
As shown in Figure 9, the invention allows for the device of saving storage space in a kind of software upgrade process, comprising:
Detection module is used for detecting the upgrade software whether code stream has redaction;
Download module is used for when described detection module detects the upgrade software of redaction, downloads to the upgrade software of redaction and protection software in the internal memory together;
The protection software processing module is used for the protection software of described internal memory is deposited among the described FLASH, and is used for after software upgrading is finished, and the protection software among the FLASH is deleted;
The upgrade software processing module is used for the upgrade software with legacy version among the upgrade software covering FLASH of described internal memory redaction.
Further, described protection software is used for after the set-top box sudden power powers on again the start detection module.
Further, described device also comprises the user data processing module, be used for temporarily transferring to the user data of the user data area of FLASH in the internal memory, and be used for after the upgrade software of described internal memory redaction covers the upgrade software of legacy version among the FLASH, depositing the described user data in the internal memory in described FLASH user data area.
Embodiment three
This invention allows for a kind of set-top box of saving the device of storage space in the above-mentioned software upgrade process that comprises.
Therefore the method key distinction point that the inventive method and prior art adopt is:
1, needs in the method that prior art adopts in FLASH, to preserve a protection software, take the amount of physical memory of FLASH; And the inventive method protection software obtains from code stream.
2, in the method that prior art adopts, user data is not moved; And the inventive method aloft needs in the escalation process user data is backed up and recovers.
3, in the method that prior art adopts, radio and television are play to hold in the code stream of playing and are only comprised upgrade software; And the inventive method, radio and television are play in the code stream of end broadcast, comprise protection software and upgrade software; when carrying out aerial upgrade; protection software and upgrade software need be bundled in the code stream simultaneously, thereby when data download, set-top box can obtain to protect software and upgrade software simultaneously.
So, adopting the inventive method, protection software does not take fixing FLASH space, so set-top box can use littler, the more cheap FLASH of capacity, thereby saves cost; Set-top box can be carried out software upgrading automatically under standby mode, do not need man-machine interaction, thereby does not influence user's use.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. save the method for storage space in the software upgrade process, it is characterized in that, comprising:
A, startup upgrade function detect the upgrade software whether redaction is arranged in the code stream;
B, when detecting the upgrade software of redaction, download to the upgrade software of redaction and protection software in the internal memory together;
C, the protection software in the described internal memory is deposited among the described FLASH;
D, the upgrade software of redaction in the described internal memory covered the upgrade software of legacy version among the FLASH;
After E, software upgrading are finished, the protection software among the FLASH is deleted.
2. save the method for storage space according to claim 1 in the software upgrade process, it is characterized in that, if in the process of carrying out the C step, the set-top box sudden power then also comprises after the C:
After set-top box powered on, the upgrade software controller top box of legacy version normally moved among the described FLASH, when satisfying the condition that starts upgrade function, jumped to A and continued to carry out.
3. as saving the method for storage space in the software upgrade process as described in the claim 2, it is characterized in that the condition of described startup upgrade function is that set-top box is in standby mode.
4. save the method for storage space according to claim 1 in the software upgrade process, it is characterized in that, if in the process of carrying out the D step, the set-top box sudden power then also comprises after the D:
After set-top box powered on, protection software control set-top box jumped to A continuation execution among the described FLASH.
5. save the method for storage space according to claim 1 in the software upgrade process, it is characterized in that described step C specifically comprises:
Temporarily transfer to the user data in the user data area of FLASH in the internal memory; Protection software in the described internal memory is deposited in the user data area of described FLASH;
Described step e specifically comprises:
After software upgrading was finished, the protection software deletion with user data area among the FLASH deposited the described user data in the internal memory in described FLASH user data area.
6. save the method for storage space according to claim 1 in the software upgrade process, it is characterized in that, described steps A detects the upgrade software whether redaction is arranged in the code stream, specifically comprises:
Search for all frequencies, detect the upgrade software whether redaction is arranged in the code stream of all frequency correspondences.
7. save the device of storage space in the software upgrade process, it is characterized in that, comprising:
Detection module is used for detecting the upgrade software whether code stream has redaction;
Download module is used for when described detection module detects the upgrade software of redaction, downloads to the upgrade software of redaction and protection software in the internal memory together;
The protection software processing module is used for the protection software of described internal memory is deposited among the described FLASH, and is used for after software upgrading is finished, and the protection software among the FLASH is deleted;
The upgrade software processing module is used for the upgrade software with legacy version among the upgrade software covering FLASH of described internal memory redaction.
8. as the device of saving storage space as described in the claim 7, it is characterized in that described protection software is used for after the set-top box sudden power powers on again the start detection module.
9. as the device of saving storage space as described in the claim 7, it is characterized in that, described device also comprises the user data processing module, be used for temporarily transferring to the user data of the user data area of FLASH in the internal memory, and be used for after the upgrade software of described internal memory redaction covers the upgrade software of legacy version among the FLASH, depositing the described user data in the internal memory in described FLASH user data area.
10. a set-top box is characterized in that, described set-top box comprises the device as claim 7-9 saving storage space as described in each.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110226000.XA CN102262554B (en) | 2011-08-05 | 2011-08-05 | Method and device for saving storage space during upgrading software, and set top box |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110226000.XA CN102262554B (en) | 2011-08-05 | 2011-08-05 | Method and device for saving storage space during upgrading software, and set top box |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102262554A true CN102262554A (en) | 2011-11-30 |
CN102262554B CN102262554B (en) | 2014-08-20 |
Family
ID=45009191
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110226000.XA Expired - Fee Related CN102262554B (en) | 2011-08-05 | 2011-08-05 | Method and device for saving storage space during upgrading software, and set top box |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102262554B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102917267A (en) * | 2012-09-27 | 2013-02-06 | 深圳创维数字技术股份有限公司 | Set-top box upgrading method and device |
CN103686355A (en) * | 2013-12-27 | 2014-03-26 | 珠海迈科电子科技有限公司 | Method and system for repairing software fault of set-top box |
CN104346187A (en) * | 2013-08-07 | 2015-02-11 | 西安诺瓦电子科技有限公司 | Software upgrading method for video control card for display screen |
CN104503782A (en) * | 2014-12-11 | 2015-04-08 | 中国南方电网有限责任公司电网技术研究中心 | Method for remote software upgrading of in-situ relay protection device |
CN105554525A (en) * | 2016-02-19 | 2016-05-04 | 微鲸科技有限公司 | Upgrade method and upgrade system for smart television or set top box |
CN106028152A (en) * | 2016-06-13 | 2016-10-12 | 天脉聚源(北京)传媒科技有限公司 | Method and device for upgrading set top box operating system |
WO2018112785A1 (en) * | 2016-12-21 | 2018-06-28 | 深圳市瑞珀数码科技有限公司 | Control method and device based on set-top box |
CN109753297A (en) * | 2018-12-28 | 2019-05-14 | 深圳创维-Rgb电子有限公司 | Software upgrade method, device and readable storage medium when terminal is in standby |
CN110716725A (en) * | 2018-07-12 | 2020-01-21 | 广东德昌电机有限公司 | Actuator system, vehicle system, and updating method thereof |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6341373B1 (en) * | 1996-12-20 | 2002-01-22 | Liberate Technologies | Secure data downloading, recovery and upgrading |
CN1798034A (en) * | 2004-12-31 | 2006-07-05 | 中国科学院声学研究所 | Method for upgrading software of digital terminal system in DVB system |
CN101207729A (en) * | 2007-12-17 | 2008-06-25 | 深圳市同洲电子股份有限公司 | Digital television receiving terminal and software upgrading system thereof |
CN101453374A (en) * | 2008-12-29 | 2009-06-10 | 武汉烽火网络有限责任公司 | On-line updating method and system for network appliance |
-
2011
- 2011-08-05 CN CN201110226000.XA patent/CN102262554B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6341373B1 (en) * | 1996-12-20 | 2002-01-22 | Liberate Technologies | Secure data downloading, recovery and upgrading |
CN1798034A (en) * | 2004-12-31 | 2006-07-05 | 中国科学院声学研究所 | Method for upgrading software of digital terminal system in DVB system |
CN101207729A (en) * | 2007-12-17 | 2008-06-25 | 深圳市同洲电子股份有限公司 | Digital television receiving terminal and software upgrading system thereof |
CN101453374A (en) * | 2008-12-29 | 2009-06-10 | 武汉烽火网络有限责任公司 | On-line updating method and system for network appliance |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102917267A (en) * | 2012-09-27 | 2013-02-06 | 深圳创维数字技术股份有限公司 | Set-top box upgrading method and device |
CN104346187A (en) * | 2013-08-07 | 2015-02-11 | 西安诺瓦电子科技有限公司 | Software upgrading method for video control card for display screen |
CN104346187B (en) * | 2013-08-07 | 2017-10-17 | 西安诺瓦电子科技有限公司 | The method for upgrading software of display screen video control card |
CN103686355A (en) * | 2013-12-27 | 2014-03-26 | 珠海迈科电子科技有限公司 | Method and system for repairing software fault of set-top box |
CN104503782B (en) * | 2014-12-11 | 2017-07-28 | 中国南方电网有限责任公司电网技术研究中心 | Method for remote software upgrading of in-situ relay protection device |
CN104503782A (en) * | 2014-12-11 | 2015-04-08 | 中国南方电网有限责任公司电网技术研究中心 | Method for remote software upgrading of in-situ relay protection device |
CN105554525A (en) * | 2016-02-19 | 2016-05-04 | 微鲸科技有限公司 | Upgrade method and upgrade system for smart television or set top box |
CN106028152A (en) * | 2016-06-13 | 2016-10-12 | 天脉聚源(北京)传媒科技有限公司 | Method and device for upgrading set top box operating system |
CN106028152B (en) * | 2016-06-13 | 2020-02-07 | 天脉聚源(北京)传媒科技有限公司 | Set top box operating system upgrading method and device |
WO2018112785A1 (en) * | 2016-12-21 | 2018-06-28 | 深圳市瑞珀数码科技有限公司 | Control method and device based on set-top box |
CN110716725A (en) * | 2018-07-12 | 2020-01-21 | 广东德昌电机有限公司 | Actuator system, vehicle system, and updating method thereof |
CN110716725B (en) * | 2018-07-12 | 2024-07-30 | 广东德昌电机有限公司 | Actuator system, vehicle system, and update method thereof |
CN109753297A (en) * | 2018-12-28 | 2019-05-14 | 深圳创维-Rgb电子有限公司 | Software upgrade method, device and readable storage medium when terminal is in standby |
Also Published As
Publication number | Publication date |
---|---|
CN102262554B (en) | 2014-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102262554B (en) | Method and device for saving storage space during upgrading software, and set top box | |
CN102012831B (en) | Over-the-air technology (OTA) upgrading method based on Linux platform | |
CN102591745B (en) | Method and device for system recovery based on android system and intelligent equipment | |
CN102662689B (en) | Method and system for upgrading embedded software based on USB interface | |
CN102929555B (en) | Terminal and application program uninstalling method | |
CN102650947A (en) | Continuous increment over-the-air upgrade method of Android handheld equipment | |
CN101853296A (en) | Method and device for managing application program | |
CN102802083A (en) | Set top box updating method based on Android system and set top box | |
CN101520734A (en) | Method for upgrading data in flash memory, network TV and interactive set-top box thereof | |
CN102333240A (en) | Set-top box and online upgrade method thereof | |
CN102968335A (en) | Terminal and terminal memory management method | |
CN103186400B (en) | Web application upgrade method and system | |
CN102004657B (en) | A kind of electronic equipment and upgrade method thereof | |
CN201585034U (en) | System update device of plug-and-play digital set top box | |
CN103365682A (en) | Information handling device and information handling method | |
CN103135996A (en) | Vehicle-mounted equipment and program document refresh method thereof | |
CN105068819A (en) | Application calling method and device and terminal | |
CN103794240A (en) | On-line audio data storage method and device | |
CN102938817A (en) | Storage mount achieving method and device under recovery mode of mobile phone | |
CN103442272A (en) | System upgrading method | |
CN102170536A (en) | Digital television network system, digital television all-in-one machine and upgrading method thereof | |
CN102523295A (en) | Plug-in registration method and system thereof | |
CN106445719A (en) | Recovery-mode Recovery instruction reading and writing method and device | |
CN104375866A (en) | Single board driving updating method and device | |
CN102360303A (en) | Method for upgrading handheld terminal software, and handheld terminal |
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 | ||
DD01 | Delivery of document by public notice |
Addressee: Shenzhen Jiuzhou Electric Appliance Co., Ltd. Document name: Notification to Pay the Fees |
|
DD01 | Delivery of document by public notice | ||
DD01 | Delivery of document by public notice |
Addressee: SHENZHEN JIUZHOU ELECTRIC Co.,Ltd. Document name: Notification of Termination of Patent Right |
|
DD01 | Delivery of document by public notice | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140820 Termination date: 20190805 |
|
CF01 | Termination of patent right due to non-payment of annual fee |