The collaborative method of using of the data structure of high-capacity SIM card phone directory
Technical field
What the present invention relates to is the method in a kind of telecommunication technology field, the collaborative method of using of particularly a kind of data structure of high-capacity SIM card phone directory.
Background technology
Expansion along with the human social circle of modern society has produced the demand that will store information such as a large amount of name of contact persons, telephone number.Be accompanied by advancing by leaps and bounds of modern communications technology, such demand is met on modern communication apparatus, the user can be stored in associated person information mobile phone or SIM (Subscribe Identity Module, user identity module are called for short SIM) and block in the telephone directory that provides.Along with being on the increase of associated person information, mobile phone or SIM card often do not satisfy user's storage needs owing to store quantitative limitation.Along with the continuous development of mobile phone technique, this problem has obtained solution on novel mobile phone now, and the memory capacity of these mobile phones temporarily can satisfy the needs of user storage associated person information, and the user satisfies the demand of oneself by continuous replacing mobile phone.Yet, because these mobile phones cost an arm and a leg, function pattern aspect may not meet user's needs, the reasons such as defective of original call book copy function, the inconvenience that certainly will bring the high cost of changing planes, new cell-phone function user to experience to the user, this method obviously is unfavorable for popularizing.SIM card provides the function of depositing associated person information (being telephone directory) equally, and when phone number was constant, it is less that the user changes the situation of SIM card, and the cost price of SIM card is also much lower than mobile phone, is convenient, reliably so telephone directory is placed in the SIM card.
Regulation according to the standard convention file " 3GPP TS 11.11 " of ETSI (European Telecommunications Standards Institute ETSI) definition, the form of telephone directory file EFadn in the SIM card is a log file, at most only to deposit 255 records, each record is made up of X+14 byte, wherein 1 to X byte is deposited name, and 14 bytes of back are deposited telephone number.Under such regulation, can only be confined to the name and the telephone number of storing contact on the telephone directory of user in SIM card, and sum also has been subjected to being no more than the restriction of 255 records.
For traditional SIM card, because its memory space (having only several K) is limited, above-mentioned standard can play the maximization to the operating factor of memory space of card.But for the high-capacity SIM card that continues to bring out, because (inside has EEPROM to its memory space, hundreds of K, even M level, G level) very big, the restriction that this standard embodied then greatly reduces the efficient on the storage space-time of card, has problems such as information memory capacity is very few, space occupancy is low.Simultaneously, the communication interface of traditional SIM card is SIO, and communication speed is also slower.
At present, please number the method that discloses a kind of extending user identification module phone directory in the patent of 02148613.1 (publication number is CN1418034A) in Datang Microelectronics Technology Co., Ltd, this method is that this memory block of extension telephones is set in traditional SIM card, stores the telephone number record of expansion.Because the capacity of traditional SIM card is limited all the time, this method is unfavorable for the needs of wider expansion too, and this method does not also propose to solve the method for the diversified problem of associated person information.
The SIM card of subsidiary a large amount of Nonvolatile memories and the communication interface (for example MMC, USB) of the high speed of visiting this piece internal memory is provided in the prior art, solution SIM card telephone directory capacity is too small with regard to giving, speed waits problem that hardware foundation is provided slowly for this, yet how to realize the application of high capacity telephone directory on this basis and make it using with traditional SIM card telephone directory is collaborative, break through the traditional number bar number and the restriction of the information content, better experience impression for the user, the anxious technical issues that need to address of this technical field have been become.
Summary of the invention
The objective of the invention is to overcome deficiency of the prior art, a kind of collaborative method of using of data structure of high-capacity SIM card phone directory is provided, realize the collaborative use of high-capacity SIM card phone directory storage mode and it and the interior telephone directory of traditional SIM card.Described high-capacity SIM card is meant and is equipped with other Nonvolatile memory ground SIM card of Mbytes level, and is typical in 64M, 128M, 256M or the like.
The present invention is achieved by the following technical solutions:
The present invention is having the big capacity Nonvolatile memory of Mbytes level, and the SIM card of high speed communication interface is called Super-SIM, is called for short S-SIM, can use the mobile phone of S-SIM to be called the S-SIM mobile phone.
The present invention includes following step:
(1) in two different storage areas of high-capacity SIM (S-SIM) card three telephone directory files are set: a main telephone book file, a picture telephone book file and an extension telephones book file, three telephone directory files will be made the as a whole phonebook function that high-capacity SIM card is provided.
Two different storage areas of described high-capacity SIM (S-SIM) card are respectively: " SIM " zone and " Flash " zone, wherein " SIM " zone also just is equivalent to a traditional SIM card, and " SIM " still is the ISO7816 interface with the communication interface of mobile phone; " Flash " region representation be big other Nonvolatile memory part of capacity Mbytes level that high-capacity SIM card is equipped with, the communication interface of " Flash " and mobile phone is MMC or USB interface.
Described three telephone directory files, it that step is set is as follows:
1. described main telephone book file is arranged on " SIM " zone, the feature of file is: the EFadn file (being defined in 3GPP TS 11.11) that still adopts traditional SIM card, be used for depositing the phone book records that leaves traditional SIM card EFadn originally in, promptly it just is equivalent to original traditional SIM card telephone directory file.
2. described picture telephone book file is arranged on " Flash " zone, the feature of file is: the phone book records that it is stored is corresponding one by one with record in the main telephone book file, be that picture telephone book file has the effective record (having stored recording of information) with main telephone book file similar number, each record of picture telephone book file is " image " of each record of corresponding main telephone book file.For example, have one and be recorded as " Zhang San, 13612345678 " in master's book, also must exist a name to be " Zhang San " so in the image book, number is the record of " 13612345678 ".
3. described extension telephones book file also is arranged on " Flash " zone, the feature of file is: it has deposited the information record that main telephone book file is filled with the contact person who exceeds 255 expansions behind the record.
(2) structure of the record in described picture telephone book file and the extension telephones book file is set, according to following step:
1. the regular length of record is set, and fixing record length can make mobile phone that any clauses and subclauses of file are carried out random access;
2. the data structure of record is set, allows record can store and discern the associated person information of name, telephone number and E-MAIL, picture even video type etc. easily.
(3) when using the telephone directory of this high-capacity SIM card, judge type of cell phone: regular handset or S-SIM mobile phone.
If regular handset carries out step (4); If the S-SIM mobile phone enters step (5).
(4) mobile phone is a regular handset, and is to the application of the telephone directory of high-capacity SIM card, identical with the book applications process of using traditional SIM card.
(5) mobile phone is the S-SIM mobile phone, carries out the initialization procedure operation of book applications earlier.Afterwards, enter step (6).
The initialization procedure of described book applications, be meant: a S-SIM card might be used by a non-S-SIM mobile phone, and in use the user might revise the content of main telephone book file (EFadn), because regular handset is not operated the physical interface of picture telephone book file, this just may cause the inconsistent result of recorded content in the record in the main telephone book file and its corresponding image telephone directory file in the S-SIM card.
Certainly, this does not have image for non-S-SIM mobile phone, but when this card is used by a S-SIM mobile phone again, just the problems referred to above may occur, therefore in the telephone directory initialization procedure on the S-SIM mobile phone, just need carry out some improvement.For the S-SIM mobile phone, the initialization procedure method of operating of its book applications, its step is as follows:
Step 1:S-SIM mobile phone loads main telephone book file EFadn earlier.Enter step 2.
The type of the card that step 2:S-SIM handset identity is loaded: high-capacity SIM card or traditional SIM card.If high-capacity SIM card enters step 3; If traditional SIM card enters step 6.
Step 3: from high-capacity SIM card, load picture telephone book file.Enter step 4.
Step 4: main telephone book file and picture telephone book file are write down union operation.Enter step 5.
Step 5: from high-capacity SIM card, load extension telephones book file.Enter step 6.
Step 6: the initialization procedure EO of book applications.
Described record union operation is meant: according to main telephone book file logging content, revising, deleting is not picture telephone book file logging one to one, and two file logging quantity, key message (name, telephone number information) are consistent.
(6) the S-SIM mobile phone is to the telephone directory file operation of high-capacity SIM card.
Described S-SIM mobile phone is to the telephone directory file operation of high-capacity SIM card, and concrete operations comprise:
1. add record;
2. search meets the record of specified conditions:
3. deletion meets the record of specified conditions;
4. upgrade a record;
5. in actual telephone directory uses, the user have be stored in phone book records in the mobile phone EMS memory all copy in the SIM card or the deletion SIM card in whole demands of phone book records, so the book applications of a S-SIM mobile phone must the record support batch duplicating and record deletion action in batches.
Described interpolation record, step is as follows:
Step 1: relevant informations such as the name of user by man-machine interface input contact person to be added, telephone number, E-mail address, carry out and add operation, enter step 2.
Step 2:S-SIM mobile phone searches whether null record is arranged in picture telephone book file; If null record is arranged, execution in step 3; Otherwise execution in step 4.
Step 3:S-SIM mobile phone deposits the associated person information (information such as name, telephone number, E-mail address) of user input in this null record in the picture telephone book file (being designated as " record A "), and name and these two fields of telephone number are deposited in the main telephone book file and corresponding that record of picture telephone book file logging A.Process finishes.
Step 4:S-SIM mobile phone searches whether null record is arranged in extension telephones book file; If null record is arranged, execution in step 5; Otherwise execution in step 6.
Step 5:S-SIM mobile phone deposits the associated person information (information such as name, telephone number, E-mail address) of user's input in the extension telephones book file this null record, and process finishes.
Step 6:S-SIM mobile phone prompting user: the telephone directory space is full, and it is invalid to add.Process finishes.
Described search meets the record of specified conditions, and step is as follows:
Step 1: the user is by the man-machine interface input search condition.Execution in step 2.
Step 2:S-SIM mobile phone is searched in picture telephone book file earlier according to condition.If search the record that meets search condition, result's (recorded information) is returned to the user; Process finishes.If do not search, execution in step 3.
Step 3:S-SIM mobile phone is searched in extension telephones book file.If search qualified record, result's (recorded information) is returned to the user; Process finishes.If do not search, execution in step 4.
Step 4:S-SIM mobile phone prompting user: Search Results is empty.Process finishes.
Described deletion meets the record of specified conditions, and step is as follows:
Step 1: the user imports the deletion condition, enters step 2.
Step 2:S-SIM mobile phone is searched in picture telephone book file earlier according to the deletion condition.If search, then all are met the record deletion of deletion condition, and the pairing record in main telephone book file of record in deletion simultaneously and the deleted picture telephone book file; Process finishes.If do not search, execution in step 3.
Step 3:S-SIM mobile phone is searched in extension telephones book file according to the deletion condition.If search, then all are met the record deletion of deletion condition; Process finishes.If do not search, execution in step 4.
Step 4:S-SIM mobile phone prompting user: it is invalid to delete.Process finishes.
Record of described renewal, step is as follows:
Step 1: relevant informations such as the name of the contact person record that the user upgrades by man-machine interface input, telephone number, E-mail address, carry out and upgrade operation, enter step 2.
Step 2: search for this record, if this contact person record is deposited in extension telephones book file, execution in step 3: if deposit in picture telephone book file, execution in step 4.
The former contact person record of step 3:S-SIM mobile phone in the contact person record information covering extension telephones book file that upgrades.Process finishes.
Step 4:S-SIM mobile phone covers former contact person record in the picture telephone book file with the contact person record that upgrades, and simultaneously with the name in the contact person record that upgrades, telephone number information partial update to this pairing record in master's book of image book clauses and subclauses that is corrected in.Process finishes.
Described record batch duplicating operation, step is as follows:
Step 1:S-SIM mobile phone takes out a non-null record (being assumed to record A) of telephone directory in the mobile phone in turn.
Step 2:S-SIM writes down this A (adding operating procedure 1. sees) in the telephone directory that adds the S-SIM card to, finishes duplicating of a record.
Step 3: repeating step 1,2: when the record of telephone directory in the mobile phone has all duplicated or in record interpolation process among the S-SIM mobile phone prompting S-SIM when " the telephone directory space is full ", process finishes.
Described record is deletion action in batches, and step is as follows:
Step 1: all records of main telephone book file in the deletion S-SIM card;
Step 2: all records of picture telephone book file in the deletion S-SIM card;
Step 3: all records of extension telephones book file in the deletion S-SIM card; Process finishes.
Compared with prior art, the present invention has following advantage and progress:
(1) is provided with main telephone book file, picture telephone book file and extension telephones book file in two memory spaces in high-capacity SIM card, main telephone book file is equivalent to traditional SIM card telephone directory file originally, and picture telephone book file and extension telephones book file are then expanded on the basis of main telephone book file.Present two aspects of this expanded body: on the one hand, the existence of extension telephones book file makes and can deposit a large amount of records that surpasses international standard regulation and stipulation number, has solved the problem of depositing the phone book records numerical limitations in the prior art; On the other hand, the data structure of the record of picture telephone book file and extension telephones book file, make every record not only can deposit name, telephone number, can also deposit other various types of information, broken through the restriction of the phone book information type of prior art.The inventive method can make can deposit in the telephone directory of jumbo SIM card that the bar number is more, the more colourful associated person information of information type.
(2) realized the compatibility that card and mobile phone use telephone directory effectively, embodied " concertedness ".According to the bright method of we, no matter the user uses regular handset or S-SIM mobile phone, application for the S-SIM card telephone directory all has extraordinary compatibility, the user need not to differentiate and writes down in the telephone directory from which telephone directory file, use interface for unified telephone directory of user, make the user in the application process to the S-SIM card telephone directory, the imperceptible fully a bit inconvenience that brings because of the difference of mobile phone support function makes the user really experience the use enjoyment of large size telephone directory.
Description of drawings
Fig. 1 is the structure chart of the telephone directory of high-capacity SIM card among the present invention.
Fig. 2 is the flow chart of the initialization procedure of the book applications of S-SIM mobile phone among the present invention.
Embodiment
Present embodiment is being to implement under the prerequisite with the technical solution of the present invention, provided detailed execution mode and concrete operating process, but protection scope of the present invention is not limited to following embodiment.
Present embodiment adopts: the New type of S of Korea S Samsung-SIM chip: model S3FJ9CH, be furnished with 128MNand Flash internal memory and MMC high speed communication interface.Concrete enforcement is as follows:
(1) as shown in Figure 1, three telephone directory files are set in high-capacity SIM card: main telephone book file EFadn is set in " SIM " zone, picture telephone book file and extension telephones book file are set in " Flash " zone.Supposition now:
1. among the main telephone book file EFadn 200 contact person records are arranged.
2. picture telephone book document number book and extension telephones book file leave among " Flash " of SIM card, and file is by name: SPB.dat.
3. in SPB.dat, each record is deposited successively; Here, telephone directory can be stored 5000 clauses and subclauses, and structure is as follows:
SPB.dat
Clauses and subclauses 1 |
Clauses and subclauses 2 |
?.... |
Clauses and subclauses 200 |
?..... |
Clauses and subclauses 5000 |
4. wherein preceding 255 records can be used by picture telephone book file, and its preceding 200 records are corresponding one by one with 200 contact person records in the main telephone book file, and picture telephone book file all the other 4745 records afterwards are expanded the use of telephone directory file.
(2) structure of the record in described picture telephone book file and the extension telephones book file is set, step is as follows:
Step 1: the size that each phone book records among the SPB.dat is set is 1K, and then the size of SPB.dat is 1K * 5000=5M.
Step 2: the data structure of record is set, is assumed to a kind of nested TLV structure (mark Tag, length L ength, value Value) at this.
Described nested TLV structure is meant: outermost TLV structure is " main TLV ", and the V part of main TLV is made up of several simple TLV--" field TLV " again.The various information types of field Tag part mark telephone directory, such as: name, telephone number, E-mail or the like; The byte length of Length part mark information thereafter; Value partly is the UCS2 coded representation of each information.
Described nested TLV structure for convenience of description, below provides a record instance, supposes:
1. the mark T of name field is 0x0001, and value V is " Zhang San ",
2. the mark T of number field is 0x0002, and value V is " 123 ",
4. there are not other fields,
5. each code field is UCS2,
6. the part of the not enough 1K of nested TLV can be filled with any byte of padding in the record.
Then 16 systems of clauses and subclauses of forming thus are expressed as:
010024000100045F204E09000200060031003200330003000E004100 400042002E0043004F004D+ byte of padding * (1024-0x24-3)
(3) mobile phone is used the telephone directory of this high-capacity SIM card, and the S-SIM card is judged mobile phone model.If regular handset enters step (4); If the S-SIM mobile phone enters step (5).
(4) mobile phone is a regular handset, and is to the application of the telephone directory of high-capacity SIM card, identical with the book applications process of using traditional SIM card.
(5) mobile phone is the S-SIM mobile phone, carries out the initialization procedure of book applications earlier, as shown in Figure 2.Enter step (6).
Described record merges, and for convenience of description, present embodiment provides a kind of method, existing supposition:
1. the n bar of remembering main telephone book file is recorded as Pn, remembers that the n bar in picture telephone book file corresponding with it is recorded as Sn;
2. the name field of remembering main telephone book file n bar record is Pn_name, and number field is Pn_number:
3. the name field of remembering picture telephone book file n bar record is Sn_name, and number field is Sn_number, and additional other field is Sn_additional.
4. the record number of remembering main telephone book file is Max.
The operating procedure that then described record merges is as follows:
Step 1: initial seasonal n=1.
Step 2: detect the state of n, whether n is greater than Max.If n is less than or equal to Max, enter step 3; If n greater than Max, enters step 9.
Step 3: judge whether Pn is null record.If Pn is null record, mark Sn is a disarmed state, enters step 8.If Pn is not null record, enter step 4.
Step 4: judge whether Sn and Pn be in full accord.If name, telephone number information among Sn and the Pn are identical, enter step 8; Otherwise, enter step 5.
Step 5: whether part is consistent with Pn to judge Sn.If Sn and name, telephone number information among the Pn have one identical, enter step 6; If the name among Sn and the Pn, telephone number information are all inequality, enter step 7.
Step 6: cover respective field among the Sn with name field among the Pn and phone number field, keep other added field among the Sn simultaneously, such as E-mail etc.Enter step 8.
Step 7:, delete all added field among the Sn simultaneously with the respective field among name field among the Pn and the phone number field covering Sn.Enter step 8.
Step 8: make n=n+1; Rebound begins to carry out from step 2.
Step 9: process finishes.
(6) after the initialization, the S-SIM mobile phone just can carry out various the operation to the telephone directory file of high-capacity SIM card, for convenience of description, has provided several examples below.
1. the user add a phone book records " Zhang San " (name: Zhang San, telephone number: 123, in the time of E-Mail:
[email protected]), mobile phone earlier in picture telephone book file search whether null record is arranged.If null record A is arranged, then with Zhang San, 123,
[email protected] according to record data structure (for example nested TLV structure is as follows:
010024000100045F204E09000200060034003500360003000E004100 400042002E0043004F004D+ byte of padding * (1024-0x24-3)) be stored in the A record, and Zhang San, 123 is stored in the corresponding record of main telephone book file; If picture telephone book file does not have the space, then this record is deposited in the extension telephones book file; If extension telephones book file does not have the space yet, mobile phone prompting user: memory space is full.
2. user's new record " Zhang San " more changes the telephone number of former record into " 456 ", and E-mail changes into:
[email protected]The time, then mobile phone is searched for " Zhang San " record successively in picture telephone book file and extension telephones book file.If in picture telephone book file, convert lastest imformation to record data structure (for example nested TLV structure is as follows: 010024000100045F204E09000200060031003200330003000E004300 400044002E0043004F004D+ byte of padding * (1024-0x24-3)) and cover in the former record, the name after will upgrading simultaneously, telephone number partly cover in the record of corresponding main telephone book file; If in extension telephones book file, only convert lastest imformation to nested TLV structure and cover in this record.
3. user search condition is: the record of name " Zhang San ", mobile phone are searched in picture telephone book file and extension telephones book file successively and are satisfied condition: the record of name " Zhang San ".If find, with this recorded content (nested TLV) convert to the readable information of user (for example " Zhang San, 456,
[email protected]") return to the user and check.
If do not search, then mobile phone is pointed out the user: Search Results is empty.
4. the user deletes a phone book records, and the deletion condition is name " Zhang San ", and then mobile phone is searched in picture telephone book file and extension telephones book file successively.If in picture telephone book file, searched, then delete this record full detail, and delete corresponding record in the main telephone book simultaneously.If in the extension telephones book, searched, then only delete this record and get final product; If all do not search, mobile phone prompting user: deletion failure.
More than the implementation result of Ying Yonging shows:
(1) method of the present invention is provided with three telephone directory files in high-capacity SIM card, main telephone book file wherein is identical with traditional SIM card telephone directory file, picture telephone book file and extension telephones book file are placed in " Flash ", as the SPB.dat in the present embodiment, be used for storage and expand associated person information, the record format of picture telephone book file and extension telephones book file.Compare with conventional art, storable contact person record number has been broken through the restriction that traditional SIM card telephone directory can only be deposited maximum 255 contact person records in high-capacity SIM card, for example can deposit nearly 5000 records in the present embodiment among the SPB.dat, so just quantitatively much bigger than traditional SIM card phone book records;
(2) method of the present invention provides the method for the structure that picture telephone book file and the file logging of extension telephones book are set, compare with conventional art, the information type that record in the high-capacity SIM card telephone directory is deposited has broken through traditional SIM card phone book records can only deposit name, the restriction of two types of information of telephone number, the user can be in the high-capacity SIM card telephone directory the colourful information of storing contact, for example name is deposited in record " Zhang San " decapacitation in the present embodiment, can also deposit information such as E-mail outside the telephone number, so just vividly many on the record type than traditional SIM card telephone directory.
(3) method set forth in the present invention has also realized the collaborative use of high-capacity SIM card telephone directory and traditional SIM card telephone directory, embody both ways: on the one hand, for regular handset, the application of the application of S-SIM card telephone directory and traditional SIM card telephone directory is identical; On the other hand, for the S-SIM mobile phone, the invention provides the telephone directory initial method, judge the SIM card type, traditional SIM card is not changed, and to write down union operation to the S-SIM card, for example adopted a kind of method that writes down merging in the present embodiment, after record merges as can be seen, main telephone book file and picture telephone book file logging content (on number and the key message) in full accord, promptly after initialization, use any kind (traditional SIM or S-SIM) the telephone directory file that the S-SIM mobile phone can be without a doubt.This two aspect has all embodied method of the present invention and has had well collaborative compatibility for traditional SIM card telephone directory and high-capacity SIM card telephone directory, makes the user really experience the use enjoyment of high-capacity SIM card telephone directory.