Summary of the invention
Troublesome poeration when using " automatic rotation screen " function items when the technical problem to be solved in the present invention is to overcome that in prior art, user lies on one's side, waste time and energy and the defect of the effect of " automatic rotation screen " function items cannot be played completely, provide a kind of mobile terminal and screen turning shifting method, detect according to gravity sensor the back that whether location status of mobile terminal changes and range sensor detects mobile terminal and whether there is the display mode that object adjusts the screen of mobile terminal, this process avoids the troublesome poeration that use " automatic rotation screen " function items brings, the shortcoming such as waste time and energy, have simple to operate, convenient and provide more comfortable operating environment and the advantage of experience for user.
The present invention solves above-mentioned technical problem by following technical proposals:
The invention provides a kind of mobile terminal, this mobile terminal comprises a gravity sensor, its feature is, this mobile terminal also comprises a range sensor, this range sensor is located at the back of this mobile terminal, this first testing result for detecting and obtaining the first testing result representing whether the location status of this mobile terminal changes, and is sent into a controller by this gravity sensor;
This second testing result for detect and whether the back obtaining this mobile terminal exists the second testing result of object, and is sent into this controller by this range sensor;
This controller is used for the display mode adjusting the screen of this mobile terminal according to this first testing result and this second testing result.
Wherein, the location status of this mobile terminal uses the custom of this mobile terminal to define according to user, as in most cases, when user needs this mobile terminal to show in perpendicular mode of holding, hand-held posture is the back that the hand of user can hold this mobile terminal; When user needs this mobile terminal to show in horizontal mode of holding, hand-held posture is that the hand of user can be placed on the dual-side of this mobile terminal, to keep the balance of this mobile terminal.When this mobile terminal from perpendicular hold display mode become horizontal hold display mode or from horizontal hold display mode become perpendicular hold display mode time, just show that the location status of this mobile terminal there occurs change.
Preferably, this controller is used for enabling this range sensor when the location status that this first testing result is this mobile terminal changes, and adjusts the display mode of the screen of this mobile terminal according to this second testing result.When there is not object in the back that this second testing result that this controller receives is this mobile terminal, then this controller overturns the display mode of the screen of this mobile terminal, to be the upset of horizontal screen the be perpendicular screen of the display mode by original screen or be the upset of perpendicular screen by the display mode of original screen be horizontal screen.
Preferably, the quantity of this range sensor is three, three equidistant center back positions being located at this mobile terminal of range sensor.Certainly, the quantity of this range sensor also can be other numerical value, three range sensors also can be arranged on the back of this mobile terminal not in accordance with equidistant mode, three range sensors can also be arranged on other position except the center at back, back of this mobile terminal.
Preferably, this mobile terminal also comprises an optical sensor, this optical sensor is for detecting the bright-dark degree of environment residing for this mobile terminal, and this controller is used for whether being greater than according to this first testing result, this bright-dark degree the display mode that first threshold and this second testing result adjust the screen of this mobile terminal.
Wherein, this bright-dark degree refers to intensity or the brightness of light.
Preferably, this controller is used for enabling when the location status that this first testing result is this mobile terminal changes this optical sensor and this range sensor, and whether is greater than according to this bright-dark degree the display mode that this first threshold and this second testing result adjust the screen of this mobile terminal.When this bright-dark degree that this controller receives is greater than this first threshold and the back that this second testing result is this mobile terminal does not exist object, then this controller overturns the display mode of the screen of this mobile terminal.
Preferably, this mobile terminal also comprises a sound detection module, this sound detection module is for detecting the sound of environment residing for this mobile terminal, and this controller is used for whether being greater than according to this first testing result, this sound the display mode that Second Threshold and this second testing result adjust the screen of this mobile terminal.
Preferably, this controller is used for enabling when the location status that this first testing result is this mobile terminal changes this sound detection module and this range sensor, and whether is greater than according to this sound the display mode that this Second Threshold and this second testing result adjust the screen of this mobile terminal.When this sound that this controller receives is greater than this Second Threshold and the back that this second testing result is this mobile terminal does not exist object, then this controller overturns the display mode of the screen of this mobile terminal.
Present invention also offers a kind of screen turning shifting method, its feature is, it utilizes above-mentioned mobile terminal to realize, and this screen turning shifting method comprises the following steps:
Step S
1, whether this gravity sensor location status of detecting this mobile terminal change, and if so, then enters step S
2, if not, then repeated execution of steps S
1;
Step S
2, this controller enables this range sensor, whether the back that this range sensor detects this mobile terminal exists object, if not, then enters step S
3, if so, then repeated execution of steps S
1;
Step S
3, this controller adjusts the display mode of the screen of this mobile terminal, adjustment here adjusts based on this second testing result or based on this first testing result and the second testing result.
Preferably, this mobile terminal also comprises an optical sensor or/and a sound detection module, at this step S
2in, this optical sensor enabled by this controller or/and this sound detection module, and enable this range sensor simultaneously, the bright-dark degree of environment residing for this mobile terminal of this light sensors whether is greater than first threshold or/and whether the sound that this sound detection module detects environment residing for this mobile terminal is greater than Second Threshold, and whether the back that this range sensor detects this mobile terminal simultaneously exists object.
Preferably, the quantity of this range sensor is three, three equidistant center back positions being located at this mobile terminal of range sensor.
On the basis meeting this area general knowledge, above-mentioned each optimum condition, can combination in any, obtains the preferred embodiments of the invention.
Positive progressive effect of the present invention is: mobile terminal of the present invention and screen turning shifting method, avoid troublesome poeration that use " automatic rotation screen " this function items brings, the shortcoming such as waste time and energy, have simple, convenient and provide more comfortable operating environment and the advantage of experience for user.
Embodiment
Provide present pre-ferred embodiments below in conjunction with accompanying drawing, to describe technical scheme of the present invention in detail, but therefore do not limit the present invention among described scope of embodiments.
Embodiment 1
Shown in figure 1, the mobile terminal of the present embodiment comprises controller 1, gravity sensor 2 and three range sensors, 3, three equidistant centers being located at the back of this mobile terminal of range sensor 3.
Wherein, this first testing result for detecting and obtaining the first testing result representing whether the location status of this mobile terminal changes, and is sent into this controller 1 by this gravity sensor 2;
This second testing result for detect and whether the back obtaining this mobile terminal exists the second testing result of object, and is sent into this controller 1 by this range sensor 3;
Enable this range sensor 3 when this controller 1 changes for the location status that is this mobile terminal in this first testing result, and adjust the display mode of the screen of this mobile terminal according to this second testing result.
In concrete use procedure, whether the location status that this gravity sensor 2 detects this mobile terminal changes, when the location status of this mobile terminal changes, this range sensor 3 enabled by this controller 1, and whether the back detecting this mobile terminal exists the hand of the user of this mobile terminal, when there is not the hand of this user in the back of this mobile terminal, this controller 1 adjusts the display mode of the screen of this mobile terminal, namely the display mode that this controller 1 controls the screen of this mobile terminal overturns, if the display mode of screen is originally the display mode of horizontal screen, then upset is the display mode of perpendicular screen, if the display mode of screen is originally the display mode of perpendicular screen, then upset is the display mode of horizontal screen.
In addition, the quantity of this range sensor also can be other numerical value, three range sensors also can be arranged on the back of this mobile terminal not in accordance with equidistant mode, three range sensors can also be arranged on other position except the center at back, back of this mobile terminal.
Shown in figure 2, the present embodiment additionally provides a kind of screen turning shifting method, and this screen turning shifting method utilizes above-mentioned mobile terminal to realize, and this screen turning shifting method comprises the following steps:
Whether the location status that step 101, this gravity sensor detect this mobile terminal changes, and if so, then enters step 102, if not, then and repeated execution of steps 101;
This range sensor enabled by step 102, this controller, and whether the back that this range sensor detects this mobile terminal exists object, if not, then enters step 103, if so, then repeated execution of steps 101;
Step 103, this controller adjust the display mode of the screen of this mobile terminal.
Embodiment 2
Shown in figure 3, the mobile terminal of the present embodiment increases by an optical sensor 4 on the basis of embodiment 1, this optical sensor 4 is for detecting the bright-dark degree of environment residing for this mobile terminal, enable this optical sensor 4 and this range sensor 3 when this controller 1 changes for the location status that is this mobile terminal in this first testing result, and whether be greater than according to this bright-dark degree the display mode that first threshold and this second testing result adjust the screen of this mobile terminal.
In concrete use procedure, whether the location status that this gravity sensor 2 detects this mobile terminal changes, when the location status of this mobile terminal changes, this optical sensor 4 and this range sensor 3 enabled by this controller 1, and then this optical sensor 4 detects the light intensity of environment residing for this mobile terminal, whether the back that this range sensor 3 detects this mobile terminal simultaneously exists the hand of this user, such as, when this light intensity is greater than this first threshold and the back of this mobile terminal does not exist the hand of this user, this controller 1 adjusts the display mode of the screen of this mobile terminal, namely the display mode that this controller 1 controls the screen of this mobile terminal overturns.
The present embodiment additionally provides a kind of screen turning shifting method, and this screen turning shifting method utilizes above-mentioned mobile terminal to realize, and the step of this screen turning shifting method and the difference of embodiment 1 are in step 102.
Step 102 in the present embodiment is:
Step 102, this controller enable this optical sensor and this range sensor, the light intensity of environment residing for this mobile terminal of this light sensors, whether the back that this range sensor detects this mobile terminal simultaneously exists object, if this light intensity is greater than this first threshold and the back of this mobile terminal does not exist object, then enter step 103, otherwise repeated execution of steps 101.
Embodiment 3
Shown in figure 4, the mobile terminal of the present embodiment increases by a sound detection module 5 on the basis of embodiment 2, this sound detection module 5 is for detecting the sound of environment residing for this mobile terminal, enable this sound detection module 5, this optical sensor 4 and this range sensor 3 when this controller 1 changes for the location status that is this mobile terminal in this first testing result, and whether be greater than Second Threshold according to this sound, whether this bright-dark degree is greater than this first threshold and this second testing result adjusts the display mode of the screen of this mobile terminal.
In concrete use procedure, whether the location status that this gravity sensor 2 detects this mobile terminal changes, when the location status of this mobile terminal changes, this sound detection module 5 enabled by this controller 1, this optical sensor 4 and this range sensor 3, and then this sound detection module 5 detects the sound of environment residing for this mobile terminal, this optical sensor 4 detects the light intensity of environment residing for this mobile terminal simultaneously, whether the back that this range sensor 3 detects this mobile terminal simultaneously exists the hand of this user, this Second Threshold is greater than at this sound, this light intensity be greater than this first threshold and there is not the hand of this user in the back of this mobile terminal time, this controller 1 adjusts the display mode of the screen of this mobile terminal, namely the display mode that this controller 1 controls the screen of this mobile terminal overturns.
The present embodiment additionally provides a kind of screen turning shifting method, and this screen turning shifting method utilizes above-mentioned mobile terminal to realize, and the step of this screen turning shifting method and the difference of embodiment 2 are in step 102.
Step 102 in the present embodiment is:
Step 102, this controller enable this sound detection module, this optical sensor and this range sensor, this sound detection module detects the sound of environment residing for this mobile terminal, the light intensity of environment residing for this mobile terminal of this light sensors simultaneously, whether the back that this range sensor detects this mobile terminal simultaneously exists object, if this sound is greater than this Second Threshold, this light intensity is greater than this first threshold and the back of this mobile terminal does not exist object, then enter step 103, otherwise repeated execution of steps 101.
Embodiment 4
User lies on a bed in the mode of lying on one's side and uses mobile terminal generally to occur in indoor, and indoor and outdoor difference is: indoor light is partially dark, noise is little.And user lies on one's side, the generation of this situation generally has individual regular time section, as being divided into morning, the morning, noon, afternoon and five time periods of evening the time of one day, then user in the morning, noon and evening the situation of lying on one's side more.
Noise is divided into height, neutralizes low Three Estate, light is also divided into height, neutralizes low Three Estate, then according to the habits and customs of user, the situation of environment residing for as shown in table 1 user every day can be obtained:
Table 1: the status list of environment residing for user
This optical sensor 4 and this sound detection module 5 is built-in with in this mobile terminal, such as:
For the morning and the afternoon of frequency of utilization of lying on one's side " low ", be defined as " when gravity sensor 2 detects that the location status of this mobile terminal changes, the display direction that this controller 1 adjusts screen overturns thereupon ";
For morning and the evening of frequency of utilization of lying on one's side " height ", be defined as " when gravity sensor 2 detects that the location status of this mobile terminal changes, utilize this optical sensor 4 and this sound detection module 5 detection noise grade and light level respectively simultaneously, if meet < noise grade: low/medium, light level: low/medium > wherein one or two, there is the hand of this user in the back that this range sensor 3 detects this mobile terminal simultaneously, the display direction that then this controller 1 controls screen does not overturn, otherwise then automatic turning ",
For frequency of utilization of lying on one's side " in " noon, be defined as " when gravity sensor 2 detects that the location status of this mobile terminal changes; utilize this optical sensor 4 and the other detection noise grade of this sound detection module 5 and light level; if meet < noise grade simultaneously: in, light level: middle >; the back that this range sensor 3 detects this mobile terminal simultaneously exists the hand of this user; the display direction that then this controller 1 controls screen does not overturn, otherwise then automatic turning ".
Can arrange according to personal habits for above form user, simultaneously also can respectively to arranging respectively to Sunday Monday.The present embodiment just enumerates a concrete example according to actual this mobile terminal situation that uses of user, but is not limited to the protection range of this embodiment.
Each functional module in the present invention all can be realized in conjunction with existing software programming means under existing hardware condition, therefore does not all repeat its concrete methods of realizing at this.
Although the foregoing describe the specific embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, protection scope of the present invention is defined by the appended claims.Those skilled in the art, under the prerequisite not deviating from principle of the present invention and essence, can make various changes or modifications to these execution modes, but these change and amendment all falls into protection scope of the present invention.