CN102779081A - Method and device for safe updating of electric device system - Google Patents

Method and device for safe updating of electric device system Download PDF

Info

Publication number
CN102779081A
CN102779081A CN2012102315562A CN201210231556A CN102779081A CN 102779081 A CN102779081 A CN 102779081A CN 2012102315562 A CN2012102315562 A CN 2012102315562A CN 201210231556 A CN201210231556 A CN 201210231556A CN 102779081 A CN102779081 A CN 102779081A
Authority
CN
China
Prior art keywords
data
backup
call
electronic apparatus
correct
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.)
Pending
Application number
CN2012102315562A
Other languages
Chinese (zh)
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 SDMC Technology Co Ltd
Original Assignee
Shenzhen SDMC 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 SDMC Technology Co Ltd filed Critical Shenzhen SDMC Technology Co Ltd
Priority to CN2012102315562A priority Critical patent/CN102779081A/en
Publication of CN102779081A publication Critical patent/CN102779081A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a device for safe updating of an electric device system. The method includes the following steps: selecting main data for updating data of an electric device system, modifying judgment identification fields representing data correctness according to updating condition, enabling the data to comprise main data and back-up data, judging whether the data are correct or not according to the judgment identification fields when data calling is required and calling the back-up data otherwise. The method and the device enable an electric device to be restored to the before-updating state when data updating fails, effectively avoids incapability to start or work caused by data updating failure of the electronic device and effectively avoids economical loss and inconvenience caused by data updating failure and brought to consumers and manufacturers.

Description

The method of electronic apparatus system security update and device
Technical field
The present invention relates to the electronic equipment data security, specially refer to a kind of method and device of electronic apparatus system security update.
Background technology
Follow the fast development of integrated circuit, software engineering; With TV, mobile phone is the also all quick entering intelligence epoch of consumption electronic product of representative; Smart mobile phone replaces conventional mobile phone becomes the market mainstream, and intelligent television, Web TV also replace the classic flat-plate TV becomes the home media recreation center.Above-mentioned intelligent electronic device the more important thing is to have rich functions software except calculated performance is improved significantly, can live to people, work, learn to bring great convenience.
Software in the intelligent electronic device is made up of three parts usually: start-up code file, intelligent operating system file, application software and data file.Above-mentioned file still can be preserved on the storer of information after all being stored in flash memory (FLASH), ROM (read-only memory) outages such as (ROM) usually.Actuating section (Bootloader) is responsible for starting outfit, carries out simple equipment state detection, is loaded smart machine operating system.Operating system is then taken over the administrative power of entire equipment after actuating section, various resources such as dispatch processor (CPU), internal memory, storer, and according to demand management, the various application software of load operating.The various resources that application software then uses operating system to distribute are specifically accomplished various careful services, such as playing movie and video programs and so on.
The start-up code function is the simplest on the smart machine, and the position on storer is more fixing, generally is 0 to begin to deposit (relevant with concrete processor) from the address.In start-up code, then can specify the information such as deposit position, storage length of intelligent operating system.The start-up code most important function is exactly that the code of intelligent operating system is begun to read internal memory (RAM) from the storage address of appointment, jumps to then and continues in the operating system code to carry out.The position is comparatively flexible on the operating system code flash memories, can in start-up code, set.Application software code and data are then more flexible, can use the parameter in the operating system to set.
Operating system is the core place of intelligent electronic device, and is very important.But the technology of intelligent operating system own is still fast-developing, is example with Android, almost annual all once more than big edition upgrading, small-scale upgrading then has tens times more than.The upgrading of operating system is very important for the improvement of the various services of equipment, function, and therefore, intelligent electronic device such as smart mobile phone, intelligent television are upgraded through regular meeting.The upgrading of equipment brush machine generally all is to cover the old code on the flash memories (FLASH) with new software code, and it mainly is exactly operating system code in the flash memories and an application software code (brush machine, brush firmware) in the refreshing a device.If but the upgrading of brush machine is more frequent, and basically all be after equipment is sold, independently to be carried out by the consumer, owing to lack relevant device and experience, practical risk is very big.Careless slightly, the code of storing in the equipment is made mistakes, and equipment conveniently becomes " the useless machine " that can not normally start, move, and need return factory or tear the machine maintenance open.
Summary of the invention
Fundamental purpose of the present invention is the method that a kind of electronic apparatus system security update is provided, and promotes the stability of electronic apparatus system.
The present invention proposes a kind of method of electronic apparatus system security update, comprises step:
When the data of electronic apparatus system are upgraded, select master data to upgrade, and revise the judgement identification field of representative data correctness according to new situation more; Said data comprise master data and Backup Data;
When needs carry out data call, whether correct according to the judgement identification field judgment data of master data; When master data is correct, call said master data; Otherwise, call said Backup Data.
Preferably, the said step of calling said Backup Data also comprises before:
Whether the judgement identification field judgment data according to Backup Data is correct; When Backup Data is correct, call said Backup Data; Otherwise, carry out error handling processing.
Preferably, said data are operating system code and/or application software code and data.
Preferably, also comprise before the said method:
Needs are carried out data updated back up, and respectively with master data and backup data store in different memory locations.
The present invention also proposes a kind of device of electronic apparatus system security update, comprising:
Data updating unit is used for when the data of electronic apparatus system are upgraded, and selects master data to upgrade, and revises the judgement identification field of representative data correctness according to new situation more; Said data comprise master data and Backup Data;
Whether the first data call unit is used for when needs carry out data call, correct according to the judgement identification field judgment data of master data; When master data is correct, call said master data; When master data is incorrect, call said Backup Data.
Preferably, said device also comprises:
Whether the second data call unit is used for according to the judgement identification field judgment data of Backup Data correct; When Backup Data is correct, call said Backup Data; When Backup Data is incorrect, carry out error handling processing.
Preferably, said data are operating system code and/or application software code and data.
Preferably, said device also comprises:
The data backup unit is used for that needs are carried out data updated and backs up, and respectively with master data and backup data store in different memory locations.
State before the present invention can let electronic equipment when Data Update is failed, return to Data Update effectively avoids the failure of electronic equipment Data Update the situation that can not start and work to occur; The economic loss and inconvenience of effectively avoiding Data Update to fail and bring to consumer, producer.
Description of drawings
Fig. 1 is a steps flow chart synoptic diagram among method one embodiment of electronic apparatus system security update of the present invention;
Fig. 2 is a data backup synoptic diagram among method one embodiment of electronic apparatus system security update of the present invention;
Fig. 3 is a steps flow chart synoptic diagram among another embodiment of method of electronic apparatus system security update of the present invention;
Fig. 4 is that operating system code calls synoptic diagram among another embodiment of method of electronic apparatus system security update of the present invention;
Fig. 5 is application software and a data call synoptic diagram among another embodiment of method of electronic apparatus system security update of the present invention;
Fig. 6 is a structural representation among device one embodiment of electronic apparatus system security update of the present invention;
Fig. 7 is another structural representation among device one embodiment of electronic apparatus system security update of the present invention;
Fig. 8 is a structural representation among another embodiment of device of electronic apparatus system security update of the present invention.
The realization of the object of the invention, functional characteristics and advantage will combine embodiment, further specify with reference to accompanying drawing.
Embodiment
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.
With reference to Fig. 1, the present invention proposes a kind of method one embodiment of electronic apparatus system security update.This method can comprise:
Step S11, when the data of electronic apparatus system are upgraded, select master data to upgrade, and revise the judgement identification field of representative data correctness according to new situation more; These data comprise master data and Backup Data;
Step S12, when needs carry out data call, whether correct according to the judgement identification field judgment data of master data; When master data is correct, carry out step S13; Otherwise, carry out step S14;
Step S13, call this master data;
Step S14, call this Backup Data.
Above-mentioned electronic equipment can comprise smart machines such as smart mobile phone, intelligent TV set.This electronic equipment generally includes three types of data: start-up code, intelligent operating system and application software and data.Above-mentioned needs carry out data updated and can be operating system code and/or application software code and data.Above-mentioned three types of data are stored in the flash memory (FLASH) with file/data mode in the electronic equipment, read operation in the internal memory (RAM) after the start.
In the present embodiment, also can carry out data updated and back up needs, and respectively with master data and backup data store in different memory locations.The aforesaid operations system code is provided with two parts, and portion is the master operating system code, and another part is the backup operation system code; Two parts of code content are the same, but the memory location is different.This application software and data also can be provided with two parts, and portion is main application software and data, and another part is backup, two parts of content unanimities, and the memory location is different.(with reference to Fig. 2)
The initial memory location of in start-up code, depositing, the memory length, also deposit the whether correct judgement identification field of these two parts of codes of sign except two parts of operating system codes.
Equally also be the initial memory location, memory length except two parts of application software and data in operating system code, also deposit the whether correct judgement identification field of this document.
When carrying out data call, the judgement identification field of at first calling data according to need judges whether these data are correct, and when judging that these data are correct, can carry out data call, the probability of makeing mistakes when effectively avoiding data call.
The method of above-mentioned electronic apparatus system security update can let electronic equipment when Data Update (such as the upgrading of brush machine) failure, return to the preceding state of Data Update, effectively avoids the failure of electronic equipment Data Update the situation that can not start and work to occur; The economic loss and inconvenience of effectively avoiding Data Update to fail and bring to consumer, producer.
With reference to Fig. 3, also comprise before the step S14:
Step S140, whether correct according to the judgement identification field judgment data of Backup Data; When Backup Data is correct, carry out step S14; Otherwise, carry out step S141;
Step S14, call this Backup Data;
Step S141, carry out error handling processing.
When carrying out the calling of Backup Data, also need carry out the judgement of data accuracy, specified data accurately after, can call.
With reference to Fig. 4 and Fig. 5, be respectively the synoptic diagram that calls of operating system code and application software and data, electronic apparatus system at first calls master operating system code or main application software and data, is judging that it calls after accurate; And when judging that it is inaccurate, call backup operation system code or application software and data, judging that it calls when accurate, judges and carries out error handling processing when it is inaccurate.
With reference to Fig. 6, device 20 1 embodiment of a kind of electronic apparatus system security update of the present invention are proposed.This device 20 can comprise: the data updating unit 21 and the first data call unit 22; This data updating unit 21 is used for when the data of electronic apparatus system are upgraded, and selects master data to upgrade, and revises the judgement identification field of representative data correctness according to new situation more; These data comprise master data and Backup Data; Whether this first data call unit 22 is used for when needs carry out data call, correct according to the judgement identification field judgment data of master data; When master data is correct, call this master data; When master data is incorrect, call this Backup Data.
Above-mentioned electronic equipment can comprise smart machines such as smart mobile phone, intelligent TV set.This electronic equipment generally includes three types of data: start-up code, intelligent operating system and application software and data.Above-mentioned needs carry out data updated and can be operating system code and/or application software code and data.Above-mentioned three types of data are stored in the flash memory (FLASH) with file/data mode in the electronic equipment, read operation in the internal memory (RAM) after the start.
With reference to Fig. 7, in the present embodiment, said apparatus 20 also can comprise: data backup unit 23, be used for that needs are carried out data updated and back up, and respectively with master data and backup data store in different memory locations.The aforesaid operations system code is provided with two parts, and portion is the master operating system code, and another part is the backup operation system code; Two parts of code content are the same, but the memory location is different.This application software and data also can be provided with two parts, and portion is main application software and data, and another part is backup, two parts of content unanimities, and the memory location is different.(with reference to Fig. 2)
The initial memory location of in start-up code, depositing, the memory length, also deposit the whether correct judgement identification field of these two parts of codes of sign except two parts of operating system codes.
Equally also be the initial memory location, memory length except two parts of application software and data in operating system code, also deposit the whether correct judgement identification field of this document.
When carrying out data call, the judgement identification field of at first calling data according to need judges whether these data are correct, and when judging that these data are correct, can carry out data call, the probability of makeing mistakes when effectively avoiding data call.
The device 20 of above-mentioned electronic apparatus system security update can let electronic equipment when Data Update (such as the upgrading of brush machine) failure, return to the preceding state of Data Update, effectively avoids the failure of electronic equipment Data Update the situation that can not start and work to occur; The economic loss and inconvenience of effectively avoiding Data Update to fail and bring to consumer, producer.
With reference to Fig. 8, said apparatus 20 also can comprise: whether the second data call unit 24 is used for according to the judgement identification field judgment data of Backup Data correct; When Backup Data is correct, call this Backup Data; When Backup Data is incorrect, carry out error handling processing.
When carrying out the calling of Backup Data, also need carry out the judgement of data accuracy, specified data accurately after, can call.
With reference to Fig. 4 and Fig. 5, be respectively the synoptic diagram that calls of operating system code and application software and data, electronic apparatus system at first calls master operating system code or main application software and data, is judging that it calls after accurate; And when judging that it is inaccurate, call backup operation system code or application software and data, judging that it calls when accurate, judges and carries out error handling processing when it is inaccurate.
The above is merely the preferred embodiments of the present invention; Be not so limit claim of the present invention; Every equivalent structure or equivalent flow process conversion that utilizes instructions of the present invention and accompanying drawing content to be done; Or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.

Claims (8)

1. the method for an electronic apparatus system security update is characterized in that, comprises step:
When the data of electronic apparatus system are upgraded, select master data to upgrade, and revise the judgement identification field of representative data correctness according to new situation more; Said data comprise master data and Backup Data;
When needs carry out data call, whether correct according to the judgement identification field judgment data of master data; When master data is correct, call said master data; Otherwise, call said Backup Data.
2. the method for electronic apparatus system security update according to claim 1 is characterized in that, the said step of calling said Backup Data also comprises before:
Whether the judgement identification field judgment data according to Backup Data is correct; When Backup Data is correct, call said Backup Data; Otherwise, carry out error handling processing.
3. the method for electronic apparatus system security update according to claim 1 and 2 is characterized in that, said data are operating system code and/or application software code and data.
4. the method for electronic apparatus system security update according to claim 1 and 2 is characterized in that, also comprises before the said method:
Needs are carried out data updated back up, and respectively with master data and backup data store in different memory locations.
5. the device of an electronic apparatus system security update is characterized in that, comprising:
Data updating unit is used for when the data of electronic apparatus system are upgraded, and selects master data to upgrade, and revises the judgement identification field of representative data correctness according to new situation more; Said data comprise master data and Backup Data;
Whether the first data call unit is used for when needs carry out data call, correct according to the judgement identification field judgment data of master data; When master data is correct, call said master data; When master data is incorrect, call said Backup Data.
6. the device of electronic apparatus system security update according to claim 5 is characterized in that, said device also comprises:
Whether the second data call unit is used for according to the judgement identification field judgment data of Backup Data correct; When Backup Data is correct, call said Backup Data; When Backup Data is incorrect, carry out error handling processing.
7. according to the device of claim 5 or 6 described electronic apparatus system security update, it is characterized in that said data are operating system code and/or application software code and data.
8. according to the device of claim 5 or 6 described electronic apparatus system security update, it is characterized in that said device also comprises:
The data backup unit is used for that needs are carried out data updated and backs up, and respectively with master data and backup data store in different memory locations.
CN2012102315562A 2012-07-05 2012-07-05 Method and device for safe updating of electric device system Pending CN102779081A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012102315562A CN102779081A (en) 2012-07-05 2012-07-05 Method and device for safe updating of electric device system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012102315562A CN102779081A (en) 2012-07-05 2012-07-05 Method and device for safe updating of electric device system

Publications (1)

Publication Number Publication Date
CN102779081A true CN102779081A (en) 2012-11-14

Family

ID=47124000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012102315562A Pending CN102779081A (en) 2012-07-05 2012-07-05 Method and device for safe updating of electric device system

Country Status (1)

Country Link
CN (1) CN102779081A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408153A (en) * 2018-11-01 2019-03-01 百度在线网络技术(北京)有限公司 Software start-up method and method for upgrading software

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050097544A1 (en) * 2003-10-31 2005-05-05 Samsung Electronics Co., Ltd. Mobile communication terminal having embedded system for software download and method for software download
CN101534343A (en) * 2009-04-21 2009-09-16 上海闻泰电子科技有限公司 Method for safely upgrading mobile phone firmware
CN101650662A (en) * 2009-08-26 2010-02-17 中兴通讯股份有限公司 Memory device of embedded system and staring method and upgrading of firmware
CN101739270A (en) * 2008-11-05 2010-06-16 英华达(上海)科技有限公司 Electronic device and system update method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050097544A1 (en) * 2003-10-31 2005-05-05 Samsung Electronics Co., Ltd. Mobile communication terminal having embedded system for software download and method for software download
CN101739270A (en) * 2008-11-05 2010-06-16 英华达(上海)科技有限公司 Electronic device and system update method thereof
CN101534343A (en) * 2009-04-21 2009-09-16 上海闻泰电子科技有限公司 Method for safely upgrading mobile phone firmware
CN101650662A (en) * 2009-08-26 2010-02-17 中兴通讯股份有限公司 Memory device of embedded system and staring method and upgrading of firmware

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408153A (en) * 2018-11-01 2019-03-01 百度在线网络技术(北京)有限公司 Software start-up method and method for upgrading software
CN109408153B (en) * 2018-11-01 2022-03-01 百度在线网络技术(北京)有限公司 Software starting method and software upgrading method

Similar Documents

Publication Publication Date Title
CN102650947B (en) Continuous increment over-the-air upgrade method of Android handheld equipment
US8423991B2 (en) Embedded network device and firmware upgrading method
CN102023881B (en) Method and device for upgrading software as well as embedded device
CN102360298B (en) Software upgrading method of terminal equipment
CN102110000A (en) Method, device and equipment for controlling software for auto-updating
CN101188516B (en) A highly reliable and self-adapted remote update method for network device software system
CN107333181A (en) Linux system intelligent television software upgrade method
CN102722394B (en) Start upgrading method of embedded equipment
CN104932955A (en) Method for backing up data during factory setting restoring of mobile terminal, and mobile terminal
CN103473067A (en) Embedded Linux partitioning and data recovery method, embedded Linux partitioning and data recovery system and system development method
CN104918114B (en) A kind of operating system update method and device
CN102830984A (en) Method for updating firmware, chip and communication terminal
CN103559065A (en) Method and system for OTA (Over-the-Air Technology) upgrade
CN102141921A (en) Method for upgrading system of terminal equipment and terminal equipment
CN101826026A (en) Embedded equipment and on-line updating system and method of firmware in embedded equipment
CN110673924B (en) Multi-architecture container cloud mirror image selection method, device, equipment and storage medium
CN102346673A (en) Method and device for upgrading mobile phone system
CN103458086A (en) Smart phone and fault detection method thereof
CN104657158A (en) Method and device for processing business in business system
CN103079108B (en) The method of starter motor top box and Set Top Box
CN109766140A (en) A kind of localization method and device that set-top box starting is abnormal
CN109002305B (en) Method and system for updating equipment program
CN108255735A (en) Associated environment test method, electronic device and computer readable storage medium
CN114780019A (en) Electronic device management method and device, electronic device and storage medium
CN108170456B (en) Firmware upgrading method and device for electronic 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
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20121114