CN113518342A - SIM card switching method and terminal equipment - Google Patents

SIM card switching method and terminal equipment Download PDF

Info

Publication number
CN113518342A
CN113518342A CN202110481259.2A CN202110481259A CN113518342A CN 113518342 A CN113518342 A CN 113518342A CN 202110481259 A CN202110481259 A CN 202110481259A CN 113518342 A CN113518342 A CN 113518342A
Authority
CN
China
Prior art keywords
reference signal
signal received
received power
power set
sim card
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
CN202110481259.2A
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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN202110481259.2A priority Critical patent/CN113518342A/en
Publication of CN113518342A publication Critical patent/CN113518342A/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/20Transfer of user or subscriber data
    • H04W8/205Transfer to or from user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • 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

Landscapes

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

Abstract

The disclosure provides a switching method of a Subscriber Identity Module (SIM) card and terminal equipment. The method is applied to terminal equipment which comprises at least two card slots, and the SIM cards in the at least two card slots comprise a public network card and a special network card, and comprises the following steps: periodically determining a first reference signal receiving power set of a new air interface NR cell corresponding to a SIM card currently used for data connection and a second reference signal receiving power set of NR cells corresponding to other SIM cards within a preset time length; and if the fact that the reference signal received power in the first reference signal received power set and the reference signal received power in the second reference signal received power set do not meet the preset condition is determined according to the first reference signal received power set and the second reference signal received power set, carrying out SIM card switching operation. The SIM card switching is automatically realized, manual card switching by a user is not required, and the network connection efficiency and the user experience are improved.

Description

SIM card switching method and terminal equipment
Technical Field
The present invention relates to the field of communications network technologies, and in particular, to a method for switching an SIM card and a terminal device.
Background
The fifth generation mobile communication technology (5G) has the characteristics of high speed, low time delay and wide connection. And the vertical industry can be well enabled. The excellent performance of 5G is fully exerted, and the intelligent transformation of the traditional energy industry is realized. Many factories and mines are covered by 5G SA (independent networking) special networks, and the 5G SA special networks are generally deployed in main well roadways, underground fully mechanized mining surfaces and partial aboveground mining areas.
In general, the private network coverage area is only SA private network coverage. The public network of The ground mainly deploys The operator, and The public network can generally support The network standard of SA/NSA (non-independent networking)/LTE (Long Term Evolution)/3G (The 3 rd-Generation, third Generation mobile communication technology)/2G ((The 2nd Generation, second Generation mobile communication technology)) or The network standard of NSA/LTE/3G/2G, where there is a small-range location overlap between The public network area and The private network area, but in most cases, The coverage areas of The two networks are not overlapped.
In the prior art, since a public network and a private network are not covered in all areas, when a network coverage area where a terminal device is located is changed, a user needs to manually switch a subscriber identity module SIM card, thereby resulting in low network connection efficiency.
Disclosure of Invention
The exemplary embodiments of the present disclosure provide a method for switching an SIM card and a terminal device, which are used to solve the problem in the prior art that a user needs to manually switch an SIM card, so as to improve network connection efficiency.
A first aspect of the present disclosure provides a method for switching an SIM card, which is applied to a terminal device, where the terminal device includes at least two card slots, and an SIM card in the at least two card slots includes a public network card and a private network card, and the method includes:
periodically determining a first reference signal receiving power set of a new air interface NR cell corresponding to a SIM card currently used for data connection and a second reference signal receiving power set of NR cells corresponding to other SIM cards within a preset time length;
and if the fact that the reference signal received power in the first reference signal received power set and the reference signal received power in the second reference signal received power set do not meet the preset condition is determined according to the first reference signal received power set and the second reference signal received power set, carrying out SIM card switching operation.
In this embodiment, whether to perform the SIM card switching is determined by determining a first reference signal received power set of a new air interface NR cell corresponding to a SIM card currently used for network connection and a second reference signal received power set of NR cells corresponding to other SIM cards, and determining whether to perform the SIM card switching according to whether the first reference signal received power set and the second reference signal received power set satisfy a preset condition. Therefore, the SIM card can be automatically switched, and the user does not need to manually switch the SIM card, so that the network connection efficiency is improved.
In one embodiment, the method further comprises:
and if the reference signal received power in the first reference signal received power set and the reference signal received power in the second reference signal received power set are determined to meet the preset condition, not performing SIM card switching operation.
In this embodiment, when it is determined that the reference signal received powers in the first reference signal received power set and the reference signal received powers in the second reference signal received power set satisfy the preset condition, the SIM card switching operation is not performed, so as to ensure the efficiency of network connection.
In an embodiment, if it is determined that each reference signal received power in the first reference signal received power set and each reference signal received power in the second reference signal received power set do not satisfy a preset condition according to the first reference signal received power set and the second reference signal received power set, before performing a SIM card switching operation, the method further includes:
determining a reference sequence according to the reference signal received power in the first reference signal received power set, wherein the parameter sequence is determined according to an average value of the specified number of adjacent reference signal received powers in the first reference signal received power set;
and determining that each reference signal received power in the first reference signal received power set does not have an ascending trend by using the reference sequence, wherein the ascending trend is used for indicating that each reference signal received power is gradually increased.
In this embodiment, the reference sequence is determined by the reference signal received power in the first reference signal received power set, and the reference sequence is used to determine that each reference signal received power in the first reference signal received power set does not have a rising trend, so that the determined result is more accurate.
In one embodiment, the method further comprises:
and if the reference sequence is utilized to determine that the received power of each reference signal in the first reference signal received power set has a rising trend, the SIM card switching operation is not carried out.
In this embodiment, when it is determined that the received power of each reference signal in the first reference signal received power set has a rising trend, the SIM card switching operation is not performed, so as to ensure the efficiency of network connection.
In one embodiment, whether each reference signal received power in the first set of reference signal received powers has an ascending trend is determined by:
performing fitting operation on the reference sequence by using a preset fitting algorithm to obtain the first variation trend;
if the first variation trend is a downward trend or a steady trend, determining that the received power of each reference signal in the first reference signal received power set does not have an upward trend, wherein the downward trend is used for indicating that the received power of each reference signal gradually decreases, and the steady trend is used for indicating that the received power of each reference signal keeps unchanged in a specified range;
and if the first variation trend is an ascending trend, determining that each reference signal received power in the first reference signal received power set has an ascending trend, wherein the ascending trend is used for indicating that each reference signal received power gradually increases.
In this embodiment, a first variation trend is determined by a preset fitting algorithm, and whether each reference signal received power in the first reference signal received power set has an ascending trend is determined by the first variation trend, so that the determined result is more accurate.
In one embodiment, it is determined whether each reference signal received power in the first set of reference signal received powers and each reference signal received power in the second set of reference signal received powers satisfies a preset condition by:
determining the reference sequence and a first reference value according to the reference signal received power in the first reference signal received power set, wherein the parameter sequence is determined according to an average value of a specified number of adjacent reference signal received powers in the first reference signal received power set, and the first reference value is an average value of the specified reference signal received powers in the first reference signal received power set;
determining a second reference value according to the reference signal received power in the second reference signal received power set, wherein the second reference value is an average value of the designated reference signal received powers in the second reference signal received power set;
if the first reference value is smaller than the second reference value, determining that the reference signal received powers in the first reference signal received power set and the reference signal received powers in the second reference signal received power set do not satisfy the preset condition;
if the first reference value is not less than the second reference value, determining that each reference signal received power in the first reference signal received power set and each reference signal received power in the second reference signal received power set satisfy the preset condition.
In this embodiment, a first reference signal and a second reference signal are determined according to the reference signal received power in the first reference signal received power set and the reference signal received power in the second reference signal received power set, respectively, and it is determined whether each of the reference signal received powers in the first reference signal received power set and each of the reference signal received powers in the second reference signal received power set satisfy the preset condition according to the first reference signal and the second reference signal. Therefore, the determined result is more accurate, and the phenomenon of misjudgment is avoided.
In an embodiment, before the periodically determining a first reference signal received power set of a new air interface NR cell corresponding to a SIM card currently used for data connection and a second reference signal received power set of NR cells corresponding to other SIM cards within a preset time period, the method further includes:
and determining to acquire the data resident information of the SIM card currently used for data connection.
In this embodiment, it is determined that further determination is needed to be performed only when the data resident information of the SIM card currently used for data connection is acquired. Therefore, the judgment is also carried out under the condition that the card can be directly cut, and therefore, the computing resource can be saved.
In one embodiment, the method further comprises:
and if the data residence information is not acquired, carrying out SIM card switching operation.
In this embodiment, when the data residence information is not acquired, the SIM card switching operation is directly performed, and it is not necessary to determine whether to perform the card switching by using the first reference signal received power set and the second reference signal received power set, so that the calculation resources can be saved.
A second aspect of the present disclosure provides a terminal device comprising at least two card slots and a processor, wherein:
the at least two card slots are configured to load at least two SIM cards, wherein the at least two SIM cards comprise a public network card and a special network card;
the processor configured to:
periodically determining a first reference signal receiving power set of a new air interface NR cell corresponding to a SIM card currently used for data connection and a second reference signal receiving power set of NR cells corresponding to other SIM cards within a preset time length;
if it is determined that the reference signal received power in the first reference signal received power set and the reference signal received power in the second reference signal received power set do not meet a preset condition according to the first reference signal received power set and the second reference signal received power set, performing SIM card switching operation, wherein the rising trend is used for indicating that the reference signal received power gradually increases.
In one embodiment, the processor is further configured to:
and if the reference signal received power in the first reference signal received power set and the reference signal received power in the second reference signal received power set are determined to meet the preset condition, not performing SIM card switching operation.
In one embodiment, the processor is further configured to:
if it is determined that the reference signal received powers in the first reference signal received power set and the second reference signal received power set do not meet the preset condition according to the first reference signal received power set and the second reference signal received power set, before performing SIM card switching operation, determining a reference sequence according to the reference signal received power in the first reference signal received power set, where the parameter sequence is determined according to an average value of a specified number of adjacent reference signal received powers in the first reference signal received power set;
and determining that each reference signal received power in the first reference signal received power set does not have an ascending trend by using the reference sequence, wherein the ascending trend is used for indicating that each reference signal received power is gradually increased.
In one embodiment, the processor is further configured to:
and if the reference sequence is utilized to determine that the received power of each reference signal in the first reference signal received power set has a rising trend, the SIM card switching operation is not carried out.
In one embodiment, the processor is further configured to:
judging whether each reference signal received power in the first reference signal received power set has an ascending trend or not by the following method:
performing fitting operation on the reference sequence by using a preset fitting algorithm to obtain the first variation trend;
if the first variation trend is a downward trend or a steady trend, determining that the received power of each reference signal in the first reference signal received power set does not have an upward trend, wherein the downward trend is used for indicating that the received power of each reference signal gradually decreases, and the steady trend is used for indicating that the received power of each reference signal keeps unchanged in a specified range;
and if the first variation trend is an ascending trend, determining that each reference signal received power in the first reference signal received power set has an ascending trend, wherein the ascending trend is used for indicating that each reference signal received power gradually increases.
In one embodiment, the processor is further configured to:
determining whether each reference signal received power in the first set of reference signal received powers and each reference signal received power in the second set of reference signal received powers satisfies a preset condition by:
determining the reference sequence and a first reference value according to the reference signal received power in the first reference signal received power set, wherein the parameter sequence is determined according to an average value of a specified number of adjacent reference signal received powers in the first reference signal received power set, and the first reference value is an average value of the specified reference signal received powers in the first reference signal received power set;
determining a second reference value according to the reference signal received power in the second reference signal received power set, wherein the second reference value is an average value of the designated reference signal received powers in the second reference signal received power set;
if the first reference value is smaller than the second reference value, determining that the reference signal received powers in the first reference signal received power set and the reference signal received powers in the second reference signal received power set do not satisfy the preset condition;
if the first reference value is not less than the second reference value, determining that each reference signal received power in the first reference signal received power set and each reference signal received power in the second reference signal received power set satisfy the preset condition.
In one embodiment, the processor is further configured to:
and determining to acquire the data residence information of the SIM card currently used for data connection before determining the first reference signal receiving power set of the new air interface NR cell corresponding to the SIM card currently used for data connection and the second reference signal receiving power set of the NR cell corresponding to other SIM cards within a preset time period.
In one embodiment, the processor is further configured to:
and if the data residence information is not acquired, carrying out SIM card switching operation.
According to a third aspect provided by embodiments of the present disclosure, there is provided a computer storage medium storing a computer program for executing the method according to the first aspect.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic diagram of a network region in accordance with one embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure;
fig. 3 is one of the flow diagrams of a method for switching a SIM card according to an embodiment of the present disclosure;
fig. 4 is a second flowchart illustrating a method for switching a SIM card according to an embodiment of the disclosure;
fig. 5 is a schematic flow chart illustrating a process of determining whether each reference signal received power in the first set of reference signal received powers has an upward trend according to an embodiment of the disclosure;
fig. 6 is a third schematic flowchart of a method for switching a SIM card according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
The term "and/or" in the embodiments of the present disclosure describes an association relationship of associated objects, and means that there may be three relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The application scenario described in the embodiment of the present disclosure is for more clearly illustrating the technical solution of the embodiment of the present disclosure, and does not form a limitation on the technical solution provided in the embodiment of the present disclosure, and as a person having ordinary skill in the art knows, with the occurrence of a new application scenario, the technical solution provided in the embodiment of the present disclosure is also applicable to similar technical problems. In the description of the present disclosure, the term "plurality" means two or more unless otherwise specified.
In the prior art, since a public network and a private network do not cover all areas, when a network area where a terminal device is located changes, a user needs to manually switch a subscriber identity module SIM card, thereby resulting in low network connection efficiency.
Therefore, the present disclosure provides a method for switching an SIM card, which determines whether to perform a SIM card switching by determining a first reference signal received power set of a new air interface NR cell corresponding to an SIM card currently used for performing a network connection and a second reference signal received power set of NR cells corresponding to other SIM cards, and determining whether to perform the SIM card switching by determining whether the first reference signal received power set and the second reference signal received power set satisfy a preset condition. Therefore, the SIM card can be automatically switched, and the user does not need to manually switch the SIM card, so that the network connection efficiency and the user experience are improved.
Before the detailed description of the scheme of the present disclosure, a structure of a terminal device in the present disclosure is described, and the terminal device in the embodiment of the present disclosure may be a mobile phone, a tablet computer, or the like. Fig. 2 is a schematic structural diagram of a terminal device in the present disclosure. As shown in fig. 2, the terminal device in the embodiment of the present disclosure includes: a Radio Frequency (RF) circuit 210, a power supply 220, a processor 230, a memory 240, an input unit 250, a display unit 260, a camera 270, a communication interface 280, and a Wireless Fidelity (WiFi) module 290. Among them, the wireless fidelity module 290 is a wireless network module in the present disclosure.
Those skilled in the art will appreciate that the configuration of the terminal device shown in fig. 2 does not constitute a limitation of the terminal device, and that the terminal device provided by the embodiments of the present disclosure may include more or less components than those shown, or may combine some components, or may be arranged in different components.
The following specifically describes each constituent element of the terminal device 200 with reference to fig. 2:
the RF circuitry 210 may be used for receiving and transmitting data during a communication or conversation. Specifically, the RF circuit 210 sends downlink data of the base station to the processor 230 for processing; and in addition, sending the uplink data to be sent to the base station. Generally, the RF circuit 210 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
In addition, the RF circuit 210 may also communicate with a network and other terminals through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The WiFi technology belongs to a short-distance wireless transmission technology, and the terminal device 200 realizes Access Point (AP) through a WiFi module 290 (i.e., a wireless network module described in the foregoing of the present disclosure) to Access a data network. The WiFi module 290 may be used for receiving and transmitting data during communication.
The terminal device 200 may be physically connected to other terminals through the communication interface 280. Optionally, the communication interface 280 is connected to the communication interface of the other terminal through a cable, so as to implement data transmission between the terminal device 200 and the other terminal.
The terminal device 200 can implement a communication service, and the terminal device 200 needs to have a data transmission function, that is, the terminal device 200 needs to include a communication module inside. Although fig. 2 shows communication modules such as the RF circuit 210, the WiFi module 290, and the communication interface 280, it is understood that at least one of the above components or other communication modules (such as a bluetooth module) for realizing communication exists in the terminal device 200 for data transmission.
The memory 240 may be used to store software programs and modules. The processor 230 executes various functional applications and data processing of the terminal device 200 by executing the software programs and modules stored in the memory 240, and when the processor 230 executes the program codes in the memory 240, part or all of the processes in fig. 2 of the embodiments of the present disclosure can be implemented.
Alternatively, the memory 240 may mainly include a program storage area and a data storage area. Wherein, the storage program area can store an operating system, various application programs (such as communication application), various modules for WLAN connection, and the like; the storage data area may store data created according to the use of the terminal, and the like.
Further, the memory 240 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 250 may be used to receive numeric or character information input by a user and generate key signal inputs related to user settings and function control of the terminal apparatus 200.
Alternatively, the input unit 250 may include a touch panel 251 and other input terminals 252.
The touch panel 251, also referred to as a touch screen, may collect touch operations of a user (for example, operations of the user on or near the touch panel 251 using any suitable object or accessory such as a finger, a stylus pen, etc.) and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 251 may include two parts, namely, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 230, and can receive and execute commands sent by the processor 230. In addition, the touch panel 251 may be implemented by various types, such as resistive, capacitive, infrared, and surface acoustic wave.
Optionally, the other input terminals 252 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 260 may be used to display information input by a user or information provided to a user and various menus of the terminal apparatus 200. The display unit 260 is a display system of the terminal device 200, and is used for presenting an interface to implement human-computer interaction.
The display unit 260 may include a display panel 261. Alternatively, the Display panel 261 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
Further, the touch panel 251 may cover the display panel 261, and when the touch panel 251 detects a touch operation on or near the touch panel 251, the touch panel transmits the touch operation to the processor 230 to determine the type of the touch event, and then the processor 230 provides a corresponding visual output on the display panel 261 according to the type of the touch event.
Although the touch panel 251 and the display panel 261 are shown as two separate components in fig. 2 to implement the input and output functions of the terminal device 200, in some embodiments, the touch panel 251 and the display panel 261 may be integrated to implement the input and output functions of the terminal device 200.
The processor 230 is a control center of the terminal device 200, connects various components using various interfaces and lines, and performs various functions of the terminal device 200 and processes data by running or executing software programs and/or modules stored in the memory 240 and calling data stored in the memory 240, thereby implementing various services based on the terminal device.
Optionally, the processor 230 may include one or more processing units. Optionally, the processor 230 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like, and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 230.
The camera 270 is configured to implement a shooting function of the terminal device 200, and shoot a picture or a video.
The terminal device 200 further comprises a power supply 220, such as a battery, for powering the various components. Optionally, the power supply 220 may be logically connected to the processor 230 through a power management system, so as to implement functions of managing charging, discharging, power consumption, and the like through the power management system.
The terminal device 200 further comprises at least two card slots: a public network card slot 291 and a private network card slot 292, wherein the public network card slot 291 is used for loading a public network card, and the private network card slot 292 is used for loading a private network card.
Although not shown, the terminal device 200 may further include at least one sensor, which is not described in detail herein.
Fig. 3 is a schematic flow chart of the SIM card switching method of the present disclosure, where the method is applied to a terminal device, the terminal device includes at least two card slots, and the SIM cards in the at least two card slots include a public network card and a private network card, where it needs to be noted that the terminal device supports 5G, where the SIM card used for data connection may support SA/NSA/LTE/3G/2G, and other SIM cards support NSA/LTE/3G/2G. The method can comprise the following steps:
step 301: periodically determining a first reference signal receiving power set of a new air interface NR cell corresponding to a SIM card currently used for data connection and a second reference signal receiving power set of NR cells corresponding to other SIM cards within a preset time length;
for example, if the preset period is 5 seconds, within a duration of 5 seconds, the terminal device measures, according to the network configuration, the received power of each reference signal of a new air interface NR cell corresponding to the SIM card currently performing data connection, so as to obtain a first reference signal received power set. And measuring the received power of each reference signal of the NR cells corresponding to other SIMs to obtain a second reference signal received power set.
Step 302: and if the fact that the reference signal received power in the first reference signal received power set and the reference signal received power in the second reference signal received power set do not meet the preset condition is determined according to the first reference signal received power set and the second reference signal received power set, carrying out SIM card switching operation.
In one embodiment, determining whether each reference signal received power in the first set of reference signal received powers and each reference signal received power in the second set of reference signal received powers satisfy a preset condition may include:
step 401: determining the reference sequence and a first reference value according to the reference signal received power in the first reference signal received power set, and determining a second reference value according to the reference signal received power in the second reference signal received power set;
among them, it should be noted that:
(1) the parameter sequence is determined according to an average value of a specified number of adjacent reference signal received powers in the first reference signal received power set.
And averaging every adjacent specified number of RSRPs from the first reference signal received power RSRP within the specified time length, wherein the obtained average value is a reference sequence. If the obtained PSRP does not satisfy the specified number. Then all RSRPs are averaged to get the reference sequence. If no RSRP is acquired, the average value is set to 0, thereby obtaining the reference sequence.
For example, the first set of reference signal received powers includes 10 reference signal received powers { A }1,A2,A3,A4,A5That the reference sequence includes
Figure BDA0003049351990000141
(2) The first reference value is an average value of all reference signal received powers specified in the first reference signal received power set; the second reference value is an average value of each designated reference signal received power in the second reference signal received power set;
for example, the reference signal received power is designated as the reference signal received power of the second half of the first set of reference signal received powers. If the first reference signal received power set includes 10 reference signal received powers { A }1,A2,A3,A4,A5,A6,A7,A8,A9,A10Is then A6,A7,A8,A9,A10To specify the reference signal received power. Wherein the first reference value may be determined by equation (1):
the first reference value may be determined by equation (1):
Figure BDA0003049351990000142
wherein S is a first reference value, Am…AnA reference signal received power is assigned for each of the first set of reference signal received powers.
The method for determining the second reference value is the same as the method for determining the first reference value, and the details of the disclosure are not repeated herein.
Step 402: judging whether the first reference value is smaller than the second reference value, if not, executing a step 403, and if so, executing a step 404;
step 403: determining that each reference signal received power in the first set of reference signal received powers and each reference signal received power in the second set of reference signal received powers satisfies the preset condition;
step 404: determining that each reference signal received power in the first reference signal received power set and each reference signal received power in the second reference signal received power set do not satisfy the preset condition.
For example, a first reference value is determined to be a, a second reference value is determined to be B, and if a is greater than or equal to B, it is determined that each reference signal received power in the first reference signal received power set and each reference signal received power in the second reference signal received power set satisfy the preset condition. If A is less than or equal to B, determining that the reference signal received powers in the first reference signal received power set and the second reference signal received power set do not satisfy the preset condition.
It should be noted that, the terminal device includes two card slots for example. If the signal intensity of the NR cell corresponding to the SIM performing the data connection is measured to be I and the signal intensity of the NR cell corresponding to the other card is measured to be J within the preset time length. Then the number of reference signal received powers in the first set of reference signal received powers is no greater than I and the number of reference signal received powers in the second set of reference signal received powers is no greater than J.
To save computational resources, in one embodiment, prior to performing step 302, a reference sequence is determined according to the reference signal received powers in the first reference signal received power set, wherein the parameter sequence is determined according to an average value of a specified number of adjacent reference signal received powers in the first reference signal received power set; and determining that each reference signal received power in the first reference signal received power set does not have an ascending trend by using the reference sequence, wherein the ascending trend is used for indicating that each reference signal received power is gradually increased.
In one embodiment, the determining whether each reference signal received power in the first reference signal received power set has an ascending trend may be performed by the following steps, as shown in fig. 5:
step 501: performing fitting operation on the reference sequence by using a preset fitting algorithm to obtain the first variation trend;
the fitting algorithm in this embodiment may be applied to the present embodiment as long as the fitting algorithm can perform fitting operation on the reference sequence to obtain the first variation trend, and this embodiment is not limited herein.
Wherein the first trend of change comprises one of an upward trend, a downward trend, and a steady trend; the ascending trend is used for indicating that the received power of each reference signal is gradually increased, the descending trend is used for indicating that the received power of each reference signal is gradually decreased, and the smooth trend is used for indicating that the received power of each reference signal is kept unchanged in a specified range.
Step 502: judging whether the first change trend is an ascending trend, if so, executing a step 503, and if not, executing a step 504;
step 503: determining that each reference signal received power in the first set of reference signal received powers has an upward trend.
In one embodiment, if it is determined that each reference signal received power in the first reference signal received power set has an upward trend, the SIM card switching operation is not performed.
Step 504: determining that each reference signal received power in the first set of reference signal received powers does not have an upward trend.
In one embodiment, to avoid wasting resources, it is determined to acquire the data residence information of the SIM card currently used for data connection before performing step 301.
The data residing information in this embodiment refers to 5G residing information (SA/NSA) in this embodiment.
In one embodiment, if the data residence information is not acquired, SIM card switching operation is performed. The following two cases are included:
the first condition is as follows: and if other resident information is acquired, namely one of the 4G resident information (TLE), the 3G resident information (3G) and the 2G resident information (2G), directly switching the SIM card.
Case two: if the data residence information is null, that is, if no data residence information is acquired, the SIM card is directly switched.
For further understanding of the technical solution of the present disclosure, the following detailed description with reference to fig. 6 may include the following steps:
step 601: judging to obtain data residence information of the SIM card currently used for data connection, if so, executing step 602, and if not, executing step 609;
step 602: periodically determining a first reference signal receiving power set of a new air interface NR cell corresponding to a SIM card currently used for data connection and a second reference signal receiving power set of NR cells corresponding to other SIM cards within a preset time length;
step 603: determining a reference sequence according to the reference signal received power in the first reference signal received power set, wherein the parameter sequence is determined according to an average value of the specified number of adjacent reference signal received powers in the first reference signal received power set;
step 604: performing fitting operation on the reference sequence by using a preset fitting algorithm to obtain the first variation trend;
wherein the first trend of change comprises one of an upward trend, a downward trend, and a steady trend; the ascending trend is used for indicating that the received power of each reference signal is gradually increased, the descending trend is used for indicating that the received power of each reference signal is gradually decreased, and the smooth trend is used for indicating that the received power of each reference signal is kept unchanged in a specified range.
Step 605: judging whether the first change trend is an ascending trend, if so, executing step 608, and if not, executing step 606;
step 606: determining the reference sequence and a first reference value according to the reference signal received power in the first reference signal received power set, and determining a second reference value according to the reference signal received power in the second reference signal received power set;
step 607: judging whether the first reference value is smaller than the second reference value, if so, executing step 609, otherwise, executing step 608;
step 608: SIM card switching operation is not carried out;
step 609: and carrying out SIM card switching operation.
In the following scenarios, the terminal device includes two card slots, and the SIM card performing data connection supports the network standard of SA/NSA/LTE/3G/2G, and the other card supports the network standard of NSA/LTE/3G/2G, taking the network coverage area in fig. 1 as an example to describe:
it should be noted that: the public network card can only carry out data connection in a public network, and the special network card can only carry out data connection in a special network.
Scene one: the SIM card currently performing data connection is a public network card.
(1) When the terminal equipment is in the area A: since the area a is a public network area, the public network card acquires data residence information (i.e., 5G signals) for performing current data connection, and the private network card cannot acquire the data residence information, so that the private network card has no signal, and at this time, whether to perform card switching can be determined by using a first reference signal receiving power set of a new air interface NR cell corresponding to the SIM card currently used for performing data connection and a second reference signal receiving power set of an NR cell corresponding to another SIM card.
(2) When the terminal equipment is in the area B: since the area B is a private network area and the SIM card currently performing data connection is a public network card, the public network card does not have a 5G signal in the area B (i.e., data resident information for performing current data connection is not acquired). The private network area only supports the network system of the SA, but the private network card is not the SIM card for data connection, so the network system supported by the private network card is the network system of NSA/LTE/3G/2G, and the private network card does not have the network system of the SA, so the private network card has no signal in the area B. And directly switching the SIM cards because the SIM card currently carrying out data connection does not acquire the data residence information.
(3) When the terminal equipment is in the area C: since the area C is an overlapping area of the public network and the private network, the public network card has a 5G signal in the area C (i.e., can acquire data residing information for performing the current data connection), and the private network card also has a 5G signal in the area C (i.e., can acquire data residing information for performing the current data connection). At this time, whether to perform card switching may be determined according to a first reference signal received power set of a new air interface NR cell corresponding to the SIM card currently used for data connection and a second reference signal received power set of NR cells corresponding to other SIM cards.
Scene two: the SIM card for data connection is a special network card.
(1) When the terminal equipment is in the area A: since the area a is a public network area, the private network card does not have a 5G signal (i.e., cannot acquire data resident information for performing current data connection) when the area a is used, and the public network card has a 5G signal (i.e., can acquire data resident information for performing current data connection) when the area a is used, so that the SIM card can be directly switched at this time.
(2) When the terminal equipment is in the area B: since the area B is a private network area, the private network card has a 5G signal (i.e., can acquire data residence information for performing current data connection) in the area B, and the public network card does not have a 5G signal (i.e., cannot acquire data residence information for performing current data connection) in the area B, at this time, whether to perform card switching can be determined by using the first reference signal received power set of the new air interface NR cell corresponding to the SIM card currently used for performing data connection and the second reference signal received power set of the NR cell corresponding to the other SIM card.
(3) When the private network card is in the area C: since the area C is an overlapping area of the public network and the private network, the public network card has a signal in the area C (i.e., data residence information for performing the current data connection can be acquired), and the private network card also has a signal in the area C (i.e., data residence information for performing the current data connection can be acquired). At this time, whether to perform card switching may be determined according to a first reference signal received power set of a new air interface NR cell corresponding to the SIM card currently used for data connection and a second reference signal received power set of NR cells corresponding to other SIM cards.
Based on the same disclosure concept, the method for switching the SIM card according to the present disclosure can also be implemented by a device for switching a SIM card of a subscriber identity module. The effect of the switching device of the SIM card is similar to that of the aforementioned method, and is not repeated here.
In some possible embodiments, various aspects of a method for switching a SIM card provided by the present disclosure may also be implemented in the form of a program product including program code for causing a computer device to perform the steps of the method for switching a SIM card according to various exemplary embodiments of the present disclosure described above in this specification when the program product is run on the computer device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium includes, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable diskette, a hard disk, a random access computer storage media (RAM), a read-only computer storage media (ROM), an erasable programmable read-only computer storage media (EPROM or flash memory), an optical fiber, a portable compact disc read-only computer storage media (CD-ROM), an optical computer storage media piece, a magnetic computer storage media piece, or any suitable combination of the foregoing.
The program product for switching of the SIM card of the embodiments of the present disclosure may employ a portable compact disc read only computer storage medium (CD-ROM) and include program code, and may be run on an electronic device. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the consumer electronic device, partly on the consumer electronic device, as a stand-alone software package, partly on the consumer electronic device and partly on a remote electronic device, or entirely on the remote electronic device or server. In the case of remote electronic devices, the remote electronic devices may be connected to the consumer electronic device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external electronic device (e.g., through the internet using an internet service provider).
It should be noted that although several modules of the apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the modules described above may be embodied in one module, in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module described above may be further divided into embodiments by a plurality of modules.
Further, while the operations of the disclosed methods are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk computer storage media, CD-ROMs, optical computer storage media, and the like) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the present disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable computer storage medium that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable computer storage medium produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications can be made in the present disclosure without departing from the spirit and scope of the disclosure. Thus, if such modifications and variations of the present disclosure fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is intended to include such modifications and variations as well.

Claims (10)

1. A switching method of SIM cards of a subscriber identity module is applied to terminal equipment, the terminal equipment comprises at least two card slots, the SIM cards in the at least two card slots comprise a public network card and a special network card, and the method comprises the following steps:
periodically determining a first reference signal receiving power set of a new air interface NR cell corresponding to a SIM card currently used for data connection and a second reference signal receiving power set of NR cells corresponding to other SIM cards within a preset time length;
and if the fact that the reference signal received power in the first reference signal received power set and the reference signal received power in the second reference signal received power set do not meet the preset condition is determined according to the first reference signal received power set and the second reference signal received power set, carrying out SIM card switching operation.
2. The method of claim 1, further comprising:
and if the reference signal received power in the first reference signal received power set and the reference signal received power in the second reference signal received power set are determined to meet the preset condition, not performing SIM card switching operation.
3. The method of claim 1, wherein if it is determined that the reference signal received powers in the first reference signal received power set and the second reference signal received power set do not satisfy a predetermined condition according to the first reference signal received power set and the second reference signal received power set, before performing a SIM card switching operation, the method further comprises:
determining a reference sequence according to the reference signal received power in the first reference signal received power set, wherein the parameter sequence is determined according to an average value of the specified number of adjacent reference signal received powers in the first reference signal received power set;
and determining that each reference signal received power in the first reference signal received power set does not have an ascending trend by using the reference sequence, wherein the ascending trend is used for indicating that each reference signal received power is gradually increased.
4. The method of claim 3, further comprising:
and if the reference sequence is utilized to determine that the received power of each reference signal in the first reference signal received power set has a rising trend, the SIM card switching operation is not carried out.
5. The method according to claim 3 or 4, wherein it is determined whether each reference signal received power in the first set of reference signal received powers has an ascending trend by:
performing fitting operation on the reference sequence by using a preset fitting algorithm to obtain the first variation trend;
if the first variation trend is a downward trend or a steady trend, determining that the received power of each reference signal in the first reference signal received power set does not have an upward trend, wherein the downward trend is used for indicating that the received power of each reference signal gradually decreases, and the steady trend is used for indicating that the received power of each reference signal keeps unchanged in a specified range;
and if the first variation trend is an ascending trend, determining that each reference signal received power in the first reference signal received power set has an ascending trend, wherein the ascending trend is used for indicating that each reference signal received power gradually increases.
6. The method according to any one of claims 1 or 2, wherein determining whether each of the first set of reference signal received powers and each of the second set of reference signal received powers satisfies a predetermined condition is performed by:
determining the reference sequence and a first reference value according to the reference signal received power in the first reference signal received power set, wherein the parameter sequence is determined according to an average value of a specified number of adjacent reference signal received powers in the first reference signal received power set, and the first reference value is an average value of the specified reference signal received powers in the first reference signal received power set;
determining a second reference value according to the reference signal received power in the second reference signal received power set, wherein the second reference value is an average value of the designated reference signal received powers in the second reference signal received power set;
if the first reference value is smaller than the second reference value, determining that the reference signal received powers in the first reference signal received power set and the reference signal received powers in the second reference signal received power set do not satisfy the preset condition;
if the first reference value is not less than the second reference value, determining that each reference signal received power in the first reference signal received power set and each reference signal received power in the second reference signal received power set satisfy the preset condition.
7. The method according to claim 1, wherein before the periodically determining a first reference signal received power set of a new air interface NR cell corresponding to a SIM card currently used for data connection and a second reference signal received power set of an NR cell corresponding to another SIM card within a preset time period, the method further includes:
and determining to acquire the data resident information of the SIM card currently used for data connection.
8. The method of claim 7, further comprising:
and if the data residence information is not acquired, carrying out SIM card switching operation.
9. A terminal device, comprising at least two card slots and a processor, wherein:
the at least two card slots are configured to load at least two SIM cards, wherein the at least two SIM cards comprise a public network card and a special network card;
the processor configured to:
periodically determining a first reference signal receiving power set of a new air interface NR cell corresponding to a SIM card currently used for data connection and a second reference signal receiving power set of NR cells corresponding to other SIM cards within a preset time length;
and if the fact that the reference signal received power in the first reference signal received power set and the reference signal received power in the second reference signal received power set do not meet the preset condition is determined according to the first reference signal received power set and the second reference signal received power set, carrying out SIM card switching operation.
10. The terminal device of claim 9, wherein the processor is further configured to:
and if the reference signal received power in the first reference signal received power set and the reference signal received power in the second reference signal received power set are determined to meet the preset condition, not performing SIM card switching operation.
CN202110481259.2A 2021-04-30 2021-04-30 SIM card switching method and terminal equipment Pending CN113518342A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110481259.2A CN113518342A (en) 2021-04-30 2021-04-30 SIM card switching method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110481259.2A CN113518342A (en) 2021-04-30 2021-04-30 SIM card switching method and terminal equipment

Publications (1)

Publication Number Publication Date
CN113518342A true CN113518342A (en) 2021-10-19

Family

ID=78063891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110481259.2A Pending CN113518342A (en) 2021-04-30 2021-04-30 SIM card switching method and terminal equipment

Country Status (1)

Country Link
CN (1) CN113518342A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140080485A1 (en) * 2012-09-19 2014-03-20 Samsung Electronics Co., Ltd Electronic device and method for changing network connection
WO2017012532A1 (en) * 2015-07-23 2017-01-26 努比亚技术有限公司 Dual-sim-dual-standby terminal and data communication method
CN106937337A (en) * 2015-12-30 2017-07-07 华为技术有限公司 The method and user equipment of a kind of cell switching control
CN107277880A (en) * 2017-07-26 2017-10-20 奇酷互联网络科技(深圳)有限公司 The method, device and mobile terminal of data network switching
CN109151954A (en) * 2018-10-16 2019-01-04 奇酷互联网络科技(深圳)有限公司 Mobile terminal and its double card method for switching network and storage medium
CN112243278A (en) * 2020-10-16 2021-01-19 Oppo广东移动通信有限公司 Cell search method, device, chip, mobile terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140080485A1 (en) * 2012-09-19 2014-03-20 Samsung Electronics Co., Ltd Electronic device and method for changing network connection
WO2017012532A1 (en) * 2015-07-23 2017-01-26 努比亚技术有限公司 Dual-sim-dual-standby terminal and data communication method
CN106937337A (en) * 2015-12-30 2017-07-07 华为技术有限公司 The method and user equipment of a kind of cell switching control
CN107277880A (en) * 2017-07-26 2017-10-20 奇酷互联网络科技(深圳)有限公司 The method, device and mobile terminal of data network switching
CN109151954A (en) * 2018-10-16 2019-01-04 奇酷互联网络科技(深圳)有限公司 Mobile terminal and its double card method for switching network and storage medium
CN112243278A (en) * 2020-10-16 2021-01-19 Oppo广东移动通信有限公司 Cell search method, device, chip, mobile terminal and storage medium

Similar Documents

Publication Publication Date Title
CN108430101B (en) Antenna closing method and device, storage medium and electronic equipment
EP3416042A1 (en) Mobile terminal, method of controlling same, and computer-readable storage medium
CN106332307B (en) Method for accessing application program to network and mobile terminal
CN107302628B (en) Application function control method and related product
CN104850434A (en) Method and apparatus for downloading multimedia resources
CN105306682A (en) Method and device for automatically disconnecting network connection
CN109992370A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN113507720B (en) Terminal measurement mode management method and device, storage medium and electronic terminal
CN107172671A (en) A kind of channel switching method, device, storage medium and terminal
CN106961710B (en) Network access method and terminal
CN111787542A (en) Service data transmission method, device, storage medium and terminal equipment
CN113490266A (en) Method and device for adjusting uplink power level and electronic equipment
CN106095567B (en) A kind of distribution method and mobile terminal of installation task
CN104346128A (en) Executing method and executing device of sound events
CN113518342A (en) SIM card switching method and terminal equipment
CN110045811B (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN106454799B (en) Information processing method and device
CN107659996B (en) Channel access method and equipment
CN109565826B (en) Data transmission method and related product
CN106817370B (en) Method and device for transmitting network data
CN113613310B (en) WIFI connection method and device, storage medium and mobile terminal
CN111836300B (en) Network switching method and communication terminal
CN112261634B (en) Bluetooth transmission control method and device, terminal equipment and storage medium
CN104871636B (en) A kind of method, terminal, the network equipment and the system of secondary carrier change
CN111293736B (en) Method and equipment for controlling temperature

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20211019

RJ01 Rejection of invention patent application after publication