CN113630759A - Terminal control method and device, terminal, storage medium and chip - Google Patents

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

Info

Publication number
CN113630759A
CN113630759A CN202010383574.7A CN202010383574A CN113630759A CN 113630759 A CN113630759 A CN 113630759A CN 202010383574 A CN202010383574 A CN 202010383574A CN 113630759 A CN113630759 A CN 113630759A
Authority
CN
China
Prior art keywords
sim card
target plmn
cell
sim
reside
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010383574.7A
Other languages
Chinese (zh)
Inventor
刘君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010383574.7A priority Critical patent/CN113630759A/en
Publication of CN113630759A publication Critical patent/CN113630759A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • H04W8/205Transfer to or from user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a terminal control method, a terminal control device, a terminal, a storage medium and a chip. The method comprises the following steps: when a terminal enables a first Subscriber Identity Module (SIM) card and a second SIM card, acquiring a first target Public Land Mobile Network (PLMN) identification of the first SIM card; acquiring a second target PLMN identification of a second SIM card; judging whether the first SIM card and the second SIM card can reside in the same cell or not based on the first target PLMN identification and the second target PLMN identification; when 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 initiating the idle state process to the SIM card not initiating the idle state process.

Description

Terminal control method and device, terminal, storage medium and chip
Technical Field
The invention relates to a terminal technology, in particular to a terminal control method, a terminal control device, a terminal, a storage medium and a chip.
Background
With the rapid development of terminal technology, a terminal has the capability of supporting multiple Subscriber Identity Module (SIM) cards, when the terminal uses two SIM cards simultaneously, each SIM card in the two SIM cards needs to initiate an idle state flow, and if the cells where the two SIM cards reside are completely the same, the idle state flows initiated by the two SIM cards are completely the same, which may cause the power consumption of the terminal to increase, and may not achieve the purpose of saving power.
Therefore, it is desirable to find a technical solution for controlling the idle-state behavior of the terminal.
Disclosure of Invention
In view of this, embodiments of the present invention are intended to provide a method and an apparatus for controlling a terminal, a storage medium, and a chip.
The technical scheme of the invention is realized as follows:
the embodiment of the invention provides a terminal control method, which comprises the following steps:
when the terminal enables a first SIM card and a second SIM card, acquiring a first target Public Land Mobile Network (PLMN) identification of the first SIM card; acquiring a second target PLMN identification of a second SIM card;
judging whether the first SIM card and the second SIM card can reside in the same cell or not based on the first target PLMN identification and the second target PLMN identification;
when 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 initiating the idle state process to the SIM card not initiating the idle state process.
In the foregoing solution, the determining whether the first SIM card and the second SIM card can reside in the same cell based on the first target PLMN identity and the second target PLMN identity includes:
taking a Home public land mobile network (HPLMN, Home PLMN) identifier or a peer-to-peer Home public land mobile network (EHPLMN, Equivalent Home PLMN) identifier of the first SIM card as the first target PLMN identifier; taking the HPLMN identifier or the EHPLMN identifier of the second SIM card as the second target PLMN identifier;
and when the first target PLMN identification is the same as the second target PLMN identification, determining that the first SIM card and the second SIM card can reside in the same cell.
In the foregoing solution, the determining whether the first SIM card and the second SIM card can reside in the same cell based on the first target PLMN identity and the second target PLMN identity includes:
judging whether the first SIM card is in a roaming state; judging whether the second SIM card is in a roaming state or not;
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, taking the EHPLMN or the HPLMN of the first SIM card as the first target PLMN identity and taking the EPLMN of the second SIM card as the second target PLMN identity;
and when the first target PLMN identification is the same as the second target PLMN identification, determining that the first SIM card and the second SIM card can reside in the same cell.
In the foregoing solution, the determining whether the first SIM card and the second SIM card can reside in the same cell based on the first target PLMN identity and the second target PLMN identity includes:
judging whether the first SIM card is in a roaming state; judging whether the second SIM card is in a roaming state or not;
when the first SIM card is in a roaming state and the second SIM card is in the roaming state, if the first SIM card and the second SIM card can both acquire and use the EPLMN, taking the EPLMN of the first SIM card as the first target PLMN identification and taking the EPLMN of the second SIM card as the second target PLMN identification;
determining that the first SIM card and the second SIM card can reside in the same cell when the first target PLMN identification is the same as a Visited Public Land Mobile Network (VPLMN) of a roaming place and the second target PLMN identification is the same as the VPLMN of the roaming place.
In the above scheme, the determining whether the first SIM card is in a roaming state; and judging whether the second SIM card is in a 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 residence;
judging whether the cell where the first SIM card resides is a shared network cell;
when the cell where the first SIM card resides is determined not to be a shared network cell, judging whether the first SIM card is in a roaming state; and judging whether the second SIM card is in a roaming state.
In the foregoing solution, the determining whether the first SIM card and the second SIM card can reside in the same cell based on the first target PLMN identity and the second target PLMN identity includes:
acquiring at least two PLMN lists;
for each PLMN list in the at least two PLMN lists, judging whether the corresponding PLMN list contains the first target PLMN identification and the second target PLMN identification;
and when the corresponding PLMN list contains the first target PLMN identification and the second target PLMN identification, determining that the first SIM card and the second SIM card can be resided in the same cell.
In the foregoing solution, the obtaining at least two PLMN lists includes:
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 residence;
judging whether the cell where the first SIM card resides is a shared network cell;
when the cell where the first SIM card resides is determined to be a shared network cell, at least two PLMN lists broadcasted by the shared network cell are obtained.
In the foregoing solution, the controlling one of the first SIM card and the second SIM card to initiate an idle state process includes:
when determining that one of the first SIM card and the second SIM card completes cell residence, controlling the SIM card which completes the cell residence in the first SIM card and the second SIM card to initiate an idle state process;
and when determining that the first SIM card and the second SIM card do not finish cell residence, controlling one of the first SIM card and the second SIM card to initiate an idle state process.
In the foregoing solution, after controlling one of the first SIM card and the second SIM card to initiate an idle state procedure and sending an execution result of the SIM card initiating the idle state procedure to the SIM card not initiating the idle state procedure, the method further includes:
judging whether the first SIM card and the second SIM card establish connection with a network side;
and when the first SIM card and the second SIM card are determined to be connected with the network side, controlling 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.
An embodiment of the present invention provides a control apparatus for a terminal, including:
the terminal comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a first target PLMN identification of a first SIM card when the terminal uses the first SIM card and a second SIM card; acquiring a second target PLMN identification 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 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 initiating the idle state process to the SIM card not initiating the idle state process.
An embodiment of the present invention provides a terminal, including: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to implement the steps of any of the above methods when executing the computer program when executing the program.
An embodiment of the present invention provides a storage medium, on which a computer program is stored, which when executed by a processor implements the steps of any of the methods described above.
An embodiment of the present invention provides a chip, including: a control circuit and a memory for storing a computer program capable of running on the control circuit,
wherein the control circuit is adapted to perform any of the above method steps when running the computer program.
According to the control method, the control device, the control terminal, the storage medium and the control chip of the terminal, when the terminal starts the first SIM card and the second SIM card, the first target PLMN identification of the first SIM card is obtained; acquiring a second target PLMN identification of a second SIM card; judging whether the first SIM card and the second SIM card can reside in the same cell or not based on the first target PLMN identification and the second target PLMN identification; when 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 initiating the idle state process to the SIM card not initiating the idle state process. By adopting the technical scheme of the embodiment of the invention, when the terminal uses two SIM cards at the same time, whether the two SIM cards can reside in the same cell is judged; when 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 a result of executing the idle state process is sent to the SIM card which does not initiate the idle state process, so that the problem that in the related technology, the two SIM cards need to initiate the same idle state process, thereby contending for the same physical unit and further causing the power consumption of the terminal to increase is avoided, the power consumption of the terminal is saved, and the purpose of saving power is achieved.
Drawings
Fig. 1 is a schematic diagram of an internal structure of a dual SIM card terminal in the related art;
fig. 2 is a schematic diagram illustrating a position shift of a terminal in the related art;
fig. 3 is a schematic view of an implementation flow of a control method of a terminal according to an embodiment of the present invention;
fig. 4a is a first schematic flow chart illustrating an implementation process of determining whether the first SIM card and the second SIM card can reside in the same cell according to the embodiment of the present invention;
fig. 4b is a schematic diagram of an implementation process of determining whether the first SIM card and the second SIM card can reside in the same cell according to the embodiment of the present invention;
fig. 5 is a third schematic view of an implementation flow of determining whether the first SIM card and the second SIM card can reside in the same cell according to the embodiment of the present invention;
fig. 6 is a schematic diagram of a flow chart illustrating an implementation of determining whether the first SIM card and the second SIM card can reside in the same cell according to the embodiment of the present invention;
fig. 7 is a first schematic diagram illustrating a method for determining whether the first SIM card and the second SIM card are in a roaming state according to the embodiment of the present invention;
fig. 8 is a second schematic diagram illustrating a method for determining whether the first SIM card and the second SIM card are in a roaming state according to the embodiment of the present invention;
fig. 9 is a schematic structural diagram of a control device of a terminal according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
Before describing the technical solution of the embodiment of the present invention in detail, a description will be given of a related art.
In the related art, with the rapid development of terminal technology, a terminal has the capability of supporting multiple SIM cards, which is also called a Multi-SIM terminal (Multi-SIM UE). A multi-SIM card terminal is usually composed of multiple protocol stack control software instances and a single radio frequency physical unit. Fig. 1 is a schematic diagram of an internal structure of a dual-SIM terminal in the related art, where the dual-SIM terminal needs to have two protocol stacks to support two SIM cards and obtain network services, where NAS1 and RRC1 form a first control plane of one protocol stack instance and serve as a SIM1, and NAS2 and RRC2 form a second control plane of another protocol stack instance and serve as a SIM 2; the control information between the two control planes is independent, and the respective protocol process is completed by accessing the physical unit in a time division mode. The NAS refers to a Non Access Stratum (NSA) protocol function, and is used for an interactive process between a terminal and a core network, and controlling important processes of PLMN search, registration and the like of the terminal; RRC refers to a Radio Resource Control (RRC) protocol function, and is responsible for a terminal to interact with a Radio Access Network (RAN) to complete configuration and mobility of Radio resources.
In fig. 1, when both protocol stack instances are in a non-connected state, if the serving cells where the two SIM cards reside are completely the same, the idle state flows initiated by the two SIM cards are the same, including: measurement of a serving cell, measurement and evaluation of neighbor cells, reselection, acquisition of system messages, and the like. If the two SIM cards reside in different serving cells, after the RRC1 completes the cell measurement process, the RRC2 repeats the cell measurement process performed by the RRC1, and the RRC1 and the RRC2 acquire the service provided by the physical layer unit in a serial time division manner. It can be seen that if the serving cells where the two SIM cards reside are identical, then both RRC1 and RRC2 initiate the same activity, and the same activity behavior from the terminal's perspective occurs repeatedly within a specified time. Fig. 2 is a schematic diagram of a terminal moving in a location in a related art, as shown in fig. 2, when the terminal moves to a cell edge, two SIM cards of the same network may also reside in different serving cells, for example, two SIM cards of a home mobile operator network may respectively reside in different serving cells, and therefore, if a scheme for determining that the same resident cells are the same according to whether operators to which the two SIM cards belong is the same when the terminal moves in a location, the scheme may fail.
Based on this, in various embodiments of the present invention, when the terminal enables the first SIM card and the second SIM card, the first target PLMN identity of the first SIM card is obtained; acquiring a second target PLMN identification of a second SIM card; judging whether the first SIM card and the second SIM card can reside in the same cell or not based on the first target PLMN identification and the second target PLMN identification; when 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 initiating the idle state process to the SIM card not initiating the idle state process.
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
An embodiment of the present invention provides a control method for a terminal, and fig. 3 is a schematic diagram illustrating an implementation flow of the control method for the terminal according to the embodiment of the present invention; as shown in fig. 3, the method includes:
step 301: when the terminal starts the first SIM card and the second SIM card, acquiring a first target PLMN identification of the first SIM card; acquiring a second target PLMN identification of a second SIM card;
step 302: judging whether the first SIM card and the second SIM card can reside in the same cell or not based on the first target PLMN identification and the second target PLMN identification;
step 303: when 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 initiating the idle state process to the SIM card not initiating the idle state process.
Here, in practical application, in step 301, the terminal is a terminal that supports at least two SIM cards and can acquire a network service. The terminal can simultaneously start two SIM cards in the at least two SIM cards, and can also start two SIM cards in the at least two SIM cards according to the sequence, which are respectively represented by the first SIM card and the second SIM card. The priority of use of the first SIM card may be higher than that of use of the second SIM card, for example, the first SIM card is a primary card, and the second SIM card is a secondary card.
Here, in actual application, in step 301, the terminal may obtain the first target PLMN identity of the first SIM card and obtain the second target PLMN identity of the second SIM card after being powered on or restarted, for example, after being powered on, when the first SIM card and the second SIM card are enabled, the terminal obtains the first target PLMN identity of the first SIM card and obtains the second target PLMN identity of the second SIM card. Or, the terminal acquires the first target PLMN identity of the first SIM card and acquires the second target PLMN identity of the second SIM card when the location moves, for example, the terminal moves from the cell a to the cell B, and after the cell B enables the first SIM card and the second SIM card, acquires the first target PLMN identity of the first SIM card and acquires the second target PLMN identity of the second SIM card.
Here, in actual application, in step 302, it may be determined whether the first SIM card and the second SIM card can reside in the same cell in a scenario where the terminal is powered on or restarted, and two SIM cards are simultaneously enabled or a second SIM card is enabled; when the terminal moves, for example, moves from area a to area B, and in a scenario where two SIM cards are simultaneously enabled or a second SIM card is enabled, it may be determined whether the first SIM card and the second SIM card can reside in the same cell.
Here, in an actual application, in step 303, the idle state may mean that the terminal does not establish a Radio Resource Control (RRC) connection with the network side.
Here, the control method of the terminal provided in the embodiment of the present invention may take effect when the terminal enables the second SIM card, or may take effect when the terminal enables two SIM cards at the same time.
The following describes how to determine whether the first SIM card and the second SIM card can reside in the same cell in the embodiment of the present invention in detail.
In the first case, whether the first SIM card and the second SIM card can reside in the same cell is determined according to the operators to which the networks used by the first SIM card and the second SIM card respectively belong.
In practical application, when the terminal enables a first SIM card and a second SIM card, if a network used by the first SIM card and a 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 can not reside in the same cell.
Based on this, in an embodiment, the determining, based on the first target PLMN identity and the second target PLMN identity, whether the first SIM card and the second SIM card can reside in the same cell includes:
taking the HPLMN or EHPLMN identification of the first SIM card as the first target PLMN identification; taking the HPLMN or EHPLMN identification of the second SIM card as the second target PLMN identification;
and when the first target PLMN identification is the same as the second target PLMN identification, determining that the first SIM card and the second SIM card can reside in the same cell.
Here, the HPLMN refers to a network of a home operator, and the operator may refer to a mobile operator, a unified operator, a telecom operator, and the like. The HPLMN identity may be derived from a combination of MCC and MNC, where MCC may be represented by 3 digits and MNC may be represented by 2 digits.
For example, the HPLMN identifier stored in the first SIM card is obtained by combining MCC and MNC, and is assumed to be 46001, which indicates a network of a home mobile operator; the HPLMN identifier stored in the second SIM card is obtained by combining MCC and MNC, and is assumed to be 46002, which indicates a network of a home unicom operator; because the HPLMN identifier stored by the first SIM card is different from the HPLMN identifier stored by 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.
Here, in an actual application, since an identifier composed of a Mobile Country Code (MCC) and a 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, an identifier composed of the MCC and the MNC in the IMSI of the first SIM card may be used as the first target PLMN identifier. Similarly, since the identifier formed by 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 formed by the MCC and MNC in the IMSI of the second SIM card may also be used as the second target PLMN identifier.
For example, suppose that an identifier obtained by combining MCC and MNC in the IMSI stored in the first SIM card is 46001, which indicates a network of a home mobile operator; an identifier obtained by combining MCC and MNC in the IMSI stored in the second SIM card is 46001, and represents a network of a home mobile operator; because the HPLMN identifier stored by the first SIM card is the same as the HPLMN identifier stored by 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.
Here, EHPLMN refers to a peer-to-peer home public land mobile network in which an operator increases as the network is upgraded. An operator may refer to a mobile operator, a unicom operator, a telecom operator, etc. The EHPLMN identity may be derived from a combination of MCC and MNC, where MCC may be represented by 3 digits and MNC may be represented by 2 digits.
For example, the EHPLMN id stored in the first SIM card is obtained by combining MCC and MNC, and is assumed to be 46001, which represents a peer-to-peer home public land mobile network of a mobile operator; the PLMN identity stored in the second SIM card is obtained by combining MCC and MNC, and is assumed to be 46001, which indicates a network of a mobile operator; since the EHPLMN identity stored by the first SIM card is the same as the PLMN stored by 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.
Here, in actual application, the PLMN identifier of the first SIM card may also be used as the first target PLMN identifier; taking the EHPLMN identification of the second SIM card as the second target PLMN identification; and when the first target PLMN identification is the same as the second target PLMN identification, determining that the first SIM card and the second SIM card can reside in the same cell.
In an embodiment, as shown in fig. 4a, a process of determining whether the first SIM card and the second SIM card can camp in the same cell is described, including:
step 1: acquiring the HPLMN identifier of the first SIM card, and acquiring the HPLMN identifier of the second SIM card;
step 2: comparing the HPLMN identification of the first SIM card with the HPLMN identification of the second SIM card to obtain a comparison result;
and step 3: and when the comparison result represents that the HPLMN identification of the first SIM card is the same as the HPLMN identification of the second SIM card, determining that the first SIM card and the second SIM card can reside in the same cell.
In an embodiment, as shown in fig. 4b, a process of determining whether the first SIM card and the second SIM card can camp in the same cell is described, including:
step 1: acquiring an EHPLMN identification of the first SIM card, and acquiring an EHPLMN identification of the second SIM card;
step 2: comparing the EHPLMN identification of the first SIM card with the EHPLMN identification of the second SIM card to obtain a comparison result;
and step 3: and when the comparison result shows that the EHPLMN identification of the first SIM card is the same as the EHPLMN identification of the second SIM card, determining that the first SIM card and the second SIM card can reside in the same cell.
Here, in a scenario where the terminal is turned on or restarted, it is determined whether the first SIM card and the second SIM card can reside in the same cell, which has the following advantages:
after the terminal is started or restarted, after the first SIM card and the second SIM card are started, if a network used by the first SIM card and a 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, so that one of the two SIM cards can be controlled to initiate an idle state flow subsequently, and an execution result of the SIM card initiating the idle state flow is synchronized to the SIM card not initiating the idle state flow, thereby avoiding the problem that the power consumption of the terminal is increased because the two SIM cards initiate the same idle state flow in the related technology to scramble for the same physical unit, and further reducing the power consumption of the terminal.
In the second case, when one of the first SIM card and the second SIM card is in a roaming state, and the SIM card in the roaming state cannot acquire the EPLMN, and the SIM card in the non-roaming state can acquire the EPLMN, it is determined whether the first SIM card and the second SIM card can reside in the same cell.
Specifically, one of the HPLMN and EHPLMN of the first SIM card may be compared with one of the HPLMN and EHPLMN of the second SIM card to obtain a comparison result; when the comparison result represents 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, the second SIM card is in a non-roaming state, and the first SIM card in the roaming state fails to acquire the EPLMN, the second SIM card in the non-roaming state can acquire the EPLMN, so that whether the first SIM card and the second SIM card can reside in the same cell is determined 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.
Here, the fact that the first SIM card in the roaming state fails to acquire the EPLMN may mean that the first SIM card fails to acquire the EPLMN when the terminal moves to a country different from a country corresponding to the MCC in the first SIM card and is powered on, it should be noted that the first SIM card can acquire the EPLMN after the terminal is powered on for a period of time, and if the first SIM card completes successful registration on a network corresponding to the EPLMN, the first SIM card can use the EPLMN. The second SIM card in the non-roaming state may be capable of acquiring the EPLMN, where the second SIM card may be capable of acquiring the EPLMN after the terminal is powered on for a period of time.
When the country corresponding to the MCC in the SIM card is different from the country of the current position of the terminal, determining that the SIM card is in a roaming state; and when the country corresponding to the MCC in the SIM card is the same as the country of the current position of the terminal, determining that the SIM card is in a non-roaming state.
In practical application, when the terminal moves, the country to which the current region of the terminal after moving may be the country to which the registered region of one of the two SIM cards belongs. For example, the terminal moves from area 1 to area 2, where the country of area 2 is china, and if the country of area registered by the first SIM card is usa and the country of area registered by the second SIM card is china, the first SIM card is in a roaming state and the second SIM card is in a non-roaming state, and if the second SIM card can acquire the EPLMN and the first SIM card cannot acquire the EPLMN, the HPLMN identifier or the EHPLMN identifier of the first SIM card in the roaming state may be compared with the EPLMN identifier of the second SIM card in the 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.
Based on this, in an embodiment, the determining, based on the first target PLMN identity and the second target PLMN identity, whether the first SIM card and the second SIM card can reside in the same cell includes:
judging whether the first SIM card is in a roaming state; judging whether the second SIM card is in a roaming state or not;
when the first SIM card is in a roaming state and the second SIM card is in a non-roaming state, taking the EHPLMN or the HPLMN of the first SIM card as the first target PLMN identification and taking the EPLMN of the second SIM card as the second target PLMN identification;
and when the first target PLMN identification is the same as the second target PLMN identification, determining that the first SIM card and the second SIM card can reside in the same cell.
In an embodiment, as shown in fig. 5, a process of determining whether the first SIM card and the second SIM card can camp in the same cell is described, including:
step 1: judging whether the first SIM card is in a roaming state; judging whether the second SIM card is in a roaming state or not;
here, one of the HPLMN and EHPLMN of the first SIM card may be compared with one of the HPLMN and EHPLMN of the second SIM card to obtain a comparison result; when the comparison result represents 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, judging whether the first SIM card is in a roaming state; and judging whether the second SIM card is in a roaming state.
Step 2: when the first SIM card is determined to be in a roaming state and the second SIM card is determined to be in a non-roaming state, if the first SIM card fails to acquire the EPLMN and the second SIM card can acquire the EPLMN, taking the EHPLMN or the HPLMN of the first SIM card as the first target PLMN identification and taking the EPLMN of the second SIM card as the second target PLMN identification;
for example, the terminal moves from area 1 to area 2, the country to which area 2 belongs is china, and if the country to which the first SIM card is registered belongs is the united states and the country to which the second SIM card is registered belongs is 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 acquire the EPLMN and the second SIM card can acquire the EPLMN, the HPLMN identifier or the EHPLMN identifier of the first SIM card in the roaming state may be compared with the EPLMN identifier of the second SIM card in the 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.
And step 3: and when the first target PLMN identification is the same as the second target PLMN identification, determining that the first SIM card and the second SIM card can reside in the same cell.
Here, in a scenario where the terminal moves, determining whether the first SIM card and the second SIM card can reside in the same cell has the following advantages:
after the terminal moves, and after the first SIM card and the second SIM card are simultaneously enabled, 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, so that one of the two SIM cards can be subsequently controlled to initiate an idle state flow, and an execution result of the SIM card initiating the idle state flow is synchronized to the SIM card not initiating the idle state flow, thereby avoiding contention of contention for the same physical unit and further causing the problem of increased terminal power consumption in the related technology due to the fact that the two SIM cards initiate the same idle state flow, and further reducing the terminal power consumption.
And in the third situation, judging whether the first SIM card and the second SIM card can reside in the same cell or not under the condition that the first SIM card and the second SIM card are both in a roaming state and can acquire the EPLMN.
Specifically, one of the HPLMN and EHPLMN of the first SIM card may be compared with one of the HPLMN and EHPLMN of the second SIM card to obtain a comparison result; when the comparison result represents 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 and the second SIM card are in a roaming state, and the first SIM card and the second SIM card can both acquire and use the EPLMN, then, based on the EPLMNs of the two SIM cards, whether the first SIM card and the second SIM card can reside in the same cell is judged.
Here, the first SIM card and the second SIM card may both 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 may obtain the EPLMN; and if the first SIM card and the second SIM card are successfully registered in the network corresponding to the respective EPLMN, the first SIM card and the second SIM card can both use the EPLMN.
When the country corresponding to the MCC in the SIM card is different from the country of the current position of the terminal, determining that the SIM card is in a roaming state; and when the country corresponding to the MCC in the SIM card is the same as the country of the current position of the terminal, determining that the SIM card is in a non-roaming state.
In practical application, when the terminal moves, the country to which the current region of the terminal after moving may not be the country to which the registered region of any one of the two SIM cards belongs. For example, the terminal moves from area 1 to area 3, the country to which area 3 belongs is china, if the country to which the first SIM card is registered is japan and the country to which the second SIM card is registered is usa, the first SIM card is in a roaming state, the second SIM card is in a roaming state, and when both SIM cards can acquire and use EPLMN, the EPLMN identifier of the first SIM card in the roaming state and the EPLMN identifier of the second SIM card in the roaming state can be compared with the VPLMN identifier of the roaming place, respectively, 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.
Based on this, in an embodiment, the determining, based on the first target PLMN identity and the second target PLMN identity, whether the first SIM card and the second SIM card can reside in the same cell includes:
judging whether the first SIM card is in a roaming state; judging whether the second SIM card is in a roaming state or not;
when the first SIM card is in a roaming state and the second SIM card is in the roaming state, taking the EPLMN of the first SIM card as the first target PLMN identification and taking the EPLMN of the second SIM card as the second target PLMN identification;
and when the first target PLMN identification is the same as the VPLMN of the roaming place and the second target PLMN identification is the same as the VPLMN of the roaming place, determining that the first SIM card and the second SIM card can reside in the same cell.
In an embodiment, as shown in fig. 6, a process of determining whether the first SIM card and the second SIM card can camp in the same cell is described, including:
step 1: judging whether the first SIM card is in a roaming state; judging whether the second SIM card is in a roaming state or not;
here, one of the HPLMN and EHPLMN of the first SIM card may be compared with one of the HPLMN and EHPLMN of the second SIM card to obtain a comparison result; when the comparison result represents 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, judging whether the first SIM card is in a roaming state; and judging whether the second SIM card is in a roaming state.
Step 2: when the first SIM card is in a roaming state and the second SIM card is in the roaming state, if both the two SIM cards can obtain and use the EPLMN, taking the EPLMN of the first SIM card as the first target PLMN identification and taking the EPLMN of the second SIM card as the second target PLMN identification;
for example, the terminal moves from region 1 to region 3, the country to which region 3 belongs is china, and if the country to which the first SIM card is registered belongs is japan and the country to which the second SIM card is registered belongs is usa, both SIM cards are in a roaming state. If both the SIM cards can obtain and use the EPLMN, the EPLMN identifier of the first SIM card in the roaming state and the EPLMN identifier of the second SIM card in the roaming state may be compared with the VPLMN identifier of the roaming location, respectively, 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.
And step 3: and when the first target PLMN identification is the same as the VPLMN identification of the roaming place and the second target PLMN identification is the same as the VPLMN identification of the roaming place, determining that the first SIM card and the second SIM card can reside in the same cell.
Here, in a scenario where the terminal moves, determining whether the first SIM card and the second SIM card can reside in the same cell has the following advantages:
after the terminal moves, and after the first SIM card and the second SIM card are started at the same time, if the first SIM card and the second SIM card are in a roaming state, when the EPLMN of the two SIM cards in the roaming state is the same as the VPLMN of a roaming place and the EPLMN of the SIM card in the roaming state is the same, the first SIM card and the second SIM card can reside in the same cell, so that one of the two SIM cards can be controlled to initiate an idle state flow subsequently, and the execution result of the SIM card initiating the idle state flow is synchronized to the SIM card not initiating the idle state flow, thereby avoiding the problem that the power consumption of the terminal is increased due to contention generated to the same physical unit by the two SIM cards initiating the same idle state flow in the related technology, and further reducing the power consumption of the terminal.
In actual application, before the terminal starts the first SIM card and the second SIM card, the first SIM card may be started first; wherein, the first SIM card may be the SIM card with the highest priority. Therefore, when the terminal moves, the first SIM card started first may have already completed cell residence, so that it may be determined whether the cell where the first SIM card resides belongs to the shared network cell; and if the cell where the first SIM card resides does not belong to the shared network cell, judging whether the current area of the terminal after moving is the same as the registration areas of the two SIM cards.
Based on this, in an embodiment, the determining whether the first SIM card is in a roaming state; and judging whether the second SIM card is in a 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 residence;
when the first SIM card finishes the cell residence, judging whether the cell where the first SIM card resides is a shared network cell;
when the cell where the first SIM card resides is determined not to be a shared network cell, judging whether the first SIM card is in a roaming state; and judging whether the second SIM card is in a roaming state.
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 a network of a mobile operator or a network of a connected operator, cell a belongs to a shared network cell.
In practical 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 may be controlled to complete cell residence.
In an embodiment, as shown in fig. 7, a process of determining whether the first SIM card and the second SIM card are in a roaming state is described, which includes:
step 1: and after the terminal is started or restarted, comparing one of the HPLMN and the EHPLMN of the first SIM card with one of the HPLMN and the EHPLMN of the second SIM card to obtain a comparison result.
Step 2: and 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, controlling the first SIM card with high priority to finish cell residence.
And step 3: judging whether the cell where the first SIM card resides is a shared network cell; when the cell where the first SIM card resides is determined not to be a shared network cell, executing the step 4;
and 4, step 4: judging whether the first SIM card is in a roaming state; judging whether the second SIM card is in a roaming state or not; when the first SIM card is in a roaming state and the second SIM card is in a non-roaming state, executing the step 5; when the first SIM card is in the roaming state and the second SIM card is in the roaming state, executing the step 6;
and 5: when the EHPLMN or HPLMN identification of the first SIM card is the same as the EPLMN identification of the second SIM card, determining that the first SIM card and the second SIM card can reside in the same cell;
here, if the first SIM card fails to acquire the EPLMN and the second SIM card can acquire the EPLMN, then the EHPLMN or the HPLM of the first SIM card is used as the first target PLMN identity, and the EPLMN of the second SIM card is used as the second target PLMN identity; and judging whether the first SIM card and the second SIM card can reside in the same cell or not based on the first target PLMN identification and the second target PLMN identification.
Step 6: and when the EPLMN identifications of the first SIM card and the second SIM card are the same as the VPLMN identification of the roaming place, determining that the first SIM card and the second SIM card can reside in the same cell.
Here, if both SIM cards can obtain and use the EPLMN, then the EPLMN of the first SIM card is used as the first target PLMN identity, and the EPLMN of the second SIM card is used as the second target PLMN identity; and judging whether the first SIM card and the second SIM card can reside in the same cell or not based on the first target PLMN identification and the second target PLMN identification.
Here, in a scenario where one of the two SIM cards completes cell residence, it is determined whether the first SIM card and the second SIM card can reside in the same cell, which has the following advantages:
after the terminal is started or restarted, the first SIM card and the second SIM card are simultaneously started, if the first SIM card finishes cell residence, whether the first SIM card and the second SIM card can reside in the same cell is determined based on roaming states of the two SIM cards and the first target PLMN identification and the second target PLMN identification when the cell in which the first SIM card resides is not a shared network cell, and thus, idle state processes executed by the SIM cards finishing cell residence can be synchronously sent to the SIM cards not finishing cell residence, so that the problem that the power consumption of the terminal is increased due to the fact that the two SIM cards initiate the same idle state process to compete for the same physical unit in the related technology is avoided, and the power consumption of the terminal is reduced.
And in the fourth situation, judging whether the first SIM card and the second SIM card can reside in the same cell or not when the first SIM card and the second SIM card are both in a non-roaming state.
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 register on respective networks corresponding to the EPLMNs, that is, neither SIM card can 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; and 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, determining that the first SIM card and the second SIM card can reside in the same cell.
When the country corresponding to the MCC in the SIM card is different from the country of the current position of the terminal, determining that the SIM card is in a roaming state; and when the country corresponding to the MCC in the SIM card is the same as the country of the current position of the terminal, determining that the SIM card is in a non-roaming state.
In a fifth case, when the cell where the first SIM card resides is the 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.
In practical application, after the terminal is turned on or restarted, the first SIM card and the second SIM card are simultaneously enabled, if the first SIM card completes cell residence, when a cell where the first SIM card resides is a shared network cell, at least two PLMN lists broadcasted by the shared network cell may be obtained, and when a certain PLMN list in the at least two PLMN lists contains the first target PLMN identity and the second target PLMN identity, it is determined that the first SIM card and the second SIM card can reside in the same cell.
Based on this, in an embodiment, the determining, based on the first target PLMN identity and the second target PLMN identity, whether the first SIM card and the second SIM card can reside in the same cell includes:
acquiring at least two PLMN lists;
for each PLMN list in the at least two PLMN lists, judging whether the corresponding PLMN list contains the first target PLMN identification and the second target PLMN identification;
and when the corresponding PLMN list contains the first target PLMN identification and the second target PLMN identification, determining that the first SIM card and the second SIM card can be resided in the same cell.
One of the EPLMN, EHPLMN, and HPLMN identifiers of the first SIM card may be used as a first target PLMN identifier, and one of the EPLMN, EHPLMN, and HPLMN identifiers of the second SIM card may be used as a second target PLMN identifier.
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.
Here, the obtaining at least two PLMN lists includes: when the first SIM card finishes the cell residence, judging whether the cell where the first SIM card resides is a shared network cell; when the cell where the first SIM card resides is determined to be a shared network cell, at least two PLMN lists broadcasted by the shared network cell are obtained.
In an embodiment, as shown in fig. 8, a process of determining whether the first SIM card and the second SIM card are in a roaming state is described, which includes:
step 1: and after the terminal is started or restarted, comparing one of the HPLMN and the EHPLMN of the first SIM card with one of the HPLMN and the EHPLMN of the second SIM card to obtain a comparison result.
Step 2: and 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, controlling the first SIM card with high priority to finish cell residence.
And step 3: judging whether the cell where the first SIM card resides is a shared network cell; when determining that the cell where the first SIM card resides is a shared network cell, executing the step 4;
and 4, step 4: acquiring at least two PLMN lists broadcasted by a cell where a first SIM card resides; for each PLMN list in the at least two PLMN lists, judging whether the corresponding PLMN list contains the first target PLMN identification and the second target PLMN identification; when the corresponding PLMN list contains the first target PLMN identification and the second target PLMN identification, executing step 5;
here, one of the EPLMN, EHPLMN, and HPLMN of the first SIM card may be used as the first target PLMN identity, and one of the EPLMN, EHPLMN, and HPLMN of the second SIM card may be used as the second target PLMN identity.
And 5: determining that the first SIM card and the second SIM card can reside in the same cell.
Here, in a scenario where one of the two SIM cards completes cell residence, it is determined whether the first SIM card and the second SIM card can reside in the same cell, which has the following advantages:
after the terminal is started or restarted, the first SIM card and the second SIM card are simultaneously started, if the first SIM card finishes cell residence, whether the first SIM card and the second SIM card can reside in the same cell is determined based on at least two PLMN lists broadcast by the cell where the first SIM card resides and the first target PLMN identification and the second target PLMN identification when the cell where the first SIM card resides is a shared network cell, so that the execution result of the idle state flow initiated by the SIM card where the cell residence is finished can be synchronously sent to the SIM card where the cell resides, thereby avoiding the problem that the power consumption of the terminal is increased due to contention of the same physical unit caused by the fact that the two SIM cards initiate the same idle state flow in the related technology, and further reducing the power consumption of the terminal.
In practical applications, when it is determined that the first SIM card and the second SIM card can camp on the same cell, one of the first SIM card and the second SIM card may complete cell camping, for example, the first SIM card with a higher priority has completed cell camping, and the second SIM card has not completed cell camping. In this way, the first SIM card may synchronize the execution result of the idle state procedure initiated in the resident cell to the second SIM card, so that the second SIM card does not need to repeatedly initiate the idle state procedure in the cell where the first SIM card is resident.
In an embodiment, the determining the SIM card initiating the idle state procedure in the first SIM card and the second SIM card includes:
when determining that one of the first SIM card and the second SIM card completes cell residence, controlling the SIM card which completes the cell residence in the first SIM card and the second SIM card to initiate an idle state process;
and when determining that the first SIM card and the second SIM card do not finish cell residence, controlling one of the first SIM card and the second SIM card to initiate an idle state process.
Here, when it is determined that both the first SIM card and the second SIM card do not complete cell residence, the SIM card with a higher priority in the first SIM card and the second SIM card may be controlled to initiate an idle state procedure; or, any one of the first SIM card and the second SIM card may be controlled to initiate an idle state procedure.
Here, the idle state flow may include: PLMN search, cell selection and reselection, measurement, system message acquisition, ETWS \ CMAS reception.
Here, in a scenario where the terminal is powered on or restarted or a location movement occurs, when it is determined that two SIM cards enabled by the terminal can reside in the same serving cell, an idle state flow in which a protocol stack instance of one of the two SIM cards interacts with a physical unit is cancelled, so that a conflict caused by the idle state flow initiated by the protocol stack instances corresponding to the two SIM cards contending for the same physical unit is reduced. The standby time of the terminal is prolonged by reducing the activity of the physical unit, so that the terminal achieves the aim of saving more power.
In practical application, when 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 flow, and after an execution result of the SIM card initiating the idle state flow is sent to the SIM card not initiating the idle state flow, the first SIM card and the second SIM card can establish connection with a network side and perform data transmission at the same time.
Based on this, in an embodiment, after controlling one of the first SIM card and the second SIM card to initiate an idle state procedure and sending an execution result of the SIM card initiating the idle state procedure to the SIM card not initiating the idle state procedure, the method further includes:
judging whether the first SIM card and the second SIM card establish connection with a network side;
and when the first SIM card and the second SIM card are determined to be connected with the network side, controlling 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. The resource may refer to a time domain resource, a frequency domain resource, and the like.
Here, in the related art, data between two SIM cards and a network side are combined, and the combined data is sent to the network side by using the same physical unit, which may result in contention for the same physical unit, and further increase in power consumption of the terminal; in the embodiment of the present invention, the first SIM card and the second SIM card may 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 in time slot 1 and time slot 2, respectively, and since data transmitted between the two SIM cards and the network side can be separately transmitted, contention for the same physical unit can be reduced, power consumption of the terminal can be reduced, and data transmission efficiency can be improved.
By adopting the technical scheme of the embodiment of the invention, when the terminal uses two SIM cards at the same time, whether the two SIM cards can reside in the same cell is judged; when the two SIM cards can reside in the same cell, one of the two SIM cards is controlled to initiate an idle state flow, and an execution result of the SIM card initiating the idle state flow is sent to the SIM card not initiating the idle state flow, so that the problem that in the related technology, the two SIM cards need to initiate the same idle state flow, thus contention is generated for the same physical unit and the power consumption of the terminal is increased is avoided, the power consumption of the terminal is saved, and the purpose of saving power is achieved.
In order to implement the control method of the terminal in the embodiment of the present invention, the embodiment of the present invention further provides a control device of the terminal, which is arranged on the terminal. Fig. 9 is a schematic structural diagram of a control device of a terminal according to an embodiment of the present invention; as shown in fig. 9, the apparatus includes:
an obtaining unit 91, configured to obtain a first target PLMN identifier of a first SIM card when the terminal enables the first SIM card and a second SIM card; acquiring a second target PLMN identification of a second SIM card;
a processing unit 92, 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 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 initiating the idle state process to the SIM card not initiating the idle state process.
In an embodiment, the processing unit 92 is specifically configured to:
taking the HPLMN or EHPLMN identification of the first SIM card as the first target PLMN identification; taking the HPLMN or EHPLMN identification of the second SIM card as the second target PLMN identification;
and when the first target PLMN identification is the same as the second target PLMN identification, determining that the first SIM card and the second SIM card can reside in the same cell.
In an embodiment, the processing unit 92 is specifically configured to: judging whether the first SIM card is in a roaming state; judging whether the second SIM card is in a roaming state or not;
when the first SIM card is determined to be in a roaming state and the second SIM card is determined to be in a non-roaming state, if the first SIM card fails to acquire the EPLMN and the second SIM card can acquire the EPLMN, taking the EHPLMN or the HPLMN of the first SIM card as the first target PLMN identification and taking the EPLMN of the second SIM card as the second target PLMN identification;
and when the first target PLMN identification is the same as the second target PLMN identification, determining that the first SIM card and the second SIM card can reside in the same cell.
In an embodiment, the processing unit 92 is specifically configured to:
judging whether the first SIM card is in a roaming state; judging whether the second SIM card is in a roaming state or not;
when the first SIM card is in a roaming state and the second SIM card is in the roaming state, if the first SIM card and the second SIM card can both acquire and use the EPLMN, taking the EPLMN of the first SIM card as the first target PLMN identification and taking the EPLMN of the second SIM card as the second target PLMN identification;
and when the first target PLMN identification is the same as the VPLMN of the roaming place and the second target PLMN identification is the same as the VPLMN of the roaming place, determining that the first SIM card and the second SIM card can reside in the same cell.
In an embodiment, the processing unit 92 is specifically configured to:
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 residence; judging whether the cell where the first SIM card resides is a shared network cell; when the cell where the first SIM card resides is determined not to be a shared network cell, judging whether the first SIM card is in a roaming state; and judging whether the second SIM card is in a roaming state.
In an embodiment, the processing unit 92 is specifically configured to:
acquiring at least two PLMN lists;
for each PLMN list in the at least two PLMN lists, judging whether the corresponding PLMN list contains the first target PLMN identification and the second target PLMN identification;
and when the corresponding PLMN list contains the first target PLMN identification and the second target PLMN identification, determining that the first SIM card and the second SIM card can be resided in the same cell.
In an embodiment, the processing unit 92 is specifically configured to:
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 residence;
when the first SIM card finishes the cell residence, judging whether the cell where the first SIM card resides is a shared network cell;
when the cell where the first SIM card resides is determined to be a shared network cell, at least two PLMN lists broadcasted by the shared network cell are obtained.
In an embodiment, the processing unit 92 is specifically configured to:
when determining that one of the first SIM card and the second SIM card completes cell residence, controlling the SIM card which completes the cell residence in the first SIM card and the second SIM card to initiate an idle state process;
and when determining that the first SIM card and the second SIM card do not finish cell residence, controlling one of the first SIM card and the second SIM card to initiate an idle state process.
In an embodiment, the processing unit 92 is further configured to determine whether the first SIM card and the second SIM card establish a connection with a network side; and when the first SIM card and the second SIM card are determined to be connected with the network side, controlling 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.
In practical application, the obtaining unit 91 may be implemented by a communication interface in the apparatus; the processing unit 92 may be implemented by a processor in the apparatus; the Processor may be a Central Processing Unit (CPU), a Digital Signal Processor (DSP), a Micro Control Unit (MCU), or a Programmable Gate Array (FPGA).
It should be noted that: the apparatus provided in the foregoing embodiment is only illustrated by the division of the program modules when controlling the terminal, and in practical applications, the above processing may be distributed to different program modules according to needs, that is, the internal structure of the terminal is divided into different program modules to complete all or part of the above-described processing. In addition, the embodiments of the control methods of the device and the terminal provided in the above embodiments have the same concept, and specific implementation processes thereof are described in the embodiments of the methods and will not be described herein again.
Based on the hardware implementation of the above-mentioned device, an embodiment of the present invention further provides a terminal, fig. 10 is a schematic diagram of a hardware composition structure of the terminal according to the embodiment of the present invention, as shown in fig. 10, a terminal 100 includes a memory 103, a processor 102, and a computer program stored in the memory 103 and capable of running on the processor 102; the processor 102 implements the method provided by one or more of the above technical solutions when executing the program.
It should be noted that, the specific steps implemented when the processor 102 executes the program have been described in detail above, and are not described herein again.
It is understood that the terminal 100 further includes a communication interface 101, and the communication interface 101 is used for information interaction with other devices; meanwhile, various components in the terminal 100 are coupled together by a bus system 104. It will be appreciated that the bus system 104 is configured to enable connected communication between these components. The bus system 104 includes a power bus, a control bus, a status signal bus, and the like, in addition to the data bus.
It will be appreciated that the memory 103 in this embodiment may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may 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 (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration 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), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The described memory for embodiments of the present invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed in the above embodiments of the present invention may be applied to the processor 102, or implemented by the processor 102. The processor 102 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 102. The processor 102 described above may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 102 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium that is located in a memory where the processor 102 reads information to perform the steps of the aforementioned methods in conjunction with its hardware.
The embodiment of the invention also provides a storage medium, in particular a computer storage medium, and more particularly a computer readable storage medium. Stored thereon are computer instructions, i.e. computer programs, which when executed by a processor perform the methods provided by one or more of the above-mentioned aspects.
In the embodiments provided in the present invention, it should be understood that the disclosed method and intelligent device may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
It should be noted that: "first," "second," and the like are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
In addition, the technical solutions described in the embodiments of the present invention may be arbitrarily combined without conflict.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (13)

1. A method for controlling a terminal, the method comprising:
when a terminal starts a first Subscriber Identity Module (SIM) card and a second SIM card, acquiring a first target Public Land Mobile Network (PLMN) identifier of the first SIM card; acquiring a second target PLMN identification of a second SIM card;
judging whether the first SIM card and the second SIM card can reside in the same cell or not based on the first target PLMN identification and the second target PLMN identification;
when 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 initiating the idle state process to the SIM card not initiating the idle state process.
2. The method of claim 1, wherein the determining whether the first SIM card and the second SIM card can reside in the same cell based on the first target PLMN identity and the second target PLMN identity comprises:
taking a Home Public Land Mobile Network (HPLMN) identifier or a peer-to-peer home public land mobile network (EHPLMN) identifier of the first SIM card as the first target PLMN identifier; taking the HPLMN identifier or the EHPLMN identifier of the second SIM card as the second target PLMN identifier;
and when the first target PLMN identification is the same as the second target PLMN identification, determining that the first SIM card and the second SIM card can reside in the same cell.
3. The method of claim 1, wherein the determining whether the first SIM card and the second SIM card can reside in the same cell based on the first target PLMN identity and the second target PLMN identity comprises:
judging whether the first SIM card is in a roaming state; judging whether the second SIM card is in a roaming state or not;
when 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 EPLMN (Peer-to-Peer public land Mobile network) and the second SIM card can acquire the EPLMN, taking the EHPLMN or the HPLMN of the first SIM card as the first target PLMN identification and taking the EPLMN of the second SIM card as the second target PLMN identification;
and when the first target PLMN identification is the same as the second target PLMN identification, determining that the first SIM card and the second SIM card can reside in the same cell.
4. The method of claim 1, wherein the determining whether the first SIM card and the second SIM card can reside in the same cell based on the first target PLMN identity and the second target PLMN identity comprises:
judging whether the first SIM card is in a roaming state; judging whether the second SIM card is in a roaming state or not;
when the first SIM card is in a roaming state and the second SIM card is in the roaming state, if the first SIM card and the second SIM card can both acquire and use the EPLMN, taking the EPLMN of the first SIM card as the first target PLMN identification and taking the EPLMN of the second SIM card as the second target PLMN identification;
and when the first target PLMN identification is the same as a Visited Public Land Mobile Network (VPLMN) of a roaming place and the second target PLMN identification is the same as the VPLMN of the roaming place, determining that the first SIM card and the second SIM card can reside in the same cell.
5. The method according to claim 3 or 4, wherein the determining whether the first SIM card is in a roaming state; and judging whether the second SIM card is in a 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 residence;
judging whether the cell where the first SIM card resides is a shared network cell;
when the cell where the first SIM card resides is determined not to be a shared network cell, judging whether the first SIM card is in a roaming state; and judging whether the second SIM card is in a roaming state.
6. The method of claim 1, wherein the determining whether the first SIM card and the second SIM card can reside in the same cell based on the first target PLMN identity and the second target PLMN identity comprises:
acquiring at least two PLMN lists;
for each PLMN list in the at least two PLMN lists, judging whether the corresponding PLMN list contains the first target PLMN identification and the second target PLMN identification;
and when the corresponding PLMN list contains the first target PLMN identification and the second target PLMN identification, determining that the first SIM card and the second SIM card can be resided in the same cell.
7. The method of claim 6, wherein obtaining 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 residence;
judging whether the cell where the first SIM card resides is a shared network cell;
when the cell where the first SIM card resides is determined to be a shared network cell, at least two PLMN lists broadcasted by the shared network cell are obtained.
8. The method according to any of claims 1 to 7, wherein the controlling one of the first SIM card and the second SIM card to initiate an idle state procedure comprises:
when determining that one of the first SIM card and the second SIM card completes cell residence, controlling the SIM card which completes the cell residence in the first SIM card and the second SIM card to initiate an idle state process;
and when determining that the first SIM card and the second SIM card do not finish cell residence, controlling one of the first SIM card and the second SIM card to initiate an idle state process.
9. The method according to any one of claims 1 to 8, wherein after controlling one of the first SIM card and the second SIM card to initiate an idle state procedure and sending an execution result of the SIM card initiating the idle state procedure to the SIM card not initiating the idle state procedure, the method further comprises:
judging whether the first SIM card and the second SIM card establish connection with a network side;
and when the first SIM card and the second SIM card are determined to be connected with the network side, controlling 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.
10. A control apparatus of a terminal, comprising:
the terminal comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a first target PLMN identification of a first SIM card when the terminal uses the first SIM card and a second SIM card; acquiring a second target PLMN identification 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 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 initiating the idle state process to the SIM card not initiating the idle state process.
11. A terminal, comprising: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is adapted to perform the steps of the method of any one of claims 1 to 9 when running the computer program.
12. A storage medium having a computer program stored thereon, the computer program, when being executed by a processor, realizing the steps of the method according to any of the claims 1 to 9.
13. A chip, comprising: a control circuit and a memory for storing a computer program capable of running on the control circuit,
wherein the control circuitry is adapted to perform the steps of the method of any one of claims 1 to 9 when running the computer program.
CN202010383574.7A 2020-05-08 2020-05-08 Terminal control method and device, terminal, storage medium and chip Pending CN113630759A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010383574.7A CN113630759A (en) 2020-05-08 2020-05-08 Terminal control method and device, terminal, storage medium and chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010383574.7A CN113630759A (en) 2020-05-08 2020-05-08 Terminal control method and device, terminal, storage medium and chip

Publications (1)

Publication Number Publication Date
CN113630759A true CN113630759A (en) 2021-11-09

Family

ID=78377350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010383574.7A Pending CN113630759A (en) 2020-05-08 2020-05-08 Terminal control method and device, terminal, storage medium and chip

Country Status (1)

Country Link
CN (1) CN113630759A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2302973A1 (en) * 2009-09-28 2011-03-30 Samsung Electronics Co., Ltd. Apparatus and method for reducing power consumption in multi-mode portable terminal
WO2013010330A1 (en) * 2011-07-21 2013-01-24 展讯通信(上海)有限公司 Service operator determining method and residing method for multi-card mobile terminal
KR20150115675A (en) * 2014-04-03 2015-10-14 삼성전자주식회사 Method and apparatus for scanning in mobile communication terminal with sim cards
CN107182047A (en) * 2017-07-17 2017-09-19 青岛海信移动通信技术股份有限公司 The method for searching network and device of a kind of international roaming
CN109309913A (en) * 2018-09-18 2019-02-05 深圳市万普拉斯科技有限公司 Method, apparatus, computer equipment and the storage medium of more card Roaming Registration networks
CN110383887A (en) * 2019-06-11 2019-10-25 北京小米移动软件有限公司 Residence reselecting and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2302973A1 (en) * 2009-09-28 2011-03-30 Samsung Electronics Co., Ltd. Apparatus and method for reducing power consumption in multi-mode portable terminal
WO2013010330A1 (en) * 2011-07-21 2013-01-24 展讯通信(上海)有限公司 Service operator determining method and residing method for multi-card mobile terminal
KR20150115675A (en) * 2014-04-03 2015-10-14 삼성전자주식회사 Method and apparatus for scanning in mobile communication terminal with sim cards
CN107182047A (en) * 2017-07-17 2017-09-19 青岛海信移动通信技术股份有限公司 The method for searching network and device of a kind of international roaming
CN109309913A (en) * 2018-09-18 2019-02-05 深圳市万普拉斯科技有限公司 Method, apparatus, computer equipment and the storage medium of more card Roaming Registration networks
CN110383887A (en) * 2019-06-11 2019-10-25 北京小米移动软件有限公司 Residence reselecting and device

Similar Documents

Publication Publication Date Title
US11553408B2 (en) Method and user equipment for managing failure in registration for accessing network slice
US8805444B2 (en) Multi-sim multi-standby communication terminal, and synchronization device and method thereof
US8874167B2 (en) Method and system for multi-standby operation for a multi-SIM multi-standby communication device
US20150065106A1 (en) Linking user equipment contexts associated with the same physical device
WO2018176689A1 (en) Information processing method and relevant devices and computer program
WO2012048556A1 (en) Method and mobile communication terminal for accelerating cell search
CN111194078A (en) Network registration method, terminal and storage medium
US9288745B2 (en) Cell search method of terminal and related device and system
CN112367693A (en) Network residing method, device, terminal equipment and storage medium
WO2018177431A1 (en) Power-saving method for user terminal and device
CN113873494A (en) Network registration method, device, terminal and storage medium
CN109155962B (en) HPLMN reselection method and terminal equipment
CN111263434B (en) Network registration method, device, terminal and storage medium
CN112333792A (en) Method and device for processing network access failure
US20140106752A1 (en) Inter-rat reselection in mobile communication systems
US11330654B2 (en) Methods for performing mobility procedure in NSA mode and communications apparatus utilizing the same
JP4335954B1 (en) Location registration processing method and mobile station
CN111417104B (en) Data processing method, network equipment and terminal
EP3097728B1 (en) A method for reducing battery power consumption of user equipment (ue) during manual csg selection
WO2023070570A1 (en) Network searching method and communication apparatus
CN113630759A (en) Terminal control method and device, terminal, storage medium and chip
CN111642008B (en) Method, terminal and computer readable storage medium for monitoring paging
CN110933720B (en) Enhanced LTE maintainability while roaming
CN112512098A (en) Cell access method, device and terminal
US11856510B2 (en) Reduced power roaming by an accessory device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination