CN102567043B - Set-top box online updating method - Google Patents

Set-top box online updating method Download PDF

Info

Publication number
CN102567043B
CN102567043B CN201110370615.XA CN201110370615A CN102567043B CN 102567043 B CN102567043 B CN 102567043B CN 201110370615 A CN201110370615 A CN 201110370615A CN 102567043 B CN102567043 B CN 102567043B
Authority
CN
China
Prior art keywords
data
top box
set top
dsb
store block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110370615.XA
Other languages
Chinese (zh)
Other versions
CN102567043A (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.)
Zhangzhou Haiyin Intelligent Information Technology Co., Ltd
Original Assignee
FUJIAN ERLING ELECTRONIC 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 FUJIAN ERLING ELECTRONIC Co Ltd filed Critical FUJIAN ERLING ELECTRONIC Co Ltd
Priority to CN201110370615.XA priority Critical patent/CN102567043B/en
Publication of CN102567043A publication Critical patent/CN102567043A/en
Application granted granted Critical
Publication of CN102567043B publication Critical patent/CN102567043B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a set-top box online updating method, which includes the steps: A, presetting a first data storage block and a second data storage block in a nonvolatile storage of a set-top box, wherein each of the first data storage block and the second data storage block comprises a data head flag for indicating whether data are stored or not, a data use flag for indicating whether data are valid or not and a data storage area for storing data; B, erasing the first data storage block and the second data storage block by a processor of the set-top box, and writing current information of the set-top box into the data storage area of one data storage block by the processor of the set-top box; C, storing updated information into an internal storage of the set-top box by the processor of the set-top box; D, utilizing the processor of the set-top box to write updated information into the data storage block with the data head flag indicating that data are not stored; E, after the set-top box is restarted, invoking the data storage block with the data use flag indicating that the data are valid, and erasing the data storage block with the data use flag indicating that the data are invalid; and F, after the set-top box is successfully updated, returning to the step C or exiting.

Description

A kind of method of Set Top Box online upgrading
Technical field
The present invention relates to digital television techniques field, particularly relate to a kind of method of Set Top Box online upgrading.
Background technology
In order to realize the demand that the new function of continuous increase is different with meeting client, Set Top Box often needs online upgrading.General online upgrading process is broadly divided into from TS stream downloads upgrade data, wipes original data of set top box, writes three steps of newly downloaded data.But adopting this upgrade method to require can not power-off in escalation process.When the data of original data in being wiped free of or upgrade are during in write phase, if when user touches power-off source, power failure or other fortuitous event power-off because of carelessness, thereby there will be the damaged Set Top Box that causes of data of Set Top Box normally to start.
Summary of the invention
The object of the invention is to overcome the deficiency of prior art, a kind of method of Set Top Box online upgrading is provided, realized the set-top box functionality of Set Top Box before not restarting and normally used, and the information of guarantee upgrading is not lost.
The technical solution adopted for the present invention to solve the technical problems is: a kind of method of Set Top Box online upgrading, comprising:
Steps A, preset the first DSB data store block and the second DSB data store block in the nonvolatile memory of Set Top Box; The first DSB data store block and the second DSB data store block include: show data head mark that whether data stored, show the whether data storage area of active data service marking and storage data of data;
Step B, the processor of Set Top Box is wiped the first DSB data store block and the second DSB data store block, first DSB data store block of having wiped and the data service marking of the second DSB data store block be data effectively and data head zone bit for not storing, the processor of Set Top Box writes information current Set Top Box in the data storage area of one of them DSB data store block, the data head mark of this DSB data store block is made as and is stored simultaneously;
Step C, the processor of Set Top Box constantly detects the information that whether contains online upgrading in TS stream, if it is starts download the information of upgrading and the information of upgrading stored in the internal memory of Set Top Box;
Step D, the processor of Set Top Box successfully downloads to the information of upgrading after the internal memory of Set Top Box, the processor of Set Top Box is inquired about the data head mark of the first DSB data store block and the second DSB data store block, if inquire data head and be masked as not the DSB data store block of storage, the information of upgrading is written in the data storage area of this DSB data store block and the data head mark of this DSB data store block is set to store, then the data service marking of another DSB data store block is made as to data invalid;
Step e, after Set Top Box is restarted, the processor of Set Top Box is inquired about the data service marking of the first DSB data store block and the second DSB data store block, calling data service marking is canned data in data active data storage block, then be that in the DSB data store block that data are invalid, canned data is wiped by data service marking, the data service marking of the DSB data store block after wiping be data effectively and data head be not masked as and do not store, Set Top Box completes upgrading;
Step F, after Set Top Box is successfully upgraded, returns to step C, or exits.
Described step C comprises:
Step C1, the processor of Set Top Box constantly detects the information that whether contains online upgrading in TS stream, if it is forwards step C2 to, otherwise the processor of Set Top Box continues to detect the information that whether contains online upgrading in TS stream;
Step C2, whether the version number in the information of the processor checking upgrading of Set Top Box is identical with the version number of Set Top Box, if it is forwards step C3 to, otherwise returns to step C1;
Step C3, the processor of Set Top Box is downloaded to the information of upgrading in the internal memory of Set Top Box, and judges whether upgrade information is successfully downloaded to the internal memory of Set Top Box, if it is forwards step D to, otherwise returns to step C1;
Described step D comprises:
Step D1, after the processor of Set Top Box successfully downloads to the information of upgrading in the internal memory of Set Top Box, inquire about the data head mark of the first DSB data store block and the second DSB data store block, if inquire data head and be masked as not the DSB data store block of storage, the processor of Set Top Box is written to the information of upgrading in the data storage area that data head is masked as the DSB data store block of storage not;
Step D2, the processor of Set Top Box judges that the data head described in the whether successful write step D1 of information upgrading is masked as in the data storage area of the DSB data store block of not storing, and if it is forwards step D3 to, otherwise returns to step C1;
Step D3, the data head mark that successfully writes the DSB data store block of upgrade information described in the processor step D2 of Set Top Box is set to store, and then the data service marking of another DSB data store block is made as to data invalid.
Described step e comprises:
Step e 1, whether the processor enquiry machine top box of Set Top Box restarts, and if so, forward step e 2 to, otherwise Set Top Box is by normal play program;
Step e 2, the processor calling data service marking of Set Top Box is canned data in data active data storage block, then be that in the DSB data store block that data are invalid, canned data is wiped by data service marking, the data service marking of the DSB data store block after wiping be data effectively and data head be not masked as and do not store.
The invention has the beneficial effects as follows, realized the set-top box functionality of Set Top Box before not restarting and normally used, and the information of guarantee upgrading is not lost.
Below in conjunction with drawings and Examples, the present invention is described in further detail; But the method for a kind of Set Top Box online upgrading of the present invention is not limited to embodiment.
Brief description of the drawings
Fig. 1 is process flow diagram of the present invention.
Embodiment
Embodiment, shown in Figure 1, the method for a kind of Set Top Box online upgrading of the present invention, comprising:
Steps A, preset the first DSB data store block DataStruct 1 and the second DSB data store block DataStruct 2 in the nonvolatile memory of Set Top Box; The first DSB data store block DataStruct 1 and the second DSB data store block DataStruct 2 include: show data head mark Head that whether data stored, show the whether data storage area Buff (as shown in the frame 101 of Fig. 1) of active data service marking Flag and storage data of data;
The processor of Set Top Box by data service marking Flag be data when effective setting data service marking Flag be 1, data service marking Flag be data when invalid setting data service marking Flag be 0.It is more than a kind of definition mode in the present embodiment, also can take other definition mode, such as the processor of Set Top Box by data service marking Flag be data when invalid setting data service marking Flag be 0, data service marking Flag be data when invalid setting data service marking Flag be 1.
The processor of Set Top Box is 0xaf by data head mark Head setting data leader will Head when storing, and data head mark Head setting data leader will Head when not storing is 0xff.It is more than a kind of definition mode in the present embodiment, also can take other definition mode, such as the processor of Set Top Box will be 0xbf such as data head mark Head is defined as data head mark Head while storing, data head mark Head setting data leader will Head when not storing is 0xff.
Step B, the processor of Set Top Box is wiped the first DSB data store block DataStruct 1 and the second DSB data store block DataStruct 2, the the first DSB data store block DataStruct 1 having wiped and all data bit of the second DSB data store block DataStruct 2 are all 1, the the first DSB data store block DataStruct 1 having wiped and the data service marking Flag of the second DSB data store block DataStruct 2 are 1, data head zone bit Head is 0xff, the data service marking Flag of the first DSB data store block DataStruct 1 and the second DSB data store block DataStruct 2 be data effectively and data head zone bit Head for not storing, the processor of Set Top Box writes information current Set Top Box in the data storage area Buff of one of them DSB data store block, the data head mark Head of this DSB data store block is made as to 0xaf simultaneously, the data head mark Head being somebody's turn to do stores (as shown in the frame 102 of Fig. 1),
Step C, the processor of Set Top Box constantly detects the information that whether contains online upgrading in TS stream, if it is starts download the information of upgrading and the information of upgrading stored in the internal memory of Set Top Box;
Step D, after the processor of Set Top Box successfully downloads to the information of upgrading in the internal memory of Set Top Box, the processor of Set Top Box is inquired about the data head mark Head of the first DSB data store block DataStruct 1 and the second DSB data store block DataStruct 2, if inquire the DSB data store block that data head mark Head is 0xaf, the information of upgrading is written in the data storage area Buff of this DSB data store block and the data head mark Head of this DSB data store block is made as to 0xaf, then the data service marking Flag of another DSB data store block is made as to 0;
Step e, after Set Top Box is restarted, the processor of Set Top Box is inquired about the data service marking Flag of the first DSB data store block DataStruct 1 and the second DSB data store block DataStruct 2, canned data in the DSB data store block that calling data service marking Flag is 1, then in the DSB data store block that is 0 by data service marking Flag, canned data is wiped, the data service marking Flag of the DSB data store block after wiping be 1 and data head mark Head be 0xff, Set Top Box completes upgrading;
Step F, after Set Top Box is successfully upgraded, returns to step C, or exits.
In the present embodiment, step F, after Set Top Box is successfully upgraded, returns to step C, has continued the upgrading of next round.Step F, selects to exit after also can adopting Set Top Box successfully to upgrade.
Described step C comprises:
Step C1, the processor of Set Top Box constantly detects the information that whether contains online upgrading in TS stream, if it is forward step C2 to, otherwise the processor of Set Top Box continues to detect the information (as shown in the frame 103 of Fig. 1) that whether contains online upgrading in TS stream;
Step C2, whether the version number in the information of the processor checking upgrading of Set Top Box is identical with the version number of Set Top Box, if it is forwards step C3 to, otherwise returns to step C1 (as shown in the frame 104 of Fig. 1);
Step C3, the processor of Set Top Box is downloaded to the information of upgrading the internal memory of Set Top Box, and judges whether upgrade information is successfully downloaded to the internal memory of Set Top Box, if it is forwards step D to, otherwise returns to step C1 (as shown in the frame 105 of Fig. 1);
Described step D comprises:
Step D1, after the processor of Set Top Box successfully downloads to the information of upgrading in the internal memory of Set Top Box, inquire about the data head mark Head of the first DSB data store block DataStruct 1 and the second DSB data store block DataStruct 2, if inquire the DSB data store block that data head mark Head is 0xff, the processor of Set Top Box is written to the information of upgrading in the data storage area Buff of DSB data store block that data head is masked as 0xff (as shown in the frame 106 of Fig. 1);
Step D2, the processor of Set Top Box judges that the data head described in the whether successful write step D1 of information upgrading is masked as in the data storage area Buff of DSB data store block of 0xff, if it is forward step D3 to, otherwise return to step C1 (as shown in the frame 107 of Fig. 1);
Step D3, the data head mark Head that successfully writes the DSB data store block of upgrade information described in the processor step D2 of Set Top Box is set to 0xaf, then the data service marking Flag of another DSB data store block is made as to 0 (as shown in the frame 108 of Fig. 1).
Described step e comprises:
Step e 1, whether the processor enquiry machine top box of Set Top Box restarts, and if so, forwards step e 2 to, otherwise Set Top Box is by normal play program (as shown in the frame 109,110 of Fig. 1);
Step e 2, canned data in the DSB data store block that the processor calling data service marking Flag of Set Top Box is 1, then in the DSB data store block that is 0 by data service marking Flag, canned data is wiped, the data service marking Flag of this DSB data store block after wiping be 1 and data head mark Head be 0xff (as shown in the frame 111 of Fig. 1).
Above-described embodiment is only used for further illustrating the method for a kind of Set Top Box online upgrading of the present invention; but the present invention is not limited to embodiment; any simple modification, equivalent variations and modification that every foundation technical spirit of the present invention is done above embodiment, all fall in the protection domain of technical solution of the present invention.

Claims (4)

1. a method for Set Top Box online upgrading, is characterized in that: comprising:
Steps A, preset the first DSB data store block and the second DSB data store block in the nonvolatile memory of Set Top Box; The first DSB data store block and the second DSB data store block include: show data head mark that whether data stored, show the whether data storage area of active data service marking and storage data of data;
Step B, the processor of Set Top Box is wiped the first DSB data store block and the second DSB data store block, first DSB data store block of having wiped and the data service marking of the second DSB data store block be data effectively and data head zone bit for not storing, the processor of Set Top Box writes information current Set Top Box in the data storage area of one of them DSB data store block, the data head mark of this DSB data store block is made as and is stored simultaneously;
Step C, the processor of Set Top Box constantly detects the information that whether contains online upgrading in TS stream, if it is starts download the information of upgrading and the information of upgrading stored in the internal memory of Set Top Box;
Step D, the processor of Set Top Box successfully downloads to the information of upgrading after the internal memory of Set Top Box, the processor of Set Top Box is inquired about the data head mark of the first DSB data store block and the second DSB data store block, if inquire data head and be masked as not the DSB data store block of storage, the information of upgrading is written in the data storage area of this DSB data store block and the data head mark of this DSB data store block is set to store, then the data service marking of another DSB data store block is made as to data invalid;
Step e, after Set Top Box is restarted, the processor of Set Top Box is inquired about the data service marking of the first DSB data store block and the second DSB data store block, calling data service marking is canned data in data active data storage block, then be that in the DSB data store block that data are invalid, canned data is wiped by data service marking, the data service marking of the DSB data store block after wiping be data effectively and data head be not masked as and do not store, Set Top Box completes upgrading;
Step F, after Set Top Box is successfully upgraded, returns to step C, or exits.
2. the method for Set Top Box online upgrading according to claim 1, is characterized in that:
Described step C comprises:
Step C1, the processor of Set Top Box constantly detects the information that whether contains online upgrading in TS stream, if it is forwards step C2 to, otherwise the processor of Set Top Box continues to detect the information that whether contains online upgrading in TS stream;
Step C2, whether the version number in the information of the processor checking upgrading of Set Top Box is identical with the version number of Set Top Box, if it is forwards step C3 to, otherwise returns to step C1;
Step C3, the processor of Set Top Box is downloaded to the information of upgrading in the internal memory of Set Top Box, and judges whether upgrade information is successfully downloaded to the internal memory of Set Top Box, if it is forwards step D to, otherwise returns to step C1.
3. the method for Set Top Box online upgrading according to claim 1, is characterized in that:
Described step D comprises:
Step D1, after the processor of Set Top Box successfully downloads to the information of upgrading in the internal memory of Set Top Box, inquire about the data head mark of the first DSB data store block and the second DSB data store block, if inquire data head and be masked as not the DSB data store block of storage, the processor of Set Top Box is written to the information of upgrading in the data storage area that data head is masked as the DSB data store block of storage not;
Step D2, the processor of Set Top Box judges that the data head described in the whether successful write step D1 of information upgrading is masked as in the data storage area of the DSB data store block of not storing, and if it is forwards step D3 to, otherwise returns to step C1;
Step D3, the data head mark that successfully writes the DSB data store block of upgrade information described in the processor step D2 of Set Top Box is set to store, and then the data service marking of another DSB data store block is made as to data invalid.
4. the method for Set Top Box online upgrading according to claim 1, is characterized in that:
Described step e comprises:
Step e 1, whether the processor enquiry machine top box of Set Top Box restarts, and if so, forward step e 2 to, otherwise Set Top Box is by normal play program;
Step e 2, the processor calling data service marking of Set Top Box is canned data in data active data storage block, then be that in the DSB data store block that data are invalid, canned data is wiped by data service marking, the data service marking of the DSB data store block after wiping be data effectively and data head be not masked as and do not store.
CN201110370615.XA 2011-11-18 2011-11-18 Set-top box online updating method Active CN102567043B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110370615.XA CN102567043B (en) 2011-11-18 2011-11-18 Set-top box online updating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110370615.XA CN102567043B (en) 2011-11-18 2011-11-18 Set-top box online updating method

Publications (2)

Publication Number Publication Date
CN102567043A CN102567043A (en) 2012-07-11
CN102567043B true CN102567043B (en) 2014-10-29

Family

ID=46412551

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110370615.XA Active CN102567043B (en) 2011-11-18 2011-11-18 Set-top box online updating method

Country Status (1)

Country Link
CN (1) CN102567043B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938857B (en) * 2012-11-27 2016-02-10 乐视致新电子科技(天津)有限公司 A kind of method of Set Top Box online upgrading
CN102984572A (en) * 2012-12-10 2013-03-20 四川九洲电器集团有限责任公司 Double backup method for system software upgrade of set top box
CN103995713A (en) * 2014-04-28 2014-08-20 四川金网通电子科技有限公司 Method and system for fast upgrading various hardware configuration set top boxes on line
CN104915226B (en) * 2015-05-21 2018-12-14 北京星网锐捷网络技术有限公司 A kind of network device software starting method, apparatus and the network equipment
CN105677383A (en) * 2015-12-28 2016-06-15 北京华大智宝电子系统有限公司 Method for updating data of smart card

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6956798B2 (en) * 2002-04-16 2005-10-18 Matsushita Electric Industrial Co., Ltd. Information recording apparatus and method for recording information on recording medium
CN101216772A (en) * 2008-01-15 2008-07-09 中兴通讯股份有限公司 Embedded equipment startup method and software upgrading method
CN101826027A (en) * 2010-05-28 2010-09-08 深圳市融创天下科技发展有限公司 Embedded system and updating method thereof
CN102110000A (en) * 2009-12-25 2011-06-29 康佳集团股份有限公司 Method, device and equipment for controlling software for auto-updating

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006053848A (en) * 2004-08-16 2006-02-23 Nec Infrontia Corp Information processor and program updating method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6956798B2 (en) * 2002-04-16 2005-10-18 Matsushita Electric Industrial Co., Ltd. Information recording apparatus and method for recording information on recording medium
CN101216772A (en) * 2008-01-15 2008-07-09 中兴通讯股份有限公司 Embedded equipment startup method and software upgrading method
CN102110000A (en) * 2009-12-25 2011-06-29 康佳集团股份有限公司 Method, device and equipment for controlling software for auto-updating
CN101826027A (en) * 2010-05-28 2010-09-08 深圳市融创天下科技发展有限公司 Embedded system and updating method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开2006-053848A 2006.02.23

Also Published As

Publication number Publication date
CN102567043A (en) 2012-07-11

Similar Documents

Publication Publication Date Title
CN102567043B (en) Set-top box online updating method
CN103227812B (en) Smart machine is supported method for down loading and the device of breakpoint transmission
CN103092700A (en) Internal memory cleaning method and cleaning device and terminal device
CN102650947A (en) Continuous increment over-the-air upgrade method of Android handheld equipment
CN102262554B (en) Method and device for saving storage space during upgrading software, and set top box
CN102141921A (en) Method for upgrading system of terminal equipment and terminal equipment
CN100487648C (en) File update system and boot management system of mobile communication terminal,and its method
CN103793256A (en) Method for management of memory cards, and electronic device
CN108170457A (en) Firmware upgrade method, device and VR head-mounted displays
CN108572830A (en) Upgrade method, the system of a kind of embedded system and its bootstrap
CN105573797A (en) Reversible off-line upgrade method and device for embedded system
US9122766B2 (en) Replacement time based caching for providing server-hosted content
CN108984198A (en) A kind of upgrade method and device of android system
CN102760131A (en) Exhibition method and system of network album
CN109582402A (en) page display method and device
CN102137154A (en) Method and device for upgrading customer premise equipment (CPE)
CN106126113B (en) A kind of method of home gateway service data classification storage management
CN108139955A (en) For providing the system and method for the Wrong control independently of operating system in computing device
CN102609290A (en) Software updating method for electronic product
CN103336698B (en) A kind of method of wifi equipment software upgrading and wifi equipment and system
CN103533534B (en) Firmware wireless upgrading method for DECT (Digital Enhanced Cordless Telecommunications) mobile phone
CN106959906B (en) Information processing method, information processing device and electronic equipment
CN102156731B (en) Data storage method and device for flash memory
CN106161082A (en) The method to set up of server UUID, system and baseboard management controller
CN108572837A (en) Method for upgrading software, device, readable storage medium storing program for executing and computer equipment

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200403

Address after: 363000 Room 201, building 1, No. 23, Shengli East Road, Xiangcheng District, Zhangzhou City, Fujian Province

Patentee after: Zhangzhou Haiyin Intelligent Information Technology Co., Ltd

Address before: 363000 Fujian city of Zhangzhou Province Zhang Hua Road, No. 47

Patentee before: FUJIAN ERLING ELECTRONICS Co.,Ltd.