Summary of the invention
The present invention is directed to the above-mentioned shortcoming and defect of existence when mobile terminal in prior art carries out software upgrading and provide a kind of mobile terminal software upgrading method and software updating apparatus, thus improve speed and the efficiency of software upgrading with simple flow process.
For achieving the above object, the present invention adopts following technical proposals to be achieved:
A kind of mobile terminal software upgrading method, described mobile terminal has first processor and the second processor,
Described upgrade method comprises the steps:
A1, start the second processor, utilize the second processor to start first processor;
B1, judgement are the upgrading software of first processor or the software of the second processor;
C1, when judged result is the software of upgrading second processor, arrange second processor software upgrading mark;
D1, utilize first processor to read the second processor software AKU, and software upgrading is carried out to the second processor.
Method for upgrading software as above, for ease of the detection of upgrade status, also comprises the steps: after described steps d 1
E1, judge second processor software upgrading whether complete;
F1, after the second processor software has been upgraded, wipe described second processor software upgrading mark.
Method for upgrading software as above, also comprised the steps: before described step a1
A01, judge whether to exist terminal software upgrading mark, downloading software upgrade package when there is terminal software upgrading mark, after software upgrade package has been downloaded, performing described step a1.
Method for upgrading software as above, for ease of expanding business function, further the raising software upgrading speed of mobile terminal, described software upgrade package is downloaded from server end by mobile communications network.
Method for upgrading software as above is improve the reliability of software upgrading, in described steps d 1, interrupts if there is upgrading when carrying out software upgrading to described second processor, then perform following interruption restart after software upgrade process:
A2, start the second processor;
B2, utilize the second processor to detect in mobile terminal whether to there is described second processor software upgrading mark;
C2, existence second processor software upgrading mark time, utilize the second processor to read the second processor software AKU, and software upgrading carried out to the second processor.
Method for upgrading software as above, is similarly the detection being convenient to upgrade status, after described step c2, perform following step:
D2, judge second processor software upgrading whether complete;
E2, after the second processor software has been upgraded, wipe described second processor software upgrading mark.
Method for upgrading software as above, if the judged result of described step a is the software of upgrading first processor, then utilizes first processor to read first processor software upgrade package, and carries out software upgrading to first processor.
A kind of mobile terminal software upgrading device, described device comprises first processor and the second processor, also comprises:
Upgrade location judging unit, for judging will the upgrade software of first processor or the software of the second processor;
Upgrading flag unit, for arranging the second processor software upgrading mark; And
Upgrading control module, for controlling escalation process;
And when upgrade location judging unit judges to upgrade the software of the second processor, upgrading control module controls first processor and reads the second processor software AKU, and carries out software upgrading to the second processor.
Software updating apparatus as above, described device also comprises:
Upgrading mark erase unit, performs the described second processor software upgrading mark of erasing under the control of upgrading control module; And
AKU download unit, for downloading software upgrade package by mobile communications network from server end.
In addition, present invention also offers a kind of mobile terminal, in this mobile terminal, be provided with software updating apparatus described above.
Compared with prior art, advantage of the present invention and good effect are: mobile terminal software upgrading method of the present invention utilizes the software of first processor to the second processor to upgrade, effectively prevent the complex process repeatedly copying software upgrade package in the terminal, thus simplify upgrading flow process, and decrease mobile terminal restart number of times, substantially increase speed and the efficiency of mobile terminal software upgrading.And the exception that can detect escalation process is interrupted and re-starts upgrading in time, improves the reliability of mobile terminal software upgrading.
After reading the specific embodiment of the present invention by reference to the accompanying drawings, the other features and advantages of the invention will become clearly.
Embodiment
Below in conjunction with the drawings and specific embodiments, technical scheme of the present invention is described in further detail.
First, brief description technology starting point of the present invention and technical thought: consider that prior art needs the problem performing complicated escalation process and restart mobile terminal frequently when carrying out software upgrading to the mobile terminal with dual core processor, the present invention proposes to upgrade with a processor a kind of upgrade method of software of two processors, as long as configure corresponding hardware structure, make the processor for upgrading can access the storage space of another processor, then the upgrade method utilizing the present invention to propose can simplify escalation process, reduce the number of times that mobile terminal is restarted, improve upgrading efficiency.
Please refer to Fig. 1, this Figure 1 shows that the structured flowchart of a mobile terminal software upgrading device of the present invention embodiment, and the software updating apparatus of this embodiment can be applied in the mobile terminal supporting intelligent work platform.
As shown in Figure 1, the software updating apparatus of this embodiment includes first processor 11 and the second processor 12, and, for improving the operation stability of mobile terminal, can self-inspection when mobile terminal breaks down, when this update device is applied in the terminal, employing be with the second processor 12 first start, the second processor 12 restarts the start-up course of first processor 11 after starting.
In addition, the software updating apparatus of this embodiment also include for judge the to upgrade software of first processor or the software of the second processor upgrade location judging unit 14, for arrange the second processor software upgrading mark and total terminal software upgrading mark upgrading flag unit 15, for wiping the upgrading mark erase unit 16 of corresponding software upgrading mark and being used for downloading the AKU download unit 17 of AKU.For improving software upgrading speed and upgrading scope, AKU download unit 17 preferably adopts over the air (OTA) to download software upgrade package by mobile communications network from server end.
Software updating apparatus also includes upgrading control module 13, and this upgrading control module 13, as the main control unit of update device, for coordinating and other each several parts in control device, completing and controlling the entirety of escalation process.Such as, upgrading control module 13 controls upgrading flag unit 15 setting terminal software upgrading mark when detecting that user needs upgrade software, controls the judgement of upgrade location judging unit 14 simultaneously and will to upgrade the software of which processor.Upgrading control module 13 is controlled AKU download unit 17 and is downloaded the software upgrade package that will upgrade by OTA from server end, and when the software of the second processor will be upgraded, control first processor 11 and read the second processor software AKU from the software upgrade package downloaded, and software upgrading etc. is carried out to the second processor.The course of work of whole update device can with reference to figure 2, Fig. 3 and the following description to two figure.
Please refer to Fig. 2, this Fig. 2 shows the main flow chart of a mobile terminal software upgrading method of the present invention embodiment.
This embodiment is formed the mobile terminal of dual core processor to have ap processor and modem processor, this mobile terminal is intelligent mobile terminal, and adopt eMMC storer, its ap processor can access the storage space of modem processor.And when mobile terminal starts, first start modem processor, then start ap processor, to improve the operation stability of mobile terminal by modem processor, can self-inspection when mobile terminal breaks down, be also convenient to the compatibility of software between various dissimilar mobile terminal simultaneously.Therefore, in this embodiment, using ap processor as first processor, be namely used for the primary processor of upgrading, and modem processor uses as the second processor.
Based on above-mentioned explanation, the main flow of the software upgrading of this embodiment is as follows:
Step 201: flow process starts.
Step 202: user confirms to carry out software upgrading, generates terminal software upgrading mark.
Terminal software upgrading mark carries out the mark of software upgrading as whole mobile terminal, generation when this embodiment adopts mobile phone users to confirm to carry out software upgrading, achieves the object whether user's manipulation carries out software upgrading, improves the use independence of user.
Step 203: download software upgrade package when there is terminal software upgrading mark.
Software upgrade package comprises all software upgrade package that mobile terminal will be upgraded, and such as, includes first processor software upgrade package, also includes the second processor software AKU etc.These software upgrade package can download to mobile terminal from memory devices such as USB storage device, TF storage cards in the mode of wire transmission, also can be downloaded from remote server by the cordless communication networks such as 3G, wifi, employing OTA technology.This embodiment is downloaded from server end preferably by mobile communications network, so that the business function of expansion mobile terminal, further raising software upgrading speed.
Step 204: judge whether software upgrade package has been downloaded.If downloaded, perform step 205; If do not downloaded, go to step 203 continuation and downloaded, until downloaded.
Step 205: after software upgrade package has been downloaded, restarts the first processor of mobile terminal, enters software upgrading pattern.
Owing to not allowing other program disturb when mobile terminal software upgrading, so, first start mobile terminal before upgrading and enter software upgrading pattern.Specifically the process of entering is: first start the second processor, then utilizes the second processor to start first processor, then enters software upgrading pattern.
Step 206: the software of the first processor that judges whether to upgrade.If so, step 207 is performed; If not, S208 is gone to step.
Step 207: to the software of first processor of upgrading, because first processor is upgrading primary processor, so, directly utilize first processor to read the first processor software upgrade package downloaded, software upgrading is carried out to first processor.
Step 208: if not the software of upgrading first processor, then the software of second processor that judges whether to upgrade.If so, step 209 is performed; If not, 215 are gone to step.
Step 209: if the software of the second processor of will upgrading, first arranges the second processor software upgrading mark.
The fundamental purpose arranging the second processor software upgrading mark prevents from occurring in escalation process that upgrading accidental interruption causes incomplete problem of upgrading, and concrete purposes and using method are with reference to following description.Owing to adopting first processor to upgrade the software of the second processor, therefore, the second processor software upgrading mark is set in the misc subregion of eMMC storer.The misc subregion of eMMC storer is as a public memory space, and can be used for preserving information important in escalation process, such as, whether modem code of whether upgrading, upgrade successfully.
Step 210: utilize first processor to read the second processor software AKU, and software upgrading is carried out to the second processor.
When upgrading, first the header packet information of reading software AKU, the information such as the program number that acquisition will be upgraded, the program size of upgrading, the position of ROMPaq in software upgrade package, then reads corresponding ROMPaq successively according to these information and carries out upgrading renewal from software upgrade package.
Step 211: in the second processor software escalation process, judges whether its upgrading completes.If complete, perform step 212; If do not complete, go to step 210, proceed upgrading.
Step 212: if the second processor software upgrading completes, wipes the second processor software upgrading mark.
Step 213: judge whether other softwares of not upgrading in addition.If have, perform step 214; Otherwise, perform step 215.
The object performing this step remakes comprehensive inspection to escalation process, other software programs of prevent omission, not upgrading.
Step 214: if other softwares of not upgrading in addition, then corresponding software of upgrading, then performs step 215.
Step 215: after all software has all been upgraded, shows that whole terminal software upgrading completes, and erasing terminal software upgrading mark, completes escalation process.
After erasing terminal software upgrading mark, if upgraded next time, again can reset the prompting of upgrading mark will carry out terminal software upgrading, thus utilizes this terminal software upgrading to identify the detection realized upgrade status again.
Step 216: upgrading flow process terminates.
In the second processor upgrade process, may loosen because of battery, battery electric quantity is not enough etc., and reason causes escalation process accidental interruption and cause and upgrade unsuccessfully.In the case, for ensureing that upgrading reduces the complicacy of again from the beginning upgrading reliably, simultaneously, this embodiment does special processing to accidental interruption during the second processor upgrade, and concrete processing procedure is see Fig. 3 and the following description to Fig. 3.
Please refer to Fig. 3, this Fig. 3 shows in Fig. 2 embodiment the process flow diagram interrupting the software upgrade process after restarting.
If interrupted in the second processor upgrade process, so, the second processor also may not complete upgrading.What adopt due to this embodiment is restart the method for first processor after the second processor starts, and may there is the situation that can not start first processor because the second processor does not complete upgrading.Therefore, for ensureing reliable upgrading, for the process of again upgrading again after the second processor upgrade accidental interruption, adopt the upgrade method being different from above-mentioned Fig. 2 main flow, detailed process is described above:
Step 301: flow process starts.
Step 302: second processor of restarting mobile terminal.
Step 303: the second processor software upgrading utilizing the second processor to detect in mobile terminal identifies.
Step 304: judge whether existence second processor software upgrading mark.If so, step 305 is performed; If not, 308 are gone to step.
For ensureing comprehensively, intactly carrying out software upgrading, improve the reliability of software upgrading, as described in Fig. 2 main flow and following step, after the second processor software has been upgraded, the second processor software upgrading mark can be wiped.Therefore, only have the second processor software to upgrade, just can not there is this second processor software upgrading mark.If detect the respective memory locations of mobile terminal have second processor software upgrading mark, show the software upgrade process of the second processor also do not complete and something unexpected happened interrupt.
Step 305: utilize the second processor to read the second processor software AKU, and software upgrading is carried out to the second processor.
For avoiding the situation that cannot start first processor because the second processor upgrade is imperfect, in order to ensure smooth upgrading, the second processor is adopted directly to enter software upgrading when the second processor accidental interruption.During upgrading, first the header packet information of reading software AKU, the information such as the program number that acquisition will be upgraded, the program size of upgrading, the position of ROMPaq in software upgrade package, then reads corresponding ROMPaq successively according to these information and carries out upgrading renewal from software upgrade package.
Step 306: judge whether the software upgrading of the second processor completes.If complete, perform step 307; If do not completed, go to step 305, continue upgrading.
Step 307: after the second processor software has been upgraded, wipes the second processor software upgrading mark.
Step 308: in existence second processor software upgrading mark, or after erasing second processor software upgrading mark, utilize the first processor of the second restart processor mobile terminal, enter software upgrading pattern.
Owing to not starting first processor in the second processor software escalation process, therefore, whether whole updating mobile terminal process all completes first processor cannot to be utilized to judge.So, need to restart the second processor, then utilize the second processor to start first processor, and enter software upgrading pattern.
Step 309: judge whether other softwares of not upgrading in addition.If have, perform step 310; Otherwise, perform step 311.
The object performing this step remakes comprehensive inspection to escalation process, other software programs of prevent omission, not upgrading.
Step 310: if other softwares of not upgrading in addition, then corresponding software of upgrading, then performs step 311.
Step 311: after all software has all been upgraded, shows that whole terminal software upgrading completes, and erasing terminal software upgrading mark, completes escalation process.
Step 312: flow process terminates.
Application drawing 2 and above-mentioned upgrading flow process embodiment illustrated in fig. 3, can carry out fast two of a double-core mobile terminal processor, reliably software upgrading, improves upgrading efficiency, improve mobile terminal product usability and the market competitiveness.
Above embodiment only in order to technical scheme of the present invention to be described, but not is limited; Although with reference to previous embodiment to invention has been detailed description, for the person of ordinary skill of the art, still can modify to the technical scheme described in previous embodiment, or equivalent replacement is carried out to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of the present invention's technical scheme required for protection.