CN102722378B - A kind of method of non intelligent mobile phone and its system program of upgrading - Google Patents

A kind of method of non intelligent mobile phone and its system program of upgrading Download PDF

Info

Publication number
CN102722378B
CN102722378B CN201110077291.0A CN201110077291A CN102722378B CN 102722378 B CN102722378 B CN 102722378B CN 201110077291 A CN201110077291 A CN 201110077291A CN 102722378 B CN102722378 B CN 102722378B
Authority
CN
China
Prior art keywords
module
zone bit
mobile phone
clock module
card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201110077291.0A
Other languages
Chinese (zh)
Other versions
CN102722378A (en
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.)
BYD Co Ltd
Original Assignee
BYD 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 BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201110077291.0A priority Critical patent/CN102722378B/en
Publication of CN102722378A publication Critical patent/CN102722378A/en
Application granted granted Critical
Publication of CN102722378B publication Critical patent/CN102722378B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a kind of method of non intelligent mobile phone and upgrade-system program thereof, described mobile phone comprises the SD card, the clock module flag register that store cell phone system ROMPaq, said method comprising the steps of: when mobile phone power-on being detected, whether being pressed by the particular combination key of boot detection of handset; When described particular combination key is pressed, by the zone bit write clock module identification register of backup mode and operational system program; When described particular combination key is not pressed, to judge in present clock module identification register being the whether zone bit of downloading mode, if not, operational system program; If so, read the ROMPaq in SD card and preserve, and also again starting shooting in the zone bit write clock module identification register of the pattern of reparation.The method of above-mentioned upgrade-system program can be upgraded to the system program of non intelligent mobile phone.

Description

A kind of method of non intelligent mobile phone and its system program of upgrading
Technical field
The invention belongs to field of mobile communication, particularly relate to a kind of method of non intelligent mobile phone and its system program of upgrading.
Background technology
Along with the development of hand-held mobile terminal, the requirement of user to mobile terminal function also gets more and more, and becomes increasingly complex, and makes the demand of mobile terminal system software upgrading also increasing like this.User often expects to obtain renewal, abundanter application, but the complicated probability that also will increase the system program generation defect of mobile terminal of application program.Such as, current system program cannot support some application program, and this application program just cannot be run, and the function so corresponding to this application program also just cannot use, and usually only has upgrade-system program just can address these problems.
In prior art, upgrade-system program needs to adopt special data line to connect usually, and needs the computer being provided with corresponding driver and upgrade software just can complete.The present inventor is studying prior art and is finding in experimentation: due to equipment such as needs computer, data lines, therefore require higher to hardware device, secondly, need specific application software and driver are installed, the problem that driver is incompatible may be there is, and complex operation, be not easy to the operation of user.And in the prior art, there is the scheme of the upgrading by SD card, smart mobile phone being carried out to system program, but inventor finds to adopt SD card to the upgrade method of smart mobile phone, cannot upgrade to the system program of non intelligent mobile phone (also referred to as functional mobile phone (Feature Phone)).
Summary of the invention
The present invention, for solving in prior art the technical matters existing for upgrading to the system program of non intelligent mobile phone, provides the method for non intelligent mobile phone and its system program of upgrading, can easy, fast, reliably non intelligent mobile phone is upgraded.
The invention provides a kind of method of non intelligent mobile phone upgrade-system program, described mobile phone comprises the SD card, the clock module flag register that store cell phone system ROMPaq, said method comprising the steps of:
When mobile phone power-on being detected, whether be pressed by the particular combination key of boot detection of handset;
When described particular combination key is pressed, by the zone bit write clock module identification register of backup mode and operational system program;
When described particular combination key is not pressed, to be judged in present clock module identification register to be whether the zone bit of downloading mode by boot, if not, by the zone bit write clock module identification register of backup mode and operational system program; If so, read the cell phone system ROMPaq image file in SD card and write mobile phone, also again starting shooting in the zone bit write clock module identification register of reforestation practices;
When operational system program, to judge in present clock module identification register being the whether zone bit of backup mode, if so, the RF calibration data in mobile phone carried out backing up and writes in SD card, also again starting shooting in the zone bit write clock module identification register of downloading mode; If not, being the whether zone bit of reforestation practices is judged in present clock module identification register;
When being the zone bit of reforestation practices in described clock module flag register, the RF calibration data that reading is stored in SD card is also preserved, and also again starts shooting in the zone bit write clock module identification register of normal mode; When being the zone bit of non-recovery pattern in described clock module flag register, mobile phone normal boot-strap.
The present invention also provides a kind of non intelligent mobile phone, SD card can be inserted in described mobile phone, store cell phone system ROMPaq in described SD card, described mobile phone comprises clock module flag register, first detection module, the second detection module, the first judge module, execution module, the first writing module, the second writing module, the second judge module, the 3rd judge module, read module, preservation module and restarts module;
Whether first detection module, start shooting for detection of handset;
Whether the second detection module, for when first detection module detects mobile phone power-on, be pressed by the particular combination key of boot detection of handset;
First judge module, during for detecting that the particular combination key of mobile phone is not pressed when the second detection module, to judge in present clock module identification register to be whether the zone bit of downloading mode by boot;
Execution module, for obtain when the first judge module in clock module flag register for the zone bit of non-downloading mode or the second writing module in clock module flag register, write the zone bit of backup mode time, operational system program;
Second judge module, when described execution module operational system program, to judge in present clock module identification register being the whether zone bit of backup mode;
First writing module, during for obtaining the zone bit for backup mode in clock module flag register when the second judge module, is undertaken backing up by the RF calibration data in mobile phone and writes in SD card;
3rd judge module, during for obtain in clock module flag register as the zone bit of non-backup mode when the second judge module, to judge in present clock module identification register being the whether zone bit of reforestation practices;
Read module, for when the first judge module obtains the zone bit writing downloading mode in clock module flag register, read the cell phone system ROMPaq image file in SD card, and during for obtaining the zone bit for reforestation practices in clock module flag register when the 3rd judge module, read the RF calibration data be stored in SD card;
Preserve module, for preserving the cell phone system ROMPaq image file that read module reads and the RF calibration data be stored in SD card;
Second writing module, during for detecting that the particular combination key of mobile phone is pressed when the second detection module, by in the zone bit write clock module identification register of backup mode, or when preserving the cell phone system ROMPaq image file that module is preserved in SD card, by in the zone bit write clock module identification register of reforestation practices, or when the RF calibration data in mobile phone being carried out backing up and writes in SD card, by in the zone bit write clock module identification register of downloading mode, or when preserving in module the RF calibration data be stored in SD card, by in the zone bit write clock module identification register of normal mode,
Restart module, for when the second writing module by the zone bit write clock module identification register of reforestation practices time, or when the second writing module by the zone bit write clock module identification register of downloading mode time, or when the second writing module by the zone bit write clock module identification register of normal mode time, again start shooting.
The present invention also provides a kind of non intelligent mobile phone, described mobile phone can insert SD card, store cell phone system ROMPaq in described SD card, described mobile phone comprises clock module flag register, first detection module, the second detection module, the 3rd detection module, the first judge module, execution module, the first writing module, the second writing module, the second judge module, the 3rd judge module, read module, preservation module and restarts module;
Whether first detection module, start shooting for detection of handset;
Whether the second detection module, for when first detection module detects mobile phone power-on, be pressed by the particular combination key of boot detection of handset;
Whether once 3rd detection module, during for detecting that the particular combination key of mobile phone is not pressed when the second detection module, detect clock module power down;
First judge module, for detect when the 3rd detection module clock module not once power down time, to be judged in present clock module identification register to be whether the zone bit of downloading mode by boot;
Execution module, during for obtaining the zone bit for non-downloading mode in clock module flag register when the first judge module, or when the second writing module writes the zone bit of backup mode in clock module flag register, or when the 3rd detection module detects clock module once power down, operational system program;
Second judge module, when operational system program, to judge in present clock module identification register being the whether zone bit of backup mode;
First writing module, during for obtaining the zone bit for backup mode in clock module flag register when the second judge module, is undertaken backing up by the RF calibration data in mobile phone and writes in SD card;
3rd judge module, during for obtain in clock module flag register as the zone bit of non-backup mode when the second judge module, to judge in present clock module identification register being the whether zone bit of reforestation practices;
Read module, for when the first judge module obtains the zone bit writing downloading mode in clock module flag register, read the cell phone system ROMPaq image file in SD card, and during for obtaining the zone bit for reforestation practices in clock module flag register when the 3rd judge module, read the RF calibration data be stored in SD card;
Preserve module, for preserving the cell phone system ROMPaq image file that read module reads and the RF calibration data be stored in SD card;
Second writing module, during for detecting that the particular combination key of mobile phone is pressed when the second detection module, by in the zone bit write clock module identification register of backup mode, or when preserving the cell phone system ROMPaq image file that module is preserved in SD card, by in the zone bit write clock module identification register of reforestation practices, or when the RF calibration data in mobile phone being carried out backing up and writes in SD card, by in the zone bit write clock module identification register of downloading mode, or when preserving in module the RF calibration data be stored in SD card, by in the zone bit write clock module identification register of normal mode,
Restart module, for when the second writing module by the zone bit write clock module identification register of reforestation practices time, or when the second writing module by the zone bit write clock module identification register of downloading mode time, or when the second writing module by the zone bit write clock module identification register of normal mode time, again start shooting.
As can be seen from the scheme of upgrade-system program of the present invention, by clock module flag register, record is carried out to the zone bit of four kinds of patterns, download ROMPaq cell phone system program image file from SD card before, first radio-frequency (RF) calibration routine data is backed up, from SD card, download cell phone system ROMPaq image file and again radio-frequency (RF) calibration routine data is saved in the internal memory of mobile phone again after system program is updated to cell phone system ROMPaq, make non intelligent mobile phone normally can carry out system program upgrading, and user only needs the SD card storing required upgrade file to insert mobile phone, press default particular combination key and can complete all escalation processs, easy to operation.Further, be almost the SD card of mobile phone standard configuration now owing to adopting, and SD is stuck in the whole world and has unified standard, thus the incompatible shortcoming of current upgrade software can be overcome.Tradition is by computer serial port upgrading cell phone system software, and speed only has 112.5KB/s usually.And the SD card reading speed of 6 grades (class6) can reach 6MB/s, even the SD card of 2 grades (class2) also can reach 2MB/s, therefore adopt SD card upgrade reliable at a high speed.
To sum up, adopt such scheme can easy, fast, reliably system software upgrading is carried out to non intelligent mobile phone, and compatible better.
Accompanying drawing explanation
Fig. 1 is the non intelligent working state of mobile phone schematic diagram of the present invention.
Fig. 2 is the schematic flow sheet of the first embodiment of the non intelligent mobile phone upgrade method of the present invention.
Fig. 3 is the schematic flow sheet of the present invention's non intelligent mobile phone upgrade method the second embodiment.
Fig. 4 is the schematic flow sheet that the non intelligent mobile phone of the present invention reads a kind of embodiment of method of cell phone system ROMPaq from SD card.
Fig. 5 is the structured flowchart of non intelligent the first embodiment of mobile phone of the present invention.
Fig. 6 is the structured flowchart of the present invention's non intelligent mobile phone the second embodiment.
Embodiment
In order to make technical matters solved by the invention, technical scheme and beneficial effect clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The present inventor finds, because the internal memory of non intelligent mobile phone is normally very limited, cannot be the fixing address area of Data Placement one, only when system program normally runs, just can obtain RF calibration data accurately.The memory headroom of non intelligent mobile phone is mainly used in storing boot (bootloader), system program, and remaining a small amount of storage space user can use.And, system program cannot oneself be upgraded, need by boot cell phone system ROMPaq be kept at memory headroom thus realize upgrading, but system program and the RF calibration data of non intelligent mobile phone blend into one, while system program is upgraded, also will cover RF calibration data, therefore can cause the loss of RF calibration data.
First system boot can perform boot after powering under normal circumstances, and load afterwards and operational system program, mobile phone is restarted rear all programs and all can be resetted.As shown in Figure 1, in order to realize carrying out system upgrade to non intelligent mobile phone, in the present invention, the state demarcation that cell phone system runs is become four kinds of patterns: backup mode, downloading mode, reforestation practices, normal mode, and above four kinds of patterns can switch in turn.Wherein, under backup mode, can back up by radio frequency calibration data; Under downloading mode, the cell phone system ROMPaq image file in SD card can be read and this cell phone system ROMPaq is kept in mobile phone EMS memory; In recovery mode, can re-write in mobile phone EMS memory by the RF calibration data of backup in SD card, RF calibration data can not be lost, and system program upgrades successfully; In the normal mode, mobile phone normal boot-strap.
Clock module (RTC in addition in mobile phone, Real Time Clock) be mainly used in timing, usual mobile phone in the power-offstate, time on mobile phone still will continue operation, as long as clock module not power down, namely the battery in mobile phone is not unplugged, so namely clock module can normally work, therefore the zone bit that often kind of pattern is corresponding is set, by the zone bit of clock module register record present mode, after mobile phone is restarted, system just can according to the zone bit recorded in clock module register, under which kind of state certainty annuity operates in.
Illustrate how to adopt SD card to carry out system upgrade to non intelligent mobile phone below by way of specific embodiment, with reference to Fig. 2, the invention provides the method for non intelligent mobile phone by SD card upgrade system program of the first embodiment, the method comprises the following steps:
Step S01, detects mobile phone power-on, enters step S02;
Step S02, whether the particular combination key being detected this mobile phone by boot is pressed, and if so, enters step S03; If not, step S04 is entered;
Step S03, by the zone bit write clock module identification register of backup mode, enters step S05;
Step S04, to be judged in present clock module identification register to be whether the zone bit of downloading mode, if not, enters step S05 by boot; If so, step S06 is entered;
Step S05, operational system program, enters step S09;
Step S06, reads the cell phone system ROMPaq image file in SD card and writes mobile phone, entering step S07;
Step S07, by the zone bit write clock module identification register of reforestation practices, enters step S08;
Step S08, starts shooting again, enters step S01;
Step S09, to judge in present clock module identification register being the whether zone bit of backup mode, if so, enters step S10, if not, enter step S12;
Step S10, is undertaken backing up by the RF calibration data in mobile phone and writes in SD card, entering step S11;
Step S11, by the zone bit write clock module identification register of downloading mode, enters step S08;
Step S12, to judge in present clock module identification register being the whether zone bit of reforestation practices, if so, enters step S13, if not, enter step S15;
Step S13, the RF calibration data that reading is stored in SD card is also preserved, and enters step S14;
Step S14, by the zone bit write clock module identification register of normal mode, enters step S08;
Step S15, when being the zone bit of non-recovery pattern in described clock module flag register, mobile phone normal boot-strap.
As can be seen from above scheme, when mobile phone power-on, if described particular combination key is pressed, just by the zone bit write clock module identification register of backup mode, then operational system program, it is now the zone bit of backup mode in clock module flag register, so cell phone system is in backup mode, just can back up by radio frequency calibration data, to prevent the loss of RF calibration data in the process of upgrading, the state simultaneously run due to cell phone system is following order: backup mode, downloading mode, reforestation practices, normal mode, therefore, just can by the zone bit write clock module identification register of downloading mode after radio frequency calibration data backs up, then again start shooting, so system can reenter boot, described particular combination key is not pressed, it is now the zone bit of downloading mode in clock module flag register, so cell phone system is in downloading mode, just can read cell phone system ROMPaq image file from SD card and cell phone system ROMPaq is kept in the internal memory of mobile phone the cell phone system ROMPaq be updated to by original system program in SD card, when cell phone system program image file writes in the internal memory of mobile phone completely, just can by the zone bit write clock module identification register of reforestation practices, then again start shooting, now described particular combination key is not pressed, operational system program and be the zone bit of reforestation practices in clock module flag register, just can the RF calibration data of backup be re-write in the internal memory of mobile phone, RF calibration data can not be lost, and by the zone bit write clock module identification register of normal mode, then again start shooting, it is now the zone bit of normal mode in clock module flag register, therefore mobile phone normal boot-strap, preserve RF calibration data and cell phone system ROMPaq in the internal memory of simultaneously mobile phone simultaneously, the system program of non intelligent mobile phone is upgraded successfully.
Said process needs 4 start process altogether, but concerning user, only needs the SD card that will store required upgrade file to insert mobile phone, press default particular combination key and can complete all escalation processs, easy to operation.Further, be almost the SD card of mobile phone standard configuration now owing to adopting, and SD is stuck in the whole world and has unified standard, thus the incompatible shortcoming of current upgrade software can be overcome.Tradition is by computer serial port upgrading cell phone system software, and speed only has 112.5KB/s usually.And the SD card reading speed of 6 grades (class6) can reach 6MB/s, even the SD card of 2 grades (class2) also can reach 2MB/s, therefore adopt SD card upgrade reliable at a high speed.
In concrete enforcement, can further expand such scheme and optimize, such as, if clock module once power down, the information that so clock module is preserved also just may make a mistake, for avoiding above-mentioned mistake, when described particular combination key is not pressed, following steps can be performed
Detect clock module whether once power down, if so, perform the step of described operational system program; If not, perform described boot and to judge in present clock module identification register being the whether step of the zone bit of downloading mode.
In concrete enforcement, as shown in Figure 3, also provide the method for non intelligent mobile phone by SD card upgrade system program of the second embodiment, concrete, after step S02, further comprising the steps of, if the judged result of step S02 is no, enter step S16;
Whether once step S16, detect clock module power down, if so, enter step S05; If not, step S04 is entered.
Further, accuracy can be upgraded successfully smoothly in order to ensure mobile phone, the method for the non intelligent mobile phone upgrade-system program of the second embodiment, further comprising the steps of, after step S06, enter step S18.
Step S18, judges that whether upgrading is successful, if not, enters step S08, stop upgrading; If so, enter step S07, make after confirmation upgrades successfully, then by the zone bit write clock module identification register of normal mode, so that the system program upgraded successfully can normally work.
In order to the upgrade status that user can be allowed to understand mobile phone in time, also can show upgrade status and updating result in escalation process,
Such as, in the present embodiment, concrete steps are as follows, after step S18, if not, then upgrade unsuccessful, enter step S19; If so, step S20 is entered;
Step S19, the miscue of display sequence, enters step S08, again starts shooting, stop upgrading;
Now due to meeting display routine miscue on mobile phone interface, start again now can be undertaken by user operation, also can system automatically control to carry out.
Step S20, shows the progress of upgrading and upgrades successfully, entering step S07.
In concrete enforcement, due to the restriction in non intelligent mobile phone EMS memory space, possibly cannot add complete cell phone system ROMPaq image file to upgrade in boot, in addition, system needs the address of searching required bunch based on the chained list in file allocation table after determining first bunch of file of needs operation, this action need reads SD card data and adjoint a large amount of calculating continually, very consuming time, for improving upgrading efficiency further, as shown in Figure 4, the invention provides the cell phone system ROMPaq image file in a kind of reading SD card of embodiment and write the method for mobile phone, specifically comprise the following steps:
Step S010, reads the file allocation table of cell phone system ROMPaq image file in SD card and is kept in default buffer memory;
Step S011, obtains the current cluster A of cell phone system ROMPaq image file i(in an initial condition i=1), and according to this bunch number A i, obtain this bunch number A icorresponding physical address, obtains the content that this bunch number Ai is corresponding from file allocation table;
Step S012, according to described current cluster A icorresponding physical address, reads the cell phone system ROMPaq image file fragment corresponding to this physical address and preserves;
Step S013, according to the content obtained from file allocation table corresponding to this bunch number Ai, judges whether cell phone system ROMPaq image file terminates, and if not, enters step S014; If so, step S016 is entered;
Step S014, according to current cluster A ithe lower cluster A of corresponding content obtaining cell phone system ROMPaq image file i+1, enter step S015;
Step S015, variable i, from adding one, enters step S011,
Step S016, program reads and terminates.
For step S010, in order to avoid carrying out read operation to SD card frequently, the space of preset buffer memory from user can internal memory mark segment space and formed, and user can internal memory itself very limited, whole file allocation table cannot be loaded into internal memory, therefore adopt and the partial content of whole file allocation table is kept in default buffer memory, can predict which block content is about to frequently access in whole file allocation table by the buffer memory preset, only this block content is loaded into the buffer memory preset, and due to non intelligent mobile phone be single-threaded, escalation process only needs to carry out unidirectional read operation from the beginning to the end to mobile phone system upgrade program image file, so the effective rate of utilization of buffer memory can be very high, therefore, in scheme in the present embodiment, can think, when according to current cluster A icurrent cluster A is obtained from the file allocation table of buffer memory iduring corresponding content, in the file allocation table of buffer memory, all current cluster A can be found icorresponding content.Certainly work as according to current cluster A icurrent cluster A is obtained from the file allocation table of buffer memory icorresponding content, and cannot current cluster A be found in the file allocation table of buffer memory iduring corresponding content, as long as update the content of buffer memory file allocation table, so current cluster A icorresponding content just can find.Therefore by file allocation table being preserved scheme in the buffer, can avoid carrying out read operation to SD card continually, simultaneously by with bunch mode all the content of mobile phone system upgrade program image file is read, a large amount of calculating can be avoided, thus can save time, realize more upgrading efficient quick.
For step S011, the first bunch of number A of cell phone system ROMPaq image file 1can be kept in the root directory of SD card hand machine system upgrade program image file, therefore the first bunch number of cell phone system ROMPaq image file can directly obtain from root directory.
In order to realize the upgrading of system program, the present invention also provides the non intelligent mobile phone of the first embodiment, as shown in Figure 5, SD card can be inserted in described mobile phone, described mobile phone comprises clock module flag register (not shown on figure), also comprises first detection module 1, second detection module 2, first judge module 3, execution module 5, first writing module 4, second writing module 6, second judge module 7, the 3rd judge module 8, read module 9, preserves module 10 and restart module 11;
Whether first detection module 1, start shooting for detection of handset;
Whether the second detection module 2, for when first detection module 1 detects mobile phone power-on, be pressed by the particular combination key of boot detection of handset;
First judge module 3, for when the second detection module 2 detects that the particular combination key of this mobile phone is not pressed, to judge in present clock module identification register to be whether the zone bit of downloading mode by boot;
Execution module 5, obtains for during the zone bit of non-downloading mode or when the second writing module 6 writes the zone bit of backup mode in clock module flag register in clock module flag register for the first judge module 3, operational system program;
Second judge module 7, when described execution module 5 operational system program, to judge in present clock module identification register being the whether zone bit of backup mode;
First writing module 4, during for obtaining the zone bit for backup mode in clock module flag register when the second judge module 7, by current RF calibration data write SD card;
3rd judge module 8, during for obtain in clock module flag register as the zone bit of non-backup mode when the second judge module 7, to judge in present clock module identification register being the whether zone bit of reforestation practices;
Read module 9, for when the first judge module 3 obtains the zone bit writing downloading mode in clock module flag register, read the cell phone system ROMPaq image file in SD card, and during for obtaining the zone bit for reforestation practices in clock module flag register when the 3rd judge module 8, read in the RF calibration data in SD card;
Preserve module 10, for preserving the cell phone system ROMPaq image file and RF calibration data that read module 9 reads;
Second writing module 6, when the second detection module 2 detects that the particular combination key of this mobile phone is pressed, by in the zone bit write clock module identification register of backup mode, or when preserving module 10 and preserving the cell phone system ROMPaq image file in SD card, by in the zone bit write clock module identification register of reforestation practices, or when RF calibration data is write in SD card, by in the zone bit write clock module identification register of downloading mode, or when preserving RF calibration data in preservation module 10, by in the zone bit write clock module identification register of normal mode,
Restart module 11, for when the second writing module 6 by the zone bit write clock module identification register of reforestation practices time, or when the second writing module 6 by the zone bit write clock module identification register of downloading mode time; Or when the second writing module 6 by the zone bit write clock module identification register of normal mode time, again start shooting.
As can be seen from above scheme, by clock module flag register, record is carried out to the zone bit of four kinds of patterns, and download cell phone system ROMPaq image file from SD card before, first RF calibration data is backed up, and download cell phone system ROMPaq image file from SD card after, RF calibration data is saved in the internal memory of mobile phone again, make non intelligent mobile phone normally can carry out system program upgrading.
Further, in order to ensure the accuracy of cell phone system ROMPaq image file, in the present embodiment, described mobile phone also comprises the 4th judge module 12;
4th judge module 12, after preserving the cell phone system ROMPaq image file in SD card when preservation module 10, judges that whether upgrading is successful;
Restart module 11, also for when the 4th judge module 12 obtains upgrading unsuccessful, again start shooting;
Second writing module 6, also for when preserving module 10 and preserving the cell phone system ROMPaq image file in SD card and upgrade successfully, by the zone bit write clock module identification register of reforestation practices.
Further, in order to the upgrade status that user can be allowed to understand mobile phone in time, in the present embodiment, described mobile phone also comprises the display module 13 of the judged result for showing the 4th judge module 12.
In concrete enforcement, in order to avoid carrying out read operation to SD card frequently, avoid a large amount of calculating thus save time, described read module 9 comprises the first reading unit, the first storage unit, the first acquiring unit, second acquisition unit, the second reading unit, the second storage unit and judging unit, preserves module 10 and comprises the first storage unit and the second storage unit;
First reading unit, for reading the file allocation table of cell phone system ROMPaq image file from SD card; First storage unit, for preserving the file allocation table that the first reading unit reads;
First acquiring unit, for obtaining the current cluster number of cell phone system ROMPaq image file, and when receiving the judgement signal of judging unit, the lower cluster number of the content obtaining cell phone system ROMPaq image file corresponding to current cluster in second acquisition unit number;
Second acquisition unit, for according in the first acquiring unit bunch number, obtain this bunch number corresponding physical address and from the file allocation table of the first storage unit, obtain this bunch number corresponding content;
Second reading unit, for according to physical address in second acquisition unit, reads the cell phone system ROMPaq image file corresponding to this physical address;
Second storage unit, for preserving the cell phone system ROMPaq image file that the second reading unit reads, judging unit, from the file allocation table of the first storage unit, this bunch number corresponding content is obtained for basis, judge whether cell phone system ROMPaq image file terminates, if not, output judges that signal is to the first acquiring unit.
For the internal memory preserving module 10 namely mobile phone, comprise boot, system program and user can storage space, the wherein spatial cache namely preset of the first storage unit, for preserving file allocation table, and the second storage unit is used for saved system program and RF calibration data, the second storage unit after upgrading also for preserving the cell phone system ROMPaq image file that the second reading unit reads, thus realizes the upgrading of system program.
Further, if clock module once power down, the information that so clock module is preserved also just makes a mistake, for preventing making a mistake in the process of upgrading, the present invention also provides the non intelligent mobile phone of the second embodiment, as shown in Figure 6, difference compared with the non intelligent mobile phone of the first embodiment is, whether once described mobile phone also comprises the 3rd detection module 14, for when the second detection module 2 detects that the particular combination key of mobile phone is not pressed, detect clock module power down;
First judge module 3, for detect when the 3rd detection module 14 clock module not once power down time, boot to judge in present clock module identification register being the whether zone bit of downloading mode;
Execution module 5, when obtaining the zone bit for non-downloading mode in clock module flag register for the first judge module 3, or when the second writing module 6 writes the zone bit of backup mode in clock module flag register, or when the 3rd detection module 14 detects clock module once power down, operational system program.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a method for non intelligent mobile phone upgrade-system program, described mobile phone comprises the SD card, the clock module flag register that store cell phone system ROMPaq, it is characterized in that, said method comprising the steps of:
When mobile phone power-on being detected, whether be pressed by the particular combination key of boot detection of handset;
When described particular combination key is pressed, by the zone bit write clock module identification register of backup mode and operational system program;
When described particular combination key is not pressed, to be judged in present clock module identification register to be whether the zone bit of downloading mode by boot, if not, by the zone bit write clock module identification register of backup mode and operational system program; If so, read the cell phone system ROMPaq image file in SD card and write mobile phone, also again starting shooting in the zone bit write clock module identification register of reforestation practices;
When operational system program, to judge in present clock module identification register being the whether zone bit of backup mode, if so, the RF calibration data in mobile phone carried out backing up and writes in SD card, also again starting shooting in the zone bit write clock module identification register of downloading mode; If not, being the whether zone bit of reforestation practices is judged in present clock module identification register;
When being the zone bit of reforestation practices in described clock module flag register, the RF calibration data that reading is stored in SD card is also preserved, and also again starts shooting in the zone bit write clock module identification register of normal mode; When being the zone bit of non-recovery pattern in described clock module flag register, mobile phone normal boot-strap.
2. the method for claim 1, is characterized in that, when described particular combination key is not pressed, further comprising the steps of:
Detect clock module whether once power down, if so, perform the step of described operational system program; If not, perform described boot and to judge in present clock module identification register being the whether step of the zone bit of downloading mode.
3. the method for claim 1, is characterized in that, the cell phone system ROMPaq image file in described reading SD card also writes mobile phone, specifically comprises the following steps:
Read the file allocation table of the file system of cell phone system ROMPaq image file in SD card and preserve;
Obtain the current cluster number of cell phone system ROMPaq image file, according to this bunch number, obtain the physical address corresponding to this bunch number, and from file allocation table, obtain this bunch number corresponding content;
Physical address corresponding to described current cluster number, reads the cell phone system ROMPaq image file fragment corresponding to this physical address and preserves;
According to the content obtained from file allocation table corresponding to this bunch number, judge whether cell phone system ROMPaq image file terminates, if not, the lower cluster number of the content obtaining cell phone system ROMPaq image file corresponding to current cluster number, according to the lower cluster number of cell phone system ROMPaq image file, obtain the physical address of described lower cluster number, this bunch number corresponding content is obtained from file allocation table, and according to the physical address of described lower cluster number, read the cell phone system ROMPaq image file fragment corresponding to this physical address and preserve.
4. the method for claim 1, is characterized in that, at the cell phone system ROMPaq image file read in SD card and after writing the step of mobile phone, further comprising the steps of:
Judge that whether upgrading is successful, if not, again start shooting; If so, described step of also again will start shooting in the zone bit write clock module identification register of reforestation practices is performed.
5. method as claimed in claim 4, is characterized in that, described judge the whether successful step of upgrading after, further comprising the steps of:
Whether display system program updates is successful.
6. a non intelligent mobile phone, SD card can be inserted in described mobile phone, it is characterized in that, cell phone system ROMPaq is stored in described SD card, described mobile phone comprises clock module flag register, first detection module, the second detection module, the first judge module, execution module, the first writing module, the second writing module, the second judge module, the 3rd judge module, read module, preservation module and restart module;
Whether first detection module, start shooting for detection of handset;
Whether the second detection module, for when first detection module detects mobile phone power-on, be pressed by the particular combination key of boot detection of handset;
First judge module, during for detecting that the particular combination key of mobile phone is not pressed when the second detection module, to judge in present clock module identification register to be whether the zone bit of downloading mode by boot;
Execution module, for obtain when the first judge module in clock module flag register for the zone bit of non-downloading mode or the second writing module in clock module flag register, write the zone bit of backup mode time, operational system program;
Second judge module, when described execution module operational system program, to judge in present clock module identification register being the whether zone bit of backup mode;
First writing module, during for obtaining the zone bit for backup mode in clock module flag register when the second judge module, is undertaken backing up by the RF calibration data in mobile phone and writes in SD card;
3rd judge module, during for obtain in clock module flag register as the zone bit of non-backup mode when the second judge module, to judge in present clock module identification register being the whether zone bit of reforestation practices;
Read module, for when the first judge module obtains the zone bit writing downloading mode in clock module flag register, read the cell phone system ROMPaq image file in SD card, and during for obtaining the zone bit for reforestation practices in clock module flag register when the 3rd judge module, read the RF calibration data be stored in SD card;
Preserve module, for preserving the cell phone system ROMPaq image file that read module reads and the RF calibration data be stored in SD card;
Second writing module, during for detecting that the particular combination key of mobile phone is pressed when the second detection module, by in the zone bit write clock module identification register of backup mode, or when preserving the cell phone system ROMPaq image file that module is preserved in SD card, by in the zone bit write clock module identification register of reforestation practices, or when the RF calibration data in mobile phone being carried out backing up and writes in SD card, by in the zone bit write clock module identification register of downloading mode, or when preserving in module the RF calibration data be stored in SD card, by in the zone bit write clock module identification register of normal mode,
Restart module, for when the second writing module by the zone bit write clock module identification register of reforestation practices time, or when the second writing module by the zone bit write clock module identification register of downloading mode time, or when the second writing module by the zone bit write clock module identification register of normal mode time, again start shooting.
7. non intelligent mobile phone as claimed in claim 6, is characterized in that, described mobile phone also comprises the 4th judge module;
4th judge module, for after preserving the cell phone system ROMPaq image file in module preservation SD card, judges that whether upgrading is successful;
Describedly restart module, also for when the 4th judge module obtains upgrading unsuccessful, again start shooting;
Second writing module, also for when preserving module and preserve cell phone system ROMPaq image file in SD card and when obtaining upgrading successfully when the 4th judge module, by the zone bit write clock module identification register of reforestation practices.
8. non intelligent mobile phone as claimed in claim 7, is characterized in that, described mobile phone also comprises the display module for showing the 4th judge module judged result.
9. non intelligent mobile phone as claimed in claim 6, is characterized in that, described read module comprises the first reading unit, preserves module and comprises the first storage unit and the second storage unit;
First reading unit, for reading the file allocation table of cell phone system ROMPaq image file in SD card;
First storage unit, for preserving the file allocation table that the first reading unit reads;
First acquiring unit, for obtaining the current cluster number of cell phone system ROMPaq image file;
Second acquisition unit, for according in the first acquiring unit bunch number, obtain this bunch number corresponding physical address and from the file allocation table of the first storage unit, obtain this bunch number corresponding content;
Second reading unit, for according to physical address in second acquisition unit, reads the cell phone system ROMPaq image file fragment corresponding to this physical address;
Second storage unit, for preserving the cell phone system ROMPaq image file fragment that the second reading unit reads; Judging unit, for according to this bunch number corresponding content obtained from the file allocation table of the first storage unit, judges whether cell phone system ROMPaq image file terminates, and if not, exports and judges that signal is to the first acquiring unit.
10. a non intelligent mobile phone, described mobile phone can insert SD card, it is characterized in that, store cell phone system ROMPaq in described SD card, described mobile phone comprises clock module flag register, first detection module, the second detection module, the 3rd detection module, the first judge module, execution module, the first writing module, the second writing module, the second judge module, the 3rd judge module, read module, preservation module and restarts module;
Whether first detection module, start shooting for detection of handset;
Whether the second detection module, for when first detection module detects mobile phone power-on, be pressed by the particular combination key of boot detection of handset;
Whether once 3rd detection module, during for detecting that the particular combination key of mobile phone is not pressed when the second detection module, detect clock module power down;
First judge module, for detect when the 3rd detection module clock module not once power down time, to be judged in present clock module identification register to be whether the zone bit of downloading mode by boot;
Execution module, during for obtaining the zone bit for non-downloading mode in clock module flag register when the first judge module, or when the second writing module writes the zone bit of backup mode in clock module flag register, or when the 3rd detection module detects clock module once power down, operational system program;
Second judge module, when operational system program, to judge in present clock module identification register being the whether zone bit of backup mode;
First writing module, during for obtaining the zone bit for backup mode in clock module flag register when the second judge module, is undertaken backing up by the RF calibration data in mobile phone and writes in SD card;
3rd judge module, during for obtain in clock module flag register as the zone bit of non-backup mode when the second judge module, to judge in present clock module identification register being the whether zone bit of reforestation practices;
Read module, for when the first judge module obtains the zone bit writing downloading mode in clock module flag register, read the cell phone system ROMPaq image file in SD card, and during for obtaining the zone bit for reforestation practices in clock module flag register when the 3rd judge module, read the RF calibration data be stored in SD card;
Preserve module, for preserving the cell phone system ROMPaq image file that read module reads and the RF calibration data be stored in SD card;
Second writing module, during for detecting that the particular combination key of mobile phone is pressed when the second detection module, by in the zone bit write clock module identification register of backup mode, or when preserving the cell phone system ROMPaq image file that module is preserved in SD card, by in the zone bit write clock module identification register of reforestation practices, or when the RF calibration data in mobile phone being carried out backing up and writes in SD card, by in the zone bit write clock module identification register of downloading mode, or when preserving in module the RF calibration data be stored in SD card, by in the zone bit write clock module identification register of normal mode,
Restart module, for when the second writing module by the zone bit write clock module identification register of reforestation practices time, or when the second writing module by the zone bit write clock module identification register of downloading mode time, or when the second writing module by the zone bit write clock module identification register of normal mode time, again start shooting.
CN201110077291.0A 2011-03-30 2011-03-30 A kind of method of non intelligent mobile phone and its system program of upgrading Expired - Fee Related CN102722378B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110077291.0A CN102722378B (en) 2011-03-30 2011-03-30 A kind of method of non intelligent mobile phone and its system program of upgrading

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110077291.0A CN102722378B (en) 2011-03-30 2011-03-30 A kind of method of non intelligent mobile phone and its system program of upgrading

Publications (2)

Publication Number Publication Date
CN102722378A CN102722378A (en) 2012-10-10
CN102722378B true CN102722378B (en) 2015-09-30

Family

ID=46948158

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110077291.0A Expired - Fee Related CN102722378B (en) 2011-03-30 2011-03-30 A kind of method of non intelligent mobile phone and its system program of upgrading

Country Status (1)

Country Link
CN (1) CN102722378B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677941B (en) * 2013-12-27 2017-08-11 北京大唐智能卡技术有限公司 A kind of method and device for realizing smart card operating system module upgrade
CN109491825B (en) * 2018-11-16 2022-08-23 Oppo广东移动通信有限公司 Method, device, storage medium and terminal for positioning abnormal starting problem
CN111427604A (en) * 2020-04-20 2020-07-17 遂宁摩天时代科技有限公司 Remote software upgrading system and method based on functional mobile phone
CN116185461B (en) * 2023-04-28 2023-07-25 广东华芯微特集成电路有限公司 Firmware upgrading method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6560703B1 (en) * 2000-04-18 2003-05-06 International Business Machines Corporation Redundant updatable self-booting firmware
CN101271396A (en) * 2008-04-15 2008-09-24 威盛电子股份有限公司 Electronic device and method for on-line updating firmware
CN101286157A (en) * 2007-09-28 2008-10-15 深圳市天朗时代科技有限公司 File retrieval method and apparatus and time stream file processor
CN101694621A (en) * 2009-10-22 2010-04-14 中兴通讯股份有限公司 Method for updating software of mobile terminal and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6560703B1 (en) * 2000-04-18 2003-05-06 International Business Machines Corporation Redundant updatable self-booting firmware
CN101286157A (en) * 2007-09-28 2008-10-15 深圳市天朗时代科技有限公司 File retrieval method and apparatus and time stream file processor
CN101271396A (en) * 2008-04-15 2008-09-24 威盛电子股份有限公司 Electronic device and method for on-line updating firmware
CN101694621A (en) * 2009-10-22 2010-04-14 中兴通讯股份有限公司 Method for updating software of mobile terminal and mobile terminal

Also Published As

Publication number Publication date
CN102722378A (en) 2012-10-10

Similar Documents

Publication Publication Date Title
US8954805B2 (en) Computer booting method and computer system
US20110004871A1 (en) Embedded electronic device and firmware updating method thereof
US20070074201A1 (en) Method and system for updating software and computer readable recording medium storing the method
CN106933593B (en) System switching method and device based on mobile terminal
CN101770383B (en) Method and device for on-line upgrade of cross-platform version
CN101188516B (en) A highly reliable and self-adapted remote update method for network device software system
CN101923473B (en) Embedded electronic device and method for updating firmware thereof
US8533450B2 (en) File update system and boot management system of mobile communication terminal, method of updating file in mobile communication terminal, and method of booting mobile communication terminal
KR101555210B1 (en) Apparatus and method for downloadin contents using movinand in portable terminal
CN103544031B (en) The android system upgrade method and system of multi partition peripheral storage device
CN109086078B (en) Android system upgrading method and device, server and mobile terminal
CN102722378B (en) A kind of method of non intelligent mobile phone and its system program of upgrading
CN103970557A (en) Storage device and system starting method thereof
CN102799497A (en) Data recovery system and method for non-volatile random access memory (NVRAM)
CN104007992A (en) Methods and devices for program updating and starting
CN101854428A (en) Method for recovering files during mobile terminal startup
CN109947445A (en) A kind of firmware upgrade method and system
US20050010914A1 (en) Method for upgrading firmware
US9572024B2 (en) Network upgrading-adaptive telephone number upgrading method and device for wireless terminal
CN103617053A (en) Method and device for upgrading software
CN114816491A (en) System upgrading method and device for multi-system mobile terminal and terminal
CN104765631A (en) Restoration method and device for application program of mobile terminal
CN102184115B (en) Method for updating system software and terminal device
CN101299190A (en) Software upgrading method, system and built-in equipment of read-only file system
CN101339513B (en) Basic input/ output system data update method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150930

Termination date: 20210330