Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
At first the method that a kind of communication terminal device of the embodiment of the invention is handled index information of phone book describes.As shown in Figure 1, comprising:
Step S101: when using the User Recognition card start-up first, read phone directory recording information from described Subscriber Identity Module, set up index information of phone book according to described phone directory recording information, and described index information of phone book is kept in the permanent storage media of the internal memory of described communication terminal device and described communication terminal device.
Step S102:, then from described permanent storage media, index information of phone book is read in the described internal memory if reuse described User Recognition card start-up.
Communication terminal device for example is devices such as mobile phone, family expenses mobile communication equipment.The family expenses mobile communication equipment can comprise two parts, a part is a terminal installation, i.e. telephone set, and another one partly is the mobile communication signal R-T unit, promptly can receive and dispatch the device of mobile communication signal, terminal installation and mobile communication signal R-T unit adopt the wired connection mode.Terminal installation or mobile communication signal R-T unit can be the devices of separation between machine and card, promptly, when terminal installation and mobile communication signal R-T unit need connect mobile communications network, a device in terminal installation or the mobile communication signal R-T unit needed to use Subscriber Identity Module to be connected with mobile communications network.
Phone directory recording information is meant each contact person's full detail, and a contact person's full detail for example comprises contact person's name, address, telephone number and other items.Index information of phone book is meant each contact person's essential information, and index information of phone book for example comprises information such as call number, contact person's Chinese phonetic and telephone number, and index information of phone book is not the visible information of user.Communication terminal device has internal memory and permanent storage media, exist in the communication terminal device function in the communication terminal device be equivalent to computer in have function in the computer, the function of the permanent storage media of communication terminal device in communication terminal device is equivalent to the function of permanent storage media in computer of computer.
When communication terminal device uses some User Recognition card start-ups first, need read phone directory recording information from this Subscriber Identity Module, set up index information of phone book according to described phone directory recording information afterwards, and described index information of phone book is kept in the permanent storage media of the internal memory of described communication terminal device and described communication terminal device.
When the user who uses communication terminal device need inquire about certain contact person's full detail, communication terminal device can go the phone directory recording information on the match user identification card according to index information of phone book of preserving in the internal memory and the information such as keyword (for example using contact person's the information such as name of user's input of communication terminal device) that obtain user's input, thereby finds the contact person's who needs inquiry full detail.
In actual applications, use the user of communication terminal device may change contact person's information, for example revise certain contact person telephone number, increase a contact person's full detail or delete certain information etc. of certain contact person.At this moment, communication terminal device not only will upgrade the phone directory recording information on the Subscriber Identity Module, also want the index information of phone book in updating memory and the permanent storage media, upgrade index information of phone book corresponding to upgrading phone directory recording information, specifically can comprise increase, deletion or revise contact person's index information.
When communication terminal device reuses same User Recognition card start-up, can directly from described permanent storage media, index information of phone book be read in the described internal memory.Optionally, when communication terminal device reuses same User Recognition card start-up, also can need not directly from described permanent storage media, index information of phone book to be read in the described internal memory, but after the triggering that the user who obtains the use communication terminal device need operate described phone directory recording information, from described permanent storage media, index information of phone book is read in the described internal memory again, afterwards according to the coupling of the index information of phone book in internal memory phone directory recording information.
If communication terminal device preceding once use same User Recognition card start-up after, upgraded index information of phone book, after then communication terminal device reuses same User Recognition card start-up, from described permanent storage media, read index information of phone book in the described internal memory and be exactly described before the index information of phone book that upgrades of start back once.
In actual applications, use the user of communication terminal device Subscriber Identity Module may be taken off from communication terminal device, and then again a Subscriber Identity Module is inserted in the communication terminal device, again the Subscriber Identity Module of Cha Ruing can be a new Subscriber Identity Module, also can be preceding nonrecoverable Subscriber Identity Module.When communication terminal device is reused a User Recognition card start-up, communication terminal device needs to check earlier the integrated circuit card sign (ICCID of the Subscriber Identity Module of reusing, Integrated CircuitCard Identity) and IMSI International Mobile Subscriber Identity (IMSI, International Mobile SubscriberIdentity), if find that the Subscriber Identity Module of reusing is not preceding nonrecoverable Subscriber Identity Module, then need to read again phone directory recording information, set up index information of phone book, index information of phone book is saved in internal memory and the medium operation of permanent storage media; If find that the Subscriber Identity Module of reusing is preceding nonrecoverable Subscriber Identity Module, then can directly from permanent storage media, index information of phone book be read in the internal memory, perhaps when follow-up needs use index information of phone book, from permanent storage media, index information of phone book is read in the internal memory, certainly, even find that the Subscriber Identity Module of reusing is preceding nonrecoverable Subscriber Identity Module, also can read phone directory recording information again, set up index information of phone book, index information of phone book is saved in internal memory and the medium operation of permanent storage media.
The method that above-mentioned communication terminal device is handled index information of phone book can be realized by the device of various ways, the device that wherein a kind of handles index information of phone book comprises: Subscriber Identity Module load bearing unit 201, start-up unit 202, information reading unit 203, index information processing unit 204, internal memory 205 and permanent storage media 206 as shown in Figure 2; When described Subscriber Identity Module load bearing unit 201 carries Subscriber Identity Module, described start-up unit 202 startup communication terminal devices first, described information reading unit 203 reads phone directory recording information from described Subscriber Identity Module, described index information processing unit 204 is set up index information of phone book according to described phone directory recording information, and described index information of phone book is kept in described internal memory 205 and the described permanent storage media 206; When described Subscriber Identity Module load bearing unit 201 carries described Subscriber Identity Module, described start-up unit 202 once more and starts communication terminal devices or afterwards, described information reading unit 203 reads index information of phone book in the described internal memory 205 from described permanent storage media 206.
Device shown in Figure 2 can also comprise information acquisition unit 207 and phone directory recording information matches unit 208, information acquisition unit 207 is used to obtain to use the information that the user imported of device shown in Figure 2, phone directory recording information matches unit 208 is used for using the phone directory recording information on the index information of phone book match user identification card of internal memory 205, to search the contact person's who needs information.In actual applications, when the user who uses device shown in Figure 2 need inquire about certain contact person's full detail, the information such as keyword (for example contact person's of user's input information such as name) that phone directory recording information matches unit 208 can be imported according to the user of index information of phone book of preserving in the internal memory 205 and 207 acquisitions of information acquisition unit are gone the phone directory recording information on the match user identification card, thereby find the contact person's who needs inquiry full detail.Specifically, at first, the user imports information such as keyword, corresponding, information acquisition unit 207 obtains information such as keyword, afterwards, information acquisition unit 207 offers phone directory recording information matches unit 208 with information such as keywords, find in the index information of phone book that phone directory recording information matches unit 208 uses information such as keywords to preserve from internal memory 205 and the corresponding index information of information such as keyword, and then find the contact person's corresponding information the phone directory recording information of use index information from Subscriber Identity Module with information such as keyword.
In actual applications, use the user of device shown in Figure 2 may change contact person's information, for example revise certain contact person telephone number, increase a contact person's full detail or delete certain information etc. of certain contact person.At this moment, index information processing unit 204 not only will upgrade the phone directory recording information on the Subscriber Identity Module, also want the index information of phone book in updating memory 205 and the permanent storage media 206, upgrade index information of phone book corresponding to upgrading phone directory recording information, specifically can comprise increase, deletion or revise contact person's index information.
When Subscriber Identity Module load bearing unit 201 carried same Subscriber Identity Module, start-up unit 202 startup communication terminal devices once more, information reading unit 203 can directly read index information of phone book in the described internal memory 205 from described permanent storage media 206.Optionally, when Subscriber Identity Module load bearing unit 201 carries same Subscriber Identity Module once more, when start-up unit 202 starts communication terminal device, also can need not information reading unit 203 directly reads index information of phone book in the described internal memory from described permanent storage media, but after information acquisition unit 207 obtains to use the triggering that the user of device shown in Figure 2 need operate described phone directory recording information, information reading unit 203 reads index information of phone book in the described internal memory 205 from described permanent storage media 206 again, afterwards, phone directory recording information matches unit 208 is according to the coupling of the index information of phone book in the internal memory 205 phone directory recording information.
If once carry same Subscriber Identity Module before the Subscriber Identity Module load bearing unit 201, after start-up unit 202 starts communication terminal device once more, index information processing unit 204 has upgraded index information of phone book, then Subscriber Identity Module load bearing unit 201 carries same Subscriber Identity Module once more, after start-up unit 202 started communication terminal device, the index information of phone book that information reading unit 203 reads from described permanent storage media 206 in the described internal memory 205 once carried same Subscriber Identity Module exactly before Subscriber Identity Module load bearing unit 201, after start-up unit 202 starts communication terminal device once more, the index information of phone book that index information processing unit 204 upgrades.
In actual applications, use the user of device shown in Figure 2 Subscriber Identity Module may be taken off from Subscriber Identity Module load bearing unit 201, and then again a Subscriber Identity Module is inserted in the Subscriber Identity Module load bearing unit 201, again the Subscriber Identity Module of Cha Ruing can be a new Subscriber Identity Module, also can be preceding nonrecoverable Subscriber Identity Module.When Subscriber Identity Module load bearing unit 201 carries a Subscriber Identity Module again, when start-up unit 202 starts communication terminal device, Subscriber Identity Module load bearing unit 201 needs to check earlier the ICCID and the IMSI of the Subscriber Identity Module of reusing, if find that the Subscriber Identity Module of reusing is not preceding nonrecoverable Subscriber Identity Module, the operation that then needs information reading unit 203 to read phone directory recording information again, index information processing unit 204 is set up index information of phone book again, index information of phone book is saved in internal memory 205 and permanent storage media 206 medium operations; If find that the Subscriber Identity Module of reusing is preceding nonrecoverable Subscriber Identity Module, then information reading unit 203 can directly read index information of phone book in the internal memory 205 from permanent storage media 206, perhaps when follow-up needs use index information of phone book, from permanent storage media 206, index information of phone book is read in the internal memory 205, certainly, even Subscriber Identity Module load bearing unit 201 finds that the Subscriber Identity Module of reusing is preceding nonrecoverable Subscriber Identity Module, information reading unit 203 also can read the operation of phone directory recording information again, and index information processing unit 204 is set up index information of phone book again, index information of phone book is saved in internal memory 205 and permanent storage media 206 medium operations.
Need to prove, each unit in the device shown in Figure 2 for example can be provided with or be applied in the communication terminal device such as mobile phone, family expenses mobile communication equipment, the working method of these unit in communication terminal device is identical with working method in device shown in Figure 2, repeats no more here.
For making those skilled in the art more clearly understand the embodiment of the invention, with an embodiment embodiment of the invention is described again below.
Suppose that the phone directory recording information of preserving in the SIM card is as shown in table 1:
Sequence number |
Name |
Telephone number |
The city, place |
1 |
Open * * |
139 |
Beijing |
2 |
Lee * * |
136 |
Shanghai |
Table 1
When mobile phone uses this SIM card, when starting shooting for the first time, reads the information shown in the table 1, set up index information of phone book as shown in table 2 according to the information shown in the table 1, and the index information of phone book shown in the table 2 is saved in internal memory and the permanent storage media.
Call number |
Keyword |
1 |
zhang×× |
2 |
li×× |
Table 2
When mobile phone uses this SIM card, each start after start for the first time or after starting shooting, from permanent storage media, index information of phone book is read in the internal memory.
When user's input of using mobile phone " zhang * * " need be searched the information of " open * * ", mobile phone can find that call number in the table 2 is 1 according to " zhang * * ", keyword is the index information of " zhang * * ", and then finds all information of relevant " open * * " in table 1 according to the index information that finds.Certainly, in actual applications, use the user of mobile phone to import " open * * ", at this moment, mobile phone needs earlier will " open * * " to be converted to keyword " zhang * * ", and then carries out search operation.
When the user need revise contact person's information, for example increase a contact person's information, mobile phone not only will be revised the phone directory recording information of preserving in the SIM card, also will revise the index information of phone book that is kept in internal memory and the permanent storage media.Suppose that the user needs to increase the information of " king * * ", then amended phone directory recording information is as shown in table 3:
Sequence number |
Name |
Telephone number |
The city, place |
1 |
Open * * |
139 |
Beijing |
2 |
Lee * * |
136 |
Shanghai |
3 |
The king * * |
137 |
Tianjin |
Table 3
Amended index information of phone book is as shown in table 4:
Call number |
Keyword |
1 |
zhang×× |
2 |
li×× |
3 |
wang×× |
Table 4
Need to prove, understand phone directory recording information and index information of phone book for ease of those skilled in the art here, just use the form of form to show phone directory recording information and index information of phone book.In actual applications, phone directory recording information and index information of phone book are not that the user is visible, but are stored in respectively in SIM card, internal memory or the permanent storage media with data mode.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-OnlyMemory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.