WO2018018636A1 - 信息写入方法及装置 - Google Patents

信息写入方法及装置 Download PDF

Info

Publication number
WO2018018636A1
WO2018018636A1 PCT/CN2016/092429 CN2016092429W WO2018018636A1 WO 2018018636 A1 WO2018018636 A1 WO 2018018636A1 CN 2016092429 W CN2016092429 W CN 2016092429W WO 2018018636 A1 WO2018018636 A1 WO 2018018636A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
code number
number information
sim card
cos
Prior art date
Application number
PCT/CN2016/092429
Other languages
English (en)
French (fr)
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 北京小米移动软件有限公司
Priority to CN201680000715.4A priority Critical patent/CN106465095B/zh
Priority to PCT/CN2016/092429 priority patent/WO2018018636A1/zh
Priority to EP17182919.5A priority patent/EP3276995B1/en
Publication of WO2018018636A1 publication Critical patent/WO2018018636A1/zh
Priority to US16/127,389 priority patent/US10681533B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/60Subscription-based services using application servers or record carriers, e.g. SIM application toolkits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • H04W8/205Transfer to or from user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support
    • H04W8/265Network addressing or numbering for mobility support for initial activation of new user

Definitions

  • the present disclosure relates to the field of communications technologies, and in particular, to an information writing method and apparatus.
  • a SIM card Customer Identification Module in the terminal stores a set of code number information.
  • a set of code number information corresponds to a communication number.
  • the SIM card can be connected to the carrier network, and the user can use the communication number.
  • the related information writing method includes: the terminal accesses the operator network, and if the code number information in the SIM card of the terminal needs to be written, the carrier network will encode the code number information.
  • Send to the OTA (Over the Air Technology) gateway the OTA gateway converts the code number information into an OTA message and sends it to the SMS service center.
  • the SMS service center sends the short message to the terminal, and the terminal then uses the proprietary interface to send the message to the terminal.
  • the OTA message is sent to the SIM card, and the SIM card writes the code number information according to the received OTA message.
  • the proprietary interface is an interface specifically for the terminal to send an OTA message to the SIM card.
  • the present disclosure provides an information writing method and apparatus.
  • an information writing method comprising:
  • the code number information is written into the SIM card by the COS.
  • the sending by the original interface in the operating system, the code number information to the card operating system COS of the SIM card, including:
  • the other information encapsulated by the code number information is sent to the COS through an original interface in the operating system.
  • the writing, by the COS, the code number information into the SIM card including:
  • the information obtained by the decryption satisfies the format of the code number information
  • the information obtained by the COS determining that the decryption is obtained is code number information, and the code number information is written into the SIM card.
  • the acquiring the code number information of the SIM card of the customer identification module includes:
  • the writing, by the COS, the code number information into the SIM card including:
  • the code number information pre-stored by the SIM card is updated by the COS by using the received code number information
  • the code number information is not pre-stored in the SIM card, the code number information is written into the SIM card by the COS.
  • an information writing apparatus comprising:
  • the information obtaining module is configured to obtain code number information of the SIM card of the customer identification module, where the code number information is verification information when the SIM card is connected to the operator network;
  • the information sending module is configured to send the code number information acquired by the information acquiring module to the card operating system COS of the SIM card by using an original interface in the operating system, where the original interface is the operation a communication interface prepared by the system to transmit other information between the COS;
  • the information writing module is configured to write the code number information of the information sending module into the SIM card by using the COS.
  • the information sending module includes:
  • a parameter determining submodule configured to determine n parameters included by other information transmitted by using the original interface, n ⁇ 1;
  • An information encryption submodule configured to encrypt the code number information and obtain the encrypted secret And determining, as the parameter, the parameter value of the n parameters determined by the submodule, and obtaining other information encapsulated by the code number information;
  • the information sending submodule is configured to send, by the original interface in the operating system, the other information encapsulated by the code number information encrypted by the information encryption submodule to the COS.
  • the information writing module includes:
  • An information decryption submodule configured to decrypt, by the COS, parameter values of n parameters included in other received information
  • a format detection submodule configured to: when the decryption is successful, whether the information obtained by the COS detection and decryption satisfies the code number information format;
  • the information writing submodule is configured to: when the information obtained by the decryption satisfies the format of the code number information, determine, by using the COS, that the information obtained by the decryption is code number information, and write the code number information into the Said in the SIM card.
  • the information acquiring module includes:
  • a network access sub-module configured to access a data network
  • the information acquisition submodule is configured to acquire code number information of the SIM card from the accessed data network.
  • the information writing module is further configured to:
  • the code number information pre-stored by the SIM card is updated by the COS by using the received code number information
  • the code number information is not pre-stored in the SIM card, the code number information is written into the SIM card by the COS.
  • an information writing apparatus comprising:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • the code number information is written into the SIM card by the COS.
  • the code number information is sent to the COS of the SIM card through the original interface in the operating system, and the original interface is a communication interface prepared for transmitting other information between the operating system and the COS; the code number information is written into the SIM card by the COS.
  • the code number information can be transmitted through the original interface, which not only reduces the implementation complexity of the transmission code number information, but also solves the problem that the operator cannot limit the code number information to the SIM card when the terminal restricts the terminal receiving the OTA message.
  • the effect of improving the success rate of code number information writing is achieved.
  • n parameters included in other information transmitted by the original interface By determining n parameters included in other information transmitted by the original interface; encrypting the code number information, and using the encrypted ciphertext as the parameter value of the n parameters, obtaining other information packaged by the code number information;
  • the other information encapsulated by the code number information is sent to the COS through the original interface in the operating system, and the code number information can be packaged into other information for transmission without modifying the original interface, thereby solving the modification of the original interface and causing the transmission code.
  • the problem of high complexity of the implementation of the number information achieves the effect of reducing the implementation complexity of the transmission code number information.
  • the code number information is written into the SIM card through the COS, so that the user can directly obtain the blank SIM card, and write the code number information according to his own needs, thereby expanding the application of the SIM card. range.
  • FIG. 1 is a flow chart showing an information writing method according to an exemplary embodiment.
  • FIG. 2 is a flowchart of an information writing method according to another exemplary embodiment.
  • FIG. 3 is a block diagram of an information writing apparatus according to an exemplary embodiment.
  • FIG. 4 is a block diagram of an information writing apparatus according to an exemplary embodiment.
  • FIG. 5 is a block diagram of an apparatus for information writing, according to an exemplary embodiment.
  • FIG. 1 is a flowchart of an information writing method according to an exemplary embodiment.
  • the information writing method is applied to a terminal. As shown in FIG. 1, the information writing method includes the following steps.
  • step 101 the code number information of the SIM card is obtained, and the code number information is verification information when the SIM card accesses the carrier network.
  • step 102 the code number information is sent to the COS of the SIM card through the original interface in the operating system, and the original interface is a communication interface prepared for transmitting other information between the operating system and the COS.
  • step 103 the code number information is written into the SIM card by the COS.
  • the information writing method provided by the present disclosure sends the code number information to the COS of the SIM card through the original interface in the operating system, and the original interface is prepared for transmitting other information between the operating system and the COS.
  • Communication interface the code number information is written into the SIM card through the COS, so that the code number information can be transmitted through the original interface, which not only reduces the implementation complexity of the transmission code number information, but also solves the problem that the operator restricts the terminal from receiving the OTA message.
  • the code number information cannot be written to the SIM card, the effect of improving the success rate of the code number information writing is achieved.
  • FIG. 2 is a flowchart of a method for writing information according to another exemplary embodiment.
  • the information writing method is applied to a terminal. As shown in FIG. 2, the information writing method includes the following steps.
  • step 201 the code number information of the SIM card is obtained, and the code number information is verification information when the SIM card is connected to the operator network.
  • the code number information of the SIM card is obtained, including accessing the data network, and the code number information of the SIM card is obtained from the accessed data network.
  • the data network is a network that can be accessed without a SIM card, and may be a wired network, a wireless network, or the like, which is not limited in this embodiment.
  • the data network may be a WiFi (Wireless-Fidelity) network.
  • a SIM card is a card in which a set of code number information is stored in a terminal.
  • the code number information refers to the verification information when the SIM card is connected to the carrier network.
  • Code number information includes IMSI (International Mobile Subscriber Identification Number, International Mobile Subscriber Identity, KI (Key Identifier), OPC (Original Point Code), SMS Center Number, etc.
  • IMSI International Mobile Subscriber Identification Number
  • KI Key Identifier
  • OPC Olinal Point Code
  • SMS Center Number etc.
  • the terminal can access the carrier network through the SIM card, and the user can use the communication number corresponding to the code number information. For example, if the communication number corresponding to the SIM card is 150xxxxxxxx, the user can use the number to send a text message and make a call after the terminal accesses the carrier network.
  • the data network is a network that can be accessed without a SIM card
  • the terminal can obtain the code number information through the data network. There is no need to purchase a roaming communication number for the SIM card in order to access the local carrier network, so the cost of using the SIM card can be saved.
  • the terminal After the terminal obtains the code number information, the terminal needs to send the obtained code number information to the COS in the SIM card, where COS is the operating system of the SIM card.
  • the terminal can send the code number information to the COS immediately when the code number information is obtained, that is, the code number information is sent to the COS when the network is connected, and the code number information can be sent to the COS when the network is offline, which is not limited in this embodiment.
  • step 202 n parameters included in other information transmitted using the original interface are determined, n ⁇ 1.
  • the terminal needs to select the original interface in the operating system that can communicate with the COS.
  • the original interface is the communication interface prepared by the operating system and the COS to transmit other information.
  • Other information is the original function of the original interface.
  • Information transmitted by the interface For example, when the original interface is a read/write SIM card short message interface, the original function of the original interface is to read and write the SIM card short message, and other information at this time is a short message; when the original interface is a read/write contact interface, the original The original function of the interface is to read and write contacts, and other information at this time is contact information.
  • the terminal selects different original interfaces.
  • the communication interface between the operating system and the COS is a read/write SIM card short message and a read/write contact interface, and the terminal can select one of the two communication interfaces.
  • the interface is the original interface.
  • the communication interface between the operating system and the COS is an ICC (Integrated Circuit Card) interface, and the terminal uses the ICC interface as the original interface.
  • the operating system is an MTK system
  • the communication interface between the MTK system and the COS is a general interface.
  • the original interface is used to transmit other information. Therefore, in order to enable the code number information transmitted by the original interface to be received by the COS without being discarded due to COS being unrecognizable, the terminal needs to package the code number information. Into other information. In implementation, since other information usually includes fixed parameters, Therefore, the terminal can wrap the code number information into parameters in other information. In this way, the developer does not need to modify the original interface, and solves the problem that the implementation of the original interface causes the transmission code number information to be complicated, and achieves the effect of reducing the implementation complexity of the transmission code number information.
  • the parameters for the read-write contact interface include the phone parameter and the name parameter.
  • step 203 the code number information is encrypted, and the encrypted ciphertext is used as the parameter value of the n parameters to obtain other information packaged by the code number information.
  • the COS After the code number information is packaged into other information, the COS cannot identify other information that is received as other information or other information packaged by the code number information. Therefore, the terminal needs other information and the code number information. Different information is packaged to distinguish.
  • the terminal wraps the other information by adding the password number information.
  • the encryption key is stored in the terminal
  • the decryption key is stored in the COS
  • the encryption key and the decryption key may be public or private keys, or may be a pair of symmetric keys. Not limited.
  • the terminal may generate other information encapsulated by the code number information according to the number m of parameters included in the code number information and the number n of parameters included in other information.
  • the terminal When m ⁇ n, the terminal encrypts the m parameters included in the code number information to obtain m ciphertexts; selects m parameters from among the n parameters included in other information, and takes m ciphertexts as m Parameter value of the parameter; set the parameter value of the remaining nm parameters to a preset value, or select nm ciphertext from m ciphertexts, and select the selected nm ciphertext as parameters of the remaining nm parameters respectively value.
  • the terminal uses the ciphertext obtained by encrypting the IMSI as the parameter value of the phone parameter, and sets the parameter value of the name parameter to a preset value, or The ciphertext obtained by encrypting the IMSI is used as the parameter value of the name parameter.
  • the code number information includes the IMSI and the KI
  • the parameter includes the phone parameter and the name parameter
  • the ciphertext obtained by encrypting the IMSI may be used as the parameter value of the phone parameter
  • the ciphertext obtained by encrypting the KI is used as the name parameter. Parameter value.
  • the terminal divides the parameters included in the code number information into n classes, encrypts each type of parameter to obtain n ciphertexts, and uses m ciphertexts as parameter values of n parameters included in other information respectively.
  • the terminal divides the IMSI and the KI into one class, and divides the short message service center number into another class, and the IMSI will be
  • the ciphertext obtained by encrypting with KI is used as the parameter value of the phone parameter
  • the ciphertext obtained by encrypting the short message service center number is used as the parameter value of the name parameter.
  • step 204 other information packaged by the code number information is sent to the COS through the original interface in the operating system.
  • step 205 the parameter values of the n parameters included in the received other information are decrypted by the COS.
  • the COS decrypts the received other information using the decryption key.
  • step 206 is performed; when the COS decryption fails, step 208 is performed.
  • step 206 when the decryption is successful, it is detected by the COS whether the decrypted information satisfies the code number information format.
  • the code number information format refers to the format of the code number information before encryption.
  • the terminal can set an expression for each parameter, and combine the expressions of all the parameters to obtain the code number information format, and the expression does not Includes parameter values.
  • the code number information format is a json object ⁇ "ki”: “xxx”, “opc”: "xxxx” ⁇ , which is not limited in this embodiment. .
  • the expression of each parameter in the terminal detection information is the same as the expression of the corresponding parameter in the code number information format; when the expression of each parameter is the same as the expression of the corresponding parameter in the code number information format, It is determined that the information satisfies the code number information format; when the expression of any one parameter is different from the expression of the corresponding parameter in the code number information format, it is determined that the information does not satisfy the code number information format.
  • the order of the expressions of the respective parameters may be different from the order of the expressions of the respective parameters in the code number information format.
  • step 207 when the decrypted information satisfies the code number information format, the information obtained by the COS determination and decryption is the code number information, and the code number information is written into the SIM card.
  • the COS determines that the received other information is other information packaged by the code number information, thereby determining that the decrypted information is code number information, and writing the code number information to the SIM card. in.
  • step 208 when the decryption fails, it is determined by the COS that the parameter values of the n parameters included in the other information are not the code number information.
  • COS determines that other information received is true to other information.
  • step 209 other information is processed by the COS in accordance with the original processing of other information.
  • the COS creates contact information in the SIM card, and writes 138xxxxxxxx and Huaweing into the contact information.
  • the SIM card may be a SIM card pre-stored with the code number information.
  • the code number information pre-stored by the SIM card is updated by the COS by using the received code number information.
  • the code number information 1 is pre-stored in the SIM card, and the operator network passes the verification of the code number information 1.
  • the user communicates using the communication number 1 corresponding to the code number information 1; if the user leaves the country, the communication needs to be performed. If the number 1 is updated to the local communication number 2 to save the communication fee, the code number information 2 can be written into the SIM card by using the COS, and the COS updates the code number information 1 by using the code number information 2, and the code number information 2 is transmitted on the carrier network.
  • the verification is passed, the user can communicate using the communication number 2.
  • the SIM card may also be a SIM card that does not pre-store the code number information, that is, the SIM card is a blank card.
  • the code number information is written into the SIM card by the COS. In this way, the user can directly obtain a blank SIM card, and write the code number information according to his own needs, thereby expanding the applicable range of the SIM card.
  • the information writing method provided in this embodiment sends the code number information to the COS of the SIM card through the original interface in the operating system, and the original interface is prepared for transmitting other information between the operating system and the COS.
  • Communication interface the code number information is written into the SIM card through the COS, so that the code number information can be transmitted through the original interface, which not only reduces the implementation complexity of the transmission code number information, but also solves the problem that the operator restricts the terminal to receive the OTA.
  • the short message is sent, the problem that the code number information cannot be written to the SIM card is achieved, and the success rate of the code number information writing is improved.
  • n parameters included in other information transmitted by the original interface By determining n parameters included in other information transmitted by the original interface; encrypting the code number information, and using the encrypted ciphertext as the parameter value of the n parameters, obtaining other information packaged by the code number information;
  • the other information encapsulated by the code number information is sent to the COS through the original interface in the operating system, and the code number information can be packaged into other information for transmission without modifying the original interface, thereby solving the modification of the original interface and causing the transmission code.
  • the problem of high complexity of the implementation of the number information achieves the effect of reducing the implementation complexity of the transmission code number information.
  • the code number information is written into the SIM card through the COS.
  • the user can directly obtain a blank SIM card and write the code number information according to his own needs, thereby expanding the applicable range of the SIM card.
  • the code number information is sent to the COS through the original interface in the operating system, and the operating system and the COS realize the transmission of the code number information on the basis of transmitting other information, and expand the function of the original interface.
  • FIG. 3 is a block diagram of an information writing apparatus, which is applied to a terminal, as shown in FIG. 3, the information writing apparatus includes: an information acquisition module 310, and information transmission, according to an exemplary embodiment. Module 320 and information writing module 330;
  • the information obtaining module 310 is configured to obtain code number information of the SIM card, where the code number information is verification information when the SIM card accesses the carrier network;
  • the information sending module 320 is configured to send the code number information acquired by the information acquiring module 310 to the COS of the SIM card through the original interface in the operating system, and the original interface is prepared for transmitting other information between the operating system and the COS. Communication interface;
  • the information writing module 330 is configured to write the information transmission module 320 code number information into the SIM card through the COS.
  • the information writing device sends the code number information to the COS of the SIM card through the original interface in the operating system, and the original interface is prepared for transmitting other information between the operating system and the COS.
  • Communication interface the code number information is written into the SIM card through the COS, so that the code number information can be transmitted through the original interface, which not only reduces the implementation complexity of the transmission code number information, but also solves the problem that the operator restricts the terminal from receiving the OTA message.
  • the code number information cannot be written to the SIM card, the effect of improving the success rate of the code number information writing is achieved.
  • FIG. 4 is a block diagram of an information writing apparatus, which is applied to a terminal, as shown in FIG. 4, the information writing apparatus includes: an information acquiring module 410, and information transmission, according to an exemplary embodiment. Module 420 and information writing module 430;
  • the information obtaining module 410 is configured to obtain code number information of the SIM card, where the code number information is verification information when the SIM card accesses the carrier network;
  • the information sending module 420 is configured to send the code number information acquired by the information acquiring module 410 to the COS of the SIM card through the original interface in the operating system, and the original interface is prepared for transmitting other information between the operating system and the COS. Communication interface;
  • the information writing module 430 is configured to write the code number information of the information sending module 420 through the COS. Into the SIM card.
  • the information sending module includes: a parameter determining submodule 421, an information encrypting submodule 422, and an information sending submodule 423;
  • the parameter determining submodule 421 is configured to determine n parameters included in other information transmitted by using the original interface, n ⁇ 1;
  • the information encryption sub-module 422 is configured to encrypt the code number information, and use the encrypted ciphertext as a parameter to determine the parameter values of the n parameters determined by the sub-module 421 to obtain other information encapsulated by the code number information;
  • the information sending submodule 423 is configured to send other information encapsulated by the code number information encrypted by the information encryption submodule 422 to the COS through the original interface in the operating system.
  • the information writing module 430 includes: an information decryption sub-module 431, a format detection sub-module 432, and an information writing sub-module 433;
  • the information decryption sub-module 431 is configured to decrypt the parameter values of the n parameters included in the received other information by the COS;
  • the format detection sub-module 432 is configured to: when the decryption is successful, whether the information obtained by the COS detection and decryption satisfies the code number information format;
  • the information writing sub-module 433 is configured to determine, when the decrypted information satisfies the code number information format, the information obtained by the COS decryption is the code number information, and the code number information is written into the SIM card.
  • the information obtaining module 410 further includes: a network access sub-module 411 and an information processing module 412;
  • the network access submodule 411 is configured to access a data network
  • the information acquisition sub-module 412 is configured to acquire code number information of the SIM card from the accessed data network.
  • the information writing module 430 is further configured to:
  • the code number information pre-stored by the SIM card is updated by the COS by using the received code number information
  • the code number information is not pre-stored in the SIM card, the code number information is written into the SIM card by the COS.
  • the information writing device sends the code number information to the COS of the SIM card through the original interface in the operating system, and the original interface is prepared for transmitting other information between the operating system and the COS.
  • Communication interface the code number information is written into the SIM card through the COS, so that the code number information can be transmitted through the original interface, which not only reduces the implementation complexity of the transmission code number information, but also solves the operation.
  • the business restriction terminal receives the OTA short message, the problem that the code number information cannot be written to the SIM card is achieved, and the success rate of the code number information writing is improved.
  • n parameters included in other information transmitted by the original interface By determining n parameters included in other information transmitted by the original interface; encrypting the code number information, and using the encrypted ciphertext as the parameter value of the n parameters, obtaining other information packaged by the code number information;
  • the other information encapsulated by the code number information is sent to the COS through the original interface in the operating system, and the code number information can be packaged into other information for transmission without modifying the original interface, thereby solving the modification of the original interface and causing the transmission code.
  • the problem of high complexity of the implementation of the number information achieves the effect of reducing the implementation complexity of the transmission code number information.
  • the code number information is written into the SIM card through the COS, so that the user can directly obtain the blank SIM card, and write the code number information according to his own needs, thereby expanding the application of the SIM card. range.
  • the code number information is sent to the COS through the original interface in the operating system, and the operating system and the COS realize the transmission of the code number information on the basis of transmitting other information, and expand the function of the original interface.
  • An exemplary embodiment of the present disclosure provides an information writing apparatus capable of implementing the information writing method provided by the present disclosure, the information writing apparatus comprising: a processor, a memory for storing processor-executable instructions;
  • processor is configured to:
  • the code number information is sent to the card operating system COS of the SIM card through the original interface in the operating system, and the original interface is a communication interface prepared for transmitting other information between the operating system and the COS;
  • the code number information is written into the SIM card by the COS.
  • FIG. 5 is a block diagram of an apparatus 500 for information writing, according to an exemplary embodiment.
  • the device 500 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, and a tour. Play consoles, tablet devices, medical equipment, fitness equipment, personal digital assistants, etc.
  • apparatus 500 can include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, And a communication component 516.
  • Processing component 502 typically controls the overall operation of device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • Processing component 502 can include one or more processors 518 to execute instructions to perform all or part of the steps described above.
  • processing component 502 can include one or more modules to facilitate interaction between component 502 and other components.
  • processing component 502 can include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.
  • Memory 504 is configured to store various types of data to support operation at device 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phone book data, messages, pictures, videos, and the like.
  • the memory 504 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM Electrically erasable programmable read only memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Disk Disk or Optical Disk.
  • Power component 506 provides power to various components of device 500.
  • Power component 506 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 500.
  • the multimedia component 508 includes a screen between the device 500 and the user that provides an output interface.
  • the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
  • the multimedia component 508 includes a front camera and/or a rear camera. When the device 500 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 510 is configured to output and/or input an audio signal.
  • audio component 510 includes A microphone (MIC), the microphone is configured to receive an external audio signal when the device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
  • the received audio signal may be further stored in memory 504 or transmitted via communication component 516.
  • audio component 510 also includes a speaker for outputting an audio signal.
  • the I/O interface 512 provides an interface between the processing component 502 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
  • Sensor assembly 514 includes one or more sensors for providing device 500 with various aspects of status assessment.
  • sensor assembly 514 can detect an open/closed state of device 500, a relative positioning of components, such as the display and keypad of device 500, and sensor component 514 can also detect a change in position of one component of device 500 or device 500. The presence or absence of user contact with device 500, device 500 orientation or acceleration/deceleration, and temperature variation of device 500.
  • Sensor assembly 514 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component 514 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 516 is configured to facilitate wired or wireless communication between device 500 and other devices.
  • the device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof.
  • communication component 516 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
  • the communication component 516 also includes a near field communication (NFC) module to facilitate short range communication.
  • NFC near field communication
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • apparatus 500 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A gate array
  • controller microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
  • non-transitory computer readable storage medium comprising instructions, such as a memory 504 comprising instructions executable by processor 518 of apparatus 500 to perform the above method.
  • the non-transitory computer readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.

Abstract

本公开关于一种信息写入方法及装置,属于通信技术领域。所述方法包括:获取客户识别模块SIM卡的码号信息,所述码号信息是所述SIM卡接入运营商网络时的验证信息;通过操作系统中的原有接口将所述码号信息发送给所述SIM卡的卡片操作系统COS,所述原有接口是为所述操作系统与所述COS之间传输其他信息所编写的通信接口;通过所述COS将所述码号信息写入所述SIM卡中。本公开通过原有接口就可以传输码号信息,既降低了传输码号信息的实现复杂度,也解决了运营商限制终端接收OTA短信时,导致无法将码号信息写入SIM卡的问题,达到了提高码号信息写入的成功率的效果。

Description

信息写入方法及装置 技术领域
本公开涉及通信技术领域,特别涉及一种信息写入方法及装置。
背景技术
终端中的SIM卡(Subscriber Identification Module,客户识别模块)中存储有一组码号信息,通常一组码号信息对应于一个通信号码,当运营商对该SIM卡的码号信息的验证通过时,该SIM卡即可接入运营商网络,用户可以使用该通信号码。
当终端需要向SIM卡写入码号信息时,相关的信息写入方法包括:终端接入运营商网络,若需要写入终端的SIM卡中的码号信息,则运营商网络将码号信息发给OTA(Over the Air Technology,空中下载技术)网关,OTA网关将码号信息转换成OTA短信后发给短信服务中心,短信服务中心再将短信发给终端,终端再通过专有接口将该OTA短信发送给SIM卡,SIM卡根据接收到OTA短信写入码号信息。其中,专有接口是专门用于供终端向SIM卡发送OTA短信的接口。
发明内容
为解决相关技术中的问题,本公开提供了一种信息写入方法及装置。
根据本公开实施例的第一方面,提供一种信息写入方法,所述方法包括:
获取客户识别模块SIM卡的码号信息,所述码号信息是所述SIM卡接入运营商网络时的验证信息;
通过操作系统中的原有接口将所述码号信息发送给所述SIM卡的COS(Card Operating System,卡片操作系统),所述原有接口是为所述操作系统与所述COS之间传输其他信息所编写的通信接口;
通过所述COS将所述码号信息写入所述SIM卡中。
可选的,所述通过操作系统中的原有接口将所述码号信息发送给所述SIM卡的卡片操作系统COS,包括:
确定利用所述原有接口传输的其他信息所包括的n个参数,n≥1;
对所述码号信息进行加密,并将加密得到的密文作为所述n个参数的参数值,得到由所述码号信息包装成的其他信息;
通过所述操作系统中的原有接口将所述由所述码号信息包装成的其他信息发送给所述COS。
可选的,所述通过所述COS将所述码号信息写入所述SIM卡中,包括:
通过所述COS对接收到的其他信息所包括的n个参数的参数值进行解密;
当解密成功时,通过所述COS检测解密得到的信息是否满足码号信息格式;
当解密得到的所述信息满足所述码号信息格式时,通过所述COS确定解密得到的所述信息是码号信息,将所述码号信息写入所述SIM卡中。
可选的,所述获取客户识别模块SIM卡的码号信息,包括:
接入数据网络;
从接入的所述数据网络获取所述SIM卡的码号信息。
可选的,所述通过所述COS将所述码号信息写入所述SIM卡中,包括:
当所述SIM卡中预存有码号信息时,通过所述COS利用接收到的所述码号信息更新所述SIM卡预存的码号信息;
当所述SIM卡中未预存有码号信息时,通过所述COS将所述码号信息写入所述SIM卡中。
根据本公开实施例的第二方面,提供一种信息写入装置,所述装置包括:
信息获取模块,被配置为获取客户识别模块SIM卡的码号信息,所述码号信息是所述SIM卡接入运营商网络时的验证信息;
信息发送模块,被配置为通过操作系统中的原有接口将所述信息获取模块获取的所述码号信息发送给所述SIM卡的卡片操作系统COS,所述原有接口是为所述操作系统与所述COS之间传输其他信息所编写的通信接口;
信息写入模块,被配置为通过所述COS将所述信息发送模块所述码号信息写入所述SIM卡中。
可选的,所述信息发送模块,包括:
参数确定子模块,被配置为确定利用所述原有接口传输的其他信息所包括的n个参数,n≥1;
信息加密子模块,被配置为对所述码号信息进行加密,并将加密得到的密 文作为所述参数确定子模块确定的所述n个参数的参数值,得到由所述码号信息包装成的其他信息;
信息发送子模块,被配置为通过所述操作系统中的原有接口将所述信息加密子模块加密的所述由所述码号信息包装成的其他信息发送给所述COS。
可选的,所述信息写入模块,包括:
信息解密子模块,被配置为通过所述COS对接收到的其他信息所包括的n个参数的参数值进行解密;
格式检测子模块,被配置为当解密成功时,通过所述COS检测解密得到的信息是否满足码号信息格式;
信息写入子模块,被配置为当解密得到的所述信息满足所述码号信息格式时,通过所述COS确定解密得到的所述信息是码号信息,将所述码号信息写入所述SIM卡中。
可选的,所述信息获取模块,包括:
网络接入子模块,被配置为接入数据网络;
信息获取子模块,被配置为从接入的所述数据网络获取所述SIM卡的码号信息。
可选的,所述信息写入模块,还被配置为:
当所述SIM卡中预存有码号信息时,通过所述COS利用接收到的所述码号信息更新所述SIM卡预存的码号信息;
当所述SIM卡中未预存有码号信息时,通过所述COS将所述码号信息写入所述SIM卡中。
根据本公开实施例的第三方面,提供一种信息写入装置,所述装置包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为:
获取客户识别模块SIM卡的码号信息,所述码号信息是所述SIM卡接入运营商网络时的验证信息;
通过操作系统中的原有接口将所述码号信息发送给所述SIM卡的卡片操作系统COS,所述原有接口是为所述操作系统与所述COS之间传输其他信息所编写的通信接口;
通过所述COS将所述码号信息写入所述SIM卡中。
本公开的实施例提供的技术方案可以包括以下有益效果:
通过操作系统中的原有接口将码号信息发送给SIM卡的COS,原有接口是为操作系统与COS之间传输其他信息所编写的通信接口;通过COS将码号信息写入SIM卡中,这样,通过原有接口就可以传输码号信息,既降低了传输码号信息的实现复杂度,也解决了运营商限制终端接收OTA短信时,导致无法将码号信息写入SIM卡的问题,达到了提高码号信息写入的成功率的效果。
另外,通过从接入的数据网络获取SIM卡的码号信息,而不需要从运营商网络获取码号信息,解决了由于出境等原因导致SIM卡无法接入运营商网络时,无法获取码号信息的问题,达到了提高码号信息的获取成功率的效果。
通过确定利用原有接口传输的其他信息所包括的n个参数;对码号信息进行加密,并将加密得到的密文作为n个参数的参数值,得到由码号信息包装成的其他信息;通过操作系统中的原有接口将由码号信息包装成的其他信息发送给COS,可以将码号信息包装成其他信息进行传输,而不需要修改原有接口,解决了修改原有接口导致传输码号信息的实现复杂度高的问题,达到了降低传输码号信息的实现复杂度的效果。
当SIM卡中未预存有码号信息时,通过COS将码号信息写入SIM卡中,使得用户可以直接获取空白的SIM卡,根据自己的需求写入码号信息,扩大了SIM卡的适用范围。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本公开说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
图1是根据一示例性实施例示出的一种信息写入方法的流程图。
图2是根据另一示例性实施例示出的一种信息写入方法的流程图。
图3是根据一示例性实施例示出的一种信息写入装置的框图。
图4是根据一示例性实施例示出的一种信息写入装置的框图。
图5是根据一示例性实施例示出的一种用于信息写入的装置的框图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。
图1是根据一示例性实施例示出的一种信息写入方法的流程图,该信息写入方法应用于终端中,如图1所示,该信息写入方法包括以下步骤。
在步骤101中,获取SIM卡的码号信息,码号信息是SIM卡接入运营商网络时的验证信息。
在步骤102中,通过操作系统中的原有接口将码号信息发送给SIM卡的COS,原有接口是为操作系统与COS之间传输其他信息所编写的通信接口。
在步骤103中,通过COS将码号信息写入SIM卡中。
综上所述,本公开提供的信息写入方法,通过操作系统中的原有接口将码号信息发送给SIM卡的COS,原有接口是为操作系统与COS之间传输其他信息所编写的通信接口;通过COS将码号信息写入SIM卡中,这样,通过原有接口就可以传输码号信息,既降低了传输码号信息的实现复杂度,也解决了运营商限制终端接收OTA短信时,导致无法将码号信息写入SIM卡的问题,达到了提高码号信息写入的成功率的效果。
图2是根据另一示例性实施例示出的一种信息写入方法的流程图,该信息写入方法应用于终端中,如图2所示,该信息写入方法包括如下步骤。
在步骤201中,获取SIM卡的码号信息,码号信息是SIM卡接入运营商网络时的验证信息。
其中,获取SIM卡的码号信息,包括接入数据网络;从接入的数据网络获取SIM卡的码号信息。
数据网络是不需要SIM卡即可接入的网络,可以是有线网络、无线网络等,本实施例不作限定。在一种可能的实现方式中,数据网络可以是WiFi(Wireless-Fidelity,无线保真)网络。
SIM卡是指终端中存储有一组码号信息的卡。码号信息是指SIM卡接入运营商网络时的验证信息。码号信息包括IMSI(International Mobile Subscriber  Identification Number,国际移动用户识别码)、KI(Key Identifier,手机鉴权密钥)、OPC(Original Point Code,源信令点编码)、短信中心号码等信息。当运营商对该SIM卡的码号信息的验证通过时,终端通过SIM卡可以接入运营商网络,用户可以使用该码号信息对应的通信号码。例如,SIM卡对应的通信号码是150xxxxxxxx,则当终端接入运营商网络后,用户可以使用该号码发短信、打电话。
由于数据网络是不需要SIM卡即可接入的网络,当用户由于出境等原因无法将带有SIM卡的终端接入当地的运营商网络时,终端可以通过数据网络获取到码号信息,而不需要为了接入当地运营商网络而专门为SIM卡购买一个漫游的通信号码,因此,可以节省SIM卡的使用成本。
在终端获取到码号信息后,终端需要将获取的码号信息发送给SIM卡中的COS,其中,COS为SIM卡的操作系统。终端可以在获取到码号信息时立即发送给COS,即在联网时将码号信息发送给COS;也可以在离线时将码号信息发送给COS,本实施例不作限定。
在步骤202中,确定利用原有接口传输的其他信息所包括的n个参数,n≥1。
终端需要选取操作系统中能够与COS通信的原有接口,原有接口是操作系统与COS之间传输其他信息所编写的通信接口,其他信息是实现原有接口的原有功能时,通过原有接口传输的信息。例如,当原有接口是读写SIM卡短信接口时,原有接口的原始功能是读写SIM卡短信,此时的其他信息是短信;当原有接口是读写联系人接口时,原有接口的原始功能是读写联系人,此时的其他信息是联系人信息。
对于不同的操作系统,终端选取不同的原有接口。例如,当操作系统为版本5.0之前的Android(安卓)系统时,操作系统与COS之间的通信接口为读写SIM卡短信和读写联系人接口,终端可以从这两个通信接口中选择一个接口作为原有接口;对于操作系统为版本5.0之后的Android系统,操作系统与COS之间的通信接口为ICC(Integrated Circuit Card,集成电路卡)接口,终端将ICC接口作为原有接口。当操作系统为MTK系统时,MTK系统与COS之间的通信接口为通用接口。
原有接口是用于传输其他信息的,因此,为了能够使利用原有接口传输的码号信息能被COS接收到,而不会由于COS无法识别被丢弃掉,终端还需要将码号信息包装成其他信息。在实现时,由于其他信息通常包括固定的参数, 因此,终端可以将码号信息包装成其他信息中的参数。这样,开发人员不需要修改原有接口,解决了修改原有接口导致传输码号信息的实现复杂度高的问题,达到了降低传输码号信息的实现复杂度的效果。
由于不同的原有接口传输的其他信息不同,因此,不同的原有接口对应于不同的参数。例如,读写联系人接口的参数包括phone(电话)参数和name(姓名)参数。
在步骤203中,对码号信息进行加密,并将加密得到的密文作为n个参数的参数值,得到由码号信息包装成的其他信息。
在将码号信息包装成其他信息后,COS无法识别接收到的其他信息是真实的其他信息还是由码号信息包装成的其他信息,因此,终端还需要对真实的其他信息和由码号信息包装成的其他信息进行区分。
在实现时,终端通过加密码号信息来包装成其他信息。在这种实现方式中,终端中存储有加密密钥,COS中存储有解密密钥,且加密密钥和解密密钥可以互为公私秘钥,也可以为一对对称秘钥,本实施例不作限定。
本实施例中,终端可以根据码号信息中包括的参数的数量m与其他信息中包括的参数的数量n生成由码号信息包装成的其他信息。
当m<n时,终端对码号信息中包括的m个参数分别进行加密,得到m条密文;从其他信息包括的n个参数中选择m个参数,将m条密文分别作为m个参数的参数值;将剩余的n-m个参数的参数值设置为预设数值,或,从m条密文中选择n-m条密文,将选出的n-m条密文分别作为剩余的n-m个参数的参数值。例如,当码号信息包括IMSI、参数包括phone参数和name参数时,终端将对IMSI进行加密得到的密文作为phone参数的参数值,将name参数的参数值设置为预设数值,或者,将对IMSI进行加密得到的密文作为name参数的参数值。
当m=n时,终端对m个参数分别进行加密,得到m条密文;将m条密文分别作为其他信息包括的n个参数的参数值。例如,当码号信息包括IMSI和KI、参数包括phone参数和name参数时,可以将对IMSI进行加密得到的密文作为phone参数的参数值,将对KI进行加密得到的密文作为name参数的参数值。
当m>n时,终端将码号信息中包括的参数分为n类,对每类参数进行加密,得到n条密文;将m条密文分别作为其他信息包括的n个参数的参数值。 例如,当码号信息包括IMSI、KI和短信服务中心号码时、参数包括phone参数和name参数时,终端将IMSI和KI分为一类,将短信服务中心号码分为另一类,将对IMSI和KI进行加密得到的密文作为phone参数的参数值,将对短信服务中心号码进行加密得到的密文作为name参数的参数值。
在步骤204中,通过操作系统中的原有接口将由码号信息包装成的其他信息发送给COS。
在步骤205中,通过COS对接收到的其他信息所包括的n个参数的参数值进行解密。
COS使用解密秘钥对接收到其他信息进行解密,当COS解密成功时,执行步骤206;当COS解密失败时,执行步骤208。
在步骤206中,当解密成功时,通过COS检测解密得到的信息是否满足码号信息格式。
码号信息格式是指加密前码号信息的格式。在设置码号信息格式时,由于码号信息包括多个参数,因此,终端可以对每个参数设置一种表达式,对所有参数的表达式进行组合得到码号信息格式,该表达式中不包括参数值。
例如,码号信息格式为IMSI=xxx&KI=xxx&OPC=xxx,或者,码号信息格式为一个json对象{{″ki″:″xxx″,″opc″:″xxxx″}},本实施例不作限定。
在实现时,终端检测信息中每个参数的表达式与码号信息格式中对应参数的表达式是否相同;当每个参数的表达式均与码号信息格式中对应参数的表达式相同时,确定该信息满足码号信息格式;当任意一个参数的表达式与码号信息格式中对应参数的表达式不同时,确定该信息不满足码号信息格式。
可选的,各个参数的表达式的顺序与码号信息格式中各个参数的表达式的顺序可以不同。
在步骤207中,当解密得到的信息满足码号信息格式时,通过COS确定解密得到的信息是码号信息,将码号信息写入SIM卡中。
当解密得到的信息满足码号信息格式时,COS确定接收到的其他信息是由码号信息包装成的其他信息,从而确定解密得到的信息是码号信息,将该码号信息写入SIM卡中。
在步骤208中,当解密失败时,通过COS确定其他信息所包括的n个参数的参数值不是码号信息。
当解密失败时,或者,解密得到的码号信息不满足预设的码号信息格式时, COS确定接收到的其他信息是真实的其他信息。
在步骤209中,通过COS按照原有的对其他信息的处理方式处理其他信息。
例如,当phone参数是138xxxxxxxx,name参数是小明时,COS在SIM卡中创建联系人信息,将138xxxxxxxx和小明写入该联系人信息中。
本实施例中,SIM卡可以是预存有码号信息的SIM卡,此时,通过COS利用接收到的码号信息更新SIM卡预存的码号信息。假设,SIM卡中预存有码号信息1,且运营商网络对码号信息1的验证通过,此时,用户使用码号信息1对应的通信号码1进行通信;若用户出境后,需要将通信号码1更新成当地的通信号码2,以节省通信资费,则可以利用COS将码号信息2写入SIM卡,COS利用码号信息2更新码号信息1,在运营商网络对码号信息2的验证通过时,用户可以使用通信号码2进行通信。
本实施例中,SIM卡还可以是未预存有码号信息的SIM卡,即SIM卡是空白卡,此时,通过COS将码号信息写入SIM卡中。这样,用户可以直接获取空白的SIM卡,根据自己的需求写入码号信息,扩大了SIM卡的适用范围。
综上所述,本实施例提供的信息写入方法,通过操作系统中的原有接口将码号信息发送给SIM卡的COS,原有接口是为操作系统与COS之间传输其他信息所编写的通信接口;通过COS将码号信息写入SIM卡中,这样,通过原有接口就可以传输码号信息,既降低了传输码号信息的实现复杂度,也解决了运营商限制终端接收OTA短信时,导致无法将码号信息写入SIM卡的问题,达到了提高码号信息写入的成功率的效果。
另外,通过从接入的数据网络获取SIM卡的码号信息,而不需要从运营商网络获取码号信息,解决了由于出境等原因导致SIM卡无法接入运营商网络时,无法获取码号信息的问题,达到了提高码号信息的获取成功率的效果。
通过确定利用原有接口传输的其他信息所包括的n个参数;对码号信息进行加密,并将加密得到的密文作为n个参数的参数值,得到由码号信息包装成的其他信息;通过操作系统中的原有接口将由码号信息包装成的其他信息发送给COS,可以将码号信息包装成其他信息进行传输,而不需要修改原有接口,解决了修改原有接口导致传输码号信息的实现复杂度高的问题,达到了降低传输码号信息的实现复杂度的效果。
当SIM卡中未预存有码号信息时,通过COS将码号信息写入SIM卡中, 使得用户可以直接获取空白的SIM卡,根据自己的需求写入码号信息,扩大了SIM卡的适用范围。
通过操作系统中的原有接口将码号信息的发给COS,操作系统和COS在传输其他信息的基础上实现了码号信息的传输,扩展了原有接口的功能。
图3是根据一示例性实施例示出的一种信息写入装置的框图,该信息写入装置应用于终端中,如图3所示,该信息写入装置包括:信息获取模块310、信息发送模块320和信息写入模块330;
该信息获取模块310,被配置为获取SIM卡的码号信息,码号信息是SIM卡接入运营商网络时的验证信息;
该信息发送模块320,被配置为通过操作系统中的原有接口将信息获取模块310获取的码号信息发送给SIM卡的COS,原有接口是为操作系统与COS之间传输其他信息所编写的通信接口;
该信息写入模块330,被配置为通过COS将信息发送模块320码号信息写入SIM卡中。
综上所述,本公开提供的信息写入装置,通过操作系统中的原有接口将码号信息发送给SIM卡的COS,原有接口是为操作系统与COS之间传输其他信息所编写的通信接口;通过COS将码号信息写入SIM卡中,这样,通过原有接口就可以传输码号信息,既降低了传输码号信息的实现复杂度,也解决了运营商限制终端接收OTA短信时,导致无法将码号信息写入SIM卡的问题,达到了提高码号信息写入的成功率的效果。
图4是根据一示例性实施例示出的一种信息写入装置的框图,该信息写入装置应用于终端中,如图4所示,该信息写入装置包括:信息获取模块410、信息发送模块420和信息写入模块430;
该信息获取模块410,被配置为获取SIM卡的码号信息,码号信息是SIM卡接入运营商网络时的验证信息;
该信息发送模块420,被配置为通过操作系统中的原有接口将信息获取模块410获取的码号信息发送给SIM卡的COS,原有接口是为操作系统与COS之间传输其他信息所编写的通信接口;
该信息写入模块430,被配置为通过COS将信息发送模块420码号信息写 入SIM卡中。
可选的,信息发送模块,包括:参数确定子模块421、信息加密子模块422和信息发送子模块423;
该参数确定子模块421,被配置为确定利用原有接口传输的其他信息所包括的n个参数,n≥1;
该信息加密子模块422,被配置为对码号信息进行加密,并将加密得到的密文作为参数确定子模块421确定的n个参数的参数值,得到由码号信息包装成的其他信息;
该信息发送子模块423,被配置为通过操作系统中的原有接口将信息加密子模块422加密的由码号信息包装成的其他信息发送给COS。
可选的,信息写入模块430,包括:信息解密子模块431、格式检测子模块432和信息写入子模块433;
该信息解密子模块431,被配置为通过COS对接收到的其他信息所包括的n个参数的参数值进行解密;
该格式检测子模块432,被配置为当解密成功时,通过COS检测解密得到的信息是否满足码号信息格式;
该信息写入子模块433,被配置为当解密得到的信息满足码号信息格式时,通过COS确定解密得到的信息是码号信息,将码号信息写入SIM卡中。
可选的,信息获取模块410,还包括:网络接入子模块411和信息处理模块412;
该网络接入子模块411,被配置为接入数据网络;
该信息获取子模块412,被配置为从接入的所述数据网络获取所述SIM卡的码号信息。
可选的,信息写入模块430,还被配置为:
当SIM卡中预存有码号信息时,通过COS利用接收到的码号信息更新SIM卡预存的码号信息;
当SIM卡中未预存有码号信息时,通过COS将码号信息写入SIM卡中。
综上所述,本公开提供的信息写入装置,通过操作系统中的原有接口将码号信息发送给SIM卡的COS,原有接口是为操作系统与COS之间传输其他信息所编写的通信接口;通过COS将码号信息写入SIM卡中,这样,通过原有接口就可以传输码号信息,既降低了传输码号信息的实现复杂度,也解决了运 营商限制终端接收OTA短信时,导致无法将码号信息写入SIM卡的问题,达到了提高码号信息写入的成功率的效果。
另外,通过从接入的数据网络获取SIM卡的码号信息,而不需要从运营商网络获取码号信息,解决了由于出境等原因导致SIM卡无法接入运营商网络时,无法获取码号信息的问题,达到了提高码号信息的获取成功率的效果。
通过确定利用原有接口传输的其他信息所包括的n个参数;对码号信息进行加密,并将加密得到的密文作为n个参数的参数值,得到由码号信息包装成的其他信息;通过操作系统中的原有接口将由码号信息包装成的其他信息发送给COS,可以将码号信息包装成其他信息进行传输,而不需要修改原有接口,解决了修改原有接口导致传输码号信息的实现复杂度高的问题,达到了降低传输码号信息的实现复杂度的效果。
当SIM卡中未预存有码号信息时,通过COS将码号信息写入SIM卡中,使得用户可以直接获取空白的SIM卡,根据自己的需求写入码号信息,扩大了SIM卡的适用范围。
通过操作系统中的原有接口将码号信息的发给COS,操作系统和COS在传输其他信息的基础上实现了码号信息的传输,扩展了原有接口的功能。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
本公开一示例性实施例提供了一种信息写入装置,能够实现本公开提供的信息写入方法,该信息写入装置包括:处理器、用于存储处理器可执行指令的存储器;
其中,处理器被配置为:
获取客户识别模块SIM卡的码号信息,码号信息是SIM卡接入运营商网络时的验证信息;
通过操作系统中的原有接口将码号信息发送给SIM卡的卡片操作系统COS,原有接口是为操作系统与COS之间传输其他信息所编写的通信接口;
通过COS将码号信息写入SIM卡中。
图5是根据一示例性实施例示出的一种用于信息写入的装置500的框图。例如,装置500可以是移动电话,计算机,数字广播终端,消息收发设备,游 戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。
参照图5,装置500可以包括以下一个或多个组件:处理组件502,存储器504,电源组件506,多媒体组件508,音频组件510,输入/输出(I/O)的接口512,传感器组件514,以及通信组件516。
处理组件502通常控制装置500的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件502可以包括一个或多个处理器518来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件502可以包括一个或多个模块,便于处理组件502和其他组件之间的交互。例如,处理组件502可以包括多媒体模块,以方便多媒体组件508和处理组件502之间的交互。
存储器504被配置为存储各种类型的数据以支持在装置500的操作。这些数据的示例包括用于在装置500上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器504可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电源组件506为装置500的各种组件提供电力。电源组件506可以包括电源管理系统,一个或多个电源,及其他与为装置500生成、管理和分配电力相关联的组件。
多媒体组件508包括在所述装置500和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件508包括一个前置摄像头和/或后置摄像头。当装置500处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件510被配置为输出和/或输入音频信号。例如,音频组件510包括 一个麦克风(MIC),当装置500处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器504或经由通信组件516发送。在一些实施例中,音频组件510还包括一个扬声器,用于输出音频信号。
I/O接口512为处理组件502和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件514包括一个或多个传感器,用于为装置500提供各个方面的状态评估。例如,传感器组件514可以检测到装置500的打开/关闭状态,组件的相对定位,例如所述组件为装置500的显示器和小键盘,传感器组件514还可以检测装置500或装置500一个组件的位置改变,用户与装置500接触的存在或不存在,装置500方位或加速/减速和装置500的温度变化。传感器组件514可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件514还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件514还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件516被配置为便于装置500和其他设备之间有线或无线方式的通信。装置500可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件516经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件516还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,装置500可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器504,上述指令可由装置500的处理器518执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
本领域技术人员在考虑说明书及实践这里的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。

Claims (11)

  1. 一种信息写入方法,其特征在于,所述方法包括:
    获取客户识别模块SIM卡的码号信息,所述码号信息是所述SIM卡接入运营商网络时的验证信息;
    通过操作系统中的原有接口将所述码号信息发送给所述SIM卡的卡片操作系统COS,所述原有接口是为所述操作系统与所述COS之间传输其他信息所编写的通信接口;
    通过所述COS将所述码号信息写入所述SIM卡中。
  2. 根据权利要求1所述的方法,其特征在于,所述通过操作系统中的原有接口将所述码号信息发送给所述SIM卡的卡片操作系统COS,包括:
    确定利用所述原有接口传输的其他信息所包括的n个参数,n≥1;
    对所述码号信息进行加密,并将加密得到的密文作为所述n个参数的参数值,得到由所述码号信息包装成的其他信息;
    通过所述操作系统中的原有接口将所述由所述码号信息包装成的其他信息发送给所述COS。
  3. 根据权利要求2所述的方法,其特征在于,所述通过所述COS将所述码号信息写入所述SIM卡中,包括:
    通过所述COS对接收到的其他信息所包括的n个参数的参数值进行解密;
    当解密成功时,通过所述COS检测解密得到的信息是否满足码号信息格式;
    当解密得到的所述信息满足所述码号信息格式时,通过所述COS确定解密得到的所述信息是码号信息,将所述码号信息写入所述SIM卡中。
  4. 根据权利要求1所述的方法,其特征在于,所述获取客户识别模块SIM卡的码号信息,包括:
    接入数据网络;
    从接入的所述数据网络获取所述SIM卡的码号信息。
  5. 根据权利要求1至4任一所述的方法,其特征在于,所述通过所述COS 将所述码号信息写入所述SIM卡中,包括:
    当所述SIM卡中预存有码号信息时,通过所述COS利用接收到的所述码号信息更新所述SIM卡预存的码号信息;
    当所述SIM卡中未预存有码号信息时,通过所述COS将所述码号信息写入所述SIM卡中。
  6. 一种信息写入装置,其特征在于,所述装置包括:
    信息获取模块,被配置为获取客户识别模块SIM卡的码号信息,所述码号信息是所述SIM卡接入运营商网络时的验证信息;
    信息发送模块,被配置为通过操作系统中的原有接口将所述信息获取模块获取的所述码号信息发送给所述SIM卡的卡片操作系统COS,所述原有接口是为所述操作系统与所述COS之间传输其他信息所编写的通信接口;
    信息写入模块,被配置为通过所述COS将所述信息发送模块发送的所述码号信息写入所述SIM卡中。
  7. 根据权利要求6所述的装置,其特征在于,所述信息发送模块,包括:
    参数确定子模块,被配置为确定利用所述原有接口传输的其他信息所包括的n个参数,n≥1;
    信息加密子模块,被配置为对所述码号信息进行加密,并将加密得到的密文作为所述参数确定子模块确定的所述n个参数的参数值,得到由所述码号信息包装成的其他信息;
    信息发送子模块,被配置为通过所述操作系统中的原有接口将所述信息加密子模块加密得到的所述由所述码号信息包装成的其他信息发送给所述COS。
  8. 根据权利要求7所述的装置,其特征在于,所述信息写入模块,包括:
    信息解密子模块,被配置为通过所述COS对接收到的其他信息所包括的n个参数的参数值进行解密;
    格式检测子模块,被配置为当解密成功时,通过所述COS检测所述信息解密子模块解密得到的信息是否满足码号信息格式;
    信息写入子模块,被配置为当所述格式检测子模块检测的结果为解密得到的所述信息满足所述码号信息格式时,通过所述COS确定解密得到的所述信息 是码号信息,将所述码号信息写入所述SIM卡中。
  9. 根据权利要求6所述的装置,其特征在于,所述信息获取模块,还包括:
    网络接入子模块,被配置为接入数据网络;
    信息获取子模块,被配置为从接入的所述数据网络获取所述SIM卡的码号信息。
  10. 根据权利要求6至9任一所述的装置,其特征在于,所述信息写入模块,还被配置为:
    当所述SIM卡中预存有码号信息时,通过所述COS利用接收到的所述码号信息更新所述SIM卡预存的码号信息;
    当所述SIM卡中未预存有码号信息时,通过所述COS将所述码号信息写入所述SIM卡中。
  11. 一种信息写入装置,其特征在于,所述装置包括:
    处理器;
    用于存储处理器可执行指令的存储器;
    其中,所述处理器被配置为:
    获取客户识别模块SIM卡的码号信息,所述码号信息是所述SIM卡接入运营商网络时的验证信息;
    通过操作系统中的原有接口将所述码号信息发送给所述SIM卡的卡片操作系统COS,所述原有接口是为所述操作系统与所述COS之间传输其他信息所编写的通信接口;
    通过所述COS将所述码号信息写入所述SIM卡中。
PCT/CN2016/092429 2016-07-29 2016-07-29 信息写入方法及装置 WO2018018636A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201680000715.4A CN106465095B (zh) 2016-07-29 2016-07-29 信息写入方法及装置
PCT/CN2016/092429 WO2018018636A1 (zh) 2016-07-29 2016-07-29 信息写入方法及装置
EP17182919.5A EP3276995B1 (en) 2016-07-29 2017-07-25 Information writing method and device
US16/127,389 US10681533B2 (en) 2016-07-29 2018-09-11 Information writing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/092429 WO2018018636A1 (zh) 2016-07-29 2016-07-29 信息写入方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/127,389 Continuation US10681533B2 (en) 2016-07-29 2018-09-11 Information writing method and device

Publications (1)

Publication Number Publication Date
WO2018018636A1 true WO2018018636A1 (zh) 2018-02-01

Family

ID=58215749

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/092429 WO2018018636A1 (zh) 2016-07-29 2016-07-29 信息写入方法及装置

Country Status (4)

Country Link
US (1) US10681533B2 (zh)
EP (1) EP3276995B1 (zh)
CN (1) CN106465095B (zh)
WO (1) WO2018018636A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113810898B (zh) * 2021-08-11 2024-03-12 天翼物联科技有限公司 集成有sim卡芯片的写号系统、方法及装置
CN115150813B (zh) * 2022-09-05 2023-01-20 北京智芯半导体科技有限公司 eSIM卡码号写入方法、写入装置、通信系统和服务器

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080276090A1 (en) * 2004-12-22 2008-11-06 Gemplus System for Allocating a Chip Card to a Network Operator
CN101557585A (zh) * 2009-05-27 2009-10-14 大唐微电子技术有限公司 一种智能卡
CN101568098A (zh) * 2009-05-26 2009-10-28 大唐微电子技术有限公司 用户识别模块的注册开通和/或数据写入终端
CN104796882A (zh) * 2014-01-16 2015-07-22 中国联合网络通信集团有限公司 智能卡写卡方法和装置

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6799155B1 (en) * 1998-12-11 2004-09-28 Allied Signal Inc. Replacement of externally mounted user interface modules with software emulation of user interface module functions in embedded processor applications
FI114180B (fi) * 2001-06-12 2004-08-31 Nokia Corp Parannettu menetelmä ja laitejärjestely tietojen siirron salaamiseksi radioverkon päätelaitteen sisältämässä rajapinnassa sekä radioverkon päätelaite
US20060030315A1 (en) * 2004-08-06 2006-02-09 Christopher Smith Method and system for provisioning wireless services using SIM information
US8787973B2 (en) * 2006-03-20 2014-07-22 Sandisk Il Ltd. Device and method for controlling usage of a memory card
CN100581275C (zh) * 2006-09-13 2010-01-13 北京握奇数据系统有限公司 移动通信用户身份识别卡信息直接交互方法及其支持设备
TR200805884A2 (tr) * 2008-08-07 2010-02-22 Turkcell Teknoloji̇ Araştirma & Geli̇şti̇rme Anoni̇m Şi̇rketi̇ Bir sim kart personalizasyon sistemi
CN101771973B (zh) 2008-12-29 2012-08-29 中国移动通信集团公司 数据短信的处理方法、设备及系统
CN103037071A (zh) * 2011-09-30 2013-04-10 王海泉 一种手机上通过软件与用户身份识别卡交换数据的方法
KR102093757B1 (ko) * 2012-05-24 2020-03-26 삼성전자 주식회사 eUICC 환경에서 SIM 프로파일을 제공하는 방법 및 장치
US9100175B2 (en) * 2013-11-19 2015-08-04 M2M And Iot Technologies, Llc Embedded universal integrated circuit card supporting two-factor authentication
KR102160597B1 (ko) * 2014-07-17 2020-09-28 삼성전자 주식회사 eUICC의 프로파일 설치 방법 및 장치
CN104507130A (zh) * 2014-12-17 2015-04-08 北京握奇数据系统有限公司 一种支持移动通信网络切换的sim卡及系统
CN107439027B (zh) * 2015-04-10 2020-12-01 苹果公司 用于电子用户身份模块(esim)安装和互操作的装置和方法
KR102621499B1 (ko) * 2015-11-13 2024-01-09 삼성전자주식회사 단말의 eUICC(embedded universal integrated circuit card)에 프로파일을 다운로드하는 방법 및 장치

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080276090A1 (en) * 2004-12-22 2008-11-06 Gemplus System for Allocating a Chip Card to a Network Operator
CN101568098A (zh) * 2009-05-26 2009-10-28 大唐微电子技术有限公司 用户识别模块的注册开通和/或数据写入终端
CN101557585A (zh) * 2009-05-27 2009-10-14 大唐微电子技术有限公司 一种智能卡
CN104796882A (zh) * 2014-01-16 2015-07-22 中国联合网络通信集团有限公司 智能卡写卡方法和装置

Also Published As

Publication number Publication date
US10681533B2 (en) 2020-06-09
CN106465095B (zh) 2018-07-24
EP3276995B1 (en) 2020-10-21
CN106465095A (zh) 2017-02-22
EP3276995A1 (en) 2018-01-31
US20190028885A1 (en) 2019-01-24

Similar Documents

Publication Publication Date Title
US9819652B2 (en) Information interaction methods and devices
US9769667B2 (en) Methods for controlling smart device
WO2017128719A1 (zh) 接入无线局域网的方法、装置及系统
WO2016155231A1 (zh) 网络接入方法及装置
JP6101863B2 (ja) 音声サービスでの情報送信方法、装置、プログラム、及び記録媒体
KR101642019B1 (ko) 단말기 검증방법, 장치, 프로그램 및 기록매체
US20170171794A1 (en) Method and apparatus for acquiring routing information
CN109246110B (zh) 数据共享方法、装置及计算机可读存储介质
CN113343212A (zh) 设备注册方法及装置、电子设备和存储介质
CN108900553B (zh) 一种通信方法、装置及计算机可读存储介质
WO2019062115A1 (zh) 应用界面的显示方法及装置
CN106060098B (zh) 验证码的处理方法、处理装置及处理系统
CN105282162A (zh) 账号管理业务的处理方法及装置
CN105120452B (zh) 传输信息的方法、装置及系统
CN106789070A (zh) 数据的解密方法、装置及终端
WO2018018636A1 (zh) 信息写入方法及装置
US10402562B2 (en) Method and device for encrypting application
CN107302519B (zh) 一种终端设备的身份认证方法、装置和终端设备、服务器
CN114189950A (zh) 信息交互方法、信息交互装置、服务器及存储介质
CN110072226B (zh) 一种写卡方法及装置
CN110072227B (zh) 一种写卡方法及装置
CN110062373A (zh) 一种写卡方法及装置
WO2023212943A1 (zh) 数据交互方法、装置、电子设备和存储介质
CN107318148B (zh) 无线局域网接入信息存储方法及装置
US10057762B2 (en) Method and device for acquiring information of relay router

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: 16910216

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: 16910216

Country of ref document: EP

Kind code of ref document: A1