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 a modulation and demodulation module corresponding to the second subscriber identity card to obtain a state detection result; the second user identification card is different from the first user identification card in type, and the second user identification card is a virtual user identification card;
and determining whether to control the modulation and demodulation module corresponding to the second subscriber identity card to enter a sleep mode based on the state detection result of the modulation and demodulation module corresponding to the second subscriber identity card.
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 a modulation and demodulation module corresponding to the second subscriber identity card to obtain a state detection result; the second user identification card is different from the first user identification card in type, and the second user identification card is a virtual user identification card;
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 of the modulation and demodulation module corresponding to the second subscriber identity card.
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-1 is a schematic flow chart of a control method according to an embodiment of the present invention;
fig. 3-2 is a schematic diagram of a hardware component structure of the mobile terminal according to the embodiment of the invention;
fig. 4 is a schematic structural diagram of a mobile terminal according to an 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-1, comprising:
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 a modulation and demodulation module corresponding to the second subscriber identity card to obtain a state detection result; the second user identification card is different from the first user identification card in type, and the second user identification card is a virtual user identification card;
step 303: and determining whether to control the modulation and demodulation module corresponding to the second subscriber identity card to enter a sleep mode based on the state detection result of the modulation and demodulation module corresponding to the second subscriber identity card.
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 should be further noted that the two subscriber identity cards are different types of subscriber identity cards, and particularly, the second subscriber identity card is a virtual subscriber identity card; that is, the first Subscriber Identity Module (SIM) card is an entity subscriber card and can be inserted into a corresponding card slot, and the virtual SIM card virtualizes the same function as the SIM card through software, for example, the SIM card function can be established through software based on card information to implement the virtual SIM card function, which is not exhaustive in this embodiment.
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; specifically, the first subscriber identity card may be in a state of data interaction with the mobile communication network, and the second subscriber identity card may be in an active state or an inactive state at this time.
In the step 302, the detecting a state of the modem module corresponding to the second subscriber identity card to obtain a state detection result includes:
and detecting whether data transmission exists between the modulation and demodulation module corresponding to the second user identification card and the application processing module or not so as to obtain a state detection result.
Specifically, the detecting whether there is data transmission between the modem module corresponding to the second subscriber identity card and the application processing module to obtain a state detection result includes:
when data transmission exists between the modulation and demodulation module corresponding to the second user identification card and the application processing module, determining that the modulation and demodulation module corresponding to the second user identification card is in a data transmission state;
and when no data transmission exists between the modulation and demodulation module corresponding to the second user identification card and the application processing module, determining that the modulation and demodulation module corresponding to the second user identification card is in a non-data transmission state.
The method for detecting whether there is data transmission between the MODEM module corresponding to the second subscriber identity card and the application processing module may refer to fig. 3-2, where it can be seen that there is a data interaction connection channel between the MODEM module (MODEM 2) of the second subscriber identity card (SIM 2) and the Application Processor (AP), as long as it is detected whether there is data transmission in the channel.
Or, further, as can be seen from fig. 3-2, the Modem2 has at least one interface towards the AP, and directly detects whether there is data transmission in the interface, so as to determine whether the Modem module exists in data interaction between the application processing modules.
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 of the modem module corresponding to the second subscriber identity card includes: and when the state detection result of the modulation and demodulation module corresponding to the second subscriber identity card is in a non-data transmission state, determining to control the modulation and demodulation module corresponding to the second subscriber identity card to enter a sleep mode. That is, once it is determined that the modem module corresponding to the second subscriber identity card is in the non-data transmission state, the modem module is controlled to be set to the sleep mode.
According to the technical scheme provided by the embodiment, the judgment is carried out according to the state of the SIM card 2, and the SIM card 2 is a virtual card; when the SIM card 2 is a VSIM card, it detects whether there is data transmission between the modem2 and the AP, if so, it keeps the transmission state from sleeping, and if not, it notifies the hardware abstraction layer driver to call the power down mode supported by the serial port itself, so as to make the clock sleep and thus the serial port sleep, and further make the modem2 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 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-1, comprising:
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 a modulation and demodulation module corresponding to the second subscriber identity card to obtain a state detection result; the second user identification card is different from the first user identification card in type, and the second user identification card is a virtual user identification card;
step 303: and determining whether to control the modulation and demodulation module corresponding to the second subscriber identity card to enter a sleep mode based on the state detection result of the modulation and demodulation module corresponding to the second subscriber identity card.
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 should be further noted that the two subscriber identity cards are different types of subscriber identity cards, and particularly, the second subscriber identity card is a virtual subscriber identity card; that is, the first Subscriber Identity Module (SIM) card is an entity subscriber card and can be inserted into a corresponding card slot, and the virtual SIM card virtualizes the same function as the SIM card through software, for example, the SIM card function can be established through software based on card information to implement the virtual SIM card function, which is not exhaustive in this embodiment.
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; specifically, the first subscriber identity card may be in a state of data interaction with the mobile communication network, and the second subscriber identity card may be in an active state or an inactive state at this time.
In the step 302, the detecting a state of the modem module corresponding to the second subscriber identity card to obtain a state detection result includes:
and detecting whether data transmission exists between the modulation and demodulation module corresponding to the second user identification card and the application processing module or not so as to obtain a state detection result.
Specifically, the detecting whether there is data transmission between the modem module corresponding to the second subscriber identity card and the application processing module to obtain a state detection result includes:
when data transmission exists between the modulation and demodulation module corresponding to the second user identification card and the application processing module, determining that the modulation and demodulation module corresponding to the second user identification card is in a data transmission state;
and when no data transmission exists between the modulation and demodulation module corresponding to the second user identification card and the application processing module, determining that the modulation and demodulation module corresponding to the second user identification card is in a non-data transmission state.
The method for detecting whether there is data transmission between the MODEM module corresponding to the second subscriber identity card and the application processing module may refer to fig. 3-2, where it can be seen that there is a data interaction connection channel between the MODEM module (MODEM 2) of the second subscriber identity card (SIM 2) and the Application Processor (AP), as long as it is detected whether there is data transmission in the channel.
Or, further, as can be seen from fig. 3-2, the Modem2 has at least one interface towards the AP, and directly detects whether there is data transmission in the interface, so as to determine whether the Modem module exists in data interaction between the application processing modules.
The difference from the first embodiment is that the present embodiment further determines, by combining the duration of the absence of data transmission, that the status detection result is that the second subscriber identity card is in the non-data transmission status, specifically:
when no data transmission exists between the modulation and demodulation module corresponding to the second user identification card and the application processing module, detecting the duration of the data transmission absence of the modulation and demodulation module corresponding to the second user identification card; and when the duration exceeds a preset threshold value, determining that the state detection result is in a non-data transmission state.
The duration may be set according to an actual situation, the duration in which no data transmission exists between the modem module and the application processing module is obtained, and may be determined based on the detection period, and the duration of each detection period may be set according to the actual situation, for example, may be set to 1 s; in addition, the preset threshold value may also be set according to actual conditions, for example, may be set to 5S.
That is, the duration is calculated according to the result of at least one detection cycle, for example, when there are three cycles to detect that there is no data transmission between two modules, it is determined that there is no data transmission for 3S.
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 of the modem module corresponding to the second subscriber identity card includes: and when the state detection result of the modulation and demodulation module corresponding to the second subscriber identity card is in a non-data transmission state, determining to control the modulation and demodulation module corresponding to the second subscriber identity card to enter a sleep mode. That is, once it is determined that the modem module corresponding to the second subscriber identity card is in the non-data transmission state, the modem module is controlled to be set to the sleep mode.
According to the technical scheme provided by the embodiment, the judgment is carried out according to the state of the SIM card 2, and the SIM card 2 is a virtual card; when the SIM card 2 is a VSIM card, it detects whether there is data transmission between the modem2 and the AP, if so, it keeps the transmission state from sleeping, and if not, it notifies the hardware abstraction layer driver to call the power down mode supported by the serial port itself, so as to make the clock sleep and thus the serial port sleep, and further make the modem2 sleep. (the data may be detected at a certain frequency, such as 5s of timer).
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, 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 a modulation and demodulation module corresponding to the second subscriber identity card to obtain a state detection result; the second user identification card is different from the first user identification card in type, and the second user identification card is a virtual user identification card;
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 of the modem module corresponding to the second subscriber identity card.
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 should be further noted that the two subscriber identity cards are different types of subscriber identity cards, and particularly, the second subscriber identity card is a virtual subscriber identity card; that is, the first Subscriber Identity Module (SIM) card is an entity subscriber card and can be inserted into a corresponding card slot, and the virtual SIM card virtualizes the same function as the SIM card through software, for example, the SIM card function can be established through software based on card information to implement the virtual SIM card function, which is not exhaustive in this embodiment.
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; specifically, the first subscriber identity card may be in a state of data interaction with the mobile communication network, and the second subscriber identity card may be in an active state or an inactive state at this time.
The detection unit is used for detecting whether data transmission exists between the modulation and demodulation module corresponding to the second user identification card and the application processing module or not so as to obtain a state detection result.
Specifically, the detecting whether there is data transmission between the modem module corresponding to the second subscriber identity card and the application processing module to obtain a state detection result includes:
the detection unit is used for determining that the modulation and demodulation module corresponding to the second user identification card is in a data transmission state when data transmission exists between the modulation and demodulation module corresponding to the second user identification card and the application processing module;
and when no data transmission exists between the modulation and demodulation module corresponding to the second user identification card and the application processing module, determining that the modulation and demodulation module corresponding to the second user identification card is in a non-data transmission state.
The method for detecting whether there is data transmission between the MODEM module corresponding to the second subscriber identity card and the application processing module may refer to fig. 3-2, where it can be seen that there is a data interaction connection channel between the MODEM module (MODEM 2) of the second subscriber identity card (SIM 2) and the Application Processor (AP), as long as it is detected whether there is data transmission in the channel.
Or, further, as can be seen from fig. 3-2, the Modem2 has at least one interface towards the AP, and directly detects whether there is data transmission in the interface, so as to determine whether the Modem module exists in data interaction between the application processing modules.
The detection unit is configured to detect a duration that no data transmission exists between the modem module corresponding to the second subscriber identity card and the application processing module; and when the duration exceeds a preset threshold value, determining that the state detection result is in a non-data transmission state.
The duration may be set according to an actual situation, the duration in which no data transmission exists between the modem module and the application processing module is obtained, and may be determined based on the detection period, and the duration of each detection period may be set according to the actual situation, for example, may be set to 1 s; in addition, the preset threshold value may also be set according to actual conditions, for example, may be set to 5S.
That is, the duration is calculated according to the result of at least one detection cycle, for example, when there are three cycles to detect that there is no data transmission between two modules, it is determined that there is no data transmission for 3S.
Correspondingly, the control unit is configured to determine to control the modem module corresponding to the second subscriber identity card to enter a sleep mode when the state detection result of the modem module corresponding to the second subscriber identity card is in a non-data transmission state. That is, once it is determined that the modem module corresponding to the second subscriber identity card is in the non-data transmission state, the modem module is controlled to be set to the sleep mode.
According to the technical scheme provided by the embodiment, the judgment is carried out according to the state of the SIM card 2, and the SIM card 2 is a virtual card; when the SIM card 2 is a VSIM card, it detects whether there is data transmission between the modem2 and the AP, if so, it keeps the transmission state from sleeping, and if not, it notifies the hardware abstraction layer driver to call the power down mode supported by the serial port itself, so as to make the clock sleep and thus the serial port sleep, and further make the modem2 sleep. (the data may be detected at a certain frequency, such as 5s of timer).
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.