CN112311934A - Data card switching method, intelligent terminal and computer readable storage medium - Google Patents

Data card switching method, intelligent terminal and computer readable storage medium Download PDF

Info

Publication number
CN112311934A
CN112311934A CN202011067667.5A CN202011067667A CN112311934A CN 112311934 A CN112311934 A CN 112311934A CN 202011067667 A CN202011067667 A CN 202011067667A CN 112311934 A CN112311934 A CN 112311934A
Authority
CN
China
Prior art keywords
data card
parameter
preset condition
state
signal quality
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
CN202011067667.5A
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.)
Chongqing Chuanyin Communication Technology Co ltd
Original Assignee
Chongqing Chuanyin Communication 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 Chongqing Chuanyin Communication Technology Co ltd filed Critical Chongqing Chuanyin Communication Technology Co ltd
Priority to CN202011067667.5A priority Critical patent/CN112311934A/en
Publication of CN112311934A publication Critical patent/CN112311934A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a data card switching method, an intelligent terminal and a computer readable storage medium, wherein the method is applied to the intelligent terminal and comprises the following steps: s1, detecting whether the current operation state parameter of a first data card meets a first preset condition, wherein the first data card bears the current data service of the intelligent terminal; s2, if yes, detecting whether the current operation state parameter of the second data card meets a second preset condition; and S3, if yes, adjusting the data card bearing the data service of the intelligent terminal from the first data card to the second data card. According to the embodiment of the application, the data cards can be intelligently and automatically switched, the normal operation of data services is guaranteed, and the timeliness and effectiveness of user communication are improved.

Description

Data card switching method, intelligent terminal and computer readable storage medium
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to a data card switching method, an intelligent terminal, and a computer-readable storage medium.
Background
With the rapid development of science and technology and the improvement of the living standard of people, a multi-card mobile terminal has been pursued by most people, and the multi-card mobile terminal supports the simultaneous insertion of more than 1 Subscriber Identity Module (SIM) card. Taking a dual-card dual-standby mobile terminal as an example, at the same time, one SIM card in the mobile terminal is a data card with data communication service, and the other SIM card is a non-data card without data peer-to-peer service. When the network condition of the data card bearing the data communication service is poor, the other data card can be used for bearing the data communication service; but currently, the switching can only be performed manually by a user; manual switching is inefficient.
The foregoing description is provided for general background information and is not admitted to be prior art.
Disclosure of Invention
In view of the above technical problems, the present application provides a data card switching method, an intelligent terminal, and a computer-readable storage medium, which can intelligently implement automatic switching of data cards and prevent a user from missing important information or a telephone call.
In order to solve the technical problem, the present application provides a data card switching method, which is applied to an intelligent terminal, and the method includes:
s1, detecting whether the current operation state parameter of a first data card meets a first preset condition, wherein the first data card bears the current data service of the intelligent terminal;
s2, if yes, detecting whether the current operation state parameter of the second data card meets a second preset condition;
and S3, if yes, adjusting the data card bearing the data service of the intelligent terminal from the first data card to the second data card.
Optionally, the operating state parameters of the first data card include: a network residing state, the step S1, comprising:
detecting whether the resident network state of the first data card is an un-resident state;
and if so, determining that the first preset condition is met.
Optionally, before the step of determining that the current operating state parameter of the first data card meets the first preset condition, the method further includes:
acquiring the duration of the first data card in the non-resident state;
and if the duration is greater than or equal to a preset time threshold, determining that the current operating state parameter of the first data card meets the first preset condition.
Optionally, the operating state parameters of the first data card further include: a signal strength parameter and/or a signal quality parameter,
if the network residing state of the first data card is the residing state, the step S1 further includes:
acquiring a signal intensity parameter and/or a signal quality parameter of the first data card;
and if the signal strength parameter is less than or equal to a signal strength threshold value and/or the signal quality parameter is less than or equal to a signal quality threshold value, determining that the first preset condition is met.
Optionally, before the step of determining that the first preset condition is met, the method further includes:
acquiring the duration of the first data card when the signal strength is less than or equal to a signal strength threshold value and/or the signal quality is less than or equal to the signal quality threshold value;
and if the duration is greater than or equal to a preset time threshold, determining that the first preset condition is met.
Optionally, the operating state parameters of the second data card include: a network residing state, the step S2, comprising:
detecting whether the resident network state of the second data card is a resident state;
if yes, the second preset condition is met.
Optionally, before the step of meeting the second preset condition, the method further includes:
acquiring a network mode in the resident state;
and if the network mode is a preset network mode, determining that the second preset condition is met.
Optionally, the operating state parameters of the second data card further include: before the step of satisfying the second preset condition, the signal strength parameter and/or the signal quality parameter further includes:
acquiring a signal intensity parameter and/or a signal quality parameter of the second data card;
determining that the second preset condition is met if the signal strength parameter is greater than or equal to a signal strength threshold and/or if the signal quality parameter is greater than or equal to a signal quality threshold.
Optionally, before the step of determining that the second preset condition is met, the method further includes:
acquiring the duration of the second data card when the signal strength is greater than or equal to the signal strength threshold value and/or the signal quality is greater than or equal to the signal quality threshold value;
and if the duration is greater than or equal to a preset time threshold, determining that the second preset condition is met.
Optionally, the step S3 includes:
detecting a display state and/or an application running state of the intelligent terminal;
and if the intelligent terminal is in a bright screen state and/or foreground running application is the target type application, adjusting the data card bearing the data service of the intelligent terminal from the first data card to the second data card.
Optionally, after the step of S3, the method further includes:
acquiring new operation state parameters of the first data card;
and if the new state parameter is detected to meet a third preset condition, adjusting the data card bearing the data service of the intelligent terminal from the second data card to the first data card.
Optionally, the acquiring new operation state parameters of the first data card includes:
acquiring an electric quantity value of the intelligent terminal;
if the electric quantity value is smaller than or equal to the electric quantity threshold value, acquiring a new operation state parameter of the first data card according to a preset time interval; and/or the presence of a gas in the gas,
and if the electric quantity value is larger than the electric quantity threshold value, acquiring new operation state parameters of the first data card in real time.
Optionally, the new operating state parameters include: a network residing state, wherein the detecting that the new state parameter satisfies a third preset condition comprises:
detecting whether the resident network state of the first data card is a resident state;
and if so, determining that the third preset condition is met.
Optionally, the new operating state parameter further includes: before the step of determining that the third preset condition is met, the signal strength parameter and/or the signal quality parameter includes:
acquiring a signal intensity parameter and/or a signal quality parameter of the first data card;
determining that the third preset condition is met if the signal strength parameter is greater than or equal to a target signal strength threshold and/or if the signal quality parameter is greater than or equal to a target signal quality threshold.
Optionally, before the step of determining that the third preset condition is met, the method includes:
acquiring the duration of the first data card when the signal strength is greater than or equal to the target signal strength threshold value and/or the signal quality parameter is greater than or equal to the target signal quality threshold value;
and if the duration is greater than or equal to a target time threshold, determining that the third preset condition is met.
The application also provides a data card switching device, the device includes:
the first detection module is used for detecting whether the current operation state parameter of the first data card meets a first preset condition, and the first data card bears the current data service of the intelligent terminal;
the second detection module is used for detecting whether the current running state parameter of the second data card meets a second preset condition or not when the first preset condition is met;
and the adjusting module is used for adjusting the data card bearing the data service of the intelligent terminal from the first data card to the second data card when the second preset condition is met.
The application also provides an intelligent terminal, which comprises a memory and a processor, wherein the memory is used for storing a computer program, the computer program comprises program instructions, and the processor is configured for calling the program instructions and executing the data card switching method.
The present application also provides a computer-readable storage medium having stored thereon one or more instructions adapted to be loaded by a processor and to perform the data card switching method as described above.
As described above, the data card switching method of the present application is applied to an intelligent terminal, where a first data card bears a current data service of the intelligent terminal, and detects whether a current operating state parameter of the first data card satisfies a first preset condition, if so, detects whether a current operating state parameter of a second data card satisfies a second preset condition, and if so, adjusts the data card bearing the data service of the intelligent terminal from the first data card to the second data card. Therefore, the method and the device can avoid the problem that important communication messages are missed by a user due to the fact that the data cards are manually switched, can intelligently automatically switch the data cards, ensure normal operation of data services, and improve timeliness and effectiveness of user communication.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly described below, 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 hardware structure of an intelligent terminal implementing various embodiments of the present application;
fig. 2 is a communication network system architecture diagram according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a data card switching method according to a first embodiment of the present application;
fig. 4 is a schematic flowchart of a data card switching method according to a second embodiment provided in the present application;
FIG. 5a is a schematic diagram of an interface of a first data card signal strength difference according to an embodiment of the present disclosure;
fig. 5b is a schematic interface diagram of adjusting a data card carrying data services from a first data card to a second data card according to an embodiment of the present application;
fig. 5c is a schematic interface diagram illustrating that the signal strength of the first data card is restored to a certain strength according to an embodiment of the present disclosure;
fig. 5d is a schematic interface diagram of adjusting a data card carrying data services from a second data card to a first data card according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a data switching apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another intelligent terminal provided in the embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings. With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the recitation of an element by the phrase "comprising an … …" does not exclude the presence of additional like elements in the process, method, article, or apparatus that comprises the element, and further, where similarly-named elements, features, or elements in different embodiments of the disclosure may have the same meaning, or may have different meanings, that particular meaning should be determined by their interpretation in the embodiment or further by context with the embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. The terms "or" and/or "as used herein are to be construed as inclusive or meaning any one or any combination. Thus, "A, B or C" or "A, B and/or C" means "any of the following: a; b; c; a and B; a and C; b and C; A. b and C ". An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or at least partially with respect to other steps or sub-steps of other steps.
It should be noted that step numbers such as S301 and S302 are used herein for the purpose of more clearly and briefly describing the corresponding contents, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform S302 first and then S301 in specific implementation, but these should be within the scope of the present application.
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
The smart terminal may be implemented in various forms. For example, the smart terminal described in the present application may include smart terminals such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and fixed terminals such as a Digital TV, a desktop computer, and the like.
While the following description will be given by way of example of a smart terminal, those skilled in the art will appreciate that the configuration according to the embodiments of the present application can be applied to a fixed type terminal in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of an intelligent terminal for implementing various embodiments of the present application, the intelligent terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the intelligent terminal architecture shown in fig. 1 does not constitute a limitation of the intelligent terminal, and that the intelligent terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The following specifically describes each component of the intelligent terminal with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the intelligent terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the smart terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the smart terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the smart terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The smart terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor may optionally adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1061 and/or the backlight when the smart terminal 100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the intelligent terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Optionally, the touch detection device detects a touch orientation of a user, detects a signal caused by a 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 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 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, and are not limited to these specific examples.
Alternatively, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the smart terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the smart terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the smart terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the smart terminal 100 or may be used to transmit data between the smart terminal 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a program storage area and a data storage area, and optionally, the program storage area may store an operating system, an application program (such as a sound playing function, an image playing function, and the like) required by at least one function, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 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 processor 110 is a control center of the intelligent terminal, connects various parts of the entire intelligent terminal using various interfaces and lines, and performs various functions of the intelligent terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the intelligent terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, optionally, the application processor mainly handles operating systems, user interfaces, application programs, etc., and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The intelligent terminal 100 may further include a power supply 111 (such as a battery) for supplying power to each component, and preferably, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
Although not shown in fig. 1, the smart terminal 100 may further include a bluetooth module or the like, which is not described herein.
In order to facilitate understanding of the embodiments of the present application, a communication network system on which the intelligent terminal of the present application is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present disclosure, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Alternatively, the eNodeB2021 may be connected with other enodebs 2022 through a backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. Optionally, the MME2031 is a control node that handles signaling between the UE201 and the EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present application is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above intelligent terminal hardware structure and communication network system, various embodiments of the present application are provided.
Referring to fig. 3, fig. 3 is a flowchart of a first data card switching method according to an embodiment of the present disclosure. The method of the embodiment of the present application may be executed by an intelligent terminal including a first data card and a second data card, and may be executed by a server, where the method may specifically include the following steps:
s301, detecting whether the current operation state parameter of the first data card meets a first preset condition.
In the embodiment of the application, the first data card bears the current data service of the intelligent terminal. The current operation state parameters of the first data card refer to some parameters generated in the current operation state of the first data card, for example, the operation state parameters may include network state parameters, which include a resident network state, a signal strength parameter, a signal quality parameter, a network mode, and the like. The first preset condition is preset by the system or a user-defined condition related to the operating state parameter of the first data card, and may be, for example, that the network residing state of the first data card is a non-residing state, that is, the first data card does not reside in any cell, and the intelligent terminal is in a network drop state, or may be other first preset conditions set according to actual situations. Whether the current operation state parameter of the first data card meets the first preset condition is detected, namely whether the resident network state, and/or the signal strength parameter, and/or the signal quality parameter, and/or the network mode of the first data card meets the first preset condition is detected. It can be understood that the data card and the non-data card are only cards for distinguishing the current data communication service, and therefore, at the moment of non-use, both the first data card and the second data card may be data cards, and only the current first data card carries the data service of the intelligent terminal, and then the data card is the data card, and the second data card does not carry the data communication service, and then the non-data card is the non-data card.
In an optional implementation manner, whether the electric quantity value of the intelligent terminal is greater than or equal to the electric quantity threshold is detected, if so, whether the current operation state parameter of the first data card meets a first preset condition is detected in real time, and if not, whether the current operation state parameter of the first data card meets the first preset condition is detected according to a preset time interval or periodically. In the embodiment of the application, whether the first data card meets the first preset condition or not is automatically detected, the electric quantity of the intelligent terminal is saved, and the service time of the terminal is prolonged.
It should be noted that, if the first preset condition is satisfied, step S302 is executed, otherwise, the process is ended.
S302, detecting whether the current operation state parameter of the second data card meets a second preset condition.
In this embodiment, the second data card refers to any one data card except the first data card in the smart terminal, that is, the smart terminal may include two or more data cards. The current operation state parameters of the second data card refer to some parameters generated in the current operation state of the second data card, for example, the operation state parameters may include network state parameters, which include a resident network state, a signal strength parameter, a signal quality parameter, a network mode, and the like. The second preset condition is a condition preset by the system or customized by the user regarding the operating state parameter of the first data card, and may be, for example, that the signal quality is greater than or equal to a threshold value. When detecting that the current operation state parameter of the first data card meets the first preset condition, detecting whether the current operation state parameter of the second data card meets the second preset condition, if so, executing step S303, otherwise, ending the process.
S303, adjusting the data card bearing the data service of the intelligent terminal from the first data card to a second data card.
In the embodiment of the application, when the current operation state parameter of the first data card meets the first preset condition, the current operation state parameter of the second data card meets the second preset condition, the data card carrying the data service of the intelligent terminal is adjusted from the first data card to the second data card, for example, the signal quality parameter of the first data card is greater than or equal to a first signal quality threshold, and the duration of the signal quality parameter greater than or equal to the first signal quality threshold is greater than or equal to a first preset time threshold, and the signal quality parameter of the second data card is greater than or equal to the second signal quality threshold for the duration, the first data card carrying the data service of the intelligent terminal is adjusted to be the second data card, and it should be noted that, for convenience of explanation, the signal quality threshold in the first preset condition is recorded as the first signal quality threshold, and the signal quality threshold in the second preset condition is recorded as the second signal quality threshold.
In an optional embodiment, the method may further comprise: detecting a display state and/or an application running state of the intelligent terminal; and if the intelligent terminal is in a bright screen state and/or foreground running application is the target type application, adjusting the data card bearing the data service of the intelligent terminal from the first data card to the second data card.
In this embodiment of the application, the display state of the intelligent terminal refers to that the intelligent terminal is in a bright screen state or a blank screen state, and the application running state of the intelligent terminal refers to that the intelligent terminal is currently running a certain application, for example, a user is chatting, and the current interface is in a chat interface, if the intelligent terminal is running the chat application. The target type of application refers to an application that requires a network, such as a software application like WeChat, QQ, microblog, etc. When the current running state parameter of the first data card meets a first preset condition, the current running state parameter of the second data card meets a second preset condition, and the intelligent terminal is in a bright screen state, the data card bearing the data service of the intelligent terminal is adjusted from the first data card to the second data card, so that the intelligent terminal can automatically adjust the first data card bearing the data service to the second data card meeting the second preset condition, important messages and calls are prevented from being missed by a user, and the use experience of the user is improved; and/or when the current running state parameter of the first data card meets a first preset condition, the current running state parameter of the second data card meets a second preset condition, and the foreground of the intelligent terminal runs an application with a target application type, the data card bearing the data service of the intelligent terminal is adjusted from the first data card to the second data card, so that the situation that a user uses the intelligent terminal to a greater extent, data communication is more important under the current situation, the intelligence of automatic switching of the data cards is improved, and the situation that the user mistakenly lights up a screen to switch the data cards and waste data resources is avoided.
In the embodiment of the application, a first data card in the intelligent terminal bears a current data service of the intelligent terminal, whether a current operation state parameter of the first data card meets a first preset condition is detected, if so, whether a current operation state parameter of a second data card meets a second preset condition is detected, and if so, the data card bearing the data service of the intelligent terminal is adjusted from the first data card to the second data card. Therefore, the method and the device can avoid the problem that important communication messages are missed by a user due to the fact that the data cards are manually switched, can intelligently automatically switch the data cards, ensure normal operation of data services, and improve timeliness and effectiveness of user communication.
Referring to fig. 4, fig. 4 is a flowchart of a second data card switching method according to an embodiment of the present application. The method of the embodiment of the present application may be executed by an intelligent terminal including a first data card and a second data card, and may be executed by a server, where the method may specifically include the following steps:
s401, detecting whether the residing network state of the first data card is the non-residing state.
In the application embodiment, it is detected whether the network residing state of the first data card is the non-residing state, and a residing detection result is obtained, where the residing detection result may include that the network residing state of the first data card is the residing state or the non-residing state. Optionally, if the residing detection result is the non-residing state, it may be determined that the first preset condition is satisfied. . In an optional implementation, the method may further include: and determining whether the current operating state parameter of the first data card meets the first preset condition according to the residence detection result. In the embodiment of the application, whether the first data card is not resident in the cell or not and is in a network drop state is determined according to the resident detection result, and if the first preset condition is that the resident network state of the first data card is in the non-resident state and the resident detection result indicates that the resident network state of the first data card is in the non-resident state, it is determined that the current operating state parameter of the first data card meets the first preset condition.
It should be noted that, if the residing detection result indicates that the residing network state of the first data card is the non-residing state, steps S402-S403 and S408-S417 are executed, or steps S402-S403, S408 and S411-S417 are executed, and when the residing detection result indicates that the residing network state of the first data card is the residing state, steps S404-S417 are executed, or steps S404-S408 and S411-S417 are executed.
S402, obtaining the duration of the first data card in the non-resident state.
In the embodiment of the application, when the first data card is detected to be in the non-resident state, timing is started, and the duration of the first data card in the non-resident state is determined.
And S403, if the duration is greater than or equal to the preset time threshold, determining that the current operation state parameter of the first data card meets a first preset condition.
In the embodiment of the application, if it is determined that the duration of the first data in the non-resident state is greater than or equal to a preset time threshold (for example, 5s, 7s, or the like), it indicates that the current intelligent terminal cannot perform data communication within the duration, and when the first preset condition is that the duration of the first data in the non-resident state is greater than or equal to the preset time threshold, it is determined that the current operating state parameter of the first data card meets the first preset condition, and it may be continuously detected whether the current operating state parameter of the second data card meets the second preset condition.
S404, acquiring a signal strength parameter and/or a signal quality parameter of the first data card.
As shown in fig. 5a, the signal strength parameter and/or the signal quality parameter of the first data card are obtained, and the signal strength parameter and/or the signal quality parameter of the first data card are determined to be less than or equal to the preset signal threshold and/or the preset strength threshold.
S405, whether the signal strength parameter is smaller than or equal to the signal strength threshold value and/or whether the signal quality parameter is smaller than or equal to the signal quality threshold value is detected.
In this embodiment of the present application, when it is detected that the network residing state of the first data card is the residing state, a signal strength parameter and/or a signal quality parameter of the first data card are obtained, and whether the signal strength parameter is less than or equal to a signal strength threshold is detected, so as to obtain a signal strength detection result, and/or whether the signal quality parameter is less than or equal to a signal quality threshold is detected, so as to obtain a signal quality detection result. Optionally, if the signal strength parameter is less than or equal to a signal strength threshold, and/or the signal quality parameter is less than or equal to a signal quality threshold, it is determined that the first preset condition is met. It should be noted that, for convenience of illustration, in the embodiment of the present application, the signal quality threshold in the first data card is taken as a first signal quality threshold, and the signal strength threshold is taken as a first signal strength threshold, when the first data card resides on LTE (Long Term Evolution), the first signal quality threshold may be a set from-15 dbm to-5 dbm, and the first signal strength threshold may be a set from-115 dbm to-100 dbm; when the first data card resides on a UMTS (Universal Mobile Telecommunications System), the first signal quality threshold may be one set of-10 dbm to 0dbm, and the first signal strength threshold may be one set of-95 dbm to-80 dbm; the first signal strength threshold may be a set of-90 dbm to 4dbm when the first data card resides on GSM (Global System for Mobile Communications).
In an optional implementation, the method may further include: and determining whether the first preset condition is met according to the signal strength detection result and/or the signal quality detection result.
In an optional embodiment, the determining whether the first preset condition is met according to the signal strength detection result and/or the signal quality detection result may include: if the signal strength parameter is less than or equal to the signal strength threshold value, and/or the signal quality parameter is less than or equal to the signal quality threshold value, determining that the signal strength detection result, and/or the signal quality detection result satisfies the first preset condition.
In the embodiment of the present application, the first preset condition may include that the signal strength parameter of the first data card is less than or equal to the signal strength threshold, and/or that the signal quality parameter of the first data card is less than or equal to the signal quality threshold. If the signal strength parameter is less than or equal to the signal strength threshold and/or if the signal quality parameter is less than or equal to the signal quality threshold, steps S406 to S407 are performed.
S406, acquiring the duration of the first data card when the signal strength is less than or equal to the signal strength threshold and/or the signal quality is less than or equal to the signal quality threshold.
S407, if the duration is greater than or equal to the preset time threshold, determining that a first preset condition is met.
In this embodiment, if it is detected that the signal quality parameter and/or the signal strength threshold of the first data card is less than or equal to the signal strength threshold, and the duration in the state where the signal strength is less than or equal to the signal strength threshold and/or the signal quality threshold is greater than or equal to the preset time threshold, it is determined that the current operating state parameter of the first data card satisfies the first preset condition. It should be noted that the preset time threshold range here may be the same as and/or different from the preset time threshold range in which the duration of the first data card in the non-resident state is greater than or equal to the preset time threshold.
S408, detecting whether the residing network state of the second data card is the residing state.
In the application embodiment, it is detected whether the residing network state of the second data card is the residing state, and a residing detection result is obtained, where the residing detection result may include that the residing network state of the second data card is the residing state or the non-residing state. Optionally, if the residing detection result is the residing state, it may be determined that the second preset condition is satisfied. In an optional implementation, the method may further include: and determining whether the current operating state parameter of the second data card meets the second preset condition according to the residence detection result. In the embodiment of the application, whether the second data card is not resident in the cell or not and is in a network drop state is determined according to the resident detection result, and if the second preset condition is that the resident network state of the second data card is the non-resident state and the resident detection result indicates that the resident network state of the second data card is the non-resident state, it is determined that the current operating state parameter of the second data card meets the second preset condition.
And if the residence detection result indicates that the residence network state of the second data card is the residence state, executing steps S409-S417, or executing steps S411-S417.
And S409, acquiring the network mode in the resident state.
In this embodiment, the network mode in the camping state may include a 2G network mode, a 3G network mode, a 4G network mode, a 5G network mode, and the like. When the residing network state of the second data card is the residing state, the network mode is obtained, so that the situation that the current data service is abnormally operated cannot be better solved because the network quality is not good after the second data card is switched to the second data card is avoided.
S410, judging whether the network mode is a preset network mode.
In this embodiment of the application, the preset network mode may include any one or more of a 3G network mode, a 4G network mode, and a 5G network mode. Optionally, if the network mode is a preset network mode, it is determined that the second preset condition is met. In an optional implementation manner, if the network mode is a preset network mode, it is determined whether the current operating state parameter of the second data card meets the second preset condition. In this embodiment of the application, the second preset condition may be that the network mode of the second data card is any one or more of a 3G network mode, a 4G network mode, and a 5G network mode, and if it is determined that the network mode of the second data card is the preset network mode, it may be determined that the current operating state parameter of the second data card satisfies the second preset condition.
In an optional embodiment, if the network mode is a preset network mode, steps S411 to S417 are performed.
S411, acquiring a signal strength parameter and/or a signal quality parameter of the second data card.
S412, detecting whether the signal strength parameter is greater than or equal to the signal strength threshold, and/or detecting whether the signal quality parameter is greater than or equal to the signal quality threshold.
In this embodiment of the present application, when it is detected that the network residing state of the second data card is the residing state, a signal strength parameter and/or a signal quality parameter of the second data card are obtained, and it is detected whether the signal strength parameter is greater than or equal to a signal strength threshold value, so as to obtain a signal strength detection result, and/or it is detected whether the signal quality parameter is greater than or equal to a signal quality threshold value, so as to obtain a signal quality detection result. Optionally, if the signal strength parameter is greater than or equal to a signal strength threshold, and/or if the signal quality parameter is greater than or equal to a signal quality threshold, it is determined that the second preset condition is met. It should be noted that, for convenience of illustration, in the embodiment of the present application, the signal quality threshold in the second data card is taken as the second signal quality threshold, and the signal strength threshold is taken as the second signal strength threshold, when the second data card resides on LTE (Long Term Evolution), the second signal quality threshold may be one set from-15 dbm to-5 dbm, and the second signal strength threshold may be one set from-115 dbm to-100 dbm; the second signal quality threshold may be a set of-10 dbm to 0dbm and the second signal strength threshold may be a set of-95 dbm to-80 dbm when the second data card resides on a UMTS (Universal Mobile Telecommunications System); the second signal strength threshold may be a set of-90 dbm to 4dbm when the second data card resides on GSM (Global System for Mobile Communications).
In an alternative embodiment, it is determined whether the second preset condition is satisfied according to the signal strength detection result and/or the signal quality detection result.
In the embodiment of the present application, the second preset condition may include that the signal strength parameter of the second data card is greater than or equal to the signal strength threshold, and/or that the signal quality parameter of the second data card is greater than or equal to the signal quality threshold. If the signal strength parameter is greater than or equal to the signal strength threshold and/or if the signal quality parameter is greater than or equal to the signal quality threshold, steps 413-S417 are executed.
S413, obtaining a duration of the second data card when the signal strength is greater than or equal to the signal strength threshold, and/or the signal quality of the second data card is greater than or equal to the signal quality threshold.
And S414, if the duration is greater than or equal to the preset time threshold, determining that a second preset condition is met.
In this embodiment of the application, if it is detected that the signal quality parameter and/or the signal strength threshold of the second data card is greater than or equal to the signal strength threshold, and the duration in the state where the signal strength is greater than or equal to the signal strength threshold and/or the signal quality threshold is greater than or equal to the preset time threshold, it is determined that the current operating state parameter of the second data card satisfies the second preset condition (as shown in fig. 5b, the data card carrying the data traffic of the smart terminal is adjusted from the first data card to the second data card). It should be noted that the preset time threshold range here may be the same as or different from the preset time threshold range in which the duration of the first data card in the non-resident state is greater than or equal to the preset time threshold, and may be the same as or different from the preset time threshold range in which the duration of the first data card in the state of the signal quality less than or equal to the signal quality threshold is greater than or equal to the preset time threshold range.
And S415, adjusting the data card bearing the data service of the intelligent terminal from the first data card to a second data card.
In the embodiment of the application, when the current operating state parameter of the first data card meets a first preset condition and the current operating state parameter of the second data card meets a second preset condition, the data card bearing the data service of the intelligent terminal is adjusted from the first data card to the second data card. For example, the first data card is a communication card (main card), the second data card is a mobile card, when the main card is used for data service, a user takes a mobile phone to enter an underground garage from the ground, and after the communication card is disconnected after entering the underground garage, the embodiment of the application can automatically switch the data service to the mobile card, so that the normal operation of the data service is ensured.
And S416, acquiring new operation state parameters of the first data card.
In this embodiment of the application, the new operation state parameter refers to an operation state parameter of the first data card obtained after the data card carrying the data service of the intelligent terminal is adjusted from the first data card to the second data card (as shown in fig. 5c, a signal of the first data card is being recovered, and a new operation state parameter of the first data card is obtained). In an optional implementation manner, the acquiring of the new operation status parameter of the first data card may include: acquiring an electric quantity value of the intelligent terminal; if the electric quantity value is smaller than or equal to the electric quantity threshold value, acquiring new operation state parameters of the first data card according to a preset time interval or periodicity; and/or if the electric quantity value is larger than the electric quantity threshold value, acquiring a new operation state parameter of the first data card in real time. Therefore, the electric quantity of the terminal can be saved, the service life of the terminal can be prolonged, and the automatic switching of the data card can be further promoted intelligently.
And S417, if the new operation state parameter is detected to meet the third preset condition, adjusting the data card bearing the data service of the intelligent terminal from the second data card to the first data card.
As shown in fig. 5d, when it is detected that the new operating state parameter of the first data card satisfies the third preset condition, the data card carrying the data service of the intelligent terminal is adjusted from the second data card to the first data card.
In an alternative embodiment, the new operating state parameters include: the network residing state, where the detection that the new state parameter satisfies the third preset condition, may include: detecting whether the resident network state of the first data card is a resident state; and if so, determining that the third preset condition is met.
In an optional implementation manner, the new operating state parameter includes a network residence state, and if it is detected that the new operating state parameter satisfies a third preset condition, the method may include: detecting whether the resident network state of the first data card is an un-resident state or not to obtain a target resident detection result; and determining whether the new operating state parameter of the first data card meets the third preset condition according to the target residence detection result.
In an alternative embodiment, the new operating state parameter further includes: the signal strength parameter and/or the signal quality parameter, before the step of determining that the third preset condition is met, may include: acquiring a signal intensity parameter and/or a signal quality parameter of the first data card; determining that the third preset condition is met if the signal strength parameter is greater than or equal to a target signal strength threshold and/or if the signal quality parameter is greater than or equal to a target signal quality threshold.
In an alternative embodiment, the step of determining that the third preset condition is met may include:
acquiring the duration of the first data card when the signal strength is greater than or equal to the target signal strength threshold value and/or the signal quality parameter is greater than or equal to the target signal quality threshold value; and if the duration is greater than or equal to a target time threshold, determining that the third preset condition is met.
In the embodiment of the application, if the residing network state of the first data card is the non-residing state and the duration of the non-residing state is greater than or equal to the preset time threshold, determining that the current operating state parameter of the first data card meets a first preset condition; and if the resident network state of the second data card is detected to be the resident state, and the signal quality parameter and/or the signal strength parameter are/is greater than or equal to the signal quality threshold and/or the signal strength threshold, adjusting the data card bearing the data service of the intelligent terminal from the first data card to the second data card. If the network residing state of the first data card is the residing state, the signal strength parameter and/or the signal quality parameter is less than or equal to the signal quality threshold and/or the signal strength threshold, and the duration of the signal strength parameter and/or the signal quality threshold is greater than or equal to the preset time threshold, determining that the current operation state parameter of the first data card meets a first preset condition; if the resident network state of the second data card is detected to be the resident state and the signal quality parameter and/or the signal strength parameter are/is greater than or equal to the signal quality threshold and/or the signal strength threshold, determining that the current operation state parameter of the second data card meets a second preset condition; and further, when the intelligent terminal is detected to be in a bright screen state and/or the foreground running application is the target type application, the data card bearing the data service of the intelligent terminal is adjusted from the first data card to the second data card. And acquiring a new operation state parameter of the first data card, and if the new state parameter is detected to meet a third preset condition, adjusting the data card bearing the data service of the intelligent terminal from the second data card to the first data card.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a data switching apparatus according to an exemplary embodiment of the present application, where the apparatus may be mounted on an intelligent terminal in the foregoing method embodiment, and the intelligent terminal may specifically be a server. Of course, in some embodiments, the method can also be carried on the terminal equipment. The data switching device shown in fig. 6 may be used to perform some or all of the functions in the method embodiments described above with reference to fig. 3 and 4. Wherein, the detailed description of each unit is as follows:
a first detection module 601, configured to detect whether a current operating state parameter of the first data card meets a first preset condition, where the first data card bears a current data service of the intelligent terminal;
a second detecting module 602, configured to detect whether a current operating state parameter of the second data card meets a second preset condition when the first preset condition is met;
an adjusting module 603, configured to adjust the data card that carries the data service of the intelligent terminal from the first data card to the second data card when the second preset condition is met.
In an optional implementation manner, the operation state parameter of the first data card includes a residing network state, the first detection module may include a first detection subunit 6011 and a first determination subunit 6012, where the first detection subunit 6011 is configured to detect whether the residing network state of the first data card is an un-residing state; the first determining subunit 6012 is configured to determine that a first preset condition is met when the first determining subunit is in the non-resident state; or, the data processing device is configured to determine whether the current operating state parameter of the first data card meets the first preset condition according to the residence detection result.
In an optional implementation manner, the first determining subunit 6012 is specifically configured to, if the residence detection result indicates that the residence network state of the first data card is the non-residence state, obtain a duration of the first data card in the non-residence state; and the controller is further configured to determine that the current operating state parameter of the first data card meets the first preset condition if the duration is greater than or equal to a preset time threshold.
In an optional implementation manner, the operation state parameters further include a signal strength parameter and/or a signal quality parameter, and the first determining subunit 6012 is specifically configured to, when the residence detection result indicates that the residence network state of the first data card is a residence state, acquire the signal strength parameter and/or the signal quality parameter of the first data card; and the processor is further configured to determine that the first preset condition is met if the signal strength parameter is less than or equal to a signal strength threshold and/or the signal quality parameter is less than or equal to a signal quality threshold.
In an optional implementation manner, the first determining subunit 6012 is further specifically configured to obtain a duration of the first data card when the signal strength is less than or equal to a signal strength threshold, and/or the signal quality of the first data card is less than or equal to the signal quality threshold; and the processor is configured to determine that the first preset condition is met if the duration is greater than or equal to a preset time threshold.
In an alternative embodiment, the operation status parameter of the second data card includes a resident network status, the second detection module 602 may include a second detection subunit 6021 and a second determination subunit 6022, the second detection subunit 6021 is configured to detect whether the resident network status of the second data card is a resident status; the second determining subunit 6022 is configured to determine that the second preset condition is met when the residence detection result is the residence state.
In an optional implementation manner, the second determining subunit 6022 is specifically configured to acquire a network mode in the residence state if the residence detection result indicates that the residence network state of the second data card is the residence state; and the network module is further configured to determine that the second preset condition is met if the network mode is a preset network mode.
In an optional implementation manner, the operating status parameter of the second data card further includes: the second determining subunit 6022 is further specifically configured to, when the residence detection result indicates that the residence network state of the second data card is the residence state, acquire the signal strength parameter and/or the signal quality parameter of the second data card; and the processor is further configured to determine that the second preset condition is met if the signal strength parameter is greater than or equal to a signal strength threshold and/or if the signal quality parameter is greater than or equal to a signal quality threshold.
In an optional implementation manner, the second determining subunit 6022 is further specifically configured to obtain a duration that the signal strength of the second data card is greater than or equal to the signal strength threshold, and/or the signal quality of the second data card is greater than or equal to the signal quality threshold; and the processor is further configured to determine that the second preset condition is met if the duration is greater than or equal to a preset time threshold.
In an optional implementation manner, the apparatus may further include a third detecting module 604, where the third detecting module 603 is configured to detect a display state and/or an application running state of the smart terminal; the adjusting module is further specifically configured to adjust the data card bearing the data service of the intelligent terminal from the first data card to the second data card if the intelligent terminal is in a bright screen state and/or a foreground running application is an application of a target type.
In an optional implementation manner, the apparatus may further include an obtaining module 605, where the obtaining module 605 is configured to obtain the new operation status parameter of the first data card; the adjusting module 603 is further specifically configured to adjust the data card carrying the data service of the intelligent terminal from the second data card to the first data card if it is detected that the new state parameter meets a third preset condition.
In an optional implementation manner, the obtaining module 605 is specifically configured to obtain an electric quantity value of the intelligent terminal; the device is used for acquiring a new running state parameter of the first data card according to a preset time interval if the electric quantity value is smaller than or equal to an electric quantity threshold; and/or, the controller is further configured to obtain a new operation state parameter of the first data card in real time if the electric quantity value is greater than the electric quantity threshold value.
In an alternative embodiment, the new operating state parameters include: the residing network state, the third detecting module 604 may include a third detecting sub-unit 6041 and a third determining sub-unit 6042, the third detecting sub-unit 6041 is configured to detect whether the residing network state of the first data card is an un-residing state; the third determining subunit 6042 is configured to determine that the third preset condition is met if the residing network state is the residing state.
In an optional implementation manner, the new operation state parameters further include a signal strength parameter and/or a signal quality parameter, and the third determining subunit 6042 is further specifically configured to obtain the signal strength parameter and/or the signal quality parameter of the first data card; and the processor is further configured to determine that the third preset condition is met if the signal strength parameter is greater than or equal to a target signal strength threshold and/or if the signal quality parameter is greater than or equal to a target signal quality threshold.
In an optional implementation manner, the third determining subunit 6042 is further specifically configured to obtain a duration of the first data card when the signal strength is greater than or equal to the target signal strength threshold, and/or the signal quality parameter is greater than or equal to the target signal quality threshold; and the processor is further configured to determine that the third preset condition is met if the duration is greater than or equal to a target time threshold.
According to an embodiment of the present application, some steps involved in the image processing methods shown in fig. 3 and 4 may be performed by respective modules in the data card switching apparatus shown in fig. 6. The modules in the data card switching apparatus shown in fig. 6 may be respectively or entirely combined into one or several other modules to form one or several other modules, or some module(s) may be further split into multiple units with smaller functions to form the same operation, without affecting the implementation of the technical effect of the embodiments of the present application. The modules are divided based on logic functions, and in practical application, the functions of one module can be realized by a plurality of modules, or the functions of a plurality of modules can be realized by one module. In other embodiments of the present application, the data switching may also include other modules, and in practical applications, these functions may also be implemented with the assistance of other modules, and may be implemented by cooperation of a plurality of modules.
According to another embodiment of the present application, the photographing control apparatus as shown in fig. 6 may be configured by running a computer program (including program codes) capable of executing the steps involved in the respective methods as shown in fig. 3 and 4 on a general-purpose computing apparatus such as a computer including a processing element and a storage element such as a Central Processing Unit (CPU), a random access storage medium (RAM), a read-only storage medium (ROM), and the like, and a data card switching method of the embodiment of the present application may be implemented. The computer program may be recorded on a computer-readable recording medium, for example, and loaded and executed in the above-described computing apparatus via the computer-readable recording medium.
Based on the same inventive concept, the principle and the advantageous effect of the data card switching device provided in the embodiment of the present application for solving the problem are similar to those of the data card switching method in the embodiment of the present application for solving the problem, and for brevity, the principle and the advantageous effect of the implementation of the method can be referred to, and are not described herein again.
Referring to fig. 7, an embodiment of the present application further provides a schematic structural diagram of another intelligent terminal device, where the intelligent terminal includes a memory 701, a processor 702, and a data card switching program stored in the memory 701 and operable on the processor 702, and when the data card switching program is executed by the processor 702, the steps of the data card switching method in any of the above embodiments are implemented.
The present application further provides a computer-readable storage medium, in which a data card switching program is stored, and when the interactive program is executed by the processor, the steps of the data card switching method in any of the above embodiments are implemented.
In the embodiments of the intelligent terminal and the computer-readable storage medium provided in the present application, all technical features of the embodiments of the method are included, and the expanding and explaining contents of the specification are basically the same as those of the embodiments of the method, and are not described herein again.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.
Embodiments of the present application also provide a computer program product, which includes computer program code, when the computer program code runs on a computer, the computer is caused to execute the method in the above various possible embodiments.
Embodiments of the present application further provide a chip, which includes a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device in which the chip is installed executes the method in the above various possible embodiments.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. The embodiments of the present application are intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof.

Claims (17)

1. A data card switching method is applied to an intelligent terminal and is characterized by comprising the following steps:
s1, detecting whether the current operation state parameter of a first data card meets a first preset condition, wherein the first data card bears the current data service of the intelligent terminal;
s2, if yes, detecting whether the current operation state parameter of the second data card meets a second preset condition;
and S3, if yes, adjusting the data card bearing the data service of the intelligent terminal from the first data card to the second data card.
2. The method of claim 1, wherein the operational status parameters of the first data card comprise: a network residing state, the step S1, comprising:
detecting whether the resident network state of the first data card is an un-resident state;
and if so, determining that the first preset condition is met.
3. The method of claim 2, wherein the step of determining that the current operating state parameter of the first data card satisfies the first preset condition is preceded by the step of:
acquiring the duration of the first data card in the non-resident state;
and if the duration is greater than or equal to a preset time threshold, determining that the current operating state parameter of the first data card meets the first preset condition.
4. The method of any of claims 1-3, wherein the operational status parameters of the first data card further comprise: a signal strength parameter and/or a signal quality parameter,
if the network residing state of the first data card is the residing state, the step S1 further includes:
acquiring a signal intensity parameter and/or a signal quality parameter of the first data card;
and if the signal strength parameter is less than or equal to a signal strength threshold value and/or the signal quality parameter is less than or equal to a signal quality threshold value, determining that the first preset condition is met.
5. The method of claim 4, wherein the step of determining that the first preset condition is met is preceded by the step of:
acquiring the duration of the first data card when the signal strength is less than or equal to a signal strength threshold value and/or the signal quality is less than or equal to the signal quality threshold value;
and if the duration is greater than or equal to a preset time threshold, determining that the first preset condition is met.
6. The method of any of claims 1 to 5, wherein the operational status parameters of the second data card comprise: a network residing state, the step S2, comprising:
detecting whether the resident network state of the second data card is a resident state;
if yes, the second preset condition is met.
7. The method according to claim 6, wherein the step of satisfying the second preset condition is preceded by the step of:
acquiring a network mode in the resident state;
and if the network mode is a preset network mode, determining that the second preset condition is met.
8. The method of claim 7, wherein the operating state parameters of the second data card further comprise: before the step of satisfying the second preset condition, the signal strength parameter and/or the signal quality parameter further includes:
acquiring a signal intensity parameter and/or a signal quality parameter of the second data card;
determining that the second preset condition is met if the signal strength parameter is greater than or equal to a signal strength threshold and/or if the signal quality parameter is greater than or equal to a signal quality threshold.
9. The method of claim 8, wherein the step of determining that the second predetermined condition is satisfied is preceded by the step of:
acquiring the duration of the second data card when the signal strength is greater than or equal to the signal strength threshold value and/or the signal quality is greater than or equal to the signal quality threshold value;
and if the duration is greater than or equal to a preset time threshold, determining that the second preset condition is met.
10. The method according to any one of claims 1 to 5, wherein the step S3 includes:
detecting a display state and/or an application running state of the intelligent terminal;
and if the intelligent terminal is in a bright screen state and/or foreground running application is the target type application, adjusting the data card bearing the data service of the intelligent terminal from the first data card to the second data card.
11. The method according to any one of claims 1 to 5, wherein after the step of S3, the method further comprises:
acquiring new operation state parameters of the first data card;
and if the new state parameter is detected to meet a third preset condition, adjusting the data card bearing the data service of the intelligent terminal from the second data card to the first data card.
12. The method of claim 11, wherein said obtaining new operating state parameters of said first data card comprises:
acquiring an electric quantity value of the intelligent terminal;
if the electric quantity value is smaller than or equal to the electric quantity threshold value, acquiring a new operation state parameter of the first data card according to a preset time interval; and/or the presence of a gas in the gas,
and if the electric quantity value is larger than the electric quantity threshold value, acquiring new operation state parameters of the first data card in real time.
13. The method of claim 11, wherein the new operating state parameters comprise: a network residing state, wherein the detecting that the new state parameter satisfies a third preset condition comprises:
detecting whether the resident network state of the first data card is a resident state;
and if so, determining that the third preset condition is met.
14. The method of claim 13, wherein the new operating state parameters further comprise: before the step of determining that the third preset condition is met, the signal strength parameter and/or the signal quality parameter includes:
acquiring a signal intensity parameter and/or a signal quality parameter of the first data card;
determining that the third preset condition is met if the signal strength parameter is greater than or equal to a target signal strength threshold and/or if the signal quality parameter is greater than or equal to a target signal quality threshold.
15. The method of claim 14, wherein the step of determining that the third predetermined condition is satisfied is preceded by:
acquiring the duration of the first data card when the signal strength is greater than or equal to the target signal strength threshold value and/or the signal quality parameter is greater than or equal to the target signal quality threshold value;
and if the duration is greater than or equal to a target time threshold, determining that the third preset condition is met.
16. An intelligent terminal, comprising a processor and a memory, wherein the memory is configured to store a computer program comprising program instructions, and the processor is configured to invoke the program instructions to perform the method of any of claims 1 to 15.
17. A computer-readable storage medium, comprising: the computer-readable storage medium stores one or more instructions adapted to be loaded by a processor and to perform the method of any of claims 1-15.
CN202011067667.5A 2020-09-30 2020-09-30 Data card switching method, intelligent terminal and computer readable storage medium Pending CN112311934A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011067667.5A CN112311934A (en) 2020-09-30 2020-09-30 Data card switching method, intelligent terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011067667.5A CN112311934A (en) 2020-09-30 2020-09-30 Data card switching method, intelligent terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112311934A true CN112311934A (en) 2021-02-02

Family

ID=74488698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011067667.5A Pending CN112311934A (en) 2020-09-30 2020-09-30 Data card switching method, intelligent terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112311934A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113506986A (en) * 2021-06-03 2021-10-15 星展测控科技股份有限公司 Communication-in-motion control system and method
CN113965644A (en) * 2021-10-20 2022-01-21 维沃移动通信有限公司 Data card switching method and device and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113506986A (en) * 2021-06-03 2021-10-15 星展测控科技股份有限公司 Communication-in-motion control system and method
CN113506986B (en) * 2021-06-03 2024-02-27 星展测控科技股份有限公司 Communication-in-motion control system and method
CN113965644A (en) * 2021-10-20 2022-01-21 维沃移动通信有限公司 Data card switching method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN112004173B (en) Bluetooth headset switching method, mobile terminal and computer readable storage medium
CN108834089B (en) SIM card switching method, mobile terminal and computer readable storage medium
CN109195143B (en) Network access method, mobile terminal and readable storage medium
CN109005574B (en) Cell selection method, mobile terminal and computer readable storage medium
CN109348067B (en) Method for adjusting screen display brightness, mobile terminal and computer readable storage medium
CN107463243B (en) Screen control method, mobile terminal and computer readable storage medium
CN109195213B (en) Mobile terminal screen control method, mobile terminal and computer readable storage medium
CN112102780B (en) Display frame rate regulation and control method, device and computer readable storage medium
CN113032065B (en) Screen refresh control method, mobile terminal and computer readable storage medium
CN109151216B (en) Application starting method, mobile terminal, server and computer readable storage medium
CN114126015A (en) Power consumption control method, intelligent terminal and storage medium
CN108536383B (en) Game control method, game control equipment and computer readable storage medium
CN112261535A (en) Major-minor switching method and device for wireless earphone and readable storage medium
CN108712558A (en) Incoming call reminding method, mobile terminal and the readable storage medium storing program for executing of mobile terminal
CN112311934A (en) Data card switching method, intelligent terminal and computer readable storage medium
CN112346824B (en) Screen projection application control method and device and computer readable storage medium
CN111970738B (en) Network switching control method, device and computer readable storage medium
CN113099514A (en) Method, device and computer readable storage medium for accessing independent networking network
CN109062678A (en) A kind of Working mode switching method, wearable device and computer storage medium
CN110392163B (en) Screen-off control method, mobile terminal and computer-readable storage medium
CN108900696B (en) Data processing method, terminal and computer readable storage medium
CN107360599B (en) Intelligent wifi networking method and mobile terminal
CN108040330B (en) WiFi directional transmission method, mobile terminal and readable storage medium
CN113347676B (en) Processing method, mobile terminal and storage medium
CN115277922A (en) Processing method, intelligent terminal and storage medium

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