A kind of method of customer recognition module card plugging and unplugging and terminal
Technical field
The present invention relates to electronic communication technology field, a kind of method being specifically related to customer recognition module card plugging and unplugging
And terminal.
Background technology
Client identification module card (SIM, Subscriber Identity Module), stores digital mobile electricity
The information of words client, the content such as the key of encryption, being available for network differentiates client identity, and to client
Voice messaging during call is encrypted;The use of SIM, it is therefore prevented that and the behavior that machine and call are ravesdropping,
Thus ensured the proper communication of client reliably.During use, under terminal, after electricity, SIM is inserted terminal
In;When not using, after electricity, SIM is extracted under terminal.
To in the research of prior art and practice process, it was found by the inventors of the present invention that SIM at present
The safest plug must be carried out, so by electricity under terminal again in the case of electricity under terminal
Powering on and can waste the more time, user uses inconvenience;And when terminal normally uses, directly plug SIM
Card, is easily caused smart card and damages.
Summary of the invention
The embodiment of the present invention provides method and the terminal of a kind of customer recognition module card plugging and unplugging, it is possible to achieve at end
Rectify plug SIM when often using.
A kind of method of customer recognition module card plugging and unplugging, including:
Receive the request of plug client identification module SIM;Stop every business of described SIM;Stop
Circuit module to SIM described in terminating circuit module is powered.
A kind of terminal, including:
Request reception unit, for receiving the request extracting SIM.Business stop element, in request
After reception unit receives described request, stop every business of described SIM;Stop power supply unit, use
After the every business stopping described SIM at described business stop element, stop in terminating circuit module
The circuit module of described SIM is powered.
After embodiment of the present invention terminal receives the request of plug SIM, first stop every business of SIM,
Stop the circuit module of SIM in terminating circuit module again to be powered, it is achieved when terminal normally uses
Plug SIM, reduces the time of plug SIM from terminal, and does not affect terminal when plug SIM
Normal use.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of the customer recognition module card plugging and unplugging that the embodiment of the present invention one provides;
Fig. 2 is the terminal structure figure that the embodiment of the present invention two provides.
Detailed description of the invention
The embodiment of the present invention provides a kind of method of customer recognition module card plugging and unplugging.The embodiment of the present invention also provides for
Corresponding terminal.It is described in detail individually below.
Embodiment one
This embodiment introduces the method for customer recognition module card plugging and unplugging.Under normal circumstances, terminal carries to smart card
Being usually 1.8V, 3.0V, 5.0V for operating voltage, plug smart card is unsafe, and terminal carries to SIM
When voltage supplied is 0V, plug smart card is safe.
The present invention increases a button or other visualization entities in the user interface of terminal, and terminal use can
With by clicking on the safe handling triggering SIM plug.First pass through button notification terminal needs
Extract smart card, after terminal is notified, stop every business (such as calling, dial up on the telephone) of SIM,
SIM is set to down state, and stops powering to intelligent SIM card, then show at end-user interface
Show can safe plug SIM, after user confirms plug SIM, circuit module from terminal to SIM supply
Electricity, initiates SIM initialization procedure again.Specifically comprise the following steps that
It is the method flow diagram of the customer recognition module card plugging and unplugging that the embodiment of the present invention provides as shown in Figure 1.
Step 101, the request of reception plug SIM;
User receives plug SIM by the button arranged in terminal to terminal request plug SIM, terminal
After the request of card, perform step 102.
Step 102, every business of stopping SIM;
The every business stopping SIM including: the dialling up on the telephone and call called business of SIM.?
Stop before the circuit module of the SIM of terminal is powered, it is necessary to stop every business of SIM, the most just
Cause the program operation exception in terminal, affect follow-up recovery flow process.Such as: if SIM is carrying out
Certain operation that terminal issues, SIM directly extracted by the every business not stopping SIM, and terminal is always
Wait that SIM returns the result performing certain operation, and be at this moment pulled out due to SIM, it is impossible to return
Perform result, but terminal can wait until terminal inner time-out, therefore there will be program operation exception always.
Step 103, stopping circuit module of SIM in terminating circuit module are powered;
Terminating circuit module is the circuit of the work power supply for whole terminal, and the supply module of SIM is special
The circuit of power supply is designed for SIM.Terminal receives the request of plug SIM, stops the every of SIM
After business, stop the circuit module of SIM in terminating circuit module and power, the most only stop supplying to SIM
Electricity, now terminal is 0V to the voltage that SIM is powered, and SIM can be extracted safely.
The order that stopping is powered to the circuit module of SIM is: first arrange the reseting module RST of SIM
For low level, the clock CLK arranging SIM is low level, stops (being also the program voltage of SIM
Vpp pin) power supply, the input/output (I/O) then arranging SIM is low level state, finally stops
Only power to the access circuit Vcc of SIM.
Step 104, prompting user can extract SIM;
Performing this step, terminal has been ready for extracting the preparation of SIM to facilitate user to learn.Prompting user
After can extracting SIM, if user does not extract SIM, the most over time, user passes through terminal
Boundary's terminaloriented is sent as the request that SIM is powered again, and terminal is received as the circuit module of SIM again
The request of power supply, performs step 105;If user extracts SIM, over time, user inserts again
Entering SIM, user sends the notice of insertion SIM by terminal interface to terminal, and terminal receives inserts SIM
The notice of card, step 105 to be performed, when user is again insertable into SIM, terminal is initiated at the beginning of SIM again
Beginning process.
Step 105, power to the circuit module of SIM, perform the initialization operation of SIM.
Again SIM is powered, perform the initialization operation of SIM.
Above-mentioned steps realizes extracting of SIM from 101 to 104, and step 105 realizes safety and just inserts after SIM
Often work.Can be seen that during whole, terminal is in the state of normal work, the plug of SIM all the time
Do not affect the normal use of terminal.
Embodiment two
This embodiment describes the terminal making embodiment in aforementioned manners.
It is the terminal structure figure of embodiment of the present invention offer as shown in Figure 2.
Request reception unit 110, for receiving the request extracting SIM.
Business stop element 120, for receiving the request extracting SIM in described request receiving unit 110
After, stop every business of SIM;
Stop power supply unit 130, for stopping every business of SIM at described business stop element 120
After, stop the circuit module to SIM described in terminating circuit module and power.
Wherein, unit 130 of stopping power supply described in also includes:
Reset arranges unit, is low level for arranging the reseting module of described SIM;
Clock setting unit, is low for arrange unit arranging the reseting module of described SIM in described reset
After level, the clock arranging described SIM is low level;
Voltage peak-to-peak supply control unit, for arranging the clock of described SIM at described clock setting unit
After low level, stop the power supply of the program voltage to described SIM;
Input/output arranges unit, for stopping described SIM at described voltage peak-to-peak supply control unit
Program voltage power supply after, the input/output arranging described SIM is low level state;
Access circuit supply control unit, described SIM is set for arranging unit in described input/output
After input/output is low level state, stop the access circuit of described SIM is powered.
Further, described terminal also includes:
Tip element 140, for stopping to described in terminating circuit module at described unit 130 of stopping power supply
After the circuit module of SIM is powered, prompting user can extract described SIM.
Further, described terminal also includes:
Power request receives unit 150, points out user can extract described SIM for described Tip element 140
After card, if described user does not extracts described SIM, the circuit module being received as described SIM is powered again
Request;
Power supply unit 160, receives into described SIM again for receiving unit 150 at described power request
After the request of power supply, the circuit module to described SIM is powered, and performs the initialization operation of described SIM.
Further, described terminal also includes:
Extract SIM notice and receive unit 170, described for pointing out user to extract at described Tip element 140
After SIM, receive the notice inserting SIM;
Power supply unit 160: for receiving unit 170 and receive in described SIM notice of extracting and extract SIM
Notice after, the circuit module to described SIM is powered, and performs the initialization operation of described SIM.
Information flow direction between the module of this terminal is identical with the information flow direction principle of said method embodiment,
Secondary do not repeat.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment
Suddenly the program that can be by completes to instruct relevant hardware, and this program can be stored in a computer and end
In the readable storage medium storing program for executing of end, storage medium may include that ROM, RAM, disk or CD etc..
The method of the customer recognition module card plugging and unplugging provided the embodiment of the present invention above and terminal are carried out
Being discussed in detail, principle and the embodiment of the present invention are set forth by specific case used herein,
The explanation of above example is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for
One of ordinary skill in the art, according to the thought of the present invention, the most all
Will change, in sum, this specification content should not be construed as limitation of the present invention.