CN108196778A - Control method, mobile terminal and the computer readable storage medium of screen state - Google Patents
Control method, mobile terminal and the computer readable storage medium of screen state Download PDFInfo
- Publication number
- CN108196778A CN108196778A CN201711498658.XA CN201711498658A CN108196778A CN 108196778 A CN108196778 A CN 108196778A CN 201711498658 A CN201711498658 A CN 201711498658A CN 108196778 A CN108196778 A CN 108196778A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- screen
- ultrasonic signal
- state
- ultrasonic
- 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
Classifications
-
- 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
-
- 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a kind of control method of screen state, mobile terminal and computer readable storage medium, the control method of the screen state includes:In the case of emitting the first ultrasonic signal by ultrasonic transmitter, determine whether to receive the first ultrasonic signal through reflected second ultrasonic signal of object by ultrasonic receiver;If the second ultrasonic signal can be received, the corresponding characteristic value of the second ultrasonic signal is calculated;It is input to the characteristic value as input parameter in preset detection model, to obtain output parameter;The on off state of mobile terminal screen is controlled according to the output parameter, wherein, the on off state of screen includes bright screen and puts out screen.The present invention realizes the switching of screen state in mobile terminal, is realized by ultrasonic signal, can also be realized without user's manual operation, so as to improve the flexibility and intelligent of screen state switching.
Description
Technical field
The present invention relates to technical field of mobile terminals more particularly to a kind of control method of screen state, mobile terminal and
Computer readable storage medium.
Background technology
With the development of mobile terminal technology, the function that mobile terminal is realized is more and more diversified, such as by mobile whole
End button realization screen puts out screen or bright screen.Existing screen puts out the bright screen operation of screen, and user is required for press in the terminal
Button is realized, when user's both hands are inconvenient to press mobile terminal key, can lead to not realize the change of screen state,
Therefore, the control mode of existing screen state is more inflexible, and intelligent relatively low.
Invention content
It is a primary object of the present invention to propose a kind of control method of screen state, mobile terminal and computer-readable deposit
Storage media, it is intended to solve the control mode of existing screen state, it is more inflexible, it is intelligent low the technical issues of.
To achieve the above object, the present invention provides a kind of control method of screen state, the controls of the screen state
Method includes:
In the case of emitting the first ultrasonic signal by ultrasonic transmitter, determine whether to connect by ultrasonic receiver
The first ultrasonic signal is received through reflected second ultrasonic signal of object;
If the second ultrasonic signal can be received, the corresponding characteristic value of the second ultrasonic signal is calculated;
It is input to the characteristic value as input parameter in preset detection model, to obtain output parameter;
The on off state of mobile terminal screen is controlled according to the output parameter, wherein, the on off state of screen is including bright
Shield and put out screen.
Optionally, it in the case of first ultrasonic signal of transmitting by ultrasonic transmitter, determines whether by super
Before acoustic receiver receives the step of the first ultrasonic signal reflected through object the second ultrasonic signal, the method
It further includes:
Obtain object approach mobile terminal and far from during mobile terminal, the ultrasonic receiver is received default
Second ultrasonic signal of quantity;
The corresponding characteristic value of the second ultrasonic signal of preset quantity is calculated, it is corresponding according to second ultrasonic signal
Characteristic value trains detection model, and stores the detection model of training gained.
Optionally, when the characteristic value is the amplitude change rate of ultrasonic signal, if described can receive the second ultrasound
Wave signal, then the step of calculating the second ultrasonic signal corresponding characteristic value, include:
If the second ultrasonic signal can be received, the corresponding ultrasonic wave amplitude of the second ultrasonic signal at current time is acquired
Value, and obtain the corresponding ultrasonic amplitude of the second ultrasonic signal of last moment;
The difference of the ultrasonic amplitude of current time and last moment is calculated, to obtain the variation of the amplitude of ultrasonic signal
Rate.
Optionally, the characteristic value be ultrasonic signal Doppler effect difference in areas, if described can receive second
Ultrasonic signal, then the step of calculating the second ultrasonic signal corresponding characteristic value, include:
If the second ultrasonic signal can be received, the second ultrasonic wave for determining that the ultrasonic receiver is received is acquired
The receives frequency variation range for the second ultrasonic signal that the receives frequency of signal and the ultrasonic receiver are received;
Frequency constant interval is determined according to the receives frequency and the receives frequency variation range;
Ultrasound is calculated according to the frequency constant interval and intensity variation curve corresponding with the frequency constant interval
The Doppler effect difference in areas of wave signal.
Optionally, it is described according to the output parameter control mobile terminal screen on off state the step of include:
Determine the label included in the output parameter;
According to the label, movement tendency of the object relative to mobile terminal is determined;
The on off state of mobile terminal screen is controlled according to the movement tendency.
Optionally, described according to the label, the step of determining movement tendency of the object relative to mobile terminal, includes:
If label is first flag, it is determined that currently has object close to mobile terminal;
If label is second identifier, it is determined that object is in invariant state relative to mobile terminal;
If label is identified for third, it is determined that currently has object far from mobile terminal.
Optionally, it is described according to the movement tendency control mobile terminal screen on off state the step of include:
If it is determined that object approaches mobile terminal, then mobile terminal screen is controlled to put out screen;
If it is determined that object is in invariant state relative to the position of mobile terminal, then the mobile terminal last moment is obtained
Movement tendency, and according to the movement tendency of last moment control mobile terminal screen on off state;
If it is determined that object then controls the bright screen of mobile terminal screen far from mobile terminal.
Optionally, if according to the output parameter control mobile terminal screen on off state be by mobile terminal from put out screen
Be switched to bright screen, then it is described according to the output parameter control mobile terminal screen on off state the step of after, the side
Method further includes:
Start monitor to monitor touch event;
If touch event is not all heard when the startup time of monitor reaching preset time period, by mobile terminal
Screen is switched back into from bright screen puts out screen.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal include memory,
Processor and the control program for being stored in the screen state that can be run on the memory and on the processor, the screen
The step of control method of screen state as described above is realized when the control program of state is performed by the processor.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
The control program of screen state is stored on storage medium, is realized such as when the control program of the screen state is executed by processor
The step of control method of screen state described above.
The control method of screen state proposed by the present invention is emitting the first ultrasonic signal by ultrasonic transmitter
In the case of, determine whether that receive the first ultrasonic signal by ultrasonic receiver believes through reflected second ultrasonic wave of object
Number, if the second ultrasonic signal can be received, the corresponding characteristic value of the second ultrasonic signal is calculated, then the characteristic value is made
It is input in preset detection model for input parameter, to obtain output parameter;It is finally controlled and moved according to the output parameter
The on off state of terminal screen, wherein, the on off state of screen includes bright screen and puts out screen.The present invention, which is realized in mobile terminal, shields
The switching of tentiform state is realized by ultrasonic signal, can also be realized without user's manual operation, be cut so as to improve screen state
The flexibility changed and intelligent.
Description of the drawings
A kind of Fig. 1 hardware architecture diagrams of mobile terminal of each embodiment to realize the present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of the control method first embodiment of screen state of the present invention;
Fig. 4 emits ultrasonic signal and receive ultrasonic wave by microphone for mobile terminal in the present invention by receiver to be believed
Number schematic diagram;
Fig. 5 is the refinement flow diagram of step S40 in Fig. 3;
Fig. 6 is the present invention preferably implement scene schematic diagram;
Fig. 7 is a kind of schematic diagram that the first area and second area are calculated in the embodiment of the present invention.
The realization, the function and the advantages of the object of the present invention will be explained with reference to attached drawing in conjunction with the embodiments.
Specific 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 subsequent description, using for representing that the suffix of such as " module ", " component " or " unit " of element is only
Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Mobile terminal can be implemented in a variety of manners.For example, mobile terminal described in the present invention can be included such as
Mobile phone, tablet computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant,
PDA), portable media player (Portable Media Player, PMP), navigation device, wearable device, intelligent hand
The fixed cellular terminals such as the mobile terminals such as ring, pedometer and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
For moving except the element of purpose, construction according to the embodiment of the present invention can also apply to the mobile end of fixed type
End.
Referring to Fig. 1, a kind of hardware architecture diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103rd, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108th, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or fewer components,
Either combine certain components or different components arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receive and send messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, it penetrates
Frequency unit 101 can also communicate with network and other equipment by radio communication.Above-mentioned wireless 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, wideband code division multiple access), TD-SCDMA (Time Division Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and must be configured into for mobile terminal is not belonging to, it completely can be according to need
It to be omitted in the range for the essence for not changing invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
Formula, speech recognition mode, broadcast reception mode when under isotypes, it is that radio frequency unit 101 or WiFi module 102 are received or
The audio data stored in memory 109 is converted into audio signal and exports as sound.Moreover, audio output unit 103
The relevant audio output of specific function performed with mobile terminal 100 can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 can include loud speaker, buzzer etc..
A/V input units 104 are used to receive audio or video signal.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared ray sensor, details are not described herein.
Display unit 106 is used to show by information input by user or be supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used
Display panel 1061 is configured in forms such as (Organic Light-Emitting Diode, OLED).
User input unit 107 can be used for receiving the number inputted or character information and generation and the use of mobile terminal
The key signals input that family is set and function control is related.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect user on it or neighbouring touch operation
(for example user uses any suitable objects such as finger, stylus or attachment on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
Contact coordinate is converted into, then gives processor 110, and the order that processor 110 is sent can be received and performed.It in addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc.
It is one or more, do not limit herein specifically.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the component independent as two to realize the function that outputs and inputs of mobile terminal, but in certain embodiments, it can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) can include wired or wireless head-band earphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for device of the connection 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 100 or can be with
For transmitting data between mobile terminal 100 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, storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part is stored in storage by running or performing the software program being stored in memory 109 and/or module and call
Data in device 109 perform the various functions of mobile terminal and processing data, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Device is managed, wherein, the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
In addition, in mobile terminal shown in Fig. 1, it is stored on the memory 109 and is run on the processor 110
Screen state control program, the mobile terminal calls the screen state stored in memory 109 by processor 110
Program is controlled, and performs following operate:
Further, the mobile terminal calls the control of screen state stored in memory 109 by processor 110
Program also realizes following steps:
In the case of emitting the first ultrasonic signal by ultrasonic transmitter, determine whether to connect by ultrasonic receiver
The first ultrasonic signal is received through reflected second ultrasonic signal of object;
If the second ultrasonic signal can be received, the corresponding characteristic value of the second ultrasonic signal is calculated;
It is input to the characteristic value as input parameter in preset detection model, to obtain output parameter;
The on off state of mobile terminal screen is controlled according to the output parameter, wherein, the on off state of screen is including bright
Shield and put out screen.
Further, it in the case of first ultrasonic signal of transmitting by ultrasonic transmitter, determines whether to pass through
Before ultrasonic receiver receives the step of the first ultrasonic signal reflected through object the second ultrasonic signal, the shifting
Dynamic terminal also calls the control program of screen state stored in memory 109 by processor 110, to realize following steps:
Obtain object approach mobile terminal and far from during mobile terminal, the ultrasonic receiver is received default
Second ultrasonic signal of quantity;
The corresponding characteristic value of the second ultrasonic signal of preset quantity is calculated, it is corresponding according to second ultrasonic signal
Characteristic value trains detection model, and stores the detection model of training gained.
Further, when the characteristic value is the amplitude change rate of ultrasonic signal, the mobile terminal also passes through place
Reason device 110 calls the control program of screen state stored in memory 109, if can receive the second ultrasonic wave letter to realize
Number, then the step of calculating the second ultrasonic signal corresponding characteristic value:
If the second ultrasonic signal can be received, the corresponding ultrasonic wave amplitude of the second ultrasonic signal at current time is acquired
Value, and obtain the corresponding ultrasonic amplitude of the second ultrasonic signal of last moment;
The difference of the ultrasonic amplitude of current time and last moment is calculated, to obtain the variation of the amplitude of ultrasonic signal
Rate.
Further, in the Doppler effect difference in areas that the characteristic value is ultrasonic signal, the mobile terminal also leads to
It crosses processor 110 and calls the control program of screen state stored in memory 109, if the second ultrasonic wave can be received to realize
Signal, then the step of calculating the second ultrasonic signal corresponding characteristic value:
If the second ultrasonic signal can be received, the second ultrasonic wave for determining that the ultrasonic receiver is received is acquired
The receives frequency variation range for the second ultrasonic signal that the receives frequency of signal and the ultrasonic receiver are received;
Frequency constant interval is determined according to the receives frequency and the receives frequency variation range;
Ultrasound is calculated according to the frequency constant interval and intensity variation curve corresponding with the frequency constant interval
The Doppler effect difference in areas of wave signal.
Further, the mobile terminal also calls the control of screen state stored in memory 109 by processor 110
Processing procedure sequence, to realize the step of controlling the on off state of mobile terminal screen according to the output parameter:
The step of on off state of mobile terminal screen is controlled according to the output parameter
Further, the mobile terminal also calls the control of screen state stored in memory 109 by processor 110
Processing procedure sequence, the step of to realize according to the label, determine movement tendency of the object relative to mobile terminal:
If label is first flag, it is determined that currently has object close to mobile terminal;
If label is second identifier, it is determined that object is in invariant state relative to mobile terminal;
If label is identified for third, it is determined that currently has object far from mobile terminal.
Further, the mobile terminal also calls the control of screen state stored in memory 109 by processor 110
Processing procedure sequence, to realize the step of controlling the on off state of mobile terminal screen according to the movement tendency:
If it is determined that object approaches mobile terminal, then mobile terminal screen is controlled to put out screen;
If it is determined that object is in invariant state relative to the position of mobile terminal, then the mobile terminal last moment is obtained
Movement tendency, and according to the movement tendency of last moment control mobile terminal screen on off state;
If it is determined that object then controls the bright screen of mobile terminal screen far from mobile terminal.
Further, if it is from putting out by mobile terminal to control the on off state of mobile terminal screen according to the output parameter
Screen be switched to bright screen, then it is described according to the output parameter control mobile terminal screen on off state the step of after, it is described
Mobile terminal also calls the control program of screen state stored in memory 109 by processor 110, to realize following walk
Suddenly:
Start monitor to monitor touch event;
If touch event is not all heard when the startup time of monitor reaching preset time period, by mobile terminal
Screen is switched back into from bright screen puts out screen.
Mobile terminal 100 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 functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
For the ease of understanding the embodiment of the present invention, below to the communications network system that is based on of mobile terminal of the present invention into
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
The LTE system united as universal mobile communications technology, the LTE system include the UE (User Equipment, the use that communicate 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 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
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
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and some are preserved in relation to use such as service features, data rates
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201
Address is distributed and other functions, and PCRF2036 is business data flow and the strategy of IP bearing resources and charging control strategic decision-making
Point, it selects and provides available strategy and charging control decision 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., it does not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, the control method of screen state of the present invention is proposed
Each embodiment.
With reference to Fig. 3, Fig. 3 is the flow diagram of the control method first embodiment of screen state of the present invention.
In the present embodiment, the control method of the screen state includes:
Step S10 in the case of emitting the first ultrasonic signal by ultrasonic transmitter, determines whether to pass through ultrasonic wave
Receiver receives the first ultrasonic signal through reflected second ultrasonic signal of object;
Step S20 if the second ultrasonic signal can be received, calculates the corresponding characteristic value of the second ultrasonic signal;
Step S30 is input to the characteristic value as input parameter in preset detection model, to obtain output ginseng
Number;
Step S40 controls the on off state of mobile terminal screen according to the output parameter, wherein, the switch shape of screen
State includes bright screen and puts out screen.
In the present embodiment, the control method of the screen state is optional is applied in mobile terminal, the mobile terminal
It is chosen as the mobile terminal described in Fig. 1.
In the present embodiment, it can be set in mobile terminal dedicated for the ultrasonic transmitter of transmitting ultrasonic signal,
And ultrasonic transmitter is built in mobile terminal by setting dedicated for the ultrasonic receiver of received ultrasonic signal
In receiver, ultrasonic receiver is built in the microphone of mobile terminal.In addition, in order to save the cost of mobile terminal, it can
Using the receiver of mobile terminal as ultrasonic transmitter, using the microphone of mobile terminal as ultrasonic receiver.Specifically, may be used
With reference to Fig. 4, Fig. 4 is that mobile terminal emits ultrasonic signal by receiver and received by microphone super in the embodiment of the present invention
A kind of schematic diagram of acoustic signals, mobile terminal send the first ultrasonic signal by receiver, the first are surpassed by microphone reception
Acoustic signals encounter the second ultrasonic signal returned after object, and specifically, the current signal of power variation is become sound by receiver
The signal of sound, and the sound-reducing of transmission is come out while be also sent out ultrasonic signal, microphone is by the sound received
While the current signal that sound signal is converted to strong and weak variation is transmitted, the ultrasonic signal that receiver is sent out also is received.In addition,
If being provided with two microphones of major-minor in mobile terminal, main microphon can be provided for receiving voice signal during call,
Secondary microphone is provided for received ultrasonic signal, to avoid interfering with each other for signal.
It is the specific steps for the control that screen state is realized in the present embodiment below:
Step S10 in the case of emitting the first ultrasonic signal by ultrasonic transmitter, determines whether to pass through ultrasonic wave
Receiver receives the first ultrasonic signal through reflected second ultrasonic signal of object;
In the present embodiment, in the case that mobile terminal launches the first ultrasonic signal by ultrasonic transmitter, really
It is surely no that first ultrasonic signal is received through reflected second ultrasonic signal of object by ultrasonic receiver, that is, it moves
Terminal starts ultrasonic receiver, to determine whether to receive the second ultrasonic signal by the ultrasonic receiver.
Step S20 if the second ultrasonic signal can be received, calculates the corresponding characteristic value of the second ultrasonic signal;
If mobile terminal can receive the second ultrasonic signal by ultrasonic receiver, the second ultrasonic signal pair is calculated
The characteristic value answered, in the present embodiment, the characteristic value includes:The Doppler signal difference in areas of ultrasonic signal, amplitude change rate,
The difference of amplitude change rate and Doppler signal difference in areas, the calculation of characteristic value are described in detail in embodiments below.
Step S30 is input to the characteristic value as input parameter in preset detection model, to obtain output ginseng
Number;
In the present embodiment, after each characteristic value of the second ultrasonic signal is calculated, by the second ultrasonic signal
Each characteristic value is input to preset detection model as input parameter, to obtain output parameter by the detection model.
The detection model is chosen as SVM (Support Vector Machine, support vector machines) model, the detection mould
Type is trained in advance, and specific training process is described below, after training can be defeated using characteristic value as input parameter
Enter the detection model, to obtain output parameter.
It should be noted that mobile terminal can be by the amplitude change rate of ultrasonic signal, Doppler effect difference in areas, amplitude
Input parameter of the characteristic value as SVM models in difference between change rate and Doppler effect difference in areas, but in order to
The accuracy rate of testing result is improved, it can also be using multiple characteristic values as the input parameter of SVM models.
Step S40 controls the on off state of mobile terminal screen according to the output parameter, wherein, the switch shape of screen
State includes bright screen and puts out screen.
In the present embodiment, after output parameter is obtained according to SVM models, mobile terminal is controlled according to the output parameter
The on off state of screen.Specifically, include with reference to Fig. 5, the step S40:
Step S41 determines the label included in the output parameter;
Step S42 according to the label, determines movement tendency of the object relative to mobile terminal;
Step S43 controls the on off state of mobile terminal screen according to the movement tendency.
In the present embodiment, it is input in preset detection model using the characteristic value as input parameter, to obtain
After output parameter, outgoing label is extracted from output parameter, in the present embodiment, optional label includes first flag, second identifier
It is identified with third, three kinds of marks represent different meanings respectively.The label finally extracted according to output parameter determines object phase
For the movement tendency of mobile terminal, specifically, the step S42 includes:
If label is first flag, it is determined that currently has object close to mobile terminal;
If label is second identifier, it is determined that object is in invariant state relative to mobile terminal;
If label is identified for third, it is determined that currently has object far from mobile terminal.
For example, the corresponding label of output parameter is first flag " 001 ", it may be determined that object is approached relative to terminal, that is, is worked as
Before have object close to mobile terminal;If the corresponding label of output parameter is second identifier " 002 ", it may be determined that object is relative to shifting
Dynamic terminal is in invariant state, i.e. object remains static relative to mobile terminal;If the corresponding label of output parameter is the
Three marks " 003 ", it may be determined that object is separate relative to terminal, i.e., currently has object far from mobile terminal.
Determining object relative to the movement tendency of mobile terminal and then further according to the movement tendency according to label
The on off state of mobile terminal screen is controlled, specifically, the step S43 includes:
If it is determined that object approaches mobile terminal, then mobile terminal screen is controlled to put out screen;
If it is determined that object is in invariant state relative to the position of mobile terminal, then the mobile terminal last moment is obtained
Movement tendency, and according to the movement tendency of last moment control mobile terminal screen on off state;
If it is determined that object then controls the bright screen of mobile terminal screen far from mobile terminal.
Wherein, it is described " if it is determined that object is in invariant state relative to the position of mobile terminal, then to obtain described mobile whole
Hold last moment movement tendency, and according to the movement tendency of last moment control mobile terminal screen on off state " step
Suddenly include:
If it is determined that object is in invariant state relative to the position of mobile terminal, then the mobile terminal last moment is obtained
Movement tendency;
If it is determined that the movement tendency of the mobile terminal last moment is approach object, then the mobile terminal screen is controlled
Continue to put out screen;
If it is determined that the movement tendency of the mobile terminal last moment is far from object, then the mobile terminal screen is controlled
Continue bright screen.
Wherein, the specific duration at last moment and current time can be arranged to 1s, 1ms according to actual needs, not do specifically
It limits.
Technical scheme of the present invention, optional to apply in the case where mobile terminal is provided with the scene of protective case, mobile terminal setting
Protective case be used to protect the screen of mobile terminal, and pass through the on off state of the open or close control screen of the protective case,
To be best understood from the present invention, explained in detail in case of mobile terminal is equipped with protective case:
As shown in fig. 6, in the case where mobile terminal is equipped with screen protection set, the first surpassed by ultrasonic transmitter transmitting
Acoustic signals start ultrasonic receiver, to determine whether to receive by ultrasonic receiver after the first ultrasonic wave is emitted
First ultrasonic signal, if the second ultrasonic signal can be received, is calculated through reflected second ultrasonic signal of object
The corresponding ultrasonic wave characteristic value of second ultrasonic signal, after the ultrasonic wave characteristic value of the second ultrasonic wave is calculated, this is surpassed
Sonic characteristic value is input to as output parameter in preset detection model, to obtain output parameter, then further determines that this
The corresponding label of output parameter to determine operation trend of the object relative to terminal according to label, i.e., determines to protect according to label
Set is equivalent to the operation trend of terminal, when determining protective case close to mobile terminal according to label, illustrates the screen of mobile terminal
Protective case will close terminal screen, at this point, control mobile terminal screen puts out screen;Determining protective case with movement eventually according to label
When the position at end is constant, the state for keeping screen current is constant, that is to say, that terminal screen is allowed to keep the screen shape of last moment
State is constant;When determining protective case far from mobile terminal according to label, illustrate that the screen protection set of mobile terminal is being opened, this
When by the screens switch of mobile terminal be bright screen state, so as to user use.
The control method for the screen state that the present embodiment proposes is emitting the first ultrasonic signal by ultrasonic transmitter
In the case of, it determines whether to receive the first ultrasonic signal through reflected second ultrasonic wave of object by ultrasonic receiver
Signal if the second ultrasonic signal can be received, calculates the corresponding characteristic value of the second ultrasonic signal, then by the characteristic value
It is input in preset detection model as input parameter, to obtain output parameter;It is finally controlled and moved according to the output parameter
The on off state of dynamic terminal screen, wherein, the on off state of screen includes bright screen and puts out screen.The present invention is realized in mobile terminal
The switching of screen state is realized by ultrasonic signal, can also be realized without user's manual operation, so as to improve screen state
The flexibility of switching and intelligent.
Further, the second embodiment of the control method of screen state of the present invention is proposed based on first embodiment.
The difference of the first embodiment of the second embodiment of the control method of screen state and the control method of screen state
It is, before the step S10, the method further includes:
Step A obtains object approach mobile terminal and far from during mobile terminal, and the ultrasonic receiver is received
Preset quantity the second ultrasonic signal;
Step B calculates the corresponding characteristic value of the second ultrasonic signal of preset quantity, according to second ultrasonic signal
Corresponding characteristic value trains detection model, and stores the detection model of training gained.
In the present embodiment, object approach mobile terminal is first obtained and far from during mobile terminal, the ultrasonic wave connects
The second ultrasonic signal of preset quantity that device is received is received, the second ultrasonic signal phase of preset quantity is obtained in the present embodiment
The second ultrasonic signal for receiving in certain time is obtained when then passing through ultrasonic receiver, specifically, including obtaining
During the ultrasonic signal and mobile terminal that ultrasonic receiver receives during mobile terminal approach object are far from object
The ultrasonic signal that ultrasonic receiver receives, in the present embodiment, the quantity of ultrasonic signal that is obtained in the case of optional two kinds
It is consistent, the concrete numerical value of the preset quantity is set according to actual needs, is not limited herein, it should be understood that the second is surpassed
When the quantity of acoustic signals is more, subsequently trained detection model is more accurate.
It should be noted that mobile terminal after the second ultrasonic signal is got, can believe the second ultrasonic wave of acquisition
It number is marked, to distinguish acquired the second ultrasonic signal during mobile terminal approach object and far from during object
The second acquired ultrasonic signal.Such as:Acquired the second ultrasonic signal label during mobile terminal approach object
For first flag " 001 ";Mobile terminal identifies " 003 " far from ultrasonic signal acquired during object labeled as third;
Mobile terminal ultrasonic signal acquired during being remained unchanged relative to object is labeled as second identifier " 002 ".
After the second ultrasonic signal is got, the characteristic value of each second ultrasonic signal of acquisition is calculated, is calculated
The characteristic value of second ultrasonic signal is described in detail in embodiments below, is not repeated herein.To the second ultrasonic wave of preset quantity
After signal calculates characteristic value, the characteristic value of the second ultrasonic signal of calculating is input in detection model with the training detection
Model, the SVM models of the detection model, that is, described above.It is trained corresponding the second to surpass during approaching object by SVM
Acoustic signals and its far from the second ultrasonic signal corresponding during object, to obtain detection mobile terminal relative to object
The detection model of movement tendency, and store the detection model of training gained.Wherein, SVM be by a Nonlinear Mapping p,
Sample space is mapped in a higher-dimension or even infinite dimensional feature space (Hilbert spaces) so that empty in original sample
Between middle Nonlinear separability the problem of the problem of being converted into the linear separability in feature space.It should be noted that mobile whole
In the characteristic value of the corresponding ultrasonic signal of end approach object, contain first flag;It is corresponding super far from object in mobile terminal
In the characteristic value of acoustic signals, identified containing third;When detection model detects that the second inputted ultrasonic signal is not to move
Dynamic terminal approaches corresponding second ultrasonic signal of object, nor mobile terminal is far from corresponding second ultrasonic signal of object
When, detection model is then confirmed as mobile terminal and is in invariant state relative to object, contains second in ultrasonic signal characteristic value
Mark.
It should be noted that mobile terminal can be by the amplitude change rate of ultrasonic signal, Doppler effect difference in areas, amplitude
Input parameter of the characteristic value value as SVM models in difference between change rate and Doppler effect difference in areas, but be
The accuracy rate of testing result is improved, it can also using multiple characteristic values as the input parameter of SVM models.
In the present embodiment, object ultrasonic signal corresponding with separate object is approached by obtaining mobile terminal, according to institute
The characteristic value detection model of the ultrasonic signal of acquisition, fast and accurately to detect that mobile terminal is opposite by the detection model
In the movement tendency of barrier, so as to fulfill the control of mobile terminal screen on off state.
Further, propose that the third of the control method of screen state of the present invention is implemented based on first or second embodiments
Example.
The first or second embodiments of the 3rd embodiment of the control method of screen state and the control method of screen state
Difference lies in the embodiment of the step S20 includes:
1) when the characteristic value is the amplitude change rate of ultrasonic signal, the step S20 includes:
Step C, if the second ultrasonic signal can be received, the second ultrasonic signal for acquiring current time is corresponding super
Magnitudes of acoustic waves, and obtain the corresponding ultrasonic amplitude of the second ultrasonic signal of last moment;
Step D calculates the difference of the ultrasonic amplitude of current time and last moment, to obtain the amplitude of ultrasonic signal
Change rate.
That is, when characteristic value is the amplitude change rate of ultrasonic signal, mobile terminal first acquires the second surpassing for current time
The corresponding ultrasonic amplitude of acoustic signals, and the corresponding ultrasonic amplitude of the second ultrasonic signal for obtaining last moment is obtained,
Wherein, the time interval at last moment and current time does not limit, and sets according to actual needs, optional to be set as 1S.It needs
Illustrate, during mobile terminal is by ultrasonic receiver received ultrasonic signal, mobile terminal can record ultrasound
The ultrasonic amplitude that each reception of wave signal arrives.So, it in the ultrasonic amplitude for collecting current time, and gets
After the ultrasonic amplitude at one moment, you can the difference of the ultrasonic amplitude at two moment is calculated, using the difference as ultrasound
The amplitude change rate of wave signal.
In present embodiment, during mobile terminal and relative motion of object, the amplitude variation of ultrasonic signal is recorded
Rate, using the amplitude change rate as ultrasonic wave characteristic value, subsequently through the standard Frequency Response and mobile terminal of standard device
Character of frequency response is adjusted the ultrasonic wave characteristic value, realizes the calibration of ultrasonic wave characteristic value, subsequently judges object so as to improve
Body relative to mobile terminal become close or remote from accuracy.
2) when the characteristic value is the Doppler effect difference in areas of ultrasonic signal, the step S20 includes:
Step E if the second ultrasonic signal can be received, is acquired and is determined the ultrasonic receiver is received second
The receives frequency variation for the second ultrasonic signal that the receives frequency of ultrasonic signal and the ultrasonic receiver are received
Range;
Step F determines frequency constant interval according to the receives frequency and the receives frequency variation range;
Step G, according to the frequency constant interval and intensity variation curve meter corresponding with the frequency constant interval
Calculate the Doppler effect difference in areas of ultrasonic signal.
That is, mobile terminal determines the receives frequency and ultrasonic wave of the ultrasonic signal transmitted by its ultrasonic receiver
The frequency range for the ultrasonic signal that receiver is received.It in the present embodiment, can be by way of finite test, really
Most users are determined when using mobile terminal, the variation range of movement velocity, such as 0.2~20m/s (metre per second (m/s)) or 0.085~
17m/s etc., i.e. this velocity interval are speed when most users use mobile terminal.According to the variation model of this movement velocity
It encloses, frequency range can determine by Doppler effect, in Doppler effect, the relationship between speed and frequency is:
Wherein, f is the receives frequency for the ultrasonic signal that ultrasonic receiver is received, f0It is that ultrasound transmitter device is sent out
The transmission frequency of the ultrasonic signal sent, c are the aerial spread speed of ultrasonic signal, are 340m/s (metre per second (m/s)), Δ v
Be object relative to the speed of ultrasonic wave sound source, i.e., speed when user uses mobile terminal;So as to change frequencyWhen the transmission frequency of ultrasonic signal is 40KHz, object exists relative to the speed of ultrasonic wave sound source
When changing between 0.085~17m/s, frequency range is 10Hz~20KHz.According to the transmission frequency of this ultrasonic signal with
And most users use mobile terminal when speed, determine corresponding frequency range, be suitable for the need of most users
It asks.
According to Doppler effect, when object is relative to motion of mobile terminals, if both mobile terminal and object mutually lean on
Closely, ultrasonic signal can be compressed, and the wavelength of ultrasonic signal becomes shorter, and frequency becomes higher, that is, generates blue-shifted phenomenon;And
If both mobile terminal and object are located remotely from each other, opposite effect can be generated, the wavelength of ultrasonic signal becomes longer, frequency
Become relatively low, that is, generate Red Shift Phenomena.It should be noted that the speed of both mobile terminal and object relative motion is bigger, institute
The blue shift or redshift effect of generation are bigger.It is understood that the movement of the present embodiment object relative movement terminal, in fact
It is user during mobile terminal is used, user picks up mobile terminal close to human body or the process far from human body, it is contemplated that uses
The speed that mobile terminal is picked up at family changes in a certain range, so as to the frequency of ultrasonic signal for receiving ultrasonic receiver
Rate variation also it is corresponding in a certain range, as frequency range.
In the present embodiment, it will calculate and involved during Doppler effect difference in areas be referred to as the first face to area
Product and second area.
The frequency range of ultrasonic signal includes upper limit value and lower limiting value, and becoming larger and becoming smaller for tranmitting frequency depends on
The otherness of tranmitting frequency and frequency range relational expression.
The process that the corresponding frequency constant interval of the first area is calculated according to tranmitting frequency and frequency range is:According to
Relational expression between tranmitting frequency and upper limit value, lower limiting value determines frequency constant interval.Specifically, which connects for ultrasonic wave
Receive the section that the ultrasonic signal frequency that device receives is more than tranmitting frequency.The relational expression is by tranmitting frequency and frequency variation range
It does and calculates, receives frequency is made to become larger.Such as when tranmitting frequency be 40KHz, frequency range be 10Hz~20KHz, then on
Limit value is 20KHz, lower limiting value 10Hz, then the corresponding relational expression of the first area is (40+20) KHz and (40+0.01) KHz, right
The frequency constant interval answered is (40+0.01)~(40+20) KHz.
The process that the corresponding frequency constant interval of second area is calculated according to tranmitting frequency and frequency range is:According to
Relational expression between tranmitting frequency and upper limit value, lower limiting value determines frequency constant interval.Specifically, which connects for ultrasonic wave
Receive the section that the ultrasonic signal frequency that device receives is less than tranmitting frequency, the corresponding relational expression of second area be by tranmitting frequency and
The upper limit value and lower limiting value of frequency variation range make the difference calculating, and receives frequency is made to become smaller.Such as when tranmitting frequency be 40KHz, frequency
Variation range be 10Hz~20KHz, then upper limit value be 20KHz, lower limiting value 10Hz, then the corresponding relational expression of second area be
(40-20) KHz and (40-0.01) KHz, corresponding frequency constant interval are (40-20)~(40-0.01) KHz.
With reference to Fig. 7, after determining to calculate the corresponding frequency constant interval of the first area, determine and the frequency constant interval pair
The intensity variation curve answered.Wherein, the intensity variation curve is recorded in ultrasound signal transmission process.Determining intensity
After change curve, by the intensity value of the starting point of frequency constant interval Y-axis corresponding with end point, the frequency in the section X-axis
The area of closed area that the intensity variation curve of variation range and the frequency constant interval is surrounded is as the first area, root
According to the upper limit value and lower limiting value of the corresponding frequency constant interval of the first area, X-axis integration can be obtained by intensity variation curve
Go out the size of the first area.It is understood that the process for calculating second area is consistent with the process for calculating the first area, herein
It repeats no more.
After the first area and second area is obtained, mobile terminal calculates the first area subtracting second area, obtains the
Difference in areas between one area and second area, the difference in areas are denoted as the Doppler effect difference in areas of ultrasonic wave.
It should be noted that during mobile terminal and relative motion of object, Doppler's effect of ultrasonic signal is recorded
Difference in areas is answered, it is special subsequently through the standard frequency response of standard device using the Doppler effect difference in areas as ultrasonic wave characteristic value
Property and mobile terminal character of frequency response are adjusted the ultrasonic wave characteristic value, the calibration of ultrasonic wave characteristic value are realized, so as to carry
High follow-up judgment object relative to mobile terminal become close or remote from accuracy.
3) in difference of the characteristic value between amplitude change rate and Doppler effect difference in areas, the step S20
Including:
Step H, if receiving the second ultrasonic signal, according to the amplitude change rate of the second ultrasonic signal and Doppler
Effect difference in areas calculates the difference between the amplitude change rate and Doppler effect difference in areas.
By above-mentioned three kinds of modes, each characteristic value of the second ultrasonic signal is calculated.
After the corresponding characteristic value of the second ultrasonic signal is calculated, subsequently can the second ultrasonic signal characteristic value
Output parameter is obtained in detection model to input as input parameter, the control of screen on-off state is finally realized according to output parameter
System.
Further, the 4th of the control method for proposing screen state of the present invention based on first to 3rd embodiment implements
Example.
The first of the fourth embodiment of the control method of screen state and the control method of screen state is to 3rd embodiment
Difference lies in if it is to switch mobile terminal from screen is put out to control the on off state of mobile terminal screen according to the output parameter
For bright screen, then after the step S40, the method further includes:
Step I starts monitor to monitor touch event;
Step J, will be mobile if not hearing touch event when the startup time of monitor reaching preset time period
The screen of terminal is switched back into from bright screen puts out screen.
In the present embodiment, it is by mobile terminal in the on off state that mobile terminal screen is controlled according to the output parameter
From putting out in the case that screen is switched to bright screen, for mobile terminal from putting out after screen is switched to bright screen, mobile terminal starts monitor to supervise
Touch event is listened, if all not hearing touch event when the startup time of monitor reaching preset time period, is illustrated mobile whole
Touch event input by user is all not received by after the bright screen of end screen, it, will be mobile whole at this time in order to avoid the consuming of electricity
The screen at end is switched back into from bright screen puts out screen.
In the present embodiment, by mobile terminal from putting out after screen is switched to bright screen, if being not received by touch-control thing for a long time
The screen of mobile terminal then from bright screen is switched back into and puts out screen by part again, to reduce the consuming of electricity, improves the control of screen state
It is intelligent.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium.
The computer readable storage medium is built in the mobile terminal described in Fig. 1, the computer-readable storage medium
The control program of screen state is stored in matter, is realized when the control program of the screen state is executed by processor such as institute above
The step of stating the control method of screen state.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or system including a series of elements not only include those elements, and
And it further includes the other elements being not explicitly listed or further includes intrinsic for this process, method, article or system institute
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
Also there are other identical elements in the process of element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
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.Based on such understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a mobile terminal device (can be mobile phone, calculate
Machine, server, air conditioner or network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of control method of screen state, which is characterized in that the control method of the screen state includes:
In the case of emitting the first ultrasonic signal by ultrasonic transmitter, determine whether to receive the by ultrasonic receiver
One ultrasonic signal is through reflected second ultrasonic signal of object;
If the second ultrasonic signal can be received, the corresponding characteristic value of the second ultrasonic signal is calculated;
It is input to the characteristic value as input parameter in preset detection model, to obtain output parameter;
The on off state of mobile terminal screen is controlled according to the output parameter, wherein, the on off state of screen include bright screen and
Put out screen.
2. the control method of screen state as described in claim 1, which is characterized in that described to be emitted by ultrasonic transmitter
In the case of first ultrasonic signal, determine whether that receive the first ultrasonic signal by ultrasonic receiver is reflected back through object
Before the step of the second ultrasonic signal come, the method further includes:
Obtain object approach mobile terminal and far from the preset quantity that during mobile terminal, the ultrasonic receiver is received
The second ultrasonic signal;
The corresponding characteristic value of the second ultrasonic signal of preset quantity is calculated, according to the corresponding feature of second ultrasonic signal
Value training detection model, and store the detection model of training gained.
3. the control method of screen state as described in claim 1, which is characterized in that the characteristic value be ultrasonic signal
Amplitude change rate when, if described can receive the second ultrasonic signal, calculate the corresponding characteristic value of the second ultrasonic signal
The step of include:
If the second ultrasonic signal can be received, the corresponding ultrasonic amplitude of the second ultrasonic signal at current time is acquired,
And obtain the corresponding ultrasonic amplitude of the second ultrasonic signal of last moment;
The difference of the ultrasonic amplitude of current time and last moment is calculated, to obtain the amplitude change rate of ultrasonic signal.
4. the control method of screen state as described in claim 1, which is characterized in that the characteristic value be ultrasonic signal
Doppler effect difference in areas, if described can receive the second ultrasonic signal, calculate the corresponding spy of the second ultrasonic signal
The step of value indicative, includes:
If the second ultrasonic signal can be received, the second ultrasonic signal for determining that the ultrasonic receiver is received is acquired
Receives frequency and the receives frequency variation range of the second ultrasonic signal that is received of the ultrasonic receiver;
Frequency constant interval is determined according to the receives frequency and the receives frequency variation range;
Ultrasonic wave letter is calculated according to the frequency constant interval and intensity variation curve corresponding with the frequency constant interval
Number Doppler effect difference in areas.
5. the control method of screen state as described in claim 1, which is characterized in that described to be controlled according to the output parameter
The step of on off state of mobile terminal screen, includes:
Determine the label included in the output parameter;
According to the label, movement tendency of the object relative to mobile terminal is determined;
The on off state of mobile terminal screen is controlled according to the movement tendency.
6. the control method of screen state as claimed in claim 5, which is characterized in that it is described according to the label, determine object
Body relative to mobile terminal movement tendency the step of include:
If label is first flag, it is determined that currently has object close to mobile terminal;
If label is second identifier, it is determined that object is in invariant state relative to mobile terminal;
If label is identified for third, it is determined that currently has object far from mobile terminal.
7. the control method of screen state as claimed in claim 5, which is characterized in that described to be controlled according to the movement tendency
The step of on off state of mobile terminal screen, includes:
If it is determined that object approaches mobile terminal, then mobile terminal screen is controlled to put out screen;
If it is determined that object is in invariant state relative to the position of mobile terminal, then the fortune of the mobile terminal last moment is obtained
Dynamic trend, and according to the on off state of the movement tendency of last moment control mobile terminal screen;
If it is determined that object then controls the bright screen of mobile terminal screen far from mobile terminal.
8. such as the control method of claim 1-7 any one of them screen states, which is characterized in that if being joined according to the output
The on off state of number control mobile terminal screen is that mobile terminal is switched to bright screen from screen is put out, then described to be joined according to the output
After the step of on off state of number control mobile terminal screen, the method further includes:
Start monitor to monitor touch event;
If all not hearing touch event when the startup time of monitor reaching preset time period, by the screen of mobile terminal
It is switched back into from bright screen and puts out screen.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes memory, processor and is stored in the memory
The control program of screen state that is upper and can running on the processor, the control program of the screen state is by the processing
The step of control method such as screen state described in any item of the claim 1 to 8 is realized when device performs.
10. a kind of computer readable storage medium, which is characterized in that screen shape is stored on the computer readable storage medium
The control program of state is realized when the control program of the screen state is executed by processor such as any one of claim 1 to 8 institute
The step of control method for the screen state stated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711498658.XA CN108196778B (en) | 2017-12-29 | 2017-12-29 | Control method of screen state, mobile terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711498658.XA CN108196778B (en) | 2017-12-29 | 2017-12-29 | Control method of screen state, mobile terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108196778A true CN108196778A (en) | 2018-06-22 |
CN108196778B CN108196778B (en) | 2021-08-10 |
Family
ID=62587738
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711498658.XA Active CN108196778B (en) | 2017-12-29 | 2017-12-29 | Control method of screen state, mobile terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108196778B (en) |
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108845324A (en) * | 2018-06-26 | 2018-11-20 | 北京小米移动软件有限公司 | obstacle recognition method, device, equipment and storage medium |
CN109031315A (en) * | 2018-06-26 | 2018-12-18 | 北京小米移动软件有限公司 | Distance measurement method, device, equipment and storage medium |
CN109188920A (en) * | 2018-08-17 | 2019-01-11 | 珠海格力电器股份有限公司 | Control method and equipment |
CN109218538A (en) * | 2018-11-29 | 2019-01-15 | 努比亚技术有限公司 | Mobile terminal screen control method, mobile terminal and computer readable storage medium |
CN109212534A (en) * | 2018-09-21 | 2019-01-15 | 北京小米移动软件有限公司 | Gripping gesture detection method, device, equipment and the storage medium of mobile terminal |
CN109446770A (en) * | 2018-10-18 | 2019-03-08 | 维沃移动通信有限公司 | A kind of method and apparatus for protecting privacy |
CN110286420A (en) * | 2019-06-24 | 2019-09-27 | Oppo广东移动通信有限公司 | Calibration method, device, storage medium and the electronic equipment of proximity sensor |
CN110380792A (en) * | 2019-07-01 | 2019-10-25 | Oppo广东移动通信有限公司 | Control method, mobile terminal and the computer storage medium of screen state |
CN110471068A (en) * | 2019-07-23 | 2019-11-19 | 维沃移动通信有限公司 | Proximity test method and mobile terminal |
CN110493459A (en) * | 2019-07-31 | 2019-11-22 | Oppo广东移动通信有限公司 | Screen state control method, device, mobile terminal and storage medium |
CN110505341A (en) * | 2019-07-31 | 2019-11-26 | Oppo广东移动通信有限公司 | Terminal control method, device, mobile terminal and storage medium |
CN110519448A (en) * | 2019-07-31 | 2019-11-29 | Oppo广东移动通信有限公司 | Screen state control method, device, mobile terminal and storage medium |
CN110515085A (en) * | 2019-07-31 | 2019-11-29 | Oppo广东移动通信有限公司 | Ultrasonic processing method, device, electronic equipment and computer-readable medium |
CN110535535A (en) * | 2019-07-31 | 2019-12-03 | Oppo广东移动通信有限公司 | Ultrasonic wave calibration method, device, mobile terminal and storage medium |
CN110865710A (en) * | 2019-11-19 | 2020-03-06 | Oppo(重庆)智能科技有限公司 | Terminal control method and device, mobile terminal and storage medium |
CN111638522A (en) * | 2020-04-30 | 2020-09-08 | 维沃移动通信有限公司 | Proximity detection method and electronic device |
CN113253281A (en) * | 2020-02-13 | 2021-08-13 | 迪芬尼声学科技股份有限公司 | Object movement detection apparatus and method, and non-transitory computer-readable storage medium |
CN114513573A (en) * | 2020-11-16 | 2022-05-17 | 深圳市万普拉斯科技有限公司 | Screen control method and device, electronic equipment and storage medium |
CN116708661A (en) * | 2022-10-26 | 2023-09-05 | 荣耀终端有限公司 | Audio call processing method and related electronic equipment |
CN117135264A (en) * | 2023-04-27 | 2023-11-28 | 荣耀终端有限公司 | Screen state control method, electronic device and readable storage medium |
CN117714592A (en) * | 2023-08-08 | 2024-03-15 | 荣耀终端有限公司 | Screen state control method and device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2866159A1 (en) * | 2013-10-28 | 2015-04-29 | Samsung Electronics Co., Ltd | Electronic device and method for controlling a screen |
CN106020423A (en) * | 2016-05-25 | 2016-10-12 | 努比亚技术有限公司 | Screen control device and method for terminal |
CN106137187A (en) * | 2016-07-15 | 2016-11-23 | 广州视源电子科技股份有限公司 | Electroencephalogram state detection method and device |
CN106790955A (en) * | 2016-11-25 | 2017-05-31 | 北京小米移动软件有限公司 | Terminal control method and device |
CN106791218A (en) * | 2017-03-31 | 2017-05-31 | 努比亚技术有限公司 | A kind of screen control terminal and method |
CN106851013A (en) * | 2017-03-07 | 2017-06-13 | 广东欧珀移动通信有限公司 | SOT state of termination determination methods, device and terminal |
-
2017
- 2017-12-29 CN CN201711498658.XA patent/CN108196778B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2866159A1 (en) * | 2013-10-28 | 2015-04-29 | Samsung Electronics Co., Ltd | Electronic device and method for controlling a screen |
CN106020423A (en) * | 2016-05-25 | 2016-10-12 | 努比亚技术有限公司 | Screen control device and method for terminal |
CN106137187A (en) * | 2016-07-15 | 2016-11-23 | 广州视源电子科技股份有限公司 | Electroencephalogram state detection method and device |
CN106790955A (en) * | 2016-11-25 | 2017-05-31 | 北京小米移动软件有限公司 | Terminal control method and device |
CN106851013A (en) * | 2017-03-07 | 2017-06-13 | 广东欧珀移动通信有限公司 | SOT state of termination determination methods, device and terminal |
CN106791218A (en) * | 2017-03-31 | 2017-05-31 | 努比亚技术有限公司 | A kind of screen control terminal and method |
Cited By (37)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109031315A (en) * | 2018-06-26 | 2018-12-18 | 北京小米移动软件有限公司 | Distance measurement method, device, equipment and storage medium |
CN108845324A (en) * | 2018-06-26 | 2018-11-20 | 北京小米移动软件有限公司 | obstacle recognition method, device, equipment and storage medium |
CN109188920A (en) * | 2018-08-17 | 2019-01-11 | 珠海格力电器股份有限公司 | Control method and equipment |
CN109212534A (en) * | 2018-09-21 | 2019-01-15 | 北京小米移动软件有限公司 | Gripping gesture detection method, device, equipment and the storage medium of mobile terminal |
CN109212534B (en) * | 2018-09-21 | 2023-06-30 | 北京小米移动软件有限公司 | Method, device, equipment and storage medium for detecting holding gesture of mobile terminal |
CN109446770A (en) * | 2018-10-18 | 2019-03-08 | 维沃移动通信有限公司 | A kind of method and apparatus for protecting privacy |
CN109218538A (en) * | 2018-11-29 | 2019-01-15 | 努比亚技术有限公司 | Mobile terminal screen control method, mobile terminal and computer readable storage medium |
CN110286420A (en) * | 2019-06-24 | 2019-09-27 | Oppo广东移动通信有限公司 | Calibration method, device, storage medium and the electronic equipment of proximity sensor |
CN110286420B (en) * | 2019-06-24 | 2022-03-18 | Oppo广东移动通信有限公司 | Method and device for calibrating proximity sensor, storage medium and electronic equipment |
CN110380792A (en) * | 2019-07-01 | 2019-10-25 | Oppo广东移动通信有限公司 | Control method, mobile terminal and the computer storage medium of screen state |
CN110471068B (en) * | 2019-07-23 | 2021-09-14 | 维沃移动通信有限公司 | Proximity detection method and mobile terminal |
CN110471068A (en) * | 2019-07-23 | 2019-11-19 | 维沃移动通信有限公司 | Proximity test method and mobile terminal |
CN110493459A (en) * | 2019-07-31 | 2019-11-22 | Oppo广东移动通信有限公司 | Screen state control method, device, mobile terminal and storage medium |
CN110515085A (en) * | 2019-07-31 | 2019-11-29 | Oppo广东移动通信有限公司 | Ultrasonic processing method, device, electronic equipment and computer-readable medium |
CN110505341A (en) * | 2019-07-31 | 2019-11-26 | Oppo广东移动通信有限公司 | Terminal control method, device, mobile terminal and storage medium |
CN110519448A (en) * | 2019-07-31 | 2019-11-29 | Oppo广东移动通信有限公司 | Screen state control method, device, mobile terminal and storage medium |
WO2021017950A1 (en) * | 2019-07-31 | 2021-02-04 | Oppo广东移动通信有限公司 | Ultrasonic processing method and apparatus, electronic device and computer-readable medium |
WO2021017947A1 (en) * | 2019-07-31 | 2021-02-04 | Oppo广东移动通信有限公司 | Terminal control method and device, mobile terminal and storage medium |
WO2021017851A1 (en) * | 2019-07-31 | 2021-02-04 | Oppo广东移动通信有限公司 | Screen state control method and apparatus, mobile terminal and storage medium |
WO2021017859A1 (en) * | 2019-07-31 | 2021-02-04 | Oppo广东移动通信有限公司 | Screen state control method and apparatus, mobile terminal and storage medium |
CN110519448B (en) * | 2019-07-31 | 2021-03-02 | Oppo广东移动通信有限公司 | Screen state control method and device, mobile terminal and storage medium |
CN110493459B (en) * | 2019-07-31 | 2021-03-12 | Oppo广东移动通信有限公司 | Screen state control method and device, mobile terminal and storage medium |
CN110505341B (en) * | 2019-07-31 | 2021-05-07 | Oppo广东移动通信有限公司 | Terminal control method and device, mobile terminal and storage medium |
CN110515085B (en) * | 2019-07-31 | 2021-09-14 | Oppo广东移动通信有限公司 | Ultrasonic processing method, ultrasonic processing device, electronic device, and computer-readable medium |
CN110535535B (en) * | 2019-07-31 | 2021-08-17 | Oppo广东移动通信有限公司 | Ultrasonic calibration method and device, mobile terminal and storage medium |
CN110535535A (en) * | 2019-07-31 | 2019-12-03 | Oppo广东移动通信有限公司 | Ultrasonic wave calibration method, device, mobile terminal and storage medium |
CN110865710A (en) * | 2019-11-19 | 2020-03-06 | Oppo(重庆)智能科技有限公司 | Terminal control method and device, mobile terminal and storage medium |
CN110865710B (en) * | 2019-11-19 | 2023-08-18 | Oppo(重庆)智能科技有限公司 | Terminal control method and device, mobile terminal and storage medium |
CN113253281A (en) * | 2020-02-13 | 2021-08-13 | 迪芬尼声学科技股份有限公司 | Object movement detection apparatus and method, and non-transitory computer-readable storage medium |
CN113253281B (en) * | 2020-02-13 | 2024-05-03 | 迪芬尼声学科技股份有限公司 | Object movement detection device and method, and non-transitory computer readable storage medium |
CN111638522A (en) * | 2020-04-30 | 2020-09-08 | 维沃移动通信有限公司 | Proximity detection method and electronic device |
CN114513573A (en) * | 2020-11-16 | 2022-05-17 | 深圳市万普拉斯科技有限公司 | Screen control method and device, electronic equipment and storage medium |
CN116708661A (en) * | 2022-10-26 | 2023-09-05 | 荣耀终端有限公司 | Audio call processing method and related electronic equipment |
CN116708661B (en) * | 2022-10-26 | 2024-05-03 | 荣耀终端有限公司 | Audio call processing method, electronic equipment and storage medium |
CN117135264A (en) * | 2023-04-27 | 2023-11-28 | 荣耀终端有限公司 | Screen state control method, electronic device and readable storage medium |
CN117135264B (en) * | 2023-04-27 | 2024-06-28 | 荣耀终端有限公司 | Screen state control method, electronic device and readable storage medium |
CN117714592A (en) * | 2023-08-08 | 2024-03-15 | 荣耀终端有限公司 | Screen state control method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108196778B (en) | 2021-08-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108196778A (en) | Control method, mobile terminal and the computer readable storage medium of screen state | |
CN108159688A (en) | Interface sharing method, mobile terminal and computer readable storage medium | |
CN107885665A (en) | With case script method of testing, mobile terminal and computer-readable recording medium | |
CN108234295A (en) | Display control method, terminal and the computer readable storage medium of group's functionality controls | |
CN108562890A (en) | Calibration method, device and the computer readable storage medium of ultrasonic wave characteristic value | |
CN107517494A (en) | A kind of display methods of terminal battery electricity quantity, terminal and computer-readable recording medium | |
CN107844763A (en) | A kind of face identification method, mobile terminal and computer-readable recording medium | |
CN107770725A (en) | Arcade shop premises air navigation aid and mobile terminal | |
CN108566479A (en) | screen state control method, mobile terminal and computer readable storage medium | |
CN108234766A (en) | Microphone switching method, mobile terminal and computer readable storage medium | |
CN108234767A (en) | Control method, mobile terminal and the computer readable storage medium of screen state | |
CN108304109A (en) | Icon protrusion forming method, mobile terminal and computer readable storage medium | |
CN107632768A (en) | Button application method, terminal and computer-readable recording medium | |
CN108345426A (en) | A kind of terminal control method, terminal and computer readable storage medium | |
CN108172161A (en) | Display methods, mobile terminal and computer readable storage medium based on flexible screen | |
CN107807767A (en) | A kind of processing method of communication traffic, terminal and computer-readable recording medium | |
CN108037885A (en) | A kind of operation indicating method and mobile terminal | |
CN108184023A (en) | screen state control method, mobile terminal and computer readable storage medium | |
CN108052352A (en) | Control method, terminal and the computer readable storage medium of screen on-off state | |
CN107991664A (en) | Calibration method, device and the computer-readable recording medium of ultrasonic wave threshold value | |
CN108226880A (en) | Ultrasonic distance detects anti-tampering method, apparatus and storage medium | |
CN110064196A (en) | Method for controlling mobile terminal, mobile terminal and computer readable storage medium | |
CN110052024A (en) | Method of adjustment, adjustment device, mobile terminal and the storage medium of game vibration | |
CN108195394A (en) | Air navigation aid, mobile terminal and the computer readable storage medium of flexible screen | |
CN109062485A (en) | Display methods, double-sided screen terminal and the computer readable storage medium of double-sided screen |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |