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 great
The 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 provided
Method, which includes external display screen and built-in display screen, this method comprises: judging whether external display screen accesses shifting
Dynamic terminal;If external display screen accesses mobile terminal, the voltage value of mobile terminal is periodically obtained;Judge voltage value
Size between the first power threshold of the pre-set switching screen of user;When voltage value is less than the first power threshold
When, 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 input
Curtain 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 terminal
The step of include: to judge whether external battery accesses mobile terminal;If external battery accesses mobile terminal, internal battery is judged
Size 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 than
When the second power threshold, powered using external battery to mobile terminal;Obtain the current electric quantity for the battery powered to mobile terminal
Value.
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 selectivity
Ground 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 shifting
Dynamic terminal includes external display screen, built-in display screen and driving device, which includes: first judgment module, is set to
In 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 terminal
The voltage value of mobile terminal;Second judgment module, is set in mobile terminal, connect with electric power detection module, for sentencing
It is big between the disconnected electric power detection module voltage value obtained and the first power threshold of the pre-set switching screen of user
It is small;Display screen switching module, is set in mobile terminal, connect with the second judgment module, for judging when the second judgment module
When 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 first
Judgment module connection, for it is defeated periodically to obtain user when first judgment module judges that external display screen accesses mobile terminal
The screens switch instruction entered;Wherein, display screen switching module is also used to the screen obtained according to screens switch instruction acquisition module
Switching 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: first
Judging unit, for judging whether external battery accesses mobile terminal;Second judgment unit is connect with the first judging unit, is used
In when the first judging unit judges that external battery accesses mobile terminal, judge that the charge value of internal battery is preset with user
Switching battery the second power threshold between size;Battery switch unit, connect with second judgment unit, for when second
When judging unit judges the charge value of internal battery less than the second power threshold, selection is supplied using external battery to mobile terminal
Electricity;Electric power detection unit is connect with battery switch unit, for obtain battery switch unit switching to mobile terminal power
The voltage value of battery.
Wherein, electric power detection module further comprises: third judging unit is connect with the first judging unit, for when the
When one judging unit judges that external battery accesses mobile terminal, judge whether user inputs battery switching command;Wherein, work as third
When judging unit judges that user inputs battery switching command, battery switch unit selectively uses outer according to battery switching command
Battery 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 and
Mobile terminal can control the switching between external display screen and built-in display screen according to the voltage value of mobile terminal, thus
The 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 phase
With 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 execute
Step 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 with
Understand, external display screen access mobile terminal refers to that the correspondence of the external interface access mobile terminal of external display screen connects
Mouthful.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 changing
No access mobile terminal, after mobile terminal judges that external display screen accesses mobile terminal, if mobile terminal uses external display
Screen, 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 terminal
The 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 screen
Screen 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 noted
It 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 movement
The 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 steps
S126。
In the step s 120, external battery is set on the rear protective shell of mobile terminal, and there are external interfaces.It can manage
Solution, 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 changes
Mobile terminal is accessed, after mobile terminal judges that external battery accesses mobile terminal, if mobile terminal uses external battery, is connect
The 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 terminal
The 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 steps
S123。
In step S121, battery switching command includes that internal battery is switched to external battery and in external battery is switched to
Set the instruction of battery.
Step S122: external battery or internal battery is selectively used to supply to mobile terminal according to battery switching command
Electricity, 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 outer
It sets battery to power to mobile terminal, namely the supply access of connection external battery and mobile terminal.When battery switching command is outer
When 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 with
The 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 battery
Value, 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 S124
When setting the electricity of battery and depleting substantially, then mobile terminal is given to power using external battery, to improve the continuous of mobile terminal
Boat 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 outer
After 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;If
It 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 surplus
When 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 electricity
When 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 input
Curtain 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 user
It 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 use
External 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 display
Screen.
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 dress
Set 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, screen
Change 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 accesses
End.
Electric power detection module 212, is set in mobile terminal, connect with first judgment module 211, for when the first judgement
When 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, third
Disconnected 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 212
When 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 external
When 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 judged
Size 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 external
When 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 2123
When second judgment unit 2122 judges the charge value of internal battery 25 less than the second power threshold, selection is given using external battery 24
Mobile terminal power supply;And when third judging unit 2123 judges that user inputs battery switching command, referred to according to battery switching
It 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 2124
To 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 212
2125 connections, for judging the of voltage value and the pre-set switching screen of user that electric power detection module 212 obtains
Size between one power threshold.
Screens switch instruction acquisition module 214, is set in mobile terminal, connect with first judgment module 211, for working as
When 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 switch
It enables and obtains the connection of module 214, for opening when the second judgment module 213 judges voltage value less than the first power threshold
External 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 electricity
When 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 214
The 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 can
To 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 screen
34, 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 battery
The 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 eventually
End periodically obtains the voltage value of mobile terminal;Judge the of voltage value and the pre-set switching screen of user
Size between one power threshold;When voltage value is less than the first power threshold, open in external display screen 33 and closing
Set 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 input
Instruction 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 35
Whether mobile terminal is accessed;If external battery 35 accesses mobile terminal, processor 31 continues to judge the charge value of internal battery 36
Size between the second power threshold of the pre-set switching battery of user;When the charge value of internal battery 36 is less than second
When power threshold, processor 31 is powered using external battery 35 to mobile terminal;The acquisition of processor 31 is powered to mobile terminal
The 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 command
Battery 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 and
Mobile 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 arranged
Battery is set, the screens switch instruction control external display screen that inputs according to the voltage value of mobile terminal, user and built-in aobvious
Switching between display screen, and according to the battery switching command that the charge value of internal battery, user input realize external battery and
Switching 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 this
Simultaneously as the introducing of external battery, so as to which the cruising ability of mobile terminal can be greatly improved.In addition, external display
Screen 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 mention
Rise the Experience Degree of user.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can
To realize by another way.For example, device embodiments described above are only schematical, for example, the mould
The division of block or unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple
Unit or assembly can be combined or can be integrated into another system, or some features can be ignored or not executed.It is another
Point, shown or discussed mutual coupling, direct-coupling or communication connection can be through some interfaces, device or
The 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 unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.Some or all of unit therein can be selected to realize present embodiment scheme according to the actual needs
Purpose.
In addition, each functional unit in each embodiment of the present invention can integrate in one processing unit, it can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units.It is above-mentioned integrated
Unit 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 product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The 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 words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention
The 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 disk
Etc. 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 this
Equivalent 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.