Specific embodiment
The mobile terminal of each embodiment of the invention is realized referring now to Description of Drawings.In follow-up description, use
For representing the suffix of such as " module ", " part " or " unit " of element only for being conducive to the explanation of the embodiment of the present invention,
Itself does not have specific meaning.Therefore, " module " mixedly can be used with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the embodiment of the present invention can include all
Such as mobile phone, smart phone, notebook computer, digit broadcasting receiver, personal digital assistant (PDA, Personal
Digital Assistant), panel computer (PAD), portable media player (PMP, Portable Media
Player), the mobile terminal of guider etc. and the such as fixed terminal of numeral TV, desktop computer etc..Below, it is false
If terminal is mobile terminal.However, it will be understood by those skilled in the art that, except be used in particular for moving purpose element it
Outward, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is that the hardware configuration of the mobile terminal for realizing each embodiment of the invention is illustrated.
Mobile terminal 1 00 can include wireless communication unit 110, audio/video (A/V) input block 120, user input
Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190
Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups for illustrating
Part.More or less of component can alternatively be implemented.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assemblies, and which allows mobile terminal 1 00 and wireless communication system
Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module
112nd, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast from external broadcast management server via broadcast channel
Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent
The broadcast singal generated before the server or reception of broadcast singal and/or broadcast related information and/or broadcast related information
And send it to the server of terminal.Broadcast singal can include TV broadcast singals, radio signals, data broadcasting
Signal etc..And, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase
Pass information can also be provided via mobile communications network, and in this case, broadcast related information can be by mobile communication mould
Block 112 is receiving.Broadcast singal can be present in a variety of manners, for example, its can with DMB (DMB,
Digital Multimedia Broadcasting) electronic program guides (EPG, Electronic Program Guide),
The electronic service guidebooks of digital video broadcast-handheld (DVB-H, Digital Video Broadcasting-Handheld)
The form of (ESG, Electronic Service Guide) etc. and exist.Broadcasting reception module 111 can be by using each
The broadcast system of type receives signal broadcast.Especially, broadcasting reception module 111 can be by using such as multi-media broadcast
Broadcast-ground (DMB-T, Digital Multimedia Broadcasting-Terrestrial), DMB-defend
Star (DMB-S, Digital Multimedia Broadcasting-Satellite), digital video broadcast-handheld (DVB-H),
The Radio Data System of forward link media (MediaFLO, Media Forward Link Only), received terrestrial digital broadcasting synthesis
The numeral of service (ISDB-T, Integrated Services Digital Broadcasting-Terrestrial) etc. is wide
Broadcast system receives digital broadcasting.Broadcasting reception module 111 may be constructed such that the various broadcast systems for being adapted to provide for broadcast singal
And above-mentioned digit broadcasting system.The broadcast singal and/or broadcast related information received via broadcasting reception module 111 can be deposited
Storage is in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal
And at least one of server and/or receive from it radio signal.Such radio signal can be logical including voice
Words signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (Wi-Fi, WLAN,
Wireless Local Area Networks), WiMAX (Wibro), worldwide interoperability for microwave accesses (Wimax), at a high speed under
Downlink packet accesses (HSDPA, High Speed Downlink Packet Access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant
Tooth, RF identification (RFID, Radio Frequency Identification), Infrared Data Association (IrDA, Infrared
Data Association), ultra broadband (UWB, Ultra Wideband), purple honeybee etc..
Location information module 115 is the module for checking or obtaining the positional information of mobile terminal.Location information module
Typical case be global positioning system (GPS, Global Positioning System).According to current technology, position letter
Breath module 115 calculates the range information and correct time information from three or more satellites and for the information for calculating should
With triangulation, so as to calculate according to longitude, latitude and highly accurately three-dimensional current location information.Currently, for calculating
Position that the method for position and temporal information is calculated using three satellites and by using other satellite correction and
The error of temporal information.Additionally, location information module 115 can calculate speed by Continuous plus current location information in real time
Degree information.
A/V input blocks 120 are used to receive audio or video signal.A/V input blocks 120 can include 121 He of camera
Microphone 122, the static images that 121 pairs, camera is obtained by image capture apparatus in Video Capture pattern or image capture mode
Or the view data of video is processed.Picture frame after process is may be displayed on display unit 151.Jing cameras 121 are processed
Carry out sending out during picture frame afterwards can be stored in memory 160 (or other storage mediums) or via wireless communication unit 110
Send, two or more cameras 121 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone calling model, note
Sound (voice data) is received via microphone in record pattern, speech recognition mode etc. operational mode, and can be by so
Acoustic processing be voice data.Audio frequency (voice) data after process can be converted in the case of telephone calling model can
The form output of mobile communication base station is sent to via mobile communication module 112.Microphone 122 can implement various types of making an uproar
Sound eliminates (or suppression) algorithm to eliminate the noise or dry that (or suppression) is produced during reception and transmission audio signal
Disturb.
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user input
Plant operation.User input unit 130 allows the various types of information of user input, and can include keyboard, metal dome, touch
Plate (for example, detection is due to the sensitive component of the change of touched and caused resistance, pressure, electric capacity etc.), roller, rocking bar etc.
Deng.Especially, when touch pad is superimposed upon on display unit 151 in the form of layer, touch-screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 1 00, and (for example, mobile terminal 1 00 opens or closes shape
State), the position of mobile terminal 1 00, user is for the presence or absence of contact (that is, touch input), the mobile terminal of mobile terminal 1 00
100 orientation, the acceleration or deceleration movement of mobile terminal 1 00 and direction etc., and generate for controlling mobile terminal 1 00
The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can be sensed
The sliding-type phone is opened or is cut out.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or
Whether person's interface unit 170 is coupled with external device (ED).Sensing unit 140 can include proximity transducer 141.
Interface unit 170 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for device of the connection with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Identification module can be that storage uses each of mobile terminal 1 00 for verifying user
Kind of information and can include subscriber identification module (UIM, User Identify Module), client identification module (SIM,
Subscriber Identity Module), Universal Subscriber identification module (USIM, Universal Subscriber
Identity Module) etc..In addition, the device with identification module (hereinafter referred to as " identifying device ") can take intelligence
The form of card, therefore, identifying device can be connected with mobile terminal 1 00 via port or other attachment means.Interface unit 170
Can be used for reception from the input (for example, data message, electric power etc.) of external device (ED) and the input for receiving is transmitted
To one or more elements in mobile terminal 1 00 or can be used for the transmission data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 can serve as allowing to pass through which by electricity
Power provides the path of mobile terminal 1 00 from base or can serve as allowing from base the various command signals being input into pass through which
It is transferred to the path of mobile terminal.Can serve as recognizing that mobile terminal is from the various command signals or electric power of base input
The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio frequency and/or tactile manner
Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 can include showing
Unit 151, dio Output Modules 152, alarm unit 153 etc..
The information that display unit 151 is processed in may be displayed on mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity
During words call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia files
Download etc.) related user interface (UI, User Interface) or graphic user interface (GUI, Graphical User
Interface).When mobile terminal 1 00 is in video calling pattern or image capture mode, display unit 151 can show
Show the image of capture and/or the image of reception, UI or GUI of video or image and correlation function etc. are shown.
Meanwhile, when the display unit 151 and touch pad touch-screen with formation superposed on one another in the form of layer, display unit
151 can serve as input unit and output device.Display unit 151 can include liquid crystal display (LCD, Liquid
Crystal Display), thin film transistor (TFT) LCD (TFT-LCD, Thin Film Transistor-LCD), organic light-emitting diodes
In pipe (OLED, Organic Light-Emitting Diode) display, flexible display, three-dimensional (3D) display etc.
It is at least one.Some in these displays may be constructed such that transparence to allow user from outside viewing, and this is properly termed as
Transparent display, typical transparent display can be, for example, transparent organic light emitting diode (TOLED) display etc..According to
The specific embodiment wanted, mobile terminal 1 00 can include two or more display units (or other display devices), example
Such as, mobile terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used to examine
Survey touch input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal in call signal reception pattern, call mode, logging mode,
It is when under the isotypes such as speech recognition mode, broadcast reception mode, that wireless communication unit 110 is received or in memory 160
The voice data transducing audio signal of middle storage and it is output as sound.And, dio Output Modules 152 can be provided and movement
The audio output (for example, call signal receives sound, message sink sound etc.) of the specific function correlation that terminal 100 is performed.
Dio Output Modules 152 can include loudspeaker, buzzer etc..
Alarm unit 153 can provide output so that event is notified to mobile terminal 1 00.Typical event can be with
Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video is exported, alarm unit
153 can provide output in a different manner with the generation of notification event.For example, alarm unit 153 can be in the form of vibrating
Output is provided, when calling, message or some other entrance communication (incoming communication) are received, alarm list
Unit 153 can provide tactile output (that is, vibrating) to notify to user.Tactile output as by providing, even if
When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153
The output of the generation of notification event can be provided via display unit 151 or dio Output Modules 152.
Memory 160 can store software program for the process and control operation performed by controller 180 etc., Huo Zheke
Temporarily to store the data that exported or will export (for example, telephone directory, message, still image, video etc.).And
And, memory 160 can be storing the vibration of various modes with regard to exporting when touching and being applied to touch-screen and audio signal
Data.
Memory 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many
Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM, Random Access
Memory), static random-access memory (SRAM, Static Random Access Memory), read-only storage (ROM,
Read Only Memory), Electrically Erasable Read Only Memory (EEPROM, Electrically Erasable
Programmable Read Only Memory), programmable read only memory (PROM, Programmable Read Only
Memory), magnetic storage, disk, CD etc..And, mobile terminal 1 00 can perform memory with by network connection
The network storage device cooperation of 160 store function.
The overall operation of the generally control mobile terminal of controller 180.For example, controller 180 is performed and voice call, data
The related control of communication, video calling etc. and process.In addition, controller 180 can be included for reproducing (or playback) many matchmakers
The multi-media module 181 of volume data, multi-media module 181 can be constructed in controller 180, or it is so structured that and control
Device 180 is separated.Controller 180 can be with execution pattern identifying processing, by the handwriting input for performing on the touchscreen or picture
Draw input and be identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit
Appropriate electric power needed for part and component.
Various embodiments described herein can be with use such as computer software, hardware or its any combination of calculating
Machine computer-readable recording medium is implementing.For hardware is implemented, embodiment described herein can be by using application-specific IC
(ASIC, Application Specific Integrated Circuit), digital signal processor (DSP, Digital
Signal Processing), digital signal processing device (DSPD, Digital Signal Processing Device), can
Programmed logic device (PLD, Programmable Logic Device), field programmable gate array (FPGA, Field
Programmable Gate Array), processor, controller, microcontroller, microprocessor, be designed to perform it is described herein
Function electronic unit at least one implementing, in some cases, such embodiment can be in controller 180
Middle enforcement.For software is implemented, the embodiment of such as process or function can perform at least one function or operation with permission
Single software module implementing.Software code can be by the software application write with any appropriate programming language
(or program) is performed during software code can be stored in memory 160 and by controller 180 implementing.
So far, mobile terminal is described according to its function.Below, for the sake of brevity, will description such as folded form,
Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is used as showing
Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
As shown in Figure 1 mobile terminal 1 00 may be constructed such that using via frame or packet transmission data it is all if any
Line and wireless communication system and satellite-based communication system are operating.
The communication system that mobile terminal wherein according to embodiments of the present invention is operable to is described referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.For example, used by communication system
Air interface includes such as frequency division multiple access (FDMA, Frequency Division Multiple Access), time division multiple acess
(TDMA, Time Division Multiple Access), CDMA (CDMA, Code Division Multiple
) and UMTS (UMTS, Universal Mobile Telecommunications System) is (special Access
Not, Long Term Evolution (LTE, Long Term Evolution)), global system for mobile communications (GSM) etc..As unrestricted
Property example, explained below is related to cdma communication system, but such teaching is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 1s 00, multiple base station (BS, Base
Station) 270, base station controller (BSC, Base Station Controller) 275 and mobile switching centre (MSC,
Mobile Switching Center)280.MSC280 is configured to and Public Switched Telephony Network (PSTN, Public
Switched Telephone Network) 290 formation interfaces.MSC280 is also structured to and can couple via back haul link
BSC275 to base station 270 forms interface.If back haul link can be constructed according to any one in the interface that Ganji knows, described
Interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that as shown in Figure 2
System can include multiple BSC275.
Each BS 270 can service one or more subregions (or region), by multidirectional antenna or the day of sensing specific direction
Each subregion that line is covered is radially away from BS 270.Or, each subregion can be by for two of diversity reception or more
Multiple antennas are covered.Each BS 270 may be constructed such that the multiple frequency distribution of support, and each frequency distribution with specific frequency
Spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed intersect can be referred to as CDMA Channel.BS 270 can also be referred to as base station transceiver
System (BTS, Base Transceiver Station) or other equivalent terms.In this case, term " base station "
Can be used for broadly representing single BSC275 and at least one BS 270.Base station can also be referred to as " cellular station ".Or, it is special
The each subregion for determining BS 270 can be referred to as multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to by broadcsting transmitter (BT, Broadcast Transmitter) 295
The mobile terminal 1 00 of operation in system.Broadcasting reception module 111 is arranged at mobile terminal 1 00 to connect as shown in Figure 1
Receive the broadcast singal sent by BT295.In fig. 2 it is shown that several satellites 300, such as can adopt global positioning system
(GPS) satellite 300.Satellite 300 helps position at least one of multiple mobile terminal 1s 00.
In fig. 2, multiple satellites 300 are depicted, it is understood that be, it is possible to use any number of satellite obtains useful
Location information.Location information module 115 is generally configured to coordinate to obtain what is wanted with satellite 300 as shown in Figure 1
Location information.Substitute GPS tracking techniques or outside GPS tracking techniques, it is possible to use the position of mobile terminal can be tracked
Other technologies.In addition, at least one gps satellite 300 can optionally or additionally process satellite dmb transmission.
Used as a typical operation of wireless communication system, BS 270 receives the reverse strand from various mobile terminal 1s 00
Road signal.Mobile terminal 1 00 generally participates in call, information receiving and transmitting and other types of communication.Each of the reception of certain base station 270
Reverse link signal is processed in specific BS 270.The data of acquisition are forwarded to the BSC275 of correlation.BSC provides logical
Words resource allocation and the mobile management function of the coordination including the soft switching process between BS 270.BSC275 will also be received
Data are routed to MSC280, and which is provided for the extra route service with PSTN290 formation interfaces.Similarly, PSTN290 with
MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 correspondingly controls BS 270 with by forward link signals
It is sent to mobile terminal 1 00.
In mobile terminal, the mobile communication module 112 of wireless communication unit 110 is based on the built-in access movement of mobile terminal
The necessary data of communication network (mobile communications network such as such as 2G/3G/4G) is accessed (including customer identification information and authentication information)
Mobile communications network is the business transmission mobile data (bag such as the web page browsing of mobile phone users, network multimedia broadcasting
Include up mobile data and descending mobile data).
The wireless Internet module 113 of wireless communication unit 110 reality by the related protocol function of operation hotspot
The function of existing hotspot, hotspot support that multiple mobile terminals (any mobile terminal outside mobile terminal) are accessed, and lead to
The webpage that the mobile communication crossed between multiplexing mobile communication module 112 and mobile communications network is connected as mobile phone users is clear
Look at, network multimedia is played etc., and business transmission mobile data (includes that up mobile data and descending movement are logical
Letter data), the mobile communication connection transmission movement being substantially multiplexed due to mobile terminal between mobile terminal and communication network
Communication data, therefore the flow of the mobile data of mobile terminal consumption counts movement by the charging entity of communication network side
The post and telecommunication tariff of terminal, the data flow of the mobile data that the post and telecommunication tariff used so as to consume mobile terminal signing includes
Amount.
Based on 00 hardware configuration of above-mentioned mobile terminal 1 and communication system, the inventive method each embodiment is proposed.
In double L communication constructions as shown in Figure 3, Modem1 and Modem2 all there is a problem of cannot dormancy, this will draw
Play terminal Overall Power Consumption larger.Modem1 and Modem2 all cannot dormancy the reason for be serial ports between Modem1 and Modem2 without
Method dormancy, for this purpose, the embodiment of the present invention proposes a kind of serial ports dormancy scheme, causes string by by the clock dormancy in serial ports
Mouth dormancy.
With reference to Fig. 4, Fig. 4 is the Organization Chart of the Network authentication data that Modem2 reads SIM2 to Modem1, and the left side of Fig. 4 is
It is Modem1 on the right of Modem2, Fig. 4, is communicated by UART serial ports between Modem2 and Modem1, specifically, Modem2
The Network authentication data of SIM2 is read by UART serial ports from Modem1.
The embodiment of the present invention solve serial ports cannot dormancy be by following principle:Allow when serial ports does not have data transfer
The clock dormancy of serial ports is gone down.For this purpose, embodiment of the present invention UART in the diagram drives layer to deal with, specifically, with reference to Fig. 5,
Frame diagrams of the Fig. 5 for the serial port drive layer of the embodiment of the present invention, wherein, the framework of serial port drive layer includes:Data access layer
(DAL, Data Access Layer), hardware abstraction layer (HAL, Hardware Abstraction Layer) and hardware (HW)
Layer.In one example, the timer (timer) of a N second (if N is as 5) can be set in data access layer, by this
Timer detecting in current serial ports whether there is data transfer, if then keeping transmitting state not dormancy, if it is not, data
Access Layer notifies power saving (power down) pattern that hardware abstraction layer drives hardware layer, calls serial ports itself to support, namely
Clock dormancy is made so that serial ports dormancy.Here, battery saving mode is also referred to as park mode.
In the embodiment of the present invention, the dormancy (namely dormancy of CPU) of terminal is to adopt voting mechanism, with reference to Fig. 6, CPU's
Dormancy carrys out management and control by RPM, and a NPA is exactly a ballot node, when all NPA of regulation vote dormancy, then RPM just meetings
Decision-making allows CPU dormancy to go down, so, ticket one to be thrown during serial ports dormancy in the embodiment of the present invention, other modules just do not go wrong
After often voting, CPU will dormancy.
Fig. 7 illustrates one for the flow process of the dormancy control method of the embodiment of the present invention, as shown in fig. 7, the dormancy controlling party
Method is comprised the following steps:
Step 701:Between the first modem and second modem, serial ports is set, wherein, described first adjusts
Modulator-demodulator is connected with the first communication card and the second communication card, and the second modem can be from described by the serial ports
The Network authentication data of second communication card is got in first modem.
In the embodiment of the present invention, first modem supports the data service of first communication card and voice industry
Business, and support the speech business of second communication card;The second modem supports the number of second communication card
According to business.
With reference to Fig. 3, the first modem is Modem1, and second modem is Modem2, the first modem
Serial ports between second modem is UART.First communication card is SIM1, and the second communication card is SIM2.
As shown in figure 3, SIM1 is used for surfing the Net and making a phone call, his business is supported by Modem1;Adding
Before Modem2, SIM2 is only capable of by Modem1 making a phone call;After Modem2 is added, Modem2 passes through serial ports from Modem1
The Network authentication data of middle reading SIM2, by the Network authentication data of SIM2 by Modem2 supporting, i.e., by Modem2 come
Support the data service of SIM2.User data and signaling data in Modem2 is by USB passages directly with AP interacting.This
Sample, AP just can receive the Internet data of SIM1 and SIM2 simultaneously.Now, the data routing layer in kernel layers is made at algorithm
Reason, it becomes possible to realize that APP online (either download or upload) can be while carry out by SIM1 and SIM2.
Step 702:The electricity of battery is obtained, judges the electricity of the battery whether less than predetermined threshold value.
In the embodiment of the present invention, not all of situation is required for the first modem to be in second modem
Working condition, when the battery electric quantity of terminal is less than threshold value, in order to reduce power consumption, extends use time, it is also possible to actively by the
Two modems are set to resting state.
Based on this, need to obtain the electricity of battery.If the electricity of battery is not less than predetermined threshold value, continue to keep first
Serial ports between modem and second modem is in running order, also keeps second modem to be in simultaneously
Working condition., whereas if the electricity of battery is less than predetermined threshold value, then need to control the first modem and the second modulatedemodulate
Serial ports between tune device in a dormant state, also controls second modem in a dormant state simultaneously, can so save
The power consumption of terminal, extends the continuation of the journey duration of terminal.
Step 703:When the electricity of the battery is less than predetermined threshold value, the serial ports is controlled in a dormant state, so as to
Make the second modem dormancy.
In the embodiment of the present invention, control the serial ports and refer in a dormant state:The clock of the serial ports is controlled in not
Dormancy state, so that the serial ports is in a dormant state.
With reference to Fig. 5, the serial port drive layer of serial ports includes:Data access layer, hardware abstraction layer, hardware layer, data access layer
Notify that hardware abstraction layer drives the clock of the serial ports in a dormant state.
Using the technical scheme of the embodiment of the present invention, can according to the current battery electric quantity of terminal flexibly control Modem1 and
Serial ports between Modem2 carries out dormancy, and then causes Modem2 dormancy, reduces power consumption of terminal, when extending terminal continuation of the journey
It is long.
Fig. 8 illustrates two for the flow process of the dormancy control method of the embodiment of the present invention, as shown in figure 8, the dormancy controlling party
Method is comprised the following steps:
Step 801:Between the first modem and second modem, serial ports is set, wherein, described first adjusts
Modulator-demodulator is connected with the first communication card and the second communication card, and the second modem can be from described by the serial ports
The Network authentication data of second communication card is got in first modem.
In the embodiment of the present invention, first modem supports the data service of first communication card and voice industry
Business, and support the speech business of second communication card;The second modem supports the number of second communication card
According to business.
With reference to Fig. 3, the first modem is Modem1, and second modem is Modem2, the first modem
Serial ports between second modem is UART.First communication card is SIM1, and the second communication card is SIM2.
As shown in figure 3, SIM1 is used for surfing the Net and making a phone call, his business is supported by Modem1;Adding
Before Modem2, SIM2 is only capable of by Modem1 making a phone call;After Modem2 is added, Modem2 passes through serial ports from Modem1
The Network authentication data of middle reading SIM2, by the Network authentication data of SIM2 by Modem2 supporting, i.e., by Modem2 come
Support the data service of SIM2.User data and signaling data in Modem2 is by USB passages directly with AP interacting.This
Sample, AP just can receive the Internet data of SIM1 and SIM2 simultaneously.Now, the data routing layer in kernel layers is made at algorithm
Reason, it becomes possible to realize that APP online (either download or upload) can be while carry out by SIM1 and SIM2.
Step 802:For the battery, threshold value is set.
In the embodiment of the present invention, the threshold value of battery can when terminal is dispatched from the factory default setting, it is also possible to terminal is carried for user
For arranging interface, by user according to oneself demand arranging threshold value, set threshold value can be carrying out according to different scenes
It is adjusted flexibly.
Step 803:The electricity of battery is obtained, judges the electricity of the battery whether less than predetermined threshold value.
In the embodiment of the present invention, not all of situation is required for the first modem to be in second modem
Working condition, when the battery electric quantity of terminal is less than threshold value, in order to reduce power consumption, extends use time, it is also possible to actively by the
Two modems are set to resting state.
Based on this, need to obtain the electricity of battery.If the electricity of battery is not less than predetermined threshold value, continue to keep first
Serial ports between modem and second modem is in running order, also keeps second modem to be in simultaneously
Working condition., whereas if the electricity of battery is less than predetermined threshold value, then need to control the first modem and the second modulatedemodulate
Serial ports between tune device in a dormant state, also controls second modem in a dormant state simultaneously, can so save
The power consumption of terminal, extends the continuation of the journey duration of terminal.
Step 804:When the electricity of the battery is less than predetermined threshold value, the serial ports is controlled in a dormant state, so as to
Make the second modem dormancy.
In the embodiment of the present invention, control the serial ports and refer in a dormant state:The clock of the serial ports is controlled in not
Dormancy state, so that the serial ports is in a dormant state.
With reference to Fig. 5, the serial port drive layer of serial ports includes:Data access layer, hardware abstraction layer, hardware layer, data access layer
Notify that hardware abstraction layer drives the clock of the serial ports in a dormant state.
Using the technical scheme of the embodiment of the present invention, can according to the current battery electric quantity of terminal flexibly control Modem1 and
Serial ports between Modem2 carries out dormancy, and then causes Modem2 dormancy, reduces power consumption of terminal, when extending terminal continuation of the journey
It is long.
Structure composition schematic diagrams of the Fig. 9 for the terminal of the embodiment of the present invention, as shown in Figure 9:
In first embodiment of the invention, the terminal includes:
Serial port unit 901, for arranging serial ports between the first modem and second modem, wherein, institute
State the first modem to be connected with the first communication card and the second communication card, the second modem passes through the serial ports energy
Enough Network authentication datas that second communication card is got from first modem;
Whether judging unit 902, for obtaining the electricity of battery, judge the electricity of the battery less than predetermined threshold value;
Control unit 903, for when the electricity of the battery is less than predetermined threshold value, controlling the serial ports and being in dormancy shape
State, so that the second modem dormancy.
In second embodiment of the invention, the terminal includes:
Serial port unit 901, for arranging serial ports between the first modem and second modem, wherein, institute
State the first modem to be connected with the first communication card and the second communication card, the second modem passes through the serial ports energy
Enough Network authentication datas that second communication card is got from first modem;
Whether judging unit 902, for obtaining the electricity of battery, judge the electricity of the battery less than predetermined threshold value;
Control unit 903, for when the electricity of the battery is less than predetermined threshold value, controlling the serial ports and being in dormancy shape
State, so that the second modem dormancy.
Described control unit 903, specifically for:Control the clock of the serial ports in a dormant state, so that the string
Mouth is in a dormant state.
The terminal also includes:Setting unit 904, for arranging threshold value for the battery.
Described control unit 903, specifically for:Notify that hardware abstraction layer drives institute by the data access layer of the serial ports
State the clock of serial ports in a dormant state.
First modem supports the data service and speech business of first communication card, and supports described
The speech business of the second communication card;
The second modem supports the data service of second communication card.
It will be appreciated by those skilled in the art that each unit in terminal shown in Fig. 9 realizes that function can refer to aforementioned stopping
The associated description of dormancy control method and understand.The function of each unit in terminal shown in Fig. 9 can be by running on processor
Program and realize, also can be realized by specific logic circuit.
Between technical scheme described in the embodiment of the present invention, in the case where not conflicting, can be in any combination.
In several embodiments provided by the present invention, it should be understood that disclosed method and smart machine, Ke Yitong
Cross other modes to realize.Apparatus embodiments described above are only schematically, for example division of the unit, only
Only a kind of division of logic function, can have other dividing mode, such as when actually realizing:Multiple units or component can be tied
Close, or be desirably integrated into another system, or some features can be ignored, or do not perform.In addition, shown or discussed each group
Can be by the indirect of some interfaces, equipment or unit into coupling partly each other or direct-coupling or communication connection
Coupling is communicated to connect, and can be electrical, machinery or other forms.
The above-mentioned unit as separating component explanation can be, or may not be it is physically separate, it is aobvious as unit
The part for showing can be, or may not be physical location, you can with local positioned at one, it is also possible to be distributed to multiple network lists
In unit;Part or all of unit therein can be selected according to the actual needs to realize the purpose of this embodiment scheme.
In addition, each functional unit in various embodiments of the present invention can be fully integrated in a second processing unit,
Can also be each unit individually as a unit, it is also possible to which two or more units are integrated in a unit;
Above-mentioned integrated unit both can be realized in the form of hardware, it would however also be possible to employ hardware adds the form reality of SFU software functional unit
It is existing.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.