Disclosure of Invention
Based on the above, it is necessary to provide a method for simultaneous communication of two SIM cards, a mobile terminal and a storage medium, so as to identify and process data sequences received by the mobile terminal at the same time in a crossing manner when the mobile terminal uses two SIM cards at the same time, thereby avoiding interference between data to affect normal data reception of the mobile terminal, improving data receiving and transmitting efficiency, and providing convenience for users.
In order to achieve the above purpose, the application adopts the following technical scheme:
a method of dual SIM card simultaneous communication, the method of dual SIM card simultaneous communication comprising:
the mobile terminal receives a data sequence to be sent to any SIM card, wherein the data sequence comprises card identification information and data information;
analyzing the data sequence to obtain card identification information and data information;
and comparing the card identification information with a preset SIM card identification information table to determine that the mobile terminal sends the data sequence to the first SIM card or the second SIM card.
The method for simultaneously communicating the two SIM cards, wherein comparing the card identification information with a preset SIM card identification information table to determine that the mobile terminal sends the data sequence to the first SIM card or the second SIM card comprises the following steps:
acquiring a preset association relation table of a first SIM card or a second SIM card corresponding to the data sequence, wherein the association relation table is used for storing the execution sequence of the data sequence with the association relation of the first SIM card or the second SIM card;
judging whether the data sequence exists in the association relation table or not;
if yes, the mobile terminal acquires a previous data sequence according to the time sequence, and compares whether the previous data sequence is the same with a previous data sequence corresponding to the data sequence in the association relation table;
if yes, the first SIM card or the second SIM card receives the data sequence;
if not, discarding the data sequence and prompting.
The method for simultaneously communicating the two SIM cards, wherein comparing the card identification information with a preset SIM card identification information table to determine that the mobile terminal sends the data sequence to the first SIM card or the second SIM card, further includes:
and when the data sequence is not in the preset association relation table, the first SIM card or the second SIM card corresponding to the association relation table receives the data sequence.
The method for simultaneously communicating the double SIM cards comprises the following steps before the mobile terminal receives the data sequence to be sent to any SIM card:
the method comprises the steps of pre-configuring an SIM card identification information table with identification information of a first SIM card and identification information of a second SIM card, and simultaneously pre-configuring association relation tables corresponding to the first SIM card and the second SIM card respectively.
The method for simultaneously communicating the double SIM cards comprises the following steps of enabling the association relation table to comprise a data sequence field and an execution sequence field of the data sequence.
The method for simultaneously communicating the double SIM cards, wherein the mobile terminal receives the data sequence to be sent to any SIM card specifically comprises the following steps:
the mobile terminal receives an operation triggered by a user and a data sequence carried by the operation;
and the mobile terminal sends the data sequence to the first SIM card or the second SIM card for executing the operation.
The method for simultaneously communicating the two SIM cards, wherein comparing the card identification information with a preset SIM card identification information table to determine that the mobile terminal sends the data sequence to the first SIM card or the second SIM card comprises the following steps:
acquiring an SIM card identification information table of preset identification information of a first SIM card and preset identification information of a second SIM card;
comparing the card identification information with the identification information of the first SIM card and the identification information of the second SIM card respectively to determine whether the card identification information is the same as the identification information of the first SIM card;
if the card identification information is the same as the identification information of the first SIM card, the first SIM card receives the data sequence;
if the card identification information is the same as the identification information of the second SIM card, the second SIM card receives the data sequence;
and if the card identification information is different from the identification information of the first SIM card and the identification information of the second SIM card, discarding the data sequence and prompting.
The application also provides a mobile terminal, which comprises a first SIM card and a second SIM card, and further comprises a processor and a memory connected with the processor, wherein the memory stores a program for simultaneous communication of the double SIM cards, and the processor is implemented with the steps in the method for simultaneous communication of the double SIM cards when executing.
The present application also provides a computer readable storage medium storing one or more programs executable by one or more processors to implement the steps in the method for simultaneous dual SIM card communication described above.
Compared with the prior art, the method for simultaneously communicating the double SIM cards, the mobile terminal and the storage medium provided by the application comprise the steps that the mobile terminal receives a data sequence to be sent to any SIM card, wherein the data sequence comprises card identification information and data information; analyzing the data sequence to obtain card identification information and data information; and comparing the card identification information with a preset SIM card identification information table to determine that the mobile terminal sends the data sequence to the first SIM card or the second SIM card. The application aims to identify and process the data sequences received in a crossing way at the same time when the mobile terminal uses two SIM cards at the same time, thereby avoiding the interference between the data to influence the normal data receiving of the mobile terminal, improving the data receiving and transmitting efficiency and providing convenience for users.
Detailed Description
In order to make the objects, technical solutions and effects of the present application clearer and more specific, the present application will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
Referring to fig. 1, fig. 1 is a flowchart of a method for simultaneous communication of dual SIM cards provided in the present application, and it should be noted that the method for simultaneous communication of dual SIM cards in the embodiment of the present application is not limited to the steps and the sequence in the flowchart shown in fig. 1, and the steps in the flowchart may be added, removed or changed according to different requirements.
The method for simultaneously communicating the double SIM cards is applied to the mobile terminal, and the mobile terminal has the function of being capable of inserting the double SIM cards for data communication, namely, the mobile terminal can support the double SIM cards for data communication. Of course, the dual SIM cards may be the same network operator, or may be different network operators. In the embodiment of the present application, the network operator may be a mobile operator, a telecom operator or other telecom operators. The mobile terminal in the embodiment of the application refers to a mobile phone. The mobile phone can simultaneously support the use of the double SIM cards, namely, the two SIM cards can both receive data information sent by the mobile phone at the same time.
As shown in fig. 1, the method for simultaneously communicating with the dual SIM card provided by the present application includes the following steps:
s10, the mobile terminal receives a data sequence to be sent to any SIM card, wherein the data sequence comprises card identification information and data information.
Before step S10, a network operator pre-configures a SIM card identification information table with identification information of a first SIM card and identification information of a second SIM card, and simultaneously pre-sets association relationship tables corresponding to the first SIM card and the second SIM card respectively, which are both stored in a memory, such as a memory, of the mobile terminal. The identification information is used for uniquely identifying one SIM card, namely user account information. The association relation table is used for storing the sequence of execution of the data sequences with association relation of the first SIM card or the second SIM card, and comprises a data sequence field and an execution sequence field of the data sequences. The association relationship refers to that the data sequences with the association relationship need to be executed sequentially according to a preset sequence, and in this embodiment, the sequence of executing the operations corresponding to the data sequences is also referred to.
For example, the sequence of execution of the data sequence is indicated by the number size, the operation with the small number (i.e. the data sequence) is executed first, if the mobile terminal receives the shutdown operation triggered by the user, the functional operation is associated with the power-off instruction operation and the shutdown instruction operation, that is, the shutdown operation is executed after the power-off operation is executed, so that the network operator presets that the execution sequence of the power-off instruction operation is triggered to be 0, and the execution sequence of the shutdown instruction operation is 1, and in practical application, once the shutdown instruction operation is triggered, the previous operation necessarily triggers the power-off instruction operation. The initial execution sequence of the data sequence corresponding to each operation with an association relationship starts with the number 0.
In specific implementation, the step S10 specifically includes:
s11, the mobile terminal receives an operation triggered by a user and a data sequence carried by the operation;
s12, the mobile terminal sends the data sequence to the first SIM card or the second SIM card for executing the operation.
In this embodiment, the data sequence includes card identification information and data information. The user triggers a key on the mobile terminal to generate an operation, for example, the user sends a short message to a first SIM card of the mobile terminal, at this time, the mobile terminal receives the operation and a data sequence carried by the operation, the operation and the data sequence have a one-to-one correspondence, and the mobile terminal can judge which SIM card the operation is executed by through the data sequence, and of course, can also judge which SIM card the data sequence is sent to according to the data sequence.
S20, analyzing the data sequence to obtain card identification information and data information.
In the embodiment of the application, when the mobile terminal receives the data sequence carried by the operation, the card identification information and the data information can be obtained by analyzing the data sequence, wherein the mobile terminal can judge which SIM card the mobile terminal sends the data sequence to according to the card identification information. The data sequence is stored in a memory in time order.
S30, comparing the card identification information with a preset SIM card identification information table to determine that the mobile terminal sends the data sequence to the first SIM card or the second SIM card.
Firstly, acquiring a SIM card identification information table of preset first SIM card identification information and preset second SIM card identification information, comparing the identification information of the first SIM card and the identification information of the second SIM card in the SIM card identification information table with the analyzed card identification information respectively to judge whether the mobile terminal sends a data sequence to the first SIM card or the second SIM card. Once the analyzed card identification information is the same as the identification information of the first SIM card, the card identification information is sent to the first SIM card, and the first SIM card receives the data series; and if the identification information is the same as the identification information of the second SIM card, the identification information is sent to the second SIM card, and the second SIM card receives the data series.
Of course, if the parsed card identification information is different from the identification information of the first SIM card and the identification information of the second SIM card, it is indicated that the data sequence to be sent by the mobile terminal has errors and may be affected by external environment communication and caused by factors such as abnormal shutdown and information retention, and at this time, the mobile terminal will discard the data sequence and not send the data sequence to any SIM card, and at the same time, the mobile terminal automatically deletes the data sequence stored in the memory through a pop-up window or voice prompt for error information, so as to save space occupation.
In specific implementation, the step S30 specifically includes:
s31, acquiring a SIM card identification information table of preset identification information of a first SIM card and preset identification information of a second SIM card;
s32, comparing the card identification information with the identification information of the first SIM card and the identification information of the second SIM card respectively to determine whether the card identification information is the same as the identification information of the first SIM card;
s33, if the card identification information is the same as the identification information of the first SIM card, the first SIM card receives the data sequence;
s34, if the card identification information is the same as the identification information of the second SIM card, the second SIM card receives the data sequence;
s35, if the card identification information is different from the identification information of the first SIM card and the identification information of the second SIM card, discarding the data sequence and prompting.
In this embodiment, since the operation to be executed to start a function in the mobile terminal may be implemented by an independent operation or may be implemented by a plurality of operations in cooperation, once it is determined that the data sequence is sent to the specified SIM card, it is further required to determine whether the data sequence (i.e. the operation) has an association relationship, i.e. whether the data sequence is an independent data sequence, so that a function may be implemented independently. Therefore, based on step S30, it includes:
s40, acquiring a preset association relation table of the first SIM card or the second SIM card corresponding to the data sequence;
s50, judging whether the data sequence exists in the association relation table or not;
s60, if so, the mobile terminal acquires a previous data sequence according to the time sequence, and compares whether the previous data sequence is identical with a previous data sequence corresponding to the data sequence in the association relation table;
s70, if yes, the first SIM card or the second SIM card receives the data sequence;
and S80, if not, discarding the data sequence and prompting.
And in the implementation, acquiring a preset association relation table of the first SIM card or the second SIM card corresponding to the data sequence. At this time, the data sequence is recorded as a current data sequence, the data sequence field in the association table is traversed, once the current data sequence is the same as the data sequence in the association table, that is, the current data sequence exists in the association table, the mobile terminal acquires the previous data sequence associated with the current data sequence according to the time sequence, then compares the previous data sequence with the corresponding previous data sequence in the association table to determine whether the previous data sequence is the same, if the previous data sequence is not the same as the corresponding previous data sequence in the association table, the current data sequence is not matched (abnormal), the current data sequence is an error message, the mobile terminal discards the current data sequence, prompts the user through a pop-up window or voice, and simultaneously deletes the data sequence stored in the memory to save space occupation. Of course, if the data sequences are the same, it is indicated that the current data sequence is a data sequence which has an association relationship and can be executed correctly, and at this time, the first SIM card or the second SIM card will receive the current data sequence.
In addition, when the data sequence field in the association relation table is traversed, and when the data sequence is not in the preset association relation table, the operation corresponding to the current data sequence is the independent operation, and the first SIM card or the second SIM card corresponding to the association relation table receives the data sequence.
Therefore, after judging the affiliated SIM card, whether the data sequence is the data sequence with the association relationship is further judged to determine whether the data sequence is received, so that the flow operation is simplified, the operation processing is reduced, the accuracy of acquiring data by the double SIM cards and the transmission rate are improved, the occurrence of the data crosstalk phenomenon is reduced or avoided, and convenience is provided for users.
Based on the above method for simultaneous communication with two SIM cards, the present application also provides a mobile terminal, as shown in fig. 2, where the mobile terminal 200 includes a first SIM card 3, a second SIM card 4, a processor 1, and a memory 2 connected to the processor 1, and both the first SIM card 3 and the second SIM card 4 are connected to the processor 1. Fig. 2 shows only some of the components of mobile terminal 200, but it should be understood that not all of the illustrated components are required to be implemented and that more or fewer components may be implemented instead.
The memory 2 may in some embodiments be an internal storage unit of the mobile terminal 200, such as a memory of the mobile terminal 200. The memory 2 may also be an external storage device of the mobile terminal 200 in other embodiments, such as a plug-in type usb Flash drive, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the mobile terminal 200. Further, the memory 2 may also include both an internal storage unit and an external storage device of the mobile terminal 200. The memory 2 is used for storing application software and various data installed in the mobile terminal 200, such as program codes for simultaneous communication of the dual SIM card, etc. The memory 2 may also be used for temporarily storing data that has been output or is to be output. In an embodiment, the memory 2 stores a program for simultaneous communication of dual SIM cards, and the program for simultaneous communication of dual SIM cards can be executed by the processor 1, so as to implement the method for simultaneous communication of dual SIM cards in the present application, which is specifically described in the above method.
The processor 1 may in some embodiments be a central processing unit (Central Processing Unit, CPU), microprocessor, mobile phone baseband processor or other data processing chip for running the program code or processing data stored in the memory 2, for example, performing the method of simultaneous communication of the dual SIM cards, etc., as described in the above method.
The present application also provides a computer readable storage medium storing one or more programs executable by one or more processors (the processor 1 in this embodiment) to implement steps in the method for simultaneous dual SIM card communication according to the present application, specifically as described in the above method.
In summary, the present application provides a method for simultaneously communicating dual SIM cards, a mobile terminal and a storage medium, where the method for simultaneously communicating dual SIM cards includes that the mobile terminal receives a data sequence to be sent to any SIM card, where the data sequence includes card identification information and data information; analyzing the data sequence to obtain card identification information and data information; and comparing the card identification information with a preset SIM card identification information table to determine that the mobile terminal sends the data sequence to the first SIM card or the second SIM card. The application aims to identify and process the data sequences received in a crossing way at the same time when the mobile terminal uses two SIM cards at the same time, thereby avoiding the interference between the data to influence the normal data receiving of the mobile terminal, improving the data receiving and transmitting efficiency and providing convenience for users.
Of course, those skilled in the art will appreciate that implementing all or part of the above-described methods may be implemented by a computer program for instructing relevant hardware (e.g., a processor, a controller, etc.), where the program may be stored in a computer-readable storage medium, and where the program may include the steps of the above-described method embodiments when executed. The storage medium may be a memory, a magnetic disk, an optical disk, or the like.
It is to be understood that the application is not limited in its application to the examples described above, but is capable of modification and variation in light of the above teachings by those skilled in the art, and that all such modifications and variations are intended to be included within the scope of the appended claims.