A kind of method, mobile terminal and storage medium that double SIM card communicates simultaneously
Technical field
The present invention relates to mobile terminal SIM card fields of communication technology, and in particular to a kind of side that double SIM card communicates simultaneously
Method, mobile terminal and storage medium.
Background technique
SIM (subscriber identification module, client identification module) is a kind of based on the integrated electricity of IC(
An outpost of the tax office) entity card, for user identity is identified, is stored user information, encryption key and the phone of user connection
It is the contents such as mode.It either makes a phone call to send short messages, or by surfing Internet with cell phone, is required to embedded SIM card in intelligent mobile end
It just can be achieved in end.With the development of science and technology, existing mobile terminal is supported while double SIM card using having become possibility, but
Each SIM card is easy when the same time receiving the cross one another data of mobile terminal transmission by external environment and exception
The interference of situation and cause to receive wrong data, the reception of mobile terminal normal data is influenced, to reduce data transmit-receive
Efficiency.
Therefore, the prior art needs to be improved and developed.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide method, the mobile terminal of a kind of double SIM card while communication
And storage medium, it is intended to when mobile terminal uses two SIM cards simultaneously, the data sequence that same time interleaving can be received
It is identified and is handled, avoided generating interference between data and influencing the normal data receiver of mobile terminal, improve data transmit-receive
Efficiency provides conveniently for user.
In order to achieve the above object, this invention takes following technical schemes:
A kind of method that double SIM card communicates simultaneously, the method that the double SIM card communicates simultaneously include:
Mobile terminal, which receives, is sent to the data sequence of any SIM card, wherein the data sequence include card identification information and
Data information;
The data sequence is parsed, card identification information and data information are obtained;
By the card identification information compared with preset SIM card identification information table, to determine mobile terminal by the data sequence
It is sent to the first SIM card or the second SIM card.
The method that the double SIM card communicates simultaneously, wherein described by the card identification information and preset SIM card mark
Know information table to compare, includes: to determine that the data sequence is sent to after the first SIM card or the second SIM card by mobile terminal
In the preset incidence relation table for obtaining corresponding first SIM card of the data sequence or the second SIM card, wherein described
Incidence relation table is used to store the sequencing of the data sequence execution with incidence relation of the first SIM card or the second SIM card;
Judge that the data sequence whether there is in the incidence relation table;
If so, mobile terminal obtains previous data sequence, the previous data sequence and institute according to time sequencing
Whether identical state the corresponding preceding data sequence of data sequence described in incidence relation table;
If so, the first SIM card or the second SIM card receive the data sequence;
If it is not, then abandoning the data sequence and prompting.
The method that the double SIM card communicates simultaneously, wherein described by the card identification information and preset SIM
Card identification information table compares, to determine that the data sequence is sent to after the first SIM card or the second SIM card also by mobile terminal
Include:
When the data sequence is not in preset incidence relation table, corresponding first SIM card of the incidence relation table or second
SIM card receives the data sequence.
The method that the double SIM card communicates simultaneously, wherein the mobile terminal reception is sent to any SIM card
Include: before data sequence
Be provided with the SIM card identification information table of the identification information of the first SIM card and the identification information of the second SIM card in advance, simultaneously
The first SIM card and the corresponding incidence relation table of the second SIM card are preset respectively.
The method that the double SIM card communicates simultaneously, wherein the incidence relation table includes data sequence field and institute
State the execution sequence field of data sequence.
The method that the double SIM card communicates simultaneously, wherein the mobile terminal reception is sent to any SIM card
Data sequence specifically includes:
The data sequence that mobile terminal receives the operation of user's triggering and the operation carries;
The data sequence is sent to the first SIM card to mobile terminal or the second SIM card is used to execute the operation.
The method that the double SIM card communicates simultaneously, wherein described by the card identification information and preset SIM card mark
Know information table to compare, to determine that the data sequence is sent to the first SIM card by mobile terminal or the second SIM card specifically includes:
Obtain the SIM card identification information of the identification information of preset first SIM card and the identification information of preset second SIM card
Table;
By the card identification information respectively compared with the identification information of the first SIM card and the identification information of the second SIM card whether phase
Together;
If the card identification information is identical as the identification information of the first SIM card, the first SIM card receives the data sequence;
If the card identification information is identical as the identification information of the second SIM card, the second SIM card receives the data sequence;
If the card identification information is all different with the identification information of the first SIM card and the identification information of the second SIM card, abandon
The data sequence simultaneously prompts.
The present invention also provides a kind of mobile terminal, including the first SIM card and the second SIM card, further include processor and
The memory being connected to the processor, the memory are stored with the program of double SIM card while communication, and the processor executes
When be implemented double SIM card described above and meanwhile communication method in step.
The present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage have one or
The multiple programs of person, one or more of programs can be executed by one or more processor, to realize pair described above
The step in method that SIM card communicates simultaneously.
Compared to the prior art, method, mobile terminal and the storage that a kind of double SIM card provided by the invention communicates simultaneously are situated between
Matter, the method that the double SIM card communicates simultaneously include that mobile terminal receives the data sequence for being sent to any SIM card, wherein
The data sequence includes card identification information and data information;Parse the data sequence, obtain card identification information sum number it is believed that
Breath;By the card identification information compared with preset SIM card identification information table, to determine that mobile terminal sends out the data sequence
Give the first SIM card or the second SIM card.It, can be to the same time when using two SIM cards simultaneously the present invention is directed to mobile terminal
Intersect the data sequence received to be identified and handled, avoids generating interference between data and influencing mobile terminal and normally count
According to reception, data transmit-receive efficiency is improved, is provided conveniently for user.
Detailed description of the invention
Fig. 1 is the flow chart for the method that a kind of double SIM card provided by the invention communicates simultaneously.
Fig. 2 is mobile terminal function functional block diagram of the present invention.
Specific embodiment
To make the purpose of the present invention, technical solution and effect clearer, clear and definite, right as follows in conjunction with drawings and embodiments
The present invention is further described.It should be appreciated that described herein, specific examples are only used to explain the present invention, is not used to
Limit the present invention.
Referring to Fig. 1, Fig. 1 is the flow chart of a kind of double SIM card provided by the invention while the method for communication, it should illustrate
, the method that the double SIM card of embodiment of the present invention communicates simultaneously is not limited to step in flow chart shown in FIG. 1 and suitable
Sequence, according to different requirements, the step in flow chart can increase, remove or change sequence.
The method that double SIM card provided by the invention communicates simultaneously is applied to mobile terminal, and the mobile terminal has can
It is inserted into the function that double SIM card carries out data communication, that is to say, that the mobile terminal can support double SIM card to carry out data communication.
Certainly, double SIM card can be consolidated network operator, or different network operators.In the embodiment of the present invention, institute
Stating network operator can be mobile operator, telecom operators or other communication operators.It is moved described in the embodiment of the present invention
Dynamic terminal refers to mobile phone.The mobile phone can support the use of double SIM card simultaneously, i.e., the same time, this two SIM card can connect
Receive the data information of mobile phone transmission.
As shown in Figure 1, double SIM card provided by the invention simultaneously communicate method the following steps are included:
S10, mobile terminal receive the data sequence for being sent to any SIM card, wherein the data sequence includes card mark letter
Breath and data information.
Before step S10, the identification information and second SIM card of the first SIM card are provided in advance by network operator
The SIM card identification information table of identification information, while the first SIM card and the corresponding incidence relation table of the second SIM card are preset respectively,
It is stored in the memory of mobile terminal, in memory.Wherein, the identification information is used for one SIM card of unique identification, i.e. user
Account information.The incidence relation table is used to store the first SIM card or the data sequence with incidence relation of the second SIM card is held
Capable sequencing, the incidence relation table include the execution sequence field of data sequence field and the data sequence.Institute
Stating incidence relation refers to having the data sequence needs of incidence relation successively to execute according to preset sequencing, in this implementation
In example, also referred to as data sequence is corresponding operates the sequencing executed.
For example, indicating the sequencing that data sequence executes, the small operation (i.e. data sequence) of number using Digital size
It first carries out, if mobile terminal receives the power-off operation of user's triggering, completes the associated of this feature operation and be powered off instruction
Operation and shutdown command operation, that is to say, that power-off operation is executed after executing power operation, so, network operator is default
The execution sequence for triggering cut-offing instruction operation is 0, and the execution sequence of shutdown command operation is 1, in practice, once triggering
Shutdown command operation, previous operation necessarily trigger cut-offing instruction operation.Each operation with incidence relation is corresponding
Data sequence original execution sequence with number 0 originate.
When it is implemented, the S10 is specifically included:
S11, the data sequence that mobile terminal receives the operation of user's triggering and the operation carries;
S12, the data sequence is sent to the first SIM card to mobile terminal or the second SIM card is used to execute the operation.
In the present embodiment, the data sequence includes card identification information and data information.User triggers on mobile terminal
Key, generate operation, if user to the first SIM card of mobile terminal send short message, at this point, mobile terminal receives the behaviour
The data sequence that work and the operation carry, there are one-to-one relationships with the data sequence for the operation, and movement is eventually
End can determine whether its operation is executed by which SIM card by data sequence, certainly, according to the data sequence, also can determine whether data
Which SIM card will be sequence will be sent to.
S20, the parsing data sequence, obtain card identification information and data information.
In embodiments of the present invention, when mobile terminal receives the data sequence that the operation carries, by described in parsing
Data sequence can obtain card identification information and data information, wherein can determine whether that mobile terminal will according to the card identification information
Which SIM card is the data sequence be sent to.The data sequence will be stored in memory sequentially in time.
S30, by the card identification information compared with preset SIM card identification information table, to determine that mobile terminal will be described
Data sequence is sent to the first SIM card or the second SIM card.
Firstly, obtaining the SIM card of the identification information of preset first SIM card and the identification information of preset second SIM card
Identification information table distinguishes the identification information of the first SIM card in SIM card identification information table and the identification information of the second SIM card
Be compared with the card identification information after parsing it is whether identical, to judge that data sequence is sent to the first SIM card by mobile terminal
Or second SIM card.Card identification information after parsing is identical as the identification information of the first SIM card, then is sent to the first SIM
Card receives the data series by the first SIM card;If identical as the identification information of the second SIM card, it is sent to the second SIM card,
The data series are received by the second SIM card.
Certainly, if mark of the card identification information with the identification information of first SIM card and the second SIM card after parsing
Information is not identical, then illustrating mobile terminal data sequence to be sent, there are mistakes, may be influenced by external environment communication, is different
Reason condition such as abnormal shutdown and the factor of stay information cause, at this point, mobile terminal will abandon the data sequence, do not send
To any SIM card, while by pop-up window or voice prompting error message, and it is automatically deleted the data sequence for being stored in memory
Column, to save space hold.
When it is implemented, the S30 is specifically included:
S31, the SIM card for obtaining the identification information of preset first SIM card and the identification information of preset second SIM card identify letter
Cease table;
The card identification information is respectively by S32 compared with the identification information of the first SIM card and the identification information of the second SIM card
It is no identical;
S33, if the card identification information is identical as the identification information of the first SIM card, the first SIM card receives the data sequence
Column;
S34, if the card identification information is identical as the identification information of the second SIM card, the second SIM card receives the data sequence
Column;
S35, if the card identification information is all different with the identification information of the first SIM card and the identification information of the second SIM card,
It abandons the data sequence and prompts.
It in the present embodiment, can be by an independent operation just by starting a function institute operation to be performed in mobile terminal
It can be achieved, also having to execute with multiple operations just can be achieved, therefore, once it is determined that the data sequence is sent to specified SIM
When card, it is also necessary to further judge whether the data sequence (operating) has incidence relation, i.e. whether the data sequence is only
Vertical data sequence can independently realize a function.Therefore, based on after step S30, comprising:
S40 obtains the preset incidence relation table of corresponding first SIM card of the data sequence or the second SIM card;
S50 judges that the data sequence whether there is in the incidence relation table;
S60, if so, mobile terminal obtains previous data sequence, the previous data sequence according to time sequencing
Whether preceding data sequence corresponding with data sequence described in the incidence relation table is identical;
S70, if so, the first SIM card or the second SIM card receive the data sequence;
S80, if it is not, then abandoning the data sequence and prompting.
When it is implemented, obtaining the preset incidence relation of corresponding first SIM card of the data sequence or the second SIM card
Table.At this point, the data sequence is denoted as current data sequence, data sequence field in the incidence relation table is traversed, once
Current data sequence is identical as the data sequence in the incidence relation table, i.e., current data sequence is present in the incidence relation
In table, then mobile terminal obtain sequentially in time with the associated previous data sequence of current data sequence, then will be before this
Whether one data sequence is identical compared with preceding data sequence corresponding in the incidence relation table, at this point, saying if not identical
Bright current data sequence mismatches (exception), is error message, mobile terminal will abandon the current data sequence, and pass through bullet
Window or voice prompting user out, while the data series stored in memory are deleted, to save space hold.Certainly, if phase
Together, then illustrate that current data sequence is the data sequence that has incidence relation and can correctly execute, at this point, the first SIM card or
Two SIM cards will receive the current data sequence.
In addition, when traversing data sequence field in the incidence relation table, when the data sequence is not in preset association
When relation table, illustrate that the corresponding operation of current data sequence is independent operation, then corresponding first SIM card of the incidence relation table
Or second SIM card receive the data sequence.
In this way, further judging whether the data sequence is the data with incidence relation after the SIM card belonging to judging
Sequence is to determine whether to receive the data series, and not only simple flow operates, also attenuating calculation process, improves double SIM card and obtains
Data accuracy and transmission rate are taken, reduces or avoids the generation of data-crosstalk phenomenon, provide users with the convenient.
Based on the method that above-mentioned double SIM card communicates simultaneously, the present invention further correspondingly provides a kind of mobile terminal, such as Fig. 2 institute
Show, the mobile terminal 200 includes the first SIM card 3, the second SIM card 4, processor 1 and deposits with what the processor 1 was connect
Reservoir 2, first SIM card 3 and second SIM card 4 are connect with the processor 1.Fig. 2 illustrates only mobile terminal
200 members, it should be understood that be not required for implementing all components shown, the implementation that can be substituted it is more or
The less component of person.
The memory 2 can be the internal storage unit of the mobile terminal 200 in some embodiments, such as move
The memory of terminal 200.The external storage that the memory 2 is also possible to the mobile terminal 200 in further embodiments is set
Plug-in type USB flash disk that is standby, such as being equipped on the mobile terminal 200, intelligent memory card (Smart Media Card, SMC), peace
Digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the memory 2 can be with
Both including institute's mobile terminal 200 internal storage unit and also including External memory equipment.The memory 2 is installed on for storing
The application software and Various types of data of the mobile terminal 200, such as the program code etc. that the double SIM card communicates simultaneously.It is described
Memory 2 can be also used for temporarily storing the data that has exported or will export.In one embodiment, on memory 2
It is stored with the program of double SIM card while communication, the program which communicates simultaneously can be performed by processor 1, to realize
The method that double SIM card communicates simultaneously in the application, specifically as described in the above method.
The processor 1 can be in some embodiments a central processing unit (Central Processing Unit,
CPU), microprocessor, mobile phone baseband processor or other data processing chips, for running the journey stored in the memory 2
Sequence code or processing data, such as the method for executing the double SIM card while communication etc., specifically as described in the above method.
The present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage have one or
The multiple programs of person, one or more of programs can be by one or more processors (the present embodiment is the processor 1)
It executes, to realize the step in double SIM card of the present invention while the method communicated, specifically as described in the above method.
In conclusion the present invention provides method, mobile terminal and storage medium that a kind of double SIM card communicates simultaneously, institute
The method for stating double SIM card while communication includes that mobile terminal receives the data sequence for being sent to any SIM card, wherein described
Data sequence includes card identification information and data information;The data sequence is parsed, card identification information and data information are obtained;It will
The card identification information is compared with preset SIM card identification information table, to determine that the data sequence is sent to by mobile terminal
First SIM card or the second SIM card.It, can be to same time interleaving when using two SIM cards simultaneously the present invention is directed to mobile terminal
The data sequence received is identified and is handled, and avoids generating interference between data and influencing the normal data of mobile terminal and connect
It receives, improves data transmit-receive efficiency, provided conveniently for user.
Certainly, those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method,
It is that related hardware (such as processor, controller etc.) can be instructed to complete by computer program, the program can store
In a computer-readable storage medium, which may include the process such as above-mentioned each method embodiment when being executed.Its
Described in storage medium can be for memory, magnetic disk, CD etc..
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can
With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention
Protect range.