Summary of the invention
The invention mainly solves the technical problem of providing the method and mobile terminal of a kind of continuation of the journey of mobile terminal, Neng Gou greatThe big cruising ability for improving mobile terminal, and then promote the Experience Degree of user.
In order to solve the above technical problems, one technical scheme adopted by the invention is that: a kind of continuation of the journey of mobile terminal is providedMethod, which includes external display screen and built-in display screen, this method comprises: judging whether external display screen accesses shiftingDynamic terminal;If external display screen accesses mobile terminal, the voltage value of mobile terminal is periodically obtained;Judge voltage valueSize between the first power threshold of the pre-set switching screen of user;When voltage value is less than the first power thresholdWhen, it opens external display screen and closes built-in display screen.
Wherein, if external display screen accesses mobile terminal, this method further comprises: periodically obtaining the screen of user's inputCurtain switching command;External display screen or built-in display screen are selectively opened according to screens switch instruction.
Wherein, which further comprises external battery and internal battery, obtains the voltage value of mobile terminalThe step of include: to judge whether external battery accesses mobile terminal;If external battery accesses mobile terminal, internal battery is judgedSize between charge value and the second power threshold of the pre-set switching battery of user;When the charge value of internal battery is less thanWhen the second power threshold, powered using external battery to mobile terminal;Obtain the current electric quantity for the battery powered to mobile terminalValue.
Wherein, if external battery accesses mobile terminal, the step of obtaining the voltage value of mobile terminal, further comprises:Judge whether user inputs battery switching command;If user inputs battery switching command, according to battery switching command selectivityGround is powered using external battery or internal battery to mobile terminal.
Wherein, it if user does not input battery switching command, continues to execute and judges that the charge value of internal battery and user are pre-The operation of size between second power threshold of the switching battery being first arranged.
In order to solve the above technical problems, another technical solution used in the present invention is: providing a kind of mobile terminal, the shiftingDynamic terminal includes external display screen, built-in display screen and driving device, which includes: first judgment module, is set toIn mobile terminal, for judging whether external display screen accesses mobile terminal;Electric power detection module is set in mobile terminal,It is connect with first judgment module, for periodically obtaining when first judgment module judges that external display screen accesses mobile terminalThe voltage value of mobile terminal;Second judgment module, is set in mobile terminal, connect with electric power detection module, for sentencingIt is big between the disconnected electric power detection module voltage value obtained and the first power threshold of the pre-set switching screen of userIt is small;Display screen switching module, is set in mobile terminal, connect with the second judgment module, for judging when the second judgment moduleWhen voltage value is less than the first power threshold, opens external display screen and close built-in display screen.
Wherein, driving device further comprises: screens switch instruction acquisition module is set in mobile terminal, with firstJudgment module connection, for it is defeated periodically to obtain user when first judgment module judges that external display screen accesses mobile terminalThe screens switch instruction entered;Wherein, display screen switching module is also used to the screen obtained according to screens switch instruction acquisition moduleSwitching command is selectively opened external display screen or built-in display screen.
Wherein, mobile terminal further comprises external battery and internal battery, and electric power detection module further comprises: firstJudging unit, for judging whether external battery accesses mobile terminal;Second judgment unit is connect with the first judging unit, is usedIn when the first judging unit judges that external battery accesses mobile terminal, judge that the charge value of internal battery is preset with userSwitching battery the second power threshold between size;Battery switch unit, connect with second judgment unit, for when secondWhen judging unit judges the charge value of internal battery less than the second power threshold, selection is supplied using external battery to mobile terminalElectricity;Electric power detection unit is connect with battery switch unit, for obtain battery switch unit switching to mobile terminal powerThe voltage value of battery.
Wherein, electric power detection module further comprises: third judging unit is connect with the first judging unit, for when theWhen one judging unit judges that external battery accesses mobile terminal, judge whether user inputs battery switching command;Wherein, work as thirdWhen judging unit judges that user inputs battery switching command, battery switch unit selectively uses outer according to battery switching commandBattery or internal battery is set to power to mobile terminal.
Wherein, external display screen is electronic ink screen, and built-in display screen is liquid crystal display.
The beneficial effects of the present invention are: be in contrast to the prior art, the method for mobile terminal continuation of the journey of the invention andMobile terminal can control the switching between external display screen and built-in display screen according to the voltage value of mobile terminal, thusThe cruising ability of mobile terminal can be greatly improved, and then promotes the Experience Degree of user.
Specific embodiment
The present invention is described in detail with embodiment with reference to the accompanying drawing.
Fig. 1 is the flow chart of the method for the mobile terminal continuation of the journey of the embodiment of the present invention.It is noted that if having substantial phaseWith as a result, method of the invention is not limited with process sequence shown in FIG. 1.As shown in Figure 1, the method comprising the steps of:
Step S11: judging whether external display screen accesses mobile terminal, if so, executing step S12, otherwise continues to executeStep S11.
In step s 11, external display screen is set on the preceding protective shell of mobile terminal, and there are external interfaces.It can be withUnderstand, external display screen access mobile terminal refers to that the correspondence of the external interface access mobile terminal of external display screen connectsMouthful.Wherein, which includes interrupt interface and I2C/SPI interface.
Specifically, mobile terminal judges that external display screen is by detecting the signal of interrupt interface and whether changingNo access mobile terminal, after mobile terminal judges that external display screen accesses mobile terminal, if mobile terminal uses external displayScreen, then continue through I2C/SPI Interface Controller external display screen is normally shown.
In the present embodiment, mobile terminal further comprises built-in display screen, and built-in display screen is to fix with mobile terminalThe display screen of connection.Wherein, built-in display screen has better clarity, the relatively built-in display of external display screen compared with external display screenScreen has smaller power consumption.Preferably, built-in display screen is liquid crystal display, and external display screen is electronic ink screen.
Step S12: the voltage value of mobile terminal is periodically obtained.
In step s 12, the operation for obtaining the voltage value of mobile terminal is fixed cycle operator, is changed for an angle,I.e. operation is primary at predetermined time intervals.
It is the sub-process figure that the voltage value of mobile terminal is obtained in Fig. 1 please also refer to Fig. 2, Fig. 2.It should be notedIt is, if having substantially the same as a result, the present invention is not limited with process sequence shown in Fig. 2.As shown in Fig. 2, obtaining movementThe voltage value of terminal comprising steps of
Step S120: judging whether external battery accesses mobile terminal, if so, step S121 is executed, it is no to then follow the stepsS126。
In the step s 120, external battery is set on the rear protective shell of mobile terminal, and there are external interfaces.It can manageSolution, external battery access mobile terminal refer to the corresponding interface of the external interface access mobile terminal of external battery.Wherein,The external interface includes interrupt interface and power interface.
Specifically, whether mobile terminal judges external battery by the way that whether the signal of detection interrupt interface changesMobile terminal is accessed, after mobile terminal judges that external battery accesses mobile terminal, if mobile terminal uses external battery, is connectThe power path of power interface and mobile terminal in logical external interface is to use external battery to power to mobile terminal.
In the present embodiment, mobile terminal further comprises internal battery, wherein internal battery is to be set to mobile terminalThe battery of battery slot.
Step S121: judging whether user inputs battery switching command, if so, step S122 is executed, it is no to then follow the stepsS123。
In step S121, battery switching command includes that internal battery is switched to external battery and in external battery is switched toSet the instruction of battery.
Step S122: external battery or internal battery is selectively used to supply to mobile terminal according to battery switching commandElectricity, and execute step S126.
In step S122, when battery switching command is that internal battery is switched to the instruction of external battery, then selection is outerIt sets battery to power to mobile terminal, namely the supply access of connection external battery and mobile terminal.When battery switching command is outerWhen setting battery and being switched to the instruction of internal battery, then internal battery is selected to give mobile terminal power supply, namely connection internal battery withThe supply access of mobile terminal.
Step S123: judge whether the charge value of internal battery is less than the second electricity threshold of pre-set switching batteryValue, if so, thening follow the steps S124, otherwise continues to execute step S125.
Step S124: it is powered using external battery to mobile terminal, and continues to execute step S126.
It is when step S123 judges the charge value of internal battery less than the second power threshold namely interior in step S124When setting the electricity of battery and depleting substantially, then mobile terminal is given to power using external battery, to improve the continuous of mobile terminalBoat ability.
Step S125: it is powered using internal battery to mobile terminal.
In step s 125, when step S123 judges the charge value of internal battery more than or equal to the second power threshold,That is it when the electricity of internal battery there remains more, is then powered using internal battery to mobile terminal.
Step S126: the voltage value for the battery powered to mobile terminal is obtained.
In step S126, when the charge value according to user itself selection or internal battery is determining using internal battery or outerAfter battery is set to mobile terminal power supply, the voltage value for the battery powered to mobile terminal is obtained.
Step S13: judge whether voltage value is less than the first power threshold of the pre-set switching screen of user;IfIt is to then follow the steps S14, it is no to then follow the steps S15.
Step S14: it opens external display screen and closes built-in display screen, and continue to execute step S16.
In step S14, when step S13 judges voltage value less than the first power threshold namely current electric quantity is surplusWhen remaining smaller, then the lesser external display screen of power consumption is used, to improve the cruising ability of mobile terminal.
Step S15: it opens built-in display screen and closes external display screen.
In step S15, when step S13 judges that voltage value is more than or equal to the first power threshold, namely current electricityWhen amount is remaining more, then the biggish built-in display screen of power consumption is used, so as to provide clearer display.
Step S16: the screens switch instruction of user's input is periodically obtained.
In step s 16, it is interior that screens switch instruction, which is switched to external screen and external screens switch including built-in screen,Set the instruction of screen.
In the present embodiment, the operation for obtaining the screens switch instruction of user's input is fixed cycle operator, is changed for an angle,Namely operation is primary at predetermined time intervals.Wherein, due to obtaining the voltage value of mobile terminal and obtaining the screen of user's inputCurtain switching command is fixed cycle operator, that is to say, that the two is parallel work-flow, and the switching of screen can voluntarily be controlled by userIt can also be switched over by judging voltage value.
Step S17: external display screen or built-in display screen are selectively opened according to screens switch instruction.
In step S17, when screens switch instruction is that built-in screen is switched to the instruction of external screen, then select to useExternal display screen.When it is the instruction of built-in screen that screens switch instruction, which is external screens switch, then select using built-in displayScreen.
Fig. 3 is the structural schematic diagram of the mobile terminal of the embodiment of the present invention.As shown in figure 3, mobile terminal includes driving dressSet 21, external display screen 22, built-in display screen 23, external battery 24 and internal battery 25.
Driving device 21 is cut including first judgment module 211, electric power detection module 212, the second judgment module 213, screenChange instruction acquisition module 214 and display screen switching module 214.
First judgment module 211, is set in mobile terminal, for judging it is mobile whole whether external display screen 22 accessesEnd.
Electric power detection module 212, is set in mobile terminal, connect with first judgment module 211, for when the first judgementWhen module 212 judges that external display screen 22 accesses mobile terminal, the voltage value of mobile terminal is periodically obtained.
Specifically, electric power detection module 212 is sentenced including the first judging unit 2121, second judgment unit 2122, thirdDisconnected unit 2123, battery switch unit 2124 and electric power detection unit 2125.
Wherein, the first judging unit 2121 is connect with first judgment module 211, for judging when first judgment module 212When external display screen 22 accesses mobile terminal, judge whether external battery 24 accesses mobile terminal.
Second judgment unit 2122 is connect with the first judging unit 2121, for when the first judging unit 2121 judge it is externalWhen battery 24 accesses mobile terminal, the second electricity of the charge value of internal battery 25 and the pre-set switching battery of user is judgedSize between threshold value.
Third judging unit 2123 is connect with the first judging unit 2121, for when the first judging unit 2121 judge it is externalWhen battery 24 accesses mobile terminal, judge whether user inputs battery switching command.
Battery switch unit 2124 is connect, for working as respectively with second judgment unit 2122 and third judging unit 2123When second judgment unit 2122 judges the charge value of internal battery 25 less than the second power threshold, selection is given using external battery 24Mobile terminal power supply;And when third judging unit 2123 judges that user inputs battery switching command, referred to according to battery switchingIt enables and selectively being powered using external battery 24 or internal battery 25 to mobile terminal.
Electric power detection unit 2125 is connect with battery switch unit 2124, for obtaining the switching of battery switch unit 2124To the voltage value for the battery that mobile terminal is powered.
Second judgment module 213, is set in mobile terminal, with the electric power detection unit in electric power detection module 2122125 connections, for judging the of voltage value and the pre-set switching screen of user that electric power detection module 212 obtainsSize between one power threshold.
Screens switch instruction acquisition module 214, is set in mobile terminal, connect with first judgment module 211, for working asWhen first judgment module 211 judges that external display screen 22 accesses mobile terminal, the screens switch instruction of user is periodically obtained.
Display screen switching module 215, is set in mobile terminal, refers to respectively with the second judgment module 213 and screens switchIt enables and obtains the connection of module 214, for opening when the second judgment module 213 judges voltage value less than the first power thresholdExternal display screen simultaneously closes built-in display screen;And when the second judgment module 213 judges that voltage value is more than or equal to the first electricityWhen measuring threshold value, opens built-in display screen 23 and close external display screen 22;And it is obtained according to screens switch instruction acquisition module 214The screens switch instruction taken is selectively opened external display screen 22 or built-in display screen 23.
Fig. 3 is the structural schematic diagram of one entity apparatus of mobile terminal of the embodiment of the present invention, and the device of present embodiment canTo execute the step in the above method, related content refers to the detailed description in the above method, no longer superfluous herein to chat.
The device includes: processor 31, the memory coupled with processor 31 32, external display screen 33, built-in display screen34, external battery 35 and internal battery 36.
Memory 32 is used to store pre-set the first power threshold for switching screen and pre-set switching batteryThe second power threshold.
Processor 31 is for judging whether external display screen 33 accesses mobile terminal;If the access of external display screen 33 is mobile eventuallyEnd periodically obtains the voltage value of mobile terminal;Judge the of voltage value and the pre-set switching screen of userSize between one power threshold;When voltage value is less than the first power threshold, open in external display screen 33 and closingSet display screen 34.
If external display screen 33 accesses mobile terminal, processor 31 is also used to periodically obtain the screens switch of user's inputInstruction is selectively opened external display screen 33 or built-in display screen 34 according to screens switch instruction.
The operation that processor 31 executes the voltage value for obtaining mobile terminal includes: that processor 31 judges external battery 35Whether mobile terminal is accessed;If external battery 35 accesses mobile terminal, processor 31 continues to judge the charge value of internal battery 36Size between the second power threshold of the pre-set switching battery of user;When the charge value of internal battery 36 is less than secondWhen power threshold, processor 31 is powered using external battery 35 to mobile terminal;The acquisition of processor 31 is powered to mobile terminalThe voltage value of battery.
If external battery 35 accesses mobile terminal, processor 31 is also used to judge whether user inputs battery switching command;If user inputs battery switching command, processor 31 selectively uses external battery 35 or built-in according to battery switching commandBattery 36 is powered to mobile terminal.
If user does not input battery switching command, the execution of processor 31 judges that the charge value of internal battery 36 and user are pre-The operation of size between second power threshold of the switching battery being first arranged.
The beneficial effects of the present invention are: be in contrast to the prior art, the method for mobile terminal continuation of the journey of the invention andMobile terminal is by being arranged external display screen in the preceding protective shell of mobile terminal and outside the rear protective shell of mobile terminal is arrangedBattery is set, the screens switch instruction control external display screen that inputs according to the voltage value of mobile terminal, user and built-in aobviousSwitching between display screen, and according to the battery switching command that the charge value of internal battery, user input realize external battery andSwitching between internal battery.By the above-mentioned means, the power consumption due to external display screen is less than the power consumption of built-in display screen, with thisSimultaneously as the introducing of external battery, so as to which the cruising ability of mobile terminal can be greatly improved.In addition, external displayScreen and built-in display screen and external battery and internal battery can voluntarily arrange in pairs or groups use according to the user's choice, so as to mentionRise the Experience Degree of user.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method canTo realize by another way.For example, device embodiments described above are only schematical, for example, the mouldThe division of block or unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multipleUnit or assembly can be combined or can be integrated into another system, or some features can be ignored or not executed.It is anotherPoint, shown or discussed mutual coupling, direct-coupling or communication connection can be through some interfaces, device orThe indirect coupling or communication connection of unit can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unitThe component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multipleIn network unit.Some or all of unit therein can be selected to realize present embodiment scheme according to the actual needsPurpose.
In addition, each functional unit in each embodiment of the present invention can integrate in one processing unit, it can alsoTo be that each unit physically exists alone, can also be integrated in one unit with two or more units.It is above-mentioned integratedUnit both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent productWhen, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantiallyThe all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other wordsIt embodies, which is stored in a storage medium, including some instructions are used so that a computerIt is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present inventionThe all or part of the steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory(ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or diskEtc. the various media that can store program code.
Mode the above is only the implementation of the present invention is not intended to limit the scope of the invention, all to utilize thisEquivalent structure or equivalent flow shift made by description of the invention, is applied directly or indirectly in other relevant technical fields,It is included within the scope of the present invention.