Control method and mobile terminal
Technical Field
The present invention relates to terminal management technologies in the field of communications, and in particular, to a control method and a mobile terminal.
Background
In the prior art, a mobile terminal can be equipped with at least two user identification cards, and each user identification card performs processing operations such as data interaction and the like through a corresponding modulation and demodulation module. However, in such a scenario with multiple subscriber identity cards, a problem of large power consumption may be involved, and thus, the duration and the use experience of the mobile terminal used by the user may be affected.
Disclosure of Invention
The present invention is directed to a control method and a mobile terminal, which are used to solve the above problems in the prior art.
The invention provides a control method, wherein at least a first user identification card is arranged in a mobile terminal; the method comprises the following steps:
the first user identification card is in a working state; the working state representation is at least based on the state of data interaction between the first user identification card and a mobile communication network;
detecting the state of the second user identification card to obtain a state detection result; the state detection result comprises a first state and a second state, wherein the first state represents that the second user identification card is at least in a working state, and the second state represents that the second user identification card is in a non-working state;
and determining whether to control a modulation and demodulation module corresponding to the second subscriber identity card to enter a sleep mode or not based on the state detection result.
The invention provides a mobile terminal, which is at least provided with a first user identification card; the mobile terminal includes:
the detection unit is used for detecting that the first user identification card is in a working state; the working state representation is at least based on the state of data interaction between the first user identification card and a mobile communication network; detecting the state of the second user identification card to obtain a state detection result; the state detection result comprises a first state and a second state, wherein the first state represents that the second user identification card is at least in a working state, and the second state represents that the second user identification card is in a non-working state;
and the control unit is used for determining whether to control the modulation and demodulation module corresponding to the second subscriber identity card to enter a sleep mode or not based on the state detection result.
According to the control method and the mobile terminal provided by the invention, when at least two user identification cards are arranged in the mobile terminal, whether a modulation-demodulation module of a second user identification card is controlled to enter a sleep mode or not is determined based on the data transmission parameters of the user identification cards. Therefore, under the condition that the communication capacity of the mobile terminal is not influenced, the problem of power consumption caused by starting the modulation and demodulation modules corresponding to the plurality of user identification cards is reduced as much as possible, and the service life of the mobile terminal is prolonged.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication system for the mobile terminal shown in FIG. 1;
FIG. 3 is a flow chart illustrating a control method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware component structure of the mobile terminal according to the embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic hardware configuration of a mobile terminal implementing various embodiments of the present invention.
The mobile terminal 100 may include a wireless communication unit 110, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190, etc. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. Elements of the mobile terminal will be described in detail below.
The wireless communication unit 110 typically includes one or more components that allow radio communication between the mobile terminal 100 and a wireless communication system or network. For example, the wireless communication unit may include at least one of a broadcast receiving module 111, a mobile communication module 112, and a wireless internet module 113.
The broadcast receiving module 111 receives a broadcast signal and/or broadcast associated information from an external broadcast management server via a broadcast channel. The broadcast channel may include a satellite channel and/or a terrestrial channel.
The mobile communication module 112 transmits and/or receives radio signals to and/or from at least one of a base station (e.g., access point, node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received according to text and/or multimedia messages.
The wireless internet module 113 supports wireless internet access of the mobile terminal. The module may be internally or externally coupled to the terminal. The wireless internet access technology to which the module relates may include WLAN (wireless LAN) (Wi-Fi), Wibro (wireless broadband), Wimax (worldwide interoperability for microwave access), HSDPA (high speed downlink packet access), and the like.
The user input unit 130 may generate key input data according to a command input by a user to control various operations of the mobile terminal. The user input unit 130 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects changes in resistance, pressure, capacitance, and the like due to being touched), scroll wheel, joystick, and the like. In particular, when the touch pad is superimposed on the display unit 151 in the form of a layer, a touch screen may be formed.
The sensing unit 140 detects a current state of the mobile terminal 100 (e.g., an open or closed state of the mobile terminal 100), a position of the mobile terminal 100, presence or absence of contact (i.e., touch input) by a user with the mobile terminal 100, an orientation of the mobile terminal 100, acceleration or deceleration movement and direction of the mobile terminal 100, and the like, and generates a command or signal for controlling an operation of the mobile terminal 100.
The interface unit 170 serves as an interface through which at least one external device is connected to the mobile 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 display unit 151 in the output unit may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, and the like.
Meanwhile, when the display unit 151 and the touch pad are overlapped with each other in the form of a layer to form a touch screen, the display unit 151 may serve as an input device and an output device. The display unit 151 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. Depending on the particular desired implementation, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure as well as a touch input position and a touch input area.
The memory 160 may store software programs or the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, etc.) that has been output or is to be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, and the multimedia module 181 may be constructed within the controller 180 or may be constructed separately from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
Up to now, the mobile terminal has been described in terms of its functions. Hereinafter, a slide-type mobile terminal among various types of mobile terminals, such as a folder-type, bar-type, swing-type, slide-type mobile terminal, and the like, will be described as an example for the sake of brevity. Accordingly, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
The mobile terminal 100 as shown in fig. 1 may be configured to operate with communication systems such as wired and wireless communication systems and satellite-based communication systems that transmit data via frames or packets.
A communication system in which a mobile terminal according to the present invention is operable will now be described with reference to fig. 2.
Such communication systems may use different air interfaces and/or physical layers. For example, the air interface used by the communication system includes, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and Universal Mobile Telecommunications System (UMTS) (in particular, Long Term Evolution (LTE)), global system for mobile communications (GSM), and the like. By way of non-limiting example, the following description relates to a CDMA communication system, but such teachings are equally applicable to other types of systems.
Referring to fig. 2, the CDMA wireless communication system may include a plurality of mobile terminals 100, a plurality of Base Stations (BSs) 270, Base Station Controllers (BSCs) 275, and a Mobile Switching Center (MSC) 280. The MSC280 is configured to interface with a Public Switched Telephone Network (PSTN) 290. The MSC280 is also configured to interface with a BSC275, which may be coupled to the base station 270 via a backhaul. The backhaul may be constructed according to any of several known interfaces including, for example, E1/T1, ATM, IP, PPP, frame Relay, HDSL, ADSL, or xDSL. It will be understood that a system as shown in fig. 2 may include multiple BSCs 275. In fig. 2, a plurality of satellites 300 are depicted, but it is understood that useful positioning information may be obtained with any number of satellites.
Based on the above mobile terminal hardware structure and communication system, the present invention provides various embodiments of the method.
The first embodiment,
The embodiment of the invention provides a control method, which is applied to a mobile terminal, wherein the mobile terminal is at least provided with a first user identification card; as shown in fig. 3, includes:
step 301: the first user identification card is in a working state; the working state representation is at least based on the state of data interaction between the first user identification card and a mobile communication network;
step 302: detecting the state of the second user identification card to obtain a state detection result; the state detection result comprises a first state and a second state, wherein the first state represents that the second user identification card is at least in a working state, and the second state represents that the second user identification card is in a non-working state;
step 303: and determining whether to control a modulation and demodulation module corresponding to the second subscriber identity card to enter a sleep mode or not based on the state detection result.
The state detection result at least comprises a first state representing that the modulation and demodulation module corresponding to the second user identification card has data transmission and a second state representing that the modulation and demodulation module corresponding to the second user identification card has no data transmission.
Here, the mobile terminal may be a mobile terminal capable of being installed with at least two subscriber identity cards, and a terminal capable of communicating with a mobile communication network. For example, it may be a smart phone.
The subscriber identity card may be a SIM card.
Further, the two subscriber identity cards may be for the same communication network or for different types of communication networks. The two SIM cards are usually directed to different types of communication networks, for example, the two types of communication networks may be a mobile network and a connected network, specifically, for networks with different communication systems, the mobile network may correspond to a communication system such as GSM, LTE, and the like, and the connected network may correspond to a network with a communication system such as CDMA, LTE, and the like.
Each user identification card corresponds to a modulation-demodulation module. Each modem unit is used for receiving, demodulating, modulating, and the like data. It should be noted that, when accessing different communication networks, the processing manners of modulation and demodulation are different, and therefore, each SIM card needs to correspond to one modem unit to receive and transmit communication data.
It is further noted that the two subscriber identity cards may be SIM cards. And all are entity cards, can insert with in the corresponding draw-in groove.
In step 301, the first subscriber identity card of the two subscriber identity cards is in a working state, that is, in a state of performing data interaction with the mobile communication network; in particular, the first subscriber identity card may be in a state of data interaction with the mobile communication network.
In the step 302, the detecting the state of the second subscriber identity card to obtain a state detection result includes: detecting whether the second user identification card is arranged in a card slot corresponding to the second user identification card; and when the second subscriber identity card and the corresponding card slot are not in a connection state, obtaining a state detection result as a second state.
Specifically, the detection manner for detecting whether the second subscriber identity card and the corresponding card slot are in the connection state may be determined by the connection pin of the card slot, for example, when the SIM card is inserted into the card slot, the corresponding connection pin may have a corresponding voltage value, for example, 5V or-5V; once the connection pin is detected to be at the corresponding voltage value, it can be determined that the SIM card is inserted in the card slot, that is, it is detected that the second user identification card is in a connection state with the card slot corresponding to the second user identification card.
Correspondingly, the determining whether to control the modem module corresponding to the second subscriber identity card to enter the sleep mode based on the state detection result includes: and when the second subscriber identity card is in a second state, determining to control the modulation and demodulation module corresponding to the second subscriber identity card to enter a sleep mode.
That is to say, when the second subscriber identity card is detected to be arranged in the corresponding card slot, the mode adjustment of the modem module of the second subscriber identity card is not kept, and if the second subscriber identity card is detected not to be arranged in the corresponding card slot, the second subscriber identity card is directly determined to be in the second state, and at the moment, the modem module is controlled to be switched to the sleep mode, so that the power consumption condition of the mobile terminal is reduced.
Therefore, by adopting the scheme, when at least two user identification cards are arranged in the mobile terminal, whether the modulation and demodulation module of the second user identification card is controlled to enter the sleep mode or not can be determined based on the data transmission parameters of the user identification cards. Therefore, under the condition that the communication capacity of the mobile terminal is not influenced, the problem of power consumption caused by starting the modulation and demodulation modules corresponding to the plurality of user identification cards is reduced as much as possible, and the service life of the mobile terminal is prolonged.
Example II,
The embodiment of the invention provides a control method, which is applied to a mobile terminal, wherein the mobile terminal is at least provided with a first user identification card; as shown in fig. 3, includes:
step 301: the first user identification card is in a working state; the working state representation is at least based on the state of data interaction between the first user identification card and a mobile communication network;
step 302: detecting the state of the second user identification card to obtain a state detection result; the state detection result comprises a first state and a second state, wherein the first state represents that the second user identification card is at least in a working state, and the second state represents that the second user identification card is in a non-working state;
step 303: and determining whether to control a modulation and demodulation module corresponding to the second subscriber identity card to enter a sleep mode or not based on the state detection result.
The state detection result at least comprises a first state representing that the modulation and demodulation module corresponding to the second user identification card has data transmission and a second state representing that the modulation and demodulation module corresponding to the second user identification card has no data transmission.
Here, the mobile terminal may be a mobile terminal capable of being installed with at least two subscriber identity cards, and a terminal capable of communicating with a mobile communication network. For example, it may be a smart phone.
The subscriber identity card may be a SIM card.
Further, the two subscriber identity cards may be for the same communication network or for different types of communication networks. The two SIM cards are usually directed to different types of communication networks, for example, the two types of communication networks may be a mobile network and a connected network, specifically, for networks with different communication systems, the mobile network may correspond to a communication system such as GSM, LTE, and the like, and the connected network may correspond to a network with a communication system such as CDMA, LTE, and the like.
Each user identification card corresponds to a modulation-demodulation module. Each modem unit is used for receiving, demodulating, modulating, and the like data. It should be noted that, when accessing different communication networks, the processing manners of modulation and demodulation are different, and therefore, each SIM card needs to correspond to one modem unit to receive and transmit communication data.
It is further noted that the two subscriber identity cards may be SIM cards. And all are entity cards, can insert with in the corresponding draw-in groove.
In step 301, the first subscriber identity card of the two subscriber identity cards is in a working state, that is, in a state of performing data interaction with the mobile communication network; in particular, the first subscriber identity card may be in a state of data interaction with the mobile communication network.
In the step 302, the detecting the state of the second subscriber identity card to obtain a state detection result includes: detecting whether the second user identification card is arranged in a card slot corresponding to the second user identification card; and when the second subscriber identity card and the corresponding card slot are not in a connection state, obtaining a state detection result as a second state.
Specifically, the detection manner for detecting whether the second subscriber identity card and the corresponding card slot are in the connection state may be determined by the connection pin of the card slot, for example, when the SIM card is inserted into the card slot, the corresponding connection pin may have a corresponding voltage value, for example, 5V or-5V; once the connection pin is detected to be at the corresponding voltage value, it can be determined that the SIM card is inserted in the card slot, that is, it is detected that the second user identification card is in a connection state with the card slot corresponding to the second user identification card.
On the basis of the processing scenario, this embodiment further provides a mode of further performing state detection, and when it is determined that the second subscriber identity card is disposed in the card slot corresponding to the second subscriber identity card, further detecting whether data transmission exists in the second subscriber identity card specifically includes: detecting whether the second user identification card is in a mobile data service opening state, and if the second user identification card is in the mobile data service opening state, determining that the state detection result is that the second user identification card is in a first state; and if the second user identification card is in the data service closing state, determining that the state detection result is that the second user identification card is in the second state.
Detecting whether the second user identification card is in a mobile data starting state, wherein the state acquisition mode can be set for a user, the second user identification card can be automatically switched to a function of closing the transmission of the mobile data service because the flow exceeds a threshold value, and the second user identification card can be in a state of being incapable of transmitting the mobile data because the current communication quality is poor; these states may be considered as a mobile data off state.
That is to say, even if it is detected that the second subscriber identity card is disposed on the corresponding card slot, it is further determined whether the data transmission service is normal, and if the data transmission service is closed, the second subscriber identity card is in the second state, that is, the modem module can be closed.
Correspondingly, the determining whether to control the modem module corresponding to the second subscriber identity card to enter the sleep mode based on the state detection result includes: and when the second subscriber identity card is in a second state, determining to control the modulation and demodulation module corresponding to the second subscriber identity card to enter a sleep mode.
That is to say, when the second subscriber identity card is detected to be arranged in the corresponding card slot, the mode adjustment of the modem module of the second subscriber identity card is not kept, and if the second subscriber identity card is detected not to be arranged in the corresponding card slot, the second subscriber identity card is directly determined to be in the second state, and at the moment, the modem module is controlled to be switched to the sleep mode, so that the power consumption condition of the mobile terminal is reduced.
In the foregoing determining the second state, the determination may be performed in combination with a duration that the subscriber identity card is in the data service closed state, that is, if the subscriber identity card is in the data service closed state, determining that the state detection result is that the second subscriber identity card is in the second state, and the method further includes: detecting the duration of the second user identification card in a data service closing state; and when the duration exceeds a preset threshold value, determining that the state detection result is that the second subscriber identity card is in a second state.
The preset threshold may be set according to an actual situation, for example, may be 1 minute.
According to the technical scheme provided by the embodiment, the judgment is carried out according to the state of the SIM card 2, whether the card slot of the SIM card 2 is used or not is judged, if the card slot of the SIM card 2 is not used, the modem2 can be dormant at the moment, and the modem2 is further dormant by enabling the serial port to be dormant; if the card slot of the SIM card 2 is used, further determining whether the mobile data service corresponding to the SIM card 2 is started, and if not, further making the modem2 sleep by making the serial port sleep.
Therefore, by adopting the scheme, when at least two user identification cards are arranged in the mobile terminal, whether the modulation and demodulation module of the second user identification card is controlled to enter the sleep mode or not can be determined based on the data transmission parameters of the user identification cards. Therefore, under the condition that the communication capacity of the mobile terminal is not influenced, the problem of power consumption caused by starting the modulation and demodulation modules corresponding to the plurality of user identification cards is reduced as much as possible, and the service life of the mobile terminal is prolonged.
Example III,
The embodiment of the invention provides a mobile terminal, which is at least provided with a first user identification card; as shown in fig. 4, the mobile terminal includes:
a detecting unit 41, configured to detect that the first subscriber identity card is in an operating state; the working state representation is at least based on the state of data interaction between the first user identification card and a mobile communication network; detecting the state of the second user identification card to obtain a state detection result; the state detection result comprises a first state and a second state, wherein the first state represents that the second user identification card is at least in a working state, and the second state represents that the second user identification card is in a non-working state;
and a control unit 42, configured to determine whether to control the modem module corresponding to the second subscriber identity card to enter a sleep mode based on the state detection result.
The state detection result at least comprises a first state representing that the modulation and demodulation module corresponding to the second user identification card has data transmission and a second state representing that the modulation and demodulation module corresponding to the second user identification card has no data transmission.
Here, the mobile terminal may be a mobile terminal capable of being installed with at least two subscriber identity cards, and a terminal capable of communicating with a mobile communication network. For example, it may be a smart phone.
The subscriber identity card may be a SIM card.
Further, the two subscriber identity cards may be for the same communication network or for different types of communication networks. The two SIM cards are usually directed to different types of communication networks, for example, the two types of communication networks may be a mobile network and a connected network, specifically, for networks with different communication systems, the mobile network may correspond to a communication system such as GSM, LTE, and the like, and the connected network may correspond to a network with a communication system such as CDMA, LTE, and the like.
Each user identification card corresponds to a modulation-demodulation module. Each modem unit is used for receiving, demodulating, modulating, and the like data. It should be noted that, when accessing different communication networks, the processing manners of modulation and demodulation are different, and therefore, each SIM card needs to correspond to one modem unit to receive and transmit communication data.
It is further noted that the two subscriber identity cards may be SIM cards. And all are entity cards, can insert with in the corresponding draw-in groove.
The first user identification card in the two user identification cards is in a working state, namely in a state of carrying out data interaction with a mobile communication network; in particular, the first subscriber identity card may be in a state of data interaction with the mobile communication network.
A detecting unit 41, configured to detect whether the second subscriber identity card is set in a card slot corresponding to the second subscriber identity card; and when the second subscriber identity card and the corresponding card slot are not in a connection state, obtaining a state detection result as a second state.
Specifically, the detection manner for detecting whether the second subscriber identity card and the corresponding card slot are in the connection state may be determined by the connection pin of the card slot, for example, when the SIM card is inserted into the card slot, the corresponding connection pin may have a corresponding voltage value, for example, 5V or-5V; once the connection pin is detected to be at the corresponding voltage value, it can be determined that the SIM card is inserted in the card slot, that is, it is detected that the second user identification card is in a connection state with the card slot corresponding to the second user identification card.
On the basis of the processing scenario, this embodiment further provides a mode of further performing state detection, and when it is determined that the second subscriber identity card is disposed in the corresponding card slot, it is further detected whether data transmission exists in the second subscriber identity card, where the detecting unit is configured to detect whether the second subscriber identity card is in a mobile data service enabled state, and if the second subscriber identity card is in the data service enabled state, it is determined that a state detection result is that the second subscriber identity card is in the first state; and if the second user identification card is in the data service closing state, determining that the state detection result is that the second user identification card is in the second state.
Detecting whether the second user identification card is in a mobile data starting state, wherein the state acquisition mode can be set for a user, the second user identification card can be automatically switched to a function of closing the transmission of the mobile data service because the flow exceeds a threshold value, and the second user identification card can be in a state of being incapable of transmitting the mobile data because the current communication quality is poor; these states may be considered as a mobile data off state.
That is to say, even if it is detected that the second subscriber identity card is disposed on the corresponding card slot, it is further determined whether the data transmission service is normal, and if the data transmission service is closed, the second subscriber identity card is in the second state, that is, the modem module can be closed.
Correspondingly, the control unit is configured to determine to control the modem module corresponding to the second subscriber identity card to enter the sleep mode when the second subscriber identity card is in the second state.
That is to say, when the second subscriber identity card is detected to be arranged in the corresponding card slot, the mode adjustment of the modem module of the second subscriber identity card is not kept, and if the second subscriber identity card is detected not to be arranged in the corresponding card slot, the second subscriber identity card is directly determined to be in the second state, and at the moment, the modem module is controlled to be switched to the sleep mode, so that the power consumption condition of the mobile terminal is reduced.
In the foregoing determining the second state, the determination may be performed in combination with a duration that the subscriber identity card is in the data service closed state, that is, if the subscriber identity card is in the data service closed state, determining that the state detection result is that the second subscriber identity card is in the second state, and the method further includes: detecting the duration of the second user identification card in a data service closing state; and when the duration exceeds a preset threshold value, determining that the state detection result is that the second subscriber identity card is in a second state.
The preset threshold may be set according to an actual situation, for example, may be 1 minute.
The technical solution provided by this embodiment can be illustrated based on the diagram shown in fig. 5, where the sim card 1 is used to access internet and make a call, and its services are supported by the modem module modem1, so that sim2 can only make a call through modem1 at this time, and cs waits at modem1, adds modem2, reads the network authentication data of sim2 through a serial port (UART in the diagram), and supports the data network of sim2 through modem2, that is, we can make the data service of sim2 through modem2, and the user data and the signaling data directly interact with ap through usb channel in the diagram. Thus, we ap can receive the internet data of sim1 and sim2 at the same time. At this time, the algorithmic processing is performed at the data routing layer of the kernel layer, so that the downloading and uploading of the app on the internet can be performed through the modem1 and the modem2 at the same time.
According to the technical scheme provided by the embodiment, the judgment is carried out according to the state of the SIM card 2, whether the card slot of the SIM card 2 is used or not is judged, if the card slot of the SIM card 2 is not used, the modem2 can be dormant at the moment, and the modem2 is further dormant by enabling the serial port to be dormant; if the card slot of the SIM card 2 is used, further determining whether the mobile data service corresponding to the SIM card 2 is started, and if not, further making the modem2 sleep by making the serial port sleep.
Therefore, by adopting the scheme, when at least two user identification cards are arranged in the mobile terminal, whether the modulation and demodulation module of the second user identification card is controlled to enter the sleep mode or not can be determined based on the data transmission parameters of the user identification cards. Therefore, under the condition that the communication capacity of the mobile terminal is not influenced, the problem of power consumption caused by starting the modulation and demodulation modules corresponding to the plurality of user identification cards is reduced as much as possible, and the service life of the mobile terminal is prolonged.
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, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
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 invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.