[go: up one dir, main page]

CN101827140A - Method for writing data in user identification module card and mobile terminal - Google Patents

Method for writing data in user identification module card and mobile terminal Download PDF

Info

Publication number
CN101827140A
CN101827140A CN200910056920A CN200910056920A CN101827140A CN 101827140 A CN101827140 A CN 101827140A CN 200910056920 A CN200910056920 A CN 200910056920A CN 200910056920 A CN200910056920 A CN 200910056920A CN 101827140 A CN101827140 A CN 101827140A
Authority
CN
China
Prior art keywords
data
flag bit
write command
bit
module card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN200910056920A
Other languages
Chinese (zh)
Other versions
CN101827140B (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.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai 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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN200910056920.4A priority Critical patent/CN101827140B/en
Publication of CN101827140A publication Critical patent/CN101827140A/en
Application granted granted Critical
Publication of CN101827140B publication Critical patent/CN101827140B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

The invention relates to a mobile communication technology, and discloses a method for writing data in a user identification module card and a mobile terminal. In the invention, a bit in an EF file marks that a quite long data record is being written in, and whether the data record is written in is marked through the value of the bit. Therefore, when the mobile terminal or an SIM card is abnormal or powers off suddenly the mobile terminal can know some updated data contents are lost through the value of the bit, i.e. the data record is incorrect; and therefore, the data in the SIM card which is being updated is judged as invalid, so that after the mobile terminal or the SIM card recovers normal or is electrified again, the data can be written in again or a user can choose to delete the data, so as to ensure the accuracy of the updated data in the SIM card.

Description

Method for writing data in subscriber identification module card and mobile terminal
Technical Field
The present invention relates to mobile communication technology, and in particular, to a mobile terminal in mobile communication technology.
Background
Mobile communications are changing the way humans live and work. The mobile communication system relates to a plurality of disciplines, such as telecommunication network technology, computer network and terminal technology, signal processing technology, multimedia transmission technology, very large scale integrated circuit design technology, embedded real-time multitask software technology, microwave and electromagnetic field technology, etc., which are mutually fused and penetrated and are specially used for bearing various mobile services.
In a mobile communication system, a module for providing user identification is an important component of a mobile terminal device, so that a user does not need to change numbers and input information such as a telephone directory again for the convenience of changing the device, and the module for providing user identification is generally manufactured by using an IC card technology. Taking Global System for mobile Communication ("GSM") System as an example, a Subscriber identity Module ("SIM") card providing Subscriber identity Identification is an IC card, which stores Subscriber information, encryption keys and other contents, and is used by GSM network to identify the Subscriber identity and encrypt voice information during the Subscriber call. A SIM card for identifying the identity of a user uniquely identifies one user, the SIM card can be inserted into any GSM mobile phone for use, and communication charges generated by using the mobile phone are automatically recorded in an account of the user uniquely identified by the SIM card, so that the user and the mobile phone can be separated. In addition, the SIM card can also have a storage function, can store telephone numbers, short messages and the like, and the large-capacity SIM card also supports downloading an upgrading software package from a network side to provide richer services for users. After the development of the mobile communication system in the 3G era, USIM (also called a Universal Subscriber identity Module, USIM for short) cards have also come into existence. Note that the SIM referred to hereinafter in this specification refers broadly to SIM and USIM.
With the continuous evolution of mobile communication technology, SIM cards are being used to store increasingly large amounts of user data and network data, such as large-capacity phone books, short messages, etc., in mobile communication terminal devices.
At present, a mobile terminal side sends an Application Protocol Data Unit (APDU) command to a SIM card through a Cu interface, and writes Data to be stored into a basic File (EF) in the SIM card. Because the capacity of a single EF in the SIM card is limited, when the content of a record (e.g. a phonebook record) of certain data is too long, a plurality of EFs are associated by using a certain rule, the whole record is divided into a plurality of parts, and the parts of data are stored in the associated EFs respectively through a plurality of command APDUs.
However, the inventor of the present invention finds that, in the current technology, since the mobile terminal side sends the command APDU to the SIM card through the Cu interface and waits for the corresponding asynchronous response APDU to implement the read/write operation of the SIM card, each command APDU can only update one fixed-size recording area in one EF, and if the content of the data is too long, multiple command APDUs need to be sent in an asynchronous manner to complete the update of the data. Therefore, if a power-off or malfunction occurs suddenly while the mobile terminal is updating a record whose content is too long, only a part of the transmission and response reception of the command APDU may be completed, resulting in the content of the data record being partially lost and unrecoverable, i.e., an incorrect data record will be left in the SIM card.
Disclosure of Invention
The invention aims to provide a method for writing data in a subscriber identity module card and a mobile terminal, so that the mobile terminal can identify the integrity of data records in an SIM card, and the accuracy of updated data in the SIM card is ensured.
In order to solve the above technical problem, an embodiment of the present invention provides a method for writing data in a subscriber identity module card, including the following steps:
when data to be written into the subscriber identity module card needs to occupy at least two basic files EF, or although only one EF is occupied, the data is written into the subscriber identity module card and a plurality of write commands need to be asynchronously sent to the subscriber identity module card, one bit in the EF is used as a flag bit for marking whether the data is completely written into the subscriber identity module card;
during the writing of data, the flag bit is assigned to a specific value indicating that data is being written;
after the writing of the data is completed, the flag bit is assigned to a specific value indicating that the data has been completely written.
An embodiment of the present invention further provides a mobile terminal, including:
the judging module is used for judging whether the data to be written into the user identification module card needs to occupy at least two basic files EF or only occupies one EF, but the data written into the user identification module card needs to asynchronously send a plurality of writing commands to the user identification module card;
the assignment module is used for assigning the zone bit to a specific value indicating that data is being written in the writing process of the data and assigning the zone bit to a specific value indicating that the data is completely written in after the writing of the data is finished; the flag bit is a bit in the EF and is used for marking whether the data is completely written into the subscriber identity module card or not;
the judging module indicates the assignment module to assign the flag bit when judging that the data needs to occupy at least two basic files EF or only occupies one EF, but the data is written in and a plurality of write commands need to be asynchronously sent to the user identification module card.
Compared with the prior art, the implementation mode of the invention has the main differences and the effects that:
a data record of a relatively large length is currently being written, marked by a bit in the EF file, whose value identifies whether the writing of the data record has been completed. Therefore, when the mobile terminal or the SIM is abnormal or suddenly powered off, the mobile terminal can know that the content part of the updated data is lost through the value of the bit, that is, the data record is an incorrect data record, so that the data being updated in the SIM card can be determined as invalid data, so that the data can be rewritten or deleted after the mobile terminal or the SIM is recovered to be normal or powered on again, and the accuracy of the updated data in the SIM card is ensured.
Drawings
Fig. 1 is a flowchart of a method of writing data in a SIM card according to a first embodiment of the present invention;
FIG. 2 is EF according to a first embodiment of the present inventionMMsNThe (4) th +5 th byte schematic diagram;
fig. 3 is a flowchart of a method of writing data in a SIM card according to a second embodiment of the present invention;
FIG. 4 is EF according to a third embodiment of the present inventionMBDNSchematic diagram of the X +2 th byte.
Detailed Description
In the following description, numerous technical details are set forth in order to provide a better understanding of the present application. However, it will be understood by those skilled in the art that the technical solutions claimed in the present application can be implemented without these technical details and with various changes and modifications based on the following embodiments.
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
In the present embodiment, a description is given by taking an example of writing a long multimedia message Notification record (MMS Notification) in an SIM card, where the MMS Notification record is divided into 2 components and is respectively stored in EF of record typeMMsNAnd EFEXT8In (1) by EFMMsNAs a flag bit for marking whether the data has been completely written into the SIM card. The specific flow is shown in figure 1.
In step 110, the mobile terminal sends a message to the SIM cardA special command APDU, to EFMMsNThe flag bit in (1) is assigned to a particular value (e.g., assigned to 1) indicating that data is being written.
Specifically, when the multimedia message notification record is long (if 2 EFs need to be occupied), the multimedia message notification record is usually stored in the EFMMsNAnd EFEXT8In (1). Wherein, EFMMsNThe recording format of the beginning part containing the multimedia message notification is shown in table 1:
Figure B2009100569204D0000051
TABLE 1
The X +4 th byte "Extension file record number" identifies that the information Extension part of the same multimedia message notification record is located in EFEXT8Record number in (1). In addition, on the basis of the 3 GPP-specified recording format, an X +5 th byte "Dirty Flag" is added, and the format thereof includes 8 bits "b 1" to "b 8", a "b 1" as a Flag for marking whether data has been completely written into the SIM card, and "b 2" to "b 8" as reserved bits that can be used in the future, as shown in fig. 2.
In the prior art, at least two command APDUs are required to be sent by a mobile terminal to update a certain long multimedia message notification message from an SIM, wherein a first write command APDU updates an EFEXT8Of a second write command APDU updates the EFMMsNOne record in (2).
In this embodiment, the mobile terminal writes the EFEXT8Before, a special command APDU is sent to the SIM card, and the EF is sentMMsNThe "b 1" in the middle X +5 byte is assigned a particular value (e.g., assigned a value of 1) indicating that data is being written.
In step 120, the mobile terminal sends a write command APDU to the SIM card to update the EFEXT8The recording of (1).
Then, atIn step 130, the mobile terminal sends a write command APDU to the SIM card to update the EFMMsNAnd, at the same time, the EFMMsN"b 1" in byte X +5 is reset, i.e., "b 1" is assigned a specific value, such as 0, indicating that the data has been completely written.
In the embodiment, a data record with a relatively large length is currently written by using a bit (bit) mark in the EF file, and whether the writing of the data record is completed is identified by the value of the bit. Therefore, when the mobile terminal or the SIM is abnormal or suddenly powered off, the mobile terminal can know that the content part of the updated data is lost through the value of the bit, that is, the data record is an incorrect data record, so that the data being updated in the SIM card can be judged as invalid data, so that the data can be rewritten or deleted after the mobile terminal or the SIM is recovered to be normal or powered on again, and the accuracy of the updated data in the SIM card is ensured.
Moreover, when the current mobile terminal updates data, if a plurality of EFs need to be occupied, the write command of the EF occupied by the information extension part is generally sent first, and finally, the write command of the basic EF with the extension record identifier is sent. Thus, this embodiment writes to EFEXT8Before, EF beginsMMsNThe value of "b 1" in the middle X +5 byte is assigned as a specific value indicating that data is being written, and when the last write command APDU is sent, not only the EF is updatedMMsNThe recorded multimedia message notification information is recorded, and meanwhile, the flag bit 'b 1' is reset to 0, which indicates that the operation of writing data is completely finished, and the existing mobile terminal does not need to be changed greatly, so that the embodiment can be conveniently applied.
A second embodiment of the present invention relates to a method of writing data in a SIM card. The second embodiment is substantially the same as the first embodiment, differing primarily in that: in the first embodiment, before sending the first write command to the SIM card, the mobile terminal sends a command for assigning a flag bit to the SIM card, and assigns the flag bit to indicate that data is being writtenThen sends the EF occupied by the information extension portion (i.e., EF)EXT8) Finally sends the EF containing the flag bit (i.e. EF)MMsN) At sending EFMMsNThe write command of (2) indicates that the flag bit is reset.
However, in this embodiment (as shown in fig. 3), the mobile terminal first sends EF (i.e. EF) containing flag bit to the SIM cardMMsN) And indicates in the write command that flag bit "b 1" be assigned to a particular value indicating that data is being written. Then, the EF occupied by the information extension part is sent again (namely, the EFEXT8) The write command of (1). And finally, sending an APDU again, resetting the flag bit and indicating that the operation of writing data is completely finished.
In addition, it can be understood that, in addition to the first and second embodiments of the present application, other implementation manners are also possible, for example, before the mobile terminal sends the first write command to the subscriber identity module card, the mobile terminal sends a command for assigning a flag bit to the subscriber identity module card, and assigns the flag bit to a specific value indicating that data is being written. After the writing of the data is completed, a command for resetting the flag bit is sent to the SIM card. That is, the assignment of the flag bits is realized by a separate command regardless of the execution order of the write commands.
A third embodiment of the present invention relates to a method of writing data in a SIM card. The third embodiment is substantially the same as the first embodiment, and differs mainly in that: in the first embodiment, the bit "b 1" as the flag bit is a bit in one byte (X +5 bytes) added in the EF. However, in the present embodiment, the bits as the flag bits are bits that are not effectively used in the byte defined by the specification in EF, and a description will be given below by taking as an example writing a long Mailbox number record (Mailbox numbering Numbers) in the sim card.
The mailbox number record is divided into multiple components and stored in EFMBDNAnd EFEXT6In (1). Wherein, EFMBDNContaining records of mailbox numbersAt the beginning, the record format is shown in table 2:
TABLE 2
The X +2 th byte "TON and NPI" identifies the type of mailbox number, but the "b 8" of this byte is always 1 and is not used effectively, so in this embodiment, this "b 8" can be used as a "flag bit", i.e., the whole byte format is as shown in fig. 4.
The updating process of the mailbox number record is similar to that of the first embodiment, that is, before sending the first write command to the SIM card, the mobile terminal sends a command for assigning the flag bit to the SIM card, and then the EF is assignedMBDNThe "b 8" of the X +2 th byte is assigned a specific value indicating that data is being written, and then the EF occupied by the information extension (i.e., EF) is transmittedEXT6) Finally sends the EF containing the flag bit (i.e. EF)MBDN) At sending EFMBDNThe flag bit is reset as instructed in the write command of (1), and will not be described in detail herein.
It is easy to find that, in this embodiment, by using a bit that has been defined by the 3GPP specification but is not effectively used in the EF file to mark that a data record with a relatively large length is currently being written, all currently commercially available SIM cards can support the implementation of the technical solution of the present invention.
In addition, it is understood that the bits as the flag bits may be other idle bits or bits that are assigned but have no practical meaning.
A fourth embodiment of the present invention relates to a method of writing data in a SIM card. The embodiment is further improved on the basis of the third embodiment, and the main improvement is as follows: in the third embodiment, the updated mailbox number record is a complete data record, that is, the flag bit indicates the complete data to be updated; in the present embodiment, the flag indicating whether the operation of writing data has been completed completely indicates whether the update of one component in the data to be updated has been completed completely.
For example, the mobile terminal needs to update a certain record in the user's phone book, and needs to update the following 3 files:
EFADN(Abbreviated dialling numbers),EFEXT1(E×tension1),EFANR(Additional Number)
wherein, EFADN(Abbreviated calling numbers) and EFEXT1(E × tension1) is used to store a long main number, EFANR(Additional Number) and EFEXT1(E × tension1) is used to store a long secondary number. Whether the updating operation of the primary number and the secondary number is completely finished or not is indicated through the two flag bits respectively.
Due to EFADNAnd EFANRRecording format and EFMBDNThe recording formats of (a) are completely similar. Therefore, like the third embodiment, EF is used in the present embodimentADNAnd EFANRThe "b 8" in the X +2 th bytes "TON and NPI" of these two EF bits is used as a flag. Moreover, since in the prior art, the update flow of the record is generally as follows:
for simplicity, this embodiment only considers a case where the extension parts of the primary number and the secondary number are short. Updating the subscriber's directory entry to the SIM by the mobile terminal requires sending four command APDUs, the first of which updates the EFEXT1Of (2) one record (storing the second half of the secondary number), the second write command APDU updating the EFANROne record (storing the first half of the secondary number), and a third write command APDU to update the EFEXT1Of the fourth write command APDU updates the EFADNOne record (first half of the main number stored)
Therefore, for better compatibility with the prior art, the update procedure of the present embodiment is actually similar to that of the third embodiment, and specifically as follows:
before sending the first write command APDU, adding a special command APDU to update EFANRThe role of (1) is to record the EFANRThe flag bit in the record (i.e., "b 8" in the X +2 th byte "TONAND NPI") is assigned a particular value, such as 0, indicating that data is being written. Then sends APDU update EF to SIM according to the original sequenceEXT1The recording of (1). Then sends an updated EFANRWhen APDU is written, not only EF is updatedANRThe flag bit is reset to 1, indicating that the operation of writing the sub-number is completed. Before the original third write command APDU (the second half of the main number), a special command APDU is added, and the EF is converted into the first halfADNThe flag bit in the record (i.e., "b 8" in the X +2 th byte "TON and NPI") is assigned a value that indicates that data is being written, such as 0. Then sends APDU update EF to SIM according to the original sequenceEXT1The recording of (1). Then sends an updated EFADNWhen APDU is written, not only EF is updatedADNWhile also resetting the dirty flag bit to 1, indicating that the operation of writing the main number has been completed.
It is readily appreciated that as communications technologies develop, the capacity of a single SIM card data record increases, such as a large-capacity subscriber directory record, a subscriber record including a subscriber's primary telephone number, secondary telephone number, email address, primary name string, secondary name string, corresponding telecommunications bearer capability, corresponding directory packet information, and so on, may be stored in a distribution of dozens of different but interrelated EFs. Therefore, in the present embodiment, when the data size being updated is relatively large, the large data size can be divided into a plurality of components, and when each component is written into the SIM card, whether the data of the component is completely written is identified by the flag bit in the EF. That is, by marking a plurality of components currently writing a data record with a large data volume with one bit of each associated EF file, so that the mobile terminal or the SIM is abnormal or suddenly powered down, a specific component of the data being updated in the SIM card can be determined to be invalid. After the mobile terminal or the SIM returns to normal, the part of data can be rewritten or deleted.
It should be noted that, in each of the above embodiments, the data to be written into the SIM card occupies a plurality of different EFs, and the EF occupied by the information extension portion and the EF including the flag bit are different EFs. In practical application, however, when the data to be written into the SIM card only occupies one EF, but multiple write commands need to be asynchronously sent to the SIM card when the data is written, the above embodiment of the present application may also be adopted, that is, one bit in the occupied EF is used as a flag bit for marking whether the data has been completely written into the SIM card, and in the process of writing the data, the flag bit is assigned as a specific value indicating that the data is being written; after the writing of the data is completed, the flag bit is assigned to a specific value indicating that the data has been completely written.
Additionally, method embodiments of the present invention may be implemented in software, hardware, firmware, and the like. Whether implemented in software, hardware, or firmware, the instruction code may be stored in any type of computer-accessible memory (e.g., permanent or modifiable, volatile or non-volatile, solid or non-solid, fixed or removable, etc.). Also, the Memory may be, for example, Programmable Array Logic (PAL), Random Access Memory (RAM), Programmable Read Only Memory (PROM), Read-Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), a magnetic disk, an optical disk, a Digital Versatile Disk (DVD), or the like.
A fifth embodiment of the present invention relates to a mobile terminal including:
the judging module is used for judging whether the data to be written into the SIM card needs to occupy at least two basic files EF or whether the data needs to asynchronously send a plurality of writing commands to the SIM card when being written into the SIM card although only one EF is occupied; and the assignment module is used for assigning the zone bit to a specific value indicating that the data is being written in the write-in process of the data, and assigning the zone bit to a specific value indicating that the data is completely written in the write-in process after the write-in of the data is completed. The flag bit is a bit in EF and is used to mark whether the data has been completely written into the SIM card. The judging module indicates the assignment module to assign the flag bit when judging that the data needs to occupy at least two basic files EF or only occupies one EF but needs to asynchronously send a plurality of write commands to the SIM card when writing the data.
Wherein, the assignment module comprises the following sub-modules:
and the write command submodule is used for writing data into the SIM card by sending a write command to the SIM card.
And the special value setting submodule is used for assigning the zone bit to a special value by sending a setting command to the SIM card. Before the write command submodule sends the first write command to the SIM card, the specific value setting submodule sends a setting command to the SIM card and assigns the flag bit to a specific value representing that data is being written.
The write command submodule first sends a write command of the EF occupied by the information extension portion to the SIM card, and finally sends a write command of the EF including the flag bit, and in the write command sent finally, indicates the specific value setting submodule to reset the flag bit, it should be noted that these EFs may also be the same EF.
In the present embodiment, the bits as the flag bits are bits in one byte added to EF.
Because the embodiment utilizes a flag bit (dirty flag bit) in the EF file to mark that a data record with a relatively large length is currently written, if the mobile terminal or the SIM is abnormal or suddenly powered off, the data which is being updated but has not been updated in the SIM card can be determined as invalid data. After the mobile terminal or the SIM recovers to be normal, the dirty flag bit can be read for identification, and then the data is selected to be rewritten or deleted.
It is to be understood that the first embodiment is a method embodiment corresponding to the present embodiment, and the present embodiment can be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first embodiment.
A sixth embodiment of the present invention relates to a mobile terminal, and is basically the same as the fifth embodiment except that: in a fifth embodiment, before the write command submodule sends the first write command to the SIM card, the specific value setting submodule of the assignment module sends the set command to the SIM card first, and assigns the flag bit to the specific value indicating that data is being written, and the write command submodule sends the write command of the EF occupied by the information extension portion to the SIM card first, and finally sends the write command of the EF including the flag bit, and in the write command sent last, instructs the specific value setting submodule to reset the flag bit.
However, in this embodiment, the write command submodule in the assignment module first sends a write command including the EF of the flag bit to the SIM card, and indicates the specific value setting submodule in the write command to assign the flag bit to the specific value indicating that data is being written, and then sends the write command of the EF occupied by the information extension portion to the SIM card. And the specific value setting submodule sends a command for resetting the zone bit to the SIM card after the write command submodule sends the last write command.
It is to be understood that the second embodiment is a method embodiment corresponding to the present embodiment, and the present embodiment can be implemented in cooperation with the second embodiment. The related technical details mentioned in the second embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the second embodiment.
A seventh embodiment of the present invention relates to a mobile terminal, and is basically the same as the fifth embodiment except that: in the fifth embodiment, the bit as the flag bit is a bit in one byte added to EF; in the present embodiment, the bits as the flag bits are bits that are not effectively utilized in the byte defined by the specification, and if a longer Mailbox number record (Mailbox numbering Numbers) is written in the SIM card, the EF is setMBDN"b 8" of the X +2 th byte "TON and NPI" is used as a flag bit.
In the embodiment, a bit which is already defined by the specification of the 3GPP SIM card but is not effectively utilized in the EF file is used to mark that a data record with a relatively large length is currently written, so that all currently commercial SIM cards or SIM cards conforming to the specification of the 3GPP SIM card can support the realization that the integrity of the data record in the SIM card can be recognized by the mobile terminal, thereby ensuring the accuracy of the updated data in the SIM card.
It is to be understood that the third embodiment is a method embodiment corresponding to the present embodiment, and the present embodiment can be implemented in cooperation with the third embodiment. The related technical details mentioned in the third embodiment are still valid in this embodiment, and therefore, in order to reduce the repetition, the details are not described here. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the third embodiment.
An eighth embodiment of the present invention relates to a mobile terminal, and the present embodiment is basically the same as the seventh embodiment except that: in the seventh embodiment, it is indicated by the flag whether the writing operation of the complete data to be updated (e.g. a mailbox number record) has been completed completely; in the present embodiment, the flag indicating whether the operation of writing data has been completed completely indicates whether the update of one component in the data to be updated has been completed completely.
For example, by updating EFADN、EFEXT1And EFANRWriting a longer record (containing a long primary number and a long secondary number) in the user's telephone directory into the SIM card, then passing through EFANR"b 8" in "TON and NPI" of the X +2 th byte, marks whether the secondary number information has been completely written into the SIM card; by EFADNThe "b 8" in the X +2 th byte "TON and NPI" marks whether the primary number information has been completely written into the SIM card.
It is to be understood that the fourth embodiment is a method embodiment corresponding to the present embodiment, and the present embodiment can be implemented in cooperation with the fourth embodiment. The related technical details mentioned in the fourth embodiment are still valid in this embodiment, and therefore, in order to reduce the repetition, the details are not described here. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the fourth embodiment.
It should be noted that, each unit mentioned in each device embodiment of the present invention is a logical unit, and physically, one logical unit may be one physical unit, or may be a part of one physical unit, or may be implemented by a combination of multiple physical units, and the physical implementation manner of these logical units itself is not the most important, and the combination of the functions implemented by these logical units is the key to solve the technical problem provided by the present invention. Furthermore, the above-mentioned embodiments of the apparatus of the present invention do not introduce elements that are less relevant for solving the technical problems of the present invention in order to highlight the innovative part of the present invention, which does not indicate that there are no other elements in the above-mentioned embodiments of the apparatus.
While the invention has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention.

Claims (11)

1. A method for writing data in a subscriber identity module card, comprising the steps of:
when data to be written into a subscriber identity module card needs to occupy at least two basic files EF, or although only one EF is occupied, when a plurality of write commands need to be asynchronously sent to the subscriber identity module card when the data is written, one bit in the EF is used as a flag bit for marking whether the data is completely written into the subscriber identity module card;
during the writing of the data, the flag bit is assigned to a specific value indicating that data is being written;
after the writing of the data is completed, the flag bit is assigned to a specific value indicating that the data has been completely written.
2. The method of claim 1, wherein the bits as flags are bits that are not effectively utilized in bytes defined by the EF.
3. The method of claim 1, wherein the bits as flag bits are bits in one byte added in the EF.
4. The method of claim 1, wherein the flag bits are assigned to corresponding specific values during and after the writing of the data is completed by:
before sending a first write command to the user identification module card, the mobile terminal sends a command for assigning the zone bit to the user identification module card, and assigns the zone bit to a specific value representing that data is being written;
the mobile terminal firstly sends a write command of EF occupied by the information extension part and finally sends a write command of EF containing the flag bit, wherein the EF occupied by the information extension part and the EF containing the flag bit are different EF or the same EF;
and the mobile terminal indicates to reset the flag bit in the last sent write command.
5. The method of claim 1, wherein the flag bits are assigned to corresponding specific values during and after the writing of the data is completed by:
the mobile terminal firstly sends a write command of EF containing the flag bit to the SIM card, and indicates the flag bit to be assigned as a specific value representing that data is being written in the write command;
the mobile terminal sends a write command of an EF occupied by an information extension part to the SIM card, wherein the EF occupied by the information extension part and the EF containing the flag bit are different EF or the same EF;
and the mobile terminal sends a command for resetting the flag bit to the subscriber identity module card.
6. The method of writing data in a subscriber identity module card according to any of claims 1 to 5, wherein the data is complete data to be updated; or,
the data is a component of the data to be updated.
7. A mobile terminal, comprising:
the judging module is used for judging whether the data to be written into the subscriber identification module card needs to occupy at least two basic files EF or whether the data needs to asynchronously send a plurality of writing commands to the subscriber identification module card although only one EF is occupied;
the assignment module is used for assigning a flag bit to a specific value indicating that data is being written in the data writing process, and assigning the flag bit to the specific value indicating that the data is completely written in the data writing process after the data writing process is finished; the flag bit is a bit in the EF and is used to mark whether the data has been completely written into the subscriber identity module card;
and the judging module indicates the assignment module to assign the flag bit when judging that the data needs to occupy at least two basic files EF or only occupies one EF but writing the data needs to asynchronously send a plurality of write commands to the subscriber identity module card.
8. The mobile terminal according to claim 7, wherein the bit as the flag bit is a bit that is not effectively utilized in a byte that has been defined by a specification in the EF; or,
the bit as the flag bit is a bit in one byte added in the EF.
9. The mobile terminal of claim 7, wherein the assignment module comprises the following sub-modules:
the write command submodule is used for writing the data into the subscriber identity module card by sending a write command to the subscriber identity module card;
a specific value setting submodule for assigning the flag bit to a specific value by sending a setting command to the subscriber identity module card;
the special value setting sub-module firstly sends a setting command to the subscriber identity module card before the write command sub-module sends a first write command to the subscriber identity module card, and assigns the flag bit as a special value representing that data is being written;
the write command submodule firstly sends a write command of EF occupied by the information extension part to the subscriber identity module card, and finally sends a write command of EF containing the flag bit, and indicates the specific value setting submodule to reset the flag bit in the finally sent write command, wherein the EF occupied by the information extension part and the EF containing the flag bit are different EF or the same EF.
10. The mobile terminal of claim 7, wherein the assignment module comprises the following sub-modules:
the write command submodule is used for writing the data into the subscriber identity module card by sending a write command to the subscriber identity module card;
a specific value setting submodule for assigning the flag bit to a specific value by sending a setting command to the subscriber identity module card;
the write command submodule firstly sends a write command of EF containing the flag bit to the subscriber identity module card, and indicates the specific value setting submodule to assign the flag bit to a specific value indicating that data is being written in the write command; the write command submodule sends a write command of the EF occupied by the information extension part to the subscriber identity module card, wherein the EF occupied by the information extension part and the EF containing the flag bit are different EF or the same EF;
and the specific value setting sub-module sends a command for resetting the zone bit to the user identification module card after the write command sub-module sends the last write command.
11. The mobile terminal of claim 7, wherein the data is complete data to be updated; or,
the data is a component of the data to be updated.
CN200910056920.4A 2009-03-03 2009-03-03 Method for writing data in user identification module card and mobile terminal Active CN101827140B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910056920.4A CN101827140B (en) 2009-03-03 2009-03-03 Method for writing data in user identification module card and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910056920.4A CN101827140B (en) 2009-03-03 2009-03-03 Method for writing data in user identification module card and mobile terminal

Publications (2)

Publication Number Publication Date
CN101827140A true CN101827140A (en) 2010-09-08
CN101827140B CN101827140B (en) 2014-06-18

Family

ID=42690836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910056920.4A Active CN101827140B (en) 2009-03-03 2009-03-03 Method for writing data in user identification module card and mobile terminal

Country Status (1)

Country Link
CN (1) CN101827140B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102621975A (en) * 2012-04-25 2012-08-01 广州茂腾信息科技有限公司 Remote management system for power failure equipment
CN103617053A (en) * 2013-11-13 2014-03-05 深圳创维数字技术股份有限公司 Method and device for upgrading software
CN103744746A (en) * 2013-12-30 2014-04-23 北京工业大学 Index-based smart card record backup and recovery method
CN103401765B (en) * 2013-08-06 2017-12-19 惠州Tcl移动通信有限公司 A kind of transmission method of voice messaging
CN107615786A (en) * 2016-04-27 2018-01-19 华为技术有限公司 The method and relevant device of flow package are provided
CN107783827A (en) * 2016-08-31 2018-03-09 北京国双科技有限公司 Asynchronous task processing method and processing device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101226604A (en) * 2007-01-19 2008-07-23 东信和平智能卡股份有限公司 Smart card and data write-in method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321336B (en) * 2007-06-06 2012-11-14 锐迪科微电子(上海)有限公司 High-capacity data interchange method between mobile terminal and smart card

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101226604A (en) * 2007-01-19 2008-07-23 东信和平智能卡股份有限公司 Smart card and data write-in method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102621975A (en) * 2012-04-25 2012-08-01 广州茂腾信息科技有限公司 Remote management system for power failure equipment
CN103401765B (en) * 2013-08-06 2017-12-19 惠州Tcl移动通信有限公司 A kind of transmission method of voice messaging
CN103617053A (en) * 2013-11-13 2014-03-05 深圳创维数字技术股份有限公司 Method and device for upgrading software
CN103744746A (en) * 2013-12-30 2014-04-23 北京工业大学 Index-based smart card record backup and recovery method
CN103744746B (en) * 2013-12-30 2016-08-03 北京工业大学 A kind of intelligent card records backup based on index and restoration methods
CN107615786A (en) * 2016-04-27 2018-01-19 华为技术有限公司 The method and relevant device of flow package are provided
US10827078B2 (en) 2016-04-27 2020-11-03 Huawei Technologies Co., Ltd. Traffic package providing method and related device
CN107783827A (en) * 2016-08-31 2018-03-09 北京国双科技有限公司 Asynchronous task processing method and processing device
CN107783827B (en) * 2016-08-31 2021-06-08 北京国双科技有限公司 Asynchronous task processing method and device

Also Published As

Publication number Publication date
CN101827140B (en) 2014-06-18

Similar Documents

Publication Publication Date Title
CN101827140B (en) Method for writing data in user identification module card and mobile terminal
EP1895790B1 (en) A communication method between a handset device and IC cards and corresponding system
EP1611752B1 (en) Method and system for file management in a mobile network
CN112637799A (en) 5G terminal identification method and device
CN101651731A (en) Method and system for managing address book and mobile terminal
CN102308561A (en) ME network parameters configuration by UICC
US6178336B1 (en) Subscriber identity module for a mobile telecommunications terminal, and a mobile telecommunications terminal
CN102082873B (en) Starting method, mobile terminal and user identification card
JP5011738B2 (en) IC card, program
US6895428B2 (en) Method of storing e-mail address information on a SIM card
KR102037556B1 (en) Method and device for upgrading telephone number in wireless terminal self-adaptive network upgrade
EP2063614A1 (en) Communication terminal device, access controlling method, and smart card
US20030067909A1 (en) Method and apparatus for setting up a communications link
JP2015527003A (en) Method, apparatus and terminal for storing communication record in user identification card
US20130143625A1 (en) Speed Dialing Method, Subscriber Identity Module/User Identity Model and Mobile Terminal
CN103369512A (en) Phone book management method
US20090093271A1 (en) Access To Contact Connectors Of A Mobile Terminal From Another Mobile Terminal
KR100986835B1 (en) Method and device for providing personal information management service using large capacity smart card
US7542772B2 (en) Method for storing short message service in a mobile communication terminal
EP2986036B1 (en) Method of accessing contact features in smartcards
CN101958952B (en) Processing method and equipment for user identity module (UIM) card phone book
KR20170023052A (en) Method for providing multi number service
CN108632806A (en) A kind of intelligent card data wiring method and device
EP1510091B1 (en) Communication method, Communication device and SIM-card with a directory
CN101227665A (en) IC card system, communication terminal using the same and method of manufacturing the same

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
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20170112

Address after: Room 32, building 3205F, No. 707, Zhang Yang Road, free trade zone,, China (Shanghai)

Patentee after: Xin Xin Finance Leasing Co.,Ltd.

Address before: 201203 Shanghai city Zuchongzhi road Pudong Zhangjiang hi tech park, Spreadtrum Center Building 1, Lane 2288

Patentee before: Spreadtrum Communications (Shanghai) Co.,Ltd.

TR01 Transfer of patent right

Effective date of registration: 20170707

Address after: 100033 room 2062, Wenstin Executive Apartment, 9 Financial Street, Beijing, Xicheng District

Patentee after: Xin Xin finance leasing (Beijing) Co.,Ltd.

Address before: Room 32, building 707, Zhang Yang Road, China (Shanghai) free trade zone, 3205F

Patentee before: Xin Xin Finance Leasing Co.,Ltd.

TR01 Transfer of patent right
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20100908

Assignee: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

Assignor: Xin Xin finance leasing (Beijing) Co.,Ltd.

Contract record no.: 2018990000163

Denomination of invention: Method for writing data in user identification module card and mobile terminal

Granted publication date: 20140618

License type: Exclusive License

Record date: 20180626

TR01 Transfer of patent right

Effective date of registration: 20200309

Address after: 201203 Zuchongzhi Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai 2288

Patentee after: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

Address before: 100033 room 2062, Wenstin administrative apartments, 9 Financial Street B, Xicheng District, Beijing.

Patentee before: Xin Xin finance leasing (Beijing) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200529

Address after: 361012 unit 05, 8 / F, building D, Xiamen international shipping center, No.97 Xiangyu Road, Xiamen area, China (Fujian) free trade zone, Xiamen City, Fujian Province

Patentee after: Xinxin Finance Leasing (Xiamen) Co.,Ltd.

Address before: 201203 Zuchongzhi Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai 2288

Patentee before: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

TR01 Transfer of patent right
EC01 Cancellation of recordation of patent licensing contract

Assignee: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

Assignor: Xin Xin finance leasing (Beijing) Co.,Ltd.

Contract record no.: 2018990000163

Date of cancellation: 20210301

EC01 Cancellation of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20100908

Assignee: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

Assignor: Xinxin Finance Leasing (Xiamen) Co.,Ltd.

Contract record no.: X2021110000010

Denomination of invention: Method of writing data in user identification module card and mobile terminal

Granted publication date: 20140618

License type: Exclusive License

Record date: 20210317

EE01 Entry into force of recordation of patent licensing contract
TR01 Transfer of patent right

Effective date of registration: 20230717

Address after: 201203 Shanghai city Zuchongzhi road Pudong New Area Zhangjiang hi tech park, Spreadtrum Center Building 1, Lane 2288

Patentee after: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

Address before: 361012 unit 05, 8 / F, building D, Xiamen international shipping center, 97 Xiangyu Road, Xiamen area, China (Fujian) pilot Free Trade Zone, Xiamen City, Fujian Province

Patentee before: Xinxin Finance Leasing (Xiamen) Co.,Ltd.

TR01 Transfer of patent right