CN108694340B - Method and device for writing data into smart card - Google Patents

Method and device for writing data into smart card Download PDF

Info

Publication number
CN108694340B
CN108694340B CN201710221660.6A CN201710221660A CN108694340B CN 108694340 B CN108694340 B CN 108694340B CN 201710221660 A CN201710221660 A CN 201710221660A CN 108694340 B CN108694340 B CN 108694340B
Authority
CN
China
Prior art keywords
data
written
smart card
writing
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710221660.6A
Other languages
Chinese (zh)
Other versions
CN108694340A (en
Inventor
刘青
郝佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Huahong Integrated Circuit Design Co ltd
Original Assignee
Beijing Huahong Integrated Circuit Design Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Huahong Integrated Circuit Design Co ltd filed Critical Beijing Huahong Integrated Circuit Design Co ltd
Priority to CN201710221660.6A priority Critical patent/CN108694340B/en
Publication of CN108694340A publication Critical patent/CN108694340A/en
Application granted granted Critical
Publication of CN108694340B publication Critical patent/CN108694340B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K1/00Methods or arrangements for marking the record carrier in digital fashion
    • G06K1/12Methods or arrangements for marking the record carrier in digital fashion otherwise than by punching
    • G06K1/128Methods or arrangements for marking the record carrier in digital fashion otherwise than by punching by electric registration, e.g. electrolytic, spark erosion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a method for writing data into a smart card of electronic equipment, which comprises the following steps: acquiring data to be written; controlling to open a preset reporting switch; and writing the data to be written into the smart card and storing the data based on the on state of the preset reporting switch. By adopting the method, the data to be written is written into the intelligent card and stored by controlling the report switch to be in the open state without embedding codes in the bottom layer of the operating system, and the process is simple and easy to implement.

Description

Method and device for writing data into smart card
Technical Field
The application belongs to the field of data processing of smart cards, and particularly relates to a method and a device for writing data into a smart card.
Background
A smart card (SIM), which is a necessary device for a smart terminal such as a mobile phone to authenticate a user Identity. The intelligent card can store multiple contents such as information of a digital mobile phone client, an encrypted key, a telephone book of a user and the like on a computer chip, can be used for identifying the identity of the global mobile communication system network client, and encrypts voice information when the client calls.
In The prior art, there are several methods for writing data into a smart card, such as an OTA (Over-The-Air Technology) Technology, an Open Mobile API (Application Programming Interface) (API) method. The Open Mobile API mode shields the operation on the smart card by the operating system, and the code embedded in the bottom layer is equivalent to establishing a tunnel between the operating system and the smart card, so that the terminal can be used as a common card reader to write any data into the smart card.
However, the Open Mobile API method must embed code in the bottom layer of the operating system and then compile the code together with the source code, which is complicated and complicated.
Disclosure of Invention
In view of the above, an object of the present application is to provide a method for writing data into a smart card, so as to solve the problem in the prior art that a writing process is complicated due to the need to embed a code in a bottom layer of an operating system.
A method for writing data into a smart card is applied to an electronic device, and comprises the following steps:
acquiring data to be written;
controlling to open a preset reporting switch;
and writing the data to be written into the smart card and storing the data based on the on state of the preset reporting switch.
In the foregoing method, preferably, after the obtaining the data to be written, the method further includes:
and according to a preset coding specification, packaging the content of the data to be written to obtain a data packet.
Preferably, the writing and storing the data to be written into the smart card based on the on state of the preset reporting switch includes:
receiving a first instruction based on the on state of the preset report switch, and controlling a menu item of a smart card displayed in a display screen of the electronic equipment based on the first instruction, wherein the smart card is in a connection state with the electronic equipment;
receiving a second instruction, and selecting a submenu item corresponding to data to be written in the menu item based on the second instruction;
inputting the data packet based on the submenu items to realize writing the data to be written into the smart card;
and storing the data packet to a preset storage area of the smart card.
Preferably, in the method, after writing and storing the data to be written in the smart card, the method further includes:
receiving operation information;
reading the data to be written from a storage area according to the operation information, wherein the data to be written is stored in the storage area;
and writing the data to be written into a first position of the smart card.
Preferably, in the method, after writing and storing the data to be written in the smart card, the method further includes:
receiving a third instruction;
and controlling the display of the data to be written in a display screen of the electronic equipment according to the third instruction.
An apparatus for smart card data writing, comprising:
the acquisition module is used for acquiring data to be written;
the control module is used for controlling the opening of a preset reporting switch;
and the first writing module is used for writing the data to be written into the smart card and storing the data based on the on state of the preset reporting switch.
The above apparatus preferably further comprises:
and the coding module is used for packing the content of the data to be written according to a preset coding specification to obtain a data packet.
In the above apparatus, preferably, the writing module includes:
the menu item unit is used for receiving a first instruction based on the on state of the preset report switch, controlling a menu item for displaying a smart card in a display screen of the electronic equipment based on the first instruction, and enabling the smart card and the electronic equipment to be in a connection state;
the selection unit is used for receiving a second instruction and selecting a submenu item corresponding to data to be written in the menu item based on the second instruction;
the input unit is used for inputting the data packet based on the submenu items so as to write the data to be written into the smart card;
and the storage unit is used for storing the data packet to a preset storage area of the smart card.
The above apparatus preferably further comprises:
the first receiving module is used for receiving the operation information;
the reading module is used for reading the data to be written from a storage area according to the operation information, and the data to be written is stored in the storage area;
and the second writing module is used for writing the data to be written into the first position of the smart card.
The above apparatus preferably further comprises:
the second receiving module is used for receiving a third instruction;
and the display module is used for controlling the display of the data to be written in a display screen of the electronic equipment according to the third instruction.
Compared with the prior art, the method for writing data into the smart card applied to the electronic device includes: acquiring data to be written; controlling to open a preset reporting switch; and writing the data to be written into the smart card and storing the data based on the on state of the preset reporting switch. By adopting the method, the data to be written is written into the intelligent card and stored by controlling the report switch to be in the open state without embedding codes in the bottom layer of the operating system, and the process is simple and easy to implement.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of an embodiment 1 of a method for writing data into a smart card according to the present invention;
fig. 2 is a flowchart of an embodiment 2 of a method for writing data into a smart card according to the present invention;
fig. 3 is a flowchart of an embodiment 3 of a method for writing data into a smart card according to the present invention;
fig. 4 is a flowchart of an embodiment 4 of a method for writing data into a smart card according to the present invention;
fig. 5 is a flowchart of an embodiment 5 of a method for writing data into a smart card according to the present invention;
fig. 6 is a schematic structural diagram of an apparatus for writing data into a smart card 1 according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, which is a flowchart of an embodiment 1 of a method for writing data into a smart card provided by the present invention, the method is applied to an electronic device, where the electronic device may specifically be a device such as a smart phone, a tablet computer, and a notebook computer, or may be a device having a GPRS (General Packet Radio Service) module, and the electronic device may be used as a debugging tool or a dedicated module to write data to be written into the smart card.
Wherein, the method comprises the following steps:
step S101: acquiring data to be written;
the data to be written may be pre-stored in the electronic device, and is directly obtained from a storage space of the electronic device when the method is executed.
Of course, in specific implementation, the electronic device also has an input structure, and the data to be written may also be input to and cached in the electronic device in real time, so as to obtain the data to be written from the cache.
Specifically, the data to be written may include: the smart card includes a core authentication parameter, a random Number, a verification Key, a KI (Key Identifier), an OPC (Operator Variant Algorithm Configuration Field), an IMSI (International Mobile Subscriber identity) or a command for encapsulating through an Application Protocol Data Unit (APDU), and the like, and the present Application does not limit specific contents of Data to be written.
Step S102: controlling to open a preset reporting switch;
the electronic equipment is provided with a reporting switch, and after the reporting switch is turned on, normal response of instructions involved in a subsequent data writing process can be guaranteed.
For example, the reporting switch may be STK URC, where "0" indicates that the switch is closed and "1" indicates that the switch is open. The STK URC may be specifically controlled to open by an AT command (Attention, generally applied to connection and communication between the terminal device and the PC application).
Step S103: and writing the data to be written into the smart card and storing the data based on the on state of the preset reporting switch.
And after the reporting switch is turned on, writing the data to be written into the intelligent card and storing the data in the storage area of the intelligent card.
The process of writing the data into the smart card is a process of writing the data into the smart card and storing the data.
In the following embodiments, how to write the saved data into the corresponding location in the smart card will be described, which is not described in detail in this embodiment.
In summary, the method for writing data into a smart card provided in this embodiment includes: acquiring data to be written; controlling to open a preset reporting switch; and writing the data to be written into the smart card and storing the data based on the on state of the preset reporting switch. By adopting the method, the data to be written is written into the intelligent card and stored by controlling the report switch to be in the open state without embedding codes in the bottom layer of the operating system, and the process is simple and easy to implement.
Fig. 2 is a flowchart of embodiment 2 of a method for writing data into a smart card, the method includes the following steps:
step S201: acquiring data to be written;
step S201 is the same as step S101 in embodiment 1, and details are not described in this embodiment.
Step S202: according to a preset coding specification, packaging the content of the data to be written to obtain a data packet;
the electronic device is further provided with a coding specification, and the coding specification can be specifically a coding specification of a smart card.
Specifically, the data to be written is packaged according to the coding specification, and a code meeting the technical specification of the smart card can be obtained, so that the data to be written, which is packaged by the coding, can be successfully written into the smart card subsequently.
Step S203: controlling to open a preset reporting switch;
step S204: and writing the data to be written into the smart card and storing the data based on the on state of the preset reporting switch.
Steps S203 to 204 are the same as steps S102 to 103 in embodiment 1, and are not described in detail in this embodiment.
In summary, the method for writing data into a smart card provided in this embodiment further includes: and according to a preset coding specification, packaging the content of the data to be written to obtain a data packet. By adopting the method, the data to be written are packaged according to the coding specification of the smart card, so that the obtained data packet can meet the technical specification of the smart card to be written.
Fig. 3 is a flowchart of embodiment 3 of a method for writing data into a smart card, where the method includes the following steps:
step S301: acquiring data to be written;
step S302: according to a preset coding specification, packaging the content of the data to be written to obtain a data packet;
step S303: controlling to open a preset reporting switch;
steps S301 to 303 are the same as steps S201 to 203 in embodiment 2, and are not described in detail in this embodiment.
Step S304: receiving a first instruction based on the on state of the preset report switch, and controlling a menu item of a smart card displayed in a display screen of the electronic equipment based on the first instruction;
wherein the smart card is in a connection state with the electronic device;
specifically, the connection mode between the smart card and the electronic device may be wireless connection, that is, the smart card and the electronic device write data in a wireless communication mode.
The first instruction may be an AT instruction, and specifically may be in the form of an active reporting instruction, where the active reporting instruction refers to an active mechanism of the SIM card, that is, the SIM card may actively initiate an operation executed by an ME (Mobile Equipment).
For example, through the SET UP MENU command, the SIM card will provide a SET of MENU items to add to the ME's original MENU system for the user to choose from.
Specifically, the first instruction controls a display screen of the electronic device to display the title of the smart card and menu items, wherein the menu items comprise a plurality of submenu items, and each submenu item can correspond to one function. A typical SIM card menu is shown in table 1 below:
TABLE 1
Figure BDA0001263964400000071
The above menu is a certain SIM card STK menu in practical application, where each menu item has a corresponding function, and the function is presettable and programmable, and after entering the STK menu, a user can select different submenu items for operation. In this example, "Recharge" means "Recharge", the user can perform a Recharge operation, "solution" means "promotion", the user can obtain promotion information, "Weather" means "Weather", the user can obtain Weather conditions, "News" means "News", the user can obtain News contents, "Input" means "Input", the user can Input contents in a specified range, and so on, and in practice, clicking different menu items of the SIM card can realize corresponding preset functions.
Step S305: receiving a second instruction, and selecting a submenu item corresponding to data to be written in the menu item based on the second instruction;
the second instruction may be an AT instruction, and specifically may be an active reporting instruction, such as STKENVS.
Specifically, the second instruction is that a user of the electronic device selects a submenu item from the menu items, where the submenu item is a submenu item to which data is to be input.
For example, if the submenu item a is a content corresponding to the input authentication key, the input of the relevant data of the authentication key can be realized when the submenu item a is selected.
Step S306: inputting the data packet based on the submenu items to realize inputting the data to be written into the smart card;
specifically, based on the sub-menu item selected in step S305, the data packet is written into the smart card, and the AT command may be used to input the data packet, for example, the get input command.
It should be noted that, writing the data packet into the smart card is to write the data packet into the smart card as a whole, and not to write the data contained in the data packet into the corresponding position after opening the data packet.
In the following embodiments, how to write the saved data into the corresponding location in the smart card will be described, which is not described in detail in this embodiment.
Step S307: and storing the data packet to a preset storage area of the smart card.
The smart card is preset with a storage area, and the data packet written into the smart card is stored in the storage area, so that the subsequent process of writing the data in the data packet into the corresponding position in the smart card is realized.
In summary, in the method for writing data into a smart card provided in this embodiment, the writing and storing the data to be written into the smart card based on the preset on state of the report switch includes: receiving a first instruction based on the on state of the preset report switch, and controlling a menu item of a smart card displayed in a display screen of the electronic equipment based on the first instruction, wherein the smart card is in a connection state with the electronic equipment; receiving a second instruction, and selecting a submenu item corresponding to data to be written in the menu item based on the second instruction; inputting the data packet based on the submenu items to realize writing the data to be written into the smart card; and storing the data packet to a preset storage area of the smart card. By adopting the method, the menu item of the intelligent card is controlled to be displayed in the display screen of the electronic equipment and the corresponding submenu item is selected by setting the first instruction and the second instruction of the active command, so that the process of writing the data packet into the intelligent card is completed, codes do not need to be embedded in the bottom layer of the operating system, and the process is simple and easy.
Fig. 4 is a flowchart of embodiment 4 of a method for writing data into a smart card, where the method includes the following steps:
step S401: acquiring data to be written;
step S402: controlling to open a preset reporting switch;
step S403: writing the data to be written into the smart card and storing the data based on the on state of the preset reporting switch;
steps S401 to 403 are the same as steps S101 to 103 in embodiment 1, and are not described in detail in this embodiment.
Step S404: receiving operation information;
it should be noted that, when writing the data packet into the smart card, the relevant content may be upgraded for the smart card operator, but the operation process of the smart card is normal, and synchronous upgrade is not needed, and accordingly, the data packet related to the upgrade may be written into the smart card, and when necessary, the data packet may be reactivated or the data writing into the smart card is completed.
Wherein the operation information is a process of operating the electronic device by a user so that a smart card connected with the electronic device is activated or writing is completed.
Specifically, the operation information may be input by a user through operating an input structure provided in the electronic device, where the input structure may include a mouse, a keyboard, a touch screen, a stylus pen, a touch pad, and the like.
Step S405: reading the data to be written from a storage area according to the operation information;
wherein, the storage area stores the data to be written.
Since the data to be written is already stored in the storage area of the smart card, the data to be written is read out from the storage area at this time.
In specific implementation, after the data to be written is read from the storage area, the data to be written stored in the storage area may be deleted, or may also be directly overwritten when other data to be written is continuously stored in the subsequent step.
Step S406: and writing the data to be written into a first position of the smart card.
The first position refers to a corresponding position of the data to be written in the smart card.
It should be noted that the input data is automatically stored in the Edit Buffer (cache) of the smart card in a variable form, and there is no clear definition in this embodiment where to write the data into the smart card.
For example, when the data to be written is the authentication key, the corresponding location may be a storage area for storing the authentication key; when the data to be written is a command encapsulated by an APDU, the corresponding location may be a storage area storing the command.
In summary, the method for writing data into a smart card provided in this embodiment further includes: receiving operation information; reading the data to be written from a storage area according to the operation information, wherein the data to be written is stored in the storage area; and writing the data to be written into a first position of the smart card. By adopting the method, after the data packet is written and stored in the intelligent card, the data in the data packet is written into the corresponding position in the intelligent card according to the triggered operation information, the time for writing the data into the intelligent card is selected by the user, and the user participation degree is higher.
Fig. 5 is a flowchart of an embodiment 5 of a method for writing data in a smart card, where the method includes the following steps:
step S501: acquiring data to be written;
step S502: controlling to open a preset reporting switch;
step S503: writing the data to be written into the smart card and storing the data based on the on state of the preset reporting switch;
steps S501 to 503 are the same as steps S101 to 103 in embodiment 1, and are not described in detail in this embodiment.
Step S504: receiving a third instruction;
step S505: and controlling the display of the data to be written in a display screen of the electronic equipment according to the third instruction.
The third instruction may be an AT instruction, and specifically may be an active reporting instruction, such as DISPLAY.
Specifically, the third instruction is used to control the display of the input content on the display screen of the electronic device, specifically to display the input content, that is, the data written in the smart card.
In summary, the method for writing data into a smart card provided in this embodiment further includes: receiving a third instruction; and controlling the display of the data to be written in a display screen of the electronic equipment according to the third instruction. By adopting the method, the input data can be displayed in the display screen of the electronic equipment, and the user can conveniently check the data.
Corresponding to the embodiment of the method for writing the data into the smart card provided by the invention, the invention also provides an embodiment of a device for writing the data into the smart card.
As shown in fig. 6, which is a schematic structural diagram of an embodiment 1 of an apparatus for writing data into a smart card according to the present invention, the apparatus may be applied to an electronic device, where the electronic device may specifically be a device such as a smart phone, a tablet computer, and a notebook computer, or may be a device having a GPRS (General Packet Radio Service) module, and the electronic device may be used as a debugging tool or a dedicated module to write data to be written into the smart card.
Wherein, the device includes following component: an acquisition module 601, a control module 602 and a first writing module 603;
the obtaining module 601 is configured to obtain data to be written;
the control module 602 is configured to control to turn on a preset reporting switch;
the first writing module 603 is configured to write the data to be written into the smart card and store the data based on the state that the preset reporting switch is turned on.
Preferably, the method further comprises the following steps:
and the coding module is used for packing the content of the data to be written according to a preset coding specification to obtain a data packet.
Preferably, the writing module includes:
the menu item unit is used for receiving a first instruction based on the on state of the preset report switch, controlling a menu item for displaying a smart card in a display screen of the electronic equipment based on the first instruction, and enabling the smart card and the electronic equipment to be in a connection state;
the selection unit is used for receiving a second instruction and selecting a submenu item corresponding to data to be written in the menu item based on the second instruction;
the input unit is used for inputting the data packet based on the submenu items so as to write the data to be written into the smart card;
and the storage unit is used for storing the data packet to a preset storage area of the smart card.
Preferably, the method further comprises the following steps:
the first receiving module is used for receiving the operation information;
the reading module is used for reading the data to be written from a storage area according to the operation information, and the data to be written is stored in the storage area;
and the second writing module is used for writing the data to be written into the first position of the smart card.
Preferably, the method further comprises the following steps:
the second receiving module is used for receiving a third instruction;
and the display module is used for controlling the display of the data to be written in a display screen of the electronic equipment according to the third instruction.
In summary, the apparatus for writing data into a smart card provided by this embodiment includes: the acquisition module is used for acquiring data to be written; the control module is used for controlling the opening of a preset reporting switch; and the first writing module is used for writing the data to be written into the smart card and storing the data based on the on state of the preset reporting switch. By adopting the device, the data to be written is written into the intelligent card and stored by controlling the report switch to be in the open state without embedding codes in the bottom layer of the operating system, and the process is simple and easy to implement.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the device provided by the embodiment, the description is relatively simple because the device corresponds to the method provided by the embodiment, and the relevant points can be referred to the method part for description.
The previous description of the provided embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features provided herein.

Claims (6)

1. A method for writing data into a smart card is applied to an electronic device, and the method comprises the following steps:
acquiring data to be written, wherein the data to be written comprises: the method comprises the steps that a smart card core authentication parameter, a random number, a check key, an authentication key KI, an operator variant algorithm configuration field OPC, an international mobile subscriber identity IMSI or a command for encapsulating through an application protocol data unit APDU are obtained;
opening a preset reporting switch under the control of an AT instruction;
writing the data to be written into the smart card and storing the data based on the on state of the preset reporting switch;
receiving operation information, wherein the operation information is a process that a user operates the electronic equipment to enable a smart card connected with the electronic equipment to be activated or complete writing;
reading the data to be written from a storage area according to the operation information, wherein the data to be written is stored in the storage area;
writing the data to be written into a first position of the smart card;
receiving a third instruction;
and controlling the display of the data to be written in a display screen of the electronic equipment according to the third instruction.
2. The method of claim 1, wherein after obtaining the data to be written, further comprising:
and according to a preset coding specification, packaging the content of the data to be written to obtain a data packet.
3. The method according to claim 2, wherein writing and storing the data to be written into the smart card based on the preset reporting switch being in an open state comprises:
receiving a first instruction based on the on state of the preset report switch, and controlling a menu item of a smart card displayed in a display screen of the electronic equipment based on the first instruction, wherein the smart card is in a connection state with the electronic equipment;
receiving a second instruction, and selecting a submenu item corresponding to data to be written in the menu item based on the second instruction;
inputting the data packet based on the submenu items to realize writing the data to be written into the smart card;
and storing the data packet to a preset storage area of the smart card.
4. An apparatus for data writing of a smart card, comprising:
the obtaining module is used for obtaining data to be written, and the data to be written comprises: the method comprises the steps that a smart card core authentication parameter, a random number, a check key, an authentication key KI, an operator variant algorithm configuration field OPC, an international mobile subscriber identity IMSI or a command for encapsulating through an application protocol data unit APDU are obtained;
the control module is used for controlling to open a preset reporting switch through an AT instruction;
the first writing module is used for writing the data to be written into the smart card and storing the data based on the on state of the preset reporting switch;
the first receiving module is used for receiving operation information, wherein the operation information is a process that a user operates the electronic equipment so as to enable a smart card connected with the electronic equipment to be activated or complete writing;
the reading module is used for reading the data to be written from a storage area according to the operation information, and the data to be written is stored in the storage area;
the second writing module is used for writing the data to be written into the first position of the smart card;
the second receiving module is used for receiving a third instruction;
and the display module is used for controlling the display of the data to be written in a display screen of the electronic equipment according to the third instruction.
5. The apparatus of claim 4, further comprising:
and the coding module is used for packing the content of the data to be written according to a preset coding specification to obtain a data packet.
6. The apparatus of claim 5, wherein the write module comprises:
the menu item unit is used for receiving a first instruction based on the on state of the preset report switch, controlling a menu item for displaying a smart card in a display screen of the electronic equipment based on the first instruction, and enabling the smart card and the electronic equipment to be in a connection state;
the selection unit is used for receiving a second instruction and selecting a submenu item corresponding to data to be written in the menu item based on the second instruction;
the input unit is used for inputting the data packet based on the submenu items so as to write the data to be written into the smart card;
and the storage unit is used for storing the data packet to a preset storage area of the smart card.
CN201710221660.6A 2017-04-06 2017-04-06 Method and device for writing data into smart card Active CN108694340B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710221660.6A CN108694340B (en) 2017-04-06 2017-04-06 Method and device for writing data into smart card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710221660.6A CN108694340B (en) 2017-04-06 2017-04-06 Method and device for writing data into smart card

Publications (2)

Publication Number Publication Date
CN108694340A CN108694340A (en) 2018-10-23
CN108694340B true CN108694340B (en) 2020-12-11

Family

ID=63842771

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710221660.6A Active CN108694340B (en) 2017-04-06 2017-04-06 Method and device for writing data into smart card

Country Status (1)

Country Link
CN (1) CN108694340B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436380A (en) * 2011-11-15 2012-05-02 福源立信(北京)科技有限公司 STK menu handling system and processing method for menu

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119561A (en) * 2007-08-28 2008-02-06 伟朋科技(南京)有限公司 Method for communication between GSM mobile communication terminal and SIM card
CN101873388A (en) * 2009-04-27 2010-10-27 深圳富泰宏精密工业有限公司 Method for sending multimedia information under GSM architecture
CN101692198A (en) * 2009-08-18 2010-04-07 厦门敏讯信息技术股份有限公司 Method for calling STK menu of SIM card
US9116611B2 (en) * 2011-12-29 2015-08-25 Apple Inc. Devices, methods, and graphical user interfaces for providing multitouch inputs and hardware-based features using a single touch input
CN104184892A (en) * 2014-08-12 2014-12-03 桂林微网半导体有限责任公司 Mobile terminal intelligent card based data transmission method and mobile terminal
CN105701427B (en) * 2016-02-18 2019-07-30 捷德(中国)信息科技有限公司 A kind of method and device of smart card write-in data

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436380A (en) * 2011-11-15 2012-05-02 福源立信(北京)科技有限公司 STK menu handling system and processing method for menu

Also Published As

Publication number Publication date
CN108694340A (en) 2018-10-23

Similar Documents

Publication Publication Date Title
US9280483B1 (en) Rebranding a portable electronic device while maintaining user data
CN102783121B (en) Communications device
JP4381980B2 (en) Mobile phone communication device and data management method
US20100093396A1 (en) Systems and methods for storing or performing functions within removable memory, such as a subscriber identity module of a mobile device
CN100458689C (en) Controlling settings for mobile telecommunications apparatus
CN107239302A (en) A kind of firmware upgrade method, terminal and server
KR20160040022A (en) Apparatus and method for displaying user interface
CN105511928B (en) System upgrade device and method
CN106055328B (en) For the subject replacement device and method of third-party application
CN114827914B (en) Short message processing method and device and electronic equipment
KR20060132736A (en) User interface methods, such as for customer self-support on a mobile device
CN105549891B (en) A kind of screenshot method and mobile terminal based on backside pressure sensor
CN107741820A (en) A kind of entering method keyboard display methods and mobile terminal
CN105409160A (en) System for remotely controlling electronic device and method of operating the same
CN103491525A (en) Method for achieving card-free mobile phone, mobile phone and server
CN104346024A (en) Method and device for selecting shortcuts
CN106844104B (en) A kind of terminal data processing method, device and mobile terminal
CN110084035B (en) Electronic device and method for suggesting a response guide when a rejection occurs
CN108112010A (en) Access method, apparatus, terminal and the computer readable storage medium of network
CN106095477A (en) Application erecting device and method
WO2013004638A1 (en) Method for accessing at least one service and corresponding system
CN103634461A (en) Mobile terminal and control method thereof
CN113411203B (en) Terminal configuration method and device, computer equipment and storage medium
CN107734474A (en) The applied statistical method and system of bound phone number
CN104104781A (en) Method and device for displaying handset SIM card contact people

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100089 Floor 12 1506, Building A 1, 66 Zhongguancun East Road, Haidian District, Beijing

Applicant after: Beijing Huahong Integrated Circuit Design Co., Ltd.

Address before: 100015 Beijing city Chaoyang District Gaojiayuan No.

Applicant before: BEIJING HUAHONG INTEGRATED CIRCUIT DESIGN Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant