CN102722378A - Non-intelligent mobile phone and method for upgrading system program thereof - Google Patents

Non-intelligent mobile phone and method for upgrading system program thereof Download PDF

Info

Publication number
CN102722378A
CN102722378A CN2011100772910A CN201110077291A CN102722378A CN 102722378 A CN102722378 A CN 102722378A CN 2011100772910 A CN2011100772910 A CN 2011100772910A CN 201110077291 A CN201110077291 A CN 201110077291A CN 102722378 A CN102722378 A CN 102722378A
Authority
CN
China
Prior art keywords
module
flag register
zone bit
mobile phone
clock module
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.)
Granted
Application number
CN2011100772910A
Other languages
Chinese (zh)
Other versions
CN102722378B (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

Images

Landscapes

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

Abstract

The invention provides a non-intelligent mobile phone and a method of upgrading the system program thereof. The mobile phone comprises an SD card storing a system upgrading program of the mobile phone, and a clock-module marker register. The method comprises the following steps: detecting whether a specific combination key of the mobile phone is pressed via a guiding program when the start-up of the mobile phone is detected; writing a flag bit of a backup mode into the clock-module marker register and operating the system program when the specific combination key is pressed; determining whether a flag bit of a download mode is in the present clock-module marker register when the specific combination key is not pressed; operating the system program if the download mode flag bit is not in the present clock-module marker register; and reading the upgrade program in the SD card and saving, and writing a flag bit of a recovery mode into the clock-module marker register and starting the mobile phone, if the download mode flag bit is in the present clock-module marker register. The method for upgrading the system program can upgrade the system programs of non-intelligent mobile phones.

Description

The method of a kind of non intelligent mobile phone and its system program of upgrading
Technical field
The invention belongs to field of mobile communication, relate in particular to the method for a kind of non intelligent mobile phone and its system program of upgrading.
Background technology
Along with the development of hand-held mobile terminal, the user is also more and more to the requirement of mobile terminal function, becomes increasingly complex, and makes also increasing to the demand of mobile terminal system software upgrading like this.The user often expects to obtain to upgrade, abundanter application, but the complicated probability that also will increase the system program generation defective of portable terminal of application program.Such as, current system program can't be supported some application program, and this application program just can't be moved, and the pairing function of this application program also just can't be used so, and has only the upgrade-system program just can address these problems usually.
In the prior art, the upgrade-system program need adopt the special data line to connect usually, and the computer that corresponding driving program and upgrade software need be installed could be accomplished.Inventor of the present invention prior art is studied with experimentation in find: owing to need equipment such as computer, data line; Therefore hardware device is had relatively high expectations; Secondly, need certain applications software and driver are installed, possibly have the incompatible problem of driver; And complex operation is not easy to user's operation.And in the prior art; The scheme of smart mobile phone being carried out the upgrading of system program through the SD card is arranged; But the inventor finds to adopt the upgrade method of SD card to smart mobile phone, can't upgrade to the system program of non intelligent mobile phone (being also referred to as functional mobile phone (Feature Phone)).
Summary of the invention
The present invention provides the method for non intelligent mobile phone and its system program of upgrading for solving in the prior art the system program of the non intelligent mobile phone existing technical matters of upgrading, can be easy, fast, reliably non intelligent mobile phone is upgraded.
The present invention provides a kind of method of non intelligent mobile phone upgrade-system program, and said mobile phone comprises SD card, the clock module flag register that stores the cell phone system ROMPaq, said method comprising the steps of:
When detecting mobile phone power-on, whether the particular combination key through the boot detection of handset is pressed;
When said particular combination key is pressed, write in the clock module flag register zone bit of backup mode and the operational system program;
When said particular combination key is not pressed, judge in the present clock module flag register whether be the zone bit of downloading mode through boot, if not, the zone bit of backup mode is write clock module flag register and operational system program; If, read the cell phone system ROMPaq image file in the SD card and write mobile phone, write in the clock module flag register zone bit that recovers pattern and start again;
When the operational system program; Judge in the present clock module flag register whether be the zone bit of backup mode; If, the RF calibration data in the mobile phone are backed up and write in the SD card, write in the clock module flag register zone bit of downloading mode and start again; If, do not judge in the present clock module flag register whether be the zone bit of recovery pattern;
When in the said clock module flag register during for the zone bit of recovery pattern, read the RF calibration data that are stored in the SD card and preserve, write in the clock module flag register zone bit of normal mode and start again;
When being the zone bit of non-recovery pattern in the said clock module flag register, the mobile phone normal boot-strap.
The present invention also provides a kind of non intelligent mobile phone; Can insert the SD card in the said mobile phone; Store the cell phone system ROMPaq in the said SD card, said mobile phone comprises clock module flag register, first detection module, second detection module, first judge module, execution module, first writing module, second writing module, second judge module, the 3rd judge module, read module, preservation module and restarts module;
Whether first detection module is used for detection of handset and starts shooting;
Second detection module is used for when first detection module detects mobile phone power-on, and whether the particular combination key through the boot detection of handset is pressed;
First judge module is used for when particular combination key that second detection module detects mobile phone is not pressed, judging in the present clock module flag register whether be the zone bit of downloading mode through boot;
Execution module is used for when first judge module obtains the clock module flag register and in the clock module flag register, writes the zone bit of backup mode for the zone bit of non-downloading mode or second writing module operational system program;
Second judge module when said execution module operational system program, judges in the present clock module flag register whether be the zone bit of backup mode;
First writing module is used for when second judge module obtains the clock module flag register for the zone bit of backup mode, the RF calibration data in the mobile phone being backed up and writing in the SD card;
The 3rd judge module is used for when second judge module obtains the clock module flag register for the zone bit of non-backup mode, judging in the present clock module flag register whether be the zone bit of recovery pattern;
Read module; Be used for when first judge module obtains the clock module flag register and writes the zone bit of downloading mode; Read the cell phone system ROMPaq image file in the SD card; And be used for when the 3rd judge module obtains the clock module flag register for the zone bit of recovery pattern, reading the RF calibration data that are stored in the SD card;
Preserve module, be used for preserving cell phone system ROMPaq image file that read module reads and the RF calibration data that are stored in the SD card;
Second writing module; Be used for when particular combination key that second detection module detects mobile phone is pressed; The zone bit of backup mode is write in the clock module flag register, perhaps when the preservation module is preserved the cell phone system ROMPaq image file in the SD card, the zone bit that recovers pattern is write in the clock module flag register; When perhaps backing up and writing the RF calibration data in the mobile phone in the SD card; The zone bit of downloading mode is write in the clock module flag register, when perhaps in preserving module, being stored in the RF calibration data in the SD card, the zone bit of normal mode is write in the clock module flag register;
Restart module; Be used for when zone bit that second writing module will recover pattern writes the clock module flag register; Perhaps when second writing module writes the zone bit of downloading mode in the clock module flag register; Perhaps when second writing module writes the zone bit of normal mode in the clock module flag register, start again.
The present invention also provides a kind of non intelligent mobile phone; Said mobile phone can insert the SD card; Store the cell phone system ROMPaq in the said SD card, said mobile phone comprises clock module flag register, first detection module, second detection module, the 3rd detection module, first judge module, execution module, first writing module, second writing module, second judge module, the 3rd judge module, read module, preservation module and restarts module;
Whether first detection module is used for detection of handset and starts shooting;
Second detection module is used for when first detection module detects mobile phone power-on, and whether the particular combination key through the boot detection of handset is pressed;
Whether once the 3rd detection module is used for when particular combination key that second detection module detects mobile phone is not pressed, detecting clock module power down;
First judge module is used for detecting clock module not during power down once when the 3rd detection module, judges in the present clock module flag register whether be the zone bit of downloading mode through boot;
Execution module; Be used for when first judge module obtains the clock module flag register for the zone bit of non-downloading mode; When perhaps second writing module writes the zone bit of backup mode in the clock module flag register; When perhaps the 3rd detection module detects clock module power down once, the operational system program;
Second judge module when the operational system program, judges in the present clock module flag register whether be the zone bit of backup mode;
First writing module is used for when second judge module obtains the clock module flag register for the zone bit of backup mode, the RF calibration data in the mobile phone being backed up and writing in the SD card;
The 3rd judge module is used for when second judge module obtains the clock module flag register for the zone bit of non-backup mode, judging in the present clock module flag register whether be the zone bit of recovery pattern;
Read module; Be used for when first judge module obtains the clock module flag register and writes the zone bit of downloading mode; Read the cell phone system ROMPaq image file in the SD card; And be used for when the 3rd judge module obtains the clock module flag register for the zone bit of recovery pattern, reading the RF calibration data that are stored in the SD card;
Preserve module, be used for preserving cell phone system ROMPaq image file that read module reads and the RF calibration data that are stored in the SD card;
Second writing module; Be used for when particular combination key that second detection module detects mobile phone is pressed; The zone bit of backup mode is write in the clock module flag register, perhaps when the preservation module is preserved the cell phone system ROMPaq image file in the SD card, the zone bit that recovers pattern is write in the clock module flag register; When perhaps backing up and writing the RF calibration data in the mobile phone in the SD card; The zone bit of downloading mode is write in the clock module flag register, when perhaps in preserving module, being stored in the RF calibration data in the SD card, the zone bit of normal mode is write in the clock module flag register;
Restart module; Be used for when zone bit that second writing module will recover pattern writes the clock module flag register; Perhaps when second writing module writes the zone bit of downloading mode in the clock module flag register; Perhaps when second writing module writes the zone bit of normal mode in the clock module flag register, start again.
Can find out from the scheme of upgrade-system program of the present invention; Through the clock module flag register zone bit of four kinds of patterns is carried out record; From the SD card before the download and upgrade program cell phone system program image file; Earlier the RF calibration routine data is backed up; Again the RF calibration routine data is saved in the internal memory of mobile phone again after from the SD card, downloading cell phone system ROMPaq image file and system program being updated to the cell phone system ROMPaq, make non intelligent mobile phone can normally carry out the system program upgrading, and the SD card that the user only needs to store required upgrade file inserts mobile phone; Press preset particular combination key and can accomplish all escalation processs, easy to operation.And, almost be the SD card of mobile phone standard configuration now owing to adopt, and SD is stuck in the whole world unified standard is arranged, thereby can overcome the incompatible shortcoming of present upgrade software.Tradition is through computer serial ports upgrading cell phone system software, and speed has only 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, so adopt the SD card upgrade reliable at a high speed.
To sum up, adopt such scheme can be easy, fast, reliably non intelligent mobile phone is carried out system software upgrading, and better compatible.
Description of drawings
Fig. 1 is the non intelligent operating handset view of the present invention.
Fig. 2 is the schematic flow sheet of first kind of embodiment of the non intelligent mobile phone upgrade method of the present invention.
Fig. 3 is the schematic flow sheet of second kind of embodiment of the non intelligent mobile phone upgrade method of the present invention.
Fig. 4 reads the schematic flow sheet of a kind of embodiment of method of cell phone system ROMPaq from the SD card for the non intelligent mobile phone of the present invention.
Fig. 5 is the structured flowchart of first kind of embodiment of the non intelligent mobile phone of the present invention.
Fig. 6 is the structured flowchart of second kind of embodiment of the non intelligent mobile phone of the present invention.
Embodiment
Clearer for technical matters, technical scheme and beneficial effect that the present invention is solved, below in conjunction with accompanying drawing and embodiment, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Inventor of the present invention finds, because the internal memory of non intelligent mobile phone is normally very limited, can't divide a fixing address area for data, only under the situation of the normal operation of system program, just can obtain RF calibration data accurately.The memory headroom of non intelligent mobile phone is mainly used in storage boot (bootloader), system program, and remaining a small amount of storage space user can use.And; System program can't oneself be upgraded; Thereby need the cell phone system ROMPaq be kept at memory headroom through boot and realize upgrading; But the system program of non intelligent mobile phone and RF calibration data blend into one, and when system program is upgraded, also will cover the RF calibration data, therefore can cause losing of RF calibration data.
Can at first carry out boot after under normal circumstances system boot powers on, load afterwards and the operational system program, mobile phone is restarted all programs in back and all can be resetted.As shown in Figure 1, in order to realize that non intelligent mobile phone is carried out system upgrade, the state with the cell phone system operation among the present invention is divided into four kinds of patterns: backup mode, downloading mode, recovery pattern, normal mode, and also above four kinds of patterns can be switched in order.Wherein, under backup mode, can back up the radio frequency calibration data; Under downloading mode, the cell phone system ROMPaq image file that can read in the SD card also is kept at this cell phone system ROMPaq in the mobile phone EMS memory; Under the recovery pattern, can the RF calibration data that in the SD card, back up be write in the mobile phone EMS memory again, make the RF calibration data can not lose, system program is upgraded successfully; Under normal mode, the mobile phone normal boot-strap.
Clock module in the mobile phone (RTC, Real Time Clock) is mainly used in timing in addition, and mobile phone is under off-mode usually; Time on the mobile phone still will continue to move, as long as not power down of clock module, promptly the battery in the mobile phone is not pulled up; Clock module promptly can operate as normal so; Therefore the corresponding zone bit of every kind of pattern is set, through the zone bit of clock module register record present mode, after mobile phone is restarted; System just can confirm which kind of state is system operate under according to the zone bit that writes down in the clock module register.
Below how to adopt the SD card that non intelligent mobile phone is carried out system upgrade through specific embodiment explanation, with reference to Fig. 2, the present invention provides the method for the non intelligent mobile phone of first kind of embodiment through SD card upgrade system program, this method may further comprise the steps:
Step S01 detects mobile phone power-on, gets into step S02;
Step S02, whether the particular combination key that detects this mobile phone through boot is pressed, if get into step S03; If, do not get into step S04;
Step S03 writes the zone bit of backup mode in the clock module flag register, gets into step S05;
Step S04 judges in the present clock module flag register whether be the zone bit of downloading mode through boot, if not, gets into step S05; If get into step S06;
Step S05, the operational system program gets into step S09;
Step S06 reads the cell phone system ROMPaq image file in the SD card and writes mobile phone, gets into step S07;
Step S07 writes the zone bit that recovers pattern in the clock module flag register, gets into step S08;
Step S08, start again gets into step S01;
Step S09 judges in the present clock module flag register whether be the zone bit of backup mode, if, get into step S10, if not, get into step S12;
Step S10 backs up the RF calibration data in the mobile phone and write in the SD card, gets into step S11;
Step S11 writes the zone bit of downloading mode in the clock module flag register, gets into step S08;
Step S12 judges in the present clock module flag register whether be the zone bit of recovery pattern, if, get into step S13, if not, get into step S15;
Step S13 reads the RF calibration data that are stored in the SD card and preserves entering step S14;
Step S14 writes the zone bit of normal mode in the clock module flag register, gets into step S08;
Step S15, when being the zone bit of non-recovery pattern in the said clock module flag register, the mobile phone normal boot-strap.
Can find out from above scheme, when mobile phone power-on, if said particular combination key is pressed; The zone bit of backup mode is just write in the clock module flag register, and then the operational system program is the zone bit of backup mode in the clock module flag register at this moment; Cell phone system is in backup mode so, just can back up the radio frequency calibration data, to prevent the losing of RF calibration data in the process of upgrading; Simultaneously because the state of cell phone system operation is following order: therefore backup mode, downloading mode, recovery pattern, normal mode, just can write the zone bit of downloading mode in the clock module flag register after the radio frequency calibration data is backed up; Then start again, system can get into boot again so, and said particular combination key is not pressed; Be the zone bit of downloading mode this moment in the clock module flag register; Cell phone system is in downloading mode so, just can from the SD card, read cell phone system ROMPaq image file and the cell phone system ROMPaq is kept to be about to original system program in the internal memory of mobile phone and to be updated to the cell phone system ROMPaq in the SD card, when cell phone system program image file writes in the internal memory of mobile phone fully; Just can the zone bit that recover pattern be write in the clock module flag register; Then start once more, this moment, said particular combination key was not pressed, and was the zone bit of recovery pattern in operational system program and the clock module flag register; Just can the RF calibration data of backup be written in the internal memory of mobile phone again; Make the RF calibration data can not lose, and the zone bit of normal mode is write in the clock module flag register, then start again; Be the zone bit of normal mode this moment in the clock module flag register; Therefore the mobile phone normal boot-strap is preserved RF calibration data and cell phone system ROMPaq in the internal memory of mobile phone simultaneously simultaneously, makes the system program of non intelligent mobile phone upgrade successfully.
Said process needs 4 start process altogether, but concerning the user, the SD card that only needs to store required upgrade file inserts mobile phone, presses preset particular combination key and can accomplish all escalation processs, and is easy to operation.And, almost be the SD card of mobile phone standard configuration now owing to adopt, and SD is stuck in the whole world unified standard is arranged, thereby can overcome the incompatible shortcoming of present upgrade software.Tradition is through computer serial ports upgrading cell phone system software, and speed has only 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, so adopt the SD card upgrade reliable at a high speed.
In practical implementation, can further expand and optimize such scheme, for example; If clock module power down once, the information of clock module preservation also just possibly make a mistake so, for avoiding above-mentioned mistake; When said particular combination key is not pressed, can carry out following steps
Detect whether once power down of clock module, if carry out the step of said operational system program; If, do not carry out said boot and judge in the present clock module flag register whether be the step of the zone bit of downloading mode.
In practical implementation, as shown in Figure 3, the method for the non intelligent mobile phone of second kind of embodiment through SD card upgrade system program also is provided, concrete, further comprising the steps of after step S02, if the judged result of step S02 gets into step S16 for not;
Whether once step S16 detects clock module power down, if get into step S05; If, do not get into step S04.
Further, in order to ensure the mobile phone successful accuracy of upgrading smoothly, the method for the non intelligent mobile phone upgrade-system program of second kind of embodiment, further comprising the steps of, after the step S06, get into step S18.
Step S18 judges whether upgrading is successful, if not, gets into step S08, stops upgrading; If, get into step S07, make that the zone bit with normal mode writes in the clock module flag register again after confirming to upgrade successfully, so that the successful system program of upgrading can operate as normal.
In order to let the user in time understand the upgrade status of mobile phone, in escalation process, also can show upgrade status and updating result,
For example, in the present embodiment, concrete steps are following, and after step S18, if not, then upgrading is unsuccessful, gets into step S19; If get into step S20;
Step S19 shows the preface miscue, gets into step S08, and start again stops upgrading;
Owing to meeting display routine miscue on the mobile phone interface, the start again of this moment can be carried out through user's operation at this moment, also can automatic control of system carry out.
Step S20 shows the progress of upgrading and upgrades successfully entering step S07.
In practical implementation, because the restriction in non intelligent mobile phone EMS memory space possibly can't add complete cell phone system ROMPaq image file to upgrade in boot; In addition; System need to have confirmed behind first bunch of file of operation to search based on the chained list in the file allocation table required bunch address, and this action need reads SD card data continually and follows a large amount of calculating, very consuming time; For further improving upgrading efficient; As shown in Figure 4, the present invention provides reading the cell phone system ROMPaq image file in the SD card and writing the method for mobile phone of a kind of embodiment, specifically may further comprise the steps:
Step S010 reads the file allocation table of cell phone system ROMPaq image file in the SD card and is kept in the preset buffer memory;
Step S011, obtain cell phone system ROMPaq image file as prevariety A i(i=1 under original state), and according to this bunch number A i, obtain this bunch number A iPairing physical address obtains the corresponding content of this bunch number Ai from file allocation table;
Step S012 is according to the said prevariety A that works as iPairing physical address reads the pairing cell phone system ROMPaq of this physical address image file fragment and preservation;
Step S013 according to from file allocation table, obtaining the pairing content of this bunch number Ai, judges whether cell phone system ROMPaq image file finishes, if not, gets into step S014; If get into step S016;
Step S014 is according to working as prevariety A iPairing content is obtained the following cluster A of cell phone system ROMPaq image file I+1, get into step S015;
Step S015, variable i gets into step S011 from adding one,
Step S016, program reads end.
For step S010, for fear of frequent SD is sticked into capable read operation, the space of preset buffer memory is marked segment space in user's available internal memory and is formed; And user's available internal memory itself is very limited, can't whole file allocation table be written into internal memory, therefore adopts the partial content with whole file allocation table to be kept in the preset buffer memory; Can predict through preset buffer memory which piece content is to be about to frequent access in the whole file allocation table, only this piece content is written into preset buffer memory and gets final product, and because non intelligent mobile phone is single-threaded; Escalation process only need 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 the scheme in the present embodiment; Can think, when basis is worked as prevariety A iFrom the file allocation table of buffer memory, obtain as prevariety A iDuring pairing content, all can find in the file allocation table of buffer memory as prevariety A iPairing content.Certainly work as according to working as prevariety A iFrom the file allocation table of buffer memory, obtain as prevariety A iPairing content, and can't find as prevariety A in the file allocation table of buffer memory iDuring pairing content, as long as update the content of buffer memory file allocation table, so as prevariety A iPairing content just can find.Therefore through file allocation table being kept at the scheme in the buffer memory; Can avoid continually SD being sticked into capable read operation; Simultaneously through with bunch mode all the content of mobile phone system upgrade program image file is read; Can avoid a large amount of calculating, thereby can save time, realize more efficient quick ground upgrading.
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 cell phone system ROMPaq image file, so the first bunch number of cell phone system ROMPaq image file can directly be obtained from root directory.
In order to realize the upgrading of system program; The present invention also provides the non intelligent mobile phone of first kind of embodiment; As shown in Figure 5; Can insert the SD card in the said mobile phone, said mobile phone comprises clock module flag register (not shown on the 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 is used for detection of handset and starts shooting;
Second detection module 2 is used for when first detection module 1 detects mobile phone power-on, and whether the particular combination key through the boot detection of handset is pressed;
First judge module 3 is used for when particular combination key that second detection module 2 detects this mobile phone is not pressed, judging in the present clock module flag register whether be the zone bit of downloading mode through boot;
Execution module 5, when being used for first judge module 3 and obtaining the clock module flag register or when second writing module 6 writes the zone bit of backup mode in the clock module flag register for the zone bit of non-downloading mode, the operational system program;
Second judge module 7 when said execution module 5 operational system programs, judges in the present clock module flag register whether be the zone bit of backup mode;
First writing module 4 is used for when second judge module 7 obtains the clock module flag register for the zone bit of backup mode, current RF calibration data being write in the SD card;
The 3rd judge module 8 is used for when second judge module 7 obtains the clock module flag register for the zone bit of non-backup mode, judging in the present clock module flag register whether be the zone bit of recovery pattern;
Read module 9; Be used for when first judge module 3 obtains the clock module flag register and writes the zone bit of downloading mode; Read the cell phone system ROMPaq image file in the SD card; And be used for when the 3rd judge module 8 obtains the clock module flag register for the zone bit of recovery pattern, reading in the RF calibration data in the SD card;
Preserve module 10, be used to preserve cell phone system ROMPaq image file and the RF calibration data that read module 9 reads;
Second writing module 6; When the particular combination key that detects this mobile phone when second detection module 2 is pressed; The zone bit of backup mode is write in the clock module flag register, perhaps when the cell phone system ROMPaq image file in the preservation module 10 preservation SD cards, the zone bit that recovers pattern is write in the clock module flag register; Perhaps when writing the RF calibration data in the SD card; The zone bit of downloading mode is write in the clock module flag register, when perhaps in preserving module 10, preserving the RF calibration data, the zone bit of normal mode is write in the clock module flag register;
Restart module 11, be used for when zone bit that second writing module 6 will recover pattern writes the clock module flag register, perhaps when second writing module 6 writes the zone bit of downloading mode in the clock module flag register; Perhaps when second writing module 6 writes the zone bit of normal mode in the clock module flag register, start again.
From above scheme, can find out; Through the clock module flag register zone bit of four kinds of patterns is carried out record; And from the SD card, download before the cell phone system ROMPaq image file; Earlier the RF calibration data are backed up, and after from the SD card, downloading cell phone system ROMPaq image file the RF calibration data are saved in the internal memory of mobile phone again, make non intelligent mobile phone can normally carry out the system program upgrading.
Further, in order to ensure the accuracy of cell phone system ROMPaq image file, in the present embodiment, said mobile phone also comprises the 4th judge module 12;
The 4th judge module 12 is used for after the cell phone system ROMPaq image file of preserving module 10 preservation SD cards, judges whether upgrading is successful;
Restart module 11, also be used for obtaining upgrading when unsuccessful start again when the 4th judge module 12;
Second writing module 6 also is used for when preservation module 10 is preserved the cell phone system ROMPaq image file of SD cards and upgraded successfully, the zone bit that recovers pattern being write in the clock module flag register.
Further, in order to let the user in time understand the upgrade status of mobile phone, in the present embodiment, said mobile phone also comprises the display module 13 of the judged result that is used to show the 4th judge module 12.
In practical implementation; For fear of frequent SD is sticked into capable read operation; Thereby avoid a large amount of calculating to save time; Said read module 9 comprises first reading unit, the first preservation unit, first acquiring unit, second acquisition unit, second reading unit, second preservation unit and the judging unit, preserves module 10 and comprises the first preservation unit and the second preservation unit;
First reading unit is used for reading from the SD card file allocation table of cell phone system ROMPaq image file;
The first preservation unit is used to preserve the file allocation table that first reading unit reads;
First acquiring unit; Be used to obtain cell phone system ROMPaq image file when prevariety number; And when receiving the judgement signal of judging unit, according to the following cluster number of obtaining cell phone system ROMPaq image file in the second acquisition unit when prevariety number pairing content;
Second acquisition unit, be used for according to first acquiring unit bunch number, the content of obtaining this bunch number physical address corresponding and from the file allocation table of first storage unit, obtaining this bunch number correspondence;
Second reading unit is used for according to the second acquisition unit physical address, reads the pairing cell phone system ROMPaq of this physical address image file;
The second preservation unit is used to preserve the cell phone system ROMPaq image file that second reading unit reads,
Judging unit is used for judging according to the content of obtaining this bunch number correspondence from the file allocation table of the first preservation unit whether cell phone system ROMPaq image file finishes, if not, output judges that signal is to first acquiring unit.
For preserving module 10 internal memory of mobile phone just; Comprise the storage space that boot, system program and user can use; Wherein the just preset spatial cache in the first preservation unit be used to preserve file allocation table, and the second preservation unit is used for saved system program and RF calibration data; The second preservation unit after the upgrading also is used to preserve the cell phone system ROMPaq image file that second reading unit reads, thereby realizes the upgrading of system program.
Further, if clock module power down once, the information of clock module preservation also just makes a mistake so; For preventing in the process of upgrading, to make a mistake, the present invention also provides the non intelligent mobile phone of second kind of embodiment, and is as shown in Figure 6; The difference of comparing with the non intelligent mobile phone of first kind of embodiment is; Whether once said mobile phone also comprises the 3rd detection module 14, be used for when particular combination key that second detection module 2 detects mobile phone is not pressed, detecting clock module power down;
First judge module 3 is used for detecting clock module not during power down once when the 3rd detection module 14, and whether boot is judged in the present clock module flag register is the zone bit of downloading mode;
Execution module 5; When being used for first judge module 3 and obtaining the clock module flag register for the zone bit of non-downloading mode; Perhaps when second writing module 6 writes the zone bit of backup mode in the clock module flag register; When perhaps the 3rd detection module 14 detects clock module power down once, the operational system program.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the method for a non intelligent mobile phone upgrade-system program, said mobile phone comprises SD card, the clock module flag register that stores the cell phone system ROMPaq, it is characterized in that, said method comprising the steps of:
When detecting mobile phone power-on, whether the particular combination key through the boot detection of handset is pressed;
When said particular combination key is pressed, write in the clock module flag register zone bit of backup mode and the operational system program;
When said particular combination key is not pressed, judge in the present clock module flag register whether be the zone bit of downloading mode through boot, if not, the zone bit of backup mode is write clock module flag register and operational system program; If, read the cell phone system ROMPaq image file in the SD card and write mobile phone, write in the clock module flag register zone bit that recovers pattern and start again;
When the operational system program; Judge in the present clock module flag register whether be the zone bit of backup mode; If, the RF calibration data in the mobile phone are backed up and write in the SD card, write in the clock module flag register zone bit of downloading mode and start again; If, do not judge in the present clock module flag register whether be the zone bit of recovery pattern;
When in the said clock module flag register during for the zone bit of recovery pattern, read the RF calibration data that are stored in the SD card and preserve, write in the clock module flag register zone bit of normal mode and start again;
When being the zone bit of non-recovery pattern in the said clock module flag register, the mobile phone normal boot-strap.
2. the method for claim 1 is characterized in that, and is when said particular combination key is not pressed, further comprising the steps of:
Detect whether once power down of clock module, if carry out the step of said operational system program; If, do not carry out said boot and judge in the present clock module flag register whether be the 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 the said SD of the reading card also writes mobile phone, specifically may further comprise the steps:
Read the file allocation table and the preservation of the file system of cell phone system ROMPaq image file in the SD card;
Obtain cell phone system ROMPaq image file when prevariety number, according to this bunch number, obtain this bunch number pairing physical address, and from file allocation table, obtain the content of this bunch number correspondence;
When prevariety number pairing physical address, read the pairing cell phone system ROMPaq of this physical address image file fragment and preservation according to said;
According to from file allocation table, obtaining this bunch number pairing content; Judge whether cell phone system ROMPaq image file finishes; If not, according to the following cluster of obtaining cell phone system ROMPaq image file when prevariety number pairing content number, according to the following cluster of cell phone system ROMPaq image file number; Obtain the physical address of said down cluster number; From file allocation table, obtain the content of this bunch number correspondence, and according to the physical address of said down cluster number, read the pairing cell phone system ROMPaq of this physical address image file fragment and preserve.
4. the method for claim 1 is characterized in that, the cell phone system ROMPaq image file in reading the SD card also writes after the step of mobile phone, and is further comprising the steps of:
Judge whether upgrading is successful, if not, start again; If carry out the step that the said zone bit that will recover pattern writes in the clock module flag register and starts shooting again.
5. whether successful method as claimed in claim 4 is characterized in that, after said judgement upgrading step, further comprising the steps of:
Whether the display system program updates is successful.
6. non intelligent mobile phone; Can insert the SD card in the said mobile phone; It is characterized in that; Store the cell phone system ROMPaq in the said SD card, said mobile phone comprises the clock module flag register, first detection module, second detection module, first judge module, execution module, first writing module, second writing module, second judge module, the 3rd judge module, read module, preservation module and restart module;
Whether first detection module is used for detection of handset and starts shooting;
Second detection module is used for when first detection module detects mobile phone power-on, and whether the particular combination key through the boot detection of handset is pressed;
First judge module is used for when particular combination key that second detection module detects mobile phone is not pressed, judging in the present clock module flag register whether be the zone bit of downloading mode through boot;
Execution module is used for when first judge module obtains the clock module flag register and in the clock module flag register, writes the zone bit of backup mode for the zone bit of non-downloading mode or second writing module operational system program;
Second judge module when said execution module operational system program, judges in the present clock module flag register whether be the zone bit of backup mode;
First writing module is used for when second judge module obtains the clock module flag register for the zone bit of backup mode, the RF calibration data in the mobile phone being backed up and writing in the SD card;
The 3rd judge module is used for when second judge module obtains the clock module flag register for the zone bit of non-backup mode, judging in the present clock module flag register whether be the zone bit of recovery pattern;
Read module; Be used for when first judge module obtains the clock module flag register and writes the zone bit of downloading mode; Read the cell phone system ROMPaq image file in the SD card; And be used for when the 3rd judge module obtains the clock module flag register for the zone bit of recovery pattern, reading the RF calibration data that are stored in the SD card;
Preserve module, be used for preserving cell phone system ROMPaq image file that read module reads and the RF calibration data that are stored in the SD card;
Second writing module; Be used for when particular combination key that second detection module detects mobile phone is pressed; The zone bit of backup mode is write in the clock module flag register, perhaps when the preservation module is preserved the cell phone system ROMPaq image file in the SD card, the zone bit that recovers pattern is write in the clock module flag register; When perhaps backing up and writing the RF calibration data in the mobile phone in the SD card; The zone bit of downloading mode is write in the clock module flag register, when perhaps in preserving module, being stored in the RF calibration data in the SD card, the zone bit of normal mode is write in the clock module flag register;
Restart module; Be used for when zone bit that second writing module will recover pattern writes the clock module flag register; Perhaps when second writing module writes the zone bit of downloading mode in the clock module flag register; Perhaps when second writing module writes the zone bit of normal mode in the clock module flag register, start again.
7. non intelligent mobile phone as claimed in claim 6 is characterized in that said mobile phone also comprises the 4th judge module;
The 4th judge module is used for behind the cell phone system ROMPaq image file of preserving module preservation SD card, judges whether upgrading is successful;
Saidly restart module, also be used for obtaining upgrading when unsuccessful start again when the 4th judge module;
Second writing module also is used for when preserving cell phone system ROMPaq image file that module preserves the SD card and obtain upgrading when successful when the 4th judge module, and the zone bit of recovery pattern is write in the clock module flag register.
8. non intelligent mobile phone as claimed in claim 7 is characterized in that said mobile phone also comprises the display module that is used to show the 4th judge module judged result.
9. non intelligent mobile phone as claimed in claim 6 is characterized in that said read module comprises first reading unit, preserves module and comprises the first preservation unit and the second preservation unit;
First reading unit is used for reading the file allocation table of SD card cell phone system ROMPaq image file;
The first preservation unit is used to preserve the file allocation table that first reading unit reads;
First acquiring unit, be used to obtain cell phone system ROMPaq image file when prevariety number;
Second acquisition unit, be used for according to first acquiring unit bunch number, the content of obtaining this bunch number physical address corresponding and from the file allocation table of the first preservation unit, obtaining this bunch number correspondence;
Second reading unit is used for according to the second acquisition unit physical address, reads the pairing cell phone system ROMPaq of this physical address image file fragment;
The second preservation unit is used to preserve the cell phone system ROMPaq image file fragment that second reading unit reads;
Judging unit is used for the content according to this bunch number correspondence of obtaining from the file allocation table of the first preservation unit, judges whether cell phone system ROMPaq image file finishes, if not, output judges that signal is to first acquiring unit.
10. non intelligent mobile phone; Said mobile phone can insert the SD card; It is characterized in that; Store the cell phone system ROMPaq in the said SD card, said mobile phone comprises clock module flag register, first detection module, second detection module, the 3rd detection module, first judge module, execution module, first writing module, second writing module, second judge module, the 3rd judge module, read module, preservation module and restarts module;
Whether first detection module is used for detection of handset and starts shooting;
Second detection module is used for when first detection module detects mobile phone power-on, and whether the particular combination key through the boot detection of handset is pressed;
Whether once the 3rd detection module is used for when particular combination key that second detection module detects mobile phone is not pressed, detecting clock module power down;
First judge module is used for detecting clock module not during power down once when the 3rd detection module, judges in the present clock module flag register whether be the zone bit of downloading mode through boot;
Execution module; Be used for when first judge module obtains the clock module flag register for the zone bit of non-downloading mode; When perhaps second writing module writes the zone bit of backup mode in the clock module flag register; When perhaps the 3rd detection module detects clock module power down once, the operational system program;
Second judge module when the operational system program, judges in the present clock module flag register whether be the zone bit of backup mode;
First writing module is used for when second judge module obtains the clock module flag register for the zone bit of backup mode, the RF calibration data in the mobile phone being backed up and writing in the SD card;
The 3rd judge module is used for when second judge module obtains the clock module flag register for the zone bit of non-backup mode, judging in the present clock module flag register whether be the zone bit of recovery pattern;
Read module; Be used for when first judge module obtains the clock module flag register and writes the zone bit of downloading mode; Read the cell phone system ROMPaq image file in the SD card; And be used for when the 3rd judge module obtains the clock module flag register for the zone bit of recovery pattern, reading the RF calibration data that are stored in the SD card;
Preserve module, be used for preserving cell phone system ROMPaq image file that read module reads and the RF calibration data that are stored in the SD card;
Second writing module; Be used for when particular combination key that second detection module detects mobile phone is pressed; The zone bit of backup mode is write in the clock module flag register, perhaps when the preservation module is preserved the cell phone system ROMPaq image file in the SD card, the zone bit that recovers pattern is write in the clock module flag register; When perhaps backing up and writing the RF calibration data in the mobile phone in the SD card; The zone bit of downloading mode is write in the clock module flag register, when perhaps in preserving module, being stored in the RF calibration data in the SD card, the zone bit of normal mode is write in the clock module flag register;
Restart module; Be used for when zone bit that second writing module will recover pattern writes the clock module flag register; Perhaps when second writing module writes the zone bit of downloading mode in the clock module flag register; Perhaps when second writing module writes the zone bit of normal mode in the clock module flag register, start again.
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 true CN102722378A (en) 2012-10-10
CN102722378B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677941A (en) * 2013-12-27 2014-03-26 北京大唐智能卡技术有限公司 Method and device for upgrading intelligent card operation system module
CN109491825A (en) * 2018-11-16 2019-03-19 Oppo广东移动通信有限公司 A kind of method, apparatus, storage medium and the terminal of positioning booting abnormal problem
CN111427604A (en) * 2020-04-20 2020-07-17 遂宁摩天时代科技有限公司 Remote software upgrading system and method based on functional mobile phone
CN116185461A (en) * 2023-04-28 2023-05-30 广东华芯微特集成电路有限公司 Firmware upgrading method and framework
CN118092818A (en) * 2024-04-26 2024-05-28 深流微智能科技(深圳)有限公司 SD card file management system, method and equipment

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

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677941A (en) * 2013-12-27 2014-03-26 北京大唐智能卡技术有限公司 Method and device for upgrading intelligent card operation system module
CN109491825A (en) * 2018-11-16 2019-03-19 Oppo广东移动通信有限公司 A kind of method, apparatus, storage medium and the terminal of positioning booting abnormal problem
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
CN116185461A (en) * 2023-04-28 2023-05-30 广东华芯微特集成电路有限公司 Firmware upgrading method and framework
CN118092818A (en) * 2024-04-26 2024-05-28 深流微智能科技(深圳)有限公司 SD card file management system, method and equipment
CN118092818B (en) * 2024-04-26 2024-07-19 深流微智能科技(深圳)有限公司 SD card file management system, method and equipment

Also Published As

Publication number Publication date
CN102722378B (en) 2015-09-30

Similar Documents

Publication Publication Date Title
CN106933593B (en) System switching method and device based on mobile terminal
CN101923473B (en) Embedded electronic device and method for updating firmware thereof
CN101188516B (en) A highly reliable and self-adapted remote update method for network device software system
CN101494930B (en) Intelligent terminal and upgrading method thereof
CN103176864B (en) A kind of backup method based on Android system, device and mobile terminal
US8683187B2 (en) Method and apparatus for booting hibernation in a portable terminal
CN102722378B (en) A kind of method of non intelligent mobile phone and its system program of upgrading
CN103150231A (en) Computer booting method and computer system
CN109086078B (en) Android system upgrading method and device, server and mobile terminal
KR101555210B1 (en) Apparatus and method for downloadin contents using movinand in portable terminal
CN103970557A (en) Storage device and system starting method thereof
CN100487648C (en) File update system and boot management system of mobile communication terminal,and its method
GB2463809A (en) Peripheral device operation method, peripheral device and host
CN102609290B (en) The method for upgrading software of electronic product
CN1936866A (en) Flash memory body storing mechanism with data restoring function
CN102799497A (en) Data recovery system and method for non-volatile random access memory (NVRAM)
CN1964526A (en) A method for hardware drive program of intelligent loading mobile phone
CN102622281A (en) Intelligent terminal and method of data backup and restore thereof
CN101854428A (en) Method for recovering files during mobile terminal startup
WO2015117356A1 (en) Start-up method and communication terminal
CN104765631A (en) Restoration method and device for application program of mobile terminal
US9572024B2 (en) Network upgrading-adaptive telephone number upgrading method and device for wireless terminal
CN114816491A (en) System upgrading method and device for multi-system mobile terminal and terminal
CN102184115B (en) Method for updating system software and terminal device
CN105786650A (en) Data management method and device

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