Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only
Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can be mixed
Ground is used.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board
Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. are moved
Move the fixed terminals such as terminal, and numeral TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special
Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of realization each embodiment of the invention, the shifting
Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, Wi-Fi module 102, audio output unit
103rd, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, with
And the grade part of power supply 111.It will be understood by those skilled in the art that the structure of mobile terminal 1 00 shown in Fig. 1 is not constituted to moving
The restriction of dynamic terminal 100, mobile terminal 1 00 can include parts more more or less than diagram, or combine some parts, or
The different part arrangement of person.
The all parts of mobile terminal 1 00 are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, up data are sent into base station.Generally, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, WCDMA), TD-SCDMA (Time Division Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
Wi-Fi belongs to short range wireless transmission technology, and mobile terminal 1 00 can help user to receive by Wi-Fi module 102
Send e-mails, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although figure
1 shows Wi-Fi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal 1 00, completely can be with
Omitted as needed in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 1 00
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or Wi-Fi module 102 are received or
The voice data that person stores in memory 109 is converted into audio signal and is output as sound.Moreover, audio output unit
103 can also provide performed to mobile terminal 1 00 the related audio output of specific function (for example, call signal reception sound,
Message sink sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
Mobile terminal 1 00 also includes at least one sensor 105, such as optical sensor, motion sensor, pressure sensing
Device, capacitance sensor and other sensors.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein,
Ambient light sensor can adjust the brightness of display panel 1061 according to the light and shade of ambient light, and proximity transducer can be mobile whole
When end 100 is moved in one's ear, display panel 1061 and/or backlight are closed.It is used as one kind of motion sensor, accelerometer sensor
The size of (generally three axles) acceleration, can detect that size and the direction of gravity, can use in detectable all directions when static
Application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function in identification mobile phone posture
(such as pedometer, percussion) etc.;Fingerprint sensor, pressure sensor, iris sensor, the molecule that can also configure as mobile phone are passed
The other sensors such as sensor, gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can be wrapped
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it
(such as user is using any suitable objects such as finger, stylus or annex on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, touch detecting apparatus detects the touch orientation of user, and detects touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can
To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can be wrapped
Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, with preprocessor 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel
1061 be input and the output function that mobile terminal is realized as two independent parts, but in certain embodiments, can
By contact panel 1071 and the input that is integrated and realizing mobile terminal of display panel 1061 and output function, not do specifically herein
Limit.
Interface unit 108 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 connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 1 00 or can be with
For transmitting data between mobile terminal 1 00 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, application program (the such as sound that storing program area can be needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data field can be stored uses created data (such as according to mobile phone
Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, it can also include non-easy
The property lost memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal 1 00, utilizes various interfaces and the whole mobile terminal of connection
Various pieces, by operation or perform and are stored in software program and/or module in memory 109, and call and be stored in
Data in reservoir 109, perform the various functions and processing data of mobile terminal 1 00, so as to carry out entirety to mobile terminal 1 00
Monitoring.Processor 110 may include one or more processing units;It is preferred that, processor 110 can integrated application processor and modulation
Demodulation processor, wherein, application processor mainly handles operating system, user interface and application program etc., modulation /demodulation processing
Device mainly handles radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
In addition, in the mobile terminal 1 00 shown in Fig. 1, the left and right sides of mobile terminal 1 00 is respectively arranged with least one biography
Sensor 105, processor 110 is used to call the screen state control program stored in memory 109, and performs following operate:
When mobile terminal 1 00 is in black state, the angle of detection mobile terminal 1 00 and horizontal direction, and pass through
Whether sensor detection mobile terminal 1 00 is in holding state;
When angle is in the range of predetermined angle, and mobile terminal 1 00 is when being in holding state, control mobile terminal 1 00 from
Black state enters bright screen state.
Further, when angle is in the range of predetermined angle, and mobile terminal 1 00 is when being in holding state, control movement
The step of terminal 100 enters bright screen state from black state includes:
When angle is in the range of predetermined angle, duration of the angle in the range of predetermined angle is calculated;
When the duration being in holding state more than or equal to preset time, and mobile terminal 1 00, control is mobile eventually
End 100 enters bright screen state from black state.
Further, when angle is in the range of predetermined angle, and mobile terminal 1 00 is when being in holding state, control movement
Terminal 100 is from black state into after the step of bright screen state, and processor 110 is additionally operable to call what is stored in memory 109
Screen state control program, performs following operate:
The mobile terminal 1 00 of bright screen state and the angle of horizontal direction are in not in the range of predetermined angle when detecting
When, control mobile terminal 1 00 enters black state from bright screen state;
And/or when detecting the mobile terminal 1 00 in bright screen state in non-holding state, control mobile terminal
100 enter black state from bright screen state.
Further, when detecting the mobile terminal 1 00 in bright screen state in non-holding state, control is mobile eventually
The step of end 100 enters black state from bright screen state includes:
When detecting the mobile terminal 1 00 in bright screen state in non-holding state, the foreground of mobile terminal 1 00 is judged
With the presence or absence of the application program being currently running;
If the foreground of mobile terminal 1 00 does not have the application program being currently running, mobile terminal 1 00 is controlled from bright screen state
Into black state.
Further, when detecting the mobile terminal 1 00 in bright screen state in non-holding state, judge mobile whole
Hold after the step of 100 foregrounds whether there is the application program being currently running, processor 110 is additionally operable to call in memory 109
The screen state control program of storage, performs following operate:
If the foreground of mobile terminal 1 00 has the application program being currently running, control mobile terminal 1 00 is in bright screen shape
State.
Further, when angle is in the range of predetermined angle, and mobile terminal 1 00 is when being in holding state, control movement
Terminal 100 is from black state into after the step of bright screen state, and processor 110 is additionally operable to call what is stored in memory 109
Screen state control program, performs following operate:
When the angle for detecting the mobile terminal 1 00 in bright screen state and horizontal direction is increasing, unblock is mobile eventually
End 100.
Further, the back side of mobile terminal 1 00 is provided with back side sensor, when angle is in the range of predetermined angle, and moves
When dynamic terminal 100 is in holding state, the step of control mobile terminal 1 00 enters bright screen state from black state includes:
When angle is in the range of predetermined angle, and mobile terminal 1 00 is when being in holding state, obtains back side sensor correspondence
The 3rd detected value;
When the 3rd detected value is not zero, control mobile terminal 1 00 enters bright screen state from black state.
Further, detect that the step of whether mobile terminal 1 00 is in holding state includes by sensor:
Corresponding first detected value of the left sensor of mobile terminal 1 00 is obtained, and obtains the right side of mobile terminal 1 00 and is sensed
Corresponding second detected value of device;
When the first detected value and the second detected value are both greater than predetermined test value, confirm that mobile terminal 1 00 is in and hold shape
State;
When the first detected value is less than or equal to predetermined test value, and/or the second detected value less than or equal to default inspection
During measured value, confirm that mobile terminal 1 00 is in non-holding state.
Mobile terminal 1 00 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 1 00 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system that the mobile terminal of the present invention is based on is entered below
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
Unite as the LTE system of universal mobile communications technology, UE (User Equipment, use of the LTE system including communicating connection successively
Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned mobile terminal 1 00, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
There is provided carrying and connection management for the control node of signaling between EPC203.HSS2032 is all to manage for providing some registers
Such as function of attaching position register (not shown) etc, and some are preserved about the use such as service features, data rate
The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP
Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources
Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., do not limit herein.
Based on the above-mentioned hardware configuration of mobile terminal 1 00 and communications network system, screen state controlling party of the present invention is proposed
Each embodiment of method.
In the present embodiment there is provided the embodiment of screen state control method, it is necessary to which what is illustrated is, although in flow chart
In show logical order, but in some cases, can be to perform shown or described step different from order herein
Suddenly.
In embodiments of the present invention, screen state control method is optional is applied in mobile terminal 1 00.
Including each hard inside shell body 210 and shell body 210 on reference picture 3 and Fig. 4, the body 200 of mobile terminal 1 00
Part.Wherein, the one side of shell body 210 is provided with screen, and the relative another side of screen is back, connection screen cover and the shell at the rear back side
Body 210 is the side of mobile terminal 1 00.Generally, mobile terminal 1 00 has two long sides and two short side sides.
Holding state-detection region 220 is provided with shell body 210, for detecting mobile terminal 1 00 whether in holding
State.Whole shell body 210 can be covered by holding state-detection region 220, can also be only the part area of shell body 210
Domain, region area and regional location can flexible configurations according to actual needs.
In order to sense object, hold and be provided with capacitance sensor 230 on state-detection region 220.Capacitance sensor 230 with
CPU300 is electrically connected, and its capacitance is passed into CPU300 in real time, so that CPU300 determines whether that object touches holding state
Detection zone 220.
Posture acquisition instrument 400 is provided with body 200, is become for posture of the sensing movement terminal 100 under holding state
Change.Posture acquisition instrument 400 is electrically connected with CPU300, and the signal produced is sent to CPU300.
CPU300 is electrically connected with capacitance sensor 230 and Posture acquisition instrument 400 respectively, and receives the He of capacitance sensor 230
The signal that Posture acquisition instrument 400 is transmitted.State-detection is held in the signal that CPU300 can be transmitted according to capacitance sensor 230, detection
Whether region 220 has object touch.
The operation principle of capacitance sensor 230 is:If close to object (finger of such as user) in capacitance sensor 230
Effective projected area is A, and capacitance C can be represented with equation below:
It should be noted that ε0And εrThe dielectric constant of vacuum and air is represented respectively, and d is represented close to object and electric capacity biography
The distance between sensor 230.From formula, effective projected area A and it can change electric capacity C values apart from d close to object, because
This, difference between change that can be according to electric capacity C values and multiple electric capacity determines the interaction mode of user and mobile terminal 1 00,
And then detect whether mobile terminal 1 00 is in holding state.Further, the pressure value size of holding can also be detected.
It should be noted that mobile terminal 1 00 except using capacitance sensor 230 detect whether in holding state it
Outside, available pressure sensor, light sensor etc. are gone back to detect whether to be in holding state, pressure sensor, light sensor is used
Device detects whether that the principle in holding state will not be repeated here.
Thus, the size and variation tendency for the capacitance that CPU300 can feed back according to capacitance sensor 230, judge whether
There is object to touch and hold state-detection region 220.Generally, when user is close to capacitance sensor 230, capacitance sensor 230 feeds back
Capacitance gradually increase.Grip in view of different user is different, predeterminable capacitance threshold value, when capacitance sensor 230 is detected
To capacitance gradually increase and during more than default capacitance threshold value, there is object the position where determining this capacitance sensor 230
Contact.
Then, the position for having object to contact that CPU300 is sensed according to capacitance sensor 230, detects mobile terminal 1 00
Whether holding state is in.For example, when user is hold by one hand mobile terminal 1 00, typically four fingers contact mobile terminal 1 00
A long side, another long side of palm contacts mobile terminal 1 00.If what capacitance sensor 230 was sensed has thing
The position of body contact includes two long sides of mobile terminal 1 00, then can determine that current mobile terminal 100 is in and hold shape
State.
After it is determined that mobile terminal 1 00 is currently at holding state, the signal that CPU300 is transmitted according to Posture acquisition instrument 400
Generate the angle between mobile terminal 1 00 and horizontal direction, further, the letter that CPU300 is transmitted according to Posture acquisition instrument 400
Number determine mobile terminal 1 00 angle change direction, and then detect mobile terminal 1 00 attitudes vibration.Wherein, body 200 with
Angle between horizontal direction can be understood as inclination angle value of the body 200 relative to horizontal direction of mobile terminal 1 00, move
The angle change direction of dynamic terminal 100 can be understood as inclination side of the body 200 relative to horizontal direction of mobile terminal 1 00
To which characterizes the change in the direction of body 200.
Posture acquisition instrument 400 can be the devices such as gyroscope or gravity sensor, to detect mobile terminal 1 00 and level
The angle change situation in direction.The operation principle of gyroscope is the rotary shaft of high speed rotating object, for changing the outer of its direction
Power effect has the tendency of to be intended to vertical direction, moreover, rotating object is in lateral inclination, gravity can be to the inclined direction of increase
Effect, and axle just generates the motion (precession of the equinoxes motion) shaken the head then to movement in vertical direction, CPU300 can turn according to gyroscope
The signal of change of movable property life obtains incline direction of the mobile terminal 1 00 relative to horizontal direction and angle of inclination.
When detecting the angle change of mobile terminal 1 00 and horizontal direction using gravity sensor, pass through gravity sensor
Measurement passes to CPU300, CPU300 adding as measured by gravity sensor due to acceleration caused by gravity, and by signal
It is (mobile whole relative to the incline direction (angle change direction) of horizontal direction and angle of inclination that speed calculates mobile terminal 1 00
End 100 and the angle of horizontal direction).
Wherein, horizontal direction can be regarded as a kind of reference direction of setting, and reference direction is CPU300 settings for joining
According to base vector value, the base vector value is a kind of vector specified in default azimuthal coordinates system of mobile terminal 1 00
Value, or by the vector value of the initial position of mobile terminal 1 00 got from sensor.Wherein, pre-configured orientation coordinate system includes
It is one or more in plane coordinate system, terrestrial coordinate system or geographic coordinate system.The initial position of mobile terminal 1 00 can be mobile
Terminal 100 enters position during current mode, or position of the mobile terminal 1 00 before prefixed time interval, or
CPU300 it is upper once perform control instruction after position, can flexible configuration or selection according to actual needs.
CPU300 is according to default frequency, the angle between its body 200 of periodic detection and horizontal direction, or monitoring in real time
Its body 200 and the angle of horizontal direction.Angles of the CPU300 between body 200 and horizontal direction meets default control strip
During part, mobile terminal 1 00 is controlled.Specifically, CPU300 searches the angle of mobile terminal 1 00 and horizontal direction in control condition storehouse
The met control condition of degree, and control instruction corresponding with the control condition is determined, it is determined that after control instruction, CPU300 is held
This control instruction of row, correspondence control mobile terminal 1 00.
As a kind of embodiment, default control condition includes but is not limited to preset direction, and angle value scope.Need
To be illustrated when, default control condition can be CPU300 configuration or user's sets itself, can also collect
The use habit of user optimizes adjustment to the direction in control condition and angle value scope.
Reference picture 5, screen state control method includes:
Step S10, when mobile terminal 1 00 is in black state, the angle of detection mobile terminal 1 00 and horizontal direction,
And detect whether mobile terminal 1 00 is in holding state by sensor.
In the present embodiment, the left and right sides of mobile terminal 1 00 is respectively arranged with least one sensor, mobile terminal
100 detect whether to be in holding state by the sensor.The left and right sides of mobile terminal 1 00 can set a sensing respectively
Device, or multiple sensors are set respectively.Specifically, reference picture 6, Fig. 7 a, Fig. 7 b and Fig. 7 c, Fig. 6 is in the embodiment of the present invention
The left and right sides of mobile terminal 1 00 sets the schematic diagram of a sensor respectively, and Fig. 7 a are mobile terminal 1 00 in the embodiment of the present invention
The left and right sides sets the schematic diagram of multiple sensors respectively, and Fig. 7 b are the positive right view of Fig. 7 a mobile terminals of the present invention, Fig. 7 c
For the positive left view of Fig. 7 a mobile terminals of the present invention.In figure 6, S1 represents the sensor on the right side of mobile terminal 1 00, and S2 is represented
The sensor in the left side of mobile terminal 1 00;In Fig. 7 a, Fig. 7 b and Fig. 7 c, S1 and S2 positions are provided with multiple biographies in figure 6
Sensor so that S1=(S10 ... S1n), S2=(S20 ... S2m).In Fig. 7 a, Fig. 7 b and Fig. 7 c, S1 represents mobile terminal 1 00
Right sensor array, S10 ... S1n represent multiple sensors set by the right side of mobile terminal 1 00;S2 represents mobile terminal
100 left sensor arrays, S20 ... S2m represent multiple sensors set by the left side of mobile terminal 1 00.In the present embodiment,
Sensor used is capacitance sensor.
When mobile terminal 1 00 is in black state, mobile terminal 1 00 detects its angle with horizontal direction, Yi Jitong
Sensor is crossed to detect whether to be in holding state.It should be noted that in embodiments of the present invention, mobile terminal 1 00 can be examined first
Its angle with horizontal direction is surveyed, when the angle of mobile terminal 1 00 and horizontal direction meets certain condition, then passes through sensor
Detect whether to be in holding state, it is mobile whole such as when the angle of mobile terminal 1 00 and horizontal direction is more than some set angle
Hold 100 just to think that active user may wish to light screen, now just detect whether it is in holding state.Or first detect it
Whether holding state is in, when detecting in holding state, mobile terminal 1 00 detects its angle with horizontal direction again.
Further, reference picture 8, detect that the step of whether mobile terminal 1 00 is in holding state includes by sensor:
Step S11, obtains corresponding first detected value of the left sensor of mobile terminal 1 00, and obtain mobile terminal 1 00
Corresponding second detected value of right sensor.
Step S12, when the first detected value and the second detected value are both greater than predetermined test value, confirms at mobile terminal 1 00
In the state of holding.
Step S13, when the first detected value is less than or waited less than or equal to predetermined test value, and/or the second detected value
When predetermined test value, confirm that mobile terminal 1 00 is in non-holding state.
Mobile terminal 1 00 detects whether that the detailed process in holding state is by sensor:Mobile terminal 1 00 passes through
The sensor in left side obtains corresponding first detected value of left sensor, and obtains right sensor by the sensor on right side
Corresponding second detected value.When getting the first detected value and the second detected value, mobile terminal 1 00 judge the first detected value and
Whether the second detected value is both greater than predetermined test value, to confirm that it is current whether in holding state.
When the first detected value and the second detected value are both greater than predetermined test value, mobile terminal 1 00 confirms that it is currently at
Holding state;When the first detected value is less than or equal to predetermined test value, and/or the second detected value less than or equal to default inspection
During measured value, mobile terminal 1 00 confirms that it is currently at non-holding state.It should be noted that predetermined test value can be according to specific
Situation set, the sensor that predetermined test value is used according to mobile terminal 1 00 it is different and different, used according to sensor
Unit of account it is different and different.
Further, when it is determined that mobile terminal 1 00 is in holding state, mobile terminal 1 00 can also be according to the first detection
Size between value and the second detected value determines it is currently left-handed state or right hand grip state.Such as work as mobile terminal
When 100 left and right sides are respectively provided with a capacitance sensor, due to left-handed state and right hand grip state mobile terminal
Effective projected area A of 100 the right and lefts difference, causes the of different sizes of the first detected value and the second detected value.When first
When detected value is more than the second detected value, it is currently left-handed state to show mobile terminal 1 00;When the second detected value is more than first
Detected value, it is currently right hand grip state to show mobile terminal 1 00.
Step S20, when angle is in the range of predetermined angle, and mobile terminal 1 00, when being in holding state, control is mobile eventually
End 100 enters bright screen state from black state.
When the angle of mobile terminal 1 00 and horizontal direction is in the range of predetermined angle, and mobile terminal 1 00 is in and holds shape
During state, mobile terminal 1 00 enters bright screen state from black state.In the present embodiment, the numerical value of predetermined angle scope is not limited
It is fixed, 20 ° to 70 ° are such as could be arranged to, it can also be provided that 28 ° to 65 ° etc., specifically mobile terminal can be gripped according to different user
100 custom and set.Specifically, Fig. 9 and Figure 10 are can refer to, Fig. 9 is a kind of schematic diagram that user grips mobile terminal 1 00,
Figure 10 is a kind of schematic diagram of mobile terminal 1 00 and horizontal direction angle change.In Fig. 10, (α, β) represents predetermined angle model
Enclose, α represents predetermined angle lower range limit, β represents the higher limit of predetermined angle scope.
Further, when the angle of mobile terminal 1 00 and horizontal direction is not in the range of predetermined angle, and/or it is mobile eventually
When end 100 is not in holding state, mobile terminal 1 00 keeps black state.
Further, step S20 includes:
Step a, when angle is in the range of predetermined angle, calculates duration of the angle in the range of predetermined angle.
Step b, when the duration being in holding state more than or equal to preset time, and mobile terminal 1 00, control
Mobile terminal 1 00 enters bright screen state from black state.
Further, it is mobile whole when mobile terminal 1 00 determines it with the angle of horizontal direction in the range of predetermined angle
End 100 calculates the duration of the angle within a preset range, and when judging whether the duration is more than or equal to default
Between.When the duration is more than or equal to preset time, and mobile terminal 1 00, when being in holding state, mobile terminal 1 00 is from black
Screen state enters bright screen state;When the duration being less than preset time, mobile terminal 1 00 keeps black state.At this
In embodiment, preset time may be configured as 3 seconds, 4 seconds or 5 seconds etc..
By judging duration of the angle in the range of predetermined angle between mobile terminal 1 00 and horizontal direction, it is to avoid
When user is rocking mobile terminal 1 00, mobile terminal 1 00 also enters bright screen state from black state, improves mobile terminal
100 need to enter the accuracy rate of bright screen state from black state according to user.
Further, when mobile terminal 1 00 first detects its angle with horizontal direction, then place detected whether by sensor
In holding in state procedure, when the angle that mobile terminal 1 00 detects itself and horizontal direction starts change, itself and level are judged
Whether angle is more than preset duration from zero into the transformation period before preset range angle between direction.Represented when with (α, β)
During predetermined angle scope, judge whether transformation period can be regarded as judging mobile terminal 1 00 and horizontal direction more than preset duration
Between duration T of the angle in the range of (0, α) whether be more than preset duration t.Work as T>During t, and the angle detected exists
In the range of predetermined angle, mobile terminal 1 00 just starts sensor, detects that it is current whether in holding state by sensor,
Need to enter the accuracy rate of bright screen state from black state to improve mobile terminal 1 00 according to user.As T≤t, mobile terminal
100 do not start sensor.Preset duration can be set according to specific needs, such as may be configured as 2 seconds, or 3 seconds etc..
The present embodiment is by being respectively provided to a few sensor in the left and right sides of mobile terminal 1 00, when mobile terminal 1 00
During in black state, the angle of detection mobile terminal 1 00 and horizontal direction, and mobile terminal 1 00 is detected by sensor
Whether holding state is in;When angle is in the range of predetermined angle, and mobile terminal 1 00 is when being in holding state, control movement
Terminal 100 enters bright screen state from black state.Realize and do not unlocking mobile terminal 1 00, and do not trigger mobile terminal 1 00 and lock
Mobile terminal 1 00 is controlled to enter bright screen state from black state in the case of shielding function key;And in the present invention, it is necessary to meet angle
Degree and hold state when just control mobile terminal 1 00 from black state enter bright screen state, reduce control mobile terminal 1 00 from
Black state enters the misuse rate of bright screen state.
Further, the second embodiment of screen state control method of the present invention is proposed based on first embodiment.Screen shape
The difference of the second embodiment of state control method and the first embodiment of screen state control method is, screen state controlling party
Method also includes:
Step c, the mobile terminal 1 00 of bright screen state and the angle of horizontal direction are in not in predetermined angle model when detecting
When enclosing interior, control mobile terminal 1 00 enters black state from bright screen state;
And/or step d, when detecting mobile terminal 1 00 in non-holding state, mobile terminal 1 00 is controlled from bright screen
State enters black state.
When the mobile terminal 1 00 in bright screen state detects it with the angle of horizontal direction not in the range of predetermined angle
When, mobile terminal 1 00 enters black state from bright screen state;When the mobile terminal 1 00 in bright screen state detects itself and water
Square to angle in the range of predetermined angle, but when being currently at non-holding state, enter black state from bright screen state;When
Mobile terminal 1 00 in bright screen state detects it with the angle of horizontal direction not in the range of predetermined angle, and current place
When non-holding state, enter black state from bright screen state.
By the angle when the mobile terminal 1 00 under bright screen state and horizontal direction not in the range of predetermined angle, and/or
When mobile terminal 1 00 is in non-holding state, control mobile terminal 1 00 from bright screen state enters black state, it is to avoid when using
When family need not light 00 screen of mobile terminal 1, mobile terminal 1 00 is also constantly in bright screen state, saves mobile terminal 1 00
Electricity, and improve the intelligent of mobile terminal 1 00.
Further, screen state control method also includes:
Step e, when detecting mobile terminal 1 00 in non-holding state, judges that the foreground of mobile terminal 1 00 whether there is
The application program being currently running.
Step f, if the foreground of mobile terminal 1 00 does not have the application program that is currently running, control mobile terminal 1 00 is from bright
Screen state enters black state.
Further, screen state control method also includes:
Step g, if the foreground of mobile terminal 1 00 has the application program being currently running, control mobile terminal 1 00 is in bright
Screen state.
Further, it is currently at non-holding when the mobile terminal 1 00 in bright screen state detects it by sensor
During state, mobile terminal 1 00 judges that its foreground whether there is the application program being currently running.When the foreground of mobile terminal 1 00 is present
During the application program being currently running, mobile terminal 1 00 maintains bright screen state;It is currently running when the foreground of mobile terminal 1 00 is not present
Application program when, mobile terminal 1 00 enters black state from bright screen state.
As being currently at non-holding state when the mobile terminal 1 00 in bright screen state detects it by sensor, and
Its foreground by player plays video when, mobile terminal 1 00 maintain bright screen state.
By when the mobile terminal 1 00 under bright screen state is in non-holding state, further detecting mobile terminal
Whether 100 foregrounds have the application program being currently running, if so, then control mobile terminal 1 00 keeps bright screen state, it is to avoid
When mobile terminal 1 00 is placed on desk by user, either specific place viewing video or when browsing webpage etc., mobile terminal 1 00
The automatic situation for entering black state from bright screen state occurs.
Further, the 3rd embodiment of screen state control method of the present invention is proposed based on first embodiment.
The difference of the 3rd embodiment of screen state control method and the first embodiment of screen state control method is,
Reference picture 11, screen state control method also includes:
Step S30, when the angle for detecting the mobile terminal 1 00 in bright screen state and horizontal direction is increasing, solution
Lock mobile terminal 1 00.
Mobile terminal 1 00 under bright screen state detects its angle with horizontal direction in real time.When in bright screen state
Under mobile terminal 1 00 detect its angle with horizontal direction in increase, mobile terminal 1 00 enters from bright screen state to be unlocked
State, performs unblock operation, to unlock mobile terminal 1 00.
The present embodiment when the angle for detecting the mobile terminal 1 00 under bright screen state and horizontal direction by increasing
When, it is believed that user wants to check the content of mobile terminal 1 00, or manipulation mobile terminal 1 00 etc., now unlocks mobile terminal
100, user is not needed now by unlocked by fingerprint or unlocking pin unblock mobile terminal 1 00 is manually entered, and is simplified unblock and is moved
The unblock flow of dynamic terminal 100.
Further, based on first and second or three embodiment propose the fourth embodiment of screen state control method of the present invention.
The fourth embodiment of screen state control method and screen state control method first and second and three the difference of embodiment be,
The back side of mobile terminal 1 00 is provided with back side sensor, and reference picture 12, step S20 includes:
Step S21, when angle is in the range of predetermined angle, and mobile terminal 1 00 is when being in holding state, obtains the back side and passes
Corresponding 3rd detected value of sensor;
Step S22, when the 3rd detected value is not zero, control mobile terminal 1 00 enters bright screen state from black state.
The back side of mobile terminal 1 00 is provided with least one back side sensor.When the back side of mobile terminal 1 00 sets a back of the body
During the sensor of face, in order to detect user's holding operation, the back side sensor can be arranged on to the back side of mobile terminal 1 00
It is middle.It is understood that back side sensor is not restricted to the present embodiment in the position at the back side of mobile terminal 1 00.In this hair
In bright, two sensors preferably are set at the back side of mobile terminal 1 00.Specifically, reference picture 6 or Fig. 7 a, by a sensor S3
The top at the back side of mobile terminal 1 00 is arranged on, another sensor S0 is arranged on to the lower section at the back side of mobile terminal 1 00.
When the mobile terminal 1 00 under black state detects it with the angle of horizontal direction in predetermined angle scope
Interior, and it is when being currently at holding state, mobile terminal 1 00 obtains corresponding 3rd detected value of back side sensor, and judges the
Whether three detected values are zero.When the 3rd detected value is not zero, mobile terminal 1 00 enters bright screen state from black state;When
When three detected values are zero, mobile terminal 1 00 maintains black state.
Further, it may also be configured to when the 3rd detected value is more than some fixed value, the ability of mobile terminal 1 00 is from blank screen shape
State enters bright screen state;When the 3rd detected value is less than or equal to the fixed value, mobile terminal 1 00 keeps blank screen shape
State.
The present embodiment at the back side of mobile terminal 1 00 by setting back side sensor, by detecting that back side sensor is corresponding
3rd detected value, when the 3rd detected value meets condition, the ability of mobile terminal 1 00 enters bright screen state from black state, in movement
Angle between terminal 100 and horizontal direction is in the range of predetermined angle, and the sensor correspondence of the left and right sides of mobile terminal 1 00
Detected value meet condition in the case of, further determined according to corresponding 3rd detected value of the back side sensor of mobile terminal 1 00
Mobile terminal 1 00 whether is controlled to enter bright screen state from black state, improve mobile terminal 1 00 needs from blank screen according to user
State enters the accuracy rate of bright screen state.
In addition, the embodiment of the present invention also proposes a kind of computer-readable recording medium.
Be stored with screen state control program on computer-readable recording medium, and screen state control program is held by processor
Following steps are realized during row:
When mobile terminal 1 00 is in black state, the angle of detection mobile terminal 1 00 and horizontal direction, and pass through
Whether sensor detection mobile terminal 1 00 is in holding state, wherein, the left and right sides of mobile terminal 1 00 is respectively arranged with least
One sensor;
When angle is in the range of predetermined angle, and mobile terminal 1 00 is when being in holding state, control mobile terminal 1 00 from
Black state enters bright screen state.
In the present invention, a few sensor is respectively provided in the left and right sides of mobile terminal 1 00, by working as mobile terminal
100 when being in black state, the angle of detection mobile terminal 1 00 and horizontal direction, and detects mobile terminal by sensor
Whether 100 be in holding state;When angle is in the range of predetermined angle, and mobile terminal 1 00, when being in holding state, control is moved
Dynamic terminal 100 enters bright screen state from black state.Realize and do not unlocking mobile terminal 1 00, and do not trigger mobile terminal 1 00
Mobile terminal 1 00 is controlled to enter bright screen state from black state in the case of screen locking function key;And in the present invention, it is necessary to meet
Just control mobile terminal 1 00 enters bright screen state from black state when angle and holding state, reduces control mobile terminal 1 00
Enter the misuse rate of bright screen state from black state.
Further, when angle is in the range of predetermined angle, and mobile terminal 1 00 is when being in holding state, control movement
The step of terminal 100 enters bright screen state from black state includes:
When angle is in the range of predetermined angle, duration of the angle in the range of predetermined angle is calculated;
When the duration being in holding state more than or equal to preset time, and mobile terminal 1 00, control is mobile eventually
End 100 enters bright screen state from black state.
Further, when angle is in the range of predetermined angle, and mobile terminal 1 00 is when being in holding state, control movement
Terminal 100 into after the step of bright screen state, is realized such as from black state when screen state control program is executed by processor
Lower step:
The mobile terminal 1 00 of bright screen state and the angle of horizontal direction are in not in the range of predetermined angle when detecting
When, control mobile terminal 1 00 enters black state from bright screen state;
And/or when detecting the mobile terminal 1 00 in bright screen state in non-holding state, control mobile terminal
100 enter black state from bright screen state.
Further, when detecting the mobile terminal 1 00 in bright screen state in non-holding state, control is mobile eventually
The step of end 100 enters black state from bright screen state includes:
When detecting the mobile terminal 1 00 in bright screen state in non-holding state, the foreground of mobile terminal 1 00 is judged
With the presence or absence of the application program being currently running;
If the foreground of mobile terminal 1 00 does not have the application program being currently running, mobile terminal 1 00 is controlled from bright screen state
Into black state.
Further, when detecting the mobile terminal 1 00 in bright screen state in non-holding state, judge mobile whole
Hold 100 foregrounds whether there is be currently running application program the step of after, when screen state control program is executed by processor
Realize following steps:
If the foreground of mobile terminal 1 00 has the application program being currently running, control mobile terminal 1 00 is in bright screen shape
State.
Further, when angle is in the range of predetermined angle, and mobile terminal 1 00 is when being in holding state, control movement
Terminal 100 into after the step of bright screen state, is realized such as from black state when screen state control program is executed by processor
Lower step:
When the angle for detecting the mobile terminal 1 00 in bright screen state and horizontal direction is increasing, unblock is mobile eventually
End 100.
Further, the back side of mobile terminal 1 00 is provided with back side sensor, when angle is in the range of predetermined angle, and moves
When dynamic terminal 100 is in holding state, the step of control mobile terminal 1 00 enters bright screen state from black state includes:
When angle is in the range of predetermined angle, and mobile terminal 1 00 is when being in holding state, obtains back side sensor correspondence
The 3rd detected value;
When the 3rd detected value is not zero, control mobile terminal 1 00 enters bright screen state from black state.
Further, detect that the step of whether mobile terminal 1 00 is in holding state includes by sensor:
Corresponding first detected value of the left sensor of mobile terminal 1 00 is obtained, and obtains the right side of mobile terminal 1 00 and is sensed
Corresponding second detected value of device;
When the first detected value and the second detected value are both greater than predetermined test value, confirm that mobile terminal 1 00 is in and hold shape
State;
When the first detected value is less than or equal to predetermined test value, and/or the second detected value less than or equal to default inspection
During measured value, confirm that mobile terminal 1 00 is in non-holding state.
Computer-readable recording medium embodiment of the present invention and each embodiment base of above-mentioned screen state control method
This is identical, will not be repeated here.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property is included, so that process, method, article or system including a series of key elements not only include those key elements, and
And also including the other key elements being not expressly set out, or also include for this process, method, article or system institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there is other identical element in process, method, article or the system of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal equipment (can be mobile phone, computer, clothes
It is engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.