CN106933641A - A kind of scm software is from upgrade method and system - Google Patents
A kind of scm software is from upgrade method and system Download PDFInfo
- Publication number
- CN106933641A CN106933641A CN201710342435.8A CN201710342435A CN106933641A CN 106933641 A CN106933641 A CN 106933641A CN 201710342435 A CN201710342435 A CN 201710342435A CN 106933641 A CN106933641 A CN 106933641A
- Authority
- CN
- China
- Prior art keywords
- program
- areas
- automatic
- software
- upgrading mark
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/654—Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of scm software from upgrade method, comprise the following steps:S1:The program initialization of boot areas;S2:Whether boot areas program is judged containing automatic upgrading mark, if containing automatic upgrading mark, performing software automatic updating program, and the automatic upgrading mark is removed after the completion of upgrading;If automatic upgrading mark is not contained, into step S3;S3:The program initialization of flash areas;S4:Whether flash areas program is judged containing automatic upgrading mark, if containing automatic upgrading mark, into step S2;If not containing automatic upgrading mark, the current control program in flash areas is performed.The invention also discloses a kind of scm software from upgrade-system.The software automatic updating function of intelligent appliance can be realized by system and method for the present invention, is conducive to the importing of software application New function and the reparation of software vulnerability.
Description
Technical field
The present invention relates to software upgrading technical field, a kind of master control monolithic based in domestic electric appliances controller is particularly related to
The software of machine is from upgrade method and system.
Background technology
Continued to develop with intelligentized, the continuous popularization of smart home, household electrical appliances intelligent development is also more and more faster.Just as
Present smart mobile phone, half a year even some months just has New function importing, nowadays household appliances function renewal also rapidly,
In order to adapt to the intelligentized development of household electrical appliances, now the function upgrading to product proposes requirement higher.
At present, the household electrical appliances of in the market are little to the product of support software automatic updating function, and very great household appliances manufacturer is all
Developing this function.Consider that new household appliances should all support software automatic updating work(from the follow-up development of smart home
Energy.
Therefore, the present inventor needs a kind of new technology of design badly to improve its problem.
The content of the invention
The present invention is intended to provide a kind of scm software is from upgrade method and system, its software that can realize intelligent appliance
Automatic upgrade function, is conducive to the importing of software application New function and the reparation of software vulnerability.
In order to solve the above technical problems, the technical scheme is that:
A kind of scm software comprises the following steps from upgrade method:
S1:The program initialization of boot areas;
S2:Whether boot areas program is judged containing automatic upgrading mark, if containing automatic upgrading mark, performing software
Auto-upgrade program, and the automatic upgrading mark is removed after the completion of upgrading;If not containing automatic upgrading mark, enter step
Rapid S3;
S3:The program initialization of flash areas;
S4:Whether flash areas program is judged containing automatic upgrading mark, if containing automatic upgrading mark, entering step
Rapid S2;If not containing automatic upgrading mark, the current control program in flash areas is performed.
Preferably, also including step S0:
SCM program memory is divided into boot areas and flash areas, wherein software automatic updating program is placed on boot
Area, control program is placed on flash areas.
Preferably, the automatic upgrading is masked as automatic upgrade button signal.
A kind of scm software from upgrade-system, including:
First initialization module, for initializing boot areas program;
First judge module, for boot areas program of breaking whether containing automatic upgrading mark, if containing automatic upgrading mark
Will, then start the first performing module;If not containing automatic upgrading mark, start the second initialization module;
First performing module, for performing software automatic updating program, and removes the automatic liter after the completion of upgrading
Level mark;
Second initialization module, for initializing flash areas program;
Second judge module, for whether judging flash areas program containing automatic upgrading mark, if containing automatic upgrading
Mark, then drive first judge module;If not containing automatic upgrading mark, start the second performing module;
Second performing module, the control program current for performing flash areas.
Preferably, also include:
Division module, for SCM program memory to be divided into boot areas and flash areas;Wherein software automatic updating
Program is placed on boot areas, and control program is placed on flash areas.
Preferably, the automatic upgrading is masked as automatic upgrade button signal.
Using above-mentioned technical proposal, the present invention at least includes following beneficial effect:
Scm software of the present invention is applied to the software automatic updating work(of intelligent appliance from upgrade method and system
Can, be conducive to the importing of software application New function and the reparation of software vulnerability.
Brief description of the drawings
Fig. 1 is schematic diagram of the scm software of the present invention from upgrade method;
Fig. 2 is structural representation of the scm software of the present invention from upgrade-system.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Embodiment 1
As shown in figure 1, to meet a kind of scm software of the invention from upgrade method, comprising the following steps:
S1:The program initialization of boot areas;
S2:Whether boot areas program is judged containing automatic upgrading mark, if containing automatic upgrading mark, performing software
Auto-upgrade program, and the automatic upgrading mark is removed after the completion of upgrading;If not containing automatic upgrading mark, enter step
Rapid S3;
S3:The program initialization of flash areas;
S4:Whether flash areas program is judged containing automatic upgrading mark, if containing automatic upgrading mark, entering step
Rapid S2;If not containing automatic upgrading mark, the current control program in flash areas is performed.
Preferably, also including step S0:
SCM program memory is divided into boot areas and flash areas, wherein software automatic updating program is placed on boot
Area, control program is placed on flash areas.
Preferably, the automatic upgrading is masked as automatic upgrade button signal.For example:Risen automatically using hardware mode set
Level mark:Automatic upgrade button is reserved in wiring board, when main control singlechip detects automatic upgrade button presses signal, that is, is put
The automatic upgrading mark in position.Certainly other automatic upgrading marks are can also be, is such as upgraded automatically using the mode set of serial communication
Mark:Automatic upgrading flag bit is controlled with communication instruction.When we send upgrade command to main control singlechip, main control singlechip into
Work(receives instruction, is judged as that automatic upgrade command, i.e. set are upgraded mark automatically.Because it is specific, those skilled in the art are set
It is to be understood that event the present embodiment is not repeated this.
It is well known that the main control singlechip in domestic electric appliances controller quickly grows, flash (program storage) is also increasingly
Greatly, so we have enough program spaces that flash zonings are divided into two parts:Boot areas, flash areas.Wherein software is automatic
ROMPaq is placed on boot areas, and household electrical appliances primary control program is placed on flash areas.
When upper electric:Boot areas program is first carried out, judges whether automatic upgrading mark needs software upgrading, need to such as upgrade execution
Software upgrading function, upgrading removes software automatic updating mark after terminating, and then jumps to the master control after flash areas perform upgrading
Program, it is not necessary to which software upgrading then jumps to the execution of flash areas.In energization:Software is performed in flash areas, real-time judge software
Automatic upgrading mark, if being connected to automatic upgrading mark in flash areas software implementation procedure, software jumps to boot areas and is held from newly
OK, software upgrade function, upgrading removes software automatic updating mark after terminating, and then jumps to flash areas and performs upgrading
Primary control program afterwards.
The present embodiment is applied to the software automatic updating function of intelligent appliance, be conducive to software application New function importing and
The reparation of software vulnerability.
Embodiment 2
A kind of scm software from upgrade-system, including:
First initialization module, for initializing boot areas program;
First judge module, for boot areas program of breaking whether containing automatic upgrading mark, if containing automatic upgrading mark
Will, then start the first performing module;If not containing automatic upgrading mark, start the second initialization module;
First performing module, for performing software automatic updating program, and removes the automatic liter after the completion of upgrading
Level mark;
Second initialization module, for initializing flash areas program;
Second judge module, for whether judging flash areas program containing automatic upgrading mark, if containing automatic upgrading
Mark, then drive first judge module;If not containing automatic upgrading mark, start the second performing module;
Second performing module, the control program current for performing flash areas.
Preferably, also include:
Division module, for SCM program memory to be divided into boot areas and flash areas;Wherein software automatic updating
Program is placed on boot areas, and control program is placed on flash areas.
Preferably, the automatic upgrading is masked as automatic upgrade button signal.For example:Risen automatically using hardware mode set
Level mark:Automatic upgrade button is reserved in wiring board, when main control singlechip detects automatic upgrade button presses signal, that is, is put
The automatic upgrading mark in position.Certainly other automatic upgrading marks are can also be, is such as upgraded automatically using the mode set of serial communication
Mark:Automatic upgrading flag bit is controlled with communication instruction.When we send upgrade command to main control singlechip, main control singlechip into
Work(receives instruction, is judged as that automatic upgrade command, i.e. set are upgraded mark automatically.Because it is specific, those skilled in the art are set
It is to be understood that event the present embodiment is not repeated this.
It is well known that the main control singlechip in domestic electric appliances controller quickly grows, flash (program storage) is also increasingly
Greatly, so we have enough program spaces that flash zonings are divided into two parts:Boot areas, flash areas.Wherein software is automatic
ROMPaq is placed on boot areas, and household electrical appliances primary control program is placed on flash areas.
When upper electric:Boot areas program is first carried out, judges whether automatic upgrading mark needs software upgrading, need to such as upgrade execution
Software upgrading function, upgrading removes software automatic updating mark after terminating, and then jumps to the master control after flash areas perform upgrading
Program, it is not necessary to which software upgrading then jumps to the execution of flash areas.In energization:Software is performed in flash areas, real-time judge software
Automatic upgrading mark, if being connected to automatic upgrading mark in flash areas software implementation procedure, software jumps to boot areas and is held from newly
OK, software upgrade function, upgrading removes software automatic updating mark after terminating, and then jumps to flash areas and performs upgrading
Primary control program afterwards.
The present embodiment is applied to the software automatic updating function of intelligent appliance, be conducive to software application New function importing and
The reparation of software vulnerability.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.And, the present invention can be used and wherein include the computer of computer usable program code at one or more
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) is produced
The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram are described.It should be understood that every first-class during flow chart and/or block diagram can be realized by computer program instructions
The combination of flow and/or square frame in journey and/or square frame and flow chart and/or block diagram.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices
The device of the function of being specified in present one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy
In determining the computer-readable memory that mode works so that instruction of the storage in the computer-readable memory is produced and include finger
Make the manufacture of device, the command device realize in one flow of flow chart or multiple one square frame of flow and/or block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described
Property concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to include excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Claims (6)
1. a kind of scm software is from upgrade method, it is characterised in that comprise the following steps:
S1:The program initialization of boot areas;
S2:Whether boot areas program is judged containing automatic upgrading mark, if containing automatic upgrading mark, performing software automatic
ROMPaq, and the automatic upgrading mark is removed after the completion of upgrading;If automatic upgrading mark is not contained, into step
S3;
S3:The program initialization of flash areas;
S4:Whether flash areas program is judged containing automatic upgrading mark, if containing automatic upgrading mark, into step S2;
If not containing automatic upgrading mark, the current control program in flash areas is performed.
2. scm software as claimed in claim 1 is from upgrade method, it is characterised in that also including step S0:
SCM program memory is divided into boot areas and flash areas, wherein software automatic updating program is placed on boot areas, controlled
Processing procedure sequence is placed on flash areas.
3. scm software as claimed in claim 1 or 2 is from upgrade method, it is characterised in that:The automatic upgrading is masked as
Automatic upgrade button signal.
4. a kind of scm software is from upgrade-system, it is characterised in that including:
First initialization module, for initializing boot areas program;
First judge module, for whether judging boot areas program containing automatic upgrading mark, if containing automatic upgrading mark,
Then start the first performing module;If not containing automatic upgrading mark, start the second initialization module;
First performing module, for performing software automatic updating program, and removes the automatic upgrading mark after the completion of upgrading
Will;
Second initialization module, for initializing flash areas program;
Second judge module, for whether judging flash areas program containing automatic upgrading mark, if containing automatic upgrading mark
Will, then drive first judge module;If not containing automatic upgrading mark, start the second performing module;
Second performing module, the control program current for performing flash areas.
5. scm software as claimed in claim 4 is from upgrade-system, it is characterised in that also include:
Division module, for SCM program memory to be divided into boot areas and flash areas;Wherein software automatic updating program
Boot areas are placed on, control program is placed on flash areas.
6. the scm software as described in claim 4 or 5 is from upgrade-system, it is characterised in that:The automatic upgrading is masked as
Automatic upgrade button signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710342435.8A CN106933641A (en) | 2017-05-16 | 2017-05-16 | A kind of scm software is from upgrade method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710342435.8A CN106933641A (en) | 2017-05-16 | 2017-05-16 | A kind of scm software is from upgrade method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106933641A true CN106933641A (en) | 2017-07-07 |
Family
ID=59430568
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710342435.8A Pending CN106933641A (en) | 2017-05-16 | 2017-05-16 | A kind of scm software is from upgrade method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106933641A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111459508A (en) * | 2020-03-27 | 2020-07-28 | 北京经纬恒润科技有限公司 | Boot L loader self-upgrading method and system |
CN111857785A (en) * | 2019-04-29 | 2020-10-30 | 深圳市优必选科技有限公司 | MCU starting method and device and terminal equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102104750A (en) * | 2009-12-22 | 2011-06-22 | 康佳集团股份有限公司 | Method for automatically upgrading network television |
CN102103509A (en) * | 2010-11-23 | 2011-06-22 | Tcl集团股份有限公司 | Method for remotely and automatically upgrading Internet television |
CN103186390A (en) * | 2011-12-29 | 2013-07-03 | ***通信集团公司 | Home gateway and software upgrading method thereof |
-
2017
- 2017-05-16 CN CN201710342435.8A patent/CN106933641A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102104750A (en) * | 2009-12-22 | 2011-06-22 | 康佳集团股份有限公司 | Method for automatically upgrading network television |
CN102103509A (en) * | 2010-11-23 | 2011-06-22 | Tcl集团股份有限公司 | Method for remotely and automatically upgrading Internet television |
CN103186390A (en) * | 2011-12-29 | 2013-07-03 | ***通信集团公司 | Home gateway and software upgrading method thereof |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111857785A (en) * | 2019-04-29 | 2020-10-30 | 深圳市优必选科技有限公司 | MCU starting method and device and terminal equipment |
CN111857785B (en) * | 2019-04-29 | 2023-06-09 | 深圳市优必选科技有限公司 | MCU starting method and device and terminal equipment |
CN111459508A (en) * | 2020-03-27 | 2020-07-28 | 北京经纬恒润科技有限公司 | Boot L loader self-upgrading method and system |
CN111459508B (en) * | 2020-03-27 | 2023-12-01 | 北京经纬恒润科技股份有限公司 | BootLoader self-upgrading method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106095480B (en) | A kind of method and device of optical module firmware upgrading | |
CN102063320B (en) | Work mode switching methods, USB (Universal Serial Bus) equipment and host machine equipment | |
CN102945173B (en) | User program online upgrade system and upgrade method | |
CN105094508A (en) | Method and apparatus for performing window control on application program of mobile terminal | |
CN105373407A (en) | DSP and FPGA online upgrading method for embedded system | |
CN108271150B (en) | Method and system for supporting simultaneous flashing or data clearing of multiple mobile phones | |
CN102722384A (en) | On-line upgrading method and upgrading system for optical module firmware | |
CN104111857A (en) | Method for automatically configuring parameters of multi-model BIOS | |
CN109358887A (en) | A kind of the online upgrading method, apparatus and system of SCM program | |
CN103905631B (en) | Mobile terminal and the unified method downloaded of MODEM and LINUX chip thereof | |
CN104021014A (en) | Firmware upgrading method based on double-CPU system | |
CN107704258A (en) | Uboot upgrade methods, system and terminal device | |
CN106933641A (en) | A kind of scm software is from upgrade method and system | |
CN103488516A (en) | System repair method and electronic equipment | |
CN102681861B (en) | Method and device for installing software | |
CN109542384A (en) | Electric appliance and its screen driving method, device | |
CN110908706B (en) | Multi-version software management method | |
CN105159714B (en) | A kind of PMIC initial method and electronic equipment | |
CN109582324A (en) | A kind of IC method for burn-recording and board | |
CN106919423B (en) | Firmware upgrading method and device | |
CN104461603A (en) | Information processing method and electronic equipment | |
CN112912743B (en) | Calculation force control method, device, equipment and storage medium | |
CN104571962B (en) | The implementation method of firmware in a kind of USBKEY equipment of suitable batch production | |
CN1936843B (en) | Smart key device of internal memory apparatus and using method | |
CN102567251A (en) | Control method and control device for BIOS (basic input/output system) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170707 |