Summary of the invention
The present invention is directed to the above-mentioned shortcoming and defect that exists when portable terminal carries out software upgrading in the prior art and a kind of mobile terminal software upgrading method and software updating apparatus are provided, thereby improved upgrade speed of software and efficient with simple process flow.
For realizing the foregoing invention purpose, the present invention adopts following technical proposals to be achieved:
A kind of mobile terminal software upgrading method, said portable terminal have the first processor and second processor,
Said upgrade method comprises the steps:
A1, startup second processor utilize second processor to start first processor;
B1, judgement are the software of upgrading first processor or the software of second processor;
C1, during for the software of upgrading second processor, second processor software upgrading sign is set in judged result;
D1, utilize first processor to read the second processor software AKU, and second processor is carried out software upgrading.
Aforesaid method for upgrading software for ease of the detection of upgrade status, also comprises the steps: after said steps d 1
E1, judge whether second processor software upgrading is accomplished;
F1, after second processor software upgrading is accomplished, wipe said second processor software upgrading sign.
Aforesaid method for upgrading software also comprised the steps: before said step a1
A01, judge whether to exist terminal software upgrading sign, when having the terminal software upgrading sign, download software upgrade package, download in software upgrade package and accomplish the said step a1 of back execution.
Aforesaid method for upgrading software, for ease of the expansion portable terminal business function, further improve software upgrading speed, said software upgrade package is downloaded from server end through mobile communications network.
Aforesaid method for upgrading software for improving the reliability of software upgrading, in said steps d 1, interrupts if upgrading takes place when said second processor carried out software upgrading, then carries out the software upgrade process after following interruption is restarted:
A2, startup second processor;
B2, utilize second processor to detect whether to have said second processor software upgrading sign in the portable terminal;
C2, when having second processor software upgrading sign, utilize second processor to read the second processor software AKU, and second processor carried out software upgrading.
Aforesaid method for upgrading software is similarly the detection of being convenient to upgrade status, after said step c2, carries out following step:
D2, judge whether second processor software upgrading is accomplished;
E2, after second processor software upgrading is accomplished, wipe said second processor software upgrading sign.
Aforesaid method for upgrading software if the judged result of said step a is the software of upgrading first processor, then utilizes first processor to read the first processor software upgrade package, and first processor is carried out software upgrading.
A kind of mobile terminal software upgrading device, said device comprise the first processor and second processor, also comprise:
Upgrading position judgment unit is used to judge that will the upgrade software of first processor still is the software of second processor;
Upgrading sign setup unit is used to be provided with second processor software upgrading sign; And
The upgrading control module is used for escalation process is controlled;
And when upgrading position judgment unit judges will be upgraded the software of second processor, upgrading control module control first processor read the second processor software AKU, and second processor is carried out software upgrading.
Aforesaid software updating apparatus, said device also comprises:
Upgrading sign erase unit is carried out under the control of upgrading control module and is wiped said second processor software upgrading sign; And
The AKU download unit is used for through mobile communications network from server end downloaded software AKU.
In addition, the present invention also provides a kind of portable terminal, is provided with above-mentioned described software updating apparatus in this portable terminal.
Compared with prior art; Advantage of the present invention and good effect are: mobile terminal software upgrading method of the present invention utilizes first processor that the software of second processor is upgraded; Effectively avoided in portable terminal, repeatedly copying the complex process of software upgrade package; Thereby simplified the upgrading flow process, and reduced the number of times of restarting of portable terminal, improved the speed and the efficient of mobile terminal software upgrading greatly.And, can detect the aborted of escalation process and also in time upgrade again, improved the reliability of mobile terminal software upgrading.
After advantages embodiment of the present invention, other characteristics of the present invention and advantage will become clearer.
Embodiment
Below in conjunction with accompanying drawing and embodiment technical scheme of the present invention is done further detailed explanation.
At first; Brief description technological starting point of the present invention and technical thought: consider and to carry out complicated escalation process and the frequent problem of restarting portable terminal when prior art is carried out software upgrading to the portable terminal with dual core processor; The present invention proposes with upgrade a kind of upgrade method of software of two processors of a processor; As long as configuration relevant hardware framework makes the processor that is used to upgrade can visit the storage space of another processor, the upgrade method of utilizing the present invention to propose then can be simplified escalation process; Reduce the number of times that portable terminal is restarted, improve upgrading efficient.
Please refer to Fig. 1, this is shown in Figure 1 to be that the structured flowchart of an embodiment of mobile terminal software upgrading device of the present invention, the software updating apparatus of this embodiment can be applied in the portable terminal of supporting the intelligent work platform.
As shown in Figure 1; The software updating apparatus of this embodiment includes the first processor 11 and second processor 12; And, be to improve the operation stability of portable terminal, can self check when portable terminal breaks down; When this update device is applied in the portable terminal, employing be start-up course with second processor 12 starts earlier, second processor 12 is restarted first processor 11 after starting.
In addition, the software updating apparatus of this embodiment also include be used to judge to upgrade the software of first processor still be second processor software upgrading position judgment unit 14, be used to be provided with second processor software upgrading sign and total terminal software upgrading sign upgrading sign setup unit 15, be used to the AKU download unit 17 wiping the upgrading sign erase unit 16 of corresponding software upgrading sign and be used for the download and upgrade bag.For improving software upgrading speed and upgrading scope, the AKU download unit 17 preferred air download technology (OTA) that adopt are passed through mobile communications network from server end downloaded software AKU.
Software updating apparatus also includes upgrading control module 13, and this upgrading control module 13 is as the main control unit of update device, is used for coordinating other each several parts with control device, accomplishes the integral body control to escalation process.For example, upgrading control module 13 is control upgrading sign setup unit 15 setting terminal software upgradings sign when detecting the user and need upgrade software, and the position judgment of control upgrading simultaneously unit 14 is judged the software of which processor of will upgrading.Upgrading control module 13 control AKU download units 17 are downloaded from server end through OTA and are wanted the upgrading software AKU; And in the time will upgrading the software of second processor; Control first processor 11 reads the second processor software AKU from the downloaded software AKU, and second processor is carried out software upgrading etc.The course of work of whole update device can be with reference to figure 2, Fig. 3 and following description to two figure.
Please refer to Fig. 2, this Fig. 2 shows the main flow chart of an embodiment of mobile terminal software upgrading method of the present invention.
This embodiment constitutes dual core processor to have ap processor and modem processor portable terminal is an example, and this portable terminal is an intelligent mobile terminal, adopts the eMMC storer, and its ap processor can be visited the storage space of modem processor.And when portable terminal starts; Start the modem processor earlier, start the ap processor through the modem processor then, to improve the operation stability of portable terminal; Can self check when portable terminal breaks down, also be convenient to the compatibility of software between the various dissimilar portable terminals simultaneously.Therefore, in this embodiment, as first processor, promptly be used to the primary processor of upgrading, and the modem processor uses as second processor with the ap processor.
Based on above-mentioned explanation, the main flow of the software upgrading of this embodiment is following:
Step 201: flow process begins.
Step 202: the user confirms to carry out software upgrading, generates the terminal software upgrading sign.
The sign that the terminal software upgrading sign is carried out software upgrading as whole portable terminal, this embodiment generates when adopting mobile phone users to confirm to carry out software upgrading, has realized that the user controls the purpose of whether carrying out software upgrading, has improved user's use independence.
Step 203: when having the terminal software upgrading sign, download software upgrade package.
Software upgrade package comprises all software upgrade package that portable terminal will be upgraded, and for example, includes the first processor software upgrade package, also includes the second processor software AKU etc.These software upgrade package can download to portable terminal with the mode of wire transmission from memory devices such as USB memory device, TF storage cards, also can pass through cordless communication networks such as 3G, wifi, adopt the OTA technology to download from the remote server end.This embodiment preferably downloads from server end through mobile communications network, so that the business function of expansion portable terminal, further improve software upgrading speed.
Step 204: judge whether software upgrade package downloads completion.Accomplish execution in step 205 if download; If do not downloaded, go to step 203 and continue to download, accomplish until downloading.
Step 205: after software upgrade package is downloaded and accomplished, restart the first processor of portable terminal, get into the software upgrading pattern.
Because when mobile terminal software upgrading, do not allow other program disturb, so, start portable terminal before the upgrading earlier and get into the software upgrading pattern.Concrete entering process is: start second processor earlier, utilize second processor to start first processor then, get into the software upgrading pattern again.
Step 206: the software of the first processor that judges whether to upgrade.If, execution in step 207; If not, go to step S208.
Step 207: if will upgrade the software of first processor, because first processor is used primary processor for upgrading, so the first processor software upgrade package of directly utilizing first processor to read to have downloaded is carried out software upgrading to first processor and got final product.
Step 208: if not the software of upgrading first processor, the software of second processor that judges whether again to upgrade.If, execution in step 209; If not, go to step 215.
Step 209: if the software of second processor of upgrading at first is provided with second processor software upgrading sign.
The fundamental purpose that second processor software upgrading sign is set is to prevent to occur in the escalation process upgrading accidental interruption incomplete problem that causes upgrading, and concrete purposes and method of application are with reference to following description.Therefore the software of second processor because the employing first processor is upgraded, be provided with second processor software upgrading sign in the misc of eMMC storer subregion.The misc subregion of eMMC storer can be used for preserving information important in the escalation process as a public memory space, and for example, whether the modem code of whether upgrading is upgraded and successfully waited.
Step 210: utilize first processor to read the second processor software AKU, and second processor is carried out software upgrading.
When upgrading; The header packet information of reading software AKU at first; The program number that acquisition will be upgraded, the program size of upgrading, the information such as position of ROMPaq in software upgrade package read the renewal of upgrading of corresponding ROMPaq according to these information then successively from software upgrade package.
Step 211: in the second processor software escalation process, judge whether its upgrading is accomplished.If accomplish execution in step 212; If do not accomplish, go to step 210, proceed upgrading.
Step 212:, wipe second processor software upgrading sign if the upgrading of second processor software is accomplished.
Step 213: judge whether to also have other not upgrading software.If execution in step 214 is arranged; Otherwise, execution in step 215.
The purpose of carrying out this step is that escalation process is remake comprehensive inspection, prevents omission, other software programs of not upgrading.
Step 214: if also have not other softwares of upgrading, the corresponding software of then upgrading, execution in step 215 then.
Step 215: after all softwares are all upgraded completion, show whole terminal software upgrading completion, wipe the terminal software upgrading sign, accomplish escalation process.
After wiping the terminal software upgrading sign, if upgrade again next time, can reset the prompting of upgrading sign once more and will carry out terminal software upgrading, thereby utilize this terminal software upgrading sign to realize detection upgrade status.
Step 216: the upgrading flow process finishes.
In the second processor upgrade process, may be loosening, reason such as battery electric quantity deficiency causes the escalation process accidental interruption and cause the upgrading failure because of battery.In the case, be to guarantee that upgrading reduces again the from the beginning complicacy of upgrading reliably, simultaneously, the accidental interruption of this embodiment during to second processor upgrade done special processing, and concrete processing procedure is referring to Fig. 3 and following description to Fig. 3.
Please refer to Fig. 3, this Fig. 3 shows the process flow diagram of the software upgrade process after interrupting among Fig. 2 embodiment restarting.
If in the second processor upgrade process, interrupt, so, second processor possibly also not accomplished upgrading.Because what this embodiment adopted is the method for restarting first processor after second processor starts, and may have the situation that can not start first processor because second processor is not accomplished upgrading.Therefore, for guaranteeing reliable upgrading,, adopt the upgrade method that is different from above-mentioned Fig. 2 main flow for the process of upgrading again again after the second processor upgrade accidental interruption, detailed process as stated:
Step 301: flow process begins.
Step 302: second processor of restarting portable terminal.
Step 303: utilize second processor to detect second processor software upgrading sign in the portable terminal.
Step 304: judge whether to exist second processor software upgrading sign.If, execution in step 305; If not, go to step 308.
For guaranteeing comprehensively, intactly carry out software upgrading, improve the reliability of software upgrading, of Fig. 2 main flow and following step, after the upgrading of second processor software is accomplished, can wipe second processor software upgrading sign.Therefore, have only the upgrading of second processor software to accomplish, just can not have this second processor software upgrading sign.Have second processor software upgrading sign if detect the respective memory locations of portable terminal, the software upgrade process that shows second processor is not also accomplished and something unexpected happened interrupts.
Step 305: utilize second processor to read the second processor software AKU, and second processor is carried out software upgrading.
For avoiding,, when the second processor accidental interruption, adopt second processor directly to get into software upgrading in order to guarantee smooth upgrading because of the imperfect situation that can't start first processor of second processor upgrade.During upgrading; The header packet information of reading software AKU at first; The program number that acquisition will be upgraded, the program size of upgrading, the information such as position of ROMPaq in software upgrade package read the renewal of upgrading of corresponding ROMPaq according to these information then successively from software upgrade package.
Step 306: whether the software upgrading of judging second processor is accomplished.If accomplish execution in step 307; If do not accomplish, go to step 305, continue upgrading.
Step 307: after the upgrading of second processor software is accomplished, wipe second processor software upgrading sign.
Step 308: have second processor software upgrading sign, perhaps wiping after second processor software upgrading sign, utilizing the first processor of the second restart processor portable terminal, getting into the software upgrading pattern.
Owing in the second processor software escalation process, do not start first processor, therefore, can't utilize first processor to judge whether whole updating mobile terminal process is all accomplished.So, need restart second processor, utilize second processor to start first processor then, and get into the software upgrading pattern.
Step 309: judge whether to also have other not upgrading software.If execution in step 310 is arranged; Otherwise, execution in step 311.
The purpose of carrying out this step is that escalation process is remake comprehensive inspection, prevents omission, other software programs of not upgrading.
Step 310: if also have not other softwares of upgrading, the corresponding software of then upgrading, execution in step 311 then.
Step 311: after all softwares are all upgraded completion, show whole terminal software upgrading completion, wipe the terminal software upgrading sign, accomplish escalation process.
Step 312: flow process finishes.
Application drawing 2 and above-mentioned upgrading flow process embodiment illustrated in fig. 3 can be carried out two processors of double-core portable terminal fast, software upgrading reliably, have improved upgrading efficient, have promoted the portable terminal product usability and the market competitiveness.
Above embodiment is only in order to explaining technical scheme of the present invention, but not limits it; Although the present invention has been carried out detailed explanation with reference to previous embodiment, for the person of ordinary skill of the art, still can make amendment to the technical scheme that previous embodiment is put down in writing, perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of relevant art scheme break away from the spirit and the scope of the present invention's technical scheme required for protection.