CN102262554B - 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 PDF

Info

Publication number
CN102262554B
CN102262554B CN201110226000.XA CN201110226000A CN102262554B CN 102262554 B CN102262554 B CN 102262554B CN 201110226000 A CN201110226000 A CN 201110226000A CN 102262554 B CN102262554 B CN 102262554B
Authority
CN
China
Prior art keywords
software
flash
upgrade
top box
redaction
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.)
Expired - Fee Related
Application number
CN201110226000.XA
Other languages
Chinese (zh)
Other versions
CN102262554A (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.)
Shenzhen Jiuzhou Electric Appliance Co Ltd
Original Assignee
Shenzhen Jiuzhou Electric Appliance 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 Shenzhen Jiuzhou Electric Appliance Co Ltd filed Critical Shenzhen Jiuzhou Electric Appliance Co Ltd
Priority to CN201110226000.XA priority Critical patent/CN102262554B/en
Publication of CN102262554A publication Critical patent/CN102262554A/en
Application granted granted Critical
Publication of CN102262554B publication Critical patent/CN102262554B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

A kind of method of saving storage space during upgrading software, device and Set Top Box
Technical field
The invention belongs to top box of digital machine field, relate in particular to a kind of method, device and Set Top Box of saving storage space during upgrading software.
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 prior art, method for upgrading software comprises the steps:
1, user enters menu setecting aerial upgrade, and user inputs specific frequency, starts upgrade function;
2,, in code stream corresponding to this specific frequency, detect the upgrade software that whether has redaction;
3, the upgrade software of redaction is downloaded in the internal memory of the machine;
4, wipe the upgrade software of legacy version, and the upgrade software of redaction is written to the upgrade software district in FLASH.
Fig. 1 is prior art FLASH storage area schematic diagram, visible, in FLASH, except there being upgrade software, also has protection software.The purposes of this protection software is; when carrying out 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 conventionally; as the unexpected power-off of Set Top Box at this moment; because the upgrade software of redaction is also imperfect; after Set Top Box powers on, cannot normally start, so protection software can move, make Set Top Box start upgrade function; again detect, download the upgrade software of redaction; until it is write in FLASH, Set Top Box is moved by the upgrade software of this redaction, completes this upgrading.
Protection software is only used the in the situation that of the unexpected power-off of escalation process, but prior art protection software is kept in FLASH all the time, has taken certain storage space.And the price of FLASH is more expensive, if can save a part of storage space, just can preserve some more conventional softwares, save a FLASH, thereby reduce costs.
From the 1st step, Set Top Box need to start upgrade function alternately with user, needs user to trigger upgrade function by telepilot or by set top box front panel button.User, when seeing TV, must be interrupted picture, enters into upgrading picture, and escalation process needs user to wait for, thereby affects user's sensory experience.
Summary of the invention
The technical problem to be solved in the present invention is, in the situation that guaranteeing normally to carry out software upgrading, to save the storage space of FLASH.
For solving the problems of the technologies described above, the present invention proposes a kind of method of saving storage space during upgrading software, comprising:
A, startup upgrade function, detect the upgrade software that whether has redaction in code stream;
B, when the upgrade software of redaction being detected, by the upgrade software of redaction and protection software download to together in internal memory;
C, the protection software in described internal memory is deposited in described FLASH;
D, the upgrade software of redaction in described internal memory is covered to the upgrade software of legacy version in FLASH;
After E, software upgrading complete, the protection software in FLASH is deleted.
Separately, the invention allows for a kind of device of saving storage space during upgrading software, comprising:
Detection module, for detection of whether there being the upgrade software of redaction in code stream;
Download module, for when described detection module detects the upgrade software of redaction, downloads in internal memory by the upgrade software of redaction and protection software together;
Protection software processing module, for the protection software of described internal memory is deposited in described FLASH, and for after completing in software upgrading, deletes the protection software in FLASH;
Upgrade software processing module, for covering the upgrade software of described internal memory redaction the upgrade software of legacy version in FLASH.
Separately, the invention allows for a kind of Set Top Box that comprises the device of above-mentioned saving storage space during upgrading software.
In sum, the present invention has produced following technique effect:
1, protection software does not take fixing FLASH space, so Set Top Box can be used the FLASH that capacity is less, more cheap, thereby saves cost;
2, Set Top Box can automatically be carried out software upgrading under standby mode, does not need man-machine interaction, thereby does not affect user's use.
Accompanying drawing explanation
Fig. 1 is prior art FLASH storage area schematic diagram;
Fig. 2 is the inventive method process flow diagram;
Fig. 3 is FLASH storage area schematic diagram in upgrade software process of the present invention;
Fig. 4 is FLASH storage area schematic diagram after upgrade software of the present invention completes;
Fig. 5 is that the present invention protects software to write in FLASH process, the process flow figure after power-off;
Fig. 6 is that upgrade software of the present invention writes in FLASH process, the process flow figure after power-off;
Fig. 7 is that the present invention writes upgrade software the method flow diagram of the user data area of FLASH;
Fig. 8 is that the present invention writes the user data in internal memory the schematic 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 object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
As Fig. 2, the present invention proposes a kind of method of saving storage space during upgrading software, comprising:
A, startup upgrade function, detect the upgrade software that whether has redaction in code stream;
B, when the upgrade software of redaction being detected, by the upgrade software of redaction and protection software download to together in internal memory;
C, the protection software in described internal memory is deposited in described FLASH;
D, the upgrade software of redaction in described internal memory is covered to the upgrade software of legacy version in FLASH;
After E, software upgrading complete, the protection software in FLASH is deleted.
In steps A, detect the upgrade software that whether has redaction in code stream, specifically comprise: search for all frequencies, detect the upgrade software that whether has redaction in the code stream that all frequencies are corresponding.
Fig. 3 is FLASH storage area schematic diagram in upgrade software process of the present invention; Fig. 4 is FLASH storage area schematic diagram after upgrade software of the present invention completes; visible, 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 during in holding state; can automatically to all frequencies of DVB-T, search for; and detect the upgrade software that whether has redaction in code stream; if had; from code stream, the upgrade software of redaction and two kinds of different binary program data files of protection software are downloaded, protection software is written in a white space of FLASH, after software upgrading completes; protection software in FLASH is deleted, thereby saved the storage space of FLASH.
The disposal route of Set Top Box is described below when the unexpected power-off of Set Top Box.
As shown in Figure 5, if in carrying out the process of C step, the unexpected power-off of Set Top Box, after C, also comprise: after Set Top Box powers on, in described FLASH, the upgrade software controller top box of legacy version normally moves, and when meeting 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 automatically be carried out software upgrading under standby mode, does not need man-machine interaction, thereby does not affect user's use.
The unexpected power-off of Set Top Box, causes protecting software also not write FLASH, when Set Top Box is during again in standby mode, can start upgrade function again, again detects, downloads, writes, and completes software upgrading.
As shown in Figure 6, if in carrying out the process of D step, the unexpected power-off of Set Top Box, also comprises after D: after Set Top Box powers on, protect software control Set Top Box to jump to A and continue to carry out in described FLASH.
The unexpected power-off of Set Top Box; cause upgrade software also not write FLASH; but protection software writes, now, because the upgrade software of redaction is also imperfect, after Set Top Box powers on, cannot normally start; so protection software can move; make Set Top Box start upgrade function, again detect, download the upgrade software of redaction, until it is write in FLASH; Set Top Box is moved by the upgrade software of this redaction, completes this upgrading.
Below in conjunction with specific embodiment, realization of the present invention is described in detail:
embodiment mono-
As shown in Figure 7, Figure 8, described step C specifically comprises: the user data in the user data area of FLASH is temporarily transferred in internal memory; Protection software in described internal memory is deposited in to the user data area of described FLASH; Described step e specifically comprises: after software upgrading completes, the protection software of user data area in FLASH is deleted, deposited the described user data in internal memory in described FLASH user data area.
The method makes when there is no unnecessary FLASH white space, can realize equally temporary protection software in FLASH, thereby complete smoothly software upgrading.
embodiment bis-
As shown in Figure 9, the invention allows for a kind of device of saving storage space during upgrading software, comprising:
Detection module, for detection of whether there being the upgrade software of redaction in code stream;
Download module, for when described detection module detects the upgrade software of redaction, downloads in internal memory by the upgrade software of redaction and protection software together;
Protection software processing module, for the protection software of described internal memory is deposited in described FLASH, and for after completing in software upgrading, deletes the protection software in FLASH;
Upgrade software processing module, for covering the upgrade software of described internal memory redaction the upgrade software of legacy version in FLASH.
Further, described protection software, after powering on again in the unexpected power-off of Set Top Box, start detection module.
Further, described device also comprises user data processing module, for the user data of the user data area of FLASH is temporarily transferred in internal memory, and for the upgrade software when described internal memory redaction, cover after the upgrade software of legacy version in FLASH, deposit the described user data in internal memory in described FLASH user data area.
embodiment tri-
This invention allows for a kind of Set Top Box that comprises the device of above-mentioned saving storage space during upgrading software.
Therefore the method key distinction point that the inventive method and prior art adopt is:
1, in the method that prior art adopts, need in FLASH, 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 needs user data back up and recover aloft in escalation process.
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 broadcasting, comprise protection software and upgrade software; when carrying out aerial upgrade; protection software and upgrade software need to be bundled in code stream simultaneously, thereby when downloading data, Set Top Box can obtain protection software and upgrade software simultaneously.
So, adopting the inventive method, protection software does not take fixing FLASH space, so Set Top Box can be used the FLASH that capacity is less, more cheap, thereby saves cost; Set Top Box can automatically be carried out software upgrading under standby mode, does not need man-machine interaction, thereby does not affect user's use.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.

Claims (7)

1. a method for saving storage space during upgrading software, is characterized in that, comprising:
A, startup upgrade function, detect the upgrade software that whether has redaction in code stream;
B, when the upgrade software of redaction being detected, by the upgrade software of redaction and protection software download to together in internal memory, described protection software is loaded in the code stream of broadcast TV program;
C, the user data in the user data area of FLASH is temporarily transferred in internal memory; Protection software in described internal memory is deposited in to the user data area of described FLASH;
D, the upgrade software of redaction in described internal memory is covered to the upgrade software of legacy version in FLASH;
After E, software upgrading complete, the protection software of user data area in FLASH is deleted, deposited the described user data in internal memory in described FLASH user data area.
2. the method for saving storage space during upgrading software as claimed in claim 1, is characterized in that, if in carrying out the process of C step, the unexpected power-off of Set Top Box, also comprises after C:
After Set Top Box powers on, in described FLASH, the upgrade software controller top box of legacy version normally moves, and when meeting the condition that starts upgrade function, jumps to A and continues to carry out.
3. the method for saving storage space during upgrading software as claimed in claim 2, is characterized in that, the condition of described startup upgrade function is that Set Top Box is in standby mode.
4. the method for saving storage space during upgrading software as claimed in claim 1, is characterized in that, if in carrying out the process of D step, the unexpected power-off of Set Top Box, also comprises after D:
After Set Top Box powers on, in described FLASH, protect software control Set Top Box to jump to A and continue to carry out.
5. the method for saving storage space during upgrading software as claimed in claim 1, is characterized in that, described steps A detects the upgrade software that whether has redaction in code stream, specifically comprises:
Search for all frequencies, detect the upgrade software that whether has redaction in the code stream that all frequencies are corresponding.
6. a device for saving storage space during upgrading software, is characterized in that, comprising:
Detection module, for detection of whether there being the upgrade software of redaction in code stream;
Download module, for when described detection module detects the upgrade software of redaction, downloads to the upgrade software of redaction and protection software in internal memory together, and described protection software is loaded in the code stream of broadcast TV program;
Protection software processing module, for the protection software of described internal memory is deposited in described FLASH, and for after completing in software upgrading, deletes the protection software in FLASH;
Upgrade software processing module, for covering the upgrade software of described internal memory redaction the upgrade software of legacy version in FLASH;
User data processing module, for the user data of the user data area of FLASH is temporarily transferred in internal memory, and for the upgrade software when described internal memory redaction, cover after the upgrade software of legacy version in FLASH, deposit the described user data in internal memory in described FLASH user data area.
7. save as claimed in claim 6 the device of storage space, it is characterized in that, described protection software, after powering on again in the unexpected power-off of Set Top Box, start detection module.
CN201110226000.XA 2011-08-05 2011-08-05 Method and device for saving storage space during upgrading software, and set top box Expired - Fee Related CN102262554B (en)

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 CN102262554A (en) 2011-11-30
CN102262554B true 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)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917267A (en) * 2012-09-27 2013-02-06 深圳创维数字技术股份有限公司 Set-top box upgrading method and device
CN104346187B (en) * 2013-08-07 2017-10-17 西安诺瓦电子科技有限公司 The method for upgrading software of display screen video control card
CN103686355B (en) * 2013-12-27 2018-07-20 珠海迈科智能科技股份有限公司 A kind of restorative procedure and system of the software fault of set-top box
CN104503782B (en) * 2014-12-11 2017-07-28 中国南方电网有限责任公司电网技术研究中心 A kind of method of site protective relaying device remote software upgrade
CN105554525A (en) * 2016-02-19 2016-05-04 微鲸科技有限公司 Upgrade method and upgrade system for smart television or set top box
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
GB2575482B (en) * 2018-07-12 2023-04-12 Johnson Electric Int Ag Actuator system with reprogrammable memory
CN109753297A (en) * 2018-12-28 2019-05-14 深圳创维-Rgb电子有限公司 Method for upgrading software, device and readable storage medium storing program for executing when terminal standby

Citations (4)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN102262554A (en) 2011-11-30

Similar Documents

Publication Publication Date Title
CN102262554B (en) Method and device for saving storage space during upgrading software, and set top box
CN105094903B (en) The method and device that firmware is upgraded
CN102650947B (en) Continuous increment over-the-air upgrade method of Android handheld equipment
US20120272231A1 (en) Mobile terminal and system for managing applications using the same
US20120220282A1 (en) Method and system for acquiring application in mobile device
CN102646043B (en) Mobile terminal software upgrading method, update device and mobile terminal
CN102929555B (en) Terminal and application program uninstalling method
CN107273160A (en) A kind of method and device of edition upgrading
CN104572819A (en) Clearing method and system for junk data
CN102591558A (en) Mobile terminal and controlling method thereof
CN102890638B (en) Upgrade method of STB (set top box)
CN102004657B (en) A kind of electronic equipment and upgrade method thereof
EP2375731A1 (en) Mobile terminal and related contents providing method using broadcast service guide information thereof
CN104536783A (en) Method and device for setting reserved space
CN103135996A (en) Vehicle-mounted equipment and program document refresh method thereof
CN105446768B (en) Method for upgrading system and device
CN105068819A (en) Application calling method and device and terminal
CN102609290B (en) The method for upgrading software of electronic product
CN103442272A (en) System upgrading method
CN102170536A (en) Digital television network system, digital television all-in-one machine and upgrading method thereof
CN102316376A (en) Method for set-top box to automatically update data and system
CN101958974A (en) Method for taking video as screen saver and mobile terminal
CN102360303A (en) Method for upgrading handheld terminal software, and handheld terminal
CN102567043B (en) Set-top box online updating method
CN106445719A (en) Recovery-mode Recovery instruction reading and writing method and device

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
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

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140820

Termination date: 20190805