WO2016179866A1 - Method and system for updating smart card of mobile terminal - Google Patents

Method and system for updating smart card of mobile terminal Download PDF

Info

Publication number
WO2016179866A1
WO2016179866A1 PCT/CN2015/080794 CN2015080794W WO2016179866A1 WO 2016179866 A1 WO2016179866 A1 WO 2016179866A1 CN 2015080794 W CN2015080794 W CN 2015080794W WO 2016179866 A1 WO2016179866 A1 WO 2016179866A1
Authority
WO
WIPO (PCT)
Prior art keywords
smart card
file
identification number
updated content
card
Prior art date
Application number
PCT/CN2015/080794
Other languages
French (fr)
Chinese (zh)
Inventor
覃磊
丛文
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016179866A1 publication Critical patent/WO2016179866A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices

Definitions

  • This paper relates to the field of mobile communications, and in particular, to a method and system for updating a smart card of a mobile terminal.
  • SIM Subscriber Identity Module
  • UIM User Identity Module
  • GSM Global System for Mobile Communication
  • the digital mobile terminal of the Global System for Mobile Communication (GSM) standard must be installed with a SIM card.
  • the SIM card stores the information, key and other contents of the digital mobile terminal client on a computer chip, which can be used for authenticating the user identity of the GSM network and encrypting the voice information of the user during the call.
  • UIM is a mobile communication terminal user identification and encryption technology advocated by China Unicom and supported by the International Code Division Multiple Access (CDMA) (CDMA Development Group).
  • UIM supports dedicated authentication encryption algorithms and over-the-air technology (OTA), which can update and manage data on UIM cards through wireless air interface.
  • OTA over-the-air technology
  • the function of the UIM card is similar to the SIM card used in the GSM mobile phone. It can perform user identification and communication encryption, and can also store personal information such as phone numbers, business card holders, and short messages.
  • the SIM card and the UIM card are collectively referred to as a smart card.
  • the update interval between the second generation mobile communication technology (2G), the third generation mobile communication technology (3G), and the fourth generation mobile communication technology (4G) is getting shorter and shorter.
  • network upgrades drive the replacement of mobile terminals and smart cards.
  • the smart card used in the 4G network has a larger storage space and a more secure authentication and encryption scheme than the smart card of the 2G/3G network.
  • the network is upgraded to 4G. If users want to enjoy the convenience brought by 4G network, they need to go to the business hall to replace the smart card that supports 4G network, or replace the smart card after making an online reservation. inconvenient.
  • the embodiment of the invention provides a method and a system for updating a smart card of a mobile terminal, and solves the problem that the smart card of the mobile terminal needs to be replaced in the related art to solve the problem of updating the smart card when the mobile network is replaced.
  • a method for updating a smart card of a mobile terminal comprising: receiving, by a mobile terminal, an update content of a smart card by using a Bearer Independent Protocol (BIP); and performing the update content according to the type of the updated content and a required storage space Storage, wherein the type of the updated content includes a smart card file identified by a file identification number and information not identified by a file identification number.
  • BIP Bearer Independent Protocol
  • the method further includes: initiating a remote update smart card request to the server.
  • the method further includes: receiving a notification of the remote update smart card sent by the server.
  • storing the updated content according to the type of the updated content and the required storage space including:
  • the smart card file updates the original file on the smart card corresponding to the file identification number.
  • storing the updated content according to the type of the updated content and the required storage space including:
  • the updated content of the smart card is a smart card file whose file identification number already exists on the smart card, and the storage space required by the smart card file is inconsistent with the storage space occupied by the original file on the smart card corresponding to the file identification number
  • the original file on the smart card corresponding to the file identification number is set with a special flag for indicating that the smart card file is stored to the selected storage location, and the selected storage location is a storage location other than the smart card;
  • the smart card file is stored to the selected storage location.
  • storing the updated content according to the type of the updated content and the required storage space including:
  • the smart card file is stored to The selected storage location, the selected storage location being a storage location other than the smart card.
  • the method before storing the smart card file to the selected storage location, the method further includes: saving the identification information of the smart card to the selected storage location.
  • the selected storage location comprises a flash memory T card or a memory of the mobile terminal.
  • storing the updated content according to the type of the updated content and the required storage space including:
  • the original information corresponding to the smart card is updated with the information not identified by the file identification number.
  • the smart card comprises a customer identification module SIM card or a user identification module UIM card.
  • the information not identified by the file identification number includes encryption information or authentication information.
  • a system for updating a smart card of a mobile terminal, configured on the mobile terminal includes:
  • a receiving module configured to receive an update of the smart card through the BIP
  • a storage module configured to store the updated content according to the type of the updated content and a required storage space, where the type of the updated content includes a smart card file identified by a file identification number and a file identification number Identification information.
  • system further includes: a sending module, configured to initiate a remote update smart card request to the server before the receiving module receives the updated content of the smart card through the BIP.
  • a sending module configured to initiate a remote update smart card request to the server before the receiving module receives the updated content of the smart card through the BIP.
  • the receiving module is further configured to receive a notification of the remote update smart card sent by the server before receiving the updated content of the smart card by using the BIP.
  • the storage module is configured to:
  • the smart card file is used to update the original file on the smart card corresponding to the file identification number.
  • the system further includes: a processing module, configured to: when the updated content of the smart card is a smart card file whose file identification number already exists on the smart card, and the storage space size and the file identifier required by the smart card file If the storage space occupied by the original file on the smart card corresponding to the number is inconsistent, the original file on the smart card corresponding to the file identification number is cleared, and a special flag is set to indicate that the smart card file is stored to the selected storage location, and the selected storage location is a storage bit other than the smart card;
  • a processing module configured to: when the updated content of the smart card is a smart card file whose file identification number already exists on the smart card, and the storage space size and the file identifier required by the smart card file If the storage space occupied by the original file on the smart card corresponding to the number is inconsistent, the original file on the smart card corresponding to the file identification number is cleared, and a special flag is set to indicate that the smart card file is stored to the selected storage location, and the selected storage location is a
  • the storage module is configured to store the smart card file to the storage location.
  • the storage module is configured to: when the updated content of the smart card is a smart card file whose file identification number does not exist on the smart card, and the storage space required by the smart card file is not greater than the selected storage location
  • the smart card file is stored to the storage location when the storage space is sized, and the selected storage location is a storage bit other than the smart card.
  • the storage module is further configured to save the identification information of the smart card to the storage location before storing the smart card file to the storage location.
  • the storage location comprises a flash memory T card or a memory of the mobile terminal.
  • the storage module is configured to: when the updated content of the smart card is information that is not identified by the file identification number, update the corresponding original information on the smart card by using the information that is not identified by the file identification number.
  • the smart card comprises a customer identification module SIM card or a user identification module UIM card.
  • the information not identified by the file identification number includes encryption information or authentication information.
  • a computer readable storage medium storing program instructions that, when executed, implement the methods described above.
  • the mobile terminal receives the updated content of the smart card through the BIP; stores the updated content according to the type of the updated content and the required storage space, where the type of the updated content includes the smart card file identified by the file identification number. And information not identified by the file identification number.
  • the mobile terminal can apply for remote update of the smart card (such as a SIM card) through the BIP, and the The new content is stored, so that the user can upgrade the SIM card to the latest state without going to the business hall or making an appointment to change the card, thereby solving the SIM card update problem brought by the mobile network replacement, and reducing the trouble of the user replacing the SIM card. , improved user experience.
  • FIG. 1 is a flowchart of a method for updating a smart card according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for updating a SIM card according to Embodiment 1 of the present invention
  • FIG. 3 is a flowchart of a method for updating a SIM card according to Embodiment 2 of the present invention.
  • FIG. 4 is a flowchart of a process for a mobile terminal to read and write a SIM card after the SIM card is updated, according to an embodiment of the present invention
  • FIG. 5 is a flowchart of processing of a mobile terminal after a user replaces a new SIM card according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a system for updating a smart card according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for updating a smart card according to an embodiment of the present invention. As shown in FIG. 1 , a method for updating a smart card according to an embodiment of the present invention includes the following steps:
  • Step 11 The mobile terminal receives the updated content of the smart card through the BIP.
  • the mobile terminal is, for example, a mobile phone.
  • the smart card may include a SIM card or a UIM card.
  • the present invention is not limited thereto.
  • the smart card may also be other types of Universal Integrated Circuit Card (UICC) or Integrated Circuit Card (ICC).
  • UICC Universal Integrated Circuit Card
  • the BIP provides a data interaction mechanism between the SIM card and the network.
  • a data channel can be established between the server, the mobile terminal and the SIM card for data transmission.
  • the updated content of the SIM card is downloaded from the server to the mobile terminal, and then the updated content is forwarded to the SIM card by the mobile terminal.
  • the method further comprises: initiating a remote update smart card request to the server.
  • the method before step 11, the method further includes: receiving a notification of the remote update smart card sent by the server.
  • Step 12 Store the updated content according to the type of the updated content and the required storage space, where the type of the updated content includes a smart card file identified by a file identification number, and information not identified by a file identification number. .
  • the smart card file identified by the file identification number may include an IMSI file EFIMSI (7F206F07) in the gsm directory, an ARR file EFRAR (7FFF 6F06) in the csim directory, and the like, and the information not identified by the file identification number may include authentication or
  • the encryption information may include an authentication algorithm and an authentication key, and the encryption information may include an encryption algorithm and an encryption key.
  • the storing the updated content means: updating the original information corresponding to the smart card by using the information not identified by the file identification number. If the smart card storage space is insufficient to update the information, the related update content may be stored in the selected storage location, and the updated content is encrypted and protected to prevent leakage of the information.
  • the updated content of the smart card is a smart card file that is already present on the smart card, and the storage space required by the smart card file is the same as the storage space occupied by the original file on the smart card corresponding to the file identification number.
  • the storing the updated content means: updating the original file on the smart card corresponding to the file identification number by using the smart card file.
  • the method further includes: clearing the original file on the smart card corresponding to the file identification number, and setting a special flag bit for indicating that the smart card file is stored to the selected storage location; of course, it is also possible to record directly in the terminal without setting a special flag bit.
  • the card file is stored to the selected storage location. In this way, if the mobile phone is reading and writing the smart card file, first go to the terminal to check whether the value of the card file exists in the selected storage location. If yes, get it directly from the selected storage location; if not, get it directly from the card.
  • the updated smart card file may also be stored on the smart card if the smart card storage space is sufficient.
  • the selected storage location refers to a storage location other than the smart card, and may include a flash memory T card and a memory of the mobile terminal. However, the present invention is not limited thereto. In other embodiments, the storage location may also be other storable devices connected to the mobile terminal.
  • the method further includes: saving the identification information of the smart card to the storage location.
  • the smart card is a SIM card
  • the identification information of the SIM card is, for example, an integrated circuit card identifier (ICCID) of the SIM card.
  • ICCID integrated circuit card identifier
  • the unique mapping relationship between the SIM card update content stored in the storage location and the SIM card can be determined. Avoid the situation that the new SIM card and the original T card of the mobile terminal or the updated content stored in the memory are incorrectly mapped after the user replaces the SIM card, and the user avoids replacing the T card of the mobile terminal or replacing the mobile terminal, the new T An error mapping occurs between the card or mobile terminal memory and the original SIM card.
  • an encryption algorithm such as a public security key algorithm with high security
  • the SIM card update content received by the mobile terminal through the BIP may be an updated content encrypted by using an encryption algorithm, and after the mobile terminal receives the encrypted SIM card update content, the decryption is further obtained. New content. In this way, leakage of important information is prevented and communication is secured.
  • the updated content of the SIM card is a file for setting an operation authority of an administrator (such as a SIM card manufacturer) in the SIM card, the SIM card manufacturer is required to open the corresponding permission in a special case.
  • FIG. 2 is a flowchart of a method for remotely updating a SIM card according to Embodiment 1 of the present invention.
  • the mobile terminal is, for example, a mobile phone.
  • the method for remotely updating a SIM card provided by Embodiment 1 of the present invention includes the following steps:
  • Step 101 The user opens the function of remotely updating the SIM card in the setting function of the mobile phone, and then proceeds to step 102;
  • Step 102 The mobile phone pops up prompt: using this function, it may occupy part of the T card or the memory space of the mobile phone, whether to agree; if the user chooses to agree, the process proceeds to step 103; if the user chooses to disagree, the process ends;
  • Step 103 The mobile phone pops up a selection box: occupy T card space or mobile phone memory space, so that the user makes a selection, after the user makes a selection and determines, proceeds to step 104;
  • Step 104 The mobile phone sends a remote update SIM card request to the server, and starts a timer to prevent an abnormality on the network side, avoiding the situation that the mobile phone is always in a waiting state because the server has not replied to the mobile phone, and then proceeds to step 105;
  • Step 105 Determine whether the mobile phone receives a reply from the network side (server) before the timer expires, that is, the remote update SIM card notification, if yes, proceeds to step 107, if not, proceeds to step 106;
  • Step 106 The mobile phone prompts the user that the network is abnormal, the update is terminated, and the process ends.
  • Step 107 The network side replies whether it is necessary to update the SIM card, if the reply is yes, proceed to step 109, if the answer is no, proceed to step 108;
  • Step 108 The mobile phone prompts the user that the SIM card is in the latest state, and does not need to be updated, and the process ends;
  • Step 109 Start the BIP remote update SIM card process, proceed to step 110;
  • Step 110 Determine whether the update of the SIM card file identified by the file identification number, if yes, proceed to step 111, and if not, proceed to step 114;
  • Step 111 Determine whether the file identification number (ID) of the SIM card file to be updated is on the SIM card. Has already existed, if yes, proceed to step 115, if not, proceed to step 112;
  • Step 112 in the user selected T card or mobile phone memory to open a storage space for storing the contents of the new SIM card file, and proceeds to step 113;
  • Step 113 Determine whether the storage space on the T card or the phone memory is sufficient, if yes, proceed to step 117, and if not, proceed to step 124;
  • Step 114 Update the corresponding module on the SIM card, such as an authentication algorithm, etc., and then proceeds to step 121;
  • Step 115 determining whether the size of the storage space required to update the SIM card file is greater than the storage space occupied by the original SIM card file, if yes, proceed to step 116, and if not, proceed to step 119;
  • Step 116 Clear the original file content on the SIM card, and then set a special flag, so that the mobile phone knows that the updated SIM card file content needs to be acquired in the T card or the phone memory, after which, the process proceeds to step 120;
  • Step 117 determining whether it is the first time to store the updated content of the SIM card into the T card or the phone memory, if yes, proceed to step 118, and if not, proceed to step 120;
  • Step 118 Save the ICCID of the SIM card in the T card/phone memory, and then proceed to step 120;
  • Step 119 Update the file on the SIM card, after which, proceed to step 121;
  • Step 120 The updated content of the SIM card is stored in the T card or the machine memory, after which, proceeds to step 121;
  • Step 121 Determine whether the SIM card is updated successfully, if yes, proceed to step 122, and if not, proceed to step 123;
  • Step 122 Determine whether all SIM card data has been updated, if yes, proceed to step 125, and if not, proceed to step 109;
  • Step 123 If the update of the SIM card fails, the mobile phone prompts the user that the update fails, and the process ends;
  • Step 124 The mobile phone prompts the user that the storage space is insufficient, and the process ends.
  • Step 125 After the SIM card update is completed, the mobile phone prompts the user to update successfully, the mobile phone is about to restart, and the process ends.
  • FIG. 3 is a flowchart of a method for remotely updating a SIM card according to Embodiment 2 of the present invention.
  • the mobile terminal is, for example, a mobile phone.
  • the method for remotely updating a SIM card provided by Embodiment 2 of the present invention includes the following steps:
  • Step 201 When the server has the upgrade information of the SIM card, the server notifies the mobile phone in the form of a pp download message, and then proceeds to step 202;
  • Step 202 After receiving the short message, the mobile phone begins to remotely update the SIM card process, and proceeds to step 203;
  • Step 203 The mobile phone pops up prompt: The SIM card has an updated version. If it is updated, it may occupy part of the T card space or the mobile phone memory space, and whether it agrees to update. If the user agrees to update, the process proceeds to step 204. If the user does not agree to update, the process ends. ;
  • Step 204 The mobile phone pops up a selection box: occupy T card space or mobile phone memory space, so that the user makes a selection, after the user makes a selection and determines, proceeds to step 205;
  • Step 205 Start the BIP remote update SIM card process, proceeds to step 206;
  • Step 206 Determine whether the update of the SIM card file identified by the file identification number, if yes, proceed to step 207, and if not, proceed to step 210;
  • Step 207 Determine whether the file identification number (ID) of the SIM card file to be updated already exists on the SIM card, if yes, proceed to step 211, and if no, proceed to step 208;
  • Step 208 Open a storage space in the T card/phone memory selected by the user to store the contents of the newly added SIM card file, and proceed to step 209;
  • Step 209 Determine whether the storage space on the T card / mobile phone memory is sufficient, if yes, proceed to step 213, and if not, proceed to step 220;
  • Step 210 Update the corresponding module on the SIM card, such as an authentication algorithm, etc., and then proceeds to step 217;
  • Step 211 determining whether the size of the storage space required to update the SIM card file is greater than the storage space occupied by the original SIM card file, if yes, proceed to step 212, and if not, proceed to step 215;
  • Step 212 Clear the contents of the original file on the SIM card, and then set a special flag, so that the mobile phone knows that the updated SIM card file content needs to be acquired in the T card or the phone memory, and then proceeds to step 216;
  • Step 213 Determine whether it is the first time to store the updated content of the SIM card into the T card or the phone memory, if yes, proceed to step 214, and if not, proceed to step 216;
  • Step 214 Save the ICCID of the SIM card in the T card or the phone memory, after which, proceed to step 216;
  • Step 215 Update the file on the SIM card, after which, proceed to step 217;
  • Step 216 The updated content of the SIM card is stored in the T card or the phone memory, and then proceeds to step 217;
  • Step 217 Determine whether the SIM card is updated successfully, if yes, proceed to step 218, and if not, proceed to step 219;
  • Step 218 Determine whether all SIM card data has been updated, if yes, proceed to step 221, and if not, proceed to step 205;
  • Step 219 If the update of the SIM card fails, the mobile phone prompts the user that the update fails, and the process ends;
  • Step 220 The mobile phone prompts the user that the storage space is insufficient, and the process ends.
  • Step 221 After the SIM card update is completed, the mobile phone prompts the user to update successfully, the mobile phone is about to restart, and the process ends.
  • FIG. 4 is a flowchart of a process for a mobile terminal to read and write a SIM card after a remote update of the SIM card is completed according to an embodiment of the present invention.
  • the mobile terminal is, for example, a mobile phone.
  • the above processing flow includes the following steps:
  • Step 301 The mobile phone needs to read and write the SIM card, and proceeds to step 302;
  • Step 302 Query whether the remote update process of the SIM card has been successfully performed on the mobile phone, if yes, proceed to step 303, if no, proceed to step 310;
  • Step 303 Query the storage location of the updated content of the SIM card (T card or mobile phone memory), and then proceeds to step 304;
  • Step 304 Obtain the identification information of the saved SIM card, such as the ICCID, from the storage location of the updated content, and then proceeds to step 305;
  • Step 305 determining whether the ICCID stored on the SIM card and the ICCID stored in the storage location of the updated content are consistent, if yes, proceed to step 306, and if not, proceed to step 310;
  • Step 306 According to the file identification number of the SIM card file to be read and written, determine whether the SIM card file to be read and written can be found in the SIM card, if yes, proceed to step 307, and if not, proceed to step 308;
  • Step 307 determining whether the special flag is set in the content corresponding to the file identification number on the SIM card, if yes, proceeding to step 308, if not, proceeding to step 309;
  • Step 308 According to the file identification number, search for the corresponding SIM card file to the storage location (phone memory/T card), and perform a read/write operation, after which the process ends;
  • Step 309 directly read and write the file corresponding to the file identification number on the SIM card, and then the process ends;
  • Step 310 The SIM card is read and written without considering the update content of the SIM card stored in the storage location, and then the process ends.
  • FIG. 5 is a flowchart of processing of a mobile terminal after a user replaces a new SIM card according to a preferred embodiment of the present invention.
  • the mobile terminal is, for example, a mobile phone.
  • the above processing flow includes the following steps:
  • Step 401 The user inserts a new SIM card into the mobile phone, and the mobile phone is powered on, and then proceeds to step 402;
  • Step 402 Query whether the remote update process of the SIM card has been successfully performed on the mobile phone, if yes, proceed to step 403, if no, proceed to step 408;
  • Step 403 Query the storage location of the updated content of the SIM card (T card or mobile phone memory), and then proceeds to step 404;
  • Step 404 Obtain the identification information of the saved SIM card, such as the ICCID, from the storage location of the updated content, and then proceeds to step 405;
  • Step 405 Determine whether the ICCID stored on the SIM card and the ICCID stored in the storage location of the updated content are consistent, if yes, proceed to step 409, and if not, proceed to step 406;
  • Step 406 The mobile phone pops up a prompt box, asking the user whether it is necessary to clear the remote update content of the previous SIM card, if the selection is not cleared, then proceeds to step 408, otherwise proceeds to step 407;
  • Step 407 Clear the update content of the previous SIM card, proceed to step 410;
  • Step 408 Regardless of the updated content of the SIM card, the mobile phone is normally turned on, and the process ends;
  • Step 409 Considering the updated content of the SIM card, the mobile phone continues to be powered on, and the process ends;
  • Step 410 The mobile phone is normally turned on, and the process ends.
  • the embodiment of the present invention further provides a system for remotely updating a smart card of a mobile terminal, which is disposed on the mobile terminal, and includes: a receiving module 60 configured to receive updated content of the smart card by using a BIP; and a storage module 61,
  • the updated content is stored according to the type of the updated content and the required storage space, wherein the type of the updated content includes a smart card file identified by a file identification number and information not identified by a file identification number.
  • system further includes: a sending module 62, configured to initiate a remote update smart card request to the server before the receiving module receives the updated content of the smart card through the BIP.
  • the receiving module 60 is further configured to receive a notification of the remote update smart card sent by the server before receiving the updated content of the smart card through the BIP.
  • the storage module 61 is configured to store the updated content. Means: updating the corresponding original information on the smart card with the information not identified by the file identification number.
  • the storage module 61 is configured to store the updated content by replacing the original file on the smart card corresponding to the file identification number with the smart card file.
  • the system further includes: a processing module 63, configured to: when the updated content of the smart card is a smart card file whose file identification number already exists on the smart card, and the storage space required by the smart card file is If the storage space occupied by the original file on the smart card corresponding to the file identification number is inconsistent, the original file on the smart card corresponding to the file identification number is cleared, and a special flag is set to indicate that the smart card file is stored to the selected storage location;
  • a processing module 63 configured to: when the updated content of the smart card is a smart card file whose file identification number already exists on the smart card, and the storage space required by the smart card file is If the storage space occupied by the original file on the smart card corresponding to the file identification number is inconsistent, the original file on the smart card corresponding to the file identification number is cleared, and a special flag is set to indicate that the smart card file is stored to the selected storage location;
  • the storing module 61 configured to store the updated content, refers to: the smart card The file is stored to the storage location.
  • the storing module 61 configured to store the updated content, refers to: storing the smart card file to the storage location.
  • the storage module 61 is further configured to save the identification information of the smart card to the storage location before storing the smart card file to the storage location.
  • the storage location includes a flash memory T card and a memory of the mobile terminal.
  • the smart card includes a customer identification module SIM card and a user identification module UIM card.
  • the mobile terminal of the embodiment of the present invention includes a hardware processor 70 and a memory 71.
  • the memory stores instructions that, when executed by the mobile terminal, enable the mobile terminal to perform the steps in the foregoing method embodiments.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the embodiment of the present invention performs remote update of the smart card process through BIP, when the smart card is updated.
  • the update content is stored in the T card or the mobile terminal memory that meets the storage space requirement.
  • the user can upgrade the smart card to the latest state without replacing the smart card, thereby improving the user experience.

Abstract

A method and system for updating a smart card of a mobile terminal, comprising: a mobile terminal receiving updated contents of a smart card via a BIP; and storing the updated contents according to the type of the updated contents and a required storage space, wherein the type of the updated contents comprises a smart card file identified by a file identification number and information not identified by the file identification number.

Description

一种更新移动终端智能卡的方法及系统Method and system for updating mobile terminal smart card 技术领域Technical field
本文涉及移动通信领域,尤其涉及一种更新移动终端智能卡的方法及系统。This paper relates to the field of mobile communications, and in particular, to a method and system for updating a smart card of a mobile terminal.
背景技术Background technique
目前,相当数量的移动终端都为机卡分离式,即用户通过更换智能卡,比如客户识别模块(SIM,Subscriber Identity Module)卡或者用户识别模块(UIM,User Identity Module)卡来达到使用不同手机号码的目的。SIM卡也称为用户身份识别卡,全球移动通信系统(GSM,Global System for Mobile Communication)标准的数字移动终端必须安装SIM卡才能使用。SIM卡在一块电脑芯片上存储了数字移动终端客户的信息、密钥等内容,可供GSM网络对用户身份进行鉴别,并对用户通话时的语音信息进行加密。UIM是由中国联通公司倡导并得到国际码分多址(CDMA,Code Division Multiple Access)组织(CDMA开发组(CDG,CDMA Development Group))支持的移动通信终端用户识别及加密技术。UIM支持专用的鉴权加密算法和空中下载技术(OTA,Over-The-Air Technology),可以通过无线空中接口方式对UIM卡上的数据进行更新和管理。UIM卡的功能类似于GSM手机中使用的SIM卡,可进行用户的身份识别及通信加密,还可以存储电话号码、名片夹、短信息等用户个人信息。下文将SIM卡和UIM卡统称为智能卡。At present, a considerable number of mobile terminals are separated by a card, that is, the user can use different mobile phone numbers by replacing a smart card, such as a Subscriber Identity Module (SIM) or a User Identity Module (UIM) card. the goal of. The SIM card is also called a user identification card. The digital mobile terminal of the Global System for Mobile Communication (GSM) standard must be installed with a SIM card. The SIM card stores the information, key and other contents of the digital mobile terminal client on a computer chip, which can be used for authenticating the user identity of the GSM network and encrypting the voice information of the user during the call. UIM is a mobile communication terminal user identification and encryption technology advocated by China Unicom and supported by the International Code Division Multiple Access (CDMA) (CDMA Development Group). UIM supports dedicated authentication encryption algorithms and over-the-air technology (OTA), which can update and manage data on UIM cards through wireless air interface. The function of the UIM card is similar to the SIM card used in the GSM mobile phone. It can perform user identification and communication encryption, and can also store personal information such as phone numbers, business card holders, and short messages. Hereinafter, the SIM card and the UIM card are collectively referred to as a smart card.
随着网络的不断升级,第二代手机通信技术(2G)、第三代移动通信技术(3G)、第四代移动通信技术(4G)之间的更新时间间隔越来越短。一般而言,网络升级带动着移动终端和智能卡的更替。目前4G网络所使用的智能卡相对2G/3G网络的智能卡,具有更大的存储空间,更安全的鉴权和加密方案。以目前的情况而言,网络升级到4G,若用户要享受4G网络带来的便捷,就需要去营业厅更换支持4G网络的智能卡,或者在网上预约后更换智能卡,如此,会给用户带来不便。 With the continuous upgrading of the network, the update interval between the second generation mobile communication technology (2G), the third generation mobile communication technology (3G), and the fourth generation mobile communication technology (4G) is getting shorter and shorter. In general, network upgrades drive the replacement of mobile terminals and smart cards. At present, the smart card used in the 4G network has a larger storage space and a more secure authentication and encryption scheme than the smart card of the 2G/3G network. In the current situation, the network is upgraded to 4G. If users want to enjoy the convenience brought by 4G network, they need to go to the business hall to replace the smart card that supports 4G network, or replace the smart card after making an online reservation. inconvenient.
发明内容Summary of the invention
本发明实施例提供一种更新移动终端智能卡的方法及系统,解决相关技术中需要更换移动终端智能卡以解决移动网络更替时带来的智能卡更新问题。The embodiment of the invention provides a method and a system for updating a smart card of a mobile terminal, and solves the problem that the smart card of the mobile terminal needs to be replaced in the related art to solve the problem of updating the smart card when the mobile network is replaced.
一种更新移动终端智能卡的方法,包括:移动终端通过承载独立协议(BIP,Bearer Independent Protocol)接收智能卡的更新内容;根据所述更新内容的类型及所需的存储空间,对所述更新内容进行存储,其中,所述更新内容的类型包括以文件标识号标识的智能卡文件及未以文件标识号标识的信息。A method for updating a smart card of a mobile terminal, comprising: receiving, by a mobile terminal, an update content of a smart card by using a Bearer Independent Protocol (BIP); and performing the update content according to the type of the updated content and a required storage space Storage, wherein the type of the updated content includes a smart card file identified by a file identification number and information not identified by a file identification number.
可选地,所述移动终端通过BIP接收智能卡的更新内容之前,该方法还包括:向服务器发起远程更新智能卡请求。Optionally, before the mobile terminal receives the updated content of the smart card by using the BIP, the method further includes: initiating a remote update smart card request to the server.
可选地,所述移动终端通过BIP接收智能卡的更新内容之前,该方法还包括:接收服务器发送的远程更新智能卡的通知。Optionally, before the mobile terminal receives the updated content of the smart card by using the BIP, the method further includes: receiving a notification of the remote update smart card sent by the server.
可选地,根据所述更新内容的类型及所需的存储空间,对所述更新内容进行存储,包括:Optionally, storing the updated content according to the type of the updated content and the required storage space, including:
当所述智能卡的更新内容为文件标识号已存在于智能上的智能卡文件,且所述智能卡文件所需的存储空间大小与该文件标识号对应的智能卡上原文件占用的存储空间大小一致时,用所述智能卡文件更新该文件标识号对应的智能卡上原文件。When the updated content of the smart card is a smart card file whose file identification number already exists on the smart, and the storage space required by the smart card file is the same as the storage space occupied by the original file on the smart card corresponding to the file identification number, The smart card file updates the original file on the smart card corresponding to the file identification number.
可选地,根据所述更新内容的类型及所需的存储空间,对所述更新内容进行存储,包括:Optionally, storing the updated content according to the type of the updated content and the required storage space, including:
当所述智能卡的更新内容为文件标识号已存在于智能卡上的智能卡文件,且所述智能卡文件所需的存储空间大小与该文件标识号对应的智能卡上原文件占用的存储空间大小不一致时,清空该文件标识号对应的智能卡上原文件,设置特殊标志位,用于表示所述智能卡文件存储至选择的存储位置,所述选择的存储位置为除所述智能卡之外的存储位置;When the updated content of the smart card is a smart card file whose file identification number already exists on the smart card, and the storage space required by the smart card file is inconsistent with the storage space occupied by the original file on the smart card corresponding to the file identification number, The original file on the smart card corresponding to the file identification number is set with a special flag for indicating that the smart card file is stored to the selected storage location, and the selected storage location is a storage location other than the smart card;
将所述智能卡文件存储至所述选择的存储位置。 The smart card file is stored to the selected storage location.
可选地,根据所述更新内容的类型及所需的存储空间,对所述更新内容进行存储,包括:Optionally, storing the updated content according to the type of the updated content and the required storage space, including:
当所述智能卡的更新内容为文件标识号未存在于智能卡上的智能卡文件,且所述智能卡文件所需的存储空间大小不大于选择的存储位置的存储空间大小时,将所述智能卡文件存储至所述选择的存储位置,所述选择的存储位置为除所述智能卡之外的存储位置。When the updated content of the smart card is a smart card file whose file identification number does not exist on the smart card, and the storage space required by the smart card file is not greater than the storage space size of the selected storage location, the smart card file is stored to The selected storage location, the selected storage location being a storage location other than the smart card.
可选地,将所述智能卡文件存储至所述选择存储位置之前,还包括:将所述智能卡的标识信息保存至所述选择的存储位置。Optionally, before storing the smart card file to the selected storage location, the method further includes: saving the identification information of the smart card to the selected storage location.
可选地,所述选择存储位置包括快闪存储器T卡或移动终端的内存。Optionally, the selected storage location comprises a flash memory T card or a memory of the mobile terminal.
可选地,根据所述更新内容的类型及所需的存储空间,对所述更新内容进行存储,包括:Optionally, storing the updated content according to the type of the updated content and the required storage space, including:
当所述智能卡的更新内容为未以文件标识号标识的信息时,用所述未以文件标识号标识的信息更新智能卡上对应的原信息。When the updated content of the smart card is information that is not identified by the file identification number, the original information corresponding to the smart card is updated with the information not identified by the file identification number.
可选地,所述智能卡包括客户识别模块SIM卡或用户识别模块UIM卡。Optionally, the smart card comprises a customer identification module SIM card or a user identification module UIM card.
可选地,所述未以文件标识号标识的信息包括加密信息或鉴权信息。Optionally, the information not identified by the file identification number includes encryption information or authentication information.
一种更新移动终端智能卡的系统,设置于移动终端,包括:A system for updating a smart card of a mobile terminal, configured on the mobile terminal, includes:
接收模块,设置为通过BIP接收智能卡的更新内容;以及a receiving module configured to receive an update of the smart card through the BIP;
存储模块,设置为根据所述更新内容的类型及所需的存储空间,对所述更新内容进行存储,其中,所述更新内容的类型包括以文件标识号标识的智能卡文件及未以文件标识号标识的信息。a storage module, configured to store the updated content according to the type of the updated content and a required storage space, where the type of the updated content includes a smart card file identified by a file identification number and a file identification number Identification information.
可选地,所述系统还包括:发送模块,设置为在所述接收模块通过BIP接收智能卡的更新内容之前,向服务器发起远程更新智能卡请求。Optionally, the system further includes: a sending module, configured to initiate a remote update smart card request to the server before the receiving module receives the updated content of the smart card through the BIP.
可选地,所述接收模块,还设置为在通过BIP接收智能卡的更新内容之前,接收服务器发送的远程更新智能卡的通知。Optionally, the receiving module is further configured to receive a notification of the remote update smart card sent by the server before receiving the updated content of the smart card by using the BIP.
可选地,所述存储模块是设置为:Optionally, the storage module is configured to:
当所述智能卡的更新内容为文件标识号已存在于智能卡上的智能卡文件,且所述智能卡文件所需的存储空间大小与该文件标识号对应的智能卡上 原文件占用的存储空间大小一致时,用所述智能卡文件更新该文件标识号对应的智能卡上原文件。When the updated content of the smart card is a smart card file whose file identification number already exists on the smart card, and the required storage space size of the smart card file is on the smart card corresponding to the file identification number When the storage space occupied by the original file is the same, the smart card file is used to update the original file on the smart card corresponding to the file identification number.
可选地,所述系统还包括:处理模块,设置为当所述智能卡的更新内容为文件标识号已存在于智能卡上的智能卡文件,且所述智能卡文件所需的存储空间大小与该文件标识号对应的智能卡上原文件占用的存储空间大小不一致时,清空该文件标识号对应的智能卡上原文件,设置特殊标志位,用于表示所述智能卡文件存储至选择的存储位置,所述选择的存储位置为除所述智能卡之外的存储位;Optionally, the system further includes: a processing module, configured to: when the updated content of the smart card is a smart card file whose file identification number already exists on the smart card, and the storage space size and the file identifier required by the smart card file If the storage space occupied by the original file on the smart card corresponding to the number is inconsistent, the original file on the smart card corresponding to the file identification number is cleared, and a special flag is set to indicate that the smart card file is stored to the selected storage location, and the selected storage location is a storage bit other than the smart card;
所述存储模块,是设置将所述智能卡文件存储至所述存储位置。The storage module is configured to store the smart card file to the storage location.
可选地,所述存储模块,是设置为:当所述智能卡的更新内容为文件标识号未存在于智能卡上的智能卡文件,且所述智能卡文件所需的存储空间大小不大于选择的存储位置的存储空间大小时,将所述智能卡文件存储至所述存储位置,所述选择的存储位置为除所述智能卡之外的存储位。Optionally, the storage module is configured to: when the updated content of the smart card is a smart card file whose file identification number does not exist on the smart card, and the storage space required by the smart card file is not greater than the selected storage location The smart card file is stored to the storage location when the storage space is sized, and the selected storage location is a storage bit other than the smart card.
可选地,所述存储模块,还设置为在将所述智能卡文件存储至所述存储位置之前,将所述智能卡的标识信息保存至所述存储位置。Optionally, the storage module is further configured to save the identification information of the smart card to the storage location before storing the smart card file to the storage location.
可选地,所述存储位置包括快闪存储器T卡或移动终端的内存。Optionally, the storage location comprises a flash memory T card or a memory of the mobile terminal.
可选地,所述存储模块,是设置为:当所述智能卡的更新内容为未以文件标识号标识的信息时,用所述未以文件标识号标识的信息更新智能卡上对应的原信息。Optionally, the storage module is configured to: when the updated content of the smart card is information that is not identified by the file identification number, update the corresponding original information on the smart card by using the information that is not identified by the file identification number.
可选地,所述智能卡包括客户识别模块SIM卡或用户识别模块UIM卡。Optionally, the smart card comprises a customer identification module SIM card or a user identification module UIM card.
可选地,所述未以文件标识号标识的信息包括加密信息或鉴权信息。Optionally, the information not identified by the file identification number includes encryption information or authentication information.
一种计算机可读存储介质,存储有程序指令,当该程序指令被执行时可实现上面所述的方法。A computer readable storage medium storing program instructions that, when executed, implement the methods described above.
在本发明实施例中,移动终端通过BIP接收智能卡的更新内容;根据更新内容的类型及所需的存储空间,对更新内容进行存储,其中,更新内容的类型包括以文件标识号标识的智能卡文件及未以文件标识号标识的信息。本发明中,移动终端可以通过BIP申请远程更新智能卡(如SIM卡),并对更 新内容进行存储,如此,用户无需去营业厅或者预约换卡,就可以把SIM卡升级到最新状态,从而解决了移动网络更替时带来的SIM卡更新问题,减少了用户更换SIM卡的麻烦,提升了用户体验。In the embodiment of the present invention, the mobile terminal receives the updated content of the smart card through the BIP; stores the updated content according to the type of the updated content and the required storage space, where the type of the updated content includes the smart card file identified by the file identification number. And information not identified by the file identification number. In the present invention, the mobile terminal can apply for remote update of the smart card (such as a SIM card) through the BIP, and the The new content is stored, so that the user can upgrade the SIM card to the latest state without going to the business hall or making an appointment to change the card, thereby solving the SIM card update problem brought by the mobile network replacement, and reducing the trouble of the user replacing the SIM card. , improved user experience.
附图概述BRIEF abstract
图1为本发明实施例提供的更新智能卡的方法的流程图;FIG. 1 is a flowchart of a method for updating a smart card according to an embodiment of the present invention;
图2为本发明实施例一提供的更新SIM卡的方法的流程图;2 is a flowchart of a method for updating a SIM card according to Embodiment 1 of the present invention;
图3为本发明实施例二提供的更新SIM卡的方法的流程图;3 is a flowchart of a method for updating a SIM card according to Embodiment 2 of the present invention;
图4为本发明一实施例中,SIM卡更新完成后,移动终端读写SIM卡的处理流程图;4 is a flowchart of a process for a mobile terminal to read and write a SIM card after the SIM card is updated, according to an embodiment of the present invention;
图5为本发明一实施例中,用户更换新的SIM卡后,移动终端的处理流程图;FIG. 5 is a flowchart of processing of a mobile terminal after a user replaces a new SIM card according to an embodiment of the present invention; FIG.
图6为本发明实施例提供的更新智能卡的系统结构示意图;FIG. 6 is a schematic structural diagram of a system for updating a smart card according to an embodiment of the present invention;
图7为本发明实施例提供的移动终端的结构示意图。FIG. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
以下结合附图对本发明的实施例进行详细说明,应当理解,以下所说明的实施例仅用于说明和解释本发明,并不用于限定本发明。The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
图1为本发明实施例提供的更新智能卡的方法的流程图。如图1所示,本发明实施例提供的更新智能卡的方法包括以下步骤:FIG. 1 is a flowchart of a method for updating a smart card according to an embodiment of the present invention. As shown in FIG. 1 , a method for updating a smart card according to an embodiment of the present invention includes the following steps:
步骤11:移动终端通过BIP接收智能卡的更新内容。Step 11: The mobile terminal receives the updated content of the smart card through the BIP.
于本实施例中,移动终端例如为手机。In this embodiment, the mobile terminal is, for example, a mobile phone.
于本实施例中,智能卡可以包括SIM卡或UIM卡。然而,本发明对此并不限定。于其他实施例中,智能卡还可为其他类型的通用集成电路卡(UICC,Universal Integrated Circuit Card)或集成电路卡(ICC,Integrated Circuit Card)。 In this embodiment, the smart card may include a SIM card or a UIM card. However, the present invention is not limited thereto. In other embodiments, the smart card may also be other types of Universal Integrated Circuit Card (UICC) or Integrated Circuit Card (ICC).
于此,以SIM卡为例,BIP提供了SIM卡与网络的数据交互机制。通过BIP可在服务器、移动终端及SIM卡之间建立一个数据通道,进行数据传输。例如,从服务器将SIM卡的更新内容下载到移动终端,然后由移动终端将更新内容转交给SIM卡。Here, taking the SIM card as an example, the BIP provides a data interaction mechanism between the SIM card and the network. Through BIP, a data channel can be established between the server, the mobile terminal and the SIM card for data transmission. For example, the updated content of the SIM card is downloaded from the server to the mobile terminal, and then the updated content is forwarded to the SIM card by the mobile terminal.
于一实施例中,步骤11之前,该方法还包括:向服务器发起远程更新智能卡请求。In an embodiment, before step 11, the method further comprises: initiating a remote update smart card request to the server.
于一实施例中,步骤11之前,该方法还包括:接收服务器发送的远程更新智能卡的通知。In an embodiment, before step 11, the method further includes: receiving a notification of the remote update smart card sent by the server.
步骤12:根据更新内容的类型及所需的存储空间,对所述更新内容进行存储,其中,所述更新内容的类型包括以文件标识号标识的智能卡文件,及未以文件标识号标识的信息。Step 12: Store the updated content according to the type of the updated content and the required storage space, where the type of the updated content includes a smart card file identified by a file identification number, and information not identified by a file identification number. .
其中,以文件标识号标识的智能卡文件可以包括gsm目录下的IMSI文件EFIMSI(7F206F07)、csim目录下的ARR文件EFARR(7FFF 6F06)等等,未以文件标识号标识的信息可以包括鉴权或加密信息,鉴权信息可包括鉴权算法、鉴权密钥,加密信息可包括加密算法、加密密钥。The smart card file identified by the file identification number may include an IMSI file EFIMSI (7F206F07) in the gsm directory, an ARR file EFRAR (7FFF 6F06) in the csim directory, and the like, and the information not identified by the file identification number may include authentication or The encryption information may include an authentication algorithm and an authentication key, and the encryption information may include an encryption algorithm and an encryption key.
当所述智能卡的更新内容为未以文件标识号标识的信息时,所述对所述更新内容进行存储是指:用所述未以文件标识号标识的信息更新智能卡上对应的原信息。若智能卡存储空间不足以更新该信息,可以把相关更新内容存储在选择的存储位置,并对更新内容进行加密保护,防止这些信息的泄漏。When the updated content of the smart card is information that is not identified by the file identification number, the storing the updated content means: updating the original information corresponding to the smart card by using the information not identified by the file identification number. If the smart card storage space is insufficient to update the information, the related update content may be stored in the selected storage location, and the updated content is encrypted and protected to prevent leakage of the information.
当所述智能卡的更新内容为文件标识号标识的已存在于智能卡上的智能卡文件,且所述智能卡文件所需的存储空间大小与该文件标识号对应的智能卡上原文件占用的存储空间大小相同时,所述对所述更新内容进行存储是指:用所述智能卡文件更新该文件标识号对应的智能卡上原文件。When the updated content of the smart card is a smart card file that is already present on the smart card, and the storage space required by the smart card file is the same as the storage space occupied by the original file on the smart card corresponding to the file identification number. The storing the updated content means: updating the original file on the smart card corresponding to the file identification number by using the smart card file.
当所述智能卡的更新内容为文件标识号已存在于智能卡上的智能卡文件,且所述智能卡文件所需的存储空间大小与该文件标识号对应的智能卡上原文件占用的存储空间大小不同时,该方法还包括:清空该文件标识号对应的智能卡上原文件,设置特殊标志位,用于表示所述智能卡文件存储至选择的存储位置;当然也可以不设特殊标志位,可以直接在终端记录一下哪些智 能卡文件被存储到选择的存储位置。这样如果手机在读写智能卡文件的时候,先去终端查一下这个卡文件的值是不是存在了选择的存储位置。如果是,直接从选择的存储位置获取;如果不是,直接从卡上获取。When the updated content of the smart card is a smart card file whose file identification number already exists on the smart card, and the storage space required by the smart card file is different from the storage space occupied by the original file on the smart card corresponding to the file identification number, The method further includes: clearing the original file on the smart card corresponding to the file identification number, and setting a special flag bit for indicating that the smart card file is stored to the selected storage location; of course, it is also possible to record directly in the terminal without setting a special flag bit. Wisdom The card file is stored to the selected storage location. In this way, if the mobile phone is reading and writing the smart card file, first go to the terminal to check whether the value of the card file exists in the selected storage location. If yes, get it directly from the selected storage location; if not, get it directly from the card.
如果智能卡上原文件所占用的存储空间大小不是一个固定值,或者终端有权限修改智能卡上原文件所占用的存储空间大小,在智能卡存储空间足够的情况下,也可以将更新的智能卡文件存储在智能卡上。If the storage space occupied by the original file on the smart card is not a fixed value, or the terminal has the right to modify the storage space occupied by the original file on the smart card, the updated smart card file may also be stored on the smart card if the smart card storage space is sufficient. .
当所述智能卡的更新内容为文件标识号未存在于智能卡上的智能卡文件,且所述智能卡文件所需的存储空间大小不大于选择的存储位置的存储空间大小时,所述对所述更新内容进行存储是指:将所述智能卡文件存储至所述选择的存储位置。When the updated content of the smart card is a smart card file whose file identification number does not exist on the smart card, and the storage space required by the smart card file is not greater than the storage space size of the selected storage location, the pair of the updated content Performing storage means storing the smart card file to the selected storage location.
由于终端一般没有权限在智能卡上新建一个智能卡文件,所以当更新内容为文件标识号未存在于智能卡上的智能卡文件时,将更新内容存储到所选择的存储位置。如果终端可以获得在智能卡上开辟一块空间并新建一个卡文件的权限的话,在智能卡空间足够的情况下,也可以直接将更新的内容存储到智能卡上。其中,所述选择的存储位置是指除智能卡之外的存储位置,可以包括快闪存储器T卡、移动终端的内存。然而,本发明对此并不限定。于其他实施例中,存储位置还可为其他与移动终端相连的可存储设备。Since the terminal generally does not have the right to create a smart card file on the smart card, when the update content is a smart card file whose file identification number does not exist on the smart card, the update content is stored to the selected storage location. If the terminal can obtain the permission to open a space on the smart card and create a new card file, the updated content can be directly stored on the smart card if the smart card space is sufficient. The selected storage location refers to a storage location other than the smart card, and may include a flash memory T card and a memory of the mobile terminal. However, the present invention is not limited thereto. In other embodiments, the storage location may also be other storable devices connected to the mobile terminal.
于此,将所述智能卡文件存储至所述存储位置之前,该方法还包括:将所述智能卡的标识信息保存至所述存储位置。以智能卡为SIM卡为例,SIM卡的标识信息例如为SIM卡的集成电路卡识别码(ICCID,Integrate Circuit Card Identity)。如此,通过SIM卡的标识信息,可确定存储位置存储的SIM卡更新内容与SIM卡的唯一映射关系。避免由于用户更换SIM卡后,新的SIM卡与移动终端原有T卡或内存中存储的更新内容出现错误映射的情况,以及避免用户更换移动终端的T卡或更换移动终端后,新的T卡或移动终端内存与原来的SIM卡之间出现错误映射的情况。Here, before storing the smart card file to the storage location, the method further includes: saving the identification information of the smart card to the storage location. For example, the smart card is a SIM card, and the identification information of the SIM card is, for example, an integrated circuit card identifier (ICCID) of the SIM card. In this way, through the identification information of the SIM card, the unique mapping relationship between the SIM card update content stored in the storage location and the SIM card can be determined. Avoid the situation that the new SIM card and the original T card of the mobile terminal or the updated content stored in the memory are incorrectly mapped after the user replaces the SIM card, and the user avoids replacing the T card of the mobile terminal or replacing the mobile terminal, the new T An error mapping occurs between the card or mobile terminal memory and the original SIM card.
此外,于本实施例中,当SIM卡的更新内容为重要信息时,可使用加密算法(如安全性较高的公钥算法)对SIM卡的更新内容进行加密后传输。具体而言,移动终端通过BIP接收的SIM卡更新内容可为使用加密算法进行加密后的更新内容,移动终端接收加密的SIM卡更新内容后,进行解密得到更 新内容。如此,防止重要信息的泄漏,确保通信安全。另外,当SIM卡的更新内容是针对SIM卡内设置管理员(如SIM卡厂商)操作权限的文件时,则需要SIM卡厂商在特殊情况下开放相应的权限。In addition, in this embodiment, when the updated content of the SIM card is important information, an encryption algorithm (such as a public security key algorithm with high security) may be used to encrypt and transmit the updated content of the SIM card. Specifically, the SIM card update content received by the mobile terminal through the BIP may be an updated content encrypted by using an encryption algorithm, and after the mobile terminal receives the encrypted SIM card update content, the decryption is further obtained. New content. In this way, leakage of important information is prevented and communication is secured. In addition, when the updated content of the SIM card is a file for setting an operation authority of an administrator (such as a SIM card manufacturer) in the SIM card, the SIM card manufacturer is required to open the corresponding permission in a special case.
接下来以SIM卡为例对本发明实施例进行详细说明。Next, an embodiment of the present invention will be described in detail by taking a SIM card as an example.
图2为本发明实施例一提供的远程更新SIM卡的方法的流程图。于本实施例中,移动终端例如为手机。如图2所示,本发明实施例一提供的远程更新SIM卡的方法包括以下步骤:FIG. 2 is a flowchart of a method for remotely updating a SIM card according to Embodiment 1 of the present invention. In this embodiment, the mobile terminal is, for example, a mobile phone. As shown in FIG. 2, the method for remotely updating a SIM card provided by Embodiment 1 of the present invention includes the following steps:
步骤101:用户在手机的设置功能中打开远程更新SIM卡的功能,之后,进入步骤102;Step 101: The user opens the function of remotely updating the SIM card in the setting function of the mobile phone, and then proceeds to step 102;
步骤102:手机弹出提示:使用该功能,可能会占用部分T卡或者手机内存空间,是否同意;若用户选择同意,则进入步骤103;若用户选择不同意,流程结束;Step 102: The mobile phone pops up prompt: using this function, it may occupy part of the T card or the memory space of the mobile phone, whether to agree; if the user chooses to agree, the process proceeds to step 103; if the user chooses to disagree, the process ends;
步骤103:手机弹出选择框:占用T卡空间还是手机内存空间,以便用户进行选择,用户进行选择并确定后,进入步骤104;Step 103: The mobile phone pops up a selection box: occupy T card space or mobile phone memory space, so that the user makes a selection, after the user makes a selection and determines, proceeds to step 104;
步骤104:手机向服务器发送远程更新SIM卡请求,并启动定时器,以防止网络侧出现异常,避免由于服务器一直没给手机回复,而手机一直处于等待状态的情况,之后,进入步骤105;Step 104: The mobile phone sends a remote update SIM card request to the server, and starts a timer to prevent an abnormality on the network side, avoiding the situation that the mobile phone is always in a waiting state because the server has not replied to the mobile phone, and then proceeds to step 105;
步骤105:判断在定时器超时前手机是否收到网络侧(服务器)的回复即远程更新SIM卡的通知,若有则进入步骤107,如没有则进入步骤106;Step 105: Determine whether the mobile phone receives a reply from the network side (server) before the timer expires, that is, the remote update SIM card notification, if yes, proceeds to step 107, if not, proceeds to step 106;
步骤106:手机提示用户网络异常,更新终止,流程结束;Step 106: The mobile phone prompts the user that the network is abnormal, the update is terminated, and the process ends.
步骤107:网络侧回复是否需要更新SIM卡,若回复是,则进入步骤109,若回复否,则进入步骤108;Step 107: The network side replies whether it is necessary to update the SIM card, if the reply is yes, proceed to step 109, if the answer is no, proceed to step 108;
步骤108:手机提示用户SIM卡已经是最新状态,不用更新,流程结束;Step 108: The mobile phone prompts the user that the SIM card is in the latest state, and does not need to be updated, and the process ends;
步骤109:开始BIP远程更新SIM卡过程,进入步骤110;Step 109: Start the BIP remote update SIM card process, proceed to step 110;
步骤110:判断是否是以文件标识号标识的SIM卡文件的更新,若是则进入步骤111,若否,则进入步骤114;Step 110: Determine whether the update of the SIM card file identified by the file identification number, if yes, proceed to step 111, and if not, proceed to step 114;
步骤111:判断要更新的SIM卡文件的文件标识号(ID)是否在SIM卡 上已存在,若是则进入步骤115,若否,进入步骤112;Step 111: Determine whether the file identification number (ID) of the SIM card file to be updated is on the SIM card. Has already existed, if yes, proceed to step 115, if not, proceed to step 112;
步骤112:在用户选定的T卡或手机内存里开辟存储空间用来存放新增的SIM卡文件内容,并进入步骤113;Step 112: in the user selected T card or mobile phone memory to open a storage space for storing the contents of the new SIM card file, and proceeds to step 113;
步骤113:判断T卡或手机内存上的存储空间大小是否足够,若是则进入步骤117,若否,进入步骤124;Step 113: Determine whether the storage space on the T card or the phone memory is sufficient, if yes, proceed to step 117, and if not, proceed to step 124;
步骤114:更新SIM卡上对应的模块,如鉴权算法等,之后,进入步骤121;Step 114: Update the corresponding module on the SIM card, such as an authentication algorithm, etc., and then proceeds to step 121;
步骤115:判断要更新的SIM卡文件所需的存储空间大小是否大于SIM卡原文件占用的存储空间大小,若是则进入步骤116,若否,则进入步骤119;Step 115: determining whether the size of the storage space required to update the SIM card file is greater than the storage space occupied by the original SIM card file, if yes, proceed to step 116, and if not, proceed to step 119;
步骤116:将SIM卡上原文件内容清空,然后设置一个特殊标志位,以便手机知道更新的SIM卡文件内容需要至T卡或手机内存中获取,之后,进入步骤120;Step 116: Clear the original file content on the SIM card, and then set a special flag, so that the mobile phone knows that the updated SIM card file content needs to be acquired in the T card or the phone memory, after which, the process proceeds to step 120;
步骤117:判断是否是第一次往T卡或手机内存里存储SIM卡的更新内容,若是则进入步骤118,若否,进入步骤120;Step 117: determining whether it is the first time to store the updated content of the SIM card into the T card or the phone memory, if yes, proceed to step 118, and if not, proceed to step 120;
步骤118:将SIM卡的ICCID保存在T卡/手机内存,之后,进入步骤120;Step 118: Save the ICCID of the SIM card in the T card/phone memory, and then proceed to step 120;
步骤119:更新SIM卡上的文件,之后,进入步骤121;Step 119: Update the file on the SIM card, after which, proceed to step 121;
步骤120:将SIM卡的更新内容存储至T卡或机内存中,之后,进入步骤121;Step 120: The updated content of the SIM card is stored in the T card or the machine memory, after which, proceeds to step 121;
步骤121:判断SIM卡是否更新成功,若是则进入步骤122,若否,进入步骤123;Step 121: Determine whether the SIM card is updated successfully, if yes, proceed to step 122, and if not, proceed to step 123;
步骤122:判断是否已将所有的SIM卡数据更新,若是则进入步骤125,若否,进入步骤109;Step 122: Determine whether all SIM card data has been updated, if yes, proceed to step 125, and if not, proceed to step 109;
步骤123:若SIM卡的更新失败,手机提示用户更新失败,流程结束;Step 123: If the update of the SIM card fails, the mobile phone prompts the user that the update fails, and the process ends;
步骤124:手机提示用户存储空间不够,流程结束;Step 124: The mobile phone prompts the user that the storage space is insufficient, and the process ends.
步骤125:SIM卡更新完成后,手机提示用户更新成功,手机即将重启,流程结束。 Step 125: After the SIM card update is completed, the mobile phone prompts the user to update successfully, the mobile phone is about to restart, and the process ends.
图3为本发明实施例二提供的远程更新SIM卡的方法的流程图。于本实施例中,移动终端例如为手机。如图3所示,本发明实施例二提供的远程更新SIM卡的方法包括以下步骤:FIG. 3 is a flowchart of a method for remotely updating a SIM card according to Embodiment 2 of the present invention. In this embodiment, the mobile terminal is, for example, a mobile phone. As shown in FIG. 3, the method for remotely updating a SIM card provided by Embodiment 2 of the present invention includes the following steps:
步骤201:当服务器有SIM卡的升级更新信息时,服务器以pp download短信形式通知手机,之后,进入步骤202;Step 201: When the server has the upgrade information of the SIM card, the server notifies the mobile phone in the form of a pp download message, and then proceeds to step 202;
步骤202:手机收到短信后,开始远程更新SIM卡过程,并进入步骤203;Step 202: After receiving the short message, the mobile phone begins to remotely update the SIM card process, and proceeds to step 203;
步骤203:手机弹出提示:SIM卡有更新版本,若更新,可能会占用部分T卡空间或者手机内存空间,是否同意更新,若用户同意更新则进入步骤204,若用户不同意更新,则流程结束;Step 203: The mobile phone pops up prompt: The SIM card has an updated version. If it is updated, it may occupy part of the T card space or the mobile phone memory space, and whether it agrees to update. If the user agrees to update, the process proceeds to step 204. If the user does not agree to update, the process ends. ;
步骤204:手机弹出选择框:占用T卡空间还是手机内存空间,以便用户进行选择,用户进行选择并确定后,进入步骤205;Step 204: The mobile phone pops up a selection box: occupy T card space or mobile phone memory space, so that the user makes a selection, after the user makes a selection and determines, proceeds to step 205;
步骤205:开始BIP远程更新SIM卡过程,进入步骤206;Step 205: Start the BIP remote update SIM card process, proceeds to step 206;
步骤206:判断是否是以文件标识号标识的SIM卡文件的更新,若是则进入步骤207,若否,则进入步骤210;Step 206: Determine whether the update of the SIM card file identified by the file identification number, if yes, proceed to step 207, and if not, proceed to step 210;
步骤207:判断要更新的SIM卡文件的文件标识号(ID)是否在SIM卡上已存在,若是则进入步骤211,若否,进入步骤208;Step 207: Determine whether the file identification number (ID) of the SIM card file to be updated already exists on the SIM card, if yes, proceed to step 211, and if no, proceed to step 208;
步骤208:在用户选定的T卡/手机内存里开辟存储空间用来存放新增的SIM卡文件内容,并进入步骤209;Step 208: Open a storage space in the T card/phone memory selected by the user to store the contents of the newly added SIM card file, and proceed to step 209;
步骤209:判断T卡/手机内存上的存储空间大小是否足够,若是则进入步骤213,若否,进入步骤220;Step 209: Determine whether the storage space on the T card / mobile phone memory is sufficient, if yes, proceed to step 213, and if not, proceed to step 220;
步骤210:更新SIM卡上对应的模块,如鉴权算法等,之后,进入步骤217;Step 210: Update the corresponding module on the SIM card, such as an authentication algorithm, etc., and then proceeds to step 217;
步骤211:判断要更新的SIM卡文件所需的存储空间大小是否大于SIM卡原文件占用的存储空间大小,若是则进入步骤212,若否,则进入步骤215;Step 211: determining whether the size of the storage space required to update the SIM card file is greater than the storage space occupied by the original SIM card file, if yes, proceed to step 212, and if not, proceed to step 215;
步骤212:将SIM卡上原文件内容清空,然后设置一个特殊标志位,以便手机知道更新的SIM卡文件内容需要至T卡或手机内存中获取,之后,进入步骤216; Step 212: Clear the contents of the original file on the SIM card, and then set a special flag, so that the mobile phone knows that the updated SIM card file content needs to be acquired in the T card or the phone memory, and then proceeds to step 216;
步骤213:判断是否是第一次往T卡或手机内存里存储SIM卡的更新内容,若是则进入步骤214,若否,进入步骤216;Step 213: Determine whether it is the first time to store the updated content of the SIM card into the T card or the phone memory, if yes, proceed to step 214, and if not, proceed to step 216;
步骤214:将SIM卡的ICCID保存在T卡或手机内存,之后,进入步骤216;Step 214: Save the ICCID of the SIM card in the T card or the phone memory, after which, proceed to step 216;
步骤215:更新SIM卡上的文件,之后,进入步骤217;Step 215: Update the file on the SIM card, after which, proceed to step 217;
步骤216:将SIM卡的更新内容存储至T卡或手机内存中,之后,进入步骤217;Step 216: The updated content of the SIM card is stored in the T card or the phone memory, and then proceeds to step 217;
步骤217:判断SIM卡是否更新成功,若是则进入步骤218,若否,进入步骤219;Step 217: Determine whether the SIM card is updated successfully, if yes, proceed to step 218, and if not, proceed to step 219;
步骤218:判断是否已将所有的SIM卡数据更新,若是则进入步骤221,若否,进入步骤205;Step 218: Determine whether all SIM card data has been updated, if yes, proceed to step 221, and if not, proceed to step 205;
步骤219:若SIM卡的更新失败,手机提示用户更新失败,流程结束;Step 219: If the update of the SIM card fails, the mobile phone prompts the user that the update fails, and the process ends;
步骤220:手机提示用户存储空间不够,流程结束;Step 220: The mobile phone prompts the user that the storage space is insufficient, and the process ends.
步骤221:SIM卡更新完成后,手机提示用户更新成功,手机即将重启,流程结束。Step 221: After the SIM card update is completed, the mobile phone prompts the user to update successfully, the mobile phone is about to restart, and the process ends.
图4为本发明一实施例中,SIM卡远程更新完成后,移动终端读写SIM卡的处理流程图。于本实施例中,移动终端例如为手机。如图4所示,上述处理流程包括以下步骤:FIG. 4 is a flowchart of a process for a mobile terminal to read and write a SIM card after a remote update of the SIM card is completed according to an embodiment of the present invention. In this embodiment, the mobile terminal is, for example, a mobile phone. As shown in FIG. 4, the above processing flow includes the following steps:
步骤301:手机需要对SIM卡进行读写操作,进入步骤302;Step 301: The mobile phone needs to read and write the SIM card, and proceeds to step 302;
步骤302:查询手机上是否成功进行过SIM卡的远程更新过程,若有则进入步骤303,若否,则进入步骤310;Step 302: Query whether the remote update process of the SIM card has been successfully performed on the mobile phone, if yes, proceed to step 303, if no, proceed to step 310;
步骤303:查询出SIM卡的更新内容的存储位置(T卡或手机内存),之后,进入步骤304;Step 303: Query the storage location of the updated content of the SIM card (T card or mobile phone memory), and then proceeds to step 304;
步骤304:从更新内容的存储位置获取保存的SIM卡的标识信息,如ICCID,之后,进入步骤305;Step 304: Obtain the identification information of the saved SIM card, such as the ICCID, from the storage location of the updated content, and then proceeds to step 305;
步骤305:判断SIM卡上存储的ICCID和更新内容的存储位置存储的ICCID是否一致,若是则进入步骤306,若否,进入步骤310; Step 305: determining whether the ICCID stored on the SIM card and the ICCID stored in the storage location of the updated content are consistent, if yes, proceed to step 306, and if not, proceed to step 310;
步骤306:根据要读写的SIM卡文件的文件标识号,判断要读写的SIM卡文件是否可以在SIM卡找到,若是则进入步骤307,若否,进入步骤308;Step 306: According to the file identification number of the SIM card file to be read and written, determine whether the SIM card file to be read and written can be found in the SIM card, if yes, proceed to step 307, and if not, proceed to step 308;
步骤307:判断SIM卡上该文件标识号对应的内容里是否设置特殊标志位,若是则进入步骤308,若否,则进入步骤309;Step 307: determining whether the special flag is set in the content corresponding to the file identification number on the SIM card, if yes, proceeding to step 308, if not, proceeding to step 309;
步骤308:根据该文件标识号,至存储位置(手机内存/T卡)查找对应的SIM卡文件,并进行读写操作,之后,流程结束;Step 308: According to the file identification number, search for the corresponding SIM card file to the storage location (phone memory/T card), and perform a read/write operation, after which the process ends;
步骤309:直接对SIM卡上该文件标识号对应的文件进行读写,之后,流程结束;Step 309: directly read and write the file corresponding to the file identification number on the SIM card, and then the process ends;
步骤310:不考虑存储位置存储的SIM卡的更新内容,对SIM卡进行读写,之后,流程结束。Step 310: The SIM card is read and written without considering the update content of the SIM card stored in the storage location, and then the process ends.
图5为本发明一较佳实施例中,用户更换新的SIM卡后,移动终端的处理流程图。于本实施例中,移动终端例如为手机。如图5所示,上述处理流程包括以下步骤:FIG. 5 is a flowchart of processing of a mobile terminal after a user replaces a new SIM card according to a preferred embodiment of the present invention. In this embodiment, the mobile terminal is, for example, a mobile phone. As shown in FIG. 5, the above processing flow includes the following steps:
步骤401:用户在手机中插入一张新的SIM卡,手机开机,之后,进入步骤402;Step 401: The user inserts a new SIM card into the mobile phone, and the mobile phone is powered on, and then proceeds to step 402;
步骤402:查询手机上是否成功进行过SIM卡的远程更新过程,若是则进入步骤403,若否,则进入步骤408;Step 402: Query whether the remote update process of the SIM card has been successfully performed on the mobile phone, if yes, proceed to step 403, if no, proceed to step 408;
步骤403:查询出SIM卡的更新内容的存储位置(T卡或手机内存),之后,进入步骤404;Step 403: Query the storage location of the updated content of the SIM card (T card or mobile phone memory), and then proceeds to step 404;
步骤404:从更新内容的存储位置获取保存的SIM卡的标识信息,如ICCID,之后,进入步骤405;Step 404: Obtain the identification information of the saved SIM card, such as the ICCID, from the storage location of the updated content, and then proceeds to step 405;
步骤405:判断SIM卡上存储的ICCID和更新内容的存储位置存储的ICCID是否一致,若是则进入步骤409,若否,进入步骤406;Step 405: Determine whether the ICCID stored on the SIM card and the ICCID stored in the storage location of the updated content are consistent, if yes, proceed to step 409, and if not, proceed to step 406;
步骤406:手机弹出提示框,询问用户是否需要清除掉上一张SIM卡的远程更新内容,若选择不清除,则进入步骤408,反之进入步骤407;Step 406: The mobile phone pops up a prompt box, asking the user whether it is necessary to clear the remote update content of the previous SIM card, if the selection is not cleared, then proceeds to step 408, otherwise proceeds to step 407;
步骤407:清除掉上一张SIM卡的更新内容,进入步骤410;Step 407: Clear the update content of the previous SIM card, proceed to step 410;
步骤408:不考虑SIM卡的更新内容,手机正常开机,流程结束; Step 408: Regardless of the updated content of the SIM card, the mobile phone is normally turned on, and the process ends;
步骤409:考虑SIM卡的更新内容,手机继续开机,流程结束;Step 409: Considering the updated content of the SIM card, the mobile phone continues to be powered on, and the process ends;
步骤410:手机正常开机,流程结束。Step 410: The mobile phone is normally turned on, and the process ends.
另外,如果用户更换手机,仅需将SIM卡和存储更新内容的T卡直接插入新的手机,即可在新的手机使用最新状态的SIM卡。In addition, if the user replaces the mobile phone, simply insert the SIM card and the T card storing the updated content directly into the new mobile phone, and then use the latest state SIM card on the new mobile phone.
此外,如图6所示,本发明实施例还提供一种远程更新移动终端智能卡的系统,设置于移动终端,包括:接收模块60,设置为通过BIP接收智能卡的更新内容;存储模块61,设置为根据所述更新内容的类型及所需的存储空间,对所述更新内容进行存储,其中,所述更新内容的类型包括以文件标识号标识的智能卡文件及未以文件标识号标识的信息。In addition, as shown in FIG. 6, the embodiment of the present invention further provides a system for remotely updating a smart card of a mobile terminal, which is disposed on the mobile terminal, and includes: a receiving module 60 configured to receive updated content of the smart card by using a BIP; and a storage module 61, The updated content is stored according to the type of the updated content and the required storage space, wherein the type of the updated content includes a smart card file identified by a file identification number and information not identified by a file identification number.
于一实施例中,上述系统还包括:发送模块62,设置为在接收模块通过BIP接收智能卡的更新内容之前,向服务器发起远程更新智能卡请求。In an embodiment, the system further includes: a sending module 62, configured to initiate a remote update smart card request to the server before the receiving module receives the updated content of the smart card through the BIP.
于一实施例中,接收模块60,还设置为在通过BIP接收智能卡的更新内容之前,接收服务器发送的远程更新智能卡的通知。In an embodiment, the receiving module 60 is further configured to receive a notification of the remote update smart card sent by the server before receiving the updated content of the smart card through the BIP.
于一实施例中,当所述智能卡的更新内容为未以文件标识号标识的信息(如智能卡的算法或鉴权信息)时,所述存储模块61,设置为对所述更新内容进行存储是指:用所述未以文件标识号标识的信息更新智能卡上对应的原信息。In an embodiment, when the updated content of the smart card is information that is not identified by a file identification number (such as an algorithm or authentication information of a smart card), the storage module 61 is configured to store the updated content. Means: updating the corresponding original information on the smart card with the information not identified by the file identification number.
于一实施例中,当所述智能卡的更新内容为文件标识号已存在于智能卡上的智能卡文件,且所述智能卡文件所需的存储空间大小与该文件标识号对应的智能卡上原文件占用的存储空间大小一致时,所述存储模块61,设置为对所述更新内容进行存储是指:用所述智能卡文件替换该文件标识号对应的智能卡上原文件。In an embodiment, when the updated content of the smart card is a smart card file whose file identification number already exists on the smart card, and the storage space required by the smart card file is occupied by the original file on the smart card corresponding to the file identification number. When the size of the space is the same, the storage module 61 is configured to store the updated content by replacing the original file on the smart card corresponding to the file identification number with the smart card file.
于一实施例中,上述系统还包括:处理模块63,设置为当所述智能卡的更新内容为文件标识号已存在于智能卡上的智能卡文件,且所述智能卡文件所需的存储空间大小与该文件标识号对应的智能卡上原文件占用的存储空间大小不一致时,清空该文件标识号对应的智能卡上原文件,设置特殊标志位,用于表示所述智能卡文件存储至选择的存储位置;In an embodiment, the system further includes: a processing module 63, configured to: when the updated content of the smart card is a smart card file whose file identification number already exists on the smart card, and the storage space required by the smart card file is If the storage space occupied by the original file on the smart card corresponding to the file identification number is inconsistent, the original file on the smart card corresponding to the file identification number is cleared, and a special flag is set to indicate that the smart card file is stored to the selected storage location;
所述存储模块61,设置为对所述更新内容进行存储是指:将所述智能卡 文件存储至所述存储位置。The storing module 61, configured to store the updated content, refers to: the smart card The file is stored to the storage location.
于一实施例中,当所述智能卡的更新内容为文件标识号未存在于智能卡上的智能卡文件,且所述智能卡文件所需的存储空间大小不大于选择的存储位置的存储空间大小时,所述存储模块61,设置为对所述更新内容进行存储是指:将所述智能卡文件存储至所述存储位置。In an embodiment, when the updated content of the smart card is a smart card file whose file identification number does not exist on the smart card, and the storage space required by the smart card file is not greater than the storage space size of the selected storage location, The storing module 61, configured to store the updated content, refers to: storing the smart card file to the storage location.
其中,所述存储模块61,还设置为在将所述智能卡文件存储至所述存储位置之前,将所述智能卡的标识信息保存至所述存储位置。The storage module 61 is further configured to save the identification information of the smart card to the storage location before storing the smart card file to the storage location.
于此,所述存储位置包括快闪存储器T卡、移动终端的内存。智能卡包括客户识别模块SIM卡、用户识别模块UIM卡。Here, the storage location includes a flash memory T card and a memory of the mobile terminal. The smart card includes a customer identification module SIM card and a user identification module UIM card.
如图7所述,本发明实施例的移动终端包括硬件处理器70和存储器71,所述存储器存储有指令,该指令被移动终端执行时可使得该移动终端执行上述方法实施例中的步骤。As shown in FIG. 7, the mobile terminal of the embodiment of the present invention includes a hardware processor 70 and a memory 71. The memory stores instructions that, when executed by the mobile terminal, enable the mobile terminal to perform the steps in the foregoing method embodiments.
此外,关于上述系统的处理流程同上述方法所述,故于此不再赘述。In addition, the processing flow of the above system is the same as that described above, and thus will not be described again.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性Industrial applicability
本发明实施例通过BIP进行远程更新智能卡过程,当智能卡的更新内容 为新增的扩充内容时,将更新内容存储至满足存储空间大小要求的T卡或移动终端内存中,如此,用户无需更换智能卡,即可将智能卡升级到最新状态,提升了用户体验。 The embodiment of the present invention performs remote update of the smart card process through BIP, when the smart card is updated. When adding new content, the update content is stored in the T card or the mobile terminal memory that meets the storage space requirement. Thus, the user can upgrade the smart card to the latest state without replacing the smart card, thereby improving the user experience.

Claims (23)

  1. 一种更新移动终端智能卡的方法,包括:A method for updating a smart card of a mobile terminal, comprising:
    移动终端通过承载独立协议BIP接收智能卡的更新内容;The mobile terminal receives the updated content of the smart card by carrying a separate protocol BIP;
    根据所述更新内容的类型及所需的存储空间,对所述更新内容进行存储,其中,所述更新内容的类型包括以文件标识号标识的智能卡文件及未以文件标识号标识的信息。The updated content is stored according to the type of the updated content and the required storage space, wherein the type of the updated content includes a smart card file identified by a file identification number and information not identified by a file identification number.
  2. 如权利要求1所述的方法,所述移动终端通过BIP接收智能卡的更新内容之前,还包括:向服务器发起远程更新智能卡请求。The method of claim 1, before the mobile terminal receives the updated content of the smart card by using the BIP, the method further includes: initiating a remote update smart card request to the server.
  3. 如权利要求1所述的方法,所述移动终端通过BIP接收智能卡的更新内容之前,还包括:接收服务器发送的远程更新智能卡的通知。The method of claim 1, before the mobile terminal receives the updated content of the smart card by using the BIP, the method further includes: receiving a notification of the remote update smart card sent by the server.
  4. 如权利要求1所述的方法,其中:根据所述更新内容的类型及所需的存储空间,对所述更新内容进行存储,包括:The method of claim 1, wherein: storing the updated content according to the type of the updated content and a required storage space comprises:
    当所述智能卡的更新内容为文件标识号已存在于智能上的智能卡文件,且所述智能卡文件所需的存储空间大小与该文件标识号对应的智能卡上原文件占用的存储空间大小一致时,用所述智能卡文件更新该文件标识号对应的智能卡上原文件。When the updated content of the smart card is a smart card file whose file identification number already exists on the smart, and the storage space required by the smart card file is the same as the storage space occupied by the original file on the smart card corresponding to the file identification number, The smart card file updates the original file on the smart card corresponding to the file identification number.
  5. 如权利要求1所述的方法,其中:根据所述更新内容的类型及所需的存储空间,对所述更新内容进行存储,包括:The method of claim 1, wherein: storing the updated content according to the type of the updated content and a required storage space comprises:
    当所述智能卡的更新内容为文件标识号已存在于智能卡上的智能卡文件,且所述智能卡文件所需的存储空间大小与该文件标识号对应的智能卡上原文件占用的存储空间大小不一致时,清空该文件标识号对应的智能卡上原文件,设置特殊标志位,用于表示所述智能卡文件存储至选择的存储位置,所述选择的存储位置为除所述智能卡之外的存储位置;When the updated content of the smart card is a smart card file whose file identification number already exists on the smart card, and the storage space required by the smart card file is inconsistent with the storage space occupied by the original file on the smart card corresponding to the file identification number, The original file on the smart card corresponding to the file identification number is set with a special flag for indicating that the smart card file is stored to the selected storage location, and the selected storage location is a storage location other than the smart card;
    将所述智能卡文件存储至所述选择的存储位置。The smart card file is stored to the selected storage location.
  6. 如权利要求1所述的方法,其中:根据所述更新内容的类型及所需的存储空间,对所述更新内容进行存储,包括:The method of claim 1, wherein: storing the updated content according to the type of the updated content and a required storage space comprises:
    当所述智能卡的更新内容为文件标识号未存在于智能卡上的智能卡文 件,且所述智能卡文件所需的存储空间大小不大于选择的存储位置的存储空间大小时,将所述智能卡文件存储至所述选择的存储位置,所述选择的存储位置为除所述智能卡之外的存储位置。When the updated content of the smart card is a smart card text whose file identification number does not exist on the smart card And storing the smart card file to the selected storage location when the size of the storage space required by the smart card file is not greater than the storage space size of the selected storage location, the selected storage location being the smart card Storage location outside.
  7. 如权利要求5或6所述的方法,将所述智能卡文件存储至所述选择存储位置之前,还包括:将所述智能卡的标识信息保存至所述选择的存储位置。The method of claim 5 or 6, before storing the smart card file to the selected storage location, further comprising: saving the identification information of the smart card to the selected storage location.
  8. 如权利要求7所述的方法,其中:所述选择存储位置包括快闪存储器T卡或移动终端的内存。The method of claim 7 wherein: said selecting a storage location comprises a flash memory T card or a memory of the mobile terminal.
  9. 如权利要求1所述的方法,其中:根据所述更新内容的类型及所需的存储空间,对所述更新内容进行存储,包括:The method of claim 1, wherein: storing the updated content according to the type of the updated content and a required storage space comprises:
    当所述智能卡的更新内容为未以文件标识号标识的信息时,用所述未以文件标识号标识的信息更新智能卡上对应的原信息。When the updated content of the smart card is information that is not identified by the file identification number, the original information corresponding to the smart card is updated with the information not identified by the file identification number.
  10. 如权利要求1所述的方法,其中:所述智能卡包括客户识别模块SIM卡或用户识别模块UIM卡。The method of claim 1 wherein said smart card comprises a customer identification module SIM card or a subscriber identity module UIM card.
  11. 如权利要求1所述的方法,其中,所述未以文件标识号标识的信息包括加密信息或鉴权信息。The method of claim 1, wherein the information not identified by the file identification number comprises encrypted information or authentication information.
  12. 一种更新移动终端智能卡的系统,设置于移动终端,包括:A system for updating a smart card of a mobile terminal, configured on the mobile terminal, includes:
    接收模块,设置为通过BIP接收智能卡的更新内容;以及a receiving module configured to receive an update of the smart card through the BIP;
    存储模块,设置为根据所述更新内容的类型及所需的存储空间,对所述更新内容进行存储,其中,所述更新内容的类型包括以文件标识号标识的智能卡文件及未以文件标识号标识的信息。a storage module, configured to store the updated content according to the type of the updated content and a required storage space, where the type of the updated content includes a smart card file identified by a file identification number and a file identification number Identification information.
  13. 如权利要求12所述的系统,还包括:发送模块,设置为在所述接收模块通过BIP接收智能卡的更新内容之前,向服务器发起远程更新智能卡请求。The system of claim 12, further comprising: a transmitting module configured to initiate a remote update smart card request to the server before the receiving module receives the updated content of the smart card via the BIP.
  14. 如权利要求12所述的系统,其中:所述接收模块,还设置为在通过BIP接收智能卡的更新内容之前,接收服务器发送的远程更新智能卡的通知。The system of claim 12, wherein: said receiving module is further configured to receive a notification of a remotely updated smart card sent by the server prior to receiving the updated content of the smart card via the BIP.
  15. 如权利要求12所述的系统,其中:所述存储模块是设置为: The system of claim 12 wherein: said storage module is configured to:
    当所述智能卡的更新内容为文件标识号已存在于智能卡上的智能卡文件,且所述智能卡文件所需的存储空间大小与该文件标识号对应的智能卡上原文件占用的存储空间大小一致时,用所述智能卡文件更新该文件标识号对应的智能卡上原文件。When the updated content of the smart card is a smart card file whose file identification number already exists on the smart card, and the storage space required by the smart card file is the same as the storage space occupied by the original file on the smart card corresponding to the file identification number, The smart card file updates the original file on the smart card corresponding to the file identification number.
  16. 如权利要求12所述的系统,还包括:处理模块,设置为当所述智能卡的更新内容为文件标识号已存在于智能卡上的智能卡文件,且所述智能卡文件所需的存储空间大小与该文件标识号对应的智能卡上原文件占用的存储空间大小不一致时,清空该文件标识号对应的智能卡上原文件,设置特殊标志位,用于表示所述智能卡文件存储至选择的存储位置,所述选择的存储位置为除所述智能卡之外的存储位;The system of claim 12, further comprising: a processing module configured to: when the updated content of the smart card is a smart card file whose file identification number already exists on the smart card, and the storage space size required by the smart card file If the storage space occupied by the original file on the smart card corresponding to the file identification number is inconsistent, the original file on the smart card corresponding to the file identification number is cleared, and a special flag is set to indicate that the smart card file is stored to the selected storage location, and the selected The storage location is a storage bit other than the smart card;
    所述存储模块,是设置将所述智能卡文件存储至所述存储位置。The storage module is configured to store the smart card file to the storage location.
  17. 如权利要求12所述的系统,其中:所述存储模块,是设置为:当所述智能卡的更新内容为文件标识号未存在于智能卡上的智能卡文件,且所述智能卡文件所需的存储空间大小不大于选择的存储位置的存储空间大小时,将所述智能卡文件存储至所述存储位置,所述选择的存储位置为除所述智能卡之外的存储位。The system of claim 12, wherein: said storage module is configured to: when the updated content of the smart card is a smart card file whose file identification number does not exist on the smart card, and the storage space required by the smart card file When the size is not greater than the storage space size of the selected storage location, the smart card file is stored to the storage location, and the selected storage location is a storage bit other than the smart card.
  18. 如权利要求16或17所述的系统,其中:所述存储模块,还设置为在将所述智能卡文件存储至所述存储位置之前,将所述智能卡的标识信息保存至所述存储位置。The system of claim 16 or 17, wherein: said storage module is further configured to save identification information of said smart card to said storage location prior to storing said smart card file to said storage location.
  19. 如权利要求18所述的系统,其中:所述存储位置包括快闪存储器T卡或移动终端的内存。The system of claim 18 wherein: said storage location comprises a flash memory T card or a memory of the mobile terminal.
  20. 如权利要求12所述的系统,其中:所述存储模块,是设置为:当所述智能卡的更新内容为未以文件标识号标识的信息时,用所述未以文件标识号标识的信息更新智能卡上对应的原信息。The system of claim 12, wherein: said storage module is configured to: update information identified by said file identification number when said update content of said smart card is information not identified by a file identification number The corresponding original information on the smart card.
  21. 如权利要求12所述的系统,其中:所述智能卡包括客户识别模块SIM卡或用户识别模块UIM卡。The system of claim 12 wherein: said smart card comprises a customer identification module SIM card or a subscriber identity module UIM card.
  22. 如权利要求12所述的系统,其中:所述未以文件标识号标识的信息包括加密信息或鉴权信息。 The system of claim 12 wherein: said information not identified by the file identification number comprises encrypted information or authentication information.
  23. 一种计算机可读存储介质,存储有程序指令,当该程序指令被执行时可实现权利要求1-11任一项所述的方法。 A computer readable storage medium storing program instructions that, when executed, implement the method of any of claims 1-11.
PCT/CN2015/080794 2015-05-13 2015-06-04 Method and system for updating smart card of mobile terminal WO2016179866A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510244155.4A CN106304034A (en) 2015-05-13 2015-05-13 A kind of method and system of long-range renewal mobile terminal intelligent card
CN201510244155.4 2015-05-13

Publications (1)

Publication Number Publication Date
WO2016179866A1 true WO2016179866A1 (en) 2016-11-17

Family

ID=57247631

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/080794 WO2016179866A1 (en) 2015-05-13 2015-06-04 Method and system for updating smart card of mobile terminal

Country Status (2)

Country Link
CN (1) CN106304034A (en)
WO (1) WO2016179866A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4221088A3 (en) 2017-02-10 2023-09-06 Huawei Technologies Co., Ltd. Method and system for updating certificate issuer public key, and related device
CN108804125A (en) * 2018-06-29 2018-11-13 四川科道芯国智能技术股份有限公司 application management method, device and terminal device
CN109600779A (en) * 2018-12-30 2019-04-09 Tcl移动通信科技(宁波)有限公司 A kind of SIM card falls card identification method, intelligent terminal and storage medium
CN112685084A (en) * 2020-12-21 2021-04-20 Oppo广东移动通信有限公司 Resource allocation method, device, terminal and storage medium
CN113612836B (en) * 2021-07-30 2023-04-07 恒宝股份有限公司 Connection method, connection device, electronic equipment and computer-readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222514A (en) * 2008-01-31 2008-07-16 中兴通讯股份有限公司 Apparatus and method for implementing OTA based on bearer independent protocol
CN101835281A (en) * 2010-02-24 2010-09-15 中兴通讯股份有限公司 Method for carrying out data interaction with subscriber identification card and mobile terminal
CN101883142A (en) * 2010-06-22 2010-11-10 中兴通讯股份有限公司 Method for backing up information of terminal user

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101500197A (en) * 2008-02-03 2009-08-05 大唐移动通信设备有限公司 Method, apparatus and system for over-the-air downloading
CN101795448B (en) * 2009-09-28 2013-09-25 恒宝股份有限公司 Enterprise management system based on wireless download technology
KR101554077B1 (en) * 2010-10-20 2015-09-17 블랙베리 리미티드 Card application toolkit support for ip multimedia subsystem
CN102542306B (en) * 2010-12-31 2016-06-01 重庆重邮信科通信技术有限公司 A kind of mobile terminal application subsystem accesses the method for Subscriber Identity Module file
CN104159222A (en) * 2013-05-15 2014-11-19 中兴通讯股份有限公司 Terminal, identity identification realization method, and authentication method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222514A (en) * 2008-01-31 2008-07-16 中兴通讯股份有限公司 Apparatus and method for implementing OTA based on bearer independent protocol
CN101835281A (en) * 2010-02-24 2010-09-15 中兴通讯股份有限公司 Method for carrying out data interaction with subscriber identification card and mobile terminal
CN101883142A (en) * 2010-06-22 2010-11-10 中兴通讯股份有限公司 Method for backing up information of terminal user

Also Published As

Publication number Publication date
CN106304034A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
US10999273B2 (en) Method and apparatus for installing profile for eUICC
US11153746B2 (en) Method and terminal for keeping subscriber identity module card in standby state
US10911939B2 (en) Embedded universal integrated circuit card profile management method and apparatus
CN106162517B (en) Virtual SIM card management method and system
EP3122080B1 (en) Method for distributing virtual user identification data, method for acquiring virtual user identification data, and device
EP3082353B1 (en) Method and terminal device for sending and receiving user data
US8863240B2 (en) Method and system for smart card migration
WO2016179866A1 (en) Method and system for updating smart card of mobile terminal
EP3648487B1 (en) Method for updating firmware and related apparatus
WO2018045958A1 (en) Method and system for upgrading wireless fidelity (wi-fi) device
KR20160120598A (en) Method and apparatus for downloading a profile in a wireless communication system
EP3041189A1 (en) Communication control apparatus, authentication device, central control apparatus and communication systems
US20150271173A1 (en) Method of managing shared file and device for authenticating subscriber by using same
US10911945B1 (en) Automated eUICC service profile configuration in view of operational issue with respect to eUICC service profile
JP2022535181A (en) A method of providing a subscription profile, a subscriber identity module, and a subscription server
WO2019129271A1 (en) Method for electronic device authentication and firmware update, and electronic device
EP2566207A1 (en) Computer network, mobile telephone device, and computer program for writing encrypted files to a telecommunications access card
US20230007465A1 (en) Backlog mechanism for subscriber profiles on euiccs
US20230336970A1 (en) Electronic device performing verification using embedded sim and operating method therefor
US9973921B2 (en) Conflict detection
KR20060024983A (en) Initialization method for mobile communication terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15891569

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15891569

Country of ref document: EP

Kind code of ref document: A1