CN108566479B - Screen state control method, mobile terminal and computer readable storage medium - Google Patents

Screen state control method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN108566479B
CN108566479B CN201711498617.0A CN201711498617A CN108566479B CN 108566479 B CN108566479 B CN 108566479B CN 201711498617 A CN201711498617 A CN 201711498617A CN 108566479 B CN108566479 B CN 108566479B
Authority
CN
China
Prior art keywords
mobile terminal
ultrasonic
ultrasonic signal
amplitude
frequency
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.)
Active
Application number
CN201711498617.0A
Other languages
Chinese (zh)
Other versions
CN108566479A (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 CN201711498617.0A priority Critical patent/CN108566479B/en
Publication of CN108566479A publication Critical patent/CN108566479A/en
Application granted granted Critical
Publication of CN108566479B publication Critical patent/CN108566479B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B11/00Transmission systems employing sonic, ultrasonic or infrasonic waves

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a screen state control method, a mobile terminal and a computer readable storage medium, wherein the method comprises the following steps: when the mobile terminal is in a call state and an ultrasonic signal is sent by an ultrasonic sending device of the mobile terminal, an ultrasonic receiving device of the mobile terminal receives an ultrasonic signal returned by the ultrasonic signal after encountering an obstacle; acquiring an attribute value of the ultrasonic signal in the transmission process, and calculating the amplitude change rate and the Doppler effect area difference in the transmission process of the ultrasonic signal according to the attribute value; and controlling the state of the screen of the mobile terminal according to the amplitude change rate and the Doppler effect area difference. According to the invention, the moving terminal far away from and approaching to the barrier is detected through the amplitude change rate and the Doppler effect area difference, so that the problem of inaccurate screen state control of the moving terminal when the moving terminal shakes is avoided, the accuracy of detecting the moving terminal far away from and approaching to the barrier is improved, and the accuracy of screen state control of the moving terminal is improved.

Description

Screen state control method, mobile terminal and computer readable storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a screen state control method, a mobile terminal, and a computer-readable storage medium.
Background
When a certain user communicates with other users through the mobile terminal, the screen of the mobile terminal is changed from bright to dark when the mobile terminal is close to the ears of the user, and the screen of the mobile terminal is changed from dark to bright when the mobile terminal is far away from the ears of the user. Therefore, when a user brings the mobile terminal close to the ear and communicates with a user of another terminal, the screen of the mobile terminal is in a screen-off state. However, in the process of a call, a user shakes the mobile terminal, so that the mobile terminal shakes, the mobile terminal is away from the user at a moment and approaches the user at a moment, and a screen of the mobile terminal is on and off at a moment. Therefore, due to the fact that the mobile terminal is in a shaking state, the method for detecting the moving distance and approaching obstacles of the mobile terminal is low in accuracy, and accordingly screen state control of the mobile terminal is inaccurate.
Disclosure of Invention
The invention mainly aims to provide a screen state control method, a mobile terminal and a computer readable storage medium, aiming at solving the technical problem that the screen state control of the mobile terminal is inaccurate due to the low accuracy of detecting the moving away and approaching of the mobile terminal to an obstacle caused by the shaking condition of the mobile terminal in the prior art.
In order to achieve the above object, the present invention provides a screen state control method, including:
when the mobile terminal is in a call state and an ultrasonic signal is sent by an ultrasonic sending device of the mobile terminal, an ultrasonic receiving device of the mobile terminal receives the ultrasonic signal returned by the ultrasonic signal after encountering an obstacle;
acquiring an attribute value of the ultrasonic signal in a transmission process, and calculating an amplitude change rate and a Doppler effect area difference in the transmission process of the ultrasonic signal according to the attribute value;
and controlling the state of the screen of the mobile terminal according to the amplitude change rate and the Doppler effect area difference.
Optionally, the step of controlling the state of the screen of the mobile terminal according to the amplitude change rate and the doppler effect area difference comprises:
determining the movement trend of the mobile terminal relative to an obstacle according to the amplitude change rate and the Doppler effect difference value;
if the mobile terminal approaches the barrier, controlling the screen of the mobile terminal to be in a screen-off state;
and if the mobile terminal is far away from the barrier, controlling the screen of the mobile terminal to be in a bright screen state.
Optionally, the step of determining the movement trend of the mobile terminal relative to the obstacle according to the amplitude change rate and the doppler effect difference value includes:
if the amplitude change rate is greater than a first amplitude threshold value and/or the Doppler effect area difference is greater than a first area difference threshold value, determining that the mobile terminal approaches the obstacle;
if the Doppler effect area difference is smaller than a second area difference threshold value, detecting whether the amplitude change rate is smaller than a second amplitude threshold value within a preset time length;
if the amplitude change rate is smaller than the second amplitude threshold, determining that the mobile terminal is far away from the obstacle, wherein the first amplitude threshold is larger than the second amplitude threshold, and the first area difference threshold is larger than the second area difference threshold.
Optionally, the step of obtaining an attribute value of the ultrasonic signal in the transmission process, and calculating an amplitude change rate of the ultrasonic signal in the transmission process according to the attribute value includes:
acquiring a sending amplitude of the ultrasonic signal sent by the ultrasonic sending device and a receiving amplitude of the ultrasonic signal received by the ultrasonic receiving device;
calculating an amplitude difference between the transmit amplitude and the receive amplitude;
and calculating the amplitude change rate of the ultrasonic signal according to the amplitude difference obtained by calculation at different time points.
Optionally, the step of obtaining an attribute value of the ultrasonic signal in the transmission process, and calculating a doppler effect area difference in the transmission process of the ultrasonic signal according to the attribute value includes:
acquiring the transmission frequency of the ultrasonic signal transmitted by the ultrasonic transmitting device and the frequency variation range of the ultrasonic signal received by the ultrasonic receiving device;
determining a frequency change interval according to the transmission frequency and the receiving frequency change range;
and calculating the Doppler effect area difference of the ultrasonic signals according to the frequency change interval and the intensity change curve corresponding to the frequency change interval.
Optionally, before the step of acquiring the transmission frequency of the ultrasonic signal transmitted by the ultrasonic transmitting device and the frequency variation range of the ultrasonic signal received by the ultrasonic receiving device, the method further includes:
and determining the frequency variation range of the ultrasonic signal received by the ultrasonic receiving device according to the preset movement speed of the mobile terminal relative to the obstacle.
Optionally, the preset movement speed includes a minimum movement speed and a maximum movement speed, and the step of determining a frequency variation range of the ultrasonic signal received by the ultrasonic receiving device according to the preset movement speed of the mobile terminal relative to the obstacle includes:
determining a lower limit value of the frequency variation range of the ultrasonic signal received by the ultrasonic receiving device according to the minimum movement speed and the sending frequency;
and determining the upper limit value of the frequency variation range of the ultrasonic signal received by the ultrasonic receiving device according to the maximum movement speed and the sending frequency.
Optionally, the ultrasonic wave transmitting device is a receiver of the mobile terminal, and the ultrasonic wave receiving device is a microphone of the mobile terminal.
In addition, to achieve the above object, the present invention also provides a mobile terminal including a memory, a processor, and a screen state control program stored on the memory and executable on the processor, the screen state control program implementing the steps of the screen state control method as described above when executed by the processor.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a screen state control program which, when executed by a processor, implements the steps of the screen state control method as described above.
According to the invention, when the mobile terminal is in a call state and an ultrasonic signal is sent by an ultrasonic sending device of the mobile terminal, an ultrasonic receiving device of the mobile terminal receives the ultrasonic signal returned by the ultrasonic signal after encountering an obstacle; acquiring an attribute value of the ultrasonic signal in a transmission process, and calculating an amplitude change rate and a Doppler effect area difference in the transmission process of the ultrasonic signal according to the attribute value; and controlling the state of the screen of the mobile terminal according to the amplitude change rate and the Doppler effect area difference. In the process of ultrasonic signal transmission, because the change of the amplitude change rate lags behind the change of the Doppler effect area difference, the state of the screen of the mobile terminal is controlled by detecting the distance and the approach of the mobile terminal to the barrier through the amplitude change rate and the Doppler effect area difference, so that the problem of inaccurate control of the state of the screen of the mobile terminal when the mobile terminal shakes is solved, the accuracy of detecting the distance and the approach of the mobile terminal to the barrier is improved, and the accuracy of controlling the state of the screen of the mobile terminal is improved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention;
fig. 2 is a diagram of a communication network system architecture according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a screen state control method according to a preferred embodiment of the present invention;
FIG. 4 is a schematic diagram of a mobile terminal transmitting an ultrasonic signal via an earpiece and receiving an ultrasonic signal via a microphone in an embodiment of the invention;
fig. 5 is a schematic flow chart illustrating a process of controlling a state of the mobile terminal screen according to the amplitude change rate and the doppler effect area difference in the embodiment of the present invention;
FIG. 6 is a diagram illustrating a mobile terminal approaching and moving away from an obstacle according to an embodiment of the present invention;
fig. 7 is a schematic flow chart illustrating a process of acquiring attribute values of the ultrasonic signal during transmission and calculating a doppler effect area difference of the ultrasonic signal during transmission according to the attribute values in the embodiment of the present invention;
fig. 8 is a schematic diagram of calculating the first area and the second area according to the embodiment of the present invention.
The implementation, functional features and advantages of the present invention will be described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert voice data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (voice data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and can process such sound into voice data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as voice data, a phonebook, etc.) created according to the use of the cellular phone, etc. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
Further, in the mobile terminal 100 shown in fig. 1, the processor 110 is configured to call the screen state control program stored in the memory 109, and perform the following operations:
when the mobile terminal 100 is in a call state and an ultrasonic signal is sent by an ultrasonic sending device of the mobile terminal 100, an ultrasonic receiving device of the mobile terminal 100 receives an ultrasonic signal returned by the ultrasonic signal after encountering an obstacle;
acquiring an attribute value of the ultrasonic signal in a transmission process, and calculating an amplitude change rate and a Doppler effect area difference in the transmission process of the ultrasonic signal according to the attribute value;
and controlling the state of the screen of the mobile terminal 100 according to the amplitude change rate and the Doppler effect area difference.
Further, the step of controlling the state of the screen of the mobile terminal 100 according to the amplitude change rate and the doppler effect area difference includes:
determining a movement trend of the mobile terminal 100 relative to an obstacle according to the amplitude change rate and the Doppler effect difference value;
if the mobile terminal 100 approaches the obstacle, controlling the screen of the mobile terminal 100 to be in a screen-off state;
and if the mobile terminal 100 is far away from the obstacle, controlling the screen of the mobile terminal 100 to be in a bright screen state.
Further, the step of determining the movement trend of the mobile terminal 100 relative to the obstacle according to the amplitude change rate and the doppler effect difference value comprises:
if the amplitude change rate is greater than a first amplitude threshold value and/or the doppler effect area difference is greater than a first area difference threshold value, determining that the mobile terminal 100 approaches the obstacle;
if the Doppler effect area difference is smaller than a second area difference threshold value, detecting whether the amplitude change rate is smaller than a second amplitude threshold value within a preset time length;
if the amplitude change rate is smaller than the second amplitude threshold, determining that the mobile terminal 100 is far away from the obstacle, where the first amplitude threshold is larger than the second amplitude threshold, and the first area difference threshold is larger than the second area difference threshold.
Further, the step of acquiring an attribute value of the ultrasonic signal in the transmission process and calculating an amplitude change rate of the ultrasonic signal in the transmission process according to the attribute value includes:
acquiring a sending amplitude of the ultrasonic signal sent by the ultrasonic sending device and a receiving amplitude of the ultrasonic signal received by the ultrasonic receiving device;
calculating an amplitude difference between the transmit amplitude and the receive amplitude;
and calculating the amplitude change rate of the ultrasonic signal according to the amplitude difference obtained by calculation at different time points.
Further, the step of obtaining the attribute value of the ultrasonic signal in the transmission process and calculating the doppler effect area difference in the transmission process of the ultrasonic signal according to the attribute value includes:
acquiring the transmission frequency of the ultrasonic signal transmitted by the ultrasonic transmitting device and the frequency variation range of the ultrasonic signal received by the ultrasonic receiving device;
determining a frequency change interval according to the transmission frequency and the receiving frequency change range;
and calculating the Doppler effect area difference of the ultrasonic signals according to the frequency change interval and the intensity change curve corresponding to the frequency change interval.
Further, before the step of acquiring the transmission frequency of the ultrasonic signal transmitted by the ultrasonic transmitting device and the frequency variation range of the ultrasonic signal received by the ultrasonic receiving device, the processor 110 is further configured to call the screen state control program stored in the memory 109, and perform the following operations:
determining a frequency variation range of the ultrasonic signal received by the ultrasonic receiving device according to a preset movement speed of the mobile terminal 100 relative to the obstacle.
Further, the preset movement speed includes a minimum movement speed and a maximum movement speed, and the step of determining the frequency variation range of the ultrasonic signal received by the ultrasonic receiving device according to the preset movement speed of the mobile terminal 100 relative to the obstacle includes:
determining a lower limit value of the frequency variation range of the ultrasonic signal received by the ultrasonic receiving device according to the minimum movement speed and the sending frequency;
and determining the upper limit value of the frequency variation range of the ultrasonic signal received by the ultrasonic receiving device according to the maximum movement speed and the sending frequency.
Further, the ultrasonic wave transmitting device is an earphone of the mobile terminal 100, and the ultrasonic wave receiving device is a microphone of the mobile terminal 100.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the mobile terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above terminal hardware structure and communication network system, various embodiments of the screen state control method of the present invention are proposed.
The invention provides a screen state control method.
Referring to fig. 3, fig. 3 is a flowchart illustrating a screen status control method according to a first embodiment of the present invention.
In the present embodiment, an embodiment of a screen state control method is provided, and it should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that here.
In this embodiment, the screen state control method may be optionally applied to the mobile terminal, and the screen state control method includes:
and step S10, when the mobile terminal is in a call state and the ultrasonic wave signal is sent by the ultrasonic wave sending device of the mobile terminal, the ultrasonic wave signal returned after the ultrasonic wave signal meets the obstacle is received by the ultrasonic wave receiving device of the mobile terminal.
When the mobile terminal is in a call state, the mobile terminal sends an ultrasonic signal through the ultrasonic sending device. When the mobile terminal and the obstacle move relatively, the ultrasonic signal sent by the mobile terminal returns after meeting the obstacle and is received by the ultrasonic receiving device of the mobile terminal. The ultrasonic signal is a sound wave with a frequency greater than 20KHz (kilohertz), so that the frequency of the ultrasonic signal transmitted by the ultrasonic transmitting device is correspondingly a certain frequency greater than 20KHz, such as 40 KHz.
Furthermore, the ultrasonic wave transmitting device is a receiver of the mobile terminal, and the ultrasonic wave receiving device is a microphone of the mobile terminal.
Further, the ultrasonic wave transmitting device is a receiver of the mobile terminal, the ultrasonic wave receiving device is a microphone of the mobile terminal, that is, the ultrasonic wave transmitting device is integrated in the receiver of the mobile terminal, and the ultrasonic wave receiving device is integrated in the microphone of the mobile terminal. Specifically, referring to fig. 4, the mobile terminal transmits an ultrasonic signal through an earpiece, and receives an ultrasonic signal returned after the ultrasonic signal encounters an obstacle through a microphone. Specifically, the receiver converts the current signal with changing intensity into a sound signal, and sends an ultrasonic signal to the outside while restoring the transmitted sound, and the microphone converts the received sound signal into the current signal with changing intensity and transmits the current signal, and also receives the ultrasonic signal sent by the receiver. If the mobile terminal is provided with a main microphone and an auxiliary microphone, the main microphone can be set to be used for receiving sound signals during conversation, and the auxiliary microphone can be set to be used for receiving ultrasonic signals, so that mutual interference of the signals is avoided. In other embodiments, the ultrasonic wave transmitting device and the ultrasonic wave receiving device may be separately provided in the mobile terminal.
In the present embodiment, the mobile terminal functions as both the ultrasonic wave transmitting device and the ultrasonic wave receiving device. During the process of the ultrasonic wave transmitting device moving relative to the obstacle, the mobile terminal moves relative to the obstacle, so that the ultrasonic wave receiving device also moves relative to the obstacle. According to the doppler effect, when the mobile terminal moves relative to the obstacle, if the mobile terminal and the obstacle are close to each other, the ultrasonic signal is compressed, the wavelength of the ultrasonic signal becomes shorter, the frequency becomes higher, and a blue shift phenomenon is generated; if the mobile terminal and the obstacle are far away from each other, the opposite effect is generated, the wavelength of the ultrasonic wave signal becomes longer, and the frequency becomes lower, i.e., the red shift phenomenon is generated. It should be noted that the higher the speed of the relative movement between the mobile terminal and the obstacle, the greater the blue shift or red shift effect.
Step S20, obtaining the attribute value of the ultrasonic signal in the transmission process, and calculating the amplitude change rate and Doppler effect area difference in the transmission process of the ultrasonic signal according to the attribute value.
After the mobile terminal receives the ultrasonic signal through the ultrasonic receiving device, the mobile terminal obtains the attribute value of the ultrasonic signal in the transmission process, and calculates the amplitude change rate and the Doppler effect area difference of the ultrasonic signal in the transmission process according to the obtained attribute value. The attribute values include, but are not limited to, a transmission frequency, a transmission amplitude, and a transmission time of the ultrasonic signal transmitted by the ultrasonic transmitting device, and a frequency variation range, a reception amplitude, and a reception time of the ultrasonic signal received by the ultrasonic receiving device.
And step S30, controlling the state of the screen of the mobile terminal according to the amplitude change rate and the Doppler effect area difference.
After the mobile terminal calculates the amplitude change rate and the Doppler effect area difference in the ultrasonic signal transmission process, the mobile terminal controls the state of the screen according to the amplitude change rate and the Doppler effect area difference.
Further, referring to fig. 5, step S30 includes:
and step S31, determining the movement trend of the mobile terminal relative to the obstacle according to the amplitude change rate and the Doppler effect difference value.
And step S32, if the mobile terminal approaches the obstacle, controlling the screen of the mobile terminal to be in a screen-off state.
And step S33, if the mobile terminal is far away from the obstacle, controlling the screen of the mobile terminal to be in a bright screen state.
Further, the step of the mobile terminal controlling the state of the screen thereof according to the amplitude change rate and the doppler effect area difference comprises: and the mobile terminal determines the movement trend of the mobile terminal relative to the obstacle according to the amplitude change rate and the Doppler effect difference value. The mobile terminal moves towards the obstacle, namely the mobile terminal approaches the obstacle; the mobile terminal moves far relative to the barrier, namely the mobile terminal moves far away from the barrier; the mobile terminal is in an invariant state relative to the obstacle, i.e. the mobile terminal does not move relative to the obstacle and is in a stationary state. If the mobile terminal is determined to approach the barrier, the mobile terminal controls the screen to be in a screen-off state; if the mobile terminal is determined to be far away from the barrier, the mobile terminal controls the screen of the mobile terminal to be in a bright screen state; and if the mobile terminal is determined to be in the unchanged state relative to the barrier, the mobile terminal controls the state of the screen to be consistent with the state corresponding to the previous motion trend. If the last movement trend of the mobile terminal is approaching to the barrier, the mobile terminal controls the screen to be in a screen-off state; and if the last movement trend is far away from the barrier, the mobile terminal controls the screen to be in a bright screen state. Specifically, the process of the mobile terminal moving away from and approaching an obstacle may refer to fig. 6.
Further, the step of obtaining an attribute value of the ultrasonic signal in the transmission process and calculating the amplitude change rate of the ultrasonic signal in the transmission process according to the attribute value comprises:
step a, acquiring the sending amplitude of the ultrasonic signal sent by the ultrasonic sending device and the receiving amplitude of the ultrasonic signal received by the ultrasonic receiving device.
And b, calculating the amplitude difference between the transmitting amplitude and the receiving amplitude.
And c, calculating the amplitude change rate of the ultrasonic signal according to the amplitude difference calculated at different time points.
Further, the mobile terminal obtains an attribute value of the ultrasonic signal in the transmission process, and the process of calculating the amplitude change rate in the transmission process of the ultrasonic signal according to the attribute value is as follows: the mobile terminal obtains the sending amplitude of the ultrasonic signal sent by the ultrasonic sending device and the receiving amplitude of the received ultrasonic signal, and calculates the amplitude difference between the sending amplitude and the receiving amplitude. It can be understood that, in the relative movement process of the mobile terminal and the obstacle, the mobile terminal calculates the amplitude difference corresponding to different time points, so as to obtain a plurality of amplitude differences, and the amplitude change rate of the ultrasonic signal can be calculated through the amplitude differences. After obtaining the plurality of amplitude differences, the mobile terminal can select a preset number of amplitude differences from the calculated amplitude differences to calculate the amplitude change rate in the process of calculating the amplitude change rate. The preset number can be set according to specific needs, and is not limited herein. It should be noted that, when the mobile terminal transmits the ultrasonic signal through the ultrasonic transmitting device and receives the ultrasonic signal through the ultrasonic receiving device, the mobile terminal records the transmission amplitude of the transmitted ultrasonic signal and the reception amplitude of the received ultrasonic signal.
In the embodiment, when the mobile terminal is in a call state and an ultrasonic signal is sent by an ultrasonic sending device of the mobile terminal, an ultrasonic receiving device of the mobile terminal receives the ultrasonic signal returned by the ultrasonic signal after encountering an obstacle; acquiring an attribute value of the ultrasonic signal in the transmission process, and calculating the amplitude change rate and the Doppler effect area difference in the transmission process of the ultrasonic signal according to the attribute value; and controlling the state of the screen of the mobile terminal according to the amplitude change rate and the Doppler effect area difference. In the process of ultrasonic signal transmission, because the change of the amplitude change rate lags behind the change of the Doppler effect area difference, the state of the screen of the mobile terminal is controlled by detecting the distance and the approach of the mobile terminal to the barrier through the amplitude change rate and the Doppler effect area difference, so that the problem of inaccurate control of the state of the screen of the mobile terminal when the mobile terminal shakes is solved, the accuracy of detecting the distance and the approach of the mobile terminal to the barrier is improved, and the accuracy of controlling the state of the screen of the mobile terminal is improved.
Further, a second embodiment of the screen status control method of the present invention is proposed based on the first embodiment. The second embodiment of the screen state control method is different from the first embodiment of the screen state control method in that the step S31 includes:
and d, if the amplitude change rate is greater than the first amplitude threshold value and/or the Doppler effect area difference is greater than the first area difference threshold value, determining that the mobile terminal approaches the obstacle.
And e, if the Doppler effect area difference is smaller than a second area difference threshold value, detecting whether the amplitude change rate in the preset time length is smaller than a second amplitude threshold value.
And f, if the amplitude change rate is smaller than a second amplitude threshold value, determining that the mobile terminal is far away from the obstacle, wherein the first amplitude threshold value is larger than the second amplitude threshold value, and the first area difference threshold value is larger than the second area difference threshold value.
The process that the mobile terminal determines the movement trend relative to the obstacle according to the amplitude change rate and the Doppler effect difference value comprises the following steps: and the mobile terminal judges the magnitude relation between the amplitude change rate and the first amplitude threshold value and the second amplitude threshold value, and judges the magnitude relation between the Doppler effect area difference and the first area difference threshold value and the second area difference threshold value. Wherein the first amplitude threshold is greater than the second amplitude threshold, and the first area difference threshold is greater than the second area difference threshold. The first amplitude threshold, the second amplitude threshold, the first area difference threshold, and the second area difference threshold may be set according to specific situations, and are not limited herein.
If the amplitude change rate is larger than the first amplitude change rate and/or the Doppler effect area difference is larger than the first area difference threshold value, the mobile terminal determines that the mobile terminal approaches the obstacle; if the Doppler effect area difference is smaller than the second area difference threshold value, the mobile terminal detects whether the amplitude change rate in the preset duration is smaller than the second amplitude threshold value. And if the amplitude change rate in the preset time is smaller than the second amplitude threshold, the mobile terminal determines that the mobile terminal is far away from the obstacle. The preset duration is a preset parameter. When the amplitude change rate is detected to be smaller than the second amplitude threshold after the preset time, at this time, it cannot be determined that the mobile terminal is far away from the obstacle.
Except for the above-mentioned case, other cases are determined that the mobile terminal is in an unchanged state with respect to the obstacle. If the amplitude change rate is smaller than the first amplitude threshold value and larger than the second amplitude threshold value, or the Doppler effect area difference is smaller than the first area difference threshold value and larger than the second area threshold value, the mobile terminal determines that the mobile terminal is in an unchanged state relative to the obstacle.
In the embodiment, the motion trend of the mobile terminal relative to the obstacle is determined according to the magnitude relation between the amplitude change rate and the first amplitude threshold and the second amplitude threshold, and the magnitude relation between the doppler effect area difference and the first area difference threshold and the second area difference threshold, so that the problem that the judgment accuracy of the motion trend of the mobile terminal relative to the obstacle is not high due to the fact that the mobile terminal shakes is solved.
Further, a third embodiment of the screen status control method of the present invention is presented. The third embodiment of the screen status control method is different from the first or second embodiment of the screen status control method in that, referring to fig. 7, the step of acquiring the attribute value of the ultrasonic signal during transmission, and calculating the doppler effect area difference during transmission of the ultrasonic signal based on the attribute value includes:
in step S21, the transmission frequency of the ultrasonic signal transmitted by the ultrasonic transmission device and the frequency variation range of the ultrasonic signal received by the ultrasonic reception device are acquired.
The mobile terminal determines the transmission frequency of the ultrasonic signal transmitted by its ultrasonic transmission device and the frequency variation range of the ultrasonic signal received by the ultrasonic reception device. In this embodiment, the variation range of the moving speed when most users use the mobile terminal, such as 0.2-20 m/s (meters per second) or 0.085-17 m/s, can be determined through a finite number of tests, that is, the speed range is the speed when most users use the mobile terminal. According to the variation range of the motion speed, the frequency variation range can be determined by the Doppler effect, and in the Doppler effect, the relation between the speed and the frequency is as follows:
Figure BDA0001534076650000161
where f is the frequency of the ultrasonic signal received by the ultrasonic receiving device, f0Is the transmission frequency of the ultrasonic signal transmitted by the ultrasonic transmitting device, c is the propagation speed of the ultrasonic signal in the air, 340m/s (meters per second), Δ v is the speed of the obstacle relative to the ultrasonic sound source, i.e., the speed when the user uses the mobile terminal; thereby changing the frequency
Figure BDA0001534076650000162
When the sending frequency of the ultrasonic signal is 40KHz and the speed of the obstacle relative to the ultrasonic sound source is changed between 0.085 m/s and 17m/s, the frequency change range is 10Hz to 20 KHz. According to the sending frequency of the ultrasonic signal and the speed of most users using the mobile terminal, the corresponding frequency change range is determined, and the requirements of most users can be met.
It can be understood that, the movement of the mobile terminal relative to the obstacle in this embodiment is substantially the process that the user picks up the mobile terminal to approach or leave the human body when using the mobile terminal, and considering that the speed of picking up the mobile terminal by the user varies within a certain range, the frequency variation of the ultrasonic signal received by the ultrasonic receiving device also correspondingly varies within a certain range, that is, the frequency variation range.
In step S22, a frequency change section is determined based on the transmission frequency and the reception frequency change range.
In the present embodiment, the areas involved in calculating the doppler effect area difference are referred to as a first area and a second area, respectively.
The frequency variation range of the ultrasonic signal includes an upper limit value and a lower limit value, and the increase and decrease of the transmission frequency depends on the difference of the relational expression between the transmission frequency and the frequency variation range.
The process of calculating the frequency change interval corresponding to the first area according to the transmission frequency and the frequency change range is as follows: and determining a frequency change interval according to a relational expression between the transmission frequency and the upper limit value and the lower limit value. Specifically, the section is a section in which the frequency of the ultrasonic signal received by the ultrasonic receiving device is greater than the transmission frequency. The relational expression is to sum the transmission frequency and the frequency variation range to increase the reception frequency. For example, when the transmission frequency is 40KHz, the frequency variation range is 10Hz to 20KHz, the upper limit value is 20KHz, the lower limit value is 10Hz, the relational expressions corresponding to the first areas are (40+20) KHz and (40+0.01) KHz, and the corresponding frequency variation intervals are (40+0.01) to (40+20) KHz.
The process of calculating the frequency change interval corresponding to the second area according to the transmission frequency and the frequency change range is as follows: and determining a frequency change interval according to a relational expression between the transmission frequency and the upper limit value and the lower limit value. Specifically, the section is a section in which the frequency of the ultrasonic signal received by the ultrasonic receiving device is smaller than the transmission frequency, and the relational expression corresponding to the second area is a relational expression in which the transmission frequency is different from the upper limit value and the lower limit value of the frequency variation range, and the reception frequency is reduced. If the transmission frequency is 40KHz, the frequency variation range is 10 Hz-20 KHz, the upper limit value is 20KHz, the lower limit value is 10Hz, the corresponding relational expressions of the second area are (40-20) KHz and (40-0.01) KHz, and the corresponding frequency variation interval is (40-20) KHz to (40-0.01) KHz.
In step S23, the doppler effect area difference of the ultrasonic signal is calculated from the frequency variation section and the intensity variation curve corresponding to the frequency variation section.
Referring to fig. 8, after the frequency change section corresponding to the calculation of the first area is determined, the intensity change curve corresponding to the frequency change section is determined. Wherein the intensity variation curve is recorded in the transmission process of the ultrasonic signal. After the intensity change curve is determined, the intensity value of the Y axis corresponding to the starting point and the ending point of the frequency change interval, the frequency change range on the X axis of the interval and the area of a closed area surrounded by the intensity change curve of the frequency change interval are used as first areas, and the size of the first area can be obtained by integrating the X axis through the intensity change curve according to the upper limit value and the lower limit value of the frequency change interval corresponding to the first area. It is understood that the process of calculating the second area is the same as the process of calculating the first area, and will not be described herein.
And after the first area and the second area are obtained, the mobile terminal subtracts the second area from the first area to obtain an area difference between the first area and the second area, and the area difference is recorded as a Doppler effect area difference of the ultrasonic wave.
According to the embodiment, the area difference generated by the Doppler effect corresponding to the ultrasonic signal is calculated in the relative movement process of the mobile terminal and the obstacle, so that the accuracy of detecting the distance and approach of the mobile terminal to the obstacle is improved through the area difference.
Further, a fourth embodiment of the screen status control method of the present invention is proposed based on the third embodiment. The fourth embodiment of the screen state control method is different from the third embodiment of the screen state control method in that the screen state control method further includes:
and g, determining the frequency variation range of the ultrasonic signal received by the ultrasonic receiving device according to the preset movement speed of the mobile terminal relative to the obstacle.
Due to the relative motion between the mobile terminal and the obstacle, the frequency of the ultrasonic signal received by the mobile terminal through the ultrasonic receiving device is different from the transmission frequency of the ultrasonic signal transmitted by the ultrasonic transmitting device, and the frequency change range is determined by the speed change range of the relative motion between the mobile terminal and the obstacle. It can be understood that the relative motion between the mobile terminal and the obstacle is essentially the relative motion between the mobile terminal and the trunk or head of the user when the user picks up the mobile terminal during the use of the mobile terminal. The speed of the user for picking up the mobile terminal is changed within a certain range, and the specific change range can determine the speed of most users for using the mobile terminal in a test mode. The speed meeting the requirements of most users is taken as the preset movement speed of the ultrasonic transmitting device, and the frequency change range of the ultrasonic receiving device for receiving the ultrasonic signals is determined according to the preset movement speed.
Further, the preset moving speed includes a minimum moving speed and a maximum moving speed, and step d includes:
step g1, according to the minimum movement speed and the transmission frequency, determining the lower limit value of the frequency variation range of the ultrasonic signal received by the ultrasonic receiving device.
Step g2, determining the upper limit value of the frequency variation range of the ultrasonic signal received by the ultrasonic receiving device according to the maximum movement speed and the transmitting frequency.
Further, considering that the speeds of different users using the mobile terminal are different, in the embodiment of the present invention, the used speed range may represent the speed of most users using the mobile terminal, that is, the preset moving speed is a speed range including the minimum moving speed and the maximum moving speed. Specifically, the lower limit value of the frequency variation range of the ultrasonic wave signal received by the ultrasonic wave receiving device can be determined according to the variation relationship between the frequency and the speed in the doppler effect, the minimum motion speed and the transmission frequency of the ultrasonic wave signal transmitted by the ultrasonic wave transmitting device; accordingly, the upper limit value of the frequency variation range of the ultrasonic wave signal received by the ultrasonic wave receiving device can be determined according to the maximum movement speed.
In the embodiment, the frequency change range of the ultrasonic wave receiving device for receiving the ultrasonic wave signal is determined according to the movement speed of the mobile terminal relative to the obstacle, and the first area and the second area are calculated according to the frequency change range, so that the finally obtained calculation result accords with the operation habit of a user for operating the mobile terminal, and the accuracy of detecting the approaching movement and the departing movement of the mobile terminal relative to the obstacle is further improved.
In addition, the embodiment of the invention also provides a computer readable storage medium.
The computer readable storage medium having stored thereon a screen state control program which when executed by a processor implements the steps of:
when the mobile terminal is in a call state and an ultrasonic signal is sent by an ultrasonic sending device of the mobile terminal, an ultrasonic receiving device of the mobile terminal receives the ultrasonic signal returned by the ultrasonic signal after encountering an obstacle;
acquiring an attribute value of the ultrasonic signal in a transmission process, and calculating an amplitude change rate and a Doppler effect area difference in the transmission process of the ultrasonic signal according to the attribute value;
and controlling the state of the screen of the mobile terminal according to the amplitude change rate and the Doppler effect area difference.
Further, the step of controlling the state of the screen of the mobile terminal according to the amplitude change rate and the doppler effect area difference comprises:
determining the movement trend of the mobile terminal relative to an obstacle according to the amplitude change rate and the Doppler effect difference value;
if the mobile terminal approaches the barrier, controlling the screen of the mobile terminal to be in a screen-off state;
and if the mobile terminal is far away from the barrier, controlling the screen of the mobile terminal to be in a bright screen state.
Further, the step of determining the movement trend of the mobile terminal relative to the obstacle according to the amplitude change rate and the doppler effect difference value comprises:
if the amplitude change rate is greater than a first amplitude threshold value and/or the Doppler effect area difference is greater than a first area difference threshold value, determining that the mobile terminal approaches the obstacle;
if the Doppler effect area difference is smaller than a second area difference threshold value, detecting whether the amplitude change rate is smaller than a second amplitude threshold value within a preset time length;
if the amplitude change rate is smaller than the second amplitude threshold, determining that the mobile terminal is far away from the obstacle, wherein the first amplitude threshold is larger than the second amplitude threshold, and the first area difference threshold is larger than the second area difference threshold.
Further, the step of acquiring an attribute value of the ultrasonic signal in the transmission process and calculating an amplitude change rate of the ultrasonic signal in the transmission process according to the attribute value includes:
acquiring a sending amplitude of the ultrasonic signal sent by the ultrasonic sending device and a receiving amplitude of the ultrasonic signal received by the ultrasonic receiving device;
determining a time difference between transmitting the ultrasonic signal and receiving the ultrasonic signal;
and calculating the amplitude change rate of the ultrasonic signal according to the sending amplitude, the receiving amplitude and the time difference.
Further, the step of obtaining the attribute value of the ultrasonic signal in the transmission process and calculating the doppler effect area difference in the transmission process of the ultrasonic signal according to the attribute value includes:
acquiring the transmission frequency of the ultrasonic signal transmitted by the ultrasonic transmitting device and the frequency variation range of the ultrasonic signal received by the ultrasonic receiving device;
determining a frequency change interval according to the transmission frequency and the receiving frequency change range;
and calculating the Doppler effect area difference of the ultrasonic signals according to the frequency change interval and the intensity change curve corresponding to the frequency change interval.
Further, before the step of acquiring the transmission frequency of the ultrasonic signal transmitted by the ultrasonic transmission device and the frequency variation range of the ultrasonic signal received by the ultrasonic reception device, the screen state control program when executed by a processor realizes the steps of:
and determining the frequency variation range of the ultrasonic signal received by the ultrasonic receiving device according to the preset movement speed of the mobile terminal relative to the obstacle.
Further, the preset movement speed includes a minimum movement speed and a maximum movement speed, and the step of determining the frequency variation range of the ultrasonic signal received by the ultrasonic receiving device according to the preset movement speed of the mobile terminal relative to the obstacle includes:
determining a lower limit value of the frequency variation range of the ultrasonic signal received by the ultrasonic receiving device according to the minimum movement speed and the sending frequency;
and determining the upper limit value of the frequency variation range of the ultrasonic signal received by the ultrasonic receiving device according to the maximum movement speed and the sending frequency.
Further, the ultrasonic wave transmitting device is a receiver of the mobile terminal, and the ultrasonic wave receiving device is a microphone of the mobile terminal.
The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the screen status control method described above, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (6)

1. A screen status control method, comprising:
when the mobile terminal is in a call state and an ultrasonic signal is sent by an ultrasonic sending device of the mobile terminal, an ultrasonic receiving device of the mobile terminal receives the ultrasonic signal returned by the ultrasonic signal after encountering an obstacle;
acquiring a sending amplitude of the ultrasonic signal sent by the ultrasonic sending device and a receiving amplitude of the ultrasonic signal received by the ultrasonic receiving device;
calculating an amplitude difference between the transmit amplitude and the receive amplitude;
calculating the amplitude change rate of the ultrasonic signal according to the amplitude difference calculated at different time points;
acquiring the transmission frequency of the ultrasonic signal transmitted by the ultrasonic transmitting device and the frequency variation range of the ultrasonic signal received by the ultrasonic receiving device;
respectively carrying out difference calculation on the sending frequency, the upper limit value and the lower limit value of the frequency variation range to obtain a second frequency variation range;
determining an intensity change curve corresponding to the first frequency change interval, and obtaining a first area through integrating the intensity change curve to an X axis according to an upper limit value and a lower limit value corresponding to the first frequency change interval;
determining an intensity change curve corresponding to the second frequency change interval, and obtaining a second area by integrating the intensity change curve to an X axis according to an upper limit value and a lower limit value corresponding to the second frequency change interval;
subtracting the second area from the first area to obtain a Doppler effect area difference;
if the amplitude change rate is greater than a first amplitude threshold value and/or the Doppler effect area difference is greater than a first area difference threshold value, determining that the mobile terminal approaches the obstacle;
if the Doppler effect area difference is smaller than a second area difference threshold value, detecting whether the amplitude change rate is smaller than a second amplitude threshold value within a preset time length;
if the amplitude change rate is smaller than the second amplitude threshold, determining that the mobile terminal is far away from the obstacle, wherein the first amplitude threshold is larger than the second amplitude threshold, and the first area difference threshold is larger than the second area difference threshold;
if the mobile terminal approaches the barrier, controlling the screen of the mobile terminal to be in a screen-off state;
and if the mobile terminal is far away from the barrier, controlling the screen of the mobile terminal to be in a bright screen state.
2. The screen status control method according to claim 1, wherein the step of acquiring the transmission frequency of the ultrasonic signal transmitted by the ultrasonic transmission device and the frequency variation range of the ultrasonic signal received by the ultrasonic reception device is preceded by:
and determining the frequency variation range of the ultrasonic signal received by the ultrasonic receiving device according to the preset movement speed of the mobile terminal relative to the obstacle.
3. The screen status control method according to claim 1, wherein the preset moving speed includes a minimum moving speed and a maximum moving speed, and the step of determining the frequency variation range of the ultrasonic signal received by the ultrasonic receiving device according to the preset moving speed of the mobile terminal with respect to the obstacle comprises:
determining a lower limit value of the frequency variation range of the ultrasonic signal received by the ultrasonic receiving device according to the minimum movement speed and the sending frequency;
and determining the upper limit value of the frequency variation range of the ultrasonic signal received by the ultrasonic receiving device according to the maximum movement speed and the sending frequency.
4. The screen status control method according to any one of claims 1 to 3, wherein the ultrasonic wave transmitting means is an earpiece of the mobile terminal, and the ultrasonic wave receiving means is a microphone of the mobile terminal.
5. A mobile terminal characterized in that it comprises a memory, a processor and a screen state control program stored on said memory and executable on said processor, said screen state control program, when executed by said processor, implementing the steps of the screen state control method according to any one of claims 1 to 4.
6. A computer-readable storage medium, having stored thereon a screen state control program which, when executed by a processor, implements the steps of the screen state control method of any one of claims 1 to 4.
CN201711498617.0A 2017-12-29 2017-12-29 Screen state control method, mobile terminal and computer readable storage medium Active CN108566479B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711498617.0A CN108566479B (en) 2017-12-29 2017-12-29 Screen state control method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711498617.0A CN108566479B (en) 2017-12-29 2017-12-29 Screen state control method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108566479A CN108566479A (en) 2018-09-21
CN108566479B true CN108566479B (en) 2021-03-26

Family

ID=63529638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711498617.0A Active CN108566479B (en) 2017-12-29 2017-12-29 Screen state control method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108566479B (en)

Families Citing this family (10)

* 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
CN109639863B (en) * 2018-12-29 2021-01-26 维沃移动通信有限公司 Voice processing method and device
CN110058243B (en) * 2019-04-28 2021-07-06 深圳市广懋创新科技有限公司 Terminal equipment
CN110290268A (en) * 2019-06-25 2019-09-27 Oppo广东移动通信有限公司 Control method, device, mobile terminal and the storage medium of screen state
CN110380792B (en) * 2019-07-01 2022-06-21 Oppo广东移动通信有限公司 Control method of screen state, mobile terminal and computer storage medium
CN110493459B (en) * 2019-07-31 2021-03-12 Oppo广东移动通信有限公司 Screen state control method and device, mobile terminal and storage medium
CN113517935B (en) * 2019-07-31 2023-01-06 Oppo广东移动通信有限公司 Ultrasonic calibration method and device, 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
CN110515085B (en) * 2019-07-31 2021-09-14 Oppo广东移动通信有限公司 Ultrasonic processing method, ultrasonic processing device, electronic device, and computer-readable medium
CN114513573A (en) * 2020-11-16 2022-05-17 深圳市万普拉斯科技有限公司 Screen control method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938820A (en) * 2012-12-03 2013-02-20 华为终端有限公司 Mobile phone proximity waking method and mobile phone proximity waking device
WO2014201574A1 (en) * 2013-06-21 2014-12-24 Hershkovitz, Shmuel Dual differential doppler motion detection

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201424334A (en) * 2012-12-03 2014-06-16 Fih Hong Kong Ltd Power adjustment system and method
KR20160004130A (en) * 2014-07-02 2016-01-12 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN106791218A (en) * 2017-03-31 2017-05-31 努比亚技术有限公司 A kind of screen control terminal and method
CN107402387A (en) * 2017-08-31 2017-11-28 努比亚技术有限公司 Movement tendency based on ultrasonic wave determines method, apparatus and readable storage medium storing program for executing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938820A (en) * 2012-12-03 2013-02-20 华为终端有限公司 Mobile phone proximity waking method and mobile phone proximity waking device
WO2014201574A1 (en) * 2013-06-21 2014-12-24 Hershkovitz, Shmuel Dual differential doppler motion detection

Also Published As

Publication number Publication date
CN108566479A (en) 2018-09-21

Similar Documents

Publication Publication Date Title
CN108566479B (en) Screen state control method, mobile terminal and computer readable storage medium
CN108196778B (en) Control method of screen state, mobile terminal and computer readable storage medium
CN108184023B (en) Screen state control method, mobile terminal and computer readable storage medium
CN108055412B (en) Method of controlling mobile terminal, and computer-readable storage medium
CN108234767B (en) Control method of screen state, mobile terminal and computer readable storage medium
CN109195213B (en) Mobile terminal screen control method, mobile terminal and computer readable storage medium
CN108038834B (en) Method, terminal and computer readable storage medium for reducing noise
CN110187808B (en) Dynamic wallpaper setting method and device and computer-readable storage medium
CN108226880B (en) Method and device for preventing interference in ultrasonic distance detection and storage medium
CN109491577B (en) Holding interaction method and device and computer readable storage medium
CN107424393B (en) Mobile terminal searching method, mobile terminal and storage medium
CN111443818B (en) Screen brightness regulation and control method, equipment and computer readable storage medium
CN109561221B (en) Call control method, device and computer readable storage medium
CN112604281A (en) Game visual field control method, mobile terminal and computer readable storage medium
CN109683778B (en) Flexible screen control method and device and computer readable storage medium
CN109462829B (en) Call transfer method, device and computer readable storage medium
CN109710168B (en) Screen touch method and device and computer readable storage medium
CN108876387B (en) Payment verification method, payment verification equipment and computer-readable storage medium
CN107734147B (en) Step recording method, mobile terminal and computer readable storage medium
CN107743204B (en) Exposure processing method, terminal, and computer-readable storage medium
CN107544803B (en) Ultrasonic wave-based on-off screen control method and device and readable storage medium
CN107256108B (en) Screen splitting method, device and computer readable storage medium
CN112015508B (en) Screen-throwing interaction control method, equipment and computer-readable storage medium
CN110275667B (en) Content display method, mobile terminal, and computer-readable storage medium
CN110287381B (en) Page control node searching method, terminal and computer readable storage medium

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