Summary of the invention
Main purpose of the present invention is to provide a kind of method, device and mobile phone of rapidly starting mobile phones, is intended to shorten the available machine time of mobile phone, promotes the user and experiences.
The invention provides a kind of method of rapidly starting mobile phones, may further comprise the steps:
Mobile phone EMS memory is divided into buffering area and memory block;
Phone directory data on the transmitting cell-phone card are to buffering area;
When the phone directory initialization, radio interface layer RIL reads the phone directory data and is saved in the memory block from buffering area; When the note initialization, radio interface layer RIL only reads the header of note in the mobile phone card and is saved in the memory block.
Preferably, before carrying out the phone directory initialization, also comprise:
Judge whether the mobile phone card that inserts is adaptive with draw-in groove; If adaptive, then enter initialize process; If not adaptive, then point out plug-in card to make mistakes.
Preferably, also comprise after in steps carrying out institute:
Judge whether the cell optimum frequency changes;
If the cell optimum frequency changes, then directly look for net according to operator's frequency search frequency range of setting;
If the cell optimum frequency does not change, then look for net according to the frequency search optimum frequency band that last time, shutdown was preserved.
Preferably, during described note initialization, radio interface layer RIL only reads the header of note in the card and is saved in the step of memory block and comprises:
Whether the prompting header is preserved successful.
Preferably, described radio interface layer RIL reads the phone directory data and is saved in the step of memory block from buffering area and comprises:
If calling the corresponding interface operates phone directory, then feed back phone directory and still carrying out initialization during this period.
The present invention also provides a kind of rapidly starting mobile phones device, is located in the mobile phone, comprising:
Main control unit is used for mobile phone EMS memory is divided into buffering area and memory block;
The phone directory transmission unit, the phone directory data that are used on the transmitting cell-phone card arrive described buffering area;
Radio interface layer RIL is provided with phone directory initialization unit and note initialization unit, and described phone directory initialization unit is used for reading the phone directory data and being saved in described memory block from described buffering area when the phone directory initialization; When described note initialization unit is used for the note initialization, only reads the header of note in the mobile phone card and be saved in the memory block.
Preferably, above-mentioned rapidly starting mobile phones device also comprises:
The draw-in groove judging unit is used for judging whether the card that inserts is adaptive with draw-in groove;
Initialization incision unit when card and draw-in groove are adaptive, enters initialize process;
Tip element, in the uncomfortable timing of card and draw-in groove, the prompting plug-in card is made mistakes.
Preferably, above-mentioned rapidly starting mobile phones device also comprises:
The frequency judging unit is used for judging whether the cell optimum frequency changes;
First looks for net unit, when the cell optimum frequency changes, directly looks for net according to operator's frequency search frequency range of setting;
Second looks for net unit, when the cell optimum frequency does not change, looks for net according to the frequency search optimum frequency band that last time, shutdown was preserved.
Preferably, described note initialization unit comprises:
Whether the header reminding module is used for the prompting header and preserves successful.
Preferably, described phone directory initialization unit comprises:
The progress feedback module is used for as if calling the corresponding interface phone directory being operated during the phone directory initialization, then feeds back phone directory and is still carrying out initialization.
The present invention also provides a kind of mobile phone, comprises internal memory, draw-in groove and intelligent use system, and described internal memory is used for the storage data, described draw-in groove and mobile phone card coupling, described intelligent use system contains phone directory and the short message application program of mobile phone, and wherein, this mobile phone also comprises above-mentioned device for rapidly starting.
The method of rapidly starting mobile phones provided by the present invention, device or mobile phone, the card initialization stage by the phone directory data are saved in the memory block and the header of short message reading only during in the note initialization from buffering area, reduced the transmission of data volume, thereby reduced initialization time, accelerate the toggle speed of mobile phone, promoted user's experience.
Embodiment
Among the present invention, mobile phone can be the smart mobile phone of high-pass platform, for example android mobile phone or Windows mobile mobile phone etc.To be example with the android dual-mode handset below, elaborate technical scheme of the present invention.Should be appreciated that specific embodiment described herein only in order to explaining the present invention, and be not used in restriction the present invention.
Fig. 1 shows the method flow of rapidly starting mobile phones in one embodiment of the present of invention, and this flow process may further comprise the steps:
Step S10 is divided into buffering area and memory block with mobile phone EMS memory; Internal memory in the android mobile phone is bigger, can deposit the data of larger capacity, thereby, buffering area can be set in advance, in order to when initialization, deposit the phone directory data in internal memory.
Step S20, the phone directory data on the transmitting cell-phone card are to buffering area; Above-mentioned internal memory is divided into after buffering area and the memory block, can the phone directory transfer of data on the mobile phone card be arrived buffering area by C or C Plus Plus programming.The mobile phone card can be 2G card or 3G card.
Step S30, when the phone directory initialization, radio interface layer RIL reads the phone directory data and is saved in the memory block from buffering area; When the note initialization, radio interface layer RIL only reads the header of note in the mobile phone card and is saved in the memory block.When handset starting, need read the phone directory data on the mobile phone card, for example the information such as telephone number of contact person and contact person's correspondence.In the prior art, during the phone directory data of RIL on reading card, generally go to read the data of phone directory to the mobile phone card by initiatively sending the instruction of reading phone directory in batches, preserve phone directory again to internal memory.Under the situation that phone directory is a lot of on the mobile phone card, may influence starting up speed.In the present embodiment, by with memory partitioning, the phone directory transfer of data that will block when card initialization when the phone directory initialization, will read the destination and change buffering area into then to buffering area, make RIL directly read the phone directory data from buffering area.It is very fast to read data speed from this locality, thereby compared with prior art can save the initialization time of phone directory.
In one embodiment, if will call the corresponding interface during the phone directory initialization operates phone directory, then application layer feedback phone directory is still carrying out initialization.For example, when the phone directory initialization, if the user will call phone directory and check contact person or contact phone, then application layer feedback phone directory is still carrying out initialization, and the user can not call the related telephone notebook data.
Note generally comprises header and note body, and header comprises 6~8 characters, in order to the transmission object of representing note or the title that receives object and note etc.; The note body is the flesh and blood of note.In the note initialization procedure, need short message reading and be saved in internal memory, in the prior art, general whole piece short message reading and preservation when initialization, data volume is bigger, thereby expends initialization time.Among the present invention when the note initialization header of short message reading only, the note body is waited until to start and is obtained after finishing the system of entering again, card can return preparation (ready) state more fast, afterwards just can continue the request in the net that issues because have only card to return standby condition, save the upper strata so greatly toward the time that issues request in the net.No matter be under single deck tape-recorder or the situation of two cards, thereby can both reduce volume of transmitted data by only transmitting the note header, improve the speed of start, shorten the available machine time.
Can comprise also among the above-mentioned steps S30 whether successful the prompting header is preserved.After the note initialization, the mobile phone card just can return standby condition and look for the net program then.Because the internal memory in the mobile phone is divided into buffering area and memory block two parts, in start-up course, if the header amount is bigger, and the memory block capacity that distributes is less, be not enough to header is all stored, then can before the mobile phone card is looked for the net program as yet, finish the initialization flow process according to prompting according to prompting.After waiting to redistribute buffering area and memory block, carry out above-mentioned flow process again, thereby save the available machine time; If header is preserved successfully, then the user can know in the startup process according to prompting, and aforementioned each initialize process make good progress, and grasps handset starting information then.
As shown in Figure 2, in above-described embodiment, before execution in step S20, also can comprise:
Step S100 judges whether the card that inserts is adaptive with draw-in groove, if adaptive, then enters initialize process; For example, Ruo Ka and draw-in groove are adaptive, then enter phone directory initialize process and note initialize process; If not adaptive, then point out plug-in card to make mistakes.Two dissimilar draw-in grooves are arranged in the android double model double standby phone, and for example one is the draw-in groove that is applicable to the 2G card, and another is the draw-in groove that is applicable to the 3G card.When two cards are inserted draw-in groove, if the wrong plug draw-in groove, mobile phone can't start.Among the present invention, can be by from the file of card, reading IMSI (International Mobile Subscriber Identity, international mobile subscriber identity) number judges the type of card, whether compare with draw-in groove sign then, get card release and draw-in groove and mate, that can guarantee the insertion of 2G draw-in groove is the 2G card or does not have card, and the CDMA card that the 3G draw-in groove inserts or do not have card, and then the initialization flow process of blocking, avoid also carrying out meaningless start under the situation of user's wrong plug card, expend start-up time.
In one embodiment, after carrying out above-mentioned steps S30, also can comprise:
Step S40 judges whether the cell optimum frequency changes; After above-mentioned phone directory initialization and note initialization were finished, card can return the state of having prepared, and prompting can be looked for the net program.During the operation of andriod mobile phone, can be in the frequency range that residential quarter operator supports, select the strongest frequency of signal to stay net, and the frequency that this signal is the strongest is kept among the NV RAM (NonvolatileRandom-Access Memory, nonvolatile ram) as best frequency other frequency in the residential quarter.Start is looked in the network process in next time, and (Advanced RISC Machines ARM) can read each frequency of preserving when shutting down last time, the signal strength signal intensity of searching for each frequency to microprocessor ARM from NV RAM.If last time the best frequency of shutdown preservation was consistent with the best frequency that this start searches, then mobile phone can find corresponding network according to best frequency very soon.In one embodiment, can judge whether the cell optimum frequency changes by obtaining the subdistrict position lastest imformation.For example, at mobile phone plug-in card again or when being in roaming state, can judge whether subdistrict position upgrades earlier during mobile phone power-on, if subdistrict position upgrades, accordingly, the signal strength signal intensity of each frequency correspondence is changed, and best frequency also changes; If subdistrict position does not upgrade, then search for the signal strength signal intensity of each frequency, judge whether the best frequency of last time shutdown preservation is consistent with the best frequency that this start searches.
Step S50 if the cell optimum frequency changes, then directly looks for net according to operator's frequency search frequency range of setting; In one embodiment, can be according to the judged result of frequency change, the selection parameter information of the best frequency that NV RAM preserves when not going to read to shut down last time is earlier looked for net but directly search for frequency range according to the frequency of operator's support.For example, generally by issuing in China Mobile, China Telecom or the CHINAUNICOM, three corresponding operator of operator frequencies have nothing in common with each other the mobile phone card.Above-mentioned looking in the network process can be set the RIL layer and directly look for net by corresponding operator of this operator frequency, thereby save time to find network according to mobile phone card operator.
Step S60 if the cell optimum frequency does not change, then looks for net according to the frequency search optimum frequency band that last time, shutdown was preserved.This step looks for the net flow process consistent with prior art, is not described further at this.
Judge at first among the present invention whether subdistrict frequency point changes, if change, then directly look for net by operator's frequency search frequency range of setting, then do not handle by present processing method if change, saved the search frequency and stayed the time of netting.
As shown in Figure 3, be the structural representation of rapidly starting mobile phones device in one embodiment of the present of invention.This device is located in the mobile phone, comprising:
Main control unit 10 is used for mobile phone EMS memory 100 is divided into buffering area 101 and memory block 102; Internal memory in the android mobile phone is bigger, can deposit the data of larger capacity, thereby, can buffering area be set in advance by main control unit 10 in internal memory, in order to when initialization, deposit the phone directory data.
Phone directory transmission unit 20, the phone directory data that are used on the transmitting cell-phone card arrive buffering area 101; Cocoa makes phone directory transmission unit 20 when card initialization the phone directory transfer of data be arrived buffering area 101 by C language or C Plus Plus programming.
Radio interface layer RIL30 is provided with phone directory initialization unit 31 and note initialization unit 32, and described phone directory initialization unit 31 is used for reading the phone directory data and being saved in memory block 102 from buffering area 101 when the phone directory initialization; When note initialization unit 32 is used for the note initialization, only reads the header of note in the mobile phone card and be saved in memory block 102.When handset starting, need read the above-mentioned phone directory of mobile phone card, for example the information such as telephone number of contact person and contact person's correspondence.Among the present invention, by with memory partitioning, phone directory transfer of data on will blocking when card initialization is to buffering area 101, and then during the phone directory initialization, set RIL and read the phone directory data from buffering area 101, it is very fast to read data speed from this locality, compared with prior art can save the initialization time of phone directory.In one embodiment, phone directory initialization unit 31 comprises progress feedback module 311, is used for calling the corresponding interface as if mobile phone during the phone directory initialization phone directory is operated, and is then still carrying out initialization by application layer feedback phone directory.
When note initialization unit 32 is used for the note initialization, sets application layer and only read the header of note in the card and be saved in memory block 102.In the note initialization procedure, need short message reading and be saved in internal memory 100, in the prior art, general whole piece short message reading and preservation when initialization, data volume is bigger, thereby expends initialization time.Among the present invention when the note initialization header of short message reading only, the note body is waited until to start and is obtained after finishing the system of entering again, card can return preparation (ready) state more fast, afterwards just can continue the request in the net that issues because have only card to return standby condition, save the upper strata so greatly toward the time that issues request in the net.No matter be under single deck tape-recorder or the situation of two cards, thereby can both reduce volume of transmitted data by only transmitting the note header, improve the speed of start, shorten the available machine time.Whether in one embodiment, note initialization unit 32 comprises header reminding module 321, be used for the prompting header and preserve successful.
Among the present invention, utilize above-mentioned main control unit 10 that mobile phone EMS memory 100 is divided into buffering area 101 and memory block 102, radio interface layer RIL30 can utilize phone directory initialization unit 31 to read data when carrying out the phone directory initialization from buffering area 101 and be saved in memory block 102, can save phone directory initialization time; Note initialization unit 32 can be extracted the header of note and be saved in memory block 102 when carrying out the note initialization, and the note body reads after startup again, has significantly reduced volume of transmitted data, thereby can save note initialization time.Adopt the rapidly starting mobile phones device among the present invention in sum, can effectively save the mobile phone power-on time, promote the user and experience.
As shown in Figure 4, above-mentioned rapidly starting mobile phones device also can comprise:
Draw-in groove judging unit 40 is used for judging whether the card that inserts is adaptive with draw-in groove;
Initialization incision unit 50 when card and draw-in groove are adaptive, enters initialize process;
Tip element 60 in the uncomfortable timing of card and draw-in groove, then points out plug-in card to make mistakes.
Two dissimilar draw-in grooves are arranged in the android double model double standby phone, and for example one is the draw-in groove that is applicable to the 2G card, and another is the draw-in groove that is applicable to the 3G card.When two cards are inserted draw-in groove, if the wrong plug draw-in groove, mobile phone can't start.Among the present invention, can utilize draw-in groove judging unit 40 by from the file of card, reading IMSI (International Mobile Subscriber Identity, international mobile subscriber identity) number judges the type of card, compare with the draw-in groove sign then, get card release and draw-in groove and whether mate.That guarantees that the 2G draw-in groove inserts is the 2G card or does not have card, and the CDMA card that inserts of 3G draw-in groove or do not have card, and then the initialization flow process of blocking, and avoids also carrying out meaningless start under the situation of user's wrong plug card, expends start-up time.
In one embodiment, above-mentioned rapidly starting mobile phones device also can comprise:
Frequency judging unit 70 is used for judging whether the cell optimum frequency changes; In one embodiment, frequency judging unit 70 can judge whether the cell optimum frequency changes by obtaining the subdistrict position lastest imformation.
First looks for net unit 80, when the cell optimum frequency changes, directly looks for net according to operator's frequency search frequency range of setting; In one embodiment, first look for net unit 80 to look for net according to operator's frequency search frequency range of setting according to the judged result of frequency change.
Second looks for net unit 90, when the cell optimum frequency does not change, looks for net according to the frequency search optimum frequency band that last time, shutdown was preserved.
Judge at first among the present invention whether subdistrict frequency point changes, if change, then directly look for net by operator's frequency search frequency range of setting, then do not handle by present processing method if change, saved the search frequency and stayed the time of netting.
The present invention also provides a kind of mobile phone, comprises internal memory, draw-in groove, intelligent use system and above-mentioned device for rapidly starting.
Below only be the preferred embodiments of the present invention; be not so limit claim of the present invention; every equivalent structure or equivalent flow process conversion that utilizes specification of the present invention and accompanying drawing content to do; or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.