Terminal control method, device, terminal, storage medium and chip

By judging the PLMN identification of the SIM card and controlling the idle state process, the problem of increasing power consumption when the terminal uses two SIM cards at the same time is solved, and the purpose of power saving is achieved.

CN113630759BActive Publication Date: 2024-11-01GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202010383574.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-08
Publication Date
2024-11-01
Estimated Expiration
2040-05-08

AI Technical Summary

Technical Problem

When the terminal uses two SIM cards at the same time, the idle process of the two SIM cards is the same, resulting in increased power consumption and the purpose of saving power cannot be achieved.

Method used

By obtaining the target PLMN identification of the two SIM cards, we determine whether it can reside in the same cell, and control one of them to initiate an idle state process, and send the result to the uninitiated SIM card to avoid the dual idle state process.

Benefits of technology

Save terminal power consumption, reduce competition for physical units, and achieve power saving effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113630759B_ABST
    Figure CN113630759B_ABST
Patent Text Reader

Abstract

The present invention discloses a terminal control method, device, terminal, storage medium and chip. The method includes: when the terminal activates a first user identification module (SIM) card and a second SIM card, obtaining a first target public land mobile network (PLMN) identifier of the first SIM card; and obtaining a second target PLMN identifier of the second SIM card; based on the first target PLMN identifier and the second target PLMN identifier, determining whether the first SIM card and the second SIM card can reside in the same cell; when it is determined that the first SIM card and the second SIM card can reside in the same cell, controlling one of the first SIM card and the second SIM card to initiate an idle state process, and sending the execution result of the SIM card that initiates the idle state process to the SIM card that does not initiate the idle state process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to terminal technology, and in particular to a terminal control method, device, terminal, storage medium and chip. Background Art

[0002] With the rapid development of terminal technology, terminals have the ability to support multiple Subscriber Identity Module (SIM) cards. When a terminal uses two SIM cards at the same time, each of the two SIM cards needs to initiate an idle state process. If the cells where the two SIM cards reside are exactly the same, the idle state processes initiated by the two SIM cards are exactly the same, which will increase the power consumption of the terminal and fail to achieve the purpose of power saving.

[0003] Therefore, it is urgent to find a technical solution to control the idle state behavior of the terminal. Summary of the invention

[0004] In view of this, embodiments of the present invention are intended to provide a terminal control method, device, terminal, storage medium and chip.

[0005] The technical solution of the present invention is achieved in this way:

[0006] An embodiment of the present invention provides a terminal control method, the method comprising:

[0007] When the terminal activates the first SIM card and the second SIM card, a first target public land mobile network (PLMN) identifier of the first SIM card is obtained; and a second target PLMN identifier of the second SIM card is obtained;

[0008] Based on the first target PLMN identifier and the second target PLMN identifier, determining whether the first SIM card and the second SIM card can reside in the same cell;

[0009] When it is determined that the first SIM card and the second SIM card can reside in the same cell, one of the first SIM card and the second SIM card is controlled to initiate an idle state process, and the execution result of the SIM card that initiates the idle state process is sent to the SIM card that does not initiate the idle state process.

[0010] In the above solution, judging whether the first SIM card and the second SIM card can reside in the same cell based on the first target PLMN identifier and the second target PLMN identifier includes:

[0011] Using a Home PLMN (HPLMN) identifier or an Equivalent Home PLMN (EHPLMN) identifier of the first SIM card as the first target PLMN identifier; and using the HPLMN identifier or the EHPLMN identifier of the second SIM card as the second target PLMN identifier;

[0012] When the first target PLMN identifier and the second target PLMN identifier are the same, it is determined that the first SIM card and the second SIM card can reside in the same cell.

[0013] In the above solution, judging whether the first SIM card and the second SIM card can reside in the same cell based on the first target PLMN identifier and the second target PLMN identifier includes:

[0014] Determine whether the first SIM card is in roaming state; and determine whether the second SIM card is in roaming state;

[0015] When it is determined that the first SIM card is in a roaming state and the second SIM card is in a non-roaming state, if the first SIM card fails to acquire an Equivalent Public Land Mobile Network (EPLMN) and the second SIM card can acquire the EPLMN, the EHPLMN or HPLMN of the first SIM card is used as the first target PLMN identifier, and the EPLMN of the second SIM card is used as the second target PLMN identifier;

[0016] When the first target PLMN identifier and the second target PLMN identifier are the same, it is determined that the first SIM card and the second SIM card can reside in the same cell.

[0017] In the above solution, judging whether the first SIM card and the second SIM card can reside in the same cell based on the first target PLMN identifier and the second target PLMN identifier includes:

[0018] Determine whether the first SIM card is in roaming state; and determine whether the second SIM card is in roaming state;

[0019] When it is determined that the first SIM card is in a roaming state and the second SIM card is in a roaming state, if both the first SIM card and the second SIM card can obtain and use the EPLMN, the EPLMN of the first SIM card is used as the first target PLMN identifier, and the EPLMN of the second SIM card is used as the second target PLMN identifier;

[0020] When the first target PLMN identifier is the same as a visited public land mobile network (VPLMN) of the roaming area and the second target PLMN identifier is the same as the VPLMN of the roaming area, it is determined that the first SIM card and the second SIM card can reside in the same cell.

[0021] In the above solution, the step of determining whether the first SIM card is in a roaming state; and determining whether the second SIM card is in a roaming state includes:

[0022] When one of the HPLMN and the EHPLMN of the first SIM card is different from one of the HPLMN and the EHPLMN of the second SIM card, controlling the first SIM card to complete cell camping;

[0023] Determining whether the cell where the first SIM card resides is a shared network cell;

[0024] When it is determined that the cell where the first SIM card resides is not a shared network cell, it is determined whether the first SIM card is in a roaming state; and it is determined whether the second SIM card is in a roaming state.

[0025] In the above solution, judging whether the first SIM card and the second SIM card can reside in the same cell based on the first target PLMN identifier and the second target PLMN identifier includes:

[0026] Obtain at least two PLMN lists;

[0027] For each PLMN list in the at least two PLMN lists, determining whether the corresponding PLMN list includes the first target PLMN identifier and the second target PLMN identifier;

[0028] When the corresponding PLMN list includes the first target PLMN identifier and the second target PLMN identifier, it is determined that the first SIM card and the second SIM card can reside in the same cell.

[0029] In the above solution, the obtaining of at least two PLMN lists includes:

[0030] When one of the HPLMN and the EHPLMN of the first SIM card is different from one of the HPLMN and the EHPLMN of the second SIM card, controlling the first SIM card to complete cell camping;

[0031] Determining whether the cell where the first SIM card resides is a shared network cell;

[0032] When it is determined that the cell where the first SIM card resides is a shared network cell, at least two PLMN lists broadcasted by the shared network cell are acquired.

[0033] In the above solution, the step of controlling one of the first SIM card and the second SIM card to initiate an idle state process includes:

[0034] When it is determined that one of the first SIM card and the second SIM card has completed the cell camping, controlling the SIM card that has completed the cell camping among the first SIM card and the second SIM card to initiate an idle state process;

[0035] When it is determined that both the first SIM card and the second SIM card have not completed the cell camping, one of the first SIM card and the second SIM card is controlled to initiate an idle state process.

[0036] In the above solution, after controlling one of the first SIM card and the second SIM card to initiate an idle state process and sending the execution result of the SIM card that initiated the idle state process to the SIM card that did not initiate the idle state process, the method further includes:

[0037] Determine whether the first SIM card and the second SIM card are connected to the network side;

[0038] When it is determined that both the first SIM card and the second SIM card have established connections with the network side, the first SIM card and the second SIM card are controlled to use the same physical unit to perform data transmission with the network side on different resources.

[0039] An embodiment of the present invention provides a control device for a terminal, including:

[0040] An acquisition unit, configured to acquire a first target PLMN identifier of the first SIM card when the terminal uses the first SIM card and the second SIM card; and acquire a second target PLMN identifier of the second SIM card;

[0041] a processing unit, configured to determine, based on the first target PLMN identifier and the second target PLMN identifier, whether the first SIM card and the second SIM card can reside in the same cell; when it is determined that the first SIM card and the second SIM card can reside in the same cell, control one of the first SIM card and the second SIM card to initiate an idle state process, and send an execution result of the SIM card that initiates the idle state process to the SIM card that does not initiate the idle state process.

[0042] An embodiment of the present invention provides a terminal, comprising: a processor and a memory for storing a computer program that can be run on the processor,

[0043] Wherein, when the processor is used to run the computer program, the steps of any of the above methods are implemented when executing the program.

[0044] An embodiment of the present invention provides a storage medium having a computer program stored thereon, wherein the computer program implements the steps of any of the above methods when executed by a processor.

[0045] An embodiment of the present invention provides a chip, comprising: a control circuit and a memory for storing a computer program capable of running on the control circuit.

[0046] Wherein, the control circuit is used to execute the steps of any of the above methods when running the computer program.

[0047] The terminal control method, device, terminal, storage medium and chip provided by the embodiment of the present invention, when the terminal activates the first SIM card and the second SIM card, obtains the first target PLMN identifier of the first SIM card; and obtains the second target PLMN identifier of the second SIM card; based on the first target PLMN identifier and the second target PLMN identifier, determines whether the first SIM card and the second SIM card can reside in the same cell; when it is determined that the first SIM card and the second SIM card can reside in the same cell, controls one of the first SIM card and the second SIM card to initiate an idle state process, and sends the execution result of the SIM card that initiates the idle state process to the SIM card that does not initiate the idle state process. Using the technical solution of the embodiment of the present invention, when the terminal uses two SIM cards at the same time, determines whether the two SIM cards can reside in the same cell; when it is determined that the two SIM cards can reside in the same cell, controls one of the two SIM cards to initiate an idle state process, and sends the result of executing the idle state process to the SIM card that does not initiate the idle state process, thereby avoiding the problem of increased power consumption of the terminal caused by the need to initiate the same idle state process in the related art, thereby saving the power consumption of the terminal and achieving the purpose of power saving. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 It is a schematic diagram of the internal structure of a dual SIM card terminal in the related art;

[0049] Figure 2 It is a schematic diagram of the position movement of a terminal in the related art;

[0050] Figure 3 A schematic diagram of an implementation flow of a terminal control method according to an embodiment of the present invention;

[0051] Figure 4aThe embodiment of the present invention is a schematic diagram of the implementation process of determining whether the first SIM card and the second SIM card can reside in the same cell Figure 1 ;

[0052] Figure 4b The embodiment of the present invention is a schematic diagram of the implementation process of determining whether the first SIM card and the second SIM card can reside in the same cell Figure 2 ;

[0053] Figure 5 The embodiment of the present invention is a schematic diagram of the implementation process of determining whether the first SIM card and the second SIM card can reside in the same cell Figure 3 ;

[0054] Figure 6 FIG4 is a flowchart of an implementation of determining whether the first SIM card and the second SIM card can reside in the same cell according to an embodiment of the present invention;

[0055] Figure 7 Schematic diagram of determining whether the first SIM card and the second SIM card are in roaming state according to an embodiment of the present invention Figure 1 ;

[0056] Figure 8 Schematic diagram of determining whether the first SIM card and the second SIM card are in roaming state according to an embodiment of the present invention Figure 2 ;

[0057] Fig. 9 A schematic diagram of the structure of a control device of a terminal according to an embodiment of the present invention;

[0058] Fig.10 The figure is a schematic diagram of the structure of a terminal according to an embodiment of the present invention. DETAILED DESCRIPTION

[0059] Before describing the technical solution of the embodiment of the present invention in detail, the related technology is first introduced.

[0060] In the related art, with the rapid development of terminal technology, terminals have the ability to support multiple SIM cards, also known as multi-SIM UEs. Multi-SIM UEs are usually composed of multiple protocol stack control software instances and a single radio frequency physical unit. Figure 1It is a schematic diagram of the internal structure of a dual SIM card terminal in the related technology. The dual SIM card terminal needs to have two protocol stacks to support two SIM cards and obtain network services respectively, wherein NAS1 and RRC1 constitute the first control plane of a protocol stack instance and serve card SIM1, NAS2 and RRC2 constitute the second control plane of another protocol stack instance and serve card SIM2; the control information between the two control planes is independent of each other, and the respective protocol processes are completed by accessing the physical unit in a time-division manner. Among them, NAS refers to the non-access stratum (NSA) protocol function, which is used for the interaction process between the terminal and the core network, and controls the important processes such as the terminal's PLMN search and registration; RRC refers to the radio resource control (RRC) protocol function, which is responsible for the interaction between the terminal and the radio access network (RAN) to complete the configuration of radio resources and mobility.

[0061] Figure 1 In the example, when both protocol stack instances are in a non-connected state, if the service cells where the two SIM cards reside are exactly the same, the idle state processes initiated by the two SIM cards are the same, including: measurement of the service cell, measurement and evaluation of neighboring cells, reselection, acquisition of system messages, etc. If the service cells where the two SIM cards reside are different, after RRC1 completes the cell measurement process, RRC2 repeats the cell measurement process performed by RRC1, and RRC1 and RRC2 obtain the services provided by the physical layer unit in a serial time division manner. It can be seen that if the service cells where the two SIM cards reside are exactly the same, then RRC1 and RRC2 will initiate the same activity, and from the perspective of the terminal, the same activity behavior will be repeated within the specified time. Figure 2 is a schematic diagram of the terminal moving in the related art, such as Figure 2 As shown, when the terminal moves to the edge of the cell, two SIM cards of the same network may reside in different service cells. For example, two SIM cards belonging to a mobile operator network may reside in different service cells respectively. Therefore, when the terminal moves, the solution of determining whether the two SIM cards reside in the same cell based on whether the operators they belong to are the same will fail.

[0062] Based on this, in various embodiments of the present invention, when the terminal activates the first SIM card and the second SIM card, the first target PLMN identifier of the first SIM card is obtained; and the second target PLMN identifier of the second SIM card is obtained; based on the first target PLMN identifier and the second target PLMN identifier, it is determined whether the first SIM card and the second SIM card can reside in the same cell; when it is determined that the first SIM card and the second SIM card can reside in the same cell, one of the first SIM card and the second SIM card is controlled to initiate an idle state process, and the execution result of the SIM card that initiates the idle state process is sent to the SIM card that does not initiate the idle state process.

[0063] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0064] An embodiment of the present invention provides a terminal control method. Figure 3 FIG. 1 is a schematic diagram of an implementation flow of a control method for a terminal according to an embodiment of the present invention; Figure 3 As shown, the method includes:

[0065] Step 301: When the terminal activates the first SIM card and the second SIM card, a first target PLMN identifier of the first SIM card is obtained; and a second target PLMN identifier of the second SIM card is obtained;

[0066] Step 302: Based on the first target PLMN identifier and the second target PLMN identifier, determine whether the first SIM card and the second SIM card can reside in the same cell;

[0067] Step 303: when it is determined that the first SIM card and the second SIM card can reside in the same cell, control one of the first SIM card and the second SIM card to initiate an idle state process, and send the execution result of the SIM card that initiates the idle state process to the SIM card that does not initiate the idle state process.

[0068] Here, in actual application, in step 301, the terminal refers to a terminal that supports at least two SIM cards and can obtain network services. The terminal can enable two SIM cards of the at least two SIM cards at the same time, or can enable two SIM cards of the at least two SIM cards in sequence, represented by a first SIM card and a second SIM card respectively. The use priority of the first SIM card can be higher than the use priority of the second SIM card, for example, the first SIM card is the primary card and the second SIM card is the secondary card.

[0069] Here, in actual application, in step 301, the terminal can obtain the first target PLMN identifier of the first SIM card and the second target PLMN identifier of the second SIM card after power-on or restart. For example, after the terminal is powered on, when the first SIM card and the second SIM card are enabled, the first target PLMN identifier of the first SIM card is obtained, and the second target PLMN identifier of the second SIM card is obtained. Alternatively, when the terminal moves, the first target PLMN identifier of the first SIM card is obtained, and the second target PLMN identifier of the second SIM card is obtained. For example, when the terminal moves from cell A to cell B, after the first SIM card and the second SIM card are enabled in cell B, the first target PLMN identifier of the first SIM card is obtained, and the second target PLMN identifier of the second SIM card is obtained.

[0070] Here, in actual application, in step 302, it may be that after the terminal is powered on or restarted, in a scenario where two SIM cards are enabled at the same time or the second SIM card is enabled, it is determined whether the first SIM card and the second SIM card can reside in the same cell; it may also be that when the terminal moves, for example, from area A to area B, in a scenario where two SIM cards are enabled at the same time or the second SIM card is enabled, it is determined whether the first SIM card and the second SIM card can reside in the same cell.

[0071] Here, in actual application, in step 303, the idle state may mean that the terminal has not established a radio resource control (RRC, Radio Resource Control) connection with the network side.

[0072] Here, the terminal control method provided by the embodiment of the present invention may take effect when the terminal activates the second SIM card, or may take effect when the terminal activates two SIM cards at the same time.

[0073] The following describes in detail how to determine whether the first SIM card and the second SIM card can reside in the same cell in the embodiments of the present invention.

[0074] In the first case, it is determined whether the first SIM card and the second SIM card can reside in the same cell according to the operators to which the networks respectively used by the first SIM card and the second SIM card belong.

[0075] In actual application, when the terminal activates the first SIM card and the second SIM card, if the network used by the first SIM card and the network used by the second SIM card belong to the same operator, the first SIM card and the second SIM card can reside in the same cell; otherwise, the first SIM card and the second SIM card cannot reside in the same cell.

[0076] Based on this, in one embodiment, judging whether the first SIM card and the second SIM card can reside in the same cell based on the first target PLMN identifier and the second target PLMN identifier includes:

[0077] Using the HPLMN or EHPLMN identifier of the first SIM card as the first target PLMN identifier; and using the HPLMN or EHPLMN identifier of the second SIM card as the second target PLMN identifier;

[0078] When the first target PLMN identifier and the second target PLMN identifier are the same, it is determined that the first SIM card and the second SIM card can reside in the same cell.

[0079] Here, HPLMN refers to the network of the home operator, and the operator may be a mobile operator, a Unicom operator, a Telecom operator, etc. The HPLMN identifier may be obtained by combining MCC and MNC, wherein MCC may be represented by 3 digits and MNC may be represented by 2 digits.

[0080] For example, the HPLMN identifier stored in the first SIM card is obtained by combining MCC and MNC, assuming to be 46001, indicating that it belongs to the network of the mobile operator; the HPLMN identifier stored in the second SIM card is obtained by combining MCC and MNC, assuming to be 46002, indicating that it belongs to the network of the Unicom operator; since the HPLMN identifier stored in the first SIM card is different from the HPLMN identifier stored in the second SIM card, that is, when the networks used by the first SIM card and the second SIM card belong to different operator networks, the first SIM card and the second SIM card cannot reside in the same cell.

[0081] Here, in actual application, since the identifier composed of the mobile country code (MCC) and the mobile network code (MNC) in the international mobile subscriber identity (IMSI) of the first SIM card is the same as the HPLMN identifier of the first SIM card, the identifier composed of the MCC and MNC in the IMSI of the first SIM card can also be used as the first target PLMN identifier. Similarly, since the identifier composed of the MCC and MNC in the IMSI of the second SIM card is the same as the HPLMN identifier of the second SIM card, the identifier composed of the MCC and MNC in the IMSI of the second SIM card can also be used as the second target PLMN identifier.

[0082] For example, assume that the identifier obtained by combining the MCC and MNC in the IMSI stored in the first SIM card is 46001, indicating the network of the mobile operator; the identifier obtained by combining the MCC and MNC in the IMSI stored in the second SIM card is 46001, indicating the network of the mobile operator; since the HPLMN identifier stored in the first SIM card is the same as the HPLMN identifier stored in the second SIM card, that is, when the networks used by the first SIM card and the second SIM card belong to the same operator network, the first SIM card and the second SIM card can reside in the same cell.

[0083] Here, EHPLMN refers to the peer-to-peer public land mobile network added by the operator as the network is upgraded. The operator can refer to a mobile operator, a Unicom operator, a Telecom operator, etc. The EHPLMN identifier can be obtained by combining MCC and MNC, where MCC can be represented by 3 digits and MNC can be represented by 2 digits.

[0084] For example, the EHPLMN identifier stored in the first SIM card is obtained by combining MCC and MNC, assuming to be 46001, indicating the peer-to-peer public land mobile network of the mobile operator; the PLMN identifier stored in the second SIM card is obtained by combining MCC and MNC, assuming to be 46001, indicating the network of the mobile operator; since the EHPLMN identifier stored in the first SIM card is the same as the PLMN stored in the second SIM card, that is, when the networks used by the first SIM card and the second SIM card belong to the same operator network, the first SIM card and the second SIM card can reside in the same cell.

[0085] Here, in actual application, the PLMN identifier of the first SIM card can also be used as the first target PLMN identifier; and the EHPLMN identifier of the second SIM card can be used as the second target PLMN identifier; when the first target PLMN identifier and the second target PLMN identifier are the same, it is determined that the first SIM card and the second SIM card can reside in the same cell.

[0086] In one embodiment, if Figure 4a As shown, the process of determining whether the first SIM card and the second SIM card can reside in the same cell includes:

[0087] Step 1: Obtain the HPLMN identifier of the first SIM card and obtain the HPLMN identifier of the second SIM card;

[0088] Step 2: Compare the HPLMN identifier of the first SIM card with the HPLMN identifier of the second SIM card to obtain a comparison result;

[0089] Step 3: When the comparison result indicates that the HPLMN identifier of the first SIM card and the HPLMN identifier of the second SIM card are the same, it is determined that the first SIM card and the second SIM card can reside in the same cell.

[0090] In one embodiment, if Figure 4b As shown, the process of determining whether the first SIM card and the second SIM card can reside in the same cell includes:

[0091] Step 1: Obtain the EHPLMN identifier of the first SIM card, and obtain the EHPLMN identifier of the second SIM card;

[0092] Step 2: Compare the EHPLMN identifier of the first SIM card with the EHPLMN identifier of the second SIM card to obtain a comparison result;

[0093] Step 3: When the comparison result indicates that the EHPLMN identifier of the first SIM card is the same as the EHPLMN identifier of the second SIM card, it is determined that the first SIM card and the second SIM card can reside in the same cell.

[0094] Here, in the scenario where the terminal is turned on or restarted, judging whether the first SIM card and the second SIM card can reside in the same cell has the following advantages:

[0095] When the terminal is powered on or restarted, after the first SIM card and the second SIM card are enabled, if the network used by the first SIM card and the network used by the second SIM card belong to the same operator, the first SIM card and the second SIM card can reside in the same cell. In this way, one of the two SIM cards can be controlled to initiate an idle state process, and the execution result of the SIM card that initiates the idle state process is synchronized to the SIM card that does not initiate the idle state process, thereby avoiding the problem of increased terminal power consumption caused by competition for the same physical unit due to two SIM cards initiating the same idle state process in the related art, thereby reducing the power consumption of the terminal.

[0096] In the second case, when one of the first SIM card and the second SIM card is in roaming state, and the SIM card in roaming state cannot obtain EPLMN, and the SIM card in non-roaming state can obtain EPLMN, it is determined whether the first SIM card and the second SIM card can reside in the same cell.

[0097] Specifically, one of the HPLMN and the EHPLMN of the first SIM card may be compared with one of the HPLMN and the EHPLMN of the second SIM card to obtain a comparison result; when the comparison result indicates that one of the HPLMN and the EHPLMN of the first SIM card is different from one of the HPLMN and the EHPLMN of the second SIM card, if the first SIM card is in a roaming state and the second SIM card is in a non-roaming state, and the first SIM card in the roaming state fails to obtain the EPLMN, and the second SIM card in the non-roaming state can obtain the EPLMN, then, based on the EHPLMN or the HPLMN of the first SIM card in the roaming state and the EPLMN of the second SIM card in the non-roaming state, it is determined whether the first SIM card and the second SIM card can reside in the same cell.

[0098] Here, the failure of the first SIM card in roaming state to obtain EPLMN may mean that when the terminal moves to a country different from the country corresponding to the MCC in the first SIM card and is turned on, the first SIM card fails to obtain EPLMN. It should be noted that after the terminal is turned on for a period of time, the first SIM card can obtain EPLMN. If the first SIM card successfully registers on the network corresponding to the EPLMN, the first SIM card can use the EPLMN. The ability of the second SIM card in non-roaming state to obtain EPLMN may mean that after the terminal is turned on for a period of time, the second SIM card can obtain EPLMN.

[0099] Among them, when the country corresponding to the MCC in the SIM card is different from the country to which the terminal currently belongs, it is determined that the SIM card is in roaming state; when the country corresponding to the MCC in the SIM card is the same as the country to which the terminal currently belongs, it is determined that the SIM card is in non-roaming state.

[0100] In actual application, when the terminal moves, the country to which the current area of ​​the terminal after the movement belongs can be the country to which the registration area of ​​one of the two SIM cards belongs. For example, the terminal moves from area 1 to area 2, and the country to which area 2 belongs is China. If the country to which the first SIM card is registered belongs to is the United States, and the country to which the second SIM card is registered belongs to is China, then the first SIM card is in a roaming state, and the second SIM card is in a non-roaming state. If the second SIM card can obtain EPLMN, but the first SIM card fails to obtain EPLMN, then the HPLMN identifier or EHPLMN identifier of the first SIM card in a roaming state can be compared with the EPLMN identifier of the second SIM card in a non-roaming state, and based on the comparison result, it is determined whether the first SIM card and the second SIM card can reside in the same cell.

[0101] Based on this, in one embodiment, judging whether the first SIM card and the second SIM card can reside in the same cell based on the first target PLMN identifier and the second target PLMN identifier includes:

[0102] Determine whether the first SIM card is in roaming state; and determine whether the second SIM card is in roaming state;

[0103] When it is determined that the first SIM card is in a roaming state and the second SIM card is in a non-roaming state, using the EHPLMN or HPLMN of the first SIM card as the first target PLMN identifier, and using the EPLMN of the second SIM card as the second target PLMN identifier;

[0104] When the first target PLMN identifier and the second target PLMN identifier are the same, it is determined that the first SIM card and the second SIM card can reside in the same cell.

[0105] In one embodiment, if Figure 5 As shown, the process of determining whether the first SIM card and the second SIM card can reside in the same cell includes:

[0106] Step 1: Determine whether the first SIM card is in roaming state; and determine whether the second SIM card is in roaming state;

[0107] Here, one of the HPLMN and the EHPLMN of the first SIM card may be compared with one of the HPLMN and the EHPLMN of the second SIM card to obtain a comparison result; when the comparison result indicates that one of the HPLMN and the EHPLMN of the first SIM card is different from one of the HPLMN and the EHPLMN of the second SIM card, it is determined whether the first SIM card is in a roaming state; and it is determined whether the second SIM card is in a roaming state.

[0108] Step 2: When it is determined that the first SIM card is in a roaming state and the second SIM card is in a non-roaming state, if the first SIM card fails to obtain the EPLMN and the second SIM card can obtain the EPLMN, the EHPLMN or HPLMN of the first SIM card is used as the first target PLMN identifier, and the EPLMN of the second SIM card is used as the second target PLMN identifier;

[0109] For example, the terminal moves from area 1 to area 2, and area 2 belongs to China. If the area where the first SIM card is registered belongs to the United States and the area where the second SIM card is registered belongs to China, the first SIM card is in a roaming state and the second SIM card is in a non-roaming state. If the first SIM card fails to obtain the EPLMN and the second SIM card can obtain the EPLMN, then the HPLMN identifier or EHPLMN identifier of the first SIM card in a roaming state can be compared with the EPLMN identifier of the second SIM card in a non-roaming state, and based on the comparison result, it is determined whether the first SIM card and the second SIM card can reside in the same cell.

[0110] Step 3: When the first target PLMN identifier and the second target PLMN identifier are the same, it is determined that the first SIM card and the second SIM card can reside in the same cell.

[0111] Here, in the scenario where the terminal moves, judging whether the first SIM card and the second SIM card can reside in the same cell has the following advantages:

[0112] When the terminal moves and the first SIM card and the second SIM card are activated at the same time, if the first SIM card is in a roaming state and the second SIM card is in a non-roaming state, when the EHPLMN or HPLMN of the SIM card in the roaming state is the same as the EPLMN of the SIM card in the non-roaming state, the first SIM card and the second SIM card can reside in the same cell. In this way, one of the two SIM cards can be controlled to initiate an idle state process, and the execution result of the SIM card that initiates the idle state process is synchronized to the SIM card that does not initiate the idle state process, thereby avoiding the problem of increased terminal power consumption caused by two SIM cards initiating the same idle state process in the related art, thereby reducing the power consumption of the terminal.

[0113] In the third case, when both the first SIM card and the second SIM card are in roaming state and both SIM cards can obtain EPLMN, it is determined whether the first SIM card and the second SIM card can reside in the same cell.

[0114] Specifically, one of the HPLMN and the EHPLMN of the first SIM card may be compared with one of the HPLMN and the EHPLMN of the second SIM card to obtain a comparison result; when the comparison result indicates that one of the HPLMN and the EHPLMN of the first SIM card is different from one of the HPLMN and the EHPLMN of the second SIM card, if both the first SIM card and the second SIM card are in roaming state, and both the first SIM card and the second SIM card can obtain and use the EPLMN, then, based on the EPLMNs of the two SIM cards, it is determined whether the first SIM card and the second SIM card can reside in the same cell.

[0115] Here, both the first SIM card and the second SIM card can obtain and use the EPLMN, which may mean that after the terminal is turned on for a period of time, both the first SIM card and the second SIM card can obtain the EPLMN; if the first SIM card and the second SIM card are successfully registered on the networks corresponding to their respective EPLMNs, both the first SIM card and the second SIM card can use the EPLMN.

[0116] Among them, when the country corresponding to the MCC in the SIM card is different from the country to which the terminal currently belongs, it is determined that the SIM card is in roaming state; when the country corresponding to the MCC in the SIM card is the same as the country to which the terminal currently belongs, it is determined that the SIM card is in non-roaming state.

[0117] In actual application, when the terminal moves, the country to which the current area of ​​the terminal after the movement belongs may not be the country to which the registration area of ​​any of the two SIM cards belongs. For example, the terminal moves from area 1 to area 3, and the country to which area 3 belongs is China. If the country to which the first SIM card is registered belongs to is Japan, and the country to which the second SIM card is registered belongs to is the United States, then the first SIM card is in roaming state, and the second SIM card is in roaming state. When both SIM cards can obtain and use EPLMN, the EPLMN identifier of the first SIM card in roaming state and the EPLMN identifier of the second SIM card in roaming state can be compared with the VPLMN identifier of the roaming area, and based on the comparison result, it is determined whether the first SIM card and the second SIM card can reside in the same cell.

[0118] Based on this, in one embodiment, judging whether the first SIM card and the second SIM card can reside in the same cell based on the first target PLMN identifier and the second target PLMN identifier includes:

[0119] Determine whether the first SIM card is in roaming state; and determine whether the second SIM card is in roaming state;

[0120] When it is determined that the first SIM card is in a roaming state and the second SIM card is in a roaming state, using the EPLMN of the first SIM card as the first target PLMN identifier, and using the EPLMN of the second SIM card as the second target PLMN identifier;

[0121] When the first target PLMN identifier is the same as the VPLMN of the roaming area and the second target PLMN identifier is the same as the VPLMN of the roaming area, it is determined that the first SIM card and the second SIM card can reside in the same cell.

[0122] In one embodiment, if Figure 6 As shown, the process of determining whether the first SIM card and the second SIM card can reside in the same cell includes:

[0123] Step 1: Determine whether the first SIM card is in roaming state; and determine whether the second SIM card is in roaming state;

[0124] Here, one of the HPLMN and the EHPLMN of the first SIM card may be compared with one of the HPLMN and the EHPLMN of the second SIM card to obtain a comparison result; when the comparison result indicates that one of the HPLMN and the EHPLMN of the first SIM card is different from one of the HPLMN and the EHPLMN of the second SIM card, it is determined whether the first SIM card is in a roaming state; and it is determined whether the second SIM card is in a roaming state.

[0125] Step 2: When it is determined that the first SIM card is in a roaming state and the second SIM card is in a roaming state, if both SIM cards can obtain and use the EPLMN, the EPLMN of the first SIM card is used as the first target PLMN identifier, and the EPLMN of the second SIM card is used as the second target PLMN identifier;

[0126] For example, the terminal moves from area 1 to area 3, and area 3 belongs to China. If the area where the first SIM card is registered belongs to Japan and the area where the second SIM card is registered belongs to the United States, then both SIM cards are in roaming state. If both SIM cards can obtain and use EPLMN, the EPLMN identifier of the first SIM card in roaming state and the EPLMN identifier of the second SIM card in roaming state can be compared with the VPLMN identifier of the roaming location, and based on the comparison result, it is determined whether the first SIM card and the second SIM card can reside in the same cell.

[0127] Step 3: When the first target PLMN identifier is the same as the VPLMN identifier of the roaming location and the second target PLMN identifier is the same as the VPLMN identifier of the roaming location, it is determined that the first SIM card and the second SIM card can reside in the same cell.

[0128] Here, in the scenario where the terminal moves, judging whether the first SIM card and the second SIM card can reside in the same cell has the following advantages:

[0129] When the terminal moves and the first SIM card and the second SIM card are activated at the same time, if the first SIM card and the second SIM card are both in roaming state, when the EPLMN of the two SIM cards in roaming state are the same as the VPLMN of the roaming location and the EPLMN of the SIM cards in roaming state are the same, the first SIM card and the second SIM card can reside in the same cell. In this way, one of the two SIM cards can be controlled to initiate an idle state process subsequently, and the execution result of the SIM card that initiates the idle state process is synchronized to the SIM card that does not initiate the idle state process, thereby avoiding the problem of increased terminal power consumption caused by two SIM cards initiating the same idle state process in the related art, thereby reducing the power consumption of the terminal.

[0130] In actual application, before the terminal activates the first SIM card and the second SIM card, the first SIM card may be activated first; wherein, the first SIM card may be the SIM card with the highest priority. Therefore, when the terminal moves, the first SIM card activated first may have completed the cell stay, so it can be determined whether the cell where the first SIM card stays belongs to the shared network cell; if the cell where the first SIM card stays does not belong to the shared network cell, it is determined whether the current area after the terminal moves is the same as the registration area of ​​the two SIM cards.

[0131] Based on this, in one embodiment, the determining whether the first SIM card is in a roaming state; and determining whether the second SIM card is in a roaming state include:

[0132] When one of the HPLMN and the EHPLMN of the first SIM card is different from one of the HPLMN and the EHPLMN of the second SIM card, controlling the first SIM card to complete cell camping;

[0133] When the first SIM card completes the cell camping, determining whether the cell where the first SIM card camps is a shared network cell;

[0134] When it is determined that the cell where the first SIM card resides is not a shared network cell, it is determined whether the first SIM card is in a roaming state; and it is determined whether the second SIM card is in a roaming state.

[0135] Here, the shared network cell refers to a cell in which multiple operators share a network. For example, if cell A can be covered by the network of both the mobile operator and the Unicom operator, then cell A belongs to a shared network cell.

[0136] In actual application, after the terminal is turned on or restarted, when the HPLMN identifier of the first SIM card is different from the HPLMN identifier of the second SIM card and the EHPLMN identifier of the first SIM card is different from the PLMN identifier of the second SIM card, the first SIM card with a high priority can be controlled to complete the cell camping.

[0137] In one embodiment, if Figure 7 As shown, the process of determining whether the first SIM card and the second SIM card are in roaming state is described, including:

[0138] Step 1: After the terminal is powered on or restarted, one of the HPLMN and the EHPLMN of the first SIM card is compared with one of the HPLMN and the EHPLMN of the second SIM card to obtain a comparison result.

[0139] Step 2: When the comparison result indicates that one of the HPLMN and the EHPLMN of the first SIM card is different from one of the HPLMN and the EHPLMN of the second SIM card, control the use of the first SIM card with a higher priority to complete the cell camping.

[0140] Step 3: Determine whether the cell where the first SIM card resides is a shared network cell; when it is determined that the cell where the first SIM card resides is not a shared network cell, execute step 4;

[0141] Step 4: Determine whether the first SIM card is in roaming state; and determine whether the second SIM card is in roaming state; when it is determined that the first SIM card is in roaming state and the second SIM card is in non-roaming state, execute step 5; when it is determined that the first SIM card is in roaming state and the second SIM card is in roaming state, execute step 6;

[0142] Step 5: When the EHPLMN or HPLMN identifier of the first SIM card is the same as the EPLMN identifier of the second SIM card, it is determined that the first SIM card and the second SIM card can reside in the same cell;

[0143] Here, if the first SIM card fails to obtain EPLMN and the second SIM card can obtain EPLMN, the EHPLMN or HPLM of the first SIM card is used as the first target PLMN identifier, and the EPLMN of the second SIM card is used as the second target PLMN identifier; based on the first target PLMN identifier and the second target PLMN identifier, it is determined whether the first SIM card and the second SIM card can reside in the same cell.

[0144] Step 6: When the EPLMN identifiers of the first SIM card and the second SIM card are the same as the VPLMN identifier of the roaming location, it is determined that the first SIM card and the second SIM card can reside in the same cell.

[0145] Here, if both SIM cards can obtain and use EPLMN, the EPLMN of the first SIM card is used as the first target PLMN identifier, and the EPLMN of the second SIM card is used as the second target PLMN identifier; based on the first target PLMN identifier and the second target PLMN identifier, it is determined whether the first SIM card and the second SIM card can reside in the same cell.

[0146] Here, in the scenario where one of the two SIM cards completes the cell residency, judging whether the first SIM card and the second SIM card can reside in the same cell has the following advantages:

[0147] When the terminal is powered on or restarted, and the first SIM card and the second SIM card are enabled at the same time, if the first SIM card completes the cell residency, then when the cell where the first SIM card resides is not a shared network cell, based on the roaming status of the two SIM cards, and the first target PLMN identifier and the second target PLMN identifier, it is determined whether the first SIM card and the second SIM card can reside in the same cell. In this way, the idle state process executed by the SIM card that has completed the cell residency can be synchronously sent to the SIM card that has not completed the cell residency, thereby avoiding the problem of increased terminal power consumption caused by the two SIM cards initiating the same idle state process in the related art, thereby reducing the power consumption of the terminal.

[0148] In a fourth situation, when both the first SIM card and the second SIM card are in a non-roaming state, it is determined whether the first SIM card and the second SIM card can reside in the same cell.

[0149] Specifically, since the first SIM card and the second SIM card are in a non-roaming state, the two SIM cards do not need to be registered on the networks corresponding to their respective EPLMNs, that is, both SIM cards cannot use the EPLMN, so that one of the HPLMN and the EHPLMN of the first SIM card can be compared with one of the HPLMN and the EHPLMN of the second SIM card to obtain a comparison result; when the comparison result indicates that one of the HPLMN and the EHPLMN of the first SIM card is the same as one of the HPLMN and the EHPLMN of the second SIM card, it is determined that the first SIM card and the second SIM card can reside in the same cell.

[0150] Among them, when the country corresponding to the MCC in the SIM card is different from the country to which the terminal currently belongs, it is determined that the SIM card is in roaming state; when the country corresponding to the MCC in the SIM card is the same as the country to which the terminal currently belongs, it is determined that the SIM card is in non-roaming state.

[0151] In the fifth case, when the cell where the first SIM card resides is a shared network cell, it is determined whether the first SIM card and the second SIM card can reside in the same cell according to the PLMN list broadcasted by the shared network cell.

[0152] In actual application, when the terminal is turned on or restarted, and the first SIM card and the second SIM card are enabled at the same time, if the first SIM card completes the cell residency, then when the cell where the first SIM card resides is a shared network cell, at least two PLMN lists broadcast by the shared network cell can be obtained. When a PLMN list in the at least two PLMN lists contains the first target PLMN identifier and the second target PLMN identifier, it is determined that the first SIM card and the second SIM card can reside in the same cell.

[0153] Based on this, in one embodiment, judging whether the first SIM card and the second SIM card can reside in the same cell based on the first target PLMN identifier and the second target PLMN identifier includes:

[0154] Obtain at least two PLMN lists;

[0155] For each PLMN list in the at least two PLMN lists, determining whether the corresponding PLMN list includes the first target PLMN identifier and the second target PLMN identifier;

[0156] When the corresponding PLMN list includes the first target PLMN identifier and the second target PLMN identifier, it is determined that the first SIM card and the second SIM card can reside in the same cell.

[0157] Among them, one of the EPLMN, EHPLMN, and HPLMN identifiers of the first SIM card can be used as the first target PLMN identifier, and one of the EPLMN, EHPLMN, and HPLMN identifiers of the second SIM card can be used as the second target PLMN identifier.

[0158] Here, the at least two PLMN lists may refer to at least two PLMN lists broadcast by a certain cell, and the cell may be a shared network cell or may not be a shared network cell.

[0159] Here, the obtaining of at least two PLMN lists includes: when the first SIM card completes cell residency, determining whether the cell where the first SIM card resides is a shared network cell; when it is determined that the cell where the first SIM card resides is a shared network cell, obtaining at least two PLMN lists broadcast by the shared network cell.

[0160] In one embodiment, if Figure 8 As shown, the process of determining whether the first SIM card and the second SIM card are in roaming state is described, including:

[0161] Step 1: After the terminal is powered on or restarted, one of the HPLMN and the EHPLMN of the first SIM card is compared with one of the HPLMN and the EHPLMN of the second SIM card to obtain a comparison result.

[0162] Step 2: When the comparison result indicates that one of the HPLMN and the EHPLMN of the first SIM card is different from one of the HPLMN and the EHPLMN of the second SIM card, control the use of the first SIM card with a higher priority to complete the cell camping.

[0163] Step 3: Determine whether the cell where the first SIM card resides is a shared network cell; when it is determined that the cell where the first SIM card resides is a shared network cell, execute step 4;

[0164] Step 4: Obtain at least two PLMN lists broadcast by the cell where the first SIM card resides; for each of the at least two PLMN lists, determine whether the corresponding PLMN list contains the first target PLMN identifier and the second target PLMN identifier; when the corresponding PLMN list contains the first target PLMN identifier and the second target PLMN identifier, execute step 5;

[0165] Here, one of the EPLMN, EHPLMN, and HPLMN of the first SIM card may be used as the first target PLMN identifier, and one of the EPLMN, EHPLMN, and HPLMN of the second SIM card may be used as the second target PLMN identifier.

[0166] Step 5: Determine whether the first SIM card and the second SIM card can reside in the same cell.

[0167] Here, in the scenario where one of the two SIM cards completes the cell residency, judging whether the first SIM card and the second SIM card can reside in the same cell has the following advantages:

[0168] When the terminal is powered on or restarted, and the first SIM card and the second SIM card are enabled at the same time, if the first SIM card completes the cell residency, then when the cell where the first SIM card resides is a shared network cell, based on at least two PLMN lists broadcasted by the cell where the first SIM card resides, and the first target PLMN identifier and the second target PLMN identifier, it is determined whether the first SIM card and the second SIM card can reside in the same cell. In this way, the execution result of the idle state process initiated by the SIM card that has completed the cell residency can be synchronously sent to the SIM card that has not completed the cell residency, thereby avoiding the problem of increased terminal power consumption caused by two SIM cards initiating the same idle state process in the related art, thereby reducing the power consumption of the terminal.

[0169] In actual application, when it is determined that the first SIM card and the second SIM card can reside in the same cell, one of the first SIM card and the second SIM card can complete the cell residency, for example, the first SIM card with a higher priority has completed the cell residency, and the second SIM card has not completed the cell residency. In this way, the first SIM card can synchronize the execution result of the idle state process initiated in the resided cell to the second SIM card, so that the second SIM card does not need to repeatedly initiate the idle state process in the cell where the first SIM card has resided.

[0170] In one embodiment, the determining of the SIM card among the first SIM card and the second SIM card that initiates the idle state process includes:

[0171] When it is determined that one of the first SIM card and the second SIM card has completed the cell camping, controlling the SIM card that has completed the cell camping among the first SIM card and the second SIM card to initiate an idle state process;

[0172] When it is determined that both the first SIM card and the second SIM card have not completed the cell camping, one of the first SIM card and the second SIM card is controlled to initiate an idle state process.

[0173] Here, when it is determined that both the first SIM card and the second SIM card have not completed the cell camping, the first SIM card and the second SIM card can be controlled to use a SIM card with a higher priority to initiate an idle state process; or, any one of the first SIM card and the second SIM card can be controlled to initiate an idle state process.

[0174] Here, the idle state process may include: PLMN search, cell selection and reselection, measurement, system message acquisition, and ETWS\CMAS reception.

[0175] Here, in the scenario where the terminal is turned on or restarted or moved, when it is determined that the two SIM cards enabled by the terminal can reside in the same service cell, the idle state process of the protocol stack instance of one of the two SIM cards interacting with the physical unit is canceled, thereby reducing the conflict caused by the idle state process initiated by the protocol stack instances corresponding to the two SIM cards for competing for the same physical unit. By reducing the activity of the physical unit, the standby time of the terminal is extended, so that the terminal can achieve the purpose of saving more power.

[0176] In actual application, when the first SIM card and the second SIM card can reside in the same cell, after controlling one of the first SIM card and the second SIM card to initiate an idle state process and sending the execution result of the SIM card that initiates the idle state process to the SIM card that does not initiate the idle state process, the first SIM card and the second SIM card can simultaneously establish a connection with the network side and perform data transmission.

[0177] Based on this, in one embodiment, after controlling one of the first SIM card and the second SIM card to initiate an idle state process and sending the execution result of the SIM card that initiated the idle state process to the SIM card that did not initiate the idle state process, the method further includes:

[0178] Determine whether the first SIM card and the second SIM card are connected to the network side;

[0179] When it is determined that both the first SIM card and the second SIM card are connected to the network side, the first SIM card and the second SIM card are controlled to use the same physical unit to perform data transmission with the network side on different resources. The resources may refer to time domain resources, frequency domain resources, etc.

[0180] Here, in the related art, by combining the data between the two SIM cards and the network side, and using the same physical unit to send the combined data to the network side, this method will cause competition for the same physical unit, thereby increasing the power consumption of the terminal; while in the embodiment of the present invention, the first SIM card and the second SIM card can use the same physical unit to perform data transmission with the network side on different resources. For example, the two SIM cards perform data transmission with the network side on time slot 1 and time slot 2, respectively. Since the data transmitted between the two SIM cards and the network side can be transmitted separately, the competition for the same physical unit can be reduced, thereby reducing the power consumption of the terminal, and at the same time, the data transmission efficiency can be improved.

[0181] By adopting the technical solution of the embodiment of the present invention, when the terminal uses two SIM cards at the same time, it is determined whether the two SIM cards can reside in the same cell; when it is determined that the two SIM cards can reside in the same cell, one of the two SIM cards is controlled to initiate an idle state process, and the execution result of the SIM card that initiates the idle state process is sent to the SIM card that does not initiate the idle state process, thereby avoiding the problem in the related art that the two SIM cards need to initiate the same idle state process, thereby competing for the same physical unit and causing the power consumption of the terminal to increase, thereby saving the power consumption of the terminal and achieving the purpose of power saving.

[0182] In order to implement the terminal control method of the embodiment of the present invention, the embodiment of the present invention further provides a terminal control device, which is arranged on the terminal. Fig. 9 FIG. 1 is a schematic diagram of the structure of the control device of the terminal according to an embodiment of the present invention; Fig. 9 As shown, the device comprises:

[0183] An acquiring unit 91 is configured to acquire a first target PLMN identifier of the first SIM card when the terminal activates the first SIM card and the second SIM card; and acquire a second target PLMN identifier of the second SIM card;

[0184] The processing unit 92 is used to determine whether the first SIM card and the second SIM card can reside in the same cell based on the first target PLMN identifier and the second target PLMN identifier; when it is determined that the first SIM card and the second SIM card can reside in the same cell, control one of the first SIM card and the second SIM card to initiate an idle state process, and send the execution result of the SIM card that initiates the idle state process to the SIM card that does not initiate the idle state process.

[0185] In one embodiment, the processing unit 92 is specifically configured to:

[0186] Using the HPLMN or EHPLMN identifier of the first SIM card as the first target PLMN identifier; and using the HPLMN or EHPLMN identifier of the second SIM card as the second target PLMN identifier;

[0187] When the first target PLMN identifier and the second target PLMN identifier are the same, it is determined that the first SIM card and the second SIM card can reside in the same cell.

[0188] In one embodiment, the processing unit 92 is specifically used to: determine whether the first SIM card is in a roaming state; and determine whether the second SIM card is in a roaming state;

[0189] When it is determined that the first SIM card is in a roaming state and the second SIM card is in a non-roaming state, if the first SIM card fails to obtain the EPLMN and the second SIM card can obtain the EPLMN, the EHPLMN or HPLMN of the first SIM card is used as the first target PLMN identifier, and the EPLMN of the second SIM card is used as the second target PLMN identifier;

[0190] When the first target PLMN identifier and the second target PLMN identifier are the same, it is determined that the first SIM card and the second SIM card can reside in the same cell.

[0191] In one embodiment, the processing unit 92 is specifically configured to:

[0192] Determine whether the first SIM card is in roaming state; and determine whether the second SIM card is in roaming state;

[0193] When it is determined that the first SIM card is in a roaming state and the second SIM card is in a roaming state, if both the first SIM card and the second SIM card can obtain and use the EPLMN, the EPLMN of the first SIM card is used as the first target PLMN identifier, and the EPLMN of the second SIM card is used as the second target PLMN identifier;

[0194] When the first target PLMN identifier is the same as the VPLMN of the roaming area and the second target PLMN identifier is the same as the VPLMN of the roaming area, it is determined that the first SIM card and the second SIM card can reside in the same cell.

[0195] In one embodiment, the processing unit 92 is specifically configured to:

[0196] When one of the HPLMN and EHPLMN of the first SIM card is different from one of the HPLMN and EHPLMN of the second SIM card, control the first SIM card to complete cell residence; determine whether the cell where the first SIM card resides is a shared network cell; when it is determined that the cell where the first SIM card resides is not a shared network cell, determine whether the first SIM card is in a roaming state; and determine whether the second SIM card is in a roaming state.

[0197] In one embodiment, the processing unit 92 is specifically configured to:

[0198] Obtain at least two PLMN lists;

[0199] For each PLMN list in the at least two PLMN lists, determining whether the corresponding PLMN list includes the first target PLMN identifier and the second target PLMN identifier;

[0200] When the corresponding PLMN list includes the first target PLMN identifier and the second target PLMN identifier, it is determined that the first SIM card and the second SIM card can reside in the same cell.

[0201] In one embodiment, the processing unit 92 is specifically configured to:

[0202] When one of the HPLMN and the EHPLMN of the first SIM card is different from one of the HPLMN and the EHPLMN of the second SIM card, controlling the first SIM card to complete cell camping;

[0203] When the first SIM card completes the cell camping, determining whether the cell where the first SIM card camps is a shared network cell;

[0204] When it is determined that the cell where the first SIM card resides is a shared network cell, at least two PLMN lists broadcasted by the shared network cell are acquired.

[0205] In one embodiment, the processing unit 92 is specifically configured to:

[0206] When it is determined that one of the first SIM card and the second SIM card has completed the cell camping, controlling the SIM card that has completed the cell camping among the first SIM card and the second SIM card to initiate an idle state process;

[0207] When it is determined that both the first SIM card and the second SIM card have not completed the cell camping, one of the first SIM card and the second SIM card is controlled to initiate an idle state process.

[0208] In one embodiment, the processing unit 92 is further used to determine whether the first SIM card and the second SIM card have established a connection with the network side; when it is determined that the first SIM card and the second SIM card have established a connection with the network side, control the first SIM card and the second SIM card to use the same physical unit to perform data transmission with the network side on different resources.

[0209] In actual application, the acquisition unit 91 can be implemented by the communication interface in the device; the processing unit 92 can be implemented by the processor in the device; the processor can be a central processing unit (CPU, Central Processing Unit), a digital signal processor (DSP, Digital Signal Processor), a microcontroller unit (MCU, Microcontroller Unit) or a programmable gate array (FPGA, Field-Programmable Gate Array).

[0210] It should be noted that: when the device provided in the above embodiment controls the terminal, only the division of the above program modules is used as an example. In actual application, the above processing can be assigned to different program modules as needed, that is, the internal structure of the terminal is divided into different program modules to complete all or part of the processing described above. In addition, the device provided in the above embodiment is the same concept as the terminal control method embodiment. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0211] Based on the hardware implementation of the above device, an embodiment of the present invention further provides a terminal, Fig.10 FIG. 1 is a schematic diagram of the hardware structure of a terminal according to an embodiment of the present invention. Fig.10 As shown, the terminal 100 includes a memory 103, a processor 102, and a computer program stored in the memory 103 and executable on the processor 102; when the processor 102 executes the program, the method provided by one or more of the above technical solutions is implemented.

[0212] It should be noted that the specific steps implemented when the processor 102 executes the program have been described in detail above and will not be repeated here.

[0213] It is understood that the terminal 100 also includes a communication interface 101, and the communication interface 101 is used to exchange information with other devices; at the same time, the various components in the terminal 100 are coupled together through a bus system 104. It is understood that the bus system 104 is configured to achieve connection and communication between these components. In addition to the data bus, the bus system 104 also includes a power bus, a control bus, and a status signal bus.

[0214] It can be understood that the memory 103 in this embodiment can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memories described in the embodiments of the present invention are intended to include, but are not limited to, these and any other suitable types of memories.

[0215] The method disclosed in the above embodiment of the present invention can be applied to the processor 102, or implemented by the processor 102. The processor 102 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 102 or the instruction in the form of software. The above processor 102 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 102 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiment of the present invention. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor can be combined to execute. The software module can be located in a storage medium, which is located in a memory. The processor 102 reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0216] The embodiment of the present invention further provides a storage medium, specifically a computer storage medium, more specifically a computer readable storage medium, on which computer instructions, namely a computer program, are stored, and when the computer instructions are executed by a processor, the method provided by one or more of the above technical solutions is implemented.

[0217] In the several embodiments provided by the present invention, it should be understood that the disclosed methods and intelligent devices can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0218] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0219] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0220] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium, which, when executed, executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, disks or optical disks.

[0221] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

[0222] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0223] In addition, the technical solutions described in the embodiments of the present invention can be arbitrarily combined without conflict.

[0224] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A terminal control method, It is characterized in that The method comprises: When the terminal activates the first subscriber identity module SIM card and the second SIM card, obtaining a first target public land mobile network PLMN identifier of the first SIM card; and obtaining a second target PLMN identifier of the second SIM card; Based on the first target PLMN identifier and the second target PLMN identifier, determining whether the first SIM card and the second SIM card can reside in the same cell; When it is determined that the first SIM card and the second SIM card can reside in the same cell, controlling one of the first SIM card and the second SIM card to initiate an idle state process, and sending an execution result of the SIM card that initiates the idle state process to the SIM card that does not initiate the idle state process; The determining, based on the first target PLMN identifier and the second target PLMN identifier, whether the first SIM card and the second SIM card can reside in the same cell includes: Determine whether the first SIM card is in roaming state; and determine whether the second SIM card is in roaming state; When it is determined that the first SIM card is in a roaming state and the second SIM card is in a non-roaming state, if the first SIM card fails to obtain an equivalent public land mobile network EPLMN and the second SIM card can obtain an EPLMN, the equivalent home public land mobile network EHPLMN or the home public land mobile network HPLMN of the first SIM card is used as the first target PLMN identifier, and the EPLMN of the second SIM card is used as the second target PLMN identifier; When the first target PLMN identifier and the second target PLMN identifier are the same, it is determined that the first SIM card and the second SIM card can reside in the same cell.

2. The method according to claim 1, It is characterized in that The determining, based on the first target PLMN identifier and the second target PLMN identifier, whether the first SIM card and the second SIM card can reside in the same cell includes: Using the HPLMN identifier or EHPLMN identifier of the first SIM card as the first target PLMN identifier; and using the HPLMN identifier or EHPLMN identifier of the second SIM card as the second target PLMN identifier; When the first target PLMN identifier and the second target PLMN identifier are the same, it is determined that the first SIM card and the second SIM card can reside in the same cell.

3. The method according to claim 1, It is characterized in that The determining, based on the first target PLMN identifier and the second target PLMN identifier, whether the first SIM card and the second SIM card can reside in the same cell includes: Determine whether the first SIM card is in roaming state; and determine whether the second SIM card is in roaming state; When it is determined that the first SIM card is in a roaming state and the second SIM card is in a roaming state, if both the first SIM card and the second SIM card can obtain and use the EPLMN, the EPLMN of the first SIM card is used as the first target PLMN identifier, and the EPLMN of the second SIM card is used as the second target PLMN identifier; When the first target PLMN identifier is the same as a visited public land mobile network VPLMN of the roaming area and the second target PLMN identifier is the same as the VPLMN of the roaming area, it is determined that the first SIM card and the second SIM card can reside in the same cell.

4. The method according to claim 1 or 3, It is characterized in that determining whether the first SIM card is in roaming state; And determining whether the second SIM card is in roaming state, including: When one of the HPLMN and the EHPLMN of the first SIM card is different from one of the HPLMN and the EHPLMN of the second SIM card, controlling the first SIM card to complete cell camping; Determining whether the cell where the first SIM card resides is a shared network cell; When it is determined that the cell where the first SIM card resides is not a shared network cell, it is determined whether the first SIM card is in a roaming state; and it is determined whether the second SIM card is in a roaming state.

5. The method according to claim 1, It is characterized in that The determining, based on the first target PLMN identifier and the second target PLMN identifier, whether the first SIM card and the second SIM card can reside in the same cell includes: When it is determined that the cell where the first SIM card resides is a shared network cell, obtaining at least two PLMN lists broadcasted by the shared network cell; For each PLMN list in the at least two PLMN lists, determining whether the corresponding PLMN list includes the first target PLMN identifier and the second target PLMN identifier; When the corresponding PLMN list includes the first target PLMN identifier and the second target PLMN identifier, it is determined that the first SIM card and the second SIM card can reside in the same cell.

6. The method according to claim 5, It is characterized in that The acquiring of at least two PLMN lists comprises: When one of the HPLMN and the EHPLMN of the first SIM card is different from one of the HPLMN and the EHPLMN of the second SIM card, controlling the first SIM card to complete cell camping; Determining whether the cell where the first SIM card resides is a shared network cell; When it is determined that the cell where the first SIM card resides is a shared network cell, at least two PLMN lists broadcasted by the shared network cell are acquired.

7. The method according to any one of claims 1 to 3, 5 and 6, It is characterized in that The controlling one of the first SIM card and the second SIM card to initiate an idle state process includes: When it is determined that one of the first SIM card and the second SIM card has completed the cell camping, controlling the SIM card that has completed the cell camping among the first SIM card and the second SIM card to initiate an idle state process; When it is determined that both the first SIM card and the second SIM card have not completed the cell camping, one of the first SIM card and the second SIM card is controlled to initiate an idle state process.

8. The method according to any one of claims 1 to 3, 5 and 6, It is characterized in that After controlling one of the first SIM card and the second SIM card to initiate an idle state process, and sending the execution result of the SIM card that initiated the idle state process to the SIM card that did not initiate the idle state process, the method further includes: Determine whether the first SIM card and the second SIM card are connected to the network side; When it is determined that both the first SIM card and the second SIM card have established connections with the network side, the first SIM card and the second SIM card are controlled to use the same physical unit to perform data transmission with the network side on different resources.

9. A control device for a terminal, It is characterized in that include: an acquiring unit, configured to acquire a first target PLMN identifier of the first SIM card when the terminal uses the first SIM card and the second SIM card; and obtaining a second target PLMN identifier of a second SIM card; a processing unit, configured to determine whether the first SIM card and the second SIM card can reside in the same cell based on the first target PLMN identifier and the second target PLMN identifier; when it is determined that the first SIM card and the second SIM card can reside in the same cell, control one of the first SIM card and the second SIM card to initiate an idle state process, and send an execution result of the SIM card that initiates the idle state process to the SIM card that does not initiate the idle state process; The processing unit is further used to: determine whether the first SIM card is in roaming state; and determining whether the second SIM card is in a roaming state; when it is determined that the first SIM card is in a roaming state and the second SIM card is in a non-roaming state, if the first SIM card fails to obtain the EPLMN and the second SIM card can obtain the EPLMN, the EHPLMN or HPLMN of the first SIM card is used as the first target PLMN identifier, and the EPLMN of the second SIM card is used as the second target PLMN identifier; When the first target PLMN identifier and the second target PLMN identifier are the same, it is determined that the first SIM card and the second SIM card can reside in the same cell.

10. A terminal, It is characterized in that include: a processor and a memory for storing a computer program capable of being executed on the processor, Wherein, when the processor is used to run the computer program, it executes the steps of the method described in any one of claims 1 to 8.

11. A storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

12. A chip, It is characterized in that include: control circuit and a memory for storing a computer program capable of running on the control circuit, Wherein, when the control circuit is used to run the computer program, the steps of the method described in any one of claims 1 to 8 are executed.

Citation Information

Patent Citations

  • International roaming network searching method and device

    CN107182047A

  • Multi-card roaming network registration method and apparatus, computer device and storage medium

    CN109309913A

  • Cell reselecting method and device

    CN110383887A

  • Apparatus and method for reducing power consumption in multi-mode portable terminal

    EP2302973A1

  • Method and apparatus for scanning in mobile communication terminal with sim cards

    KR1020150115675A