CN107544803A - Light on and off screen control method, device and readable storage medium storing program for executing based on ultrasonic wave - Google Patents

Light on and off screen control method, device and readable storage medium storing program for executing based on ultrasonic wave Download PDF

Info

Publication number
CN107544803A
CN107544803A CN201710777820.5A CN201710777820A CN107544803A CN 107544803 A CN107544803 A CN 107544803A CN 201710777820 A CN201710777820 A CN 201710777820A CN 107544803 A CN107544803 A CN 107544803A
Authority
CN
China
Prior art keywords
ultrasonic wave
screen
light
sender
curve
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
Application number
CN201710777820.5A
Other languages
Chinese (zh)
Other versions
CN107544803B (en
Inventor
白金
苗雷
王维平
常江
冯协
孙丽
王冲
郭佳良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710777820.5A priority Critical patent/CN107544803B/en
Publication of CN107544803A publication Critical patent/CN107544803A/en
Application granted granted Critical
Publication of CN107544803B publication Critical patent/CN107544803B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses a kind of light on and off screen control method based on ultrasonic wave, device and computer-readable recording medium, the light on and off screen control method based on ultrasonic wave include:Obtain intensity variation curve corresponding to ultrasonic frequency constant interval and the frequency constant interval that ultrasonic wave recipient receives;According to the frequency constant interval and corresponding intensity variation curve, the displacement curve of ultrasonic wave sender is determined;According to the displacement curve, ultrasonic wave sender bright screen or the screen that goes out are controlled.This programme determines the mobile trend of ultrasonic wave sender by directly characterizing the displacement curve of ultrasonic wave sender's moving direction, and then controls the bright screen of ultrasonic wave sender or the screen that goes out according to this mobile trend, makes the light on and off screen of ultrasonic wave sender more accurate.

Description

Light on and off screen control method, device and readable storage medium storing program for executing based on ultrasonic wave
Technical field
The present invention relates to ultrasonic technology field, more particularly to a kind of light on and off screen control method based on ultrasonic wave, device And readable storage medium storing program for executing.
Background technology
Ultrasonic wave be frequency be higher than 20KHz sound wave, be widely used in industry, agricultural, medically, such as ranging, test the speed, weld Connect, rubble, sterilizing etc..Wherein it can be applied on mobile terminal, for detecting the position between mobile terminal and human body Move, to determine mobile trend of the mobile terminal relative to human body according to displacement, so as to control the light on and off screen of mobile terminal.Detection When, mobile terminal is sent out ultrasonic wave, and receives the ultrasonic wave that mobile terminal is returned to by the reflection of human body head, according to Mobile terminal receives the time length of ultrasonic wave every time, and it is away from human body or close to human body to determine mobile terminal.This basis The mode for receiving sonication times length does not account for the influence of outside environmental elements, it is impossible to accurately reacts mobile terminal Movement tendency, cause the control of mobile terminal light on and off screen inaccurate.
The content of the invention
Can it is a primary object of the present invention to provide a kind of light on and off screen control method, system and computer based on ultrasonic wave Read storage medium, it is intended to solve the problems, such as the control inaccuracy of mobile terminal light on and off screen in the prior art.
To achieve the above object, a kind of light on and off screen control method based on ultrasonic wave provided by the invention, it is described based on super The light on and off screen control method of sound wave comprises the following steps:
Obtain strong corresponding to ultrasonic frequency constant interval and the frequency constant interval that ultrasonic wave recipient receives Spend change curve;
According to the frequency constant interval and corresponding intensity variation curve, the displacement curve of ultrasonic wave sender is determined;
According to the displacement curve, ultrasonic wave sender bright screen or the screen that goes out are controlled.
Alternatively, it is described according to the displacement curve, control ultrasonic wave sender bright screen or the step of shielding of going out includes:
Multiple consecutive numbers strong points on displacement curve are obtained, each data value at the multiple consecutive numbers strong point is averaging Value;
New data value using the average value as multiple consecutive numbers strong points, and new displacement is formed according to the new data value Curve;
According to the new displacement curve, ultrasonic wave sender bright screen or the screen that goes out are controlled.
Alternatively, multiple consecutive numbers strong points on the acquisition displacement curve, to each number at the multiple consecutive numbers strong point The step of being averaged according to value includes:
Determine the value interval at multiple consecutive numbers strong points and predetermined number on displacement curve;
Determine the initial data point at multiple consecutive numbers strong points according to the value interval, and according to the initial data point from Consecutive numbers strong point corresponding with predetermined number is obtained on displacement curve;
The consecutive numbers strong point is formed into data point combination, and data point combination is averaged.
Alternatively, it is described according to the new displacement curve, control ultrasonic wave sender bright screen or the step of shielding of going out includes:
Judge whether the numerical value on new displacement curve is more than first threshold, when more than first threshold, control ultrasonic wave hair The side of sending carries out bright screen;
Judge whether the numerical value on new displacement curve is less than Second Threshold, when less than Second Threshold, control ultrasonic wave hair The side of sending carries out screen operation of going out, and wherein first threshold is more than Second Threshold.
Alternatively, the frequency constant interval includes first interval and second interval, described according to the frequency variation zone Between and corresponding intensity variation curve, include the step of the displacement curve for determining ultrasonic wave sender:
According to first interval and intensity variation curve corresponding with the first interval, the first area is determined;
According to second interval and intensity variation curve corresponding with the second interval, second area is determined;
According to first area and second area, the displacement curve of ultrasonic wave sender is determined.
Alternatively, it is described according to first area and second area, determine the step of the displacement curve of ultrasonic wave sender Suddenly include:
Multiple differences of multiple first areas and second area are determined, and the multiple difference is formed into ultrasonic wave sender Displacement data group;
The displacement data group is formed into displacement curve.
Alternatively, it is described to obtain ultrasonic frequency constant interval and frequency variation zone that ultrasonic wave recipient receives Between corresponding intensity variation curve the step of before, one either more than one program can also by one or more than one Computing device for:
According to the default translational speed of ultrasonic wave sender, the ultrasonic frequency change that ultrasonic wave recipient receives is determined Section, and intensity variation curve corresponding with ultrasonic frequency constant interval.
Alternatively, the default translational speed according to ultrasonic wave sender, determine that ultrasonic wave recipient receives super The step of frequency of sound wave constant interval, includes:
According to the default translational speed of ultrasonic wave sender, determine that ultrasonic wave recipient receives the frequency change model of ultrasonic wave Enclose;
The base frequency that ultrasonic wave sender sends ultrasonic wave is obtained, and model is changed according to the base frequency and frequency Enclose, determine frequency constant interval.
In addition, to achieve the above object, the present invention also proposes a kind of light on and off screen control device based on ultrasonic wave, the base Include in the light on and off screen control device of ultrasonic wave:Memory, processor, communication bus and the base being stored on the memory In the light on and off screen control program of ultrasonic wave:
The communication bus is used to realize the connection communication between processor and memory;
The processor is used to perform the light on and off screen control program based on ultrasonic wave, to realize following steps:
Obtain strong corresponding to ultrasonic frequency constant interval and the frequency constant interval that ultrasonic wave recipient receives Spend change curve;
According to the frequency constant interval and corresponding intensity variation curve, the displacement curve of ultrasonic wave sender is determined;
According to the displacement curve, ultrasonic wave sender bright screen or the screen that goes out are controlled.
In addition, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, described computer-readable Storage medium is stored with one or more than one program, one either more than one program can by one or one with On computing device for:
Obtain strong corresponding to ultrasonic frequency constant interval and the frequency constant interval that ultrasonic wave recipient receives Spend change curve;
According to the frequency constant interval and corresponding intensity variation curve, the displacement curve of ultrasonic wave sender is determined;
According to the displacement curve, ultrasonic wave sender bright screen or the screen that goes out are controlled.
The light on and off screen control method based on ultrasonic wave of technical solution of the present invention, is received by obtaining ultrasonic wave recipient Ultrasonic frequency constant interval and the frequency constant interval corresponding to intensity variation curve;And according to this frequency constant interval The corresponding intensity variation curve with this frequency constant interval, determine the displacement curve of ultrasonic wave sender;So as to according to this position Curve is moved, controls ultrasonic wave sender bright screen or the screen that goes out.This programme is by directly characterizing the position of ultrasonic wave sender's moving direction Move curve, determine the mobile trend of ultrasonic wave sender, so according to this mobile trend control ultrasonic wave sender bright screen or Go out screen, makes the light on and off screen of ultrasonic wave sender more accurate.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for realizing each optional mobile terminal of embodiment one of the present invention;
Fig. 2 is the wireless telecommunication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the flow signal that the light on and off screen control method of the invention based on ultrasonic wave is applied to transmitting terminal first embodiment Figure;
Fig. 4 is the flow signal that the light on and off screen control method of the invention based on ultrasonic wave is applied to transmitting terminal second embodiment Figure;
Fig. 5 is the device structure schematic diagram for the hardware running environment that present invention method is related to;
Fig. 6 is light on and off screen the first schematic diagram of a scenario of control method of the invention based on ultrasonic wave;
Fig. 7 is light on and off screen the second schematic diagram of a scenario of control method of the invention based on ultrasonic wave.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization 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 block 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the part 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 less parts, Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
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, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103 The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound Caused noise or interference during frequency signal.
Mobile terminal 100 also 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 transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer 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 axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification 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, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071 Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection Two parts of device and touch controller.Wherein, 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 sent of reception processing device 110 and can be performed.In addition, can To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, 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, contact panel 1071 and display panel 1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 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 Voice 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 whole mobile terminal of connection Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage Data in device 109, the various functions and processing data of mobile terminal are performed, 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, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system Unite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used 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 terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc. The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration, communication apparatus structure, the light on and off screen control of the invention based on ultrasonic wave is proposed Each embodiment of method processed.
Reference picture 3, the present invention provides a kind of light on and off screen control method based on ultrasonic wave, in the light on and off screen based on ultrasonic wave In control method first embodiment, being somebody's turn to do the light on and off screen control method based on ultrasonic wave includes:
Step S10, obtain ultrasonic frequency constant interval and the frequency constant interval that ultrasonic wave recipient receives Corresponding intensity variation curve;
Light on and off screen based on the ultrasonic wave control of the present embodiment is primarily adapted for use in by ultrasonic wave to sending this ultrasonic wave Sender carries out light on and off screen control.Ultrasonic wave sender is the equipment with screen display device, and it is sent out ultrasonic wave, is surpassed Acoustic receiver side receives to this ultrasonic wave sent, according to the parameter for sending and receiving ultrasonic wave, determines that ultrasonic wave is sent The displacement trend of side, and then ultrasonic wave sender bright screen or the screen that goes out are controlled according to displacement trend.This ultrasonic wave sender and ultrasound Ripple recipient can be integrated in same mobile terminal, and mobile terminal is used as ultrasonic wave sender and ultrasonic wave recipient simultaneously, Can be smart mobile phone or tablet personal computer, wherein being illustrated by taking smart mobile phone as an example.Smart mobile phone, which is provided with, to be sent out Send the ultrasonic wave sender of ultrasonic wave and the ultrasonic wave recipient of ultrasonic wave can be received, specifically, ultrasonic wave sender can integrate In the receiver of smart mobile phone, in the Mic for the smart mobile phone that ultrasonic wave recipient can be integrated in;So as to which receiver changes power Current signal become the signal of sound, ultrasonic signal is also sent out while the sound-reducing of transmission is come out, Mic exists The voice signal of reception is converted to while the signal of the electric current of strong and weak change is transmitted and also receives the ultrasound that receiver is sent Ripple signal.Smart mobile phone for being provided with two Mic of major-minor, voice signal is received when being set as by main Mic and be used for and conversing, and Secondary Mic is set as to be used for received ultrasonic signal, to avoid interfering with each other for signal.Understandably, ultrasonic wave is that frequency is big In 20KHz sound wave, so that the ultrasonic frequency that mobile terminal is sent out also is accordingly a certain frequency more than 20KHz, Such as 40KHz, this certain frequency for being more than 20KHz is the base frequency that ultrasonic wave sender sends ultrasonic wave.
In addition the displacement trend of the ultrasonic wave sender of the present embodiment is displacement trend of the mobile terminal relative to user, is used Family is held close for user or by from user during using mobile terminal, by mobile terminal, mobile terminal occurs close or remote From the displacement trend of user, relative movement between mobile terminal and user be present.And according to Doppler effect, sent out as ultrasonic wave The mobile terminal for the side of sending, when it is moved relative to user, if close to each other between the two, ultrasonic wave is compressed, and wavelength becomes Shorter, frequency becomes higher, that is, produces blue-shifted phenomenon;And if be located remotely from each other between the two, opposite effect can be produced, ultrasound The wavelength of ripple becomes longer, and frequency becomes relatively low, that is, produces Red Shift Phenomena;It is produced and the speed moved between the two is higher Effect it is bigger.Relative to the movement of user, it is substantially user during using mobile terminal, taken the present embodiment mobile terminal Play process of the mobile terminal close to user or remote user, it is contemplated that the speed that user picks up mobile terminal becomes within the specific limits Change, so that the change for the ultrasonic frequency that ultrasonic wave recipient receives also accordingly changes within the specific limits, this is frequency Rate excursion.Frequency range is the frequency caused by the relative motion between ultrasonic wave recipient and ultrasonic wave sound source Rate excursion, the frequency that ultrasonic wave recipient receives can be changed with this scope.So as to according to this frequency range The ultrasonic frequency constant interval that ultrasonic wave recipient receives is can determine that, this frequency constant interval is to become with base frequency in frequency The section of change gained in the range of change.In addition, the ultrasonic frequency that ultrasonic wave recipient receives has its corresponding intensity level, from And it is determined that after frequency constant interval, each frequency in frequency constant interval can correspond to corresponding intensity level, and in section Intensity corresponding to the frequency of all changes can then form intensity variation curve.Obtain the ultrasound that this ultrasonic wave recipient receives Intensity variation curve corresponding to wave frequency rate constant interval and the frequency separation, to determine movement of the mobile terminal relative to user Trend, controls the bright screen of mobile terminal or the screen that goes out.
Step S20, according to the frequency constant interval and corresponding intensity variation curve, determine the position of ultrasonic wave sender Move curve;
Further, the area that frequency constant interval and intensity variation curve corresponding with this frequency constant interval are formed Displacement available for the displacement, i.e. ultrasonic wave sender for characterizing ultrasonic wave sound source.Because single displacement data can not embody movement Mobile trend between terminal and user, it is thus necessary to determine that multiple displacements, movement is embodied by the numerical value change between multiple displacements Mobile trend between terminal and user, such as multiple numerical value show that mobile terminal and the distance between user are more and more nearer or more next It is more remote, then illustrate that mobile terminal has the mobile trend close to or away from user.Ultrasonic wave sender sends ultrasonic wave with a timing Between the cycle carry out, corresponding ultrasonic wave recipient also receives ultrasonic wave with cycle certain time, and the present embodiment obtains each time Frequency constant interval and corresponding intensity variation curve in cycle, each frequency constant interval and corresponding Strength Changes are bent Line is respectively formed corresponding area.Each area embodies mobile terminal relative to the displacement of user, passes through this size Change embodies the change of displacement.Specifically, the two-dimensional coordinate system of XY axles is established, X-axis is the time, Y-axis is displacement, by each time The area that frequency constant interval corresponding to cycle and intensity variation curve corresponding with this frequency constant interval are formed, as Y-axis On shift value point, multiple shift value points corresponding to multiple time cycles, displacement curve can be formed.With according to displacement curve The change of top offset, determine mobile terminal and the mobile trend of user.
Step S30, according to the displacement curve, control ultrasonic wave sender bright screen or the screen that goes out.
Further, in the two-dimensional coordinate system of displacement curve, positioned at Y-axis positive direction numerical representation method mobile terminal to User approaches, and then to characterize mobile terminal remote to user positioned at the numerical value of Y-axis negative direction.So that according to this positive and negative values, it is determined that Mobile terminal to user close to or away from, and according to close to or away from state realize the light on and off screen of mobile terminal.It is such as mobile whole When receiving incoming call, its bright screen is shown termination to incoming call, when determining the fortune between mobile terminal and user by displacement curve Dynamic trend be close, then mobile terminal is held close for answering to sending a telegram here by judgement user, so as to control mobile terminal to go out screen, with Reduce the energy consumption of mobile terminal;And when by displacement curve determine movement tendency between mobile terminal and user be it is remote, then Judge that the call of user has been completed to take mobile terminal from user, so as to control mobile terminal bright screen to show call-information Show, so that user understands talking state.
The light on and off screen control method based on ultrasonic wave of technical solution of the present invention, is received by obtaining ultrasonic wave recipient Ultrasonic frequency constant interval and the frequency constant interval corresponding to intensity variation curve;And according to this frequency constant interval The corresponding intensity variation curve with this frequency constant interval, determine the displacement curve of ultrasonic wave sender;So as to according to this position Curve is moved, controls ultrasonic wave sender bright screen or the screen that goes out.This programme is by directly characterizing the position of ultrasonic wave sender's moving direction Curve is moved, determines mobile terminal and the mobile trend of user, and then the bright screen of ultrasonic wave sender is controlled according to this mobile trend Or the screen that goes out, the judgement of mobile trend can be made more accurate, make the control of light on and off screen more accurate.
Further, it is described according to institute in another embodiment of light on and off screen control method of the present invention based on ultrasonic wave Displacement curve is stated, ultrasonic wave sender bright screen is controlled or the step of shielding of going out includes:
Step S31, multiple consecutive numbers strong points on displacement curve are obtained, to each data value at the multiple consecutive numbers strong point Average;
Step S32, the new data value using the average value as multiple consecutive numbers strong points, and according to the new data value shape Into new displacement curve;
Step S33, according to the new displacement curve, control ultrasonic wave sender bright screen or the screen that goes out.
Understandably, within a time cycle, there are numerous frequency constant interval and corresponding intensity variation curve institute The area figures of the numerous displacement of sign of formation, this numerous shift value may partly be located at Y-axis in two-dimensional coordinate system Positive direction may also partly be located at the negative direction of Y-axis.So as to which the result judged by it may be close to user for mobile terminal It is mobile to be possibly also distant form user's movement, there is the problem of judged result inaccuracy.In order to avoid the appearance of this problem, the present embodiment Numerical point on displacement curve is smoothed.Specifically, multiple consecutive numbers strong points on displacement curve are obtained, it is multiple to this Each data value at consecutive numbers strong point is averaged, and using this average value as multiple consecutive numbers strong points for averaging New data value.Refer to Fig. 6, when on displacement curve institute a little after average value is handled, will be handled by average value To all new data values form new displacement curve, according to new displacement curve, to control the bright screen of ultrasonic wave sender or the screen that goes out. New displacement curve is formed by the processing averaged to multiple consecutive numbers strong points on former displacement curve, displacement curve can be made On data point more accurately embody the displacement trend of mobile terminal.Multiple consecutive numbers strong points on displacement curve are wherein obtained, and The step of being averaged to each data value at this multiple consecutive numbers strong point includes:
Step S311, determine the value interval at multiple consecutive numbers strong points and predetermined number on displacement curve;
Step S312, the initial data point at multiple consecutive numbers strong points is determined according to the value interval, and according to described Beginning data point obtains consecutive numbers strong point corresponding with predetermined number from displacement curve;
Step S313, the consecutive numbers strong point is formed into data point combination, and data point combination is averaged.
Further, in order to which the numerical value averaged is more accurate, the data point averaged every time is set as portion Point repeat, such as first this 1st~10 data point on displacement curve is averaged, second to the 2nd~11 or the 3rd ~12 data points are averaged, and make the 2nd~10 or 3~10 data points repetitions averaged for the first time and for the second time, So that the result after averaging more is bonded the data point of former displacement curve.Wherein overlapping data amount check is true by value interval It is fixed, the 2nd~11 data point is averaged for the second time as described above, then value is at intervals of 1;And when second to the 3rd~12 When data point is averaged, then value is at intervals of 2.And how many individual numerical points are averaged, determined by predetermined number, it is such as pre- If number is 10, then 10 data points on displacement curve are averaged every time.The present embodiment is more on displacement curve by determining The value interval at individual consecutive numbers strong point and predetermined number, the multiple consecutive numbers strong points for determining to average every time according to value interval Initial data point.Exceptionally, the initial data point averaged first can be by making an appointment, and such as agreement is by displacement curve First data point as the initial data point averaged first.The initial data point subsequently averaged is then according to value Interval determines that such as initial data point first is 1, and value is 4 at intervals of 3, then secondary initial data point, third time then with Based on secondary initial data point 4, value is carried out with value interval 3, i.e. the initial data point of third time is 7.It is determined that After the initial data point of each value, then consecutive numbers corresponding with predetermined number is obtained from displacement curve with this initial data point Strong point, described above 1~10,4~13,7~16 etc..After the consecutive numbers strong point averaged every time is obtained, by this consecutive numbers Strong point forms data point combination, and the combination of this data point is averaged.Specifically, by corresponding to all data points in combinations of values Data value is done and computing, and will do business's computing with the result obtained by computing and predetermined number, and this business's operation result is data point The average value of combination.The present embodiment can make average value more by the way that the data point averaged every time is set as into part repeats Accurately, the mobile trend of mobile terminal can more be embodied.
It is described bent according to the displacement in another embodiment of light on and off screen control method of the present invention based on ultrasonic wave Line, controls ultrasonic wave sender bright screen or the step of shielding of going out includes:
Step S34, it is described according to the new displacement curve, control ultrasonic wave sender bright screen or go out screen the step of include:
Step S35, judges whether the numerical value on new displacement curve is more than first threshold, when more than first threshold, control Ultrasonic wave sender carries out the screen that goes out;
Step S36, judges whether the numerical value on new displacement curve is less than Second Threshold, when less than Second Threshold, control Ultrasonic wave sender carries out bright screen operation, and wherein first threshold is more than Second Threshold.
Understandably, during using mobile terminal, mobile terminal has closer and farther from user's two states user, Wherein mobile terminal and user's relative distance most far distance of user's arm.When both relative distance is in farthest shape State, and judge that the movement tendency of mobile terminal is close to user, now controls mobile terminal screen display of going out so unreasonable, possible user Not yet see the content of the caller identification on mobile terminal clearly.The movement tendency for working as judgement mobile terminal accordingly is remote user, Then control mobile terminal bright screen is also unreasonable immediately, and possible mobile terminal not yet reaches the position that user can see that its display screen Put, now bright screen can cause the electricity of mobile terminal to waste.So as to which the present embodiment is provided with first threshold and Second Threshold, first Threshold value is used for when the displacement trend between mobile terminal and user is close, and judging the displacement of mobile terminal and user is It is no allow mobile terminal and user distance it is near enough, Second Threshold is used for when displacement trend between mobile terminal and user is remote From when, judge whether the displacement of mobile terminal and user allow the distance of mobile terminal and user remote enough.Please further join According to Fig. 6, because judging close to by the Y-axis positive direction on displacement curve, the remote Y-axis negative direction by displacement curve judges, So as to which first threshold is more than Second Threshold, and first threshold is on the occasion of Second Threshold is negative value.Fig. 7 is refer to, when by smooth When numerical value on the displacement curve of processing is more than first threshold, i.e., mobile terminal is more than the first threshold to the distance moved close to user Value, then judge that the displacement trend between mobile terminal and user is close, and distance between the two reaches screen distance of going out, and carries out The screen that goes out processing;And when the numerical value on displacement curve is less than Second Threshold, i.e., mobile terminal is small to the distance away from user's movement In Second Threshold, then it is remote to judge the displacement trend between mobile terminal and user, and distance between the two reaches bright screen Distance, carry out bright screen processing.
Further, in another embodiment of light on and off screen control method of the present invention based on ultrasonic wave, the frequency becomes Changing section includes first interval and second interval, described according to the frequency constant interval and corresponding intensity variation curve, really The step of displacement curve for determining ultrasonic wave sender, includes:
Step S21, according to first interval and intensity variation curve corresponding with the first interval, determine the first face Product;
Step S22, according to second interval and intensity variation curve corresponding with the second interval, determine the second face Product;
Step S23, according to first area and second area, determine the displacement curve of ultrasonic wave sender.
Further, because frequency constant interval be changed with base frequency in frequency range obtained by section, And frequency range is the scope of a frequency values change for including coboundary and lower boundary, so as to which base frequency is in frequency Change between the coboundary of excursion and lower boundary, and including becoming greatly and diminishing.Frequency becomes with frequency based on wherein diminishing Change scope and do difference operation, become it is big then based on frequency done with frequency range and computing.Difference operation with and the difference of computing can Different frequency constant intervals is determined, it neutralizes first interval of the result obtained by computing for frequency constant interval, difference operation institute The result obtained is the second interval of frequency constant interval.If base frequency is f, frequency range is f1~f2, then the firstth area Between be (f+f1)~(f+f2);Second interval is (f-f2)~(f-f1).It is determined that after this first interval and second interval, first Frequency in section and second interval corresponds to its respective intensity curve, and first interval starting point is corresponding with end point strong The closed area that angle value, the frequency range of first interval and the intensity variation curve of first interval are surrounded is as first Region.By second interval starting point intensity level corresponding with end point, the frequency range and second interval of second interval The closed area that is surrounded of intensity variation curve as second area.By intensity variation curve corresponding to first interval to The frequency range integration in one section can draw the size of first area, i.e. the first area.Pass through second interval pair The intensity variation curve answered can draw the size of second area to the frequency range of second interval integration, i.e., second Area.So as to according to this first area and second area, determine the displacement curve of ultrasonic wave sender, its specific steps:
Step S231, multiple differences of multiple first areas and second area are determined, and the multiple difference formed super The displacement data group of sound wave sender;
Step S232, the displacement data group is formed into displacement curve.
It is determined that the size of first area and the size of second area, i.e. the first area and second area it Afterwards, this first area and second area are done into difference operation, i.e. the first area subtracts second area, and the difference result of this difference operation is For the displacement of ultrasonic wave sender.The size of difference is the distance of displacement, and the positive negativity of difference is the direction of displacement, and difference is just Then mobile terminal moves close to user, and difference moves for negative then mobile terminal away from user.When the present embodiment is by obtaining each Between frequency constant interval and corresponding intensity variation curve, each frequency constant interval and corresponding Strength Changes in the cycle Curve is respectively formed corresponding first area and second area, i.e., multiple first areas and second area.By this multiple first area Difference operation is done with corresponding second area, obtains multiple differences, this multiple difference is formed to the displacement data of ultrasonic wave sender Group, wherein time cycle and size of the difference are comprised at least in each displacement data group, with big according to multigroup time cycle and difference Small formation displacement curve, mobile trend of the mobile terminal relative to user is determined, control the bright screen of mobile terminal or the screen that goes out.
Further, Fig. 4 is refer to, in the base of the first embodiment of light on and off screen control method of the present invention based on ultrasonic wave On plinth, the second embodiment of the light on and off screen control method of the invention based on ultrasonic wave, in a second embodiment, the acquisition are proposed Intensity variation curve corresponding to the ultrasonic frequency constant interval and the frequency constant interval that ultrasonic wave recipient receives Include before step:
Step S40, according to the default translational speed of ultrasonic wave sender, determine that ultrasonic wave recipient receives the frequency of ultrasonic wave Rate constant interval, and intensity variation curve corresponding with ultrasonic frequency constant interval.
Further, because mobile terminal receives the frequency change of ultrasonic wave, by relative between mobile terminal and user Motion causes, and frequency constant interval is then determined by the speed variation of relative motion.Understandably, mobile terminal and user it Between relative motion, its essence is user picks up mobile terminal during using mobile terminal, make mobile terminal and user people The relative motion that body trunk or head occur.The speed that user picks up mobile terminal changes within the specific limits, specific change Scope can be by way of test, it is determined that speed when most of user uses mobile terminal.This is met into most of user needs Default translational speed of the velocity interval asked as ultrasonic wave sender, and translational speed is preset according to this and determines that ultrasonic wave receives Side receives the frequency constant interval of ultrasonic wave.And the ultrasonic frequency that ultrasonic wave recipient receives has its corresponding intensity level, So as to it is determined that after frequency constant interval, each frequency in frequency constant interval can correspond to corresponding intensity level, and section Intensity corresponding to the frequency of middle all changes can then form intensity variation curve.Wherein according to the default shifting of ultrasonic wave sender The step of moving speed, determining the ultrasonic frequency constant interval that ultrasonic wave recipient receives includes:
Step S41, the base of ultrasonic wave is sent according to the default translational speed of ultrasonic wave sender and ultrasonic wave sender Plinth frequency, determine that ultrasonic wave recipient receives the frequency range of ultrasonic wave;
Step S42, according to the frequency range and base frequency, determine frequency constant interval.
Further, after the default translational speed of most of user's request is determined for compliance with, according to this default mobile speed The base frequency for the ultrasonic wave that degree and ultrasonic wave sender send, you can determine that ultrasonic wave recipient receives the frequency of ultrasonic wave Excursion.Specifically, according in Doppler effect, the relational expression between speed and frequency:
Wherein, f is the frequency for receiving ultrasonic wave, f0It is the base frequency that ultrasonic wave is sent, c is that sound is aerial Spread speed 340m/s, Δ v are speed of the user relative to ultrasonic wave sound source, i.e., default translational speed.
So as to change frequencyThe default translational speed Δ v of cause is the number changed in certain limit Value, corresponding change frequency Δ f also change within the specific limits, as frequency range.Because frequency range is one The scope of frequency values change, including coboundary and lower boundary, the frequency that ultrasonic wave recipient receives is on the basis of base frequency On changed with this scope, i.e., change between coboundary and lower boundary.So as to according to frequency range and base frequency It can determine that the frequency constant interval that ultrasonic wave recipient receives.It is bent according to this frequency constant interval and corresponding Strength Changes Line, displacement curve is determined, realize the bright screen of mobile terminal or the screen that goes out.
Reference picture 5, Fig. 5 are the apparatus structure schematic diagrams for the hardware running environment that present invention method is related to.
Light on and off screen control device of the embodiment of the present invention based on ultrasonic wave includes the mobile terminal of interaction, and mobile terminal can be with It is smart mobile phone, tablet personal computer, E-book reader, MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio aspect 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio aspect 3) player, pocket computer etc. have display function Packaged type terminal device.
As shown in figure 5, being somebody's turn to do the light on and off screen control device based on ultrasonic wave can include:Processor 110, such as CPU, storage Device 109, communication bus 1002.Wherein, communication bus 1002 is used to realize that the connection between processor 110 and memory 109 is led to Letter.Memory 109 can be high-speed RAM memory or stable memory (non-volatile memory), example Such as magnetic disk storage.Memory 109 optionally can also be the storage device independently of aforementioned processor 110.
Alternatively, user interface, network interface, shooting can also be included by being somebody's turn to do the light on and off screen control device based on ultrasonic wave Head, RF (Radio Frequency, radio frequency) circuit, sensor, voicefrequency circuit, WiFi module etc..User interface can include Display screen (Display), input block such as keyboard (Keyboard), optional user interface can also connect including the wired of standard Mouth, wave point.Network interface can optionally include wireline interface, the wave point (such as WI-FI interfaces) of standard.
It will be understood by those skilled in the art that the light on and off screen control device structure based on ultrasonic wave shown in Fig. 5 is not The restriction to the light on and off screen control device based on ultrasonic wave is formed, can be included than illustrating more or less parts, or group Close some parts, or different parts arrangement.
As shown in figure 5, it can lead to as in a kind of memory 1005 of computer-readable storage medium including operating system, network Believe module and the light on and off screen control program based on ultrasonic wave.Operating system is the light on and off screen control of management and control based on ultrasonic wave The program of device hardware and software resource processed, support light on and off screen control program and other softwares and/or journey based on ultrasonic wave The operation of sequence.Network communication module is used to realizing the communication between each component in the inside of memory 1005, and with based on ultrasonic wave Light on and off screen control device in communicate between other hardware and softwares.
In the light on and off screen control device based on ultrasonic wave shown in Fig. 5, the light on and off screen control program based on ultrasonic wave can Applied to the mobile terminal as transmitting terminal, processor 1001 be used for perform stored in memory 1005 based on the bright of ultrasonic wave Go out and shield control program, realize following steps:
Obtain strong corresponding to ultrasonic frequency constant interval and the frequency constant interval that ultrasonic wave recipient receives Spend change curve;
According to the frequency constant interval and corresponding intensity variation curve, the displacement curve of ultrasonic wave sender is determined;
According to the displacement curve, ultrasonic wave sender bright screen or the screen that goes out are controlled.
Further, it is described according to the displacement curve, control ultrasonic wave sender bright screen or the step of shielding of going out includes:
Multiple consecutive numbers strong points on displacement curve are obtained, each data value at the multiple consecutive numbers strong point is averaging Value;
New data value using the average value as multiple consecutive numbers strong points, and new displacement is formed according to the new data value Curve;
According to the new displacement curve, ultrasonic wave sender bright screen or the screen that goes out are controlled.
Further, multiple consecutive numbers strong points on the acquisition displacement curve, to each of the multiple consecutive numbers strong point The step of data value is averaged includes:
Determine the value interval at multiple consecutive numbers strong points and predetermined number on displacement curve;
Determine the initial data point at multiple consecutive numbers strong points according to the value interval, and according to the initial data point from Consecutive numbers strong point corresponding with predetermined number is obtained on displacement curve;
The consecutive numbers strong point is formed into data point combination, and data point combination is averaged.
Further, it is described according to the new displacement curve, control ultrasonic wave sender bright screen or the step of shielding of going out includes:
Judge whether the numerical value on new displacement curve is more than first threshold, when more than first threshold, control ultrasonic wave hair The side of sending carries out bright screen;
Judge whether the numerical value on new displacement curve is less than Second Threshold, when less than Second Threshold, control ultrasonic wave hair The side of sending carries out screen operation of going out, and wherein first threshold is more than Second Threshold.
Further, the frequency constant interval includes first interval and second interval, described to be changed according to the frequency Section and corresponding intensity variation curve, include the step of the displacement curve for determining ultrasonic wave sender:
According to first interval and intensity variation curve corresponding with the first interval, the first area is determined;
According to second interval and intensity variation curve corresponding with the second interval, second area is determined;
According to first area and second area, the displacement curve of ultrasonic wave sender is determined.
Further, it is described according to first area and second area, determine the displacement curve of ultrasonic wave sender Step includes:
Multiple differences of multiple first areas and second area are determined, and the multiple difference is formed into ultrasonic wave sender Displacement data group;
The displacement data group is formed into displacement curve.
Further, it is described to obtain ultrasonic frequency constant interval and the frequency change that ultrasonic wave recipient receives Corresponding to section the step of intensity variation curve before, processor 1001 be used for perform stored in memory 1005 based on ultrasound The light on and off screen control program of ripple, realizes following steps:
According to the default translational speed of ultrasonic wave sender, the ultrasonic frequency change that ultrasonic wave recipient receives is determined Section, and intensity variation curve corresponding with ultrasonic frequency constant interval.
Further, the default translational speed according to ultrasonic wave sender, determines what ultrasonic wave recipient received The step of ultrasonic frequency constant interval, includes:
According to the default translational speed of ultrasonic wave sender, determine that ultrasonic wave recipient receives the frequency change model of ultrasonic wave Enclose;
The base frequency that ultrasonic wave sender sends ultrasonic wave is obtained, and model is changed according to the base frequency and frequency Enclose, determine frequency constant interval.
Light on and off screen control device embodiment of the present invention based on ultrasonic wave and the above-mentioned light on and off screen based on ultrasonic wave Each embodiment of control method is essentially identical, will not be repeated here.
The invention provides a kind of computer-readable recording medium, the computer-readable recording medium storage have one or More than one program of person, one either more than one program can also by one or more than one computing device with In:
Obtain strong corresponding to ultrasonic frequency constant interval and the frequency constant interval that ultrasonic wave recipient receives Spend change curve;
According to the frequency constant interval and corresponding intensity variation curve, the displacement curve of ultrasonic wave sender is determined;
According to the displacement curve, ultrasonic wave sender bright screen or the screen that goes out are controlled.
Further, it is described according to the displacement curve, control ultrasonic wave sender bright screen or the step of shielding of going out includes:
Multiple consecutive numbers strong points on displacement curve are obtained, each data value at the multiple consecutive numbers strong point is averaging Value;
New data value using the average value as multiple consecutive numbers strong points, and new displacement is formed according to the new data value Curve;
According to the new displacement curve, ultrasonic wave sender bright screen or the screen that goes out are controlled.
Further, multiple consecutive numbers strong points on the acquisition displacement curve, to each of the multiple consecutive numbers strong point The step of data value is averaged includes:
Determine the value interval at multiple consecutive numbers strong points and predetermined number on displacement curve;
Determine the initial data point at multiple consecutive numbers strong points according to the value interval, and according to the initial data point from Consecutive numbers strong point corresponding with predetermined number is obtained on displacement curve;
The consecutive numbers strong point is formed into data point combination, and data point combination is averaged.
Further, it is described according to the new displacement curve, control ultrasonic wave sender bright screen or the step of shielding of going out includes:
Judge whether the numerical value on new displacement curve is more than first threshold, when more than first threshold, control ultrasonic wave hair The side of sending carries out bright screen;
Judge whether the numerical value on new displacement curve is less than Second Threshold, when less than Second Threshold, control ultrasonic wave hair The side of sending carries out screen operation of going out, and wherein first threshold is more than Second Threshold.
Further, the frequency constant interval includes first interval and second interval, described to be changed according to the frequency Section and corresponding intensity variation curve, include the step of the displacement curve for determining ultrasonic wave sender:
According to first interval and intensity variation curve corresponding with the first interval, the first area is determined;
According to second interval and intensity variation curve corresponding with the second interval, second area is determined;
According to first area and second area, the displacement curve of ultrasonic wave sender is determined.
Further, it is described according to first area and second area, determine the displacement curve of ultrasonic wave sender Step includes:
Multiple differences of multiple first areas and second area are determined, and the multiple difference is formed into ultrasonic wave sender Displacement data group;
The displacement data group is formed into displacement curve.
Further, it is described to obtain ultrasonic frequency constant interval and the frequency change that ultrasonic wave recipient receives Corresponding to section the step of intensity variation curve before, one either more than one program can also by one or one with On computing device for:
According to the default translational speed of ultrasonic wave sender, the ultrasonic frequency change that ultrasonic wave recipient receives is determined Section, and intensity variation curve corresponding with ultrasonic frequency constant interval.
Further, the default translational speed according to ultrasonic wave sender, determines what ultrasonic wave recipient received The step of ultrasonic frequency constant interval, includes:
According to the default translational speed of ultrasonic wave sender, determine that ultrasonic wave recipient receives the frequency change model of ultrasonic wave Enclose;
The base frequency that ultrasonic wave sender sends ultrasonic wave is obtained, and model is changed according to the base frequency and frequency Enclose, determine frequency constant interval.
Computer-readable recording medium embodiment of the present invention and the above-mentioned light on and off screen control method based on ultrasonic wave Each embodiment is essentially identical, will not be repeated here.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
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 is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, these are belonged within the protection of the present invention.

Claims (10)

1. a kind of light on and off screen control method based on ultrasonic wave, it is characterised in that the ultrasonic wave method of sampling includes following step Suddenly:
Intensity corresponding to obtaining ultrasonic frequency constant interval and the frequency constant interval that ultrasonic wave recipient receives becomes Change curve;
According to the frequency constant interval and corresponding intensity variation curve, the displacement curve of ultrasonic wave sender is determined;
According to the displacement curve, ultrasonic wave sender bright screen or the screen that goes out are controlled.
2. the light on and off screen control method based on ultrasonic wave as claimed in claim 1, it is characterised in that described according to the displacement Curve, controls ultrasonic wave sender bright screen or the step of shielding of going out includes:
Multiple consecutive numbers strong points on displacement curve are obtained, each data value at the multiple consecutive numbers strong point is averaged;
New data value using the average value as multiple consecutive numbers strong points, and new displacement song is formed according to the new data value Line;
According to the new displacement curve, ultrasonic wave sender bright screen or the screen that goes out are controlled.
3. the light on and off screen control method based on ultrasonic wave as claimed in claim 2, it is characterised in that the acquisition displacement curve Upper multiple consecutive numbers strong points, the step of being averaged to each data value at the multiple consecutive numbers strong point, include:
Determine the value interval at multiple consecutive numbers strong points and predetermined number on displacement curve;
Determine the initial data point at multiple consecutive numbers strong points according to the value interval, and according to the initial data point from displacement Consecutive numbers strong point corresponding with predetermined number is obtained on curve;
The consecutive numbers strong point is formed into data point combination, and data point combination is averaged.
4. the light on and off screen control method based on ultrasonic wave as claimed in claim 2, it is characterised in that described according to the new position Curve is moved, ultrasonic wave sender bright screen is controlled or the step of shielding of going out includes:
Judge whether the numerical value on new displacement curve is more than first threshold, when more than first threshold, control ultrasonic wave sender Carry out bright screen;
Judge whether the numerical value on new displacement curve is less than Second Threshold, when less than Second Threshold, control ultrasonic wave sender Screen operation of going out is carried out, wherein first threshold is more than Second Threshold.
5. the light on and off screen control method based on ultrasonic wave as claimed in claim 1, it is characterised in that the frequency constant interval It is described according to the frequency constant interval and corresponding intensity variation curve including first interval and second interval, it is determined that ultrasonic The step of displacement curve of ripple sender, includes:
According to first interval and intensity variation curve corresponding with the first interval, the first area is determined;
According to second interval and intensity variation curve corresponding with the second interval, second area is determined;
According to first area and second area, the displacement curve of ultrasonic wave sender is determined.
6. the light on and off screen control method based on ultrasonic wave as claimed in claim 5, it is characterised in that described according to described first Area and second area, include the step of the displacement curve for determining ultrasonic wave sender:
Multiple differences of multiple first areas and second area are determined, and the multiple difference is formed to the position of ultrasonic wave sender Move data group;
The displacement data group is formed into displacement curve.
7. the light on and off screen control method based on ultrasonic wave as described in claim any one of 1-6, it is characterised in that the acquisition Intensity variation curve corresponding to the ultrasonic frequency constant interval and the frequency constant interval that ultrasonic wave recipient receives Include before step:
According to the default translational speed of ultrasonic wave sender, the ultrasonic frequency variation zone that ultrasonic wave recipient receives is determined Between, and intensity variation curve corresponding with ultrasonic frequency constant interval.
8. the light on and off screen control method based on ultrasonic wave as claimed in claim 7, it is characterised in that described to be sent out according to ultrasonic wave The default translational speed for the side of sending, the step of determining the ultrasonic frequency constant interval that ultrasonic wave recipient receives, include:
According to the default translational speed of ultrasonic wave sender, determine that ultrasonic wave recipient receives the frequency range of ultrasonic wave;
Obtain the base frequency that ultrasonic wave sender sends ultrasonic wave, and according to the base frequency and frequency range, Determine frequency constant interval.
A kind of 9. light on and off screen control device based on ultrasonic wave, it is characterised in that the light on and off screen control dress based on ultrasonic wave Put including:Memory, processor, communication bus and the control journey of the light on and off screen based on ultrasonic wave being stored on the memory Sequence:
The communication bus is used to realize the connection communication between processor and memory;
The processor is used to perform the light on and off screen control program based on ultrasonic wave, to realize as appointed in claim 1-8 The step of light on and off screen control method based on ultrasonic wave described in one.
10. a kind of readable storage medium storing program for executing, it is characterised in that be stored with the computer-readable recording medium based on ultrasonic wave Light on and off screen control program, such as claim 1-8 is realized when the light on and off screen control program based on ultrasonic wave is executed by processor Any one of the light on and off screen control method based on ultrasonic wave the step of.
CN201710777820.5A 2017-08-31 2017-08-31 Ultrasonic wave-based on-off screen control method and device and readable storage medium Active CN107544803B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710777820.5A CN107544803B (en) 2017-08-31 2017-08-31 Ultrasonic wave-based on-off screen control method and device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710777820.5A CN107544803B (en) 2017-08-31 2017-08-31 Ultrasonic wave-based on-off screen control method and device and readable storage medium

Publications (2)

Publication Number Publication Date
CN107544803A true CN107544803A (en) 2018-01-05
CN107544803B CN107544803B (en) 2020-08-21

Family

ID=60958738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710777820.5A Active CN107544803B (en) 2017-08-31 2017-08-31 Ultrasonic wave-based on-off screen control method and device and readable storage medium

Country Status (1)

Country Link
CN (1) CN107544803B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218538A (en) * 2018-11-29 2019-01-15 努比亚技术有限公司 Mobile terminal screen control method, mobile terminal and computer readable storage medium
CN110380792A (en) * 2019-07-01 2019-10-25 Oppo广东移动通信有限公司 Control method, mobile terminal and the computer storage medium of screen state

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436345A (en) * 2011-10-31 2012-05-02 广州市动景计算机科技有限公司 Method for interface operation and control of mobile device and implement device
JP2012117964A (en) * 2010-12-02 2012-06-21 Kogakuin Univ Ultrasonic wave measurement system
CN104935749A (en) * 2015-06-23 2015-09-23 惠州Tcl移动通信有限公司 Mobile terminal and method for turning off screen during calling through microphone
CN105046880A (en) * 2015-05-28 2015-11-11 西安交通大学 Method of intelligent mobile terminal for carrying out danger monitoring and early warning based on Doppler effect
US20160062488A1 (en) * 2014-09-01 2016-03-03 Memsic, Inc. Three-dimensional air mouse and display used together therewith
CN105391853A (en) * 2015-10-15 2016-03-09 广东欧珀移动通信有限公司 Voice call control method and voice call control device
CN106933366A (en) * 2017-03-23 2017-07-07 北京小米移动软件有限公司 Bright screen method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012117964A (en) * 2010-12-02 2012-06-21 Kogakuin Univ Ultrasonic wave measurement system
CN102436345A (en) * 2011-10-31 2012-05-02 广州市动景计算机科技有限公司 Method for interface operation and control of mobile device and implement device
US20160062488A1 (en) * 2014-09-01 2016-03-03 Memsic, Inc. Three-dimensional air mouse and display used together therewith
CN105046880A (en) * 2015-05-28 2015-11-11 西安交通大学 Method of intelligent mobile terminal for carrying out danger monitoring and early warning based on Doppler effect
CN104935749A (en) * 2015-06-23 2015-09-23 惠州Tcl移动通信有限公司 Mobile terminal and method for turning off screen during calling through microphone
CN105391853A (en) * 2015-10-15 2016-03-09 广东欧珀移动通信有限公司 Voice call control method and voice call control device
CN106933366A (en) * 2017-03-23 2017-07-07 北京小米移动软件有限公司 Bright screen method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218538A (en) * 2018-11-29 2019-01-15 努比亚技术有限公司 Mobile terminal screen control method, mobile terminal and computer readable storage medium
CN110380792A (en) * 2019-07-01 2019-10-25 Oppo广东移动通信有限公司 Control method, mobile terminal and the computer storage medium of screen state

Also Published As

Publication number Publication date
CN107544803B (en) 2020-08-21

Similar Documents

Publication Publication Date Title
CN107402387A (en) Movement tendency based on ultrasonic wave determines method, apparatus and readable storage medium storing program for executing
CN107463481A (en) Data interactive method, mobile terminal and storage medium
CN107566635A (en) Screen intensity method to set up, mobile terminal and computer-readable recording medium
CN107844763A (en) A kind of face identification method, mobile terminal and computer-readable recording medium
CN108566479A (en) screen state control method, mobile terminal and computer readable storage medium
CN108055411A (en) Flexible screen display methods, mobile terminal and computer readable storage medium
CN107517494A (en) A kind of display methods of terminal battery electricity quantity, terminal and computer-readable recording medium
CN107682627A (en) A kind of acquisition parameters method to set up, mobile terminal and computer-readable recording medium
CN108345426A (en) A kind of terminal control method, terminal and computer readable storage medium
CN107181700A (en) Control method, mobile terminal and the storage medium of application program for mobile terminal
CN108055412A (en) Control method, mobile terminal and the computer readable storage medium of mobile terminal
CN108172161A (en) Display methods, mobile terminal and computer readable storage medium based on flexible screen
CN107613128A (en) A kind of volume adjusting method, terminal and computer-readable recording medium
CN108184023A (en) screen state control method, mobile terminal and computer readable storage medium
CN107463324A (en) A kind of image display method, mobile terminal and computer-readable recording medium
CN107181865A (en) Processing method, terminal and the computer-readable recording medium of unread short messages
CN107506163A (en) Adjust method, terminal and the computer-readable recording medium of screen display
CN107967056A (en) Control method, terminal and the computer-readable recording medium of flexible screen
CN107390856A (en) A kind of method, mobile terminal and storage medium for reducing mobile terminal power consumption
CN107423065A (en) Method, mobile terminal and the computer-readable recording medium that a kind of application is attended to anything else
CN107706981A (en) A kind of wireless charging method and wireless charging device
CN107613206A (en) A kind of image processing method, mobile terminal and computer-readable recording medium
CN107729104A (en) A kind of display methods, mobile terminal and computer-readable storage medium
CN109445945A (en) Memory allocation method, mobile terminal, server and the storage medium of application program
CN107544803A (en) Light on and off screen control method, device and readable storage medium storing program for executing based on ultrasonic wave

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