CN101996080A - Software upgrading method - Google Patents

Software upgrading method Download PDF

Info

Publication number
CN101996080A
CN101996080A CN200910109320XA CN200910109320A CN101996080A CN 101996080 A CN101996080 A CN 101996080A CN 200910109320X A CN200910109320X A CN 200910109320XA CN 200910109320 A CN200910109320 A CN 200910109320A CN 101996080 A CN101996080 A CN 101996080A
Authority
CN
China
Prior art keywords
data
need protection
edition software
software
storage area
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
CN200910109320XA
Other languages
Chinese (zh)
Other versions
CN101996080B (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 TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN200910109320.XA priority Critical patent/CN101996080B/en
Publication of CN101996080A publication Critical patent/CN101996080A/en
Application granted granted Critical
Publication of CN101996080B publication Critical patent/CN101996080B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a software upgrading method, which is applicable to the technical field of electronic video products. The method comprises the following steps of: a. storing data required to be protected in old version software into a temporary storage region, and obtaining data required to be protected in new version software; b. comparing the data information of the data required to be protected in the old version software to the data information of the data required to be protected in the new version software, carrying out adaptation modification on the data required to be protected in the old version software according to the comparison results, and storing the modified data required to be protected into the temporary storing region; and c. restoring the modified data required to be protected into a memory of the electronic video product. The technical scheme provided by the invention can prevent the data required to be protected in the old version software from being damaged without limiting the software upgrading while upgrading the electronic video product software.

Description

A kind of software upgrade method
Technical field
The invention belongs to the electric video product technical field, relate in particular to a kind of method of electric video product software upgrading.
Background technology
Present electric video product category is various, and function is different, and these electric video products all have built-in program usually, by the operation of programmed control electronic product.But any product all can not be accomplished perfection, without any problem, finds such-and-such problem through regular meeting, in order to address these problems, just need handle by upgrade software.In addition, when product supplier is that product has increased new function, the user can obtain these functions by upgrade software voluntarily.Though some also support software upgrade function of present electronic product but is difficult to the significant data in the old edition software before upgrading is protected, and directly with new data legacy data is covered when software upgrading usually.
For example have such as information such as GAMMA, white balances in the electric video product, these information are extremely important, because every machine all needs to use specific installation to debug separately to guarantee that every machine reaches best display effect when dispatching from the factory.In addition, the data message that also has the user to be provided with, these data have reflected user's use habit.Present software upgrading function also can be accomplished part protection, if promptly the position of these data in new edition software, number, structure etc. are consistent with old edition software, as long as keep this part data, upgrade and can not destroy these data when then upgrading.Situation but more is in order to solve some problem, or increase new function, unavoidably need to increase the storage data, thereby change the memory location of legacy data, size even structure, existing technical scheme is normally with the legacy data full scale clearance and then write the data corresponding with new edition software, has so just caused losing of significant data.
Therefore, be necessary to provide a kind of technical scheme, in the time of can realizing the electronic product upgrading significant data that needs protection protected, avoid these data that need protection destroyed.
Summary of the invention
The object of the present invention is to provide a kind of software upgrade method, the ruined problem of data in the old edition software when being intended to solve in the prior art upgrading of electric video product software.
The present invention is achieved in that a kind of software upgrade method, and described method comprises:
A, will need protection data storage to the temporary storage area in the old edition software, obtain the data that need protection in the new edition software;
B, the data message of the data that need protection in the data message of the data that need protection in the described old edition software and the described new edition software is compared, according to comparative result the data that need protection in the described old edition software are carried out adaptability revision, the amended deposit data that needs protection is arrived described temporary storage area;
C, the described amended data that need protection are returned in the storer of described electric video product.
Described temporary storage area is buffer zone BUFFER.
Wherein step a specifically comprises:
A1, with the data storage that needs protection in the described old edition software to described temporary storage area, write down the data message of the data that need protection in the described old edition software;
A2, obtain the data that need protection in the described new edition software, write down the data message of the data that need protection in the described new edition software.
Wherein step b specifically comprises:
B1, according to ID number or data name of data, with the data structure of the data that need protection in the described old edition software item by item with described new edition software in the need protection data structure of data compare;
If both differences of b2 read the data that need protection in the described old edition software from described temporary storage area, according to the new edition data structure of software it is made amendment, amended deposit data is arrived described temporary storage area.
Wherein also comprise after the step b2:
According to ID number or data name of data, with the size of data of the data that need protection in the described old edition software item by item with described new edition software in the need protection size of data of data compare;
If both differences read the data that need protection in the amended old edition software from described temporary storage area, it increased or delete according to the size of data of new edition software, with increase or deletion after deposit data to described temporary storage area.
Wherein step b also comprises:
According to ID number or data name of data, with the data that need protection in the described old edition software deposit reference position item by item with described new edition software in the need protection reference position of depositing of data compare; If both differences, then step c also comprises:
From described temporary storage area, read the data that need protection in the described old edition software, it is returned in the storer of described electric video product according to the reference position of depositing of the data that need protection in the described new edition software.
Wherein step c specifically comprises:
C1, according to the data message in the described new edition software, return among the NVRAM of described electric video product being kept in the described temporary storage area data that need protection after revising.
Described data message comprises ID number of data, data name, reference position, data structure and size of data.
The storer of described electric video product is nonvolatile memory NVRAM.
The described data that need protection are user setup data in the described electric video product.
The present invention overcomes the deficiencies in the prior art; during the upgrading of electric video product software; at first with the data storage that needs protection in the old edition software in the temporary storage area; then the data message that needs protection in the data message of the data that need protection in the new edition software and the old edition software is compared; if there is one or multinomial inconsistent among both; then the data message according to the data that need protection in the new edition software carries out adaptability revision to the data that need protection in the old edition software, and the data message according to new edition software returns to the amended data that need protection in the storer of electric video product then.When technical scheme provided by the invention is upgraded at the electric video product software, can avoid the data that need protection in the old edition software destroyed, can not limit upgrading simultaneously again software.
Description of drawings
Fig. 1 is an embodiment of the invention process flow diagram.
Embodiment
Technical scheme provided by the invention is: during the upgrading of electric video product software; at first with the data storage that needs protection in the old edition software in the temporary storage area; then the data message that needs protection in the data message of the data that need protection in the new edition software and the old edition software is compared; if there is one or multinomial inconsistent among both; then the data message according to the data that need protection in the new edition software carries out adaptability revision to the data that need protection in the old edition software, and the data message according to new edition software returns to the amended data that need protection in the storer of electric video product then.
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.
Related data in the electric video product usually according to certain structure clocklike centralized stores on the fixing position of NVRAM (nonvolatile memory); this characteristic according to data storage; can be to the data message of the data that need protection record in addition, as ID number, data name, reference position, data structure and size of data etc.When carrying out software upgrading, at first the data message to the data that need protection in the old edition software carries out record, form the need protection data message table of data of as shown in Table 1 old edition software, the data that then these needed protection leave the temporary storage area in temporarily, in BUFFER (buffer zone); Obtain the data that need protection in the new edition software then, the data message of the data that need protection in the new edition software is carried out record, form the need protection data message table of data of as shown in Table 2 new edition software; Data message with the data that need protection in the data message of the data that need protection in the new edition software and the old edition software compares again, can compare item by item according to ID number of data and data name in the time of relatively.With the need protection data message of data of the data message of data and the new edition software shown in the table two that needs protection of the old edition software shown in the table one is example, and there are following several situations in comparative result:
ID number Data name Reference position Data structure Size of data
1 “GAMMA” 0x2000 NULL ?255
2 “CHANNEL?TABLE” 0x3000 INT[100][3] ?300=100*3
3 “CHANNEL?INFO” 0x4000 INT[100][3] ?300=100*3
The need protection data message table of data of table one old edition software
Figure B200910109320XD0000051
The need protection data message table of data of table two new edition software
1, the reference position of deposit data is inconsistent; Show that new edition software has carried out operations such as increase or deletion on legacy data, caused not is that the memory location of all data in new edition software is consistent with the memory location in old edition software, for example Gamma information left the 0x2000 position among the NVRAM originally in, but because software upgrading, the memory location of Gamma information after software upgrading become 0x2006, so original Gamma information data must be left in the interval that begins from the 0x2006 position, like this, the data structure of Gamma information and size of data do not need to change in the old edition software, in the time of only need returning among the NVRAM in data, begin storage from the interval that 0x2006 begins with the temporary storage area;
2, data structure is inconsistent; For example old edition software mid band table (CHANNEL TABLE) information comprises channel, frequency, S-SYSTEM, one has 100 channels, the data structure of channel data is exactly INT[100 like this] [3], expression has 100 channels, each channel has 3 data messages, and for example the storage data of 1 channel correspondence are 0x01 (channel), 0x2450 (frequency of 1 channel), 0x01 (S-SYSTEM of 1 channel is a PAL-system); And the channel information in the new edition software has increased data: beautiful sound standard, channel information becomes channel, frequency, S-SYSTEM like this, beautiful sound standard, new data structure is exactly INT[100] [4], expression has 100 channels, and each channel has 4 data messages.Therefore, need from the temporary storage area, read the channel table information of old edition software, and this information carried out adaptability revision, promptly increase data in the relevant position of legacy data, the data in the new edition software that increase, system will be according to the new edition software data structure, compose and give its corresponding default value, for example beautiful sound has MONO and two kinds of values of STEREO, wherein MONO is a default value, so improved channel table information is 0x01 (channel), 0x2450 (frequency of 1 channel), 0x01 (S-SYSTEM of 1 channel is a PAL-system), 0x00 (the beautiful sound standard of 1 channel is MONO, and this is a default value).In like manner, if reduced data in the new edition software, just data deletion corresponding in the old edition software need be arrived the temporary storage area with amended channel table information stores then;
3, size of data is inconsistent; As 100 channels (CHANNEL INFO) are arranged in the old edition software, the new edition software extensions is 125 channels.Therefore, need from the temporary storage area, read the channel information of old edition software, and this information carried out adaptability revision, and the back of 100 channel datas increases the channel information of 25 channels in original channel information, and the channel information of increase derives from the data in the new edition software.In like manner, when data bulk reduces, just data of corresponding positions need be deleted.Store amended channel information into temporary storage area then.
If variation has all taken place according to data structure and the size of data in new edition software in same item number, then can be according to top flow process, at first this item number certificate is carried out adaptations according to the new edition data structure of software, size of data according to new edition software increases or deletion action this item number certificate then, then amended data storage is arrived the temporary storage area.
The data that need protection in need protection in the old edition software data and new edition software compare item by item; and carry out after the adaptability revision according to comparative result; amended data all leave the temporary storage area in; this moment can be according to the data message in the new edition software; as the ID of the data that need protection number, data name, reference position, data structure and size of data; data after the modification that is kept in the temporary storage area are returned among the NVRAM of electric video product, thereby realize data protection.Wherein, depositing the altered data of reference position deposits according to the reference position that defines in the new edition software data information.
Embodiment of the invention process flow diagram specifically comprises following step (relatively is example with an item number certificate) as shown in Figure 1:
1, at first will need protection data storage to the temporary storage area in the old edition software, write down its data message;
2, obtain the data that need protection in the new edition software, write down its data message;
3, the data message with the data that need protection in the data message of the data that need protection in the old edition software and the new edition software compares;
4, the reference position deposited of comparing data, is reference position inconsistent? if change step 5, otherwise change step 6;
5, this item number certificate is not changed, change step 6;
6, comparing data structure, is data structure inconsistent? if change step 7, otherwise change step 10;
7, from the temporary storage area, read the data that need protection in the old edition software of storage, it made amendment according to the new edition data structure of software, with amended deposit data to the temporary storage area;
8, step 7 is revised size of data compares in the size of data of back data and the new edition software, is size of data inconsistent? if change step 9, otherwise change step 12;
9, read step 7 amended data from the temporary storage area increase it or delete according to the size of data of new edition software, with increase or deletion after deposit data to the temporary storage area, change step 12;
10, the size of data of this item number certificate in the old edition software and the size of data in the new edition software are compared, size of data is inconsistent, if change step 11, otherwise change step 13;
11, from the temporary storage area, read the data that need protection in the old edition software, it is increased or delete according to the size of data of new edition software, with increase or deletion after deposit data to the temporary storage area;
12, according to the data message in the new edition software, as the ID of the data that need protection number, data name, reference position, data structure and size of data, return among the NVRAM of electric video product being kept at the data that need protection after revising in the temporary storage area.
13, read the data that need protection the old edition software from the temporary storage area, it is returned among the NVRAM of electric video product according to the data message in the new edition software.
In the embodiment of the invention; the data that need protection can be the user data that the needs of user's basis oneself in the use of electric video product are provided with; also can be data such as GAMMA, white balance; these data are that the electric video product is debugged the data that the back forms separately at every product when dispatching from the factory, and can certainly be other data that need protection.The electric video product can be a televisor etc.
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. software upgrade method, described method comprises:
A, will need protection data storage to the temporary storage area in the old edition software, obtain the data that need protection in the new edition software;
B, the data message of the data that need protection in the data message of the data that need protection in the described old edition software and the described new edition software is compared, according to comparative result the data that need protection in the described old edition software are carried out adaptability revision, the amended deposit data that needs protection is arrived described temporary storage area;
C, the described amended data that need protection are returned in the storer of described electric video product.
2. method according to claim 1 is characterized in that, described temporary storage area is buffer zone BUFFER.
3. method according to claim 1 is characterized in that, wherein step a specifically comprises:
A1, with the data storage that needs protection in the described old edition software to described temporary storage area, write down the data message of the data that need protection in the described old edition software;
A2, obtain the data that need protection in the described new edition software, write down the data message of the data that need protection in the described new edition software.
4. method according to claim 1 is characterized in that, wherein step b specifically comprises:
B1, according to ID number or data name of data, with the data structure of the data that need protection in the described old edition software item by item with described new edition software in the need protection data structure of data compare;
If both differences of b2 read the data that need protection in the described old edition software from described temporary storage area, according to the new edition data structure of software it is made amendment, amended deposit data is arrived described temporary storage area.
5. method according to claim 4 is characterized in that, wherein also comprises after the step b2:
According to ID number or data name of data, with the size of data of the data that need protection in the described old edition software item by item with described new edition software in the need protection size of data of data compare;
If both differences read the data that need protection in the amended old edition software from described temporary storage area, it increased or delete according to the size of data of new edition software, with increase or deletion after deposit data to described temporary storage area.
6. method according to claim 4 is characterized in that, wherein step b also comprises:
According to ID number or data name of data, with the data that need protection in the described old edition software deposit reference position item by item with described new edition software in the need protection reference position of depositing of data compare; If both differences, then step c also comprises:
From described temporary storage area, read the data that need protection in the described old edition software, it is returned in the storer of described electric video product according to the reference position of depositing of the data that need protection in the described new edition software.
7. method according to claim 1 is characterized in that, wherein step c specifically comprises:
C1, according to the data message in the described new edition software, return among the NVRAM of described electric video product being kept in the described temporary storage area data that need protection after revising.
8. method according to claim 7 is characterized in that, described data message comprises ID number of data, data name, reference position, data structure and size of data.
9. method according to claim 1 is characterized in that, the storer of described electric video product is nonvolatile memory NVRAM.
10. method according to claim 1 is characterized in that, the described data that need protection are user setup data in the described electric video product.
CN200910109320.XA 2009-08-14 2009-08-14 Software upgrading method Expired - Fee Related CN101996080B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910109320.XA CN101996080B (en) 2009-08-14 2009-08-14 Software upgrading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910109320.XA CN101996080B (en) 2009-08-14 2009-08-14 Software upgrading method

Publications (2)

Publication Number Publication Date
CN101996080A true CN101996080A (en) 2011-03-30
CN101996080B CN101996080B (en) 2014-11-26

Family

ID=43786268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910109320.XA Expired - Fee Related CN101996080B (en) 2009-08-14 2009-08-14 Software upgrading method

Country Status (1)

Country Link
CN (1) CN101996080B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183459A (en) * 2015-08-14 2015-12-23 无锡天脉聚源传媒科技有限公司 Data modification method and apparatus
CN105744366A (en) * 2016-02-22 2016-07-06 深圳创维数字技术有限公司 Data configuration sharing method and system of set top box

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1570878A (en) * 2003-07-11 2005-01-26 上海广电(集团)有限公司中央研究院 Method for upgrading software of information household electrical appliance and method for encoding and decoding upgrading data
US20060041881A1 (en) * 2004-08-19 2006-02-23 Adkasthala Bheema P Universal upgrade architecture
CN1818867A (en) * 2006-03-24 2006-08-16 清华大学 On-line software updating method of implantation medical equipment
CN101178660A (en) * 2007-04-28 2008-05-14 四川长虹电器股份有限公司 Memory data automatic update method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1570878A (en) * 2003-07-11 2005-01-26 上海广电(集团)有限公司中央研究院 Method for upgrading software of information household electrical appliance and method for encoding and decoding upgrading data
US20060041881A1 (en) * 2004-08-19 2006-02-23 Adkasthala Bheema P Universal upgrade architecture
CN1818867A (en) * 2006-03-24 2006-08-16 清华大学 On-line software updating method of implantation medical equipment
CN101178660A (en) * 2007-04-28 2008-05-14 四川长虹电器股份有限公司 Memory data automatic update method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183459A (en) * 2015-08-14 2015-12-23 无锡天脉聚源传媒科技有限公司 Data modification method and apparatus
CN105183459B (en) * 2015-08-14 2018-08-24 无锡天脉聚源传媒科技有限公司 A kind of data modification method and device
CN105744366A (en) * 2016-02-22 2016-07-06 深圳创维数字技术有限公司 Data configuration sharing method and system of set top box
WO2017143962A1 (en) * 2016-02-22 2017-08-31 深圳创维数字技术有限公司 Set-top box data configuration sharing method and system

Also Published As

Publication number Publication date
CN101996080B (en) 2014-11-26

Similar Documents

Publication Publication Date Title
US10394880B2 (en) System, methods, and program product to trace content genealogy
CN100383793C (en) Method and system for realizing update data in real time data bank
CN104899257B (en) Data-updating method and device in Distributed Data Warehouse
CN103154950B (en) Repeated data deleting method and device
CN105447122A (en) Implementation method for autonomously creating file system based on multi-table association
CN102541927A (en) Method and device for realizing data cache
CN102331993A (en) Data migration method of distributed database and distributed database migration system
CN102043859A (en) Data updating method and device
CN102467525A (en) Document associating method and system
CN102393860A (en) Database data migration system
US20060253443A1 (en) Region-based security
CN107704573A (en) A kind of intelligent buffer method coupled with business
CN103577483A (en) Data storage method, data storage system, data access method and data access system
CN101996080B (en) Software upgrading method
CN104063636A (en) Role permission control method and system
CN101719131A (en) Method, device and system for processing report data
CN104102735A (en) File system optimizing method and file system optimizing device aiming at database files
CN102317942B (en) Methods and devices for generating theme's properties
CN101093450B (en) Mutual exclusion method for multiple CPUs
CN112364021B (en) Service data processing method, device and storage medium
US7979477B2 (en) Placeholder control for updating database object
CN105389128A (en) Solid state disk data storage method and storage controller
US10970332B2 (en) Electronic device and digital content managing method
CN109933345B (en) Undisturbed downloading method and related device for controller
CN101520869A (en) Business logic object modeling method and device thereof

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

Termination date: 20200814

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