CN101996080B - Software upgrading method - Google Patents
Software upgrading method Download PDFInfo
- Publication number
- CN101996080B CN101996080B CN200910109320.XA CN200910109320A CN101996080B CN 101996080 B CN101996080 B CN 101996080B CN 200910109320 A CN200910109320 A CN 200910109320A CN 101996080 B CN101996080 B CN 101996080B
- Authority
- CN
- China
- Prior art keywords
- data
- software
- need protection
- size
- protection
- 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
Links
Landscapes
- Storage Device Security (AREA)
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
Technical field
The invention belongs to 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, Various Functions, and these electric video products have built-in program conventionally, by the operation of programmed control electronic product.But any product all can not be accomplished perfection, without any problem, often can find such-and-such problem, in order to address these problems, just need to process by upgrade software.In addition,, when product supplier is that product has increased new function, user can obtain these functions by upgrade software voluntarily.Although some also support software upgrade function of present electronic product, is but difficult to the significant data in the old edition software before upgrading to be protected, and conventionally directly by new data, legacy data is covered in the time of software upgrading.
Such as in electric video product, have such as the information such as GAMMA, white balance, these information are extremely important, because every machine all needs to use specific installation to debug to ensure that every machine reaches best display effect separately in the time dispatching from the factory.In addition, the data message that also has user to arrange, these data have reflected user's use habit.Present software upgrading function also can be accomplished part protection, if the position of these data in new edition software, number, structure etc. are consistent with old edition software, while upgrading, as long as retain this part data, upgrade and can not destroy these data.Situation is but more in order to solve some problem, or increase new function, unavoidably need to increase storage data, thereby change the memory location of legacy data, size is structure even, existing technical scheme is normally by legacy data full scale clearance and then write the data corresponding with new edition software, has so just caused the loss of significant data.
Therefore, be necessary to provide a kind of technical scheme, can realize electronic product upgrading time, the significant data needing 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 method of software upgrading, the destroyed problem of data in old edition software while being intended to solve in prior art the upgrading of electric video product software.
The present invention is achieved in that a kind of method of software upgrading, and described method comprises:
A, store the data that need protection in old edition software into temporary storage area, obtain the data that need protection in new edition software;
B, the data message of the data that need protection in the data message of the data that need protection in described old edition software and described new edition software is compared, according to comparative result, the data that need protection in described old edition software are carried out to adaptability revision, the amended deposit data that needs protection is arrived to 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, store the data that need protection in described old edition software into described temporary storage area, record the data message of the data that need protection in described old edition software;
A2, obtain the data that need protection in described new edition software, record the data message of the data that need protection in described new edition software.
Wherein step b specifically comprises:
B1, according to data No. ID or data name, by the data structure of the data that need protection in described old edition software item by item with described new edition software in the need protection data structure of data compare;
If both are different for b2, from described temporary storage area, read the data that need protection in described old edition software, according to the data structure of new edition software, it is modified, by amended deposit data to described temporary storage area.
Wherein after step b2, also comprise:
According to data No. ID or data name, by the size of data of the data that need protection in described old edition software item by item with described new edition software in the need protection size of data of data compare;
If both are different, from described temporary storage area, read the data that need protection in amended old edition software, according to the size of data of new edition software, it increased or delete, by increase or delete after deposit data to described temporary storage area.
Wherein step b also comprises:
According to data No. ID or data name, by the data that need protection in 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 are different, step c also comprises:
From described temporary storage area, read the data that need protection in described old edition software, according to depositing in the storer that reference position returned to described electric video product of the data that need protection in described new edition software.
Wherein step c specifically comprises:
C1, according to the data message in described new edition software, return in the NVRAM of described electric video product being kept in described temporary storage area the data that need protection after amendment.
Described data message comprises No. ID 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 described electric video product.
The present invention overcomes the deficiencies in the prior art, when the upgrading of electric video product software, first the data that need protection in old edition software are stored in to temporary storage area, then the data message needing protection in the data message of the data that need protection in new edition software and old edition software is compared, if there is one or multinomial inconsistent in both, according to the data message of the data that need protection in new edition software, the data that need protection in old edition software are carried out to adaptability revision, then according to the data message of new edition software, the amended data that need protection are returned in the storer of electric video product.When technical scheme provided by the invention is upgraded at electric video product software, can avoid the data that need protection in old edition software destroyed, can not limit again the upgrading to software simultaneously.
Brief description of the drawings
Fig. 1 is embodiment of the present invention process flow diagram.
Embodiment
Technical scheme provided by the invention is: when the upgrading of electric video product software, first the data that need protection in old edition software are stored in to temporary storage area, then the data message needing protection in the data message of the data that need protection in new edition software and old edition software is compared, if there is one or multinomial inconsistent in both, according to the data message of the data that need protection in new edition software, the data that need protection in old edition software are carried out to adaptability revision, then according to the data message of new edition software, the amended data that need protection are returned in the storer of electric video product.
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.
Related data in electric video product conventionally according to the regular centralized stores of certain structure on the fixing position of NVRAM (nonvolatile memory); according to this characteristic of data storage; can be to the data message of the data that need protection record in addition, as No. ID, data name, reference position, data structure and size of data etc.In the time carrying out software upgrading, first the data message of the data that need protection in old edition software is carried out to record, form the need protection data message table of data of old edition software as shown in Table 1, then the data that these needed protection leave temporary storage area in temporarily, in BUFFER (buffer zone); Then obtain the data that need protection in new edition software, the data message of the data that need protection in new edition software is carried out to record, form the need protection data message table of data of new edition software as shown in Table 2; Again the data message of the data that need protection in the data message of the data that need protection in new edition software and old edition software is compared, relatively time, can compare item by item with data name according to data No. ID.Need protection the data message of data as example taking the new edition software shown in data message and the table two of data that needs protection of the old edition software shown in table one, there are following several situations in comparative result:
No. ID | 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
No. ID | Data name | Reference position | Data structure | Size of data |
1 | “GAMMA” | 0x2006 | NULL | 255 |
2 | “CHANNEL?TABLE” | 0x3000 | INT[100][4] | 400=100*4 |
3 | “CHANNEL?INFO” | 0x4000 | INT[125][3] | 375=125*3 |
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 the operation 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 in NVRAM originally in, but due to software upgrading, the memory location of Gamma information after software upgrading become 0x2006, so just original Gamma information data must be left in the interval starting from 0x2006 position, like this, in old edition software, the data structure of Gamma information and size of data do not need to change, only need to be in the data of temporary storage area be returned to NVRAM time, the interval starting from 0x2006 starts storage,
2, data structure is inconsistent; For example old edition software mid band table (CHANNEL TABLE) packets of information is containing channel, frequency, S-SYSTEM, one has 100 channels, the data structure of channel data is exactly INT[100 like this] [3], indicate 100 channels, each channel has 3 data messages, and the storage data that for example 1 channel is corresponding are 0x01 (channel), 0x2450 (frequency of 1 channel), 0x01 (S-SYSTEM of 1 channel is PAL-system); And channel information in 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], indicate 100 channels, each channel has 4 data messages.Therefore, need to from temporary storage area, read the channel table information of old edition software, and this information is carried out to adaptability revision, increase data in the relevant position of legacy data, increase data from the data in new edition software, system will be according to new edition software data structure, be assigned to its corresponding default value, for example beautiful sound has MONO and two kinds of values of STEREO, wherein MONO is default value, so improved channel table information is 0x01 (channel), 0x2450 (frequency of 1 channel), 0x01 (S-SYSTEM of 1 channel is PAL-system), (the beautiful sound standard of 1 channel is MONO to 0x00, this is default value).In like manner, if reduced data in new edition software, just data corresponding in old edition software need to be deleted, then store amended channel table information into temporary storage area;
3, size of data is inconsistent; As there being 100 channels (CHANNEL INFO) in old edition software, new edition software extensions is 125 channels.Therefore, need to from temporary storage area, read the channel information of old edition software, and this information is carried out to adaptability revision, and the channel information that increases by 25 channels below of 100 channel datas in original channel information, the channel information of increase derives from the data in new edition software.In like manner, in the time that data bulk reduces, just the data of correspondence position need to be deleted.Then store amended channel information into temporary storage area.
If all there is variation according to data structure and size of data in new edition software in same item number, can be according to flow process above, first according to the data structure of new edition software, this item number certificate is carried out to adaptations, then according to the size of data of new edition software, this item number certificate is increased or deletion action, then store amended data into temporary storage area.
The data that need protection in data and new edition software when needing protection in old edition software compare item by item; and after carrying out adaptability revision according to comparative result; amended data all leave temporary storage area in; now can be according to the data message in new edition software; as No. ID of the data that need protection, data name, reference position, data structure and size of data; data after the amendment being kept in temporary storage area are returned in the NVRAM of electric video product, thereby realize data protection.Wherein, depositing the altered data of reference position deposits according to the reference position defining in new edition software data information.
Embodiment of the present invention process flow diagram as shown in Figure 1, specifically comprise following step (taking an item number certificate relatively as example):
1, first store the data that need protection in old edition software into temporary storage area, record its data message;
2, obtain the data that need protection in new edition software, record its data message;
3, the data message of the data that need protection in the data message of the data that need protection in old edition software and new edition software is compared;
4, the reference position that comparing data is deposited, is reference position inconsistent? if so, go to step 5, otherwise go to step 6;
5, this item number certificate is not changed, go to step 6;
6, comparing data structure, is data structure inconsistent? if so, go to step 7, otherwise go to step 10;
7, from temporary storage area, read the data that need protection in the old edition software of storage, according to the data structure of new edition software, it modified, by amended deposit data to temporary storage area;
8, step 7 to be revised to size of data in the size of data of rear data and new edition software and compared, is size of data inconsistent? if so, go to step 9, otherwise go to step 12;
9, the amended data of read step 7 from temporary storage area, increase it according to the size of data of new edition software or delete, and the deposit data by increase or after deleting, to temporary storage area, goes to step 12;
10, the size of data in the size of data of this item number certificate in old edition software and new edition software is compared, size of data is inconsistent, if so, goes to step 11, otherwise goes to step 13;
11, from temporary storage area, read the data that need protection in old edition software, according to the size of data of new edition software, it increased or delete, the deposit data by increase or after deleting is to temporary storage area;
12, according to the data message in new edition software, as No. ID of the data that need protection, data name, reference position, data structure and size of data, return in the NVRAM of electric video product being kept at the data that need protection after amendment in temporary storage area.
13, read the data that need protection old edition software from temporary storage area, returned to according to the data message in new edition software in the NVRAM of electric video product.
In the embodiment of the present invention; the data that need protection can be the user data that user arranges according to the needs of oneself in the use procedure of electric video product; also can be the data such as GAMMA, white balance; these data are the data that form after electric video product is debugged separately for every product in the time dispatching from the factory, and can certainly be other data that need protection.Electric video product can be televisor etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments 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 (5)
1. a method for software upgrading, described method comprises:
A, store the data that need protection in old edition software into temporary storage area, obtain the data that need protection in new edition software;
B, the corresponding reference position of data that needs protection in the reference position of the data that need protection in described old edition software and described new edition software is compared after, judge that whether the data structure of the data that need protection in legacy version software consistent with the corresponding data structure of data that needs protection in redaction;
In the time that described data structure is consistent, whether the size of data of the data that need protection in older version software is consistent with the corresponding size of data of data that needs protection in redaction, and in the time that the two size of data is consistent, according to the data message in new version software, the data that need protection in legacy version software are returned in nonvolatile memory; In the time that the two size of data is inconsistent, from temporary storage area, read the data that need protection in legacy version software, according to the size of data of new version software, it increased or delete, and by increase or delete after deposit data behind temporary storage area, execution step c;
In the time that described data structure is inconsistent, from scratchpad area (SPA), read the data that need protection in the legacy version software of storage, after the data structure of the data that need protection in legacy version software being modified according to the data structure in new version software, whether the size of data that judges the data that need protection in legacy version software is consistent with the corresponding size of data of data that needs protection in redaction, and in the time that the two size of data is inconsistent, from temporary storage area, read the data that need protection after Update Table structure in legacy version software, according to the size of data of new version software, it increased or delete, and by increase or delete after deposit data behind temporary storage area, execution step c, in the time that the two size of data is consistent, directly perform step c,
C, according to the data ID in described new edition software number, data name, reference position, data structure and size of data, will be kept at the amended data that need protection in described temporary storage area and return in nonvolatile memory.
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, store the data that need protection in described old edition software into described temporary storage area, record the data message of the data that need protection in described old edition software;
A2, obtain the data that need protection in described new edition software, record the data message of the data that need protection in described new edition software.
4. method according to claim 1, is characterized in that, described nonvolatile memory is NVRAM.
5. method according to claim 1, is characterized in that, described in the data that need protection be user setup data in electric video product.
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 CN101996080A (en) | 2011-03-30 |
CN101996080B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Citations (2)
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 |
CN1818867A (en) * | 2006-03-24 | 2006-08-16 | 清华大学 | On-line software updating method of implantation medical equipment |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060041881A1 (en) * | 2004-08-19 | 2006-02-23 | Adkasthala Bheema P | Universal upgrade architecture |
CN101178660A (en) * | 2007-04-28 | 2008-05-14 | 四川长虹电器股份有限公司 | Memory data automatic update method |
-
2009
- 2009-08-14 CN CN200910109320.XA patent/CN101996080B/en not_active Expired - Fee Related
Patent Citations (2)
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 |
CN1818867A (en) * | 2006-03-24 | 2006-08-16 | 清华大学 | On-line software updating method of implantation medical equipment |
Also Published As
Publication number | Publication date |
---|---|
CN101996080A (en) | 2011-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100383793C (en) | Method and system for realizing update data in real time data bank | |
KR20200146006A (en) | Method, apparatus, device and storage medium for upgrading application | |
CN104899257B (en) | Data-updating method and device in Distributed Data Warehouse | |
CN104391725A (en) | Page display method and page display device | |
US20140067879A1 (en) | Application management for a terminal | |
CN102436473A (en) | Menu management device and menu management method | |
CN103250108A (en) | Project data creation device and programmable display unit | |
CN102393860A (en) | Database data migration system | |
CN107704573A (en) | A kind of intelligent buffer method coupled with business | |
CN101996080B (en) | Software upgrading method | |
CN103902562A (en) | Method and device for upgrading terminal databases | |
CN114610341A (en) | Production line flashing method and device, electronic equipment, chip and storage medium | |
CN100464299C (en) | Method for updating computer software | |
CN102317942B (en) | Methods and devices for generating theme's properties | |
CN105045912A (en) | Relational database data distribution method | |
CN109933345B (en) | Undisturbed downloading method and related device for controller | |
US7979477B2 (en) | Placeholder control for updating database object | |
US6738791B2 (en) | Data synchronizing device | |
US20210255998A1 (en) | Method for object management using trace identifier, apparatus for the same, computer program for the same, and recording medium storing computer program thereof | |
CN102156631B (en) | Method and system for managing indicator in programming language | |
CN114331391A (en) | Workflow synchronous updating method and workflow synchronous updating system based on global state updating | |
JP6196848B2 (en) | Information processing apparatus, information processing method, and program | |
CN114077587A (en) | Rule engine based business processing method, rule engine, medium and device | |
CN106293801A (en) | Mobile terminal and data updating method, system and upgrading data generating device | |
CN102541878A (en) | Method and device for storing project file in non-linear editing |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20141126 Termination date: 20200814 |