CN108430100A - The screen control method and device of terminal, readable storage medium storing program for executing, terminal - Google Patents
The screen control method and device of terminal, readable storage medium storing program for executing, terminal Download PDFInfo
- Publication number
- CN108430100A CN108430100A CN201810112074.2A CN201810112074A CN108430100A CN 108430100 A CN108430100 A CN 108430100A CN 201810112074 A CN201810112074 A CN 201810112074A CN 108430100 A CN108430100 A CN 108430100A
- Authority
- CN
- China
- Prior art keywords
- terminal
- screen
- acceleration transducer
- associated sensor
- master chip
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 230000001133 acceleration Effects 0.000 claims abstract description 128
- 238000001514 detection method Methods 0.000 claims abstract description 42
- 230000015654 memory Effects 0.000 claims description 38
- 230000033001 locomotion Effects 0.000 claims description 33
- 230000006870 function Effects 0.000 claims description 32
- 238000004590 computer program Methods 0.000 claims description 16
- 230000005540 biological transmission Effects 0.000 claims description 12
- 230000009471 action Effects 0.000 description 10
- 238000012545 processing Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 230000006854 communication Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 238000007726 management method Methods 0.000 description 4
- 208000012788 shakes Diseases 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000005484 gravity Effects 0.000 description 3
- 230000003068 static effect Effects 0.000 description 3
- 241001269238 Data Species 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000007257 malfunction Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000004321 preservation Methods 0.000 description 2
- 230000037007 arousal Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002045 lasting effect Effects 0.000 description 1
- 230000005389 magnetism Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000011897 real-time detection Methods 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000002366 time-of-flight method Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 230000002618 waking effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0267—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components
- H04W52/027—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components by controlling a display operation or backlight unit
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/325—Power saving in peripheral device
- G06F1/3265—Power saving in display device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4418—Suspend and resume; Hibernate and awake
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Environmental & Geological Engineering (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
This application involves a kind of screen control methods of terminal and device, computer readable storage medium, terminal.This method includes:When terminal is in bright screen state, whether moving based on acceleration transducer detection terminal;When terminal occurs mobile, then acceleration transducer sends interrupt requests to master chip, and master chip opens associated sensor according to interrupt requests;When the data of associated sensor detection reach it is default go out set of hanging scrolls part when, control terminal is gone out screen, associated sensor is only just opened when terminal occurs mobile, make it restore to working condition, the power consumption of associated sensor can be reduced, while the data that can also be acquired according to associated sensor realize the automatic screen that goes out of terminal, are not necessarily to user's Manual press physical button, realization that can directly accurately and timely is gone out screen operation, the user experience is improved degree.
Description
Technical field
This application involves screen control technical fields, screen control method and device, meter more particularly to a kind of terminal
Calculation machine readable storage medium storing program for executing, terminal.
Background technology
As terminal device enters the intelligent epoch, have become essential communication work in people's live and work
Tool, requirement of the user to the usage experience of terminal are also higher and higher.Many sensors are often equipped on present intelligent terminal,
Such as proximity sensor, acceleration transducer, direction sensor, gyroscope, Magnetic Sensor etc., bring abundant answer to user
With and experience.
Generally, terminal needs the bright, screen that goes out to usually require, manually by secondary or physical bond, frequently to click secondary or physical bond and will also result in secondary or physical bond
Loss, it is also not convenient enough for users, it is unfavorable for protecting mobile terminal, does not have flexibility.In order to alleviate physical button
Loss, can the multiple sensors based on terminal built-in come the light on and off screen of control terminal, but light on and off are being realized by sensor
During screen control, sensor is constantly in working condition, power consumption can be made to increase in this way, and unnecessary power consumption is caused to damage
It loses.
Invention content
The embodiment of the present application provides a kind of screen control method and device, computer readable storage medium, terminal of terminal,
Associated sensor is just opened when terminal occurs mobile, can reduce the power consumption of terminal, while the automatic of terminal may be implemented and go out
Screen promotes user experience.
A kind of screen control method of terminal, including:
When terminal is in bright screen state, whether moving for the terminal is detected based on acceleration transducer;
When the terminal occurs mobile, then the acceleration transducer sends interrupt requests, the main core to master chip
Piece opens associated sensor according to the interrupt requests;
When the data of associated sensor detection reach it is default go out set of hanging scrolls part when, control the terminal and go out screen.
A kind of screen control device of terminal, described device include:
Motion detection block is based on what acceleration transducer detected the terminal when being in bright screen state for terminal
It is no to move;
Request sending module, for when the terminal occurs mobile, then the acceleration transducer to be sent to master chip
Interrupt requests, the master chip open associated sensor according to the interrupt requests;
Screen control module, the data for being detected when the associated sensor reach it is default go out set of hanging scrolls part when, control institute
Terminal is stated to go out screen.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
The step of screen control method of the terminal in each embodiment of the application is realized when row.
A kind of terminal, including memory, processor and storage are on a memory and the computer that can run on a processor
Program, the processor realize the screen control method of the terminal in each embodiment of the application when executing the computer program
The step of.
The screen control method and device of terminal provided by the embodiments of the present application, computer readable storage medium, terminal, when
When terminal is in bright screen state, whether moving for the terminal is detected based on acceleration transducer;When the terminal occurs
When mobile, then the acceleration transducer sends interrupt requests to master chip, and the master chip is opened according to the interrupt requests
Associated sensor;When the data of associated sensor detection reach it is default go out set of hanging scrolls part when, control the terminal and go out screen, only exist
Associated sensor is just opened when terminal occurs mobile, is made it restore to working condition, can be reduced the power consumption of associated sensor, together
When the data that can also be acquired according to associated sensor realize the automatic screen that goes out of terminal, without user's Manual press physical button, just
Realization that can directly accurately and timely is gone out screen operation, the user experience is improved degree.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is the driver framework schematic diagram of sensor in one embodiment;
Fig. 2 is the internal structure schematic diagram of terminal in one embodiment;
Fig. 3 is the flow chart of the screen control method of terminal in one embodiment;
Fig. 4 is that mobile flow chart whether occurs based on what acceleration transducer detected the terminal in one embodiment;
Fig. 5 is that acceleration transducer sends interrupt requests to master chip in one embodiment, and the master chip is according to
Interrupt requests open the flow chart of associated sensor;
Fig. 6 be in one embodiment when the data of associated sensor detection reach it is default go out set of hanging scrolls part when, control institute
Terminal is stated to go out the flow chart of screen;
Fig. 7 is that the acceleration transducer and gyroscope detect the appearance of the terminal in preset time in one embodiment
The flow chart of state information;
Fig. 8 is the flow chart of the screen control method of terminal in another embodiment;
Fig. 9 is the structure diagram of the screen control device of terminal in one embodiment;
Figure 10 is the block diagram with the part-structure of the relevant mobile phone of terminal provided by the embodiments of the present application.
Specific implementation mode
It is with reference to the accompanying drawings and embodiments, right in order to make the object, technical solution and advantage of the application be more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and
It is not used in restriction the application.
It is appreciated that term " first " used in the present invention, " second " etc. can be used to describe herein various elements,
But these elements should not be limited by these terms.These terms are only used to distinguish first element and another element.Citing comes
It says, without departing from the scope of the invention, the first predetermined angle can be known as the second predetermined angle, and similarly,
Second predetermined angle can be known as the first predetermined angle.First predetermined angle and the second predetermined angle both predetermined angle,
But it is not same predetermined angle.
In one embodiment, as shown in Figure 1, providing a kind of driver framework schematic diagram of sensor.Wherein, the sensing
The driver framework of device includes user's space layer 110, kernel spacing layer 120 and hardware layer 130.It may include on user's space layer 110
Application program 112, sensor can realize the detection to motion state of terminal by the application program 112, when the position of terminal
When information and/or rotational angle reach default bright set of hanging scrolls part, terminal screen is lighted.Kernel spacing layer 120 includes I2C
(Inter-Integrated Circuit, I2C bus) device drives 122, I2C cores 124 and I2C adapters 126.It is logical
Driving of the realization of I2C device drives 122 to equipment end in I2C hardware architectures is crossed, equipment is generally articulated in by master chip
(CPU) on the I2C adapters 126 controlled, data are exchanged with master chip by I2C adapters 126.I2C cores 124 provide
The registration of I2C bus drivers and device drives, cancellation method.It is realized to the I2C adapters in hardware layer by I2C bus drivers
132 control, I2C bus drivers mainly contain the data structure of I2C adapters 132 and control I2C adapters 132 generate and lead to
Believe the function of signal, control I2C adapters and I2C devices exchange datas.By the driver framework of above-mentioned sensor, it can be achieved that
The screen control method of terminal in each embodiment of the application.
In one embodiment, as shown in Fig. 2, providing a kind of internal structure schematic diagram of terminal.The terminal includes logical
Cross processor, memory and the display screen of system bus connection.Wherein, the processor is for providing calculating and control ability, branch
Support the operation of entire terminal.Memory for storing data, program, and/or instruction code etc., stored on memory at least one
Computer program, the computer program can be executed by processor, to realize that is provided in the embodiment of the present application is suitable for terminal
Screen control method.Memory may include that magnetic disc, CD, read-only memory (Read-Only Memory, ROM) etc. are non-easily
The property lost storage medium or random access memory (Random-Access-Memory, RAM) etc..For example, in one embodiment
In, memory includes non-volatile memory medium and built-in storage.Non-volatile memory medium is stored with operating system, database
And computer program.A kind of screen control of the terminal provided for realizing above each embodiment is provided in the database
The relevant data of method, for example the predeterminated position data for waking up terminal or angle-data can be stored with etc..The computer program can
Performed by processor, for realizing a kind of screen control method of terminal that each embodiment of the application is provided.Memory
Reservoir provides the running environment of cache for operating system, database and the computer program in non-volatile memory medium.
Display screen can be touch screen, for example be capacitance plate or electrical screen, be used for the interface information of display terminal, display screen includes bright screen
State and screen state of going out, when terminal is in suspend mode, display screen is screen state of going out, and is shown when the screen of terminal is waken up
Screen is bright screen state.The terminal can be mobile phone, tablet computer or personal digital assistant or Wearable etc..
It will be understood by those skilled in the art that structure shown in Fig. 1, is only tied with the relevant part of application scheme
The block diagram of structure, does not constitute the restriction for the terminal being applied thereon to application scheme, and specific terminal may include than figure
Shown in more or fewer components, either combine certain components or arranged with different components.Such as the terminal further includes
The sensor connected by system bus, sensor can be acceleration transducer, gyroscope, infrared sensor, earth magnetism biography
One kind in sensor or more is detected for the status information to terminal, for example, can be used for detection terminal position data,
Rotational angle, at a distance from external contact object etc..
Fig. 3 is the flow chart of the screen control method of terminal in one embodiment.The present embodiment is applied to such as in this way
It is illustrated for terminal shown in Fig. 2.The screen control method of terminal in the present embodiment, for running in terminal into
Row description.As shown in figure 3, the screen control method of terminal includes step 302 to step 306.
Step 302:When terminal is in bright screen state, whether moving for the terminal is detected based on acceleration transducer
It is dynamic.
Screen state includes screen state and the bright screen state of going out.Specifically, it can be examined by Power Manager Service
The mode whether screen is lit is surveyed, determines that terminal is in bright screen state or screen state of going out.It is adjusted when power receives the bright, screen that goes out
With rear, mobile phone wakefullness states can be first configured, light on and off screen broadcast notice other application mobile phone is sent later and is in
Bright screen still goes out screen state.
It should be noted that it is above-mentioned enumerate be determine terminal screen state it is for example and not limitation, can also pass through
Other modes are detected the screen state of terminal.
When terminal is in bright screen state, whether the motion state that acceleration transducer detects the terminal changes.
When acceleration transducer is in running order, can in real time detection terminal X, Y, Z 3-axis acceleration component.Acceleration transducer
It can be gravity accelerometer (Gravity Sensor, G-sensor) in the present embodiment, be that energy sense accelerations are big
Small MEMS sensor can respectively be obtained by acceleration transducer from three axially different component (tri- axis of X, Y, Z point
Amount) on acceleration, to notify upper layer application to make respective handling.
Step 304:When the terminal occurs mobile, then the acceleration transducer sends interrupt requests to master chip,
The master chip restores the working condition of associated sensor according to the interrupt requests.
Acceleration transducer detects terminal by included motion detection function (Accel motion detect, AMD)
Interrupt requests can be sent after moving to master chip, interrupt requests indicate to file an application to master chip (such as to send an electricity
Pulse signal), it is desirable that master chip interrupts work at present, the demand that processing surrounding hardware proposes.For example, first being passed to acceleration
Sensor sets a threshold value, and master chip is triggered when the acceleration transducer detects that current acceleration value is more than the threshold value of setting
It interrupts, master chip receives primary shake event, and master chip handles the shake event and starts to put down the detection work for the screen that goes out.
The interrupt requests that master chip is sent according to acceleration transducer make associated sensor restore from dormant state to work
State is used for the posture information etc. of acquisition terminal.Wherein, associated sensor includes but not limited to range sensor, close sensing
Device, gyroscope and geomagnetic sensor, the different function realized as needed can open different sensors and carry out Data Detection.
It is understood that an independent sensor may be used to realize specific function in above-mentioned associated sensor, such as
The light on and off screen detection function of terminal is individually realized using range sensor or proximity sensor, saves device power consumption;It can also
Specific function is realized by the way of the combination of multiple sensors, is detected eventually for example, by using acceleration transducer and range sensor
The posture information at end and distance realizes the light on and off screen detection function of terminal between shelter, promotes the accuracy rate of detection;No
Same sensor occupation mode can bring different technique effects, the application not to be further qualified this.
Step 306:When the data of associated sensor detection reach it is default go out set of hanging scrolls part when, control the terminal and go out
Screen.
When the range data and angular velocity of rotation data that associated sensor detects and acquired with acceleration transducer three
Axle acceleration data reach it is default go out set of hanging scrolls part when, then can be gone out screen with control terminal.Wherein, association can be used by presetting the set of hanging scrolls part that goes out
The data of sensor acquisition are expressed, for example, user's handheld terminal, terminal is returned in pocket or knapsack, terminal is made
Positioned at confined space, alternatively, terminal to be placed on to the display screen of desktop and the display screen and desktop side contacts or terminal of terminal
Curtain is in proximity state with desktop.The data acquired namely based on associated sensor and acceleration transducer are it may determine that current
Terminal whether is buckled to (screen is downward) on the table or terminal is located in pocket or knapsack, to realize the screen etc. that goes out automatically
Function.
When terminal is in bright screen state, institute is detected based on acceleration transducer for screen awakening method provided in this embodiment
Whether moving for terminal stated;When the terminal occurs mobile, then the acceleration transducer sends to master chip and interrupts
Request, the master chip open associated sensor according to the interrupt requests;When the data of associated sensor detection reach
It is default go out set of hanging scrolls part when, control the terminal and go out screen, only the just unlatching associated sensor when terminal occurs mobile, make it restore to
Working condition can reduce the power consumption of associated sensor, while the data that can also be acquired according to associated sensor realize terminal
The automatic screen that goes out, is not necessarily to user's Manual press physical button, so that it may be gone out with realization directly accurately and timely and shield operation, improve user
Experience Degree.
Fig. 4 is that mobile flow chart whether occurs based on what acceleration transducer detected the terminal in one embodiment.
Whether moving for the terminal is detected based on acceleration transducer, including:
Step 402:When the terminal put down go out screen function open when, open the motion detection of the acceleration transducer
Function.
Wherein, terminal, which is equipped with, puts down the screen functional switch that goes out, such as switch names are " putting down the screen that goes out ", for opening or closing
It closes and lifts arousal function.Optionally, terminal can receive the operational order that user inputs at setting interface and be put with being turned on and off
Under go out screen function, operational order can be at least one of touch control operation, voice operating, button operation;Terminal can be with root
Intelligently switch this according to different scenes and put down the screen switch that goes out, such as 24:00~8:It is closed in 00 period and puts down screen function of going out,
Screen function of going out is put down in the unlatching of other times section.
When terminal put down go out screen function open when, open the motion detection function (Accel of acceleration transducer
Motion detect, AMD).Therefore, reach whether detection terminal moves by the motion detection function of acceleration transducer.
When terminal does not occur mobile, acceleration transducer is in low power consumpting state;Detecting that terminal moves (such as shake)
Afterwards, acceleration transducer is to master chip transmission data.
Step 404:Obtain the acceleration value of tri- axis component of acceleration transducer X, Y, Z.
Step 406:When the acceleration value at least one reference axis be more than predetermined acceleration threshold value, then be determined as the end
It moves at end.
Acceleration transducer obtains the acceleration value of tri- reference axis of X, Y, Z, if the acceleration at least one reference axis
Value is more than predetermined acceleration threshold value, then is determined as that the terminal moves.For example, due to the graviational interaction of the earth,
In general, when terminal screen is kept flat on the table upward, three axis component of acceleration (X, Y, Z) is (0,0,9.81);
When terminal screen is put on the table downward, three axis component of acceleration (X, Y, Z) is (0,0, -9.81);When terminal is tilted to the left, add
Speed X-axis is positive value;When terminal is tilted to the right, acceleration X-axis is negative value;When terminal tilts upwards, acceleration Y-axis is negative value;
When terminal tilts down, acceleration Y-axis is positive value.When rotating terminal, the value of X, Y, Z axis will constantly change.
It can judge whether the motion state of terminal occurs namely based on tri- axis component of X, Y, Z of acceleration transducer detection terminal
Variation.
Fig. 5 is that acceleration transducer sends interrupt requests to master chip in one embodiment, and the master chip is according to
Interrupt requests open the flow chart of associated sensor.
The acceleration transducer sends interrupt requests to master chip, and the master chip is opened according to the interrupt requests to close
Join sensor, including:
Step 502:When the terminal occurs mobile, the acceleration transducer is used to indicate to master chip transmission
The master chip put down the interrupt requests for screen detection work of going out.
Specifically, when terminal remains static, acceleration transducer is in standby detection pattern, this brief acceleration passes
The channel of sensor and master chip is not opened namely master chip does not carry out data exchange with acceleration transducer at this time.Work as acceleration
When degree sensor detects that terminal moves (shake), interrupt requests are sent to master chip, master chip is used to indicate and is put
Under go out screen detection work.
Step 502:The master chip opens the data transmission channel with the associated sensor according to the interrupt requests;
Wherein, the associated sensor includes range sensor and gyroscope.
After master chip receives the interrupt requests of acceleration transducer transmission, opens master chip and passed with associated sensor data
Defeated channel carries out data exchange with associated sensor.Wherein, associated sensor refers to going out required for screen function to realize to put down
Using to sensor, associated sensor includes gyroscope and range sensor, can also include geomagnetic sensor, close to sensing
Device, light sensor etc..
It should be noted that when terminal does not open the data transmission channel with associated sensor, associated sensor is equal
In a dormant state, will not acquisition terminal attitude data.It is indicated again after acceleration transducer detects that terminal is shaken
Master chip opens associated sensor, can save device power consumption, promotes terminal standby duration.
Fig. 6 be in one embodiment when the data of associated sensor detection reach it is default go out set of hanging scrolls part when, control institute
Terminal is stated to go out the flow chart of screen.
Step 602:In preset time, the posture letter of the terminal is obtained based on the acceleration transducer and gyroscope
Breath.
When acceleration transducer sends interrupt requests to master chip, master chip can be opened according to the interrupt requests and be closed
Join sensor, wherein associated sensor includes gyroscope and range sensor.
Gyroscope (Gyro-sensor) is called angular-rate sensor, is different from acceleration transducer, its measurement physical quantity
Rotational angular velocity when being deflection, inclination.Gyroscope uses the same coordinate system with acceleration transducer, wherein works as end level
When rotating clockwise, Z axis is positive value;When end level rotates counterclockwise, z-axis is negative value;When terminal is to when anticlockwise, y-axis is
Negative value;When terminal is to when right rotation, y-axis is positive value;When terminal rotates up, x-axis is negative value;It is x when terminal is rotated down
Axis is positive value.
Posture information can be understood as in preset time, based on acceleration transducer in terminal, gyro sensor
The location information of conventional coordinates, the location information can use the angle of tri- axis component of acceleration and X, Y, Z of tri- axis component of X, Y, Z
Velocity information characterizes.Wherein, posture information 3-axis acceleration and three axis rotation angles.
It is understood that preset time can be user by terminal by lifting (user hold end face towards user's face)
To the time put down used in (user's handheld terminal naturally droops).Preset time and the use habit of user, user age
Factor is related, and user self-defined can be arranged.Wherein, preset time is that (user is by terminal by lifting at the time of terminal occurs mobile
That time risen) start recording.
Step 604:When the posture information meets default demonstration movement, obtain between range sensor and shelter
Distance.
When posture information in preset time meets default demonstration movement, it can be obtained based on the range sensor in terminal
Take the distance between terminal and shelter.Wherein, demonstration movement is preset, can be to lift that (user holds end face towards user people
Face) to the action for putting down (user's handheld terminal naturally droops).
Range sensor is using the principle of (flying time) come with the distance of detection object, " time-of-flight method "
(flying time) is by emitting especially short and measuring this light pulse from the time being reflected by the object back is emitted to, lead to
Survey time interval is crossed to calculate the distance between object.Range sensor according to the difference of its operation principle can be divided into optics away from
It is a variety of from sensor, infrared distance sensor, ultrasonic distance sensor etc..
When posture information, which meets, presets demonstration movement, the range sensor based on terminal built-in detects presently described terminal
The distance between shelter.
It should be noted that shelter can be the back boxing of pocket or knapsack, can also be desktop etc. can place terminal
Supporting object etc..
Step 606:When the distance is less than predetermined threshold value, controls the terminal and go out screen.
That is, the posture information for working as terminal meets default demonstration movement and the distance between present terminal and shelter are less than
When preset value, it can be determined that presently described terminal is located at the enclosure spaces such as pocket or knapsack or terminal back-off is placed on table
On the supporters such as face, wherein the display screen for being buckled to the terminal referred to faces the supporters such as desktop.
Screen control method in the present embodiment, the posture information obtained in preset time meet default demonstration movement and
When the distance between terminal and shelter are less than preset value, can be gone out screen with automatic control terminal, that is, working as user by terminal by lifting
The state of rising is put back into the enclosure spaces such as pocket or knapsack can go out screen automatically, not need user's Manual press physical button.
Fig. 7 is that the acceleration transducer and gyroscope detect the appearance of the terminal in preset time in one embodiment
The flow chart of state information.
The acceleration transducer and gyroscope detect the posture information of the terminal in preset time, including:
Step 702:Obtain the preset time.
Specifically, terminal notifying user demonstration puts down action (terminal becomes holding nature from hand-held lifting status and hangs down shape
State);Detect that user executes put down action and meet it is default put down condition when, preserve execute this put down action when
It grows, and puts down the basis of time of action as identification user next time according to the duration of the preservation, meanwhile, the duration of the preservation is fixed
Justice is the first duration.It repeats this and puts down action, whether detection can correctly identify demonstration movement in the first duration, if can know
Not, using first duration as preset duration, that is, can complete to put down action in the preset time;If cannot identify,
Action is put down in prompt user demonstration again, adjusts the first duration, until can correctly identify that this puts down action, and will be after adjustment
First duration is as preset duration.
Step 704:In preset time, obtain the acceleration transducer, gyroscope acquisition X, Y, Z tri- axis component
Acceleration and rotation angle.
In preset time, acceleration transducer and gyroscope are capable of the acceleration of tri- axis component of X, Y, Z of acquisition terminal
And angular velocity of rotation starts the posture information of acquisition terminal, and the posture of current time acquisition is believed when terminal is shaken
Breath is used as the first posture information, meanwhile, using current time as the initial time of preset time, and in the preset time, hold
The posture information for the terminal that continuous acquisition acceleration transducer, gyroscope acquire.
Further, preset time could be provided as 1 second, within this 1 second time, according to the acquisition of acceleration transducer
The acceleration of tri- axis component of X, Y, Z of frequency collection terminal.Gyroscope will acquire the rotation of tri- axis component of present terminal X, Y, Z
Angular speed, angular speed carries out integral and calculating between any moment in the initial time to preset time of the preset time, so that it may
With the rotation angle of tri- axis component of X, Y, Z in lasting acquisition preset time.That is, gyroscope can acquire angular speed in preset time
Tri- axis component of X, Y, Z rotation angle.
Step 706:The posture information is obtained according to the acceleration and rotation angle.
When can obtain default according to three axis rotation angles of the 3-axis acceleration of acceleration acquisition and gyroscope acquisition
The posture information of interior terminal, the posture information include the rotation angle of tri- axis component of acceleration and X, Y, Z of tri- axis component of X, Y, Z
Degree.According to the information of the three axis components of acceleration of acquisition and three axis component rotation angle this two dimensions, can accurately obtain
The posture information of terminal, so can be accurately and timely to judge whether posture information of the terminal in the preset time meets default
Demonstration movement.
Fig. 8 is the flow chart of the screen control method of terminal in another embodiment.
The screen control method of terminal in one of the embodiments, including:
Step 802:When terminal is in bright screen state, based on acceleration transducer detect the terminal motion state whether
It changes;
Step 804:When the motion state of the terminal changes, then the acceleration transducer is sent to master chip
Interrupt requests, the master chip open associated sensor according to the interrupt requests;
Step 806:When the data of associated sensor detection reach it is default go out set of hanging scrolls part when, control the terminal and go out
Screen.
Step 802- steps 806 are corresponded with the step 302- steps 306 in above-described embodiment, here, repeating no more.
Step 808:Detect the screen duration that goes out of the terminal.
When the data of associated sensor detection reach it is default go out set of hanging scrolls part when, control terminal is gone out screen, when that a period of time for the screen that goes out
It carves start recording and goes out and shield duration, current time terminates.
Step 810:When the screen duration that goes out is more than preset duration, detect associated sensor acquisition data whether
Meet default bright set of hanging scrolls part.
When the screen duration that goes out is more than preset duration, master chip starts to obtain the data letter of acceleration transducer and gyroscope
Breath then obtains the posture information of terminal.
Specifically, preset duration could be provided as 3s, i.e., it is in terminal in the beginning 3s times for going out screen state, no matter eventually
The posture information at end is how, not to the bright screen processing of terminal progress, after the screen that can go out to avoid terminal, and fast-lighting screen, it improves and uses
The Experience Degree at family.
Step 812:The bright screen of the terminal is controlled when the data fit of associated sensor acquisition presets bright set of hanging scrolls part.
Wherein, it includes at least one of following three kinds of conditions to preset bright set of hanging scrolls part:
One:Y-axis rotation angle is more than or equal to the first predetermined angle, and Z axis is more than or equal to the second predetermined angle, and current institute
The display screen of terminal is stated towards human face region, this is preset bright set of hanging scrolls part and digs out bright screen corresponding to pocket.Specifically, first is default
Angle can be set as 15 degree, and the second predetermined angle is 40 degree.
Secondly:Y-axis rotation angle is more than or equal to third predetermined angle, and the display screen of presently described terminal is towards face
Region, this is preset bright set of hanging scrolls part and corresponds to the first bright screen of overturning;Specifically, third predetermined angle can be set as 70 degree.
Thirdly:X-axis rotation angle is more than or equal to the 4th predetermined angle, and the display screen of presently described terminal is towards face
Region, this is preset bright set of hanging scrolls part and corresponds to the second bright screen of overturning.Specifically, the 4th predetermined angle can be set as 20 degree.
Further, the basis for estimation of display screen towards the human face region of presently described terminal is:In preset time,
Three axis component acceleration of terminal in current is obtained, and whether within a preset range to judge three axis component acceleration;When three axis components
Within a preset range, then the display screen of terminal is towards user's human face region for acceleration.
Specifically, three axis component preset ranges of acceleration can be set as:-5m/s2<X-axis<5m/s2, -2m/s2<Y-axis<
9.8m/s2, 0.5m/s2<Z axis<9.8m/s2.If terminal works as first three axis component acceleration in preset preset range
When, it is believed that at this point, the display screen of terminal is towards human face region.
The screen control method of terminal in the present embodiment, when the screen duration that goes out is more than preset duration, in conjunction with default bright set of hanging scrolls
Part, so that it may accurately, timely to carry out bright screen control to terminal, power button is used without user, it is convenient to use, it saves
Power consumption improves the Experience Degree of user.
In one embodiment, the bright screen of the terminal is controlled, including:
The bright screen of the terminal is controlled, and deletes the rotation angle of gyroscope acquisition in bright screen preset duration.
Specifically, when the screen duration that goes out is more than preset duration, the posture information obtained meets default bright set of hanging scrolls part time control
The bright screen of terminal processed.Meanwhile at the time of terminal bright screen, the bright screen duration of start recording, when the bright screen duration, which reaches bright screen, to be preset
When long, main control chip deletes the pivoting angle data of the gyroscope in the bright screen preset duration.
Further, which could be provided as 0.2s-0.6s, that is, after terminal bright screen, master chip mistake
Filter three axis pivoting angle datas of the gyroscope of 0.2s-0.6s in bright screen time started section.If in the bright screen preset duration, appearance
State information would not meet the default set of hanging scrolls part that goes out, and can be dug out from pocket or knapsack to avoid user so bright during terminal
Posture information after screen meets the default set of hanging scrolls part that goes out, and in a short time, user also has not enough time to check the information of display interface, eventually
Generation of the end again in screen state such case of going out, can occur to avoid the malfunction for the screen that goes out, improve the Experience Degree of user.
It should be understood that although each step in the flow chart of Fig. 3-8 is shown successively according to the instruction of arrow,
These steps are not that the inevitable sequence indicated according to arrow executes successively.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 3-8
Part steps may include that either these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively
It carries out, but can either the sub-step of other steps or at least part in stage be in turn or alternately with other steps
It executes.
Fig. 9 is the structure diagram of the screen control device of the terminal of one embodiment.The screen control device of terminal, it is described
Device includes:
Motion detection block 910, for when terminal is in bright screen state, the terminal to be detected based on acceleration transducer
Whether move;
Request sending module 920, for when the terminal occurs mobile, then the acceleration transducer to be sent out to master chip
Interrupt requests, the master chip are sent to open associated sensor according to the interrupt requests;
Screen control module 930, the data for being detected when the associated sensor reach it is default go out set of hanging scrolls part when, control
The terminal is gone out screen.
The screen control device of above-mentioned terminal is based on acceleration transducer detection terminal when terminal is in bright screen state
Whether move;When terminal occurs mobile, then acceleration transducer sends interrupt requests to master chip, master chip according to
Interrupt requests open associated sensor;When the data of associated sensor detection reach it is default go out set of hanging scrolls part when, control terminal is gone out screen,
Associated sensor is only just opened when terminal occurs mobile, is made it restore to working condition, can be reduced the work(of associated sensor
Consumption, while the data that can also be acquired according to associated sensor realize the automatic screen that goes out of terminal, are pressed without user's Manual press physics
Key, so that it may be gone out with realization directly accurately and timely and shield operation, the user experience is improved spends.
In one embodiment, motion detection block, including:
Opening unit, for when the terminal put down go out screen function open when, open the fortune of the acceleration transducer
Dynamic detection function;
First acquisition unit, the acceleration value for obtaining tri- axis component of acceleration transducer X, Y, Z;
Judging unit is then determined as being more than predetermined acceleration threshold value when the acceleration value at least one reference axis
The terminal moves.
In one embodiment, request sending module, including:
Transmission unit, for when the motion state of the terminal changes, the acceleration transducer is to the master
Chip, which is sent, is used to indicate the interrupt requests that the master chip put down screen detection work of going out;
Opening unit, for the master chip according to the data transmission of interrupt requests unlatching and the associated sensor
Channel;Wherein, the associated sensor includes range sensor and gyroscope.
Device in the present embodiment, when terminal does not open the data transmission channel with associated sensor, association sensing
Device is in dormant state, will not acquisition terminal attitude data.After acceleration transducer detects that terminal is shaken again
It indicates that master chip opens associated sensor, device power consumption can be saved, promote terminal standby duration.
In one embodiment, screen control module, including:
Second acquisition unit, for obtaining the terminal based on the acceleration transducer and gyroscope in preset time
Posture information;
Third acquiring unit, for when the posture information meets default demonstration movement, obtaining range sensor and hiding
The distance between block material;
Control unit, for when the distance is less than predetermined threshold value, controlling the terminal and going out screen.
Device in the present embodiment, the posture information obtained in preset time meet default demonstration movement and terminal and screening
When the distance between block material is less than preset value, can be gone out screen with automatic control terminal, that is, when user is put terminal by lifting status
Returning to the enclosure spaces such as pocket or knapsack can go out screen automatically, not need user's Manual press physical button.
In one embodiment, second acquisition unit is additionally operable to obtain the preset time;In preset time, obtain
The acceleration and rotation angle for tri- axis component of X, Y, Z that the acceleration transducer, gyroscope acquire;According to the acceleration and
Rotation angle obtains the posture information.
In one embodiment, the screen control device of terminal further includes:
Duration detection module, the screen duration that goes out for detecting the terminal;
Judgment module, for when the screen duration that goes out is more than preset duration, detecting the number of the associated sensor acquisition
According to whether meeting default bright set of hanging scrolls part;
Screen control module is additionally operable to control institute when the data fit that the associated sensor acquires presets bright set of hanging scrolls part
State the bright screen of terminal.
In one embodiment, screen control module further includes:
Deleting unit, the rotation angle for deleting gyroscope acquisition in bright screen preset duration.
Device in the present embodiment, if in the bright screen preset duration, rotation angle and acceleration information meet the default screen that goes out
When condition, terminal will not execute screen action of going out, during can digging out terminal from pocket or knapsack to avoid user in this way
After bright screen, in a short time, user also has not enough time to check the information of display interface, and it is this that terminal has just been in screen state of going out
The occurrence of, the malfunction for the screen that avoids going out occurs, and improves the Experience Degree of user.
The realization of modules in the screen control device of the terminal provided in the embodiment of the present application can be computer journey
The form of sequence.The computer program can be run in terminal or server.The program module that the computer program is constituted can store
On the memory of terminal or server.When the computer program is executed by processor, realize described in the embodiment of the present application
The step of method.
The embodiment of the present application also provides a kind of computer readable storage mediums.One or more is executable comprising computer
The non-volatile computer readable storage medium storing program for executing of instruction, when the computer executable instructions are executed by one or more processors
When so that the processor executes the step of screen control method of terminal.
A kind of computer program product including instruction, when run on a computer so that computer executes terminal
Screen control method.
The embodiment of the present application also provides a kind of terminals.As shown in Figure 10, for convenience of description, it illustrates only and the application
The relevant part of embodiment, particular technique details do not disclose, please refer to the embodiment of the present application method part.The terminal can be
Including mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of
Sales, point-of-sale terminal), vehicle-mounted computer, the arbitrary terminal device such as Wearable, by taking terminal is mobile phone as an example:
Figure 10 is the block diagram with the part-structure of the relevant mobile phone of terminal provided by the embodiments of the present application.With reference to figure 10, hand
Machine includes:Radio frequency (Radio Frequency, RF) circuit 1010, memory 1020, input unit 1030, display unit 1040,
Sensor 1050, voicefrequency circuit 1060, Wireless Fidelity (wireless fidelity, WiFi) module 1070, processor 1080,
And the equal components of power supply 1090.It will be understood by those skilled in the art that handset structure shown in Fig. 10 is not constituted to mobile phone
It limits, may include either combining certain components or different components arrangement than illustrating more or fewer components.
Wherein, RF circuits 1010 can be used for receiving and sending messages or communication process in, signal sends and receivees, can be by base station
After downlink information receives, handled to processor 1080;The data of uplink can also be sent to base station.In general, RF circuits include
But be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier,
LNA), duplexer etc..In addition, RF circuits 1010 can also be communicated with network and other equipment by radio communication.It is above-mentioned wireless
Communication can use any communication standard or agreement, including but not limited to global system for mobile communications (Global System of
Mobile communication, GSM), general packet radio service (General Packet Radio Service,
GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code
Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), Email,
Short message service (Short Messaging Service, SMS) etc..
Memory 1020 can be used for storing software program and module, and processor 1080 is stored in memory by operation
1020 software program and module, to execute various function application and the data processing of mobile phone.Memory 1020 can be led
To include program storage area and data storage area, wherein program storage area can storage program area, needed at least one function
Application program (such as the application program of sound-playing function, application program of image player function etc.) etc.;It data storage area can
Storage uses created data (such as audio data, address list etc.) etc. according to mobile phone.In addition, memory 1020 can wrap
High-speed random access memory is included, can also include nonvolatile memory, for example, at least disk memory, a flash memories
Part or other volatile solid-state parts.
Input unit 1030 can be used for receiving the number or character information of input, and generates and set with the user of mobile phone 1000
It sets and the related key signals of function control inputs.Specifically, input unit 1030 may include operation panel 1031 and other
Input equipment 1032.Operation panel 1031, alternatively referred to as touch screen collect user on it or neighbouring touch operation (are compared
Such as user is using finger, stylus any suitable object or attachment on operation panel 1031 or near operation panel 1031
Operation), and corresponding attachment device is driven according to preset formula.In one embodiment, operation panel 1031 can
Including both touch detecting apparatus and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and examine
The signal that touch operation is brought is surveyed, touch controller is transmitted a signal to;Touch controller is received from touch detecting apparatus to be touched
Information is touched, and is converted into contact coordinate, then gives processor 1080, and order that processor 1080 is sent can be received and added
To execute.Furthermore, it is possible to realize operation panel using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves
1031.In addition to operation panel 1031, input unit 1030 can also include other input equipments 1032.Specifically, other are inputted
Equipment 1032 can include but is not limited to one in physical keyboard, function key (such as volume control button, switch key etc.) etc.
Kind is a variety of.
Display unit 1040 can be used for showing information input by user or be supplied to user information and mobile phone it is each
Kind menu.Display unit 1040 may include display panel 1041.In one embodiment, liquid crystal display may be used
(Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode,
) etc. OLED forms configure display panel 1041.In one embodiment, operation panel 1031 can cover display panel 1041,
When operation panel 1031 detects on it or after neighbouring touch operation, processor 1080 is sent to determine touch event
Type is followed by subsequent processing device 1080 and provides corresponding visual output on display panel 1041 according to the type of touch event.Although
In Fig. 10, operation panel 1031 and display panel 1041 are to realize the input and input of mobile phone as two independent components
Function, but in some embodiments it is possible to operation panel 1031 and display panel 1041 are integrated and are realized the input of mobile phone
And output function.
Mobile phone 1000 may also include at least one sensor 1050, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring
The light and shade of border light adjusts the brightness of display panel 1041, and proximity sensor can close display when mobile phone is moved in one's ear
Panel 1041 and/or backlight.Motion sensor may include acceleration transducer, can detect all directions by acceleration transducer
The size of upper acceleration can detect that size and the direction of gravity when static, the application that can be used to identify mobile phone posture is (such as horizontal
Vertical screen switches), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer,
Other sensors such as hygrometer, thermometer, infrared sensor etc..
Voicefrequency circuit 1060, loud speaker 1061 and microphone 1062 can provide the audio interface between user and mobile phone.Sound
The transformed electric signal of the audio data received can be transferred to loud speaker 1061 by frequency circuit 1060, by 1061 turns of loud speaker
It is changed to voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 1062, by voicefrequency circuit
Audio data is converted to after 1060 receptions, then by after the processing of audio data output processor 1080, can be sent out through RF circuits 1010
Another mobile phone is given, or audio data is exported to memory 1020 so as to subsequent processing.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 1070
Part, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Figure 10 is shown
WiFi module 1070, but it is understood that, and it is not belonging to must be configured into for mobile phone 1000, it can save as needed
Slightly.
Processor 1080 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone,
By running or execute the software program and/or module that are stored in memory 1020, and calls and be stored in memory 1020
Interior data execute the various functions and processing data of mobile phone, to carry out whole monitoring to mobile phone.In one embodiment,
Processor 1080 may include one or more processing units.In one embodiment, processor 1080 can integrate application processor
And modem, wherein the main processing operation system of application processor, user interface and application program etc.;Modem
Main processing wireless communication.It is understood that above-mentioned modem can not also be integrated into processor 1080.For example,
The processor 1080 can integrate application processor and baseband processor, baseband processor with and the composable tune such as other peripheral chips
Modulator-demodulator.Mobile phone 1000 further includes the power supply 1090 (such as battery) powered to all parts, it is preferred that power supply can pass through
Power-supply management system and processor 1090 are logically contiguous, to realize management charging, electric discharge, Yi Jigong by power-supply management system
The functions such as consumption management.
In one embodiment, mobile phone 1000 can also include camera, bluetooth module etc..
In the embodiment of the present application, when the processor included by the mobile phone executes the computer program of storage on a memory
Realize the screen control method of above-mentioned described terminal.
Used in this application may include to any reference of memory, storage, database or other media is non-volatile
And/or volatile memory.Suitable nonvolatile memory may include read-only memory (ROM), programming ROM (PROM),
Electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include arbitrary access
Memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as
It is static RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced
SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
Above example only expresses the several embodiments of the application, the description thereof is more specific and detailed, but can not
Therefore it is interpreted as the limitation to the application the scope of the claims.It should be pointed out that for those of ordinary skill in the art,
Under the premise of not departing from the application design, various modifications and improvements can be made, these belong to the protection model of the application
It encloses.Therefore, the protection domain of the application patent should be determined by the appended claims.
Claims (10)
1. a kind of screen control method of terminal, which is characterized in that including:
When terminal is in bright screen state, whether moving for the terminal is detected based on acceleration transducer;
When the terminal occurs mobile, then the acceleration transducer sends interrupt requests, the master chip root to master chip
Associated sensor is opened according to the interrupt requests;
When the data of associated sensor detection reach it is default go out set of hanging scrolls part when, control the terminal and go out screen.
2. according to the method described in claim 1, it is characterized in that, based on acceleration transducer detect the terminal whether hair
Raw movement, including:
When the terminal put down go out screen function open when, open the motion detection function of the acceleration transducer;
Obtain the acceleration value of tri- axis component of acceleration transducer X, Y, Z;
When the acceleration value at least one reference axis be more than predetermined acceleration threshold value, then be determined as that the terminal moves.
3. according to the method described in claim 1, it is characterized in that, the acceleration transducer is asked to master chip transmission interruption
It asks, the master chip opens associated sensor according to the interrupt requests, including:
When the motion state of the terminal changes, the acceleration transducer is used to indicate institute to master chip transmission
State the interrupt requests that master chip put down screen detection work of going out;
The master chip opens the data transmission channel with the associated sensor according to the interrupt requests;Wherein, the pass
It includes range sensor and gyroscope to join sensor.
4. according to the method described in claim 3, it is characterized in that, going out when the data of associated sensor detection reach default
When set of hanging scrolls part, controls the terminal and go out screen, including:
The posture information of the terminal is obtained based on the acceleration transducer and gyroscope in preset time;
When the posture information meets default demonstration movement, the distance between range sensor and shelter are obtained;
When the distance is less than predetermined threshold value, controls the terminal and go out screen.
5. according to the method described in claim 4, it is characterized in that, the acceleration transducer described in preset time and top
Spiral shell instrument detects the posture information of the terminal, including:
Obtain the preset time;
In preset time, persistently obtain the acceleration transducer, gyroscope acquisition tri- axis component of X, Y, Z acceleration and
Rotation angle;
The posture information is obtained according to the acceleration and rotation angle.
6. according to claim 1-5 any one of them methods, which is characterized in that the method further includes:
Detect the screen duration that goes out of the terminal;
When the screen duration that goes out is more than preset duration, whether the data for detecting the associated sensor acquisition meet default bright screen
Condition;
The bright screen of the terminal is controlled when the data fit of associated sensor acquisition presets bright set of hanging scrolls part.
7. according to the method described in claim 6, it is characterized in that, the control bright screen of terminal, including:
The bright screen of the terminal is controlled, and deletes the rotation angle of gyroscope acquisition in bright screen preset duration.
8. a kind of screen control device of terminal, which is characterized in that described device includes:
Motion detection block, when being in bright screen state for terminal, based on acceleration transducer detect the terminal whether hair
Raw movement;
Request sending module, for when the terminal occurs mobile, then the acceleration transducer to send to master chip and interrupts
Request, the master chip open associated sensor according to the interrupt requests;
Screen control module, the data for being detected when the associated sensor reach it is default go out set of hanging scrolls part when, control the end
Go out screen at end.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt
The step of any one of claim 1 to 7 the method is realized when processor executes.
10. a kind of terminal, including memory, processor and storage are on a memory and the computer journey that can run on a processor
Sequence, which is characterized in that the processor realizes any one of claim 1 to 7 the method when executing the computer program
The step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810112074.2A CN108430100B (en) | 2018-02-05 | 2018-02-05 | Screen control method and device of terminal, readable storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810112074.2A CN108430100B (en) | 2018-02-05 | 2018-02-05 | Screen control method and device of terminal, readable storage medium and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108430100A true CN108430100A (en) | 2018-08-21 |
CN108430100B CN108430100B (en) | 2020-06-09 |
Family
ID=63156534
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810112074.2A Expired - Fee Related CN108430100B (en) | 2018-02-05 | 2018-02-05 | Screen control method and device of terminal, readable storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108430100B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109842720A (en) * | 2018-11-30 | 2019-06-04 | 努比亚技术有限公司 | A kind of intelligent control method, terminal and computer readable storage medium |
CN110139347A (en) * | 2019-05-15 | 2019-08-16 | 惠州Tcl移动通信有限公司 | Mobile terminal WIFI detection processing method, mobile terminal and storage medium |
CN110989822A (en) * | 2019-11-27 | 2020-04-10 | Tcl移动通信科技(宁波)有限公司 | Sensor control method, sensor control device, storage medium and electronic equipment |
CN112402197A (en) * | 2020-11-19 | 2021-02-26 | 武汉工程大学 | Intelligent obstacle detection method and device based on mobile terminal |
CN112764343A (en) * | 2021-01-20 | 2021-05-07 | 深圳市沃特沃德信息有限公司 | Control method and device of smart watch, smart watch and storage medium |
CN113438350A (en) * | 2021-06-24 | 2021-09-24 | 展讯通信(上海)有限公司 | Test system of electronic device |
CN113741634A (en) * | 2021-08-30 | 2021-12-03 | 海信视像科技股份有限公司 | State control method based on wearable device and wearable device |
CN113760079A (en) * | 2020-06-02 | 2021-12-07 | Oppo广东移动通信有限公司 | Screen control method and device, mobile terminal and storage medium |
CN115562472A (en) * | 2022-02-11 | 2023-01-03 | 荣耀终端有限公司 | Gesture interaction method, medium and electronic equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102377871A (en) * | 2010-08-24 | 2012-03-14 | 联想(北京)有限公司 | Information processing equipment and control method thereof |
CN105827792A (en) * | 2015-05-20 | 2016-08-03 | 维沃移动通信有限公司 | Screen unlock method of electronic device and electronic device |
-
2018
- 2018-02-05 CN CN201810112074.2A patent/CN108430100B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102377871A (en) * | 2010-08-24 | 2012-03-14 | 联想(北京)有限公司 | Information processing equipment and control method thereof |
CN105827792A (en) * | 2015-05-20 | 2016-08-03 | 维沃移动通信有限公司 | Screen unlock method of electronic device and electronic device |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109842720A (en) * | 2018-11-30 | 2019-06-04 | 努比亚技术有限公司 | A kind of intelligent control method, terminal and computer readable storage medium |
CN110139347A (en) * | 2019-05-15 | 2019-08-16 | 惠州Tcl移动通信有限公司 | Mobile terminal WIFI detection processing method, mobile terminal and storage medium |
CN110989822A (en) * | 2019-11-27 | 2020-04-10 | Tcl移动通信科技(宁波)有限公司 | Sensor control method, sensor control device, storage medium and electronic equipment |
CN113760079A (en) * | 2020-06-02 | 2021-12-07 | Oppo广东移动通信有限公司 | Screen control method and device, mobile terminal and storage medium |
CN112402197A (en) * | 2020-11-19 | 2021-02-26 | 武汉工程大学 | Intelligent obstacle detection method and device based on mobile terminal |
CN112764343A (en) * | 2021-01-20 | 2021-05-07 | 深圳市沃特沃德信息有限公司 | Control method and device of smart watch, smart watch and storage medium |
CN113438350A (en) * | 2021-06-24 | 2021-09-24 | 展讯通信(上海)有限公司 | Test system of electronic device |
CN113741634A (en) * | 2021-08-30 | 2021-12-03 | 海信视像科技股份有限公司 | State control method based on wearable device and wearable device |
CN115562472A (en) * | 2022-02-11 | 2023-01-03 | 荣耀终端有限公司 | Gesture interaction method, medium and electronic equipment |
CN115562472B (en) * | 2022-02-11 | 2023-09-22 | 荣耀终端有限公司 | Gesture interaction method, medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108430100B (en) | 2020-06-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108430100A (en) | The screen control method and device of terminal, readable storage medium storing program for executing, terminal | |
CN108307074A (en) | Display control method and device, terminal, computer readable storage medium | |
CN108391001A (en) | The screen control method and device of terminal, readable storage medium storing program for executing, terminal | |
CN108376086A (en) | Display control method and device, terminal, computer readable storage medium | |
CN108391002A (en) | Display control method and device, terminal, computer readable storage medium | |
CN108418953B (en) | Screen control method and device of terminal, readable storage medium and terminal | |
CN108563387A (en) | Display control method and device, terminal, computer readable storage medium | |
CN108462986A (en) | The screen control method and device of terminal, readable storage medium storing program for executing, terminal | |
CN108536377A (en) | Display control method and device, terminal, computer readable storage medium | |
CN108347758A (en) | screen awakening method and device, terminal, computer readable storage medium | |
CN103365419B (en) | A kind of method and apparatus triggering alarm clock control command | |
CN108388413A (en) | The screen control method and device of terminal, readable storage medium storing program for executing, terminal | |
CN103472993A (en) | Rotation displaying method, device and terminal equipment | |
CN108388414A (en) | Go out screen control method and device, computer readable storage medium, the terminal of terminal | |
CN105637450A (en) | Screen sensitivity adjustment method and mobile terminal | |
CN108566490A (en) | The screen control method and device of terminal, readable storage medium storing program for executing, terminal | |
CN108366170A (en) | Display control method and device, terminal, computer readable storage medium | |
CN109618058A (en) | A kind of protection screen is from broken screen method and device, touch control device and storage medium | |
CN108668015A (en) | The screen control method and device of terminal, readable storage medium storing program for executing, terminal | |
CN110401434A (en) | Wearable device control method, wearable device and computer readable storage medium | |
CN107422853A (en) | A kind of gesture identification method, mobile terminal and computer-readable recording medium | |
CN110290269A (en) | Display control method, mobile terminal and computer readable storage medium | |
CN106804113A (en) | A kind of control method of intelligent terminal pattern, device and intelligent terminal | |
CN108196663A (en) | A kind of face identification method, mobile terminal | |
CN104284007B (en) | Alarm clock management method and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200609 |