Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
It is a kind of flow chart of SIM card state switching method provided in an embodiment of the present invention referring to Fig. 1, Fig. 1, this method is answered
For including at least the mobile terminal of the first SIM card and the second SIM card, as shown in Figure 1, this approach includes the following steps:
Step 101, in the case where the service ending of first SIM card, set by first SIM card to network side
Preparation send request message, wherein the RRC that the request message is used to that the network side equipment to be requested to discharge first SIM card
Connection.
Wherein, above-mentioned mobile terminal includes at least the first SIM card and the second SIM card, i.e. mobile terminal may include at least
Two SIM cards, such as:When mobile terminal only includes two SIM cards, the first SIM card can be main card, and the second SIM card can be with
For vice card, alternatively, the first SIM card can be vice card, the second SIM card can be main card.In addition, mobile terminal can also include the
Three SIM cards or the 4th SIM card etc., specifically it is not limited here.
Wherein, network side equipment can be base station, can also be the wireless network of relay station or access point or network side
Controller etc., does not limit specifically herein.
Wherein, the business that the first SIM card terminates can be voice service, such as:Terminate the language based on Long Term Evolution
Sound (Voice over Long Term Evolution, VoLTE) business, the business that the first SIM card terminates are also possible to other
The business of type, such as:Terminate the business of transmission communication message.Specifically it is not limited here.
Wherein, the type of request message can be wireless heterogeneous networks Connection Release instruction message, be also possible to extension clothes
Business request message, does not do specific restriction herein.
Step 102 receives the first RRC connection release message that the network side equipment is sent.
Wherein, the first RRC connection release message that the network side equipment that mobile terminal receives is sent, i.e. RRC
Connection release message.
Step 103, in response to first RRC connection release message, the state of first SIM card is cut by connected state
It is changed to Idle state.
It may be implemented, in the case where the service ending of a SIM card, sent to network side equipment through the above steps
Request message is stated, so that the SIM card switches to Idle state by connected state immediately, and the SIM card is switched to the free time by connected state
After state, radio frequency resource can be licensed to the SIM card in the fixed calling time of the SIM card by mobile terminal, be lost to avoid the SIM card
Paging message is lost, and then improves the called call completion ratio of mobile terminal.Such as:When the first SIM card is vice card, based on the second SIM card
When card, after the business of vice card is finished, the RRC connection release message of network side equipment transmission is not received, then can pass through pair
Block to network side equipment and sends request message, it, will after the first RRC connection release message for receiving network side equipment transmission
The state of vice card is switched to Idle state by connected state, and radio frequency resource can be licensed to pair in the calling time of vice card by mobile terminal
Card loses paging message to avoid vice card, to improve the called call completion ratio of mobile terminal.
It should be noted that mobile terminal receives the first RRC connection release message, i.e., by the state of the first SIM card by
Connected state is switched to Idle state, i.e. idle idle state.
In the embodiment of the present invention, above-mentioned mobile terminal can be mobile phone, tablet computer (Tablet Personal
Computer), laptop computer (Laptop Computer), personal digital assistant (Personal Digital
Assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID) or wearable device
(Wearable Device) etc..
A kind of SIM card state switching method provided in an embodiment of the present invention is applied to include at least the first SIM card and second
The mobile terminal of SIM card, the method includes:In the case where the service ending of first SIM card, pass through described first
SIM card sends request message to network side equipment;Receive the first RRC connection release message that the network side equipment is sent;It rings
The state of first SIM card is switched to Idle state by connected state by the first RRC connection release message described in Ying Yu.In this way, keeping away
At least two SIM cards of mobile terminal are exempted from while being in connected state, to improve the called call completion ratio of mobile terminal.
Referring to fig. 2, Fig. 2 is the flow chart of another SIM card state switching method provided in an embodiment of the present invention.This implementation
The main distinction of example and last embodiment is:After the state of the first SIM card is switched to Idle state by connected state, and
When detecting the service request of the second SIM card, the radio frequency resource of mobile terminal can be distributed to the business of the second SIM card.Such as
Shown in Fig. 2, include the following steps:
Step 201, in the case where the service ending of first SIM card, set by first SIM card to network side
Preparation send request message, wherein the RRC that the request message is used to that the network side equipment to be requested to discharge first SIM card
Connection.
Wherein, network side equipment can be base station, can also be the wireless network of relay station or access point or network side
Controller etc. does not do specific restriction herein.
It should be noted that optional, the request message is wireless heterogeneous networks Connection Release instruction message or band
There is the expansion service request message of preset field, wherein the preset field is for requesting the network side equipment to discharge institute
State the field of the RRC connection of the first SIM card.Such as:As shown in figure 3, when request message is that wireless heterogeneous networks Connection Release refers to
Show message, i.e. RRC connection release indication message, above-mentioned RRC connection release
Tag field can also be carried in indication message, such as:Above-mentioned RRC connection release indication
Message can carry " RRC connection release indication cause " this tag field, and above-mentioned " RRC
The value of connection release indication cause " tag field can be " Release RRC connection
Of one subscriber for DSDS UE " can be equally used for the RRC company that request network side equipment discharges the first SIM card
It connects.After vice card terminates VoLTE voice service, RRC connection release is sent to network side equipment
Indication message, after network side equipment receives RRC connection release indication message, to pair
Card sends RRC connection release message, after vice card receives RRC connection release message, i.e.,
Into Idle state.The radio frequency resource that the main card of mobile terminal control at this time occupies mobile terminal carries out business, and can be in vice card
Page the paging message that conversion turn away in paging time window receives vice card in the past.
In addition, as shown in figure 4, the difference of Fig. 4 and Fig. 3 is in:Vice card is to the request message that network side equipment is sent
Expansion service request message with preset field has the Extended service request message of preset field.
When request message is the expansion service request message with preset field, i.e., with the Extended service of preset field
Request message.Wherein preset field can be the service type Service in Extended service request message
Type value, such as:The reserved value that any one Current protocol of Service type value can be set is for requesting the net
Network side apparatus discharges the preset field of the RRC connection of first SIM card.For example, indicating that request release RRC connects with " 0101 "
It connects.Certainly, preset field can also be the reserved value of other Service type values.Specific restriction is not done herein.
In this embodiment, request message is wireless heterogeneous networks Connection Release instruction message, or has predetermined word
The expansion service request message of section, and other fields can also be carried in request message, such as:Tag field or predetermined word
Section, so that request message is more diversified.
Optionally, first RRC connection release message is that message is sent the network side equipment in response to the request
RRC connection release message, it is described in the case where the service ending of first SIM card, by first SIM card to net
Network side apparatus sends request message, including:
In the case where the service ending of first SIM card, detect whether to receive the second RRC connection release message;
In the case where not receiving second RRC connection release message, set by first SIM card to network side
Preparation send request message;
In the case where receiving second RRC connection release message, by the state of first SIM card by connected state
It is switched to Idle state.
Wherein, the second RRC connection release message can be for after the service ending of the first SIM card, network side apparatus be actively
The RRC connection release message of transmission, and the first RRC connection release message is what network side equipment was sent in response to request message
RRC connection release message, substantially, the type and content of the first RRC connection release message and the second RRC connection release message
Can be identical, first and second herein only serve differentiation effect.
Wherein, in the case where the service ending of the first SIM card, it can detecte the preset time from business finish time
The second RRC connection release message inside whether is received, if not receiving the second RRC connection release message, sends request message.
It should be noted that preset time can be 1 second, 2 seconds or 4 seconds etc., specifically it is not limited here.Such as:First SIM card
Service ending, and in 1 second from the service ending moment, the second RRC connection release message is not received, then passes through the first SIM
Block to network side equipment and sends request message.In this way, reducing network side equipment due to network delay, sent to the first SIM card
After second RRC connection release message, the first RRC connection release message phenomenon of request message and then secondary transmission is being received
Generation.
In this embodiment, in the case where testing result is not receive the second RRC connection release message, by the
One SIM card sends request message to network side equipment, in this way, reducing network side equipment repeatedly sends RRC connection release message
The phenomenon that generation, reduce the transmitting of redundancy message between mobile terminal and network side equipment, so that the transmitting of message
Effect is more preferable.
Optionally, described in the case where the service ending of first SIM card, by first SIM card to network
After side apparatus sends request message, the method also includes:
In the case where first SIM card does not receive first RRC connection release message, by the first SIM
The state of card is switched to Idle state by connected state, and sends a notification message to the network side equipment, and the notification message is used for
Indicate that the state of first SIM card is switched to Idle state by connected state.
Wherein, after sending request message to network side equipment by the first SIM card, the first SIM card is not still received
First RRC connection release message then can be determined that it is arranged in network side equipment failure or the first SIM card and network side
Between channel break down, in above-mentioned two situations, the first SIM card cannot receive network side setting send the first RRC
Connection release message.Then the state of the first SIM card directly can be switched to Idle state by mobile terminal, and be sent out to network side equipment
Send notification message.In this way, an other SIM card is when doing business, it is ensured that the first SIM card also can be in fixed paging
Quarter receives paging message, to improve the called call completion ratio of mobile terminal.
Wherein, the implementation of present embodiment can also be as follows:It is sent and is requested to network side equipment by the first SIM card
After message, in the object time since at the time of emitting request message, it can detecte and whether receive the first RRC connection and release
Message is put, if the first SIM card is not detected and receives the first RRC connection release message within the object time, that is, can determine whether
One SIM card does not receive the first RRC connection release message.It should be noted that the object time does not limit specifically herein, Ke Yiwei
1 second, 2 seconds, 3 seconds or 4 seconds etc..
In embodiment of the present invention, in the case where the first SIM card does not receive the first RRC connection release message, by
The state of one SIM card is switched to Idle state by connected state, and sends a notification message to network side equipment.In this way, making first
The mode that the state of SIM card is switched to Idle state is more diversified, ensure that the first SIM card can smoothly switch to the free time
State.
Step 202 receives the first RRC connection release message that the network side equipment is sent.
Wherein, the first RRC connection release message that the network side equipment that mobile terminal receives is sent, i.e. RRC
Connection release message.
Step 203, in response to first RRC connection release message, the state of first SIM card is cut by connected state
It is changed to Idle state.
It should be noted that mobile terminal receives the first RRC connection release message, i.e., by the state of the first SIM card by
Connected state is switched to Idle state, i.e. idle state.
It should be noted that step 204 is optional.
When detecting the service request of second SIM card, the radio frequency resource of the mobile terminal is distributed for step 204
To the business of second SIM card.
Wherein, it after the first SIM card is switched to Idle state, and when detecting the service request of the second SIM card, will move
The radio frequency resource of terminal distributes to the business of the second SIM card.Specifically, the business of the second SIM card can be VoLTE voice service
Or the business such as downloading file, and when carrying out above-mentioned business, the second SIM card needs to occupy radio frequency resource.
, can be after the first SIM card be switched to Idle state by step 201 to 204 in the embodiment of the present invention, and examine
When measuring the service request of the second SIM card, the radio frequency resource of mobile terminal is distributed to the business of the second SIM card, in this way, can be with
So that the second SIM card processing business is more convenient, but also the work between the first SIM card and the second SIM card is more coordinated.
It is the structure chart of mobile terminal provided in an embodiment of the present invention referring to Fig. 5, Fig. 5, is able to achieve one in above-described embodiment
The details of kind SIM card state switching method, and reach identical effect.As shown in figure 5, mobile terminal 500 includes at least first
SIM card and the second SIM card, mobile terminal 500 further include:
First sending module 501, for passing through the first SIM in the case where service ending of first SIM card
Block to network side equipment and send request message, wherein the request message is for requesting network side equipment release described the
The RRC connection of one SIM card;
Receiving module 502, the first RRC connection release message sent for receiving the network side equipment;
Switching module 503, in response to first RRC connection release message, by the state of first SIM card by
Connected state is switched to Idle state.
Optionally, the request message is wireless heterogeneous networks Connection Release instruction message, or with preset field
Expansion service request message, wherein the preset field is for requesting the network side equipment to discharge first SIM card
The field of RRC connection.
Optionally, first RRC connection release message is that message is sent the network side equipment in response to the request
RRC connection release message, referring to Fig. 6, first sending module 501 includes:
Detection sub-module 5011 receives for detecting whether in the case where the service ending of first SIM card
Two RRC connection release messages;
Sending submodule 5012, in the case where not receiving second RRC connection release message, by described
First SIM card sends request message to network side equipment;
Switching submodule 5013, in the case where receiving second RRC connection release message, by described first
The state of SIM card is switched to Idle state by connected state.
Optionally, referring to Fig. 7, the mobile terminal 500 further includes:
Distribution module 504, when for detecting the service request of second SIM card, by the radio frequency of the mobile terminal
Resource allocation gives the business of second SIM card.
Optionally, referring to Fig. 8, the mobile terminal 500 further includes:
Second sending module 505, for not receiving first RRC connection release message in first SIM card
In the case of, the state of first SIM card is switched to Idle state by connected state, and send notice to the network side equipment and disappear
Breath, the notification message is for indicating that the state of first SIM card is switched to Idle state by connected state.
Mobile terminal provided in an embodiment of the present invention can be realized mobile terminal in the embodiment of the method for Fig. 1 to Fig. 2 and realize
Each process, to avoid repeating, which is not described herein again.The embodiment of the present invention equally can be avoided at least the two of mobile terminal
SIM card is in connected state simultaneously, to improve the called call completion ratio of mobile terminal.
A kind of hardware structural diagram of Fig. 9 mobile terminal of each embodiment to realize the present invention.
The mobile terminal 900 includes but is not limited to:It is radio frequency unit 901, network module 902, audio output unit 903, defeated
Enter unit 904, sensor 905, display unit 906, user input unit 907, interface unit 908, memory 909, processor
The components such as 910 and power supply 911.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 9 is not constituted
Restriction to mobile terminal, mobile terminal may include than illustrating more or fewer components, perhaps combine certain components or
Different component layouts.In embodiments of the present invention, mobile terminal include but is not limited to mobile phone, tablet computer, laptop,
Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, which includes at least the first SIM card and the second SIM card, and processor 910 is used for:
In the case where the service ending of first SIM card, asked by first SIM card to network side equipment transmission
Seek message, wherein the RRC connection that the request message is used to that the network side equipment to be requested to discharge first SIM card;
Receive the first RRC connection release message that the network side equipment is sent;
In response to first RRC connection release message, the state of first SIM card is switched to the free time by connected state
State.
Optionally, the request message is wireless heterogeneous networks Connection Release instruction message, or with preset field
Expansion service request message, wherein the preset field is for requesting the network side equipment to discharge first SIM card
The field of RRC connection.
Optionally, first RRC connection release message is that message is sent the network side equipment in response to the request
RRC connection release message, the processor 910 executes described in the case where the service ending of first SIM card, leads to
It crosses first SIM card and sends request message to network side equipment, including:
In the case where the service ending of first SIM card, detect whether to receive the second RRC connection release message;
In the case where not receiving second RRC connection release message, set by first SIM card to network side
Preparation send request message;
In the case where receiving second RRC connection release message, by the state of first SIM card by connected state
It is switched to Idle state.
Optionally, the processor 910 is also used to:
When detecting the service request of second SIM card, the radio frequency resource of the mobile terminal is distributed to described
The business of two SIM cards.
Optionally, the processor 910 is also used to:
In the case where first SIM card does not receive first RRC connection release message, by the first SIM
The state of card is switched to Idle state by connected state, and sends a notification message to the network side equipment, and the notification message is used for
Indicate that the state of first SIM card is switched to Idle state by connected state.
Mobile terminal provided in an embodiment of the present invention avoids at least two SIM cards of mobile terminal while being in connection
State, to improve the called call completion ratio of mobile terminal.
It should be understood that the embodiment of the present invention in, radio frequency unit 901 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 910 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 901 includes but is not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 901 can also by wireless communication system and network and other set
Standby communication.
Mobile terminal provides wireless broadband internet by network module 902 for user and accesses, and such as user is helped to receive
It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 903 can be received by radio frequency unit 901 or network module 902 or in memory 909
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 903 can also be provided and be moved
The relevant audio output of specific function that dynamic terminal 900 executes is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 903 includes loudspeaker, buzzer and receiver etc..
Input unit 904 is for receiving audio or video signal.Input unit 904 may include graphics processor
(Graphics Processing Unit, GPU) 9041 and microphone 9042, graphics processor 9041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 906.Through graphics processor 9041, treated that picture frame can be deposited
Storage is sent in memory 909 (or other storage mediums) or via radio frequency unit 901 or network module 902.Mike
Wind 9042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The format output that mobile communication base station can be sent to via radio frequency unit 901 is converted in the case where telephone calling model.
Mobile terminal 900 further includes at least one sensor 905, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 9061, and proximity sensor can close when mobile terminal 900 is moved in one's ear
Display panel 9061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify mobile terminal posture (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes
Sensor 905 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet
Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 906 is for showing information input by user or being supplied to the information of user.Display unit 906 can wrap
Display panel 9061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 9061.
User input unit 907 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 907 include touch panel 9071 and
Other input equipments 9072.Touch panel 9071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 9071 or in touch panel 9071
Neighbouring operation).Touch panel 9071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control
Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 910, receiving area
It manages the order that device 910 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Seed type realizes touch panel 9071.In addition to touch panel 9071, user input unit 907 can also include other input equipments
9072.Specifically, other input equipments 9072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 9071 can be covered on display panel 9061, when touch panel 9071 is detected at it
On or near touch operation after, send processor 910 to determine the type of touch event, be followed by subsequent processing device 910 according to touching
The type for touching event provides corresponding visual output on display panel 9061.Although in Fig. 9, touch panel 9071 and display
Panel 9061 is the function that outputs and inputs of realizing mobile terminal as two independent components, but in some embodiments
In, can be integrated by touch panel 9071 and display panel 9061 and realize the function that outputs and inputs of mobile terminal, it is specific this
Place is without limitation.
Interface unit 908 is the interface that external device (ED) is connect with mobile terminal 900.For example, external device (ED) may include having
Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end
Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 908 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and
By one or more elements that the input received is transferred in mobile terminal 900 or can be used in 900 He of mobile terminal
Data are transmitted between external device (ED).
Memory 909 can be used for storing software program and various data.Memory 909 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 909 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 910 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 909, and calls and is stored in storage
Data in device 909 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 910 may include one or more processing units;Preferably, processor 910 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 910.
Mobile terminal 900 can also include the power supply 911 (such as battery) powered to all parts, it is preferred that power supply 911
Can be logically contiguous by power-supply management system and processor 910, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
In addition, mobile terminal 900 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 910, and memory 909 is stored in
On memory 909 and the computer program that can run on the processor 910, the computer program are executed by processor 910
A kind of each process of SIM card state switching method of Shi Shixian, and identical technical effect can be reached, to avoid repeating, here
It repeats no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize a kind of each of above-mentioned SIM card state switching method embodiment when being executed by processor
Process, and identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage
Medium, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access
Memory, abbreviation RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within protection of the invention.