WO2017166128A1 - Method, device and mobile terminal for entering power saving mode, and method, device and mobile terminal for exiting power saving mode - Google Patents

Method, device and mobile terminal for entering power saving mode, and method, device and mobile terminal for exiting power saving mode Download PDF

Info

Publication number
WO2017166128A1
WO2017166128A1 PCT/CN2016/077878 CN2016077878W WO2017166128A1 WO 2017166128 A1 WO2017166128 A1 WO 2017166128A1 CN 2016077878 W CN2016077878 W CN 2016077878W WO 2017166128 A1 WO2017166128 A1 WO 2017166128A1
Authority
WO
WIPO (PCT)
Prior art keywords
acceleration
axis
mobile terminal
gravity sensor
detected
Prior art date
Application number
PCT/CN2016/077878
Other languages
French (fr)
Chinese (zh)
Inventor
钟光华
赵京
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2016/077878 priority Critical patent/WO2017166128A1/en
Priority to CN201680009170.3A priority patent/CN107438999B/en
Publication of WO2017166128A1 publication Critical patent/WO2017166128A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M19/00Current supply arrangements for telephone systems
    • H04M19/08Current supply arrangements for telephone systems with current supply sources at the substations
    • 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/725Cordless telephones
    • H04M1/73Battery saving arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of mobile communications, and in particular, to a method for entering a power saving mode, a method and device for exiting a power saving mode, and a mobile terminal.
  • Smartphones usually rely on batteries to provide power, and the size and capacity of the battery are limited by the overall size and weight of the smartphone, and cannot be made too large. How to reduce the power consumption of smart phones and extend the standby time of smart phones has become an important issue in the industry.
  • the prior art provides a power saving mode of a smart phone, in which some functions or hardware modules of the smart phone will be in a closed state, or the hardware module will be operated in a low power state, thereby Reduce the consumption of electricity.
  • a smartphone can enter a power saving mode. For example, the smart phone automatically enters the power saving mode during the power saving period, or the smart phone automatically enters the power saving mode when the remaining battery power is less than a certain threshold.
  • this type of mode of entering a power saving mode cannot be controlled by the user and lacks flexibility.
  • the prior art also provides a method manually selected by the user: the user can light up the screen of the smartphone, enter the standby interface, and find the corresponding user interface and select the option to enter the power saving mode, which requires the user multiple times. Operation is not convenient enough to use.
  • the prior art also provides a method of detecting the posture of a handheld electronic device using a gravity sensor and entering a power saving mode when the handheld electronic device is placed face down on the screen. However, the accuracy of the method needs to be improved.
  • Embodiments of the present invention provide a method for entering a power saving mode, a method for exiting a power saving mode, and a mobile terminal At the end, the misjudgment when the mobile terminal enters the power saving mode and exits the power saving mode is reduced, and the accuracy of the solution is improved. .
  • a first aspect of an embodiment of the present invention provides a method of entering a power saving mode, the method being applied to a mobile terminal having a screen and a gravity sensor, the mobile terminal being in a normal mode prior to performing the method.
  • the method includes: determining whether the mobile terminal is in a horizontally placed horizontally facing state; determining whether the noise of the acceleration detected by the gravity sensor is less than a noise threshold; if the mobile terminal is placed horizontally downward And the noise of the acceleration detected by the gravity sensor is less than the noise threshold, and the mobile terminal enters a power saving mode.
  • the solution can identify whether the user holds the terminal, and the user does not hold the In the case of the mobile terminal, the mobile terminal enters the power saving mode, thereby improving the accuracy of entering the power saving mode and reducing the misjudgment of the mobile terminal.
  • a first embodiment of the first aspect of the embodiments of the present invention provides a specific manner of determining whether a mobile terminal is placed horizontally downward.
  • the method includes: detecting, by the gravity sensor, an acceleration on an X-axis of a three-dimensional Cartesian coordinate system of the mobile terminal, an acceleration on a Y-axis of the three-dimensional Cartesian coordinate system, and a Z-axis on the three-dimensional Cartesian coordinate system Whether the acceleration is 0, 0, -9.8 m/s 2 respectively ; if so, it is determined that the mobile terminal is in a horizontally placed state facing down.
  • the method utilizes a gravity sensor to determine whether the mobile terminal is in a horizontally placed state facing downward, and the X axis can be judged in consideration of various errors in actual application, such as an object not being completely horizontal and a measurement accuracy of the gravity sensor.
  • the upper acceleration, the acceleration on the Y-axis, and the acceleration on the Z-axis are approximately 0, 0, -9.8 m/s 2 . Since the mobile terminal needs to judge the noise of the gravity sensor when entering the power saving mode, the gravity sensor is always kept open, so the solution does not need to use other sensors than the gravity sensor, and the implementation is simpler and the power consumption is lower.
  • a second embodiment of the first aspect of the embodiments of the present invention provides another specific manner of determining whether the mobile terminal is placed horizontally downward.
  • the method includes: detecting, by the gravity sensor, an acceleration on an X-axis of a three-dimensional Cartesian coordinate system of the mobile terminal, an acceleration on a Y-axis of the three-dimensional Cartesian coordinate system, and a Z-axis on the three-dimensional Cartesian coordinate system Whether the acceleration is 0, 0, -9.8 m/s 2 respectively ; if yes, determining whether the acceleration on the X axis, the acceleration on the Y axis, and the acceleration on the Z axis are respectively within the first duration It remains at 0, 0, -9.8 m/s 2 , and if so, it is determined that the mobile terminal is in a horizontally placed state facing down.
  • the acceleration is determined whether the acceleration has not changed within the first duration, which reduces the occurrence of erroneous operations, and improves the accuracy of entering the power saving mode. It also reduces the waste of power caused by frequent switching between the power saving mode and the normal mode.
  • a third embodiment of the first aspect of the embodiments of the present invention provides yet another specific manner of determining whether the mobile terminal is placed horizontally downward.
  • the method includes: determining whether the pressure detected by the plurality of pressure sensors distributed on the back of the mobile terminal is 0; detecting the acceleration on the X-axis of the three-dimensional Cartesian coordinate system of the mobile terminal and the three-dimensional using the gravity sensor Whether the acceleration on the Y-axis of the Cartesian coordinate system is 0 or 0 respectively; if the pressure detected by the plurality of pressure sensors is 0, and the acceleration of the X-axis and the acceleration on the Y-axis are 0 and 0, respectively, It is determined that the mobile terminal is in a horizontally placed state facing down.
  • the pressure sensor disposed on the back of the mobile terminal determines whether an object supports or presses the mobile terminal, and further determines whether the mobile terminal is in a horizontal posture by using the gravity sensor, fully utilizes various sensors of the mobile terminal, and improves power saving. The flexibility of the model.
  • a fourth embodiment of the first aspect of the embodiments of the present invention provides a further specific manner of determining whether the mobile terminal is placed horizontally downward.
  • the mobile terminal further includes an infrared sensor located on the front side of the mobile terminal.
  • the specific manner includes: determining whether the reflected energy detected by the infrared sensor is greater than an energy threshold; determining that the reflected wavelength detected by the infrared sensor corresponds to wood or glass; and detecting the three-dimensional right angle of the mobile terminal by using the gravity sensor Whether the acceleration on the X-axis of the coordinate system and the acceleration on the Y-axis of the three-dimensional Cartesian coordinate system are 0, 0 respectively; if the reflected energy is greater than the energy threshold, the reflected wavelength corresponds to wood or glass, And the acceleration on the X-axis and the acceleration on the Y-axis are 0, 0, respectively; determining that the mobile terminal is in a horizontally placed state facing downward.
  • the method first uses an infrared sensor on the same side of the screen as the screen to determine whether the front side of the screen is blocked, and the blocked object is a common desktop material such as wood or glass. If so, it can be judged that the mobile phone is facing down. In the manner of placing, the gravity sensor is further used to judge whether the mobile phone is horizontal, and the gravity sensor further determines whether the mobile terminal is in a horizontal posture. This method makes full use of various sensors of the mobile terminal, and improves the flexibility of entering the power saving mode.
  • the method can be combined with the first embodiment of the present aspect, that is, the gravity sensor first determines the acceleration in the X-axis direction, the acceleration in the Y-axis direction, and the acceleration in the Z-axis direction, respectively, and the acceleration is 0. 0, -9.8 m / s 2 , and further through the infrared sensor to determine whether the material on the front side of the screen is the common desktop material such as wood or glass, and if so, determine whether the mobile terminal is placed horizontally downward. At this time, the mobile terminal is likely to be placed on the desktop in a horizontally downward direction. This is generally the case where the user does not immediately use the mobile terminal. In this case, entering the power saving mode does not affect the user's experience.
  • a fifth implementation manner of the first aspect of the embodiments of the present invention provides a method for determining whether the noise of the acceleration detected by the gravity sensor is less than a noise threshold.
  • the specific manner includes: determining whether a maximum acceleration noise detected by the gravity sensor in the second duration is lower than the noise threshold, and if yes, determining that the acceleration of the acceleration detected by the gravity sensor is low At the noise threshold; or determining whether an average value of all acceleration noises detected by the gravity sensor during the second duration is lower than The noise threshold, if yes, determines that the noise of the acceleration detected by the gravity sensor is lower than the noise threshold.
  • the average value of all noises or noises in the second duration is considered, thereby reducing the occurrence of erroneous operations, improving the accuracy of entering the power saving mode, and reducing the power saving mode and normal. A waste of power caused by frequent switching between modes.
  • the value is given based on the actual measurement result, which is in line with the actual use, and can reduce the occurrence of false positives.
  • a seventh embodiment of the first aspect of the embodiments of the present invention provides a specific manner of entering a power saving mode.
  • the specific manner is that the function of maintaining the answering call is normal, and at least one of the following is included: if it is determined that the data is not currently downloaded from the mobile data network, the connection between the radio frequency circuit of the mobile terminal and the mobile data network is disconnected; Currently, the data is not downloaded from the mobile data network, and the radio frequency circuit connected to the mobile data network is closed; if it is determined that the WiFi module is not currently used to download data, the connection between the WiFi module and the access point is disconnected; The WiFi module downloads data and closes the WiFi module.
  • the embodiment ensures that the user can still answer the call when the mobile terminal enters the power saving mode, so as to avoid inconvenience to the user by missing some urgent things; at the same time, the process of downloading data from the mobile data network or downloading data from the WiFi module is considered.
  • the data download is interrupted because it enters the power saving mode.
  • the corresponding hardware module is turned off or the corresponding software function is disabled, thereby providing the user with a smarter that can better meet the user's needs. The way to save electricity.
  • the second aspect of the embodiments of the present invention further provides a method for exiting the power saving mode.
  • the method is applied to a mobile terminal having a screen and a gravity sensor, the mobile terminal being in a power saving mode prior to performing the method.
  • the method includes: determining whether the mobile terminal is in a horizontally placed state facing down; Determining whether the noise of the acceleration detected by the gravitational acceleration is less than a noise threshold; if the mobile terminal is not in a horizontally placed state facing downward, or the noise of the acceleration detected by the gravitational acceleration is greater than the noise a noise threshold, the mobile terminal exits the power saving mode.
  • the manner of exiting the power saving mode can recognize that the user picks up the mobile terminal in a direction facing downward, can reduce the false judgment of exiting the power saving mode, and improve the accuracy of exiting the power saving mode.
  • a first embodiment of the second aspect of the embodiments of the present invention provides a specific manner of determining whether the mobile terminal is placed in a horizontally downward direction. Similar to the first embodiment of the first aspect, only the gravity sensor is used. To judge the state of the mobile terminal has changed.
  • the determining whether the mobile terminal is in a horizontally placed state in a face-down manner comprises: detecting, by using the gravity sensor, an acceleration on an X-axis of a three-dimensional Cartesian coordinate system of the mobile terminal, and a Y-axis of the three-dimensional Cartesian coordinate system
  • the acceleration and the acceleration on the Z-axis of the three-dimensional Cartesian coordinate system are 0, 0, -9.8 m/s 2 respectively ; if not, it is determined that the mobile terminal is not in a horizontally placed state facing down.
  • the acceleration on the X-axis, the acceleration on the Y-axis, and the acceleration on the Z-axis are approximate. It is 0, 0, -9.8m/s 2 . Since the mobile terminal needs to judge the noise of the gravity sensor when entering the power saving mode, the gravity sensor is always kept open, so the solution does not need to use other sensors than the gravity sensor, and the implementation is simpler and the power consumption is lower.
  • a second embodiment of the second aspect of the embodiments of the present invention provides another specific manner of determining whether the mobile terminal is placed in a horizontally downward direction. Similar to the third embodiment of the first aspect, a gravity sensor is used. And the pressure sensor to determine the status of the phone.
  • the mobile terminal also includes a distribution a plurality of pressure sensors on the back of the mobile terminal; the determining whether the mobile terminal is in a horizontally placed downward facing state comprises: determining whether a pressure detected by the plurality of pressure sensors is 0; using the gravity sensor Detecting an acceleration on an X-axis of the three-dimensional Cartesian coordinate system of the mobile terminal and the
  • the second embodiment of the second aspect of the embodiment of the present invention makes full use of various sensors of the mobile terminal, and improves the flexibility of exiting the power saving mode.
  • a third embodiment of the second aspect of the embodiments of the present invention provides another specific manner of determining whether the mobile terminal is placed in a horizontally downward direction, similar to the fourth implementation manner of the first aspect of the embodiment of the present invention.
  • a gravity sensor and an infrared sensor are used to judge the state of the mobile terminal. Determining whether the mobile terminal is in a horizontally placed horizontal position, comprising: determining whether the reflected energy detected by the infrared sensor is greater than an energy threshold; and determining that the reflected wavelength detected by the infrared sensor corresponds to wood or glass; And if the reflected energy is less than the energy threshold, or the reflected wavelength does not correspond to wood or glass; determining that the mobile terminal is not in a horizontally placed state facing down.
  • This method makes full use of various sensors of the mobile terminal, and improves the flexibility of exiting the power saving mode.
  • the fourth implementation manner of the second aspect of the embodiment of the present invention provides a value range of a noise threshold value, which is related to the first aspect of the embodiment of the present invention.
  • the sixth embodiment provides the same scope and will not be repeated here.
  • a fifth implementation manner of the second aspect of the embodiments of the present invention provides a specific implementation of exiting the power saving mode.
  • the specific implementation includes: turning on at least a part of the hardware module and at least a part of the software that are closed when the mobile terminal enters the power saving mode.
  • the specific implementation requires the mobile terminal to record various hardware modules and/or software functions that are turned off when entering the power saving mode.
  • exiting the power saving mode that is, returning to the normal mode
  • the mobile terminal is turned on according to the recorded content, simplifying the user.
  • the operation does not require the user to manually turn on the various hardware modules and/or software functions that are turned off when entering the power saving mode.
  • a device for entering a power saving mode comprising a screen unit, a gravity sensor unit, a first determining unit, a second determining unit and a first control unit.
  • the apparatus is for performing the first aspect of the embodiments of the present invention, the first embodiment of the first aspect, and the method of the second embodiment of the first aspect.
  • the apparatus further comprises a plurality of pressure sensor units located on the back of the apparatus for performing the method of the third embodiment of the first aspect.
  • the apparatus further comprises an infrared sensor unit located on the front side of the apparatus for performing the method of the fourth embodiment of the first aspect.
  • the second determining unit of the apparatus is configured to perform the fifth implementation manner of the first aspect The specific way.
  • the fourth embodiment manner of the third aspect provides a range of noise threshold values, the range and the corresponding implementation of the first aspect and the second aspect
  • the scope provided by the method is the same and will not be repeated here.
  • the device further includes a radio frequency unit, and the first control unit is specifically configured to be used to maintain The function of answering the call operates normally, and if the current radio unit does not download data from the mobile data network, disconnect the radio unit from the mobile data network or turn off the radio unit.
  • the device further includes a WiFi unit, and the first control list is The element is specifically configured to keep the function of the answering call running normally, and perform the following operations: if it is determined that the WiFi module currently has download data, disconnect the WiFi module from the access point or turn off the WiFi module.
  • the device further includes a WiFi unit and a radio frequency unit, and the first control unit is configured to keep the function of answering the call running normally and perform at least one of the foregoing four operations.
  • an apparatus for exiting a power saving mode comprising: a screen unit, a gravity sensor unit, a third determining unit, a second determining unit and a second control unit.
  • the apparatus is for performing the method of the second aspect of the embodiments of the invention and the first embodiment of the second aspect.
  • the apparatus further comprises a plurality of pressure sensor units located on the back of the apparatus for performing the method of the second embodiment of the second aspect.
  • the apparatus further comprises an infrared sensor unit located on the front side of the apparatus for performing the method of the third embodiment of the second aspect.
  • the third embodiment manner of the fourth aspect provides a range of noise threshold values
  • the first aspect, the second aspect, and the third aspect Corresponding embodiments provide the same scope and are not repeated here.
  • the second control unit is specifically configured to enable at least part of the device to be turned off when the device enters the power saving mode.
  • a fifth aspect of the embodiments of the present invention provides a mobile terminal that enters a power saving mode, where the mobile terminal includes a screen, a gravity sensor, and a processor, where the mobile terminal is configured to perform the first aspect and the first aspect of the embodiments of the present invention.
  • a first embodiment and a method of the second embodiment of the first aspect are provided.
  • the mobile terminal further includes a plurality of pressure sensors distributed on the back of the mobile terminal, where the apparatus is configured to perform the third embodiment of the first aspect. method.
  • the mobile terminal further includes an infrared sensor located at a front side of the mobile terminal, where the mobile terminal is configured to perform the method of the fourth embodiment of the first aspect.
  • the processor is configured to perform the specific mode in the fifth embodiment of the first aspect.
  • the fourth embodiment manner of the fifth aspect provides a range of noise threshold values, the range and the range provided by the corresponding embodiments of the foregoing aspects The same, it will not be repeated here.
  • the device further includes: a radio frequency circuit, wherein the processor is specifically configured to keep answering the call The function operates normally and performs the following operations: if it is determined that the radio frequency circuit is not currently downloading data from the mobile data network, disconnecting the radio frequency circuit from the mobile data network or turning off the radio frequency circuit.
  • the device further includes a WiFi module, where the processor is specifically configured to keep the function of answering the call running normally, and perform the following operations: if it is determined that the WiFi module currently has download data, disconnect the WiFi module. Connecting to the access point or turning off the WiFi module.
  • the device further includes a WiFi module and a radio frequency circuit, wherein the processor is configured to keep the function of answering the call running normally, and perform at least one of the foregoing four operations.
  • the processor includes an application processor and a microcontroller, and the microprocessor executes the data detected by the various sensors to determine the state of the mobile terminal, and the application processor performs the shutdown module and disconnects. Connection, etc. Since it is generally determined that the state of the mobile terminal requires multiple or long-term judgments, and this portion is handed over to the microcontroller with relatively low power consumption, a more power-saving technical effect can be achieved.
  • a mobile terminal that exits the power saving mode is further provided, and the mobile terminal includes a screen, a gravity sensor, and a processor.
  • the apparatus is for performing the method of the second aspect of the embodiments of the invention and the first embodiment of the second aspect.
  • the apparatus further includes a plurality of pressure sensors located on the back of the apparatus for performing the method of the second embodiment of the second aspect.
  • the apparatus further includes an infrared sensor located at a front side of the mobile terminal, where the mobile terminal is configured to perform the method of the third embodiment of the second aspect.
  • the third embodiment of the sixth aspect provides a range of noise threshold values that are within the scope of the corresponding embodiments of the foregoing aspects. The same, it will not be repeated here.
  • the processor is specifically configured to enable at least a part of hardware that is turned off when the device enters a power saving mode.
  • Module and at least part of the software features are specifically configured to enable at least a part of hardware that is turned off when the device enters a power saving mode.
  • the processor includes an application processor and a microcontroller, and the microprocessor executes the data detected by the various sensors to determine the state of the mobile terminal, and the application processor executes the hold function module, and Start the module or function. Since it is generally determined that the state of the mobile terminal requires multiple or long-term judgments, and this portion is handed over to the microcontroller with relatively low power consumption, a more power-saving technical effect can be achieved.
  • a seventh aspect of the present invention provides a method for entering a power saving mode, comprising: detecting, by using the gravity sensor, an acceleration on an X axis of a three-dimensional Cartesian coordinate system of the mobile terminal, and a Y-axis of the three-dimensional Cartesian coordinate system Acceleration and acceleration on the Z-axis of the three-dimensional Cartesian coordinate system, and noise using the gravity sensor to detect acceleration; acceleration on the X-axis, acceleration on the Y-axis, on the Z-axis When the acceleration is approximately 0, 0, -9.8 m/s 2 and the noise of the acceleration is less than the noise threshold, the mobile terminal enters the power saving mode from the normal mode.
  • An eighth aspect of the present invention provides a method for entering a power saving mode, comprising: detecting, by using the gravity sensor, an acceleration on an X axis of a three-dimensional Cartesian coordinate system of the mobile terminal, and a Y-axis of the three-dimensional Cartesian coordinate system Acceleration and acceleration on the Z-axis of the three-dimensional Cartesian coordinate system, and noise using the gravity sensor to detect acceleration; acceleration on the X-axis, acceleration on the Y-axis, on the Z-axis When the acceleration is not 0, 0, -9.8 m/s 2 , or the noise of the acceleration is greater than the noise threshold, the mobile terminal enters the normal mode from the power saving mode.
  • the embodiment of the present invention provides a method, a device, and a mobile terminal for entering a power saving mode.
  • the mobile terminal enters the power saving mode, avoiding entering the power saving mode when the user holds the mobile terminal in a face-down manner. It reduces the misjudgment of the mobile terminal and improves the accuracy of entering the power saving mode.
  • the embodiment of the present invention further provides a method, a device and a mobile terminal for exiting the power saving mode.
  • the mobile terminal When it is determined that the mobile terminal is no longer placed horizontally in the front-down direction and is no longer stationary, or the mobile terminal is no longer stationary, the mobile terminal exits the province. Electrical mode. Therefore, the manner of exiting the power saving mode can recognize that the user picks up the mobile terminal in a direction facing downward, can reduce the false judgment of exiting the power saving mode, and improve the accuracy of exiting the power saving mode.
  • FIG. 1 is a schematic structural diagram of a mobile phone according to an embodiment of the present invention.
  • FIG. 2a is a schematic diagram of a mobile phone screen lying flat on a desktop according to an embodiment of the present invention
  • FIG. 2b is a schematic diagram of a mobile phone lying face down on a desktop according to an embodiment of the present invention
  • 3a is a schematic diagram of a mobile phone being picked up by a user's screen upward according to an embodiment of the present invention
  • FIG. 3b is a schematic diagram of the mobile phone being picked up by the user face down according to an embodiment of the present invention
  • FIG. 4 is a graph showing noise of an acceleration detected by a gravity sensor according to an embodiment of the present invention.
  • FIG. 5 is a graph showing noise of another acceleration detected by a gravity sensor according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of a method for entering a power saving mode according to an embodiment of the present invention.
  • FIG. 7 is a flowchart of a method for exiting a power saving mode according to an embodiment of the present invention.
  • FIG. 8 is a flowchart of another method for entering a power saving mode according to an embodiment of the present invention.
  • FIG. 9 is a flowchart of another method for exiting a power saving mode according to an embodiment of the present invention.
  • FIG. 10 is a flowchart of still another method for entering a power saving mode according to an embodiment of the present invention.
  • FIG. 11 is a flowchart of still another method for exiting a power saving mode according to an embodiment of the present invention.
  • FIG. 12 is a structural diagram of an apparatus for entering a power saving mode according to an embodiment of the present invention.
  • FIG. 13 is a structural diagram of an apparatus for exiting a power saving mode according to an embodiment of the present invention.
  • the mobile terminal may include a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), and the like, and the mobile terminal includes a screen, a gravity sensor, and the like.
  • a PDA Personal Digital Assistant
  • POS Point of Sales
  • the power saving mode in the embodiment of the present invention is also called a power saving state, a low power consumption mode, and the like.
  • the power consumption of the mobile terminal in the power saving mode is lower than that in the normal operation.
  • at least one action of reducing power consumption can be performed, for example, reducing the brightness of the screen, turning off the program running in the background, disconnecting the mobile data, and turning off the GPS (Global Positioning System) module.
  • the headset insertion detection function turn off the indicator light, stop the USB plug detection, disable the voice wake up mobile terminal function, replace the live wallpaper with a static wallpaper, change the screen display from color to black and white, and reduce interaction with the server.
  • the mobile terminal in the power saving mode, the mobile terminal still maintains some urgent functions or the functions selected by the user are not turned off, such as answering a call function.
  • the mobile terminal closes the corresponding RF circuit of the mobile data network or disconnects the mobile data. The connection corresponding to the network. If the mobile terminal does not use the WiFi module to download data before entering the power saving mode, in the power saving mode, the mobile terminal turns off the WiFi module.
  • the power saving mode can be divided into a general power saving mode and a super power saving mode, and more hardware modules are disabled in the super power saving mode than in the normal power saving mode, and more software functions are disabled, or Turn off more power-hungry hardware modules, disable more power-hungry software features, or hardware modules or software functions to work in a more power-efficient way to achieve more power savings than normal power-saving modes.
  • the hardware modules herein refer to the components of the various hardware shown in FIG. 1 below.
  • Software function means that the processor runs software code to instruct various functions performed by various hardware modules, including functions of various system applications running by the processor or functions of third-party applications, such as running programs in the background, and inserting headphones. , call reminder, USB plug detection, voice wake up terminal, live wallpaper and so on.
  • the normal mode in the embodiment of the present invention which is also called a normal state, a non-power saving mode, a non-power saving state, and the like, refers to a state in which the mobile terminal operates normally before entering the power saving mode, or a state in which the mobile terminal operates normally after exiting the power saving mode.
  • the mobile terminal exiting the power saving mode includes: at least a part of the hardware module that is closed when the mobile terminal is turned on in the power saving mode, and/or at least a part of the disabled software function when the power saving mode is entered, or the mobile terminal starts some Set and hardware modules and software functions, such as software functions and hardware modules that are activated at normal startup, or user-set software functions and hardware modules.
  • the mobile terminal In order to allow the mobile terminal to enter the power saving mode from the normal mode, there are multiple implementations.
  • One of the ways is that when the mobile terminal receives an instruction from the user to enter the power saving mode, the mobile terminal enters the power saving mode.
  • the user There are various ways for the user to issue the command, such as voice commands, tap operations, touch operations, shaking mobile terminals, and the like.
  • Another way is to enter the power saving mode when the mobile terminal detects that some conditions are met, for example, the mobile terminal detects that the remaining power is less than a certain threshold, or detects that the power saving time period currently set by the user, or combines
  • the state in which the user holds the mobile terminal and the current usage state of the mobile terminal determines that the mobile terminal is currently idle (the implementation manner thereof may refer to the Chinese application CN201210112165.9).
  • the mobile terminal in order to let the mobile terminal enter the normal mode from the power saving mode, there are also multiple implementation manners.
  • One of the ways is that when the mobile terminal receives an instruction from the user to enter the power saving mode, the mobile terminal enters the power saving mode.
  • the user There are various ways for the user to issue the command, such as voice commands, tap operations, touch operations, shaking mobile terminals, and the like.
  • the power saving mode is exited, for example, the mobile terminal detects that the remaining power is greater than a certain threshold, or detects a time period that is currently outside the power saving time period set by the user, or combines The state in which the user holds the mobile terminal and the current usage state of the mobile terminal determines that the mobile terminal is currently used by the user (the implementation manner thereof may refer to the Chinese application CN201210112165.9).
  • a solution for allowing the handheld electronic device to enter the power saving mode and exit the power saving mode is also provided.
  • the solution detects the acceleration on the X-axis, the acceleration on the Y-axis, and the acceleration on the Z-axis through the gravity sensor of the handheld electronic device, and determines whether the acceleration on the three axes falls within a preset range, and if so, the hand-held
  • the electronic device enters a power saving mode, and if not, the handheld electronic device returns to a normal operating mode.
  • the solution does not consider the case where the handheld electronic device is held by the user.
  • the handheld electronic device When the user holds the handheld electronic device and the handheld electronic device maintains a horizontal posture facing downward, according to the solution, the handheld electronic device enters the power saving manner. Mode, however, since the user is holding the handheld electronic device at this time, it usually means that the user still wants to use the handheld electronic device at this time. If the power saving mode is entered, it is easy for the user to use some functions that are turned off because of entering the power saving mode. Thereby affecting the normal use of the handheld electronic device by the user. On the other hand, the solution does not return to the normal operation mode when the handheld electronic device is picked up by the user in a horizontally facing downward posture, and when the user picks up the handheld electronic device, the user usually wants to use it. The handheld electronic device, therefore, also causes a misjudgment of exiting the power saving mode, thereby affecting the user experience.
  • a function of quickly entering/entering the power saving mode is provided, where “/” indicates “or”, and the fast entry/exit power saving mode function combines the power saving mode and the power saving mode.
  • the function enables the user to conveniently enter the power saving mode and exit the power saving mode by changing the placement mode of the mobile terminal, and the accuracy is relatively high.
  • the situation that the mobile terminal still enters the power saving mode when the mobile terminal is held by the user does not occur, thereby reducing the misjudgment of entering the power saving mode and improving the accuracy of entering the power saving mode.
  • the state of the mobile terminal changes and is no longer in the state of the stationary object placed horizontally downward, for example, picked up by the user or turned into vertical
  • the mobile terminal enters the normal state without the user's operation.
  • the way of exiting the power saving mode can recognize that the user picks up the mobile terminal in a direction facing downward, can reduce the false judgment of exiting the power saving mode, and improve the accuracy of exiting the power saving mode.
  • the mobile terminal can perform normal work with reference to the prior art.
  • One implementation manner is to add an option or button of the function of quickly entering or leaving the power saving mode to the power management interface or the shortcut function menu in the mobile terminal, and the user selects to turn on and off.
  • Another implementation manner is that a certain hardware button or button in the mobile terminal is associated with the function of the fast entry/exit power saving mode, and the user can implement the function of the fast entry/exit power saving mode by operating the hardware button. Turn it on and off.
  • other functions such as a voice, a gesture, and the like are defined to implement the function of quickly entering/entering the power saving mode, which is not limited by the present invention.
  • the function of quickly entering the power saving mode and the function of quickly leaving the power saving mode can be separately selected and controlled by the user as two independent options. If the user only enables the function of quickly entering the power saving mode without turning on the function of quickly exiting the power saving mode, the mobile terminal only supports changing the placement mode of the mobile terminal, so that the mobile terminal can conveniently enter the power saving mode without supporting the change of the mobile terminal. The way the terminal is placed allows the mobile terminal to conveniently exit the power saving mode. The reverse is also similar, and will not be repeated here.
  • the first duration and the second duration in the embodiment of the present invention may be the same or different, and the present invention does not limit this.
  • the first duration is used to determine whether the mobile terminal is in a horizontally placed, face down orientation. If the accelerations detected by the gravitational acceleration sensor on the X axis, the Y axis, and the Z axis are respectively maintained at 0, 0, -9.8 m/s 2 for the first duration, it is determined that the mobile terminal is face down The state of the horizontal placement.
  • the second duration is used to determine if the mobile terminal is placed on a stationary object. If the noise detected by the gravitational acceleration sensor is below the noise threshold for the second duration, it is determined that the mobile terminal is placed on a stationary object without being held by the user.
  • the energy threshold in the embodiment of the present invention is used to determine whether there is object coverage on the front side of the mobile terminal, and the energy threshold may be set to a value close to the energy emitted by the infrared sensor, for example, 90% of the energy emitted by the infrared sensor or 80%, etc., the invention is not limited thereto.
  • the pressure threshold value in the embodiment of the present invention is used for determining the force on the back side of the mobile terminal, and the pressure threshold value may be set to a value close to 0, such as 0.1 Newton or 0.05 Newton, etc., when the pressure detected by the pressure sensor Below the pressure threshold, there is no object contact on the back of the mobile terminal, and the pressure detected by the pressure sensor is higher than the pressure threshold, indicating that there is object contact on the back of the mobile terminal.
  • the mobile terminal is taken as an example for the mobile phone. It can be understood that the following embodiments are also applicable to other mobile terminals having a gravity sensor.
  • the mobile phone 100 includes an RF (Radio Frequency) circuit 110, a memory 120, an input unit 130, a display unit 140, a gravity sensor 150, a pressure sensor 151, an audio circuit 160, and a wireless fidelity (wireless fidelity).
  • Module 170, processor 180, and power supply 190 and the like are examples of the structure of the mobile phone shown in FIG. 1 :
  • the RF circuit 110 is configured to receive and transmit signals during the transmission or reception of information or during a call. Specifically, after receiving the downlink information of the base station, it is processed by the processor 180. In addition, the uplink data is designed to be sent to the base station.
  • RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like.
  • RF circuitry 110 can also communicate with the network and other devices via wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
  • the memory 120 is used to store software programs and modules, and the processor 180 executes various functional applications and data processing of the mobile phone 100 by running software programs and modules stored in the memory 120.
  • the memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored. Data created according to the use of the mobile phone 100 (such as audio data, phone book, etc.).
  • memory 120 can include high speed random access memory, and can 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 input unit 130 is configured to receive input numeric or character information, and generate a key signal input related to user settings and function control of the mobile phone 100.
  • the input unit 130 may include a touch panel 131 and other input devices 132.
  • a touch panel 131 also referred to as a touch screen, can collect users in it a touch operation on or near (such as a user using a finger or a stylus or the like on the touch panel 131 or in the vicinity of the touch panel 131), and driving the corresponding connection device according to a preset program .
  • the touch panel 131 includes two parts of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 180 is provided and can receive commands from the processor 180 and execute them.
  • the touch panel 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 130 may also include other input devices 132.
  • other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 140 is for displaying information input by the user or information provided to the user and various menus of the mobile phone 100.
  • the display unit 140 may include a display panel 141.
  • the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch panel 131 can cover the display panel 141. When the touch panel 131 detects a touch operation on or near the touch panel 131, the touch panel 131 transmits to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event. The type provides a corresponding visual output on display panel 141.
  • the touch panel 131 and the display panel 141 are used as two independent modules to implement the input and input functions of the mobile phone 100 in FIG. 1, in some embodiments, the touch panel 131 may be integrated with the display panel 141.
  • the input and output functions of the mobile phone 100 are implemented.
  • the screen of the embodiment of the present invention includes at least one of the touch panel 131 and the display panel 141.
  • the display panel 141 is configured to display an interface for setting a function of the fast entry/exit power saving mode
  • the touch panel 131 is configured to receive an instruction input by the user to enable the fast entry/exit power saving mode, and close the An instruction to quickly enter/leave the function of the power saving mode.
  • the mobile phone usually includes a front side, a back side and a side side.
  • the front and back of the phone are opposite, with four sides between the front and back.
  • the front side of the mobile phone generally includes a display panel 141, and optionally, a touch panel 131 and some buttons.
  • the back of the phone generally includes a camera, optional, and some manufacturers' logos. At least one of the following is generally provided on the side of the mobile phone: a volume button, a power button, a power port, a USB port, and a headphone jack. As shown in Figure 2a, the back of the phone touches the desktop, and the front and sides of the phone do not touch the desktop.
  • the front of the phone touches the desktop, and the back and sides of the phone do not touch the desktop.
  • the user holds the mobile phone, wherein the user's thumb touches the front of the mobile phone, and the user's index finger and middle finger touch the side and back of the mobile phone.
  • the following uses the same surface of the touch panel 131 and the display panel 141 on the mobile phone as an example.
  • the mobile phone is placed face down (as shown in FIGS. 2b and 3b), it also means This means that the mobile phone is placed with the touch panel 131 facing down and 141 also facing down.
  • the mobile phone is placed in a face-up manner (as shown in FIGS. 2a and 3a), it means that the mobile phone is also placed in such a manner that the touch panel 131 is upward and the display panel 141 is also upward.
  • the touch panel 131 and the display panel 141 can also be located on different faces of the mobile phone. In this case, the determination can be made based on the placement mode of the display panel 141.
  • the mobile phone 100 also includes a gravity sensor 150 that is capable of detecting the component of the gravitational acceleration in various directions (typically the three axes of the three-dimensional Cartesian coordinate system of the handset) for identifying the status of the handset.
  • a gravity sensor 150 that is capable of detecting the component of the gravitational acceleration in various directions (typically the three axes of the three-dimensional Cartesian coordinate system of the handset) for identifying the status of the handset.
  • the relationship between the three-dimensional Cartesian coordinate system and the mobile phone can be as shown in FIG. 2a (other coordinate systems can also be used, which is not limited in the embodiment of the present invention), wherein the mobile phone 100 faces up according to the touch panel 131 (or the display panel 141). The orientation is placed on the desktop 200 and the desktop 200 is horizontal.
  • the touch panel 131 will be described as an example.
  • the origin of the coordinate system is the geometric center of the mobile phone or the touch panel 13, the Z axis is perpendicular to the touch panel 131, and points to the direction other than the front side of the touch panel 131 (ie, the side on which the user performs the touch operation), the X axis and the Y axis.
  • the axis is in a horizontal plane, the X axis is parallel to the shorter side of the touch panel 131, and points to the right side as shown in the figure, the Y axis is parallel to the longer side of the touch panel 131, and is pointed as shown in the figure. Above.
  • the same three-dimensional Cartesian coordinate system is still used.
  • the accelerations on the X-axis and the Y-axis detected by the gravity sensor 150 are both 0, and the acceleration on the Z-axis detected by the gravity sensor 150 is approximately equal to the acceleration of gravity -9.8 m/s 2 . Therefore, by determining whether the acceleration on the Z-axis is negative, it can be determined whether the touch panel 131 is facing downward or not, and whether the acceleration of the X-axis and the Y-axis direction is 0 or not, whether the touch panel 131 is horizontal or not can be determined.
  • the acceleration in the X-axis and Y-axis directions is a small value close to 0 (for example, between -1 m / s 2 to 1 m / s 2 or other intervals) Specifically, it may be set by a user or set by experimental data to determine whether the touch panel 131 is substantially horizontal.
  • the gravity sensor 150 can also detect the noise of the acceleration, that is, the amount of change in the gravitational acceleration, for example: . It can be understood that the noise of the acceleration may also be other calculation manners, which is not limited by the embodiment of the present invention.
  • the time curve of the noise of the acceleration detected by the gravity sensor 150 is as shown in FIG.
  • the abscissa is milliseconds (ms) and the ordinate is g.
  • the detected acceleration noise is relatively small, generally less than 0.004 g.
  • the time curve of the noise of the acceleration detected by the gravity sensor 150 is as shown in FIG. 5, which is measured in the figure.
  • the value of the noise of the acceleration is generally greater than 0.1 g. This small noise is mainly caused by the influence of the user's pulse and minute jitter. It can be seen that the values of the noise of the accelerations in FIG. 4 and FIG. 5 are significantly different.
  • noise threshold By determining whether the noise of the acceleration detected by the gravity sensor 150 is less than a noise threshold, it can be determined whether the mobile phone 100 is placed on a stationary object. If the noise threshold is set small enough, such as 0.004g, it can be relatively accurately determined whether the mobile phone 100 is held by the user.
  • the noise threshold mentioned in the embodiment of the present invention may be set to other values in addition to 0.004 g. If the mobile phone is placed on a stationary desktop, the gravity sensor 150 can detect the acceleration noise as G1; the mobile phone is stably held by the user in the hand, and when the user is stationary, the gravity sensor 150 can detect the acceleration noise as G2; The user carries it in a pocket or a backpack, and when the user is exercising, such as walking, running, or riding a vehicle, the gravity 150 can detect the acceleration noise as G3. Since G3>G2>G1.
  • the noise threshold G0 can be greater than G1 and less than any value of G2, for example, setting G0 to any value between 0.0038 g and 0.01 g, such as 0.004 g, by comparing the noise of the acceleration detected by the gravity sensor with The noise threshold can determine that the mobile phone is placed on a stationary object, rather than being carried by a moving user in a pocket or backpack, or even held by a stationary user.
  • the mobile phone 100 further includes a pressure sensor 151 disposed on the back of the mobile phone 100 (i.e., without the touch panel 131 and the side of the display panel 141).
  • the pressure sensor is used to detect the pressure on the back of the mobile phone. For accurate measurement, it can be evenly distributed over the entire area of the back, or the back pressure sensor can be placed in a designated area on the back of the mobile phone according to the specific situation, such as the rear camera on the back. Near, around the four corners and around the four sides.
  • the pressure sensor 151 is uniformly distributed over the entire area of the back surface as an example. When the current state of the mobile phone is that the touch panel 131 (or the display panel 141) is placed on the object upward, the pressure sensor detects the location.
  • the force on the back of the phone is M1, the M1 is greater than 0, which is generally the gravity of the mobile phone itself; when the current state of the mobile phone is that the touch panel 131 (or the display panel 141) is placed down on the object, the pressure sensor detects the back of the mobile phone. When the current state of the mobile phone is the user's grip, the pressure sensor detects that the force on the back of the mobile terminal is M2, and M2 is generally greater than zero.
  • the handset 100 may also include other sensors, such as infrared sensors (not shown).
  • the infrared sensor is placed on the front of the phone.
  • the infrared sensor is used for detecting the reflected energy and wavelength. If the reflected energy is relatively large (greater than an energy threshold), the energy emitted by the infrared sensor is close to the front surface of the mobile phone 100, if the reflected energy is reflected. Very small (less than one energy threshold), indicating that there is no object obstruction on the front of the mobile phone 100.
  • the mobile phone 100 may further include a light sensor, which may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may move when the mobile phone 100 moves to the ear , the display panel 141 and/or the backlight are turned off.
  • a light sensor which may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may move when the mobile phone 100 moves to the ear , the display panel 141 and/or the backlight are turned off.
  • Other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and the like that can be configured in the mobile phone 100 will not be described herein.
  • the audio circuit 160, the speaker 161, and the microphone 162 provide an audio interface between the user and the handset 100.
  • the audio circuit 160 transmits the received audio signal converted by the audio data to the speaker 161, and is converted into a sound signal output by the speaker 161.
  • the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160. It is then converted to audio data, which is then output to RF circuitry 108 for transmission to, for example, another handset, or audio data is output to memory 120 for further processing.
  • WiFi is a short-range wireless transmission technology.
  • the mobile phone 100 transmits and receives emails, browses web pages, and accesses streaming media through the WiFi module 170, and provides wireless broadband Internet access for users.
  • FIG. 1 shows the WiFi module 170, it can be understood that it does not belong to the essential configuration of the mobile phone 100, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 180 is the control center of the handset 100, connecting various portions of the entire handset with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120, The various functions and processing data of the mobile phone 100 are executed to perform overall monitoring of the mobile phone.
  • the processor 180 may include one or more processing units; preferably, the processor 180 may integrate an application processor (AP) and a modem processor, and may further include a microcontroller (Microcontroller Unit, MCU), wherein the application processor mainly processes an operating system, a user interface, an application, etc., the modem processor mainly processes wireless communication, and the microcontroller can share some work of the application processor. It can be understood that the above modem processor may not be integrated into the processor 180.
  • AP application processor
  • MCU microcontroller Unit
  • the processor 180 determines whether the mobile phone 100 is placed in a substantially horizontal manner in the downward direction of the touch panel 131, and includes any one of the following: (1) The processor 180 determines whether the accelerations on the X-axis, the Y-axis, and the Z-axis are respectively 0. 0, -9.8m/s 2 , if yes, it can be determined that the mobile phone 100 is placed in a substantially horizontal direction according to the downward direction of the touch panel 131; (2) the processor 180 determines the reflected energy and the reflected wavelength detected by the infrared sensor.
  • the processor 180 determines whether the pressure detected by the pressure sensor 151 on the back of the mobile phone 100 is close to 0. If yes, it is determined that the acceleration of the X-axis and the Y-axis is 0 according to the downward direction of the touch panel 131. If yes, it can be determined that the mobile phone 100 is in accordance with the touch panel 131. A substantially horizontal direction is placed on the desktop.
  • the processor 180 can determine whether the mobile phone 100 is placed on a stationary object by the magnitude of the noise of the acceleration. Only when the processor 180 determines that the mobile phone 100 is placed on a stationary object in a substantially horizontal direction in the downward direction of the touch panel 131, the processor 180 controls the mobile phone to enter a power saving mode, for example, turning off the GPS module, disabling the earphone insertion detection function, and turning off Reminder of the indicator light, stop the detection of USB plug and play, close some of the multiple processing units in the processor, and so on. In this case, at this time, the user generally does not want to use the mobile phone, or does not rush to use the mobile phone to receive and reply to the message, so entering the power saving mode does not affect the user's use.
  • a power saving mode for example, turning off the GPS module, disabling the earphone insertion detection function, and turning off Reminder of the indicator light, stop the detection of USB plug and play, close some of the multiple processing units in the processor, and so on.
  • the processor 180 controls the mobile phone to exit the power saving mode, thereby recovering. Go to normal mode.
  • the mobile phone 100 also includes a power source 190 (such as a battery) that supplies power to the various modules.
  • a power source 190 such as a battery
  • the power source can be logically coupled to the processor 180 through a power management system to manage functions such as charging, discharging, and power consumption through the power management system.
  • the mobile phone 100 may further include a camera, a Bluetooth module, and the like, and details are not described herein.
  • the user is using the mobile phone as shown in FIG. 1 , the mobile phone is in a normal state, the touch panel 131 receives a plurality of instructions from the user, and the processor 180 respectively starts the navigation application, the web browser, the photo application, and the instant according to multiple instructions of the user. Communication software, and the GPS module is turned on and the music file is downloaded using the WiFi module.
  • the touch panel 131 then receives an instruction from the user to return to the main interface, and the processor 180 controls the display panel 141 to display the main interface instead of displaying the interfaces of the various applications that were previously opened, since the user does not close the applications, the processor 180 still running these apps in the background.
  • the touch panel 131 receives the operation of opening the power management interface of the user, the display panel 141 displays the power management interface, the touch panel 131 receives the user's selection operation, and the processor 180 starts the quick entry according to the selection operation.
  • the user enters the conference room with the mobile phone, and the stationary horizontal table 200 is placed in the conference room.
  • the user places the mobile phone on the horizontal desktop according to the touch panel 131 shown in FIG. 2a.
  • the processor 180 determines that the acceleration on the Z axis detected by the gravity sensor 150 is positive, the processor 180 maintains the application opened by the user in the background, and continues to download the music file using the WiFi module (assuming that the music file is downloaded at this time) undone).
  • the processor 180 determines the Z-axis detected by the gravity sensor 150. If the acceleration is positive, the processor 180 still maintains various applications opened by the user in the background, and keeps the GPS module open, and continues to use the WiFi module to download music files (assuming that the music file download is not completed at this time).
  • the processor 180 When the user flips the mobile phone, that is, according to the horizontal touch of the mobile phone touch panel 131 as shown in FIG. 3b, the processor 180 first determines that the acceleration on the Z-axis detected by the gravity sensor 150 is negative. And substantially -9.8 m/s 2 , then the processor 180 continues to determine that the acceleration on the X-axis detected by the gravity sensor 150 and the acceleration on the Y-axis are substantially zero, and then the processor 180 determines the detected by the gravity sensor 150. Whether the acceleration in the Z direction, the acceleration on the X axis, and the acceleration on the Y axis last for 5 seconds or more are approximately -9.8 m/s 2 , 0 and 0, respectively.
  • the processor 180 continues to determine whether the average value of the noise of the acceleration detected by the gravity sensor 150 within the above 5 seconds is less than the noise threshold (here set to 0.004 g) due to the user's pulse and arm muscles.
  • the noise threshold here set to 0.004 g
  • the processor 180 determines that the noise of the acceleration detected by the gravity sensor 150 is greater than the noise threshold, so the processor 180 still maintains various applications previously opened by the user in the background, keeps the GPS module open, and continues Use the WiFi module to download music files (assuming the music file download is not completed at this time).
  • the processor 180 first determines that the acceleration on the Z-axis detected by the gravity sensor 150 is negative, and is approximately -9.8 m/s 2 , and then the processor 180 continues to determine the X-axis and Y detected by the gravity sensor 150.
  • the acceleration on the shaft is substantially zero, and then the processor 180 determines whether the acceleration in the Z direction detected by the gravity sensor 150, the acceleration on the X axis, and the acceleration on the Y axis last for more than 5 seconds, respectively, being approximately -9.8 m/s 2 , 0 and 0.
  • the processor 180 determines whether the average value of the noise of the acceleration detected by the gravity sensor 150 within the above 5 seconds is less than the noise threshold (here set to 0.004 g), since the user is within the 5 seconds and The handset is not held, so the processor 180 determines that the average value of the noise of the acceleration detected by the gravity sensor 150 within the 5 seconds is less than the noise threshold, and the processor 180 controls the other modules of the handset to operate in the power saving mode: That is, the processor 180 turns off the navigation application running in the background, the web browser, the photo application and the instant communication software, turns off the GPS module, and determines whether the music file is downloaded. If the download is completed, the WiFi module is closed, and if the music file is not downloaded, , continue to use the WiFi module to download music files. And the processor 180 records the identification of the closed application and the identification of the hardware module.
  • the noise threshold here set to 0.004 g
  • the processor 180 determines that the power saving needs to be exited according to the result detected by the gravity sensor. In the mode, the processor 180 opens the navigation module, the web browser, the photographing application and the instant messaging software again according to the recorded identifier of the closed application and the identifier of the hardware module, and opens the GPS module. If the WiFi module is also turned off when entering the power saving mode, then the WiFi module is turned on again.
  • the display panel 141 displays an interface for setting the function of quickly entering the power saving mode, and receives an instruction that the user inputs the function of turning on the fast entry/exit power saving mode through the touch panel 131;
  • the gravity sensor 150 detects the acceleration. (including acceleration on the X-axis, Y-axis, and Z-axis, noise of the overall acceleration);
  • the processor 180 can determine the hand by judging the accelerations on the X-axis, the Y-axis, and the Z-axis. Whether the machine 100 is placed substantially horizontally in the downward direction of the touch panel 131, and a judgment of a duration of 5 seconds is added to reduce erroneous operation.
  • the processor 180 can determine whether the mobile phone 100 is placed on a stationary object by the noise of the overall acceleration within the 5 seconds instead of being held in the user's hand. Only when the processor 180 determines that the mobile phone 100 is placed substantially horizontally in the downward direction of the touch panel 131 and is placed on a stationary object instead of being held in the user's hand, the user generally does not want to use the mobile phone, or is not in a hurry.
  • the handset is used to receive and reply to the message, in which case the processor 180 controls the handset to enter a power save mode.
  • the processor 180 When the gravity sensor detects that the state of the mobile phone 100 has changed, such as being picked up by the user, or the user flips the mobile phone such that the touch panel 131 is not facing substantially horizontally, the processor 180 no longer waits for a while, and immediately Controls the phone's power save mode to return to normal mode.
  • the foregoing embodiment provides a method for saving power, so that the mobile terminal can enter the power saving mode and exit the power saving mode according to the simple operation of the user, simplify the operation of the user, and improve the ease of use and interaction with the user of the mobile terminal. ability.
  • the embodiment of the present invention provides a flowchart of a method for entering a power saving mode.
  • the method is performed by the handset as shown in FIG. 1, and before the method is executed, the handset is in the normal mode, and the user has turned on or does not turn on the function of quickly entering the power saving mode.
  • the method includes:
  • the processor 180 determines whether the function of quickly entering the power saving mode has been turned on. If the user has already displayed the function of setting the fast power saving mode on the display panel 141 before 601, the touch panel 131 is adopted. If the function of turning on the fast power saving mode is selected, execution 602 is performed. If the processor 180 determines that the function of quickly entering the power saving mode is not enabled, then 607 is performed.
  • the processor 180 determines whether the acceleration on the Z axis detected by the gravity sensor 150 is negative. If yes, execute 603. If not, execute 606.
  • the gravity sensor 150 before 602, the gravity sensor 150 is in an active state, and the X axis can be detected.
  • the processor 180 determines whether the accelerations on the X-axis and the Y-axis detected by the gravity sensor 150 are substantially 0. If yes, execute 604. If not, execute 606.
  • a range of approximately 0 may be a value falling within the following range: (-0.98, 0.98), or (-0.49, 0.49), etc., wherein the unit of the numerical value in the interval is m/s2.
  • the value of the interval can be set by the user or preset by the mobile phone manufacturer at the factory.
  • the processor 180 determines whether the noise of the acceleration detected by the gravity sensor 150 is less than a noise threshold (here set to 0.004 g). If the noise threshold is less than the noise threshold, perform 605. If not less than the noise threshold, Execute 606.
  • a noise threshold here set to 0.004 g
  • the noise of the acceleration as shown in FIGS. 4 and 5 is the noise of the overall acceleration detected by the gravity sensor 150, and is not the components on the X-axis, the Y-axis, and the Z-axis.
  • the processor 180 controls the mobile phone to enter a power saving mode.
  • the power saving mode in 605 is a normal power saving mode, and 605 includes: the processor 180 turns off all running processes of the background running application, stops the GPS, stops the earphone detection, stops the indicator light, stops the USB plug detection, and stops. NFC, stop voice wake-up, stop touch screen wake-up function, etc., but keep the answering call function on continuously. 605 further includes the processor 180 determining whether the RF circuit or the WiFi module is downloading the file. If not, the processor turns off the RF circuit and the WiFi module. If a file is being downloaded, the processor keeps the RF circuit or the WiFi module to continue downloading.
  • the processor 180 maintains the mobile phone operating in an existing mode.
  • 602 may be performed again until entering a power saving mode or the fast entering power saving mode The function is turned off.
  • the processor 180 maintains the mobile phone operating in an existing mode. After 607, 601 can be executed again.
  • the existing mode in 606 and 607 is the normal mode.
  • 602 is for determining whether the display panel 140 (or the touch panel 131) is facing downward
  • 603 is for determining whether the display panel 140 (or the touch panel 131) is horizontal
  • 604 is for determining whether the mobile phone is placed on a stationary object.
  • the execution order of the three steps can be interchanged. Only the judgment result of the three steps is YES, and 605 is executed. If the judgment result of one step is no, 606 is executed.
  • 602 may be replaced with the processor 180 determining whether the acceleration on the Z-axis detected by the gravity sensor 150 is approximately -1 g (ie, -9.8 m/s 2 ), and if so, executing 603, If no, execute 606.
  • the acceleration on the Z-axis is approximately -1 g, which means that the acceleration on the Z-axis is between -1.2 g and 0.98 g, and may be a value of other intervals, which is not limited in the present invention.
  • the acceleration on the Z-axis detected by the gravity sensor 150 is about -1 g, it indicates that the display panel 140 (or the touch panel 131) faces downward and is stationary relative to the ground or moving at a constant speed in the horizontal direction.
  • the gravity sensor of the mobile phone is affected by the car or other means of transportation.
  • the noise of the detected acceleration is generally greater than 0.004 g. Therefore, if the noise of the acceleration is less than 0.004 g, the mobile phone generally does not move at a uniform speed in the horizontal direction.
  • the acceleration sensor and the gyroscope can be used to obtain the acceleration of the mobile phone in the horizontal direction, and the mobile phone is judged accordingly. Whether it is still in the horizontal direction, or use GPS mode
  • the block records the movement of the mobile phone to determine whether the mobile phone is moving, or uses the positioning function of the base station to determine whether the mobile phone is moving.
  • 605 is performed only when the handset is placed on a stationary object, otherwise 606 is performed.
  • 602 can be replaced with 602': processor 180 determines if the acceleration on the Z-axis detected by gravity sensor 150 is negative for the first duration.
  • 603 may be replaced by 603': processor 180 determines whether the accelerations on the X-axis and the Y-axis detected by gravity sensor 150 are substantially zero in the first duration.
  • 604 may be replaced by 604': processor 180 determines gravity sensor Whether the noise of the detected acceleration is less than the noise threshold for the second duration, or the processor 180 determines whether the average of the noise of the acceleration detected by the gravity sensor 150 for the second duration is less than the noise gate Limit.
  • the processor 180 controls the mobile phone to enter the super power saving mode. mode. The content and order of the other steps remain the same and will not be repeated here.
  • the judgment of the infrared sensor is increased, and the material of the object currently placed by the mobile phone 100 is determined according to the wavelength detected by the infrared sensor, if the current judgment is If the object on which the mobile phone is placed is wood or glass, the mobile phone is currently likely to be placed on the table in the downward direction of the display panel 140 (or the touch panel 131), and 605 is performed at this time. If it is judged that the object currently placed on the mobile phone is cloth or leather, the mobile phone is likely to be placed on the sofa or the bed in the downward direction of the display panel 140 (or the touch panel 131), which may be an unintended operation of the user. , not for the time being, do not use the phone, at this time execute 606.
  • 602 and 603 are for determining whether the mobile phone is placed horizontally in the downward direction of the display panel 140 (or the touch panel 131). The determination may also be implemented by other means, such as by a gyroscope or other sensor; whether the mobile phone is placed in the downward direction and horizontal direction of the display panel 140 (or the touch panel 131). If yes, execute 604, if not, then Execute 606.
  • the processor of the mobile phone includes an application processor and a microcontroller
  • 601, 605, 606, and 607 are executed by the application processor
  • 602, 603, and 604 are executed by the MCU, because the power consumption of the MCU is smaller than the application processing.
  • the device is small, so it can achieve more power-saving technical effects.
  • the embodiment of the invention further provides a method for exiting the power saving mode. As shown in FIG. 7, the method is performed by the mobile phone as shown in FIG. 1, and before the method is executed, the mobile phone is in the power saving mode, and the user has turned on or does not turn on the function of quickly exiting the power saving mode.
  • the method includes:
  • the processor 180 determines whether the function of quickly exiting the power saving mode has been turned on. If the user has already displayed the function for setting the quick exit power saving mode displayed on the display panel 141 before 701, the fast is selected to be turned on. When the function of the power saving mode is exited, 702 is executed. If the processor 180 determines that the function of quickly exiting the power saving mode is not enabled, then 707 is performed.
  • the processor 180 determines whether the acceleration on the Z axis detected by the gravity sensor 150 is positive. If not, execute 703. If yes, execute 706.
  • the gravity sensor 150 before 702, the gravity sensor 150 is still in operation (including when the mobile phone is in the power saving mode), can detect the acceleration on the X axis, the Y axis and the Z axis, and the overall acceleration; if the gravity sensor 150 is not in In the working state, the processor 180 turns on the gravity sensor 150 to be in an active state before executing 702.
  • the processor 180 determines whether the accelerations on the X-axis and the Y-axis detected by the gravity sensor 150 are far greater than 0. If not, execute 704, and if yes, perform 706.
  • Far greater than 0 means greater than 0.98, or less than -0.98. Far greater than 0 can also mean greater than 0.49, or less than -0.49. Wherein, the unit of the above numerical value is m/s2.
  • the processor 180 determines whether the noise of the acceleration detected by the gravity sensor 150 is greater than a noise threshold (here set to 0.004 g). If the noise threshold is greater than the noise threshold, perform 705. If the noise threshold is less than the noise threshold, execute 705. 706.
  • a noise threshold here set to 0.004 g
  • the accelerations shown in FIGS. 4 and 5 are noises of the overall acceleration detected by the gravity sensor 150, and are not components on the X-axis, the Y-axis, and the Z-axis.
  • the processor 180 controls the mobile phone to work in a power saving mode.
  • the processor 180 controls the mobile phone to exit the power saving mode.
  • the exiting the power saving mode in 706 includes: all or part of the software functions and hardware modules that are turned off when the processor 180 starts to enter the power saving mode; or: the processor 180 starts the preset software functions and hardware modules, such as various types commonly used by the user. Software features and hardware modules.
  • 702 may be performed again until the handset exits the power save mode, or until the function of quickly exiting the power save mode is turned off.
  • the processor 180 maintains the mobile phone in a power saving mode. After 707, 701 can be executed again.
  • 702 is for determining whether the display panel 140 (or the touch panel 131) is facing upward
  • 703 is for determining whether the display panel 140 (or the touch panel 131) is horizontal
  • 704 is for determining whether the mobile phone is placed on a stationary object.
  • the execution order of the three steps can be interchanged, and only the judgment result of the three steps is no, the execution 705 is performed, and if the judgment result of one step is YES, 706 is executed.
  • 702 can be replaced with 702': processor 180 determines whether the acceleration on the Z-axis detected by gravity sensor 150 is positive for the first duration.
  • 703 can be replaced by 703': processor 180 Whether the acceleration on the X-axis and the Y-axis detected by the broken gravity sensor 150 is much greater than 0 in the first duration.
  • 704 may be replaced by 704': the processor 180 determines whether the acceleration detected by the gravity sensor 150 is in the second duration. It is greater than the noise threshold.
  • the processor of the mobile phone includes an application processor and a microcontroller
  • 701, 705, 706, and 707 are executed by the application processor
  • 702, 703, and 704 are executed by the MCU, because the power consumption of the MCU is smaller than the application processing.
  • the device is small, so it can achieve more power-saving technical effects.
  • the mobile phone maintains the power saving mode after the judgment of 702, 703, and 704; if the determination result of 701 is YES, the mobile phone from the figure The state shown in 2b is switched to the state shown in Fig. 2a, Fig. 3a, and even Fig. 3b, and the cell is switched from the power saving mode to the normal mode after the judgment of 702, 703 and 704.
  • the above 602 and 702 are for determining whether the mobile phone is placed in the downward direction of the display panel 140 (or the touch panel 131).
  • the determination can also be implemented by other means, such as by pressure sensors, infrared sensors and other sensors, the specific method is shown in Figure 8-11.
  • FIGS. 8 and 9 are diagrams in which a pressure sensor is used to determine whether or not the mobile phone is placed in the downward direction of the display panel 140 (or the touch panel 131).
  • the embodiment of the present invention provides another method for entering a power saving mode.
  • the method is performed by the handset as shown in FIG. 1, and before the method is executed, the handset is in the normal mode, and the user has turned on or does not turn on the function of quickly entering the power saving mode.
  • the method includes:
  • the processor 180 determines whether the pressure detected by the pressure sensor located on the back of the mobile phone 100 is less than a pressure threshold. If yes, execute 803. If not, execute 806.
  • the pressure sensor 151 Before 802, the pressure sensor 151 is still in operation (including when the mobile phone is in the power saving mode), and the pressure value can be detected; if the pressure sensor 151 is not in the working state, the processor 180 is Before performing 802, the pressure sensor 151 is turned on to make it in operation. Taking into account the error of the measurement, the pressure threshold can be set to a value close to 0, such as 0.1 Newton or 0.05 Newton.
  • 803-807 are the same as 603-607, respectively, and the descriptions of 601, 603-607 are also applicable to 801, 803-807, respectively, and will not be repeated here.
  • Another embodiment of the present invention provides a method for exiting the power saving mode. As shown in FIG. 9, the method is performed by the mobile phone as shown in FIG. 1, and before the method is executed, the mobile phone is in the power saving mode, and the user has turned on or does not turn on the function of quickly exiting the power saving mode.
  • the method includes:
  • the processor 180 determines whether the pressure detected by the pressure sensor 151 located on the back of the mobile phone 100 is greater than a pressure threshold. If not, execute 903, and if yes, execute 906.
  • 903-907 are the same as 703-707, respectively, and the descriptions of 701, 703-707 are also applicable to 901, 903-907, respectively, and will not be repeated here.
  • the infrared sensor is used to determine whether the mobile phone is placed in the downward direction of the display panel 140 (or the touch panel 131).
  • the embodiment of the present invention provides another method for entering a power saving mode.
  • the method is performed by the handset as shown in FIG. 1, and before the method is executed, the handset is in the normal mode, and the user has turned on or does not turn on the function of quickly entering the power saving mode.
  • the method includes:
  • the processor 180 determines whether the reflected energy detected by the infrared sensor located on the front side of the mobile phone 100 is greater than an energy threshold. If yes, execute 1003. If not, execute 1006.
  • the energy threshold can be close to the total energy of the infrared wave emitted by the infrared emitter, such as the total energy 90% or other value.
  • the infrared sensor Before 1002, the infrared sensor is still in working state (including when the mobile phone is in the power saving mode), and the reflected energy can be detected; if the infrared sensor is not in the working state, the processor 180 turns on the infrared sensor to make it before executing 1002.
  • Working status including when the mobile phone is in the power saving mode
  • 1003-1006 is the same as 603-607, and the descriptions of 601, 603-607 are also applicable to 1001, 1003-1007, respectively, and will not be repeated here.
  • the processor 180 determines that the mobile phone is located at the mobile phone.
  • the reflection wavelength detected by the front side infrared sensor is glass or wood, and if so, 1003 is performed, and if not, 1006 is performed.
  • the front surface of the mobile phone 100 is covered by glass or wood, usually when the mobile phone is placed down on the desktop, or the user is inconvenient to view the display panel 141 and operate the touch panel 131, in this case, the user usually does not want to The case of using the mobile phone 100.
  • the embodiment of the present invention provides another method for exiting the power saving mode.
  • the method is performed by a mobile phone as shown in FIG. 1, and before the method is executed, the mobile phone is in a power saving mode, and the user has turned on or does not turn on the function of quickly exiting the power saving mode.
  • the method includes:
  • the processor 180 determines whether the reflected energy detected by the infrared sensor located on the front of the mobile phone 100 is less than an energy threshold. If not, executing 903, and if yes, executing 906.
  • 1103-1107 is the same as 703-707, and the descriptions of 701, 703-707 are also applicable to 1101, 1103-1107, respectively, and will not be repeated here.
  • the processor 180 determines whether the reflected wavelength detected by the infrared sensor located on the front side of the mobile phone 100 is glass or wood, and if yes, executes 1103. If no, execute 1106. Since the front surface of the mobile phone 100 is covered by glass or wood, usually when the mobile phone is placed down on the desktop, or the user is inconvenient to view the display panel 141 and operate the touch panel 131, in this case, the user usually does not want to The case of using the mobile phone 100.
  • the method of entering the power saving mode and the method of exiting the power saving mode as described above can be used together.
  • the method shown in any one of FIG. 6, FIG. 8 and FIG. 10 after the mobile phone enters the power saving mode, the method shown in any one of FIG. 7, FIG. 9 and FIG. 11 can be used to cause the mobile phone to exit the power saving mode. .
  • the method shown in any one of FIG. 6, FIG. 8 and FIG. 10 can also be used to make the mobile phone enter the province. Electrical mode.
  • the embodiment of the present invention further provides a device for entering a power saving mode.
  • the device includes: a screen unit 1201 for displaying a user interface; and a gravity sensor unit 1202 for detecting acceleration and acceleration of the device.
  • the device is in a normal mode; the device further includes: a first determining unit 1204, configured to determine whether the device is placed horizontally downward according to the screen unit; and a second determining unit 1205, configured to determine the Whether the noise of the acceleration detected by the gravity sensor unit is less than a noise threshold; the first control unit 1206 is configured to determine, at the first determining unit, that the device is placed horizontally downward according to the screen unit, and When the second determining unit determines that the noise of the acceleration detected by the gravity sensor is less than the noise threshold, the device is controlled to enter a power saving mode.
  • the gravity sensor unit 1202 is configured to detect acceleration on the X axis, acceleration on the Y axis, and acceleration on the Z axis of the three-dimensional Cartesian coordinate system of the device; the first determining unit 1204 Specifically, it is determined whether the acceleration on the X axis detected by the gravity sensor unit, the acceleration on the Y axis of the three-dimensional Cartesian coordinate system, and the acceleration on the Z axis of the three-dimensional Cartesian coordinate system are respectively 0, 0. , -9.8 m/s 2 , and if so, it is determined that the device is placed horizontally downward according to the screen unit.
  • the gravity sensor unit 1202 is configured to detect acceleration on the X axis, acceleration on the Y axis, and acceleration on the Z axis of the three-dimensional Cartesian coordinate system of the device; the first determining unit 1204 Specifically, it is determined whether the acceleration on the X axis detected by the gravity sensor unit, the acceleration on the Y axis of the three-dimensional Cartesian coordinate system, and the acceleration on the Z axis of the three-dimensional Cartesian coordinate system are respectively 0, 0. , -9.8m/s 2 , if yes, the acceleration on the X axis, the acceleration on the Y axis, and the acceleration on the Z axis are respectively maintained at 0, 0, - for the first duration. 9.8 m/s 2 , and if so, it is determined that the mobile terminal is in a horizontally placed state facing down.
  • the device further comprises: a pressure sensor unit 1207, the plurality of pressure sensor units 1207 being distributed on the back of the device.
  • the pressure sensor unit is configured to detect a force on a back surface of the device;
  • the gravity sensor unit 1202 is specifically configured to detect an acceleration on an X axis of a three-dimensional Cartesian coordinate system of the device, and the three-dimensional right angle Acceleration on the Y-axis of the coordinate system;
  • the first determining unit 1204 is specifically configured to: determine whether the pressure detected by the pressure sensor unit is 0, and determine the X-axis detected by the gravity sensor unit 1202 Whether the acceleration and the acceleration on the Y-axis are 0, 0 respectively; if it is judged that the pressure detected by the pressure sensor unit is 0; and it is judged that the gravity sensor detects the acceleration on the X-axis and the Y-axis The accelerations are 0, 0, respectively; then it is determined that the device is placed horizontally downward according to the screen unit.
  • the device further includes: an infrared sensor unit 1208, configured to detect reflected energy and a reflected wavelength; and a gravity sensor unit 1202, specifically for detecting an X-axis of the three-dimensional Cartesian coordinate system of the device Acceleration on the Y-axis of the three-dimensional Cartesian coordinate system; the first determining unit 1204 is specifically configured to: determine the reflection detected by the infrared sensor unit Whether the energy is greater than an energy threshold, whether the reflected wavelength corresponds to wood or glass, and whether the acceleration on the X-axis and the acceleration on the Y-axis are 0, 0, respectively; if the reflected energy is greater than An energy threshold value, the reflection wavelength corresponding to wood or glass, and the acceleration on the X-axis and the acceleration on the Y-axis are 0, 0, respectively, determining that the device is facing downward according to the screen unit Place.
  • an infrared sensor unit 1208 configured to detect reflected energy and a reflected wavelength
  • a gravity sensor unit 1202 specifically for detecting an
  • the noise threshold is 0.004 g.
  • the device further includes: a radio frequency unit 1209, configured to establish a connection with the mobile data network, and download data from the mobile data network; and a WiFi unit 1210, configured to establish a connection with the access point, and The access point downloads the data;
  • the first control unit 1204 is specifically configured to: keep the function of answering the call running normally, and perform at least one of: if it is determined that the radio frequency unit 1209 does not download data from the mobile data network Disconnecting the radio unit 1209 from the mobile data network; if it is determined that the radio unit 1209 does not download data from the mobile data network, the radio unit 1209 is turned off; if it is determined that the WiFi module 1210 is currently If the data is not downloaded, the connection of the WiFi module 1210 to the access point is disconnected; and if it is determined that the WiFi module 1210 does not currently download data, the WiFi module 1210 is turned off.
  • the second determining unit 1205 is specifically configured to: determine whether a maximum acceleration noise detected by the gravity sensor unit in the second duration is lower than the noise threshold, and if yes, determine Determining that the noise of the acceleration detected by the gravity sensor unit is lower than the noise threshold; or determining whether an average value of all acceleration noises detected by the gravity sensor unit during the second duration is lower than the noise gate The limit value, if yes, determines that the noise of the acceleration detected by the gravity sensor unit is below the noise threshold.
  • the screen unit 1201 in this embodiment corresponds to the display panel 141 and the touch panel 131 described in the previous embodiment
  • the gravity sensor unit 1202 corresponds to before.
  • the gravity sensor 150, the first determining unit 1204, the second determining unit 1205 and the first control unit 1206 described in the embodiment correspond to the processor 180 described in the previous embodiment
  • the pressure sensor unit 1207 corresponds to the pressure sensor described in the previous embodiment.
  • the infrared sensor unit corresponds to the infrared sensor described in the previous embodiment
  • the radio frequency unit 1209 corresponds to the RF circuit described in the previous embodiment
  • the WiFi unit 1210 corresponds to the WiFi module 170 described in the previous embodiment.
  • the description of each module in the previous embodiment also applies to this embodiment, and will not be repeated here.
  • the embodiment of the present invention further provides an apparatus for exiting the electric mode.
  • the apparatus includes: a screen unit 1201 for displaying a user interface; and a gravity sensor unit 1202 for detecting acceleration of the device and noise of the acceleration
  • the device is in a normal mode; the device further includes: a third determining unit 1304, configured to determine whether the device is placed horizontally downward according to the screen unit; and a second determining unit 1205, configured to determine the gravity Whether the noise of the acceleration detected by the sensor unit is less than a noise threshold; the second control unit 1306 is configured to: at the first determining unit, determine that the device is not placed horizontally downward according to the screen unit, or When the second determining unit determines that the noise of the acceleration detected by the gravity sensor is greater than the noise threshold, the device is controlled to exit the power saving mode.
  • the gravity sensor unit 1207 is configured to detect acceleration on an X axis, acceleration on a Y axis, and acceleration on a Z axis of a three-dimensional orthogonal coordinate system of the device; the third determining unit 1304 Specifically, it is determined whether the acceleration on the X axis detected by the gravity sensor unit, the acceleration on the Y axis of the three-dimensional Cartesian coordinate system, and the acceleration on the Z axis of the three-dimensional Cartesian coordinate system are respectively 0, 0. , -9.8 m/s 2 , if not, it is determined that the device is not placed horizontally downward according to the screen unit.
  • the device further comprises a pressure sensor unit 1207, the plurality of pressure sensor units 1207 being distributed on the back of the device.
  • the pressure sensor unit 1207 is configured to detect the back of the device.
  • the gravity sensor unit 1202 is specifically configured to detect an acceleration on the X-axis of the three-dimensional Cartesian coordinate system of the device, and an acceleration on the Y-axis of the three-dimensional Cartesian coordinate system;
  • the unit 1304 is specifically configured to: determine whether the pressure detected by the pressure sensor unit is 0, and determine whether the gravity sensor detects whether the acceleration on the X axis and the acceleration on the Y axis are 0 or 0, respectively; The pressure detected by the pressure sensor unit is greater than 0; or it is determined that the gravity sensor detects that at least one of the acceleration on the X axis and the acceleration on the Y axis is not 0; then determining that the device does not follow the screen Place the unit horizontally down.
  • the device further includes an infrared sensor unit 1208, configured to detect reflected energy and a reflected wavelength; and a gravity sensor unit 1202, specifically for detecting an X-axis of the three-dimensional Cartesian coordinate system of the device.
  • the acceleration on the Y-axis and the acceleration on the Y-axis of the three-dimensional Cartesian coordinate system; the third determining unit 1304 is specifically configured to: determine whether the reflected energy detected by the infrared sensor unit 1208 is greater than an energy preset value, the reflection Whether the wavelength corresponds to wood or glass, and determining whether the acceleration on the X-axis and the acceleration on the Y-axis are 0 or 0, respectively; if the reflected energy is less than the preset value of the energy, or the reflected wavelength is not Corresponding to wood or glass, or at least one of the acceleration on the X-axis and the acceleration on the Y-axis is not zero, it is determined that the device is not placed horizontally downward according to the screen unit.
  • the second control unit 1306 is specifically configured to: turn on at least a part of the hardware module and at least a part of the software function that are turned off when the device enters the power saving mode.
  • the screen unit 1201 in this embodiment corresponds to the display panel 141 and the touch panel 131 described in the previous embodiment
  • the gravity sensor unit 1202 corresponds to the gravity sensor 150 described in the previous embodiment
  • the third determining unit 1304, the second determining unit 1205 and the second controlling unit 1306 correspond to the processor 180 described in the previous embodiment
  • the pair of pressure sensor units 1207 According to the pressure sensor 151 described in the previous embodiment, the infrared sensor unit corresponds to the infrared sensor described in the previous embodiment, and the radio frequency unit 1209 corresponds to the RF circuit described in the previous embodiment, and the WiFi unit 1210 corresponds to the WiFi module 170 described in the previous embodiment. .
  • the description of each module in the previous embodiment also applies to this embodiment, and will not be repeated here.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

Disclosed in the embodiments of the present invention are a method, a device and a mobile terminal for entering a power saving mode, and also a method, a device and a mobile terminal for exiting a power saving mode, which enable the mobile terminal to automatically enter or exit, according to the change of state thereof, the power saving mode, reducing wrong determinations made by the mobile terminal, improving the accuracy of entering the power saving mode and exiting the power saving mode.

Description

进入省电模式的方法、退出省电模式的方法、装置及移动终端Method for entering power saving mode, method, device and mobile terminal for exiting power saving mode 技术领域Technical field
本发明涉及移动通信领域,尤其是一种进入省电模式的方法、退出省电模式的方法、装置及移动终端。The present invention relates to the field of mobile communications, and in particular, to a method for entering a power saving mode, a method and device for exiting a power saving mode, and a mobile terminal.
背景技术Background technique
随着科技的发展,与智能手机相关的各种应用和各种云服务不断涌现,智能手机成为人们生活中不可缺少的工作和娱乐工具。智能手机通常依靠电池提供电能,而电池的体积和容量又受到智能手机整体尺寸和重量等限制,不能做的过大。如何减少智能手机的电能消耗,延长智能手机的待机时间成为了业界关注的重要问题。With the development of technology, various applications and various cloud services related to smartphones are emerging, and smart phones have become an indispensable work and entertainment tool in people's lives. Smartphones usually rely on batteries to provide power, and the size and capacity of the battery are limited by the overall size and weight of the smartphone, and cannot be made too large. How to reduce the power consumption of smart phones and extend the standby time of smart phones has become an important issue in the industry.
为了解决这一问题,现有技术提供了智能手机的省电模式,在该模式下,智能手机的一些功能或者硬件模块将处于关闭状态,或者硬件模块将运行在低功耗的状态下,从而减少电量的消耗。智能手机进入省电模式的方法也有多种。例如,智能手机在该省电时间段内自动进入省电模式,或者智能手机在电池的剩余电量小于某个阈值时,自动进入省电模式。然而,这类进入省电模式的方式无法由用户控制,缺乏灵活性。现有技术也提供了由用户手动选择的方式:用户可以点亮智能手机的屏幕,进入待机界面,并找到相应的用户界面并选择进入省电模式的选项,这种设置方式需要用户的多次操作,使用起来也不够方便。现有技术还提供了一种使用重力传感器检测手持电子设备的姿态,并在手持电子设备按照屏幕朝下放置时进入省电模式的方法,然而,该方法的准确性有待提升。In order to solve this problem, the prior art provides a power saving mode of a smart phone, in which some functions or hardware modules of the smart phone will be in a closed state, or the hardware module will be operated in a low power state, thereby Reduce the consumption of electricity. There are also many ways in which a smartphone can enter a power saving mode. For example, the smart phone automatically enters the power saving mode during the power saving period, or the smart phone automatically enters the power saving mode when the remaining battery power is less than a certain threshold. However, this type of mode of entering a power saving mode cannot be controlled by the user and lacks flexibility. The prior art also provides a method manually selected by the user: the user can light up the screen of the smartphone, enter the standby interface, and find the corresponding user interface and select the option to enter the power saving mode, which requires the user multiple times. Operation is not convenient enough to use. The prior art also provides a method of detecting the posture of a handheld electronic device using a gravity sensor and entering a power saving mode when the handheld electronic device is placed face down on the screen. However, the accuracy of the method needs to be improved.
发明内容Summary of the invention
本发明实施例提供了进入省电模式的方法、退出省电模式的方法和移动终 端,减少了让移动终端进入省电模式和退出省电模式时的误判,提高了方案的准确性。。Embodiments of the present invention provide a method for entering a power saving mode, a method for exiting a power saving mode, and a mobile terminal At the end, the misjudgment when the mobile terminal enters the power saving mode and exits the power saving mode is reduced, and the accuracy of the solution is improved. .
本发明实施例第一方面提供了一种进入省电模式的方法,该方法应用于具有屏幕和重力传感器的移动终端,在执行该方法之前,该移动终端处于正常模式。该方法包括:判断所述移动终端是否处于正面朝下的水平放置的状态;判断所述重力传感器检测到的加速度的噪声是否小于噪声门限值;如果所述移动终端处于正面朝下的水平放置的状态,并且所述重力传感器检测到的加速度的噪声小于所述噪声门限值,所述移动终端进入省电模式。当移动终端被处于正面朝下的水平放置的状态,并且所述重力传感器检测到的加速度的噪声小于所述噪声门限值时,本方案能识别出用户是否握持终端,并用户在没有握持所述移动终端的情况下,移动终端进入省电模式,因此提高了进入省电模式的准确性,减少了移动终端的误判。A first aspect of an embodiment of the present invention provides a method of entering a power saving mode, the method being applied to a mobile terminal having a screen and a gravity sensor, the mobile terminal being in a normal mode prior to performing the method. The method includes: determining whether the mobile terminal is in a horizontally placed horizontally facing state; determining whether the noise of the acceleration detected by the gravity sensor is less than a noise threshold; if the mobile terminal is placed horizontally downward And the noise of the acceleration detected by the gravity sensor is less than the noise threshold, and the mobile terminal enters a power saving mode. When the mobile terminal is placed in a horizontally downward facing state, and the noise of the acceleration detected by the gravity sensor is less than the noise threshold, the solution can identify whether the user holds the terminal, and the user does not hold the In the case of the mobile terminal, the mobile terminal enters the power saving mode, thereby improving the accuracy of entering the power saving mode and reducing the misjudgment of the mobile terminal.
本发明实施例第一方面的第一种实施方式,提供了判断移动终端是否按照正面朝下的水平放置的一种具体方式。该方式包括:使用所述重力传感器检测所述移动终端的三维直角坐标系的X轴上的加速度、所述三维直角坐标系的Y轴上的加速度和所述三维直角坐标系的Z轴上的加速度是否分别为0、0、-9.8m/s2;如果是,则确定所述移动终端处于正面朝下的水平放置的状态。该方式借助了重力传感器来确定移动终端是否处于正面朝下的水平放置的状态,考虑到实际应用时的各种误差,如物体并非完全水平以及重力传感器的测量精度等,可以判断所述X轴上的加速度、所述Y轴上的加速度、所述Z轴上的加速度是否大致为0、0、-9.8m/s2。由于移动终端进入省电模式还需要判断重力传感器的噪声,因此重力传感器一直保持开启,因此本方案无需借助重力传感器之外的其他传感器,实现起来更加简单,功耗更低。 A first embodiment of the first aspect of the embodiments of the present invention provides a specific manner of determining whether a mobile terminal is placed horizontally downward. The method includes: detecting, by the gravity sensor, an acceleration on an X-axis of a three-dimensional Cartesian coordinate system of the mobile terminal, an acceleration on a Y-axis of the three-dimensional Cartesian coordinate system, and a Z-axis on the three-dimensional Cartesian coordinate system Whether the acceleration is 0, 0, -9.8 m/s 2 respectively ; if so, it is determined that the mobile terminal is in a horizontally placed state facing down. The method utilizes a gravity sensor to determine whether the mobile terminal is in a horizontally placed state facing downward, and the X axis can be judged in consideration of various errors in actual application, such as an object not being completely horizontal and a measurement accuracy of the gravity sensor. The upper acceleration, the acceleration on the Y-axis, and the acceleration on the Z-axis are approximately 0, 0, -9.8 m/s 2 . Since the mobile terminal needs to judge the noise of the gravity sensor when entering the power saving mode, the gravity sensor is always kept open, so the solution does not need to use other sensors than the gravity sensor, and the implementation is simpler and the power consumption is lower.
本发明实施例第一方面的第二种实施方式,提供了判断移动终端是否按照正面朝下的水平放置的另一种具体方式。该方式包括:使用所述重力传感器检测所述移动终端的三维直角坐标系的X轴上的加速度、所述三维直角坐标系的Y轴上的加速度和所述三维直角坐标系的Z轴上的加速度是否分别为0、0、-9.8m/s2;如果是,判断所述X轴上的加速度、所述Y轴上的加速度和所述Z轴上的加速度是否在第一持续时间内分别保持为0、0、-9.8m/s2,如果是,则确定所述移动终端处于正面朝下的水平放置的状态。本实施方式,在第一方面的第一种实施方式的基础上,增加判断了加速度是否在所述第一持续时间内没有改变,减少了误操作的发生,提高了进入省电模式的准确性,也减少了在省电模式和正常模式之间频繁切换造成的电量浪费。A second embodiment of the first aspect of the embodiments of the present invention provides another specific manner of determining whether the mobile terminal is placed horizontally downward. The method includes: detecting, by the gravity sensor, an acceleration on an X-axis of a three-dimensional Cartesian coordinate system of the mobile terminal, an acceleration on a Y-axis of the three-dimensional Cartesian coordinate system, and a Z-axis on the three-dimensional Cartesian coordinate system Whether the acceleration is 0, 0, -9.8 m/s 2 respectively ; if yes, determining whether the acceleration on the X axis, the acceleration on the Y axis, and the acceleration on the Z axis are respectively within the first duration It remains at 0, 0, -9.8 m/s 2 , and if so, it is determined that the mobile terminal is in a horizontally placed state facing down. In this embodiment, based on the first embodiment of the first aspect, it is determined whether the acceleration has not changed within the first duration, which reduces the occurrence of erroneous operations, and improves the accuracy of entering the power saving mode. It also reduces the waste of power caused by frequent switching between the power saving mode and the normal mode.
本发明实施例第一方面的第三种实施方式,提供了判断移动终端是否按照正面朝下的水平放置的又一种具体方式。该方式包括:判断分布在所述移动终端背面的多个压力传感器检测到的压力是否为0;使用所述重力传感器检测所述移动终端的三维直角坐标系的X轴上的加速度和所述三维直角坐标系的Y轴上的加速度是否分别为0、0;如果多个所述压力传感器检测到的压力为0,并且所述X轴的加速度和Y轴上的加速度分别为0、0,则确定所述移动终端处于正面朝下的水平放置的状态。本实施方式通过设置在移动终端背面的压力传感器判断是否有物体支撑或按压移动终端,通过重力传感器进一步判断移动终端是否为水平的姿态,充分利用了移动终端的各种传感器,提高了进入省电模式的灵活性。A third embodiment of the first aspect of the embodiments of the present invention provides yet another specific manner of determining whether the mobile terminal is placed horizontally downward. The method includes: determining whether the pressure detected by the plurality of pressure sensors distributed on the back of the mobile terminal is 0; detecting the acceleration on the X-axis of the three-dimensional Cartesian coordinate system of the mobile terminal and the three-dimensional using the gravity sensor Whether the acceleration on the Y-axis of the Cartesian coordinate system is 0 or 0 respectively; if the pressure detected by the plurality of pressure sensors is 0, and the acceleration of the X-axis and the acceleration on the Y-axis are 0 and 0, respectively, It is determined that the mobile terminal is in a horizontally placed state facing down. In the embodiment, the pressure sensor disposed on the back of the mobile terminal determines whether an object supports or presses the mobile terminal, and further determines whether the mobile terminal is in a horizontal posture by using the gravity sensor, fully utilizes various sensors of the mobile terminal, and improves power saving. The flexibility of the model.
本发明实施例第一方面的第四种实施方式,提供了判断移动终端是否按照正面朝下的水平放置的再一种具体方式。该方式中,移动终端还包括位于所述移动终端正面的红外传感器。该具体方式包括:判断所述红外传感器检测到的 反射能量是否大于能量门限值;判断所述红外传感器检测到的反射波长对应木头或玻璃;使用所述重力传感器检测所述移动终端的三维直角坐标系的X轴上的加速度和所述三维直角坐标系的Y轴上的加速度是否分别为0、0;如果所述反射能量大于所述能量门限值,所述反射波长对应木头或玻璃,并且所述X轴上的加速度和所述Y轴上的加速度分别为0、0;确定所述移动终端处于正面朝下的水平放置的状态。该方式先利用与屏幕位于手机的同一面的红外传感器判断屏幕所在的正面是否被遮挡,而且被遮挡的物体是木头或者玻璃这些常见的桌面材料,如果是,则可以判断手机是按照正面朝下的方式放置,进一步利用重力传感器判断手机是否水平,通过重力传感器进一步判断移动终端是否为水平的姿态。本方式充分利用了移动终端的各种传感器,提高了进入省电模式的灵活性。可选的,可以将本方式与本方面的第一种实施方式结合起来,即采用重力传感器先判断出X轴方向的加速度、Y轴方向的加速度和Z轴方向的加速度该加速度分别为0、0、-9.8米/秒2,并进一步通过红外传感器判断屏幕所在的正面接触的材质是否为木头或者玻璃这些常见的桌面材料,如果是,则确定移动终端是否按照正面朝下的水平放置的。此时移动终端很可能按照正面朝下的水平放置在桌面上,该情况一般是用户不立即使用移动终端的情形,在该情况下进入省电模式并不影响用户的体验。A fourth embodiment of the first aspect of the embodiments of the present invention provides a further specific manner of determining whether the mobile terminal is placed horizontally downward. In this manner, the mobile terminal further includes an infrared sensor located on the front side of the mobile terminal. The specific manner includes: determining whether the reflected energy detected by the infrared sensor is greater than an energy threshold; determining that the reflected wavelength detected by the infrared sensor corresponds to wood or glass; and detecting the three-dimensional right angle of the mobile terminal by using the gravity sensor Whether the acceleration on the X-axis of the coordinate system and the acceleration on the Y-axis of the three-dimensional Cartesian coordinate system are 0, 0 respectively; if the reflected energy is greater than the energy threshold, the reflected wavelength corresponds to wood or glass, And the acceleration on the X-axis and the acceleration on the Y-axis are 0, 0, respectively; determining that the mobile terminal is in a horizontally placed state facing downward. The method first uses an infrared sensor on the same side of the screen as the screen to determine whether the front side of the screen is blocked, and the blocked object is a common desktop material such as wood or glass. If so, it can be judged that the mobile phone is facing down. In the manner of placing, the gravity sensor is further used to judge whether the mobile phone is horizontal, and the gravity sensor further determines whether the mobile terminal is in a horizontal posture. This method makes full use of various sensors of the mobile terminal, and improves the flexibility of entering the power saving mode. Optionally, the method can be combined with the first embodiment of the present aspect, that is, the gravity sensor first determines the acceleration in the X-axis direction, the acceleration in the Y-axis direction, and the acceleration in the Z-axis direction, respectively, and the acceleration is 0. 0, -9.8 m / s 2 , and further through the infrared sensor to determine whether the material on the front side of the screen is the common desktop material such as wood or glass, and if so, determine whether the mobile terminal is placed horizontally downward. At this time, the mobile terminal is likely to be placed on the desktop in a horizontally downward direction. This is generally the case where the user does not immediately use the mobile terminal. In this case, entering the power saving mode does not affect the user's experience.
结合前述的第一方面和第一方面的各种实施方式,本发明实施例第一方面的第五种实施方式,提供一种判断所述重力传感器检测到的加速度的噪声是否小于噪声门限值的具体方式。该具体方式包括:判断所述重力传感器在第二持续时间内检测到的最大的加速度噪声是否低于所述噪声门限值,如果是,则确定所述述重力传感器检测到的加速度的噪声低于所述噪声门限值;或者判断所述重力传感器在第二持续时间内检测到的所有的加速度噪声的平均值是否低于 所述噪声门限值,如果是,则确定所述述重力传感器检测到的加速度的噪声低于所述噪声门限值。在本实施方式中,考虑了第二持续时间内的所有噪声或者噪声的平均值,因此减少了误操作的发生,并提高了进入省电模式的准确性,也减少了在省电模式和正常模式之间频繁切换造成的电量浪费。With reference to the foregoing first aspect and various embodiments of the first aspect, a fifth implementation manner of the first aspect of the embodiments of the present invention provides a method for determining whether the noise of the acceleration detected by the gravity sensor is less than a noise threshold. The specific way. The specific manner includes: determining whether a maximum acceleration noise detected by the gravity sensor in the second duration is lower than the noise threshold, and if yes, determining that the acceleration of the acceleration detected by the gravity sensor is low At the noise threshold; or determining whether an average value of all acceleration noises detected by the gravity sensor during the second duration is lower than The noise threshold, if yes, determines that the noise of the acceleration detected by the gravity sensor is lower than the noise threshold. In the present embodiment, the average value of all noises or noises in the second duration is considered, thereby reducing the occurrence of erroneous operations, improving the accuracy of entering the power saving mode, and reducing the power saving mode and normal. A waste of power caused by frequent switching between modes.
结合前述的第一方面和第一方面的各种实施方式,本发明实施例第一方面的第六种实施方式,提供了所述噪声门限值的取值范围,所述噪声门限值为G0,其中0.0038g<G0<0.01g,1g=9.8米/秒2。该取值是基于实际测量的结果给出的,符合实际使用的情况,能够减少误判的发生。With reference to the foregoing first aspect and various embodiments of the first aspect, a sixth implementation manner of the first aspect of the embodiments of the present invention provides a value range of the noise threshold, where the noise threshold is G0, wherein 0.0038 g < G0 < 0.01 g, 1 g = 9.8 m / sec 2 . The value is given based on the actual measurement result, which is in line with the actual use, and can reduce the occurrence of false positives.
结合前述的第一方面和第一方面的各种实施方式,本发明实施例第一方面的第七种实施方式,提供了进入省电模式的具体方式。该具体方式为,保持接听呼叫的功能正常运行,还包括以下至少一个:如果判断当前没有从移动数据网络下载数据,断开所述移动终端的射频电路与所述移动数据网络的连接;如果判断当前没有从所述移动数据网络下载数据,关闭与所述移动数据网络连接的射频电路;如果判断当前没有使用WiFi模块下载数据,断开WiFi模块与接入点的连接;如果判断当前没有使用所述WiFi模块下载数据,关闭所述WiFi模块。本实施方式保证了用户在移动终端进入省电模式时仍能接听呼叫,以免错过一些紧急的事情而给用户带来不便;同时,又考虑在从移动数据网络下载数据或WiFi模块下载数据的过程中,不因为进入省电模式而中断数据的下载,只在没有数据下载的时候,关闭相应的硬件模块或禁用相应的软件功能,从而给用户提供了一种更能满足用户需要的、更智能的省电方式。With reference to the foregoing first aspect and various embodiments of the first aspect, a seventh embodiment of the first aspect of the embodiments of the present invention provides a specific manner of entering a power saving mode. The specific manner is that the function of maintaining the answering call is normal, and at least one of the following is included: if it is determined that the data is not currently downloaded from the mobile data network, the connection between the radio frequency circuit of the mobile terminal and the mobile data network is disconnected; Currently, the data is not downloaded from the mobile data network, and the radio frequency circuit connected to the mobile data network is closed; if it is determined that the WiFi module is not currently used to download data, the connection between the WiFi module and the access point is disconnected; The WiFi module downloads data and closes the WiFi module. The embodiment ensures that the user can still answer the call when the mobile terminal enters the power saving mode, so as to avoid inconvenience to the user by missing some urgent things; at the same time, the process of downloading data from the mobile data network or downloading data from the WiFi module is considered. In the middle, the data download is interrupted because it enters the power saving mode. When there is no data download, the corresponding hardware module is turned off or the corresponding software function is disabled, thereby providing the user with a smarter that can better meet the user's needs. The way to save electricity.
本发明实施例第二方面还提供一种退出省电模式的方法。该方法应用与具有屏幕和重力传感器的移动终端,在执行该方法之前,所述移动终端处于省电模式。该方法包括:判断所述移动终端是否处于正面朝下的水平放置的状态; 判断所述重力加速度检测到的加速度的噪声是否小于噪声门限值;如果所述移动终端没有处于正面朝下的水平放置的状态,或者所述所述重力加速度检测到的加速度的噪声大于所述噪声门限值,所述移动终端退出所述省电模式。当移动终端不再处于正面朝下的水平放置的状态并被用拿起,或者移动终端被用户拿起了而导致所述重力传感器检测到的加速度的噪声小于所述噪声门限值时,移动终端退出省电模式。因此,该退出省电模式的方式能够识别出用户正面朝下的方向拿起移动终端的情况,能够减少了退出省电模式的误判,提高了退出省电模式的准确性。。The second aspect of the embodiments of the present invention further provides a method for exiting the power saving mode. The method is applied to a mobile terminal having a screen and a gravity sensor, the mobile terminal being in a power saving mode prior to performing the method. The method includes: determining whether the mobile terminal is in a horizontally placed state facing down; Determining whether the noise of the acceleration detected by the gravitational acceleration is less than a noise threshold; if the mobile terminal is not in a horizontally placed state facing downward, or the noise of the acceleration detected by the gravitational acceleration is greater than the noise a noise threshold, the mobile terminal exits the power saving mode. Moving when the mobile terminal is no longer in a horizontally placed horizontal position and is picked up, or the mobile terminal is picked up by the user and the noise of the acceleration detected by the gravity sensor is less than the noise threshold The terminal exits the power saving mode. Therefore, the manner of exiting the power saving mode can recognize that the user picks up the mobile terminal in a direction facing downward, can reduce the false judgment of exiting the power saving mode, and improve the accuracy of exiting the power saving mode. .
本发明实施例第二方面的第一种实施方式,提供了判断移动终端是否按照正面朝下的水平放置的一种具体方式,与第一方面的第一种实施方式类似,仅仅采用了重力传感器来判断移动终端的状态发生了改变。所述判断移动终端是否处于正面朝下的水平放置的状态,包括:使用所述重力传感器检测所述移动终端的三维直角坐标系的X轴上的加速度、所述三维直角坐标系的Y轴上的加速度和所述三维直角坐标系的Z轴上的加速度是否分别为0、0、-9.8m/s2;如果否,则确定所述移动终端没有处于正面朝下的水平放置的状态。考虑到实际应用时的各种误差,如物体并非完全水平以及重力传感器的测量精度等,可以判断所述X轴上的加速度、所述Y轴上的加速度、所述Z轴上的加速度是否大致为0、0、-9.8m/s2。由于移动终端进入省电模式还需要判断重力传感器的噪声,因此重力传感器一直保持开启,因此本方案无需借助重力传感器之外的其他传感器,实现起来更加简单,功耗更低。A first embodiment of the second aspect of the embodiments of the present invention provides a specific manner of determining whether the mobile terminal is placed in a horizontally downward direction. Similar to the first embodiment of the first aspect, only the gravity sensor is used. To judge the state of the mobile terminal has changed. The determining whether the mobile terminal is in a horizontally placed state in a face-down manner comprises: detecting, by using the gravity sensor, an acceleration on an X-axis of a three-dimensional Cartesian coordinate system of the mobile terminal, and a Y-axis of the three-dimensional Cartesian coordinate system The acceleration and the acceleration on the Z-axis of the three-dimensional Cartesian coordinate system are 0, 0, -9.8 m/s 2 respectively ; if not, it is determined that the mobile terminal is not in a horizontally placed state facing down. Considering various errors in actual application, such as the object is not completely horizontal and the measurement accuracy of the gravity sensor, etc., it can be judged whether the acceleration on the X-axis, the acceleration on the Y-axis, and the acceleration on the Z-axis are approximate. It is 0, 0, -9.8m/s 2 . Since the mobile terminal needs to judge the noise of the gravity sensor when entering the power saving mode, the gravity sensor is always kept open, so the solution does not need to use other sensors than the gravity sensor, and the implementation is simpler and the power consumption is lower.
本发明实施例第二方面的第二种实施方式,提供了判断移动终端是否按照正面朝下的水平放置的另一种具体方式,与第一方面的第三种实施方式类似,使用了重力传感器和压力传感器来判断手机的状态。所述移动终端还包括分布 在所述移动终端背面的多个压力传感器;所述判断移动终端是否处于正面朝下的水平放置的状态,包括:判断多个所述压力传感器检测到的压力是否为0;使用所述重力传感器检测所述移动终端的三维直角坐标系的X轴上的加速度和所述A second embodiment of the second aspect of the embodiments of the present invention provides another specific manner of determining whether the mobile terminal is placed in a horizontally downward direction. Similar to the third embodiment of the first aspect, a gravity sensor is used. And the pressure sensor to determine the status of the phone. The mobile terminal also includes a distribution a plurality of pressure sensors on the back of the mobile terminal; the determining whether the mobile terminal is in a horizontally placed downward facing state comprises: determining whether a pressure detected by the plurality of pressure sensors is 0; using the gravity sensor Detecting an acceleration on an X-axis of the three-dimensional Cartesian coordinate system of the mobile terminal and the
三维直角坐标系的Y轴上的加速度是否分别为0、0;如果所述多个压力传感器检测到的压力大于0,或者所述X轴和Y轴上的加速度中至少有一个不为0,则确定所述移动终端没有处于正面朝下的水平放置的状态。本发明实施例第二方面的第二种实施方式充分利用了移动终端的各种传感器,提高了退出省电模式的灵活性。Whether the acceleration on the Y-axis of the three-dimensional Cartesian coordinate system is 0, 0 respectively; if the pressure detected by the plurality of pressure sensors is greater than 0, or at least one of the accelerations on the X-axis and the Y-axis is not 0, It is then determined that the mobile terminal is not in a horizontally placed state facing down. The second embodiment of the second aspect of the embodiment of the present invention makes full use of various sensors of the mobile terminal, and improves the flexibility of exiting the power saving mode.
本发明实施例第二方面的第三种实施方式,提供了判断移动终端是否按照正面朝下的水平放置的又一种具体方式,与本发明实施例的第一方面的第四种实施方式类似,使用了重力传感器和红外传感器来判断移动终端的状态。述判断移动终端是否处于正面朝下的水平放置的状态,包括:判断所述红外传感器检测到的反射能量是否大于能量门限值;并判断所述红外传感器检测到的反射波长对应木头或玻璃;如果所述反射能量小于所述能量门限值,或者所述反射波长不对应木头或玻璃;确定所述移动终端没有处于正面朝下的水平放置的状态。本方式充分利用了移动终端的各种传感器,提高了退出省电模式的灵活性。A third embodiment of the second aspect of the embodiments of the present invention provides another specific manner of determining whether the mobile terminal is placed in a horizontally downward direction, similar to the fourth implementation manner of the first aspect of the embodiment of the present invention. A gravity sensor and an infrared sensor are used to judge the state of the mobile terminal. Determining whether the mobile terminal is in a horizontally placed horizontal position, comprising: determining whether the reflected energy detected by the infrared sensor is greater than an energy threshold; and determining that the reflected wavelength detected by the infrared sensor corresponds to wood or glass; And if the reflected energy is less than the energy threshold, or the reflected wavelength does not correspond to wood or glass; determining that the mobile terminal is not in a horizontally placed state facing down. This method makes full use of various sensors of the mobile terminal, and improves the flexibility of exiting the power saving mode.
结合第二方面和第二方面的前述各种实施方式,本发明实施例第二方面的第四种实施方式,提供了噪声门限值的取值范围,该范围与本发明实施例第一方面的第六种实施方式提供的范围相同,此处不再重复。With reference to the second aspect and the foregoing various embodiments of the second aspect, the fourth implementation manner of the second aspect of the embodiment of the present invention provides a value range of a noise threshold value, which is related to the first aspect of the embodiment of the present invention. The sixth embodiment provides the same scope and will not be repeated here.
结合第二方面和第二方面的前述各种实施方式,本发明实施例第二方面的第五种实施方式,提供了退出省电模式的一种具体实现。该具体实现包括,开启所述移动终端进入省电模式时关闭的至少一部分硬件模块和至少一部分软件 功能。该具体实现需要移动终端在进入省电模式时,记录关闭的各种硬件模块和/或软件功能,当退出省电模式,即回到正常模式时,依据记录的内容,进行开启,简化了用户的操作,不需要用户再次手动打开各种进入省电模式时关闭的硬件模块和/软件功能。With reference to the second aspect and the foregoing various embodiments of the second aspect, a fifth implementation manner of the second aspect of the embodiments of the present invention provides a specific implementation of exiting the power saving mode. The specific implementation includes: turning on at least a part of the hardware module and at least a part of the software that are closed when the mobile terminal enters the power saving mode. Features. The specific implementation requires the mobile terminal to record various hardware modules and/or software functions that are turned off when entering the power saving mode. When exiting the power saving mode, that is, returning to the normal mode, the mobile terminal is turned on according to the recorded content, simplifying the user. The operation does not require the user to manually turn on the various hardware modules and/or software functions that are turned off when entering the power saving mode.
本发明实施例第三方面,还提供了一种进入省电模式的装置,该装置包括屏幕单元,重力传感器单元,第一判断单元,第二判断单元和第一控制单元。该装置用于执行本发明实施例第一方面、第一方面的第一种实施方式和第一方面的第二种实施例方式的方法。According to a third aspect of the embodiments of the present invention, there is also provided a device for entering a power saving mode, the device comprising a screen unit, a gravity sensor unit, a first determining unit, a second determining unit and a first control unit. The apparatus is for performing the first aspect of the embodiments of the present invention, the first embodiment of the first aspect, and the method of the second embodiment of the first aspect.
在第三方面的第一种实施方式中,该装置还包括位于所述装置背面的多个压力传感器单元,该装置用于执行第一方面的第三种实施方式的方法。In a first embodiment of the third aspect, the apparatus further comprises a plurality of pressure sensor units located on the back of the apparatus for performing the method of the third embodiment of the first aspect.
在第三方面的第二种实施例方式中,该装置还包括位于所述装置正面的红外传感器单元,该装置用于执行第一方面的第四种实施方式的方法。In a second embodiment of the third aspect, the apparatus further comprises an infrared sensor unit located on the front side of the apparatus for performing the method of the fourth embodiment of the first aspect.
结合第三方面,和前述的第三方面的各种实施方式,在第三方面的第三种实施例方式中,该装置的第二判断单元用于执行第一方面的第五种实施方式中的具体方式。With reference to the third aspect, and the foregoing various embodiments of the third aspect, in a third embodiment manner of the third aspect, the second determining unit of the apparatus is configured to perform the fifth implementation manner of the first aspect The specific way.
结合第三方面,和前述的第三方面的各种实施方式,第三方面的第四种实施例方式提供了噪声门限值的范围,该范围与第一方面和第二方面的相应的实施方式提供的范围相同,此处不再重复。With reference to the third aspect, and the various embodiments of the foregoing third aspect, the fourth embodiment manner of the third aspect provides a range of noise threshold values, the range and the corresponding implementation of the first aspect and the second aspect The scope provided by the method is the same and will not be repeated here.
结合第三方面,和前述的第三方面的各种实施方式,在第三方面的第五种实施例方式中,该装置还包括,射频单元,则所述第一控制单元具体用于,保持接听呼叫的功能正常运行,执行如下操作:如果判断当前所述射频单元没有从所述移动数据网络下载数据,断开所述射频单元与所述移动数据网络的连接或者关闭所述射频单元。可选的,该装置还包括WiFi单元,则所述第一控制单 元具体用于,保持接听呼叫的功能正常运行,执行如下操作:如果判断当前所述WiFi模块有下载数据,断开所述WiFi模块与所述接入点的连接或者关闭所述WiFi模块。可选的,该装置还包括WiFi单元和射频单元,则所述第一控制单元用于保持接听呼叫的功能正常运行并执行上述四个操作中的至少一个。With reference to the third aspect, and the foregoing various embodiments of the third aspect, in a fifth embodiment manner of the third aspect, the device further includes a radio frequency unit, and the first control unit is specifically configured to be used to maintain The function of answering the call operates normally, and if the current radio unit does not download data from the mobile data network, disconnect the radio unit from the mobile data network or turn off the radio unit. Optionally, the device further includes a WiFi unit, and the first control list is The element is specifically configured to keep the function of the answering call running normally, and perform the following operations: if it is determined that the WiFi module currently has download data, disconnect the WiFi module from the access point or turn off the WiFi module. Optionally, the device further includes a WiFi unit and a radio frequency unit, and the first control unit is configured to keep the function of answering the call running normally and perform at least one of the foregoing four operations.
上述第三方面和第三方面的各种实施方式的技术效果,与第一方面和第一方面的各种实施方式的技术效果分别对应,此处不再重复。The technical effects of the various embodiments of the third aspect and the third aspect are respectively corresponding to the technical effects of the first aspect and the various embodiments of the first aspect, and are not repeated here.
本发明实施例第四方面,还提供了一种退出省电模式的装置,该装置包括,屏幕单元,重力传感器单元,第三判断单元,第二判断单元和第二控制单元。该装置用于执行本发明实施例第二方面和第二方面的第一种实施方式的方法。According to a fourth aspect of the embodiments of the present invention, there is also provided an apparatus for exiting a power saving mode, the apparatus comprising: a screen unit, a gravity sensor unit, a third determining unit, a second determining unit and a second control unit. The apparatus is for performing the method of the second aspect of the embodiments of the invention and the first embodiment of the second aspect.
在本发明实施例第四方面的第一种实施方式中,该装置还包括位于所述装置背面的多个压力传感器单元,该装置用于执行第二方面的第二种实施方式的方法。In a first embodiment of the fourth aspect of the embodiment of the invention, the apparatus further comprises a plurality of pressure sensor units located on the back of the apparatus for performing the method of the second embodiment of the second aspect.
在本发明实施例第四方面的第二种实施方式中,该装置还包括,位于所述装置正面的红外传感器单元,该装置用于执行第二方面的第三种实施方式的方法。In a second embodiment of the fourth aspect of the embodiments of the present invention, the apparatus further comprises an infrared sensor unit located on the front side of the apparatus for performing the method of the third embodiment of the second aspect.
结合第四方面,和前述的第四方面的各种实施方式,第四方面的第三种实施例方式提供了噪声门限值的范围,该范围与第一方面、第二方面和第三方面的相应的实施方式提供的范围相同,此处不再重复。With reference to the fourth aspect, and the various embodiments of the foregoing fourth aspect, the third embodiment manner of the fourth aspect provides a range of noise threshold values, the first aspect, the second aspect, and the third aspect Corresponding embodiments provide the same scope and are not repeated here.
结合第四方面,和前述的第四方面的各种实施方式,第四方面的第四种实施例方式,所述第二控制单元具体用于开启所述装置进入省电模式时关闭的至少一部分硬件模块和至少一部分软件功能。With reference to the fourth aspect, and the foregoing various embodiments of the fourth aspect, the fourth embodiment manner of the fourth aspect, the second control unit is specifically configured to enable at least part of the device to be turned off when the device enters the power saving mode. Hardware modules and at least a subset of software features.
上述第四方面和第四方面的各种实施方式的技术效果,与第二方面和第二方面的各种实施方式的技术效果分别对应,此处不再重复。 The technical effects of the fourth embodiment and the various embodiments of the fourth aspect respectively correspond to the technical effects of the second aspect and the various embodiments of the second aspect, and are not repeated here.
本发明实施例第五方面提供一种进入省电模式的移动终端,该移动终端包括,屏幕,重力传感器,和处理器,该移动终端用于执行本发明实施例第一方面、第一方面的第一种实施方式和第一方面的第二种实施例方式的方法。A fifth aspect of the embodiments of the present invention provides a mobile terminal that enters a power saving mode, where the mobile terminal includes a screen, a gravity sensor, and a processor, where the mobile terminal is configured to perform the first aspect and the first aspect of the embodiments of the present invention. A first embodiment and a method of the second embodiment of the first aspect.
本发明实施例第五方面的第一种实施方式中,该移动终端还包括分布在所述所述移动终端背面的多个压力传感器,该装置用于执行第一方面的第三种实施方式的方法。In a first implementation manner of the fifth aspect of the embodiments of the present invention, the mobile terminal further includes a plurality of pressure sensors distributed on the back of the mobile terminal, where the apparatus is configured to perform the third embodiment of the first aspect. method.
在第五方面的第二种实施例方式中,该移动终端还包括位于所述移动终端正面的红外传感器,该移动终端用于执行第一方面的第四种实施方式的方法。In a second embodiment manner of the fifth aspect, the mobile terminal further includes an infrared sensor located at a front side of the mobile terminal, where the mobile terminal is configured to perform the method of the fourth embodiment of the first aspect.
结合第五方面,和前述的第五方面的各种实施方式,在第五方面的第三种实施例方式中,该处理器用于执行第一方面的第五种实施方式中的具体方式。With reference to the fifth aspect, and the various embodiments of the foregoing fifth aspect, in a third embodiment manner of the fifth aspect, the processor is configured to perform the specific mode in the fifth embodiment of the first aspect.
结合第五方面,和前述的第五方面的各种实施方式,第五方面的第四种实施例方式提供了噪声门限值的范围,该范围与前述各方面的相应的实施方式提供的范围相同,此处不再重复。With reference to the fifth aspect, and the various embodiments of the foregoing fifth aspect, the fourth embodiment manner of the fifth aspect provides a range of noise threshold values, the range and the range provided by the corresponding embodiments of the foregoing aspects The same, it will not be repeated here.
结合第五方面,和前述的第五方面的各种实施方式,在第五方面的第五种实施例方式中,该装置还包括,射频电路,则所述处理器具体用于,保持接听呼叫的功能正常运行,并执行如下操作:如果判断当前所述射频电路没有从所述移动数据网络下载数据,断开所述射频电路与所述移动数据网络的连接或者关闭所述射频电路。可选的,该装置还包括WiFi模块,则所述处理器具体用于,保持接听呼叫的功能正常运行,并执行如下操作:如果判断当前所述WiFi模块有下载数据,断开所述WiFi模块与所述接入点的连接或者关闭所述WiFi模块。可选的,该装置还包括WiFi模块和射频电路,则所述处理器用于保持接听呼叫的功能正常运行,并执行上述四个操作中的至少一个。With reference to the fifth aspect, and the foregoing various embodiments of the fifth aspect, in a fifth embodiment manner of the fifth aspect, the device further includes: a radio frequency circuit, wherein the processor is specifically configured to keep answering the call The function operates normally and performs the following operations: if it is determined that the radio frequency circuit is not currently downloading data from the mobile data network, disconnecting the radio frequency circuit from the mobile data network or turning off the radio frequency circuit. Optionally, the device further includes a WiFi module, where the processor is specifically configured to keep the function of answering the call running normally, and perform the following operations: if it is determined that the WiFi module currently has download data, disconnect the WiFi module. Connecting to the access point or turning off the WiFi module. Optionally, the device further includes a WiFi module and a radio frequency circuit, wherein the processor is configured to keep the function of answering the call running normally, and perform at least one of the foregoing four operations.
结合第五方面,和前述的第五方面的各种实施方式,在第五方面的第六种 实施例方式中,所述处理器包括应用处理器和微控制器,由微处理器来执行根据各种传感器检测的数据来判断移动终端的状态,而由应用处理器在执行关闭模块和断开连接等。由于判断移动终端的状态一般需要多次的或者较长时间的判断,而将这部分交给功耗相对较小的微控制器,能够达到更加省电的技术效果。With reference to the fifth aspect, and the various embodiments of the foregoing fifth aspect, the sixth aspect of the fifth aspect In an embodiment, the processor includes an application processor and a microcontroller, and the microprocessor executes the data detected by the various sensors to determine the state of the mobile terminal, and the application processor performs the shutdown module and disconnects. Connection, etc. Since it is generally determined that the state of the mobile terminal requires multiple or long-term judgments, and this portion is handed over to the microcontroller with relatively low power consumption, a more power-saving technical effect can be achieved.
上述第五方面和第五方面的各种实施方式的技术效果,与第一方面和第一方面的各种实施方式的技术效果分别对应,此处不再重复。The technical effects of the various embodiments of the fifth aspect and the fifth aspect respectively correspond to the technical effects of the first aspect and the various embodiments of the first aspect, and are not repeated here.
本发明实施例第六方面,还提供了一种退出省电模式的移动终端,该移动终端包括,屏幕,重力传感器,和处理器。该装置用于执行本发明实施例第二方面和第二方面的第一种实施方式的方法。In a sixth aspect of the embodiments of the present invention, a mobile terminal that exits the power saving mode is further provided, and the mobile terminal includes a screen, a gravity sensor, and a processor. The apparatus is for performing the method of the second aspect of the embodiments of the invention and the first embodiment of the second aspect.
在本发明实施例第六方面的第一种实施方式中,该装置还包括位于所述装置背面的多个压力传感器,该移动终端用于执行第二方面的第二种实施方式的方法。In a first embodiment of the sixth aspect of the embodiments of the present invention, the apparatus further includes a plurality of pressure sensors located on the back of the apparatus for performing the method of the second embodiment of the second aspect.
在本发明实施例第六方面的第二种实施方式中,该装置还包括,位于所述移动终端正面的红外传感器,该移动终端用于执行第二方面的第三种实施方式的方法。In a second implementation manner of the sixth aspect of the embodiments of the present invention, the apparatus further includes an infrared sensor located at a front side of the mobile terminal, where the mobile terminal is configured to perform the method of the third embodiment of the second aspect.
结合第六方面,和前述的第六方面的各种实施方式,第六方面的第三种实施例方式提供了噪声门限值的范围,该范围与前述各方面的相应的实施方式提供的范围相同,此处不再重复。In conjunction with the sixth aspect, and the various embodiments of the foregoing sixth aspect, the third embodiment of the sixth aspect provides a range of noise threshold values that are within the scope of the corresponding embodiments of the foregoing aspects. The same, it will not be repeated here.
结合第六方面,和前述的第六方面的各种实施方式,第六方面的第四种实施例方式中,所述处理器具体用于开启所述装置进入省电模式时关闭的至少一部分硬件模块和至少一部分软件功能。With reference to the sixth aspect, and the foregoing various embodiments of the sixth aspect, in a fourth embodiment manner of the sixth aspect, the processor is specifically configured to enable at least a part of hardware that is turned off when the device enters a power saving mode. Module and at least part of the software features.
结合第六方面,和前述的第六方面的各种实施方式,在第六方面的第五种 实施例方式中,所述处理器包括应用处理器和微控制器,由微处理器来执行根据各种传感器检测的数据来判断移动终端的状态,而由应用处理器在执行保持功能模块,以及启动模块或功能等。由于判断移动终端的状态一般需要多次的或者较长时间的判断,而将这部分交给功耗相对较小的微控制器,能够达到更加省电的技术效果。With reference to the sixth aspect, and the various embodiments of the foregoing sixth aspect, the fifth aspect of the sixth aspect In an embodiment, the processor includes an application processor and a microcontroller, and the microprocessor executes the data detected by the various sensors to determine the state of the mobile terminal, and the application processor executes the hold function module, and Start the module or function. Since it is generally determined that the state of the mobile terminal requires multiple or long-term judgments, and this portion is handed over to the microcontroller with relatively low power consumption, a more power-saving technical effect can be achieved.
上述第六方面和第六方面的各种实施方式的技术效果,与第二方面和第二方面的各种实施方式的技术效果分别对应,此处不再重复。The technical effects of the various embodiments of the sixth aspect and the sixth aspect respectively correspond to the technical effects of the second embodiment and the various embodiments of the second aspect, and are not repeated here.
本发明第七方面还提供一种进入省电模式的方法,包括,使用所述重力传感器检测所述移动终端的三维直角坐标系的X轴上的加速度、所述三维直角坐标系的Y轴上的加速度和所述三维直角坐标系的Z轴上的加速度,以及使用所述重力传感器检测加速度的噪声;当所述X轴上的加速度、所述Y轴上的加速度、所述Z轴上的加速度大约为0、0、-9.8m/s2,并且所述加速度的噪声小于噪声门限值时,所述移动终端从正常模式进入省电模式。A seventh aspect of the present invention provides a method for entering a power saving mode, comprising: detecting, by using the gravity sensor, an acceleration on an X axis of a three-dimensional Cartesian coordinate system of the mobile terminal, and a Y-axis of the three-dimensional Cartesian coordinate system Acceleration and acceleration on the Z-axis of the three-dimensional Cartesian coordinate system, and noise using the gravity sensor to detect acceleration; acceleration on the X-axis, acceleration on the Y-axis, on the Z-axis When the acceleration is approximately 0, 0, -9.8 m/s 2 and the noise of the acceleration is less than the noise threshold, the mobile terminal enters the power saving mode from the normal mode.
在第七方面的第一种实施方式中,所述噪声门限值为G0,其中0.0038g<G0<0.01g,1g=9.8米/秒2In a first embodiment of the seventh aspect, the noise threshold is G0, wherein 0.0038 g < G0 < 0.01 g, 1 g = 9.8 m / sec 2 .
本发明第八方面还提供一种进入省电模式的方法,包括,使用所述重力传感器检测所述移动终端的三维直角坐标系的X轴上的加速度、所述三维直角坐标系的Y轴上的加速度和所述三维直角坐标系的Z轴上的加速度,以及使用所述重力传感器检测加速度的噪声;当所述X轴上的加速度、所述Y轴上的加速度、所述Z轴上的加速度不为0、0、-9.8m/s2,或者所述加速度的噪声大于噪声门限值时,所述移动终端从省电模式进入正常模式。An eighth aspect of the present invention provides a method for entering a power saving mode, comprising: detecting, by using the gravity sensor, an acceleration on an X axis of a three-dimensional Cartesian coordinate system of the mobile terminal, and a Y-axis of the three-dimensional Cartesian coordinate system Acceleration and acceleration on the Z-axis of the three-dimensional Cartesian coordinate system, and noise using the gravity sensor to detect acceleration; acceleration on the X-axis, acceleration on the Y-axis, on the Z-axis When the acceleration is not 0, 0, -9.8 m/s 2 , or the noise of the acceleration is greater than the noise threshold, the mobile terminal enters the normal mode from the power saving mode.
在第八方面的第一种实施方式中,所述噪声门限值为G0,其中0.0038g<G0<0.01g,1g=9.8米/秒2In a first embodiment of the eighth aspect, the noise threshold is G0, wherein 0.0038 g < G0 < 0.01 g, 1 g = 9.8 m / sec 2 .
本发明实施例提供了进入省电模式的方法,装置和移动终端,当判断出手机按照正面朝下方向的水平放置在静止的物体上,而不是被握持在用户手中时,此时用户一般不想使用手机,或者不着急使用手机接收和回复消息,在这种情况下,移动终端才进入省电模式,避免了在用户将所述移动终端以正面朝下的方式握持时进入省电模式,减少了移动终端的误判,提高了进入省电模式的准确性。本发明实施例还提供了退出省电模式的方法,装置和移动终端,当判断出移动终端不再按照正面朝下方向的水平放置并不再静止,或者移动终端不再静止,移动终端退出省电模式。因此,该退出省电模式的方式能够识别出用户正面朝下的方向拿起移动终端的情况,能够减少了退出省电模式的误判,提高了退出省电模式的准确性。The embodiment of the present invention provides a method, a device, and a mobile terminal for entering a power saving mode. When it is determined that the mobile phone is placed on a stationary object in a horizontally downward direction, instead of being held in the user's hand, the user generally Do not want to use the mobile phone, or do not worry about using the mobile phone to receive and reply to the message. In this case, the mobile terminal enters the power saving mode, avoiding entering the power saving mode when the user holds the mobile terminal in a face-down manner. It reduces the misjudgment of the mobile terminal and improves the accuracy of entering the power saving mode. The embodiment of the present invention further provides a method, a device and a mobile terminal for exiting the power saving mode. When it is determined that the mobile terminal is no longer placed horizontally in the front-down direction and is no longer stationary, or the mobile terminal is no longer stationary, the mobile terminal exits the province. Electrical mode. Therefore, the manner of exiting the power saving mode can recognize that the user picks up the mobile terminal in a direction facing downward, can reduce the false judgment of exiting the power saving mode, and improve the accuracy of exiting the power saving mode.
附图说明DRAWINGS
图1为本发明实施例的一种手机的结构示意图;1 is a schematic structural diagram of a mobile phone according to an embodiment of the present invention;
图2a为本发明实施例的手机屏幕朝上平放在桌面的示意图;2a is a schematic diagram of a mobile phone screen lying flat on a desktop according to an embodiment of the present invention;
图2b为本发明实施例的手机正面朝下平放在桌面的示意图;2b is a schematic diagram of a mobile phone lying face down on a desktop according to an embodiment of the present invention;
图3a为本发明实施例的手机被用户屏幕朝上的拿起的示意图;3a is a schematic diagram of a mobile phone being picked up by a user's screen upward according to an embodiment of the present invention;
图3b为本发明实施例的手机被用户正面朝下的拿起的示意图;FIG. 3b is a schematic diagram of the mobile phone being picked up by the user face down according to an embodiment of the present invention; FIG.
图4为本发明实施例的重力传感器检测到的一个加速度的噪声的曲线;4 is a graph showing noise of an acceleration detected by a gravity sensor according to an embodiment of the present invention;
图5为本发明实施例的重力传感器检测到的另一个加速度的噪声的曲线;5 is a graph showing noise of another acceleration detected by a gravity sensor according to an embodiment of the present invention;
图6为本发明实施例的一种进入省电模式的方法流程图;6 is a flowchart of a method for entering a power saving mode according to an embodiment of the present invention;
图7为本发明实施例的一种退出省电模式的方法流程图。FIG. 7 is a flowchart of a method for exiting a power saving mode according to an embodiment of the present invention.
图8为本发明实施例的另一种进入省电模式的方法流程图;FIG. 8 is a flowchart of another method for entering a power saving mode according to an embodiment of the present invention; FIG.
图9为本发明实施例的另一种退出省电模式的方法流程图;FIG. 9 is a flowchart of another method for exiting a power saving mode according to an embodiment of the present invention; FIG.
图10为本发明实施例的又一种进入省电模式的方法流程图; FIG. 10 is a flowchart of still another method for entering a power saving mode according to an embodiment of the present invention; FIG.
图11为本发明实施例的又一种退出省电模式的方法流程图;FIG. 11 is a flowchart of still another method for exiting a power saving mode according to an embodiment of the present invention; FIG.
图12为本发明实施例的进入省电模式的装置结构图;FIG. 12 is a structural diagram of an apparatus for entering a power saving mode according to an embodiment of the present invention; FIG.
图13为本发明实施例的退出省电模式的装置结构图。FIG. 13 is a structural diagram of an apparatus for exiting a power saving mode according to an embodiment of the present invention.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述。In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail with reference to the accompanying drawings.
本发明实施例涉及移动终端可以包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)等,该移动终端包括屏幕和重力传感器等。The mobile terminal may include a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), and the like, and the mobile terminal includes a screen, a gravity sensor, and the like.
本发明实施例中的省电模式,又叫做省电状态,低功耗模式等。处于省电模式的移动终端的功耗比正常工作时的功耗低。移动终端处于省电模式时,可以执行至少一个降低功耗的动作,例如:降低屏幕的亮度,关闭后台运行的程序,断开移动数据的连接,关闭GPS(Global Positioning System,全球定位系统)模块,禁用耳机插入检测功能,关闭指示灯的提醒,停止USB插拔的检测,禁用语音唤醒移动终端的功能,将动态壁纸替换为静态壁纸,将屏幕的显示由彩色变为黑白,降低与服务器交互的频率,关闭多核处理器中的一部分核,关闭多个处理器中的部分处理器,禁用软件自动更新功能等。本发明对省电模式的具体实现方式不做限定。作为一种实施方式,在省电模式下,移动终端仍保持一些紧急的功能或者用户选择的功能不关闭,例如接听呼叫功能等。作为另一种实施方式,如果在进入省电模式之前,移动终端没有从移动数据网络下载数据,在省电模式下,移动终端关闭移动数据网络的对应的RF电路或者断开与所述移动数据网络对应的连接。如果在进入省电模式之前,移动终端没有使用WiFi模块下载数据,在省电模式下,移动终端关闭WiFi模块。 The power saving mode in the embodiment of the present invention is also called a power saving state, a low power consumption mode, and the like. The power consumption of the mobile terminal in the power saving mode is lower than that in the normal operation. When the mobile terminal is in the power saving mode, at least one action of reducing power consumption can be performed, for example, reducing the brightness of the screen, turning off the program running in the background, disconnecting the mobile data, and turning off the GPS (Global Positioning System) module. Disable the headset insertion detection function, turn off the indicator light, stop the USB plug detection, disable the voice wake up mobile terminal function, replace the live wallpaper with a static wallpaper, change the screen display from color to black and white, and reduce interaction with the server. Frequency, turn off a part of the core in the multi-core processor, turn off some of the processors in the processor, disable the software automatic update function, and so on. The specific implementation manner of the power saving mode is not limited in the present invention. As an implementation manner, in the power saving mode, the mobile terminal still maintains some urgent functions or the functions selected by the user are not turned off, such as answering a call function. As another implementation manner, if the mobile terminal does not download data from the mobile data network before entering the power saving mode, in the power saving mode, the mobile terminal closes the corresponding RF circuit of the mobile data network or disconnects the mobile data. The connection corresponding to the network. If the mobile terminal does not use the WiFi module to download data before entering the power saving mode, in the power saving mode, the mobile terminal turns off the WiFi module.
本发明实施例中,省电模式可以分为普通省电模式和超级省电模式,在超级省电模式比在普通省电模式下关闭更多的硬件模块,禁用更多的软件功能等,或关闭更耗电的硬件模块、禁用更耗电的软件功能,或者硬件模块或软件功能以更省电的方式工作,以实现比普通省电模式更省电。此处的硬件模块是指如下图1中所示的各种硬件的部件。软件功能是指处理器运行软件代码以指令各种硬件模块所执行的各种功能,包括处理器运行的各种系统应用的功能或者第三方应用的功能等,如在后台运行程序,耳机插入检测,来电提醒,USB插拔检测,语音唤醒终端,动态壁纸等。In the embodiment of the present invention, the power saving mode can be divided into a general power saving mode and a super power saving mode, and more hardware modules are disabled in the super power saving mode than in the normal power saving mode, and more software functions are disabled, or Turn off more power-hungry hardware modules, disable more power-hungry software features, or hardware modules or software functions to work in a more power-efficient way to achieve more power savings than normal power-saving modes. The hardware modules herein refer to the components of the various hardware shown in FIG. 1 below. Software function means that the processor runs software code to instruct various functions performed by various hardware modules, including functions of various system applications running by the processor or functions of third-party applications, such as running programs in the background, and inserting headphones. , call reminder, USB plug detection, voice wake up terminal, live wallpaper and so on.
本发明实施例中的正常模式,又叫做正常状态,非省电模式,非省电状态等,是指移动终端进入省电模式之前正常工作的状态,或者退出省电模式之后正常工作的状态。The normal mode in the embodiment of the present invention, which is also called a normal state, a non-power saving mode, a non-power saving state, and the like, refers to a state in which the mobile terminal operates normally before entering the power saving mode, or a state in which the mobile terminal operates normally after exiting the power saving mode.
本发明实施例中,移动终端退出省电模式包括,移动终端开启进入省电模式时关闭的至少一部分硬件模块,和/或开启进入省电模式时至少一部分禁用的软件功能,或者移动终端启动一些设定的和硬件模块和软件功能,例如正常开机时启动的软件功能和硬件模块,或者用户设定的软件功能和硬件模块。In the embodiment of the present invention, the mobile terminal exiting the power saving mode includes: at least a part of the hardware module that is closed when the mobile terminal is turned on in the power saving mode, and/or at least a part of the disabled software function when the power saving mode is entered, or the mobile terminal starts some Set and hardware modules and software functions, such as software functions and hardware modules that are activated at normal startup, or user-set software functions and hardware modules.
为了让移动终端从正常模式进入省电模式,有多个实现方式。其中一类方式是,当移动终端接收到用户发出的进入省电模式的指令时,移动终端才进入省电模式。用户发出该指令的方式有多种,例如,语音命令,敲击操作,触控操作,摇晃移动终端等。另一类方式是,当移动终端检测到一些条件满足时,才进入省电模式,例如移动终端检测到剩余电量小于某个阈值,或者检测到当前处于用户设定的省电时间段,或者结合用户握持移动终端的状态和该移动终端当前的使用状态确定该移动终端当前被闲置(其实现方式可以参考中国申请CN201210112165.9)等。 In order to allow the mobile terminal to enter the power saving mode from the normal mode, there are multiple implementations. One of the ways is that when the mobile terminal receives an instruction from the user to enter the power saving mode, the mobile terminal enters the power saving mode. There are various ways for the user to issue the command, such as voice commands, tap operations, touch operations, shaking mobile terminals, and the like. Another way is to enter the power saving mode when the mobile terminal detects that some conditions are met, for example, the mobile terminal detects that the remaining power is less than a certain threshold, or detects that the power saving time period currently set by the user, or combines The state in which the user holds the mobile terminal and the current usage state of the mobile terminal determines that the mobile terminal is currently idle (the implementation manner thereof may refer to the Chinese application CN201210112165.9).
相应的,为了让移动终端从省电模式进入正常模式,也有多个实现方式。其中一类方式是,当移动终端接收到用户发出的进入省电模式的指令时,移动终端才进入省电模式。用户发出该指令的方式有多种,例如,语音命令,敲击操作,触控操作,摇晃移动终端等。当移动终端检测到一些条件满足时,才退出省电模式,例如移动终端检测到剩余电量已经大于某个阈值,或者检测到当前处于用户设定的省电时间段之外的时间段,或者结合用户握持移动终端的状态和该移动终端当前的使用状态确定该移动终端当前被用户使用(其实现方式可以参考中国申请CN201210112165.9)等。Correspondingly, in order to let the mobile terminal enter the normal mode from the power saving mode, there are also multiple implementation manners. One of the ways is that when the mobile terminal receives an instruction from the user to enter the power saving mode, the mobile terminal enters the power saving mode. There are various ways for the user to issue the command, such as voice commands, tap operations, touch operations, shaking mobile terminals, and the like. When the mobile terminal detects that some conditions are met, the power saving mode is exited, for example, the mobile terminal detects that the remaining power is greater than a certain threshold, or detects a time period that is currently outside the power saving time period set by the user, or combines The state in which the user holds the mobile terminal and the current usage state of the mobile terminal determines that the mobile terminal is currently used by the user (the implementation manner thereof may refer to the Chinese application CN201210112165.9).
现有技术中,如美国申请US8117471 B2,还提供了一种让手持电子装置进入省电模式和退出省电模式的方案。该方案通过手持电子装置的重力传感器检测到的X轴上的加速度,Y轴上的加速度和Z轴上的加速度,并判断三轴上的加速度是否落入预设的范围,如果是,则手持电子装置进入省电模式,如果否,则手持电子装置恢复至正常运作的模式。该方案没有考虑手持电子装置被用户握持的情况,当用户握持着手持电子装置,并且该手持电子装置保持正面朝下的水平姿势,此时,根据该方案,手持电子装置会进入省电模式,然而,由于用户此时握持着手持电子装置,通常表示用户此时仍想使用该手持电子装置,如果进入省电模式,容易让用户无法使用一些因为进入省电模式而关闭的功能,从而影响用户对手持电子装置的正常使用。另一方面,该方案对于手持电子装置被用户按照正面朝下的水平姿势拿起的情况,也不会恢复到正常运作的模式,而当用户拿起该手持电子装置,通常也是用户想要使用该手持电子装置,因此该方案也造成了退出省电模式的误判,从而影响了用户的体验。In the prior art, as in U.S. Application No. 8,118,747 B2, a solution for allowing the handheld electronic device to enter the power saving mode and exit the power saving mode is also provided. The solution detects the acceleration on the X-axis, the acceleration on the Y-axis, and the acceleration on the Z-axis through the gravity sensor of the handheld electronic device, and determines whether the acceleration on the three axes falls within a preset range, and if so, the hand-held The electronic device enters a power saving mode, and if not, the handheld electronic device returns to a normal operating mode. The solution does not consider the case where the handheld electronic device is held by the user. When the user holds the handheld electronic device and the handheld electronic device maintains a horizontal posture facing downward, according to the solution, the handheld electronic device enters the power saving manner. Mode, however, since the user is holding the handheld electronic device at this time, it usually means that the user still wants to use the handheld electronic device at this time. If the power saving mode is entered, it is easy for the user to use some functions that are turned off because of entering the power saving mode. Thereby affecting the normal use of the handheld electronic device by the user. On the other hand, the solution does not return to the normal operation mode when the handheld electronic device is picked up by the user in a horizontally facing downward posture, and when the user picks up the handheld electronic device, the user usually wants to use it. The handheld electronic device, therefore, also causes a misjudgment of exiting the power saving mode, thereby affecting the user experience.
本发明实施例中提供了一种快速进入/离开省电模式的功能,此处的”/”表示“或”,该快速进入/离开省电模式功能结合了开启省电模式和关闭省电模式两种 功能,使得用户能通过改变移动终端的放置方式让移动终端方便的进入省电模式和退出省电模式,并且准确性比较高。当用户开启了该功能,当移动终端被正面朝下的方向水平放置,并且静止的放置物体上而不是在用户的手中时,则移动终端无需用户的操作就进入省电模式。此时不会发生在移动终端被用户拿在手中时仍进入省电模式的情况,从而减少了进入省电模式的误判,提高了进入省电模式的准确性。而当移动终端的状态发生了改变,不再处于正面朝下的水平放置的在静止物体的状态时,例如被用户拿起或者被翻转成竖直等,则移动终端无需用户的操作就进入正常模式,该退出省电模式的方式能够识别出用户正面朝下的方向拿起移动终端的情况,能够减少了退出省电模式的误判,提高了退出省电模式的准确性。当用户没有开启该功能时,移动终端可以参照现有技术进行正常工作。一种实现方式是,在移动终端中的电源管理界面或快捷功能菜单中增加一个该快速进入或离开省电模式的功能的选项或按钮,由用户来选择开启和关闭。另一种实现方式是,将移动终端中的某个硬件按键或按钮与该快速进入/离开省电模式的功能关联,用户可以通过操作该硬件按键实现对该快速进入/离开省电模式的功能的开启和关闭。又一种实现方式是,定义语音,手势等其他命令来实现快速进入/离开省电模式的功能的开启和关闭,本发明对此不做限定。In the embodiment of the present invention, a function of quickly entering/entering the power saving mode is provided, where “/” indicates “or”, and the fast entry/exit power saving mode function combines the power saving mode and the power saving mode. Two The function enables the user to conveniently enter the power saving mode and exit the power saving mode by changing the placement mode of the mobile terminal, and the accuracy is relatively high. When the user turns on the function, when the mobile terminal is placed horizontally in a face-down direction and is placed on the stationary object instead of the user's hand, the mobile terminal enters the power saving mode without the user's operation. At this time, the situation that the mobile terminal still enters the power saving mode when the mobile terminal is held by the user does not occur, thereby reducing the misjudgment of entering the power saving mode and improving the accuracy of entering the power saving mode. When the state of the mobile terminal changes and is no longer in the state of the stationary object placed horizontally downward, for example, picked up by the user or turned into vertical, the mobile terminal enters the normal state without the user's operation. Mode, the way of exiting the power saving mode can recognize that the user picks up the mobile terminal in a direction facing downward, can reduce the false judgment of exiting the power saving mode, and improve the accuracy of exiting the power saving mode. When the user does not enable the function, the mobile terminal can perform normal work with reference to the prior art. One implementation manner is to add an option or button of the function of quickly entering or leaving the power saving mode to the power management interface or the shortcut function menu in the mobile terminal, and the user selects to turn on and off. Another implementation manner is that a certain hardware button or button in the mobile terminal is associated with the function of the fast entry/exit power saving mode, and the user can implement the function of the fast entry/exit power saving mode by operating the hardware button. Turn it on and off. In another implementation manner, other functions such as a voice, a gesture, and the like are defined to implement the function of quickly entering/entering the power saving mode, which is not limited by the present invention.
可以理解,也可以将快速进入省电模式的功能,和快速离开省电模式的功能作为两个独立的选项由用户分别来选择和控制。如果用户仅开启了快速进入省电模式的功能,而没有开启快速退出省电模式的功能,则移动终端只支持改变移动终端的放置方式让移动终端方便的进入省电模式,而不支持改变移动终端的放置方式让移动终端方便的退出省电模式。反之也是类似,此处不再赘述。It can be understood that the function of quickly entering the power saving mode and the function of quickly leaving the power saving mode can be separately selected and controlled by the user as two independent options. If the user only enables the function of quickly entering the power saving mode without turning on the function of quickly exiting the power saving mode, the mobile terminal only supports changing the placement mode of the mobile terminal, so that the mobile terminal can conveniently enter the power saving mode without supporting the change of the mobile terminal. The way the terminal is placed allows the mobile terminal to conveniently exit the power saving mode. The reverse is also similar, and will not be repeated here.
本发明实施例中的第一持续时间与第二持续时间可以相同,也可以不同, 本发明对此不做限定。在一个实施方式中,第一持续时间用于判断移动终端是否处于正面朝下的水平放置的状态。如果重力加速度传感器检测到的X轴,Y轴和Z轴上的加速度在所述第一持续时间内分别保持为0、0、-9.8m/s2,则确定所述移动终端处于正面朝下的水平放置的状态。在另一个实施方式中,第二持续时间用于判断移动终端是否放置在静止物体上。如果重力加速度传感器检测到的噪声在所述第二持续时间内低于噪声门限值,则确定所述移动终端放在静止的物体上,而没有被用户握持。The first duration and the second duration in the embodiment of the present invention may be the same or different, and the present invention does not limit this. In one embodiment, the first duration is used to determine whether the mobile terminal is in a horizontally placed, face down orientation. If the accelerations detected by the gravitational acceleration sensor on the X axis, the Y axis, and the Z axis are respectively maintained at 0, 0, -9.8 m/s 2 for the first duration, it is determined that the mobile terminal is face down The state of the horizontal placement. In another embodiment, the second duration is used to determine if the mobile terminal is placed on a stationary object. If the noise detected by the gravitational acceleration sensor is below the noise threshold for the second duration, it is determined that the mobile terminal is placed on a stationary object without being held by the user.
本发明实施例中的能量门限值是用于判断移动终端的正面是否有物体覆盖,该能量门限值可以设置为接近红外传感器发射能量的一个值,例如,红外传感器发射能量的90%或者80%等,本发明对此不做限定。The energy threshold in the embodiment of the present invention is used to determine whether there is object coverage on the front side of the mobile terminal, and the energy threshold may be set to a value close to the energy emitted by the infrared sensor, for example, 90% of the energy emitted by the infrared sensor or 80%, etc., the invention is not limited thereto.
本发明实施例中的压力门限值用于判断移动终端的背面的受力,该压力门限值可以设置为接近0的一个值,例如0.1牛顿或0.05牛顿等,当压力传感器检测到的压力低于压力门限值,说明移动终端的背面没有物体接触,压力传感器检测到的压力高于压力门限值,说明移动终端的背面有物体接触。The pressure threshold value in the embodiment of the present invention is used for determining the force on the back side of the mobile terminal, and the pressure threshold value may be set to a value close to 0, such as 0.1 Newton or 0.05 Newton, etc., when the pressure detected by the pressure sensor Below the pressure threshold, there is no object contact on the back of the mobile terminal, and the pressure detected by the pressure sensor is higher than the pressure threshold, indicating that there is object contact on the back of the mobile terminal.
本发明实施例给出的“接近”、“大约”的数值范围仅仅是一种举例,本领域技术人员还可以根据实验数据或用户的习惯等设置其他的数值范围。The numerical ranges of "close" and "about" given in the embodiments of the present invention are merely examples, and those skilled in the art may also set other numerical ranges according to experimental data or user habits and the like.
以下以移动终端为手机为例进行说明,可以理解,以下的实施例也适用于具有重力传感器的其他移动终端。Hereinafter, the mobile terminal is taken as an example for the mobile phone. It can be understood that the following embodiments are also applicable to other mobile terminals having a gravity sensor.
图1示出的是与本发明实施例相关的手机100的部分结构的框图。参考图1,手机100包括、RF(Radio Frequency,射频)电路110、存储器120、输入单元130、显示单元140、重力传感器150、压力传感器151、音频电路160、WiFi(wireless fidelity,无线保真)模块170、处理器180、以及电源190等部件。本领域技术人员可以理解,图1中示出的手机结构并不构成对手机的限定,可以包括比图示 更多或更少的部件,或者组合某些部件,或者不同的部件布置。下面结合图1对手机100的各个构成部件进行具体的介绍:1 is a block diagram showing a portion of the structure of a cellular phone 100 related to an embodiment of the present invention. Referring to FIG. 1, the mobile phone 100 includes an RF (Radio Frequency) circuit 110, a memory 120, an input unit 130, a display unit 140, a gravity sensor 150, a pressure sensor 151, an audio circuit 160, and a wireless fidelity (wireless fidelity). Module 170, processor 180, and power supply 190 and the like. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 1 does not constitute a limitation on the mobile phone, and may include More or fewer parts, or some parts, or different parts. The components of the mobile phone 100 will be specifically described below with reference to FIG. 1 :
RF电路110用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器180处理;另外,将设计上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。此外,RF电路110还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA(Code Division Multiple Access,码分多址)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、LTE(Long Term Evolution,长期演进)、电子邮件、SMS(Short Messaging Service,短消息服务)等。The RF circuit 110 is configured to receive and transmit signals during the transmission or reception of information or during a call. Specifically, after receiving the downlink information of the base station, it is processed by the processor 180. In addition, the uplink data is designed to be sent to the base station. Generally, RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, RF circuitry 110 can also communicate with the network and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
存储器120用于存储软件程序以及模块,处理器180通过运行存储在存储器120的软件程序以及模块,从而执行手机100的各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图象播放功能等)等;存储数据区可存储根据手机100的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 120 is used to store software programs and modules, and the processor 180 executes various functional applications and data processing of the mobile phone 100 by running software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored. Data created according to the use of the mobile phone 100 (such as audio data, phone book, etc.). Moreover, memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元130用于接收输入的数字或字符信息,以及产生与手机100的用户设置以及功能控制有关的键信号输入。具体地,输入单元130可包括触控面板131以及其他输入设备132。触控面板131,也称为触摸屏,可收集用户在其 上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板131上或在触控面板131附近的操作),并根据预先设定的程式驱动相应的连接装置。触控面板131包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板131。除了触控面板131,输入单元130还可以包括其他输入设备132。具体地,其他输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 130 is configured to receive input numeric or character information, and generate a key signal input related to user settings and function control of the mobile phone 100. Specifically, the input unit 130 may include a touch panel 131 and other input devices 132. A touch panel 131, also referred to as a touch screen, can collect users in it a touch operation on or near (such as a user using a finger or a stylus or the like on the touch panel 131 or in the vicinity of the touch panel 131), and driving the corresponding connection device according to a preset program . The touch panel 131 includes two parts of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 180 is provided and can receive commands from the processor 180 and execute them. In addition, the touch panel 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 131, the input unit 130 may also include other input devices 132. Specifically, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元140用于显示由用户输入的信息或提供给用户的信息以及手机100的各种菜单。显示单元140可包括显示面板141,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板141。进一步的,触控面板131可覆盖显示面板141,当触控面板131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图1中,触控面板131与显示面板141是作为两个独立的模块来实现手机100的输入和输入功能,但是在某些实施例中,可以将触控面板131与显示面板141集成而实现手机100的输入和输出功能。本发明实施例的屏幕包括所述触控面板131与所述显示面板141的至少一个。具体的,显示面板141用于显示设置该快速进入/离开省电模式的功能的界面,触控面板131用于接收用户输入的开启该快速进入/离开省电模式的功能的指令,以及关闭该快速进入/离开省电模式的功能的指令。 The display unit 140 is for displaying information input by the user or information provided to the user and various menus of the mobile phone 100. The display unit 140 may include a display panel 141. Alternatively, the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch panel 131 can cover the display panel 141. When the touch panel 131 detects a touch operation on or near the touch panel 131, the touch panel 131 transmits to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event. The type provides a corresponding visual output on display panel 141. Although the touch panel 131 and the display panel 141 are used as two independent modules to implement the input and input functions of the mobile phone 100 in FIG. 1, in some embodiments, the touch panel 131 may be integrated with the display panel 141. The input and output functions of the mobile phone 100 are implemented. The screen of the embodiment of the present invention includes at least one of the touch panel 131 and the display panel 141. Specifically, the display panel 141 is configured to display an interface for setting a function of the fast entry/exit power saving mode, and the touch panel 131 is configured to receive an instruction input by the user to enable the fast entry/exit power saving mode, and close the An instruction to quickly enter/leave the function of the power saving mode.
需要说明的是,手机通常包括正面,背面以及侧边。手机的正面与背面相对,正面与背面之间为四条侧边。手机的正面一般包括显示面板141,可选的,还包括触控面板131和一些按键。手机的背面一般包括摄像头,可选的,还有一些生产厂商的标识等。手机的侧边上一般设置有以下至少一个:音量按键,电源按键,电源接口,USB接口,和耳机插孔等。如图2a所示,手机的背面接触了桌面,手机的正面和侧边没有接触桌面。如图2b所示,手机的正面接触了桌面,手机的背面和侧边没有接触桌面。如图3b所示,用户握持着手机,其中,用户的拇指接触了手机的正面,用户的食指和中指接触了手机的侧边和背面。It should be noted that the mobile phone usually includes a front side, a back side and a side side. The front and back of the phone are opposite, with four sides between the front and back. The front side of the mobile phone generally includes a display panel 141, and optionally, a touch panel 131 and some buttons. The back of the phone generally includes a camera, optional, and some manufacturers' logos. At least one of the following is generally provided on the side of the mobile phone: a volume button, a power button, a power port, a USB port, and a headphone jack. As shown in Figure 2a, the back of the phone touches the desktop, and the front and sides of the phone do not touch the desktop. As shown in Figure 2b, the front of the phone touches the desktop, and the back and sides of the phone do not touch the desktop. As shown in FIG. 3b, the user holds the mobile phone, wherein the user's thumb touches the front of the mobile phone, and the user's index finger and middle finger touch the side and back of the mobile phone.
需要说明的是,以下以触控面板131与显示面板141的位于手机上的同一面为例进行说明,当手机以正面朝下的方式放置时(如图2b、3b所示),也意味着意味着手机是以触控面板131朝下和141也朝下的方式放置。当手机以正面向上的方式放置时(如图2a、3a所示),意味着手机也是手机以触控面板131向上和显示面板141也向上的方式放置。可以理解,触控面板131与显示面板141的也可以位于手机上的不同的面,此时可以以显示面板141的放置方式为准进行判断。It should be noted that the following uses the same surface of the touch panel 131 and the display panel 141 on the mobile phone as an example. When the mobile phone is placed face down (as shown in FIGS. 2b and 3b), it also means This means that the mobile phone is placed with the touch panel 131 facing down and 141 also facing down. When the mobile phone is placed in a face-up manner (as shown in FIGS. 2a and 3a), it means that the mobile phone is also placed in such a manner that the touch panel 131 is upward and the display panel 141 is also upward. It can be understood that the touch panel 131 and the display panel 141 can also be located on different faces of the mobile phone. In this case, the determination can be made based on the placement mode of the display panel 141.
手机100还包括重力传感器150,能够检测重力加速度在各个方向上(一般为手机的三维直角坐标系的三轴)的分量,用于识别手机的状态。The mobile phone 100 also includes a gravity sensor 150 that is capable of detecting the component of the gravitational acceleration in various directions (typically the three axes of the three-dimensional Cartesian coordinate system of the handset) for identifying the status of the handset.
重力传感器150能够检测到重力加速度的分量的单位可以是米/秒2(m/s2),或者g,其中1g=9.8米/秒2(m/s2)。三维直角坐标系与手机的关系可以如图2a所示(也可以采用其他坐标系,本发明实施例对此不做限定),其中,手机100按照触控面板131(或显示面板141)朝上的方向放置在桌面200上,并且桌面200为水平。以下以触控面板131为例进行说明。坐标系的原点为手机或者触控面板13的几何中心,Z轴垂直于触控面板131,并且指向触控面板131 正面(即用户进行触控操作的一面)之外的方向,X轴和Y轴在水平面内,X轴平行于触控面板131的较短的边,并且指向如图中所示的右边,Y轴平行于触控面板131的较长的边,并且指向如图中所示的上方。在手机在桌面200上稳定后,重力传感器150检测到的X轴和Y轴上的加速度均为0,重力传感器150检测到的Z轴上的加速度约等于标准重力加速度1g=9.8米/秒2(m/s2)。仍然采用同样的三维直角坐标系,当所述手机100按照触控面板131朝下方向的放置在所述桌面200上(如图2b所示),并且桌面200为水平时,在手机在桌面200上稳定之后,重力传感器150检测到的X轴和Y轴上的加速度均为0,重力传感器150检测到的Z轴上的加速度约等于重力加速度-9.8m/s2。因此,通过判断Z轴上的加速度是否为负,可以判断触控面板131是否朝下,通过判断X轴和Y轴方向的加速度是否为0,可以判断出触控面板131是否水平。如果考虑手机放置的桌面并非绝对水平,通过判断X轴和Y轴方向的加速度是否为一个接近0的一个较小的值(例如在-1米/秒2到1米/秒2之间或其他区间,具体可以由用户设置或由实验数据设置),以判断出触控面板131是否大致水平。The unit in which the gravity sensor 150 can detect the component of the gravitational acceleration may be meters per second 2 (m/s 2 ), or g, where 1 g = 9.8 m/s 2 (m/s 2 ). The relationship between the three-dimensional Cartesian coordinate system and the mobile phone can be as shown in FIG. 2a (other coordinate systems can also be used, which is not limited in the embodiment of the present invention), wherein the mobile phone 100 faces up according to the touch panel 131 (or the display panel 141). The orientation is placed on the desktop 200 and the desktop 200 is horizontal. Hereinafter, the touch panel 131 will be described as an example. The origin of the coordinate system is the geometric center of the mobile phone or the touch panel 13, the Z axis is perpendicular to the touch panel 131, and points to the direction other than the front side of the touch panel 131 (ie, the side on which the user performs the touch operation), the X axis and the Y axis. The axis is in a horizontal plane, the X axis is parallel to the shorter side of the touch panel 131, and points to the right side as shown in the figure, the Y axis is parallel to the longer side of the touch panel 131, and is pointed as shown in the figure. Above. After the mobile phone is stabilized on the desktop 200, the accelerations on the X-axis and the Y-axis detected by the gravity sensor 150 are both 0, and the acceleration on the Z-axis detected by the gravity sensor 150 is approximately equal to the standard gravity acceleration 1 g=9.8 m/sec 2 (m/s 2 ). The same three-dimensional Cartesian coordinate system is still used. When the mobile phone 100 is placed on the desktop 200 in the downward direction of the touch panel 131 (as shown in FIG. 2b), and the desktop 200 is horizontal, the mobile phone is on the desktop 200. After the upper stabilization, the accelerations on the X-axis and the Y-axis detected by the gravity sensor 150 are both 0, and the acceleration on the Z-axis detected by the gravity sensor 150 is approximately equal to the acceleration of gravity -9.8 m/s 2 . Therefore, by determining whether the acceleration on the Z-axis is negative, it can be determined whether the touch panel 131 is facing downward or not, and whether the acceleration of the X-axis and the Y-axis direction is 0 or not, whether the touch panel 131 is horizontal or not can be determined. If you consider that the desktop placed on the phone is not absolutely level, determine if the acceleration in the X-axis and Y-axis directions is a small value close to 0 (for example, between -1 m / s 2 to 1 m / s 2 or other intervals) Specifically, it may be set by a user or set by experimental data to determine whether the touch panel 131 is substantially horizontal.
重力传感器150还能检测到加速度的噪声,即重力加速度的变化量,例如:
Figure PCTCN2016077878-appb-000001
。可以理解,加速度的噪声还可以是其他计算方式,本发明实施例对此不做限定。当手机100放置在静止(即没有移动)的物体上,例如水平的桌面上,而没有被握持在用户的手中时,重力传感器150检测到的加速度的噪声的时间曲线如图4所示,其中横坐标为毫秒(ms),纵坐标的单位为g。从该曲线可知,当手机放置在静止的物体上,例如水平的无移动的桌面上,而没有被握持在用户的手中时,检测到的加速度的噪声比较小,一般小于0.004g。而当手机100被静止的用户握持在手中并保持稳定(例如图3a和3b所示),时,重力传感器 150检测到的加速度的噪声的时间曲线如图5所示,该图中测得的加速度的噪声的值一般大于0.1g,这种微小的噪声主要是由于用户的脉搏和微小的抖动等影响造成的。可见,图4和图5中的加速度的噪声的值有明显的差异,通过判断重力传感器150检测到的加速度的噪声是否小于一个噪声门限值,可以判断手机100是否放置在一个静止的物体上,如果将该噪声门限值设置的足够小,如0.004g,可以比较准确的判断出手机100是否被用户握持。
The gravity sensor 150 can also detect the noise of the acceleration, that is, the amount of change in the gravitational acceleration, for example:
Figure PCTCN2016077878-appb-000001
. It can be understood that the noise of the acceleration may also be other calculation manners, which is not limited by the embodiment of the present invention. When the mobile phone 100 is placed on an object that is stationary (ie, not moving), such as a horizontal desktop, and is not held in the user's hand, the time curve of the noise of the acceleration detected by the gravity sensor 150 is as shown in FIG. The abscissa is milliseconds (ms) and the ordinate is g. From this curve, when the mobile phone is placed on a stationary object, such as a horizontal, non-moving desktop, and is not held in the user's hand, the detected acceleration noise is relatively small, generally less than 0.004 g. When the mobile phone 100 is held in the hand by the stationary user and remains stable (for example, as shown in FIGS. 3a and 3b), the time curve of the noise of the acceleration detected by the gravity sensor 150 is as shown in FIG. 5, which is measured in the figure. The value of the noise of the acceleration is generally greater than 0.1 g. This small noise is mainly caused by the influence of the user's pulse and minute jitter. It can be seen that the values of the noise of the accelerations in FIG. 4 and FIG. 5 are significantly different. By determining whether the noise of the acceleration detected by the gravity sensor 150 is less than a noise threshold, it can be determined whether the mobile phone 100 is placed on a stationary object. If the noise threshold is set small enough, such as 0.004g, it can be relatively accurately determined whether the mobile phone 100 is held by the user.
需要说明的是,本发明实施例提到的噪声门限值除了0.004g,也可以设置为其他值。如果手机放置在静止的桌面时,重力传感器150能检测到加速度的噪声为G1;手机被用户稳定的握持在手中,并且用户静止时,重力传感器150能检测到加速度的噪声为G2;手机被用户随身携带在口袋或者背包里,并且用户在运动,如步行,跑步或乘坐交通工具时,重力150能检测到加速度的噪声为G3。由于G3>G2>G1。将所述噪声门限值G0设置为大于G1而小于G2的任何值,例如将G0设置为0.0038g到0.01g之间的任何值,如0.004g,通过比较重力传感器检测到的加速度的噪声与所述噪声门限值,能够判断出手机被放置在静止的物体上,而不是被运动的用户随身携带在口袋或者背包里,甚至不是由静止的用户握持。It should be noted that the noise threshold mentioned in the embodiment of the present invention may be set to other values in addition to 0.004 g. If the mobile phone is placed on a stationary desktop, the gravity sensor 150 can detect the acceleration noise as G1; the mobile phone is stably held by the user in the hand, and when the user is stationary, the gravity sensor 150 can detect the acceleration noise as G2; The user carries it in a pocket or a backpack, and when the user is exercising, such as walking, running, or riding a vehicle, the gravity 150 can detect the acceleration noise as G3. Since G3>G2>G1. Setting the noise threshold G0 to be greater than G1 and less than any value of G2, for example, setting G0 to any value between 0.0038 g and 0.01 g, such as 0.004 g, by comparing the noise of the acceleration detected by the gravity sensor with The noise threshold can determine that the mobile phone is placed on a stationary object, rather than being carried by a moving user in a pocket or backpack, or even held by a stationary user.
手机100还包括压力传感器151,该压力传感器151设置在手机100的背面(即没有触控面板131和显示面板141的一面)。该压力传感器用于检测手机背面的所受到的压力,为了测量准确,可以均匀的分布在背面的全部区域,或者根据具体情况将背面压力传感器设置在手机背面的指定区域,如背面的后置摄像头的附近,背面的四角附近和四边附近等。以下以压力传感器151均匀的分布在背面的全部区域为例说明:当所述手机当前的状态为触控面板131(或显示面板141)朝上放置在物体上时,所述压力传感器检测到所述手机背面的受力为 M1,该M1大于0,一般为手机自身的重力;所述手机当前的状态为触控面板131(或显示面板141)朝下放置在物体上时,所述压力传感器检测到所述手机背面的受力大约为0时;所述手机当前的状态为用户握持时,所述压力传感器检测到所述移动终端背面的受力为M2,M2一般大于0。The mobile phone 100 further includes a pressure sensor 151 disposed on the back of the mobile phone 100 (i.e., without the touch panel 131 and the side of the display panel 141). The pressure sensor is used to detect the pressure on the back of the mobile phone. For accurate measurement, it can be evenly distributed over the entire area of the back, or the back pressure sensor can be placed in a designated area on the back of the mobile phone according to the specific situation, such as the rear camera on the back. Near, around the four corners and around the four sides. Hereinafter, the pressure sensor 151 is uniformly distributed over the entire area of the back surface as an example. When the current state of the mobile phone is that the touch panel 131 (or the display panel 141) is placed on the object upward, the pressure sensor detects the location. The force on the back of the phone is M1, the M1 is greater than 0, which is generally the gravity of the mobile phone itself; when the current state of the mobile phone is that the touch panel 131 (or the display panel 141) is placed down on the object, the pressure sensor detects the back of the mobile phone. When the current state of the mobile phone is the user's grip, the pressure sensor detects that the force on the back of the mobile terminal is M2, and M2 is generally greater than zero.
手机100还可以包括其他传感器,如红外传感器(图中未标示)。红外传感器设置于手机的正面。该红外传感器用于检测反射回来的能量和波长,如果反射的能量比较大(大于一个能量门限值,),接近红外传感器发射出的能量,说明手机100的正面有物体遮挡,如果反射的能量很小(小于一个能量门限值),说明手机100的正面没有物体遮挡。红外传感器可以有一个,设置在显示面板141的上方,或者前置摄像头附近,也可以有至少两个,分别设置于显示面板141的上方和下方。The handset 100 may also include other sensors, such as infrared sensors (not shown). The infrared sensor is placed on the front of the phone. The infrared sensor is used for detecting the reflected energy and wavelength. If the reflected energy is relatively large (greater than an energy threshold), the energy emitted by the infrared sensor is close to the front surface of the mobile phone 100, if the reflected energy is reflected. Very small (less than one energy threshold), indicating that there is no object obstruction on the front of the mobile phone 100. There may be one infrared sensor, which is disposed above the display panel 141, or near the front camera, or at least two, which are respectively disposed above and below the display panel 141.
手机100还可以包括光传感器,该光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在手机100移动到耳边时,关闭显示面板141和/或背光。至于手机100还可配置的陀螺仪、气压计、湿度计、温度计等其他传感器,在此不再赘述。光传感器可以有一个,设置在显示面板141的上方,或者前置摄像头附近,也可以有至少两个,分别设置于显示面板141的上方和下方。The mobile phone 100 may further include a light sensor, which may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may move when the mobile phone 100 moves to the ear , the display panel 141 and/or the backlight are turned off. Other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and the like that can be configured in the mobile phone 100 will not be described herein. There may be one light sensor disposed above the display panel 141 or near the front camera, or at least two, respectively disposed above and below the display panel 141.
音频电路160、扬声器161,麦克风162提供用户与手机100之间的音频接口。音频电路160将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,麦克风162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出至RF电路108以发送给比如另一手机,或者将音频数据输出至存储器120以便进一步处理。 The audio circuit 160, the speaker 161, and the microphone 162 provide an audio interface between the user and the handset 100. The audio circuit 160 transmits the received audio signal converted by the audio data to the speaker 161, and is converted into a sound signal output by the speaker 161. On the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160. It is then converted to audio data, which is then output to RF circuitry 108 for transmission to, for example, another handset, or audio data is output to memory 120 for further processing.
WiFi属于短距离无线传输技术,手机100通过WiFi模块170收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图1示出了WiFi模块170,但是可以理解的是,其并不属于手机100的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-range wireless transmission technology. The mobile phone 100 transmits and receives emails, browses web pages, and accesses streaming media through the WiFi module 170, and provides wireless broadband Internet access for users. Although FIG. 1 shows the WiFi module 170, it can be understood that it does not belong to the essential configuration of the mobile phone 100, and may be omitted as needed within the scope of not changing the essence of the invention.
处理器180是手机100的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行手机100的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理单元;优选的,处理器180可集成应用处理器(Application Processor,AP)和调制解调处理器,还可以包括微控制器(Microcontroller Unit,MCU),其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信,微控制器可以分担应用处理器的一些工作。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。The processor 180 is the control center of the handset 100, connecting various portions of the entire handset with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120, The various functions and processing data of the mobile phone 100 are executed to perform overall monitoring of the mobile phone. Optionally, the processor 180 may include one or more processing units; preferably, the processor 180 may integrate an application processor (AP) and a modem processor, and may further include a microcontroller (Microcontroller Unit, MCU), wherein the application processor mainly processes an operating system, a user interface, an application, etc., the modem processor mainly processes wireless communication, and the microcontroller can share some work of the application processor. It can be understood that the above modem processor may not be integrated into the processor 180.
处理器180判断手机100是否按照触控面板131朝下方向的大致水平的放置的方式包括以下任意一种:(1)处理器180判断X轴、Y轴和Z轴上的加速度是否分别为0、0、-9.8m/s2,如果是,则可以判断手机100是按照触控面板131朝下方向的大致水平的放置;(2)处理器180确定红外传感器检测到的反射能量和反射波长,如果反射能量很大(大于能量门限值)且反射波长对应木头或玻璃,可以判断出手机100是按照触控面板131朝下放在桌面上,然后进一步判断X轴、Y轴上的加速度是否为0,如果是,则可以确定手机100是按照触控面板131朝下方向的大致水平的放置在桌面上;(3)处理器180判断手机100背面的压力传感器151检测到的压力是否接近0,如果是,则判断是按照触控面板131朝下方向的放置,进一步判断X轴、Y轴上的加速度是否为0,如果是, 则可以确定手机100是按照触控面板131朝下方向的大致水平的放置在桌面上。The processor 180 determines whether the mobile phone 100 is placed in a substantially horizontal manner in the downward direction of the touch panel 131, and includes any one of the following: (1) The processor 180 determines whether the accelerations on the X-axis, the Y-axis, and the Z-axis are respectively 0. 0, -9.8m/s 2 , if yes, it can be determined that the mobile phone 100 is placed in a substantially horizontal direction according to the downward direction of the touch panel 131; (2) the processor 180 determines the reflected energy and the reflected wavelength detected by the infrared sensor. If the reflected energy is large (greater than the energy threshold) and the reflection wavelength corresponds to wood or glass, it can be determined that the mobile phone 100 is placed on the table according to the touch panel 131, and then the acceleration on the X-axis and the Y-axis is further determined. 0, if yes, it can be determined that the mobile phone 100 is placed on the desktop substantially horizontally according to the downward direction of the touch panel 131; (3) the processor 180 determines whether the pressure detected by the pressure sensor 151 on the back of the mobile phone 100 is close to 0. If yes, it is determined that the acceleration of the X-axis and the Y-axis is 0 according to the downward direction of the touch panel 131. If yes, it can be determined that the mobile phone 100 is in accordance with the touch panel 131. A substantially horizontal direction is placed on the desktop.
进一步的,所述处理器180通过加速度的噪声的大小能够判断手机100是否放置在静止的物体上。只有当处理器180判断出手机100按照触控面板131朝下方向的大致水平放置在静止的物体上,处理器180控制手机进入省电模式,例如关闭关闭GPS模块,禁用耳机插入检测功能,关闭指示灯的提醒,停止USB插拔的检测,关闭处理器中的多个处理单元中的一部分等。在这种情况下,此时用户一般不想使用手机,或者不着急使用手机接收和回复消息,因此进入省电模式并不影响用户的使用。当所述重力传感器检测到手机100的状态发生改变,如被用户拿起,或者用户翻转了手机而使得触控面板不在大致水平的朝下,则处理器180控制手机退出省电模式,从而恢复到正常模式。Further, the processor 180 can determine whether the mobile phone 100 is placed on a stationary object by the magnitude of the noise of the acceleration. Only when the processor 180 determines that the mobile phone 100 is placed on a stationary object in a substantially horizontal direction in the downward direction of the touch panel 131, the processor 180 controls the mobile phone to enter a power saving mode, for example, turning off the GPS module, disabling the earphone insertion detection function, and turning off Reminder of the indicator light, stop the detection of USB plug and play, close some of the multiple processing units in the processor, and so on. In this case, at this time, the user generally does not want to use the mobile phone, or does not rush to use the mobile phone to receive and reply to the message, so entering the power saving mode does not affect the user's use. When the gravity sensor detects that the state of the mobile phone 100 has changed, such as being picked up by the user, or the user flips the mobile phone such that the touch panel is not facing substantially horizontally downward, the processor 180 controls the mobile phone to exit the power saving mode, thereby recovering. Go to normal mode.
手机100还包括给各个模块供电的电源190(比如电池),优选的,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗等功能。The mobile phone 100 also includes a power source 190 (such as a battery) that supplies power to the various modules. Preferably, the power source can be logically coupled to the processor 180 through a power management system to manage functions such as charging, discharging, and power consumption through the power management system.
尽管未示出,手机100还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone 100 may further include a camera, a Bluetooth module, and the like, and details are not described herein.
下面以一个具体场景为例进行说明。The following takes a specific scenario as an example for description.
用户在使用如图1所示的手机,手机处于正常状态,触控面板131接收用户的多个指令,处理器180根据用户的多个指令分别启动了导航应用,网页浏览器,拍照应用和即时通信软件,并开启了GPS模块和使用WiFi模块下载音乐文件。然后触控面板131接收用户的返回到主界面的指令,处理器180控制显示面板141显示主界面,而不再显示之前打开的各种应用的界面,由于用户并未关闭这些应用,因此处理器180在后台仍然运行着这些应用。接着触控面板131接收用户的打开电源管理界面的操作,显示面板141显示电源管理界面中,触控面板131接收用户的选择操作,处理器180根据该选择操作开启快速进入/ 离开省电模式的功能。The user is using the mobile phone as shown in FIG. 1 , the mobile phone is in a normal state, the touch panel 131 receives a plurality of instructions from the user, and the processor 180 respectively starts the navigation application, the web browser, the photo application, and the instant according to multiple instructions of the user. Communication software, and the GPS module is turned on and the music file is downloaded using the WiFi module. The touch panel 131 then receives an instruction from the user to return to the main interface, and the processor 180 controls the display panel 141 to display the main interface instead of displaying the interfaces of the various applications that were previously opened, since the user does not close the applications, the processor 180 still running these apps in the background. Then, the touch panel 131 receives the operation of opening the power management interface of the user, the display panel 141 displays the power management interface, the touch panel 131 receives the user's selection operation, and the processor 180 starts the quick entry according to the selection operation. The function of leaving the power saving mode.
随后,用户带着手机进入了会议室,该会议室中放置了静止的水平的桌子200,一开始,用户将手机按照图2a所示的触控面板131朝上的放置在水平桌面上,此时,处理器180判断重力传感器150检测到的Z轴上的加速度为正,则处理器180维持用户之前开启的应用在后台运行,并继续使用WiFi模块下载音乐文件(假设此时音乐文件下载并未完成)。Subsequently, the user enters the conference room with the mobile phone, and the stationary horizontal table 200 is placed in the conference room. At the beginning, the user places the mobile phone on the horizontal desktop according to the touch panel 131 shown in FIG. 2a. When the processor 180 determines that the acceleration on the Z axis detected by the gravity sensor 150 is positive, the processor 180 maintains the application opened by the user in the background, and continues to download the music file using the WiFi module (assuming that the music file is downloaded at this time) undone).
当用户从桌面拿起手机,按照图3a所示的、将手机的触控面板131朝上的水平握持,并保持稳定的状态,此时,180判断重力传感器150检测到的Z轴上的加速度为正,则处理器180仍然维持用户之前开启的各种应用在后台运行,并保持GPS模块开启,继续使用WiFi模块下载音乐文件(假设此时音乐文件下载并未完成)。When the user picks up the mobile phone from the desktop, according to the horizontal touch of the touch panel 131 of the mobile phone as shown in FIG. 3a, and maintains a stable state, at this time, 180 determines the Z-axis detected by the gravity sensor 150. If the acceleration is positive, the processor 180 still maintains various applications opened by the user in the background, and keeps the GPS module open, and continues to use the WiFi module to download music files (assuming that the music file download is not completed at this time).
当用户将手机翻转,即按照如图3b所示的、将手机触控面板131朝下的水平握持,此时,处理器180先判断出重力传感器150检测到的Z轴上的加速度为负,且大致为-9.8m/s2,然后处理器180继续判断出重力传感器150检测到的X轴上的加速度和Y轴上的加速度大致为0,接着处理器180判断重力传感器150检测到的Z方向的加速度、X轴上的加速度和Y轴上的加速度是否持续5秒以上的分别大致为-9.8m/s2,0和0。如果判断结果为是,处理器180继续判断重力传感器150在上述5秒内检测到的加速度的噪声的平均值是否小于噪声门限值(此处设置为0.004g),由于用户的脉搏和手臂肌肉抖动的影响,此处处理器180判断重力传感器150检测到的加速度的噪声大于该噪声门限值,因此处理器180仍然维持用户之前开启的各种应用在后台运行,保持GPS模块开启,并继续使用WiFi模块下载音乐文件(假设此时音乐文件下载并未完成)。When the user flips the mobile phone, that is, according to the horizontal touch of the mobile phone touch panel 131 as shown in FIG. 3b, the processor 180 first determines that the acceleration on the Z-axis detected by the gravity sensor 150 is negative. And substantially -9.8 m/s 2 , then the processor 180 continues to determine that the acceleration on the X-axis detected by the gravity sensor 150 and the acceleration on the Y-axis are substantially zero, and then the processor 180 determines the detected by the gravity sensor 150. Whether the acceleration in the Z direction, the acceleration on the X axis, and the acceleration on the Y axis last for 5 seconds or more are approximately -9.8 m/s 2 , 0 and 0, respectively. If the result of the determination is yes, the processor 180 continues to determine whether the average value of the noise of the acceleration detected by the gravity sensor 150 within the above 5 seconds is less than the noise threshold (here set to 0.004 g) due to the user's pulse and arm muscles. The effect of the jitter, where the processor 180 determines that the noise of the acceleration detected by the gravity sensor 150 is greater than the noise threshold, so the processor 180 still maintains various applications previously opened by the user in the background, keeps the GPS module open, and continues Use the WiFi module to download music files (assuming the music file download is not completed at this time).
当用户继续拿着手机正面朝下的继续移动,并最终将手机按照按照图2b所 示的触控面板131朝下的放置在水平桌面上,并不再接触手机。此时,处理器180先判断出重力传感器150检测到的Z轴上的加速度为负,且大致为-9.8m/s2,然后处理器180继续判断出重力传感器150检测到的X轴和Y轴上的加速度大致为0,接着处理器180判断重力传感器150检测到的Z方向的加速度、X轴上的加速度和Y轴上的加速度是否持续5秒以上的分别大致为-9.8m/s2,0和0。如果判断为是,处理器180接着判断重力传感器150在上述5秒内检测到的加速度的噪声的平均值是否小于噪声门限值(此处设置为0.004g),由于用户在该5秒内并没有握持该手机,因此处理器180判断重力传感器150在该5秒内检测到的加速度的噪声的平均值小于该噪声门限值,则处理器180控制手机的其他模块工作在省电模式:即处理器180关闭后台运行的导航应用,网页浏览器,拍照应用和即时通信软件,关闭GPS模块,并判断音乐文件是否下载完毕,如果下载完毕,则关闭WiFi模块,如果该音乐文件没有下载完毕,则继续使用WiFi模块下载音乐文件。并且处理器180记录关闭的应用的标识和硬件模块的标识。When the user continues to move with the mobile phone facing down, and finally the mobile phone is placed on the horizontal desktop facing down according to the touch panel 131 shown in Fig. 2b, and no longer touches the mobile phone. At this time, the processor 180 first determines that the acceleration on the Z-axis detected by the gravity sensor 150 is negative, and is approximately -9.8 m/s 2 , and then the processor 180 continues to determine the X-axis and Y detected by the gravity sensor 150. The acceleration on the shaft is substantially zero, and then the processor 180 determines whether the acceleration in the Z direction detected by the gravity sensor 150, the acceleration on the X axis, and the acceleration on the Y axis last for more than 5 seconds, respectively, being approximately -9.8 m/s 2 , 0 and 0. If the determination is yes, the processor 180 then determines whether the average value of the noise of the acceleration detected by the gravity sensor 150 within the above 5 seconds is less than the noise threshold (here set to 0.004 g), since the user is within the 5 seconds and The handset is not held, so the processor 180 determines that the average value of the noise of the acceleration detected by the gravity sensor 150 within the 5 seconds is less than the noise threshold, and the processor 180 controls the other modules of the handset to operate in the power saving mode: That is, the processor 180 turns off the navigation application running in the background, the web browser, the photo application and the instant communication software, turns off the GPS module, and determines whether the music file is downloaded. If the download is completed, the WiFi module is closed, and if the music file is not downloaded, , continue to use the WiFi module to download music files. And the processor 180 records the identification of the closed application and the identification of the hardware module.
经过半小时后,当用户再次拿起手机,将手机的状态变成如图2a,图3a或图3b所示的状态时,则处理器180根据重力传感器检测到的结果判断出需要退出省电模式,则处理器180根据记录的关闭的应用的标识和硬件模块的标识,再次打开导航应用,网页浏览器,拍照应用和即时通信软件,打开GPS模块。如果在进入省电模式时,WiFi模块也被关闭,则此时再打开WiFi模块。After half an hour, when the user picks up the mobile phone again and changes the state of the mobile phone to the state shown in FIG. 2a, FIG. 3a or FIG. 3b, the processor 180 determines that the power saving needs to be exited according to the result detected by the gravity sensor. In the mode, the processor 180 opens the navigation module, the web browser, the photographing application and the instant messaging software again according to the recorded identifier of the closed application and the identifier of the hardware module, and opens the GPS module. If the WiFi module is also turned off when entering the power saving mode, then the WiFi module is turned on again.
上述实施例中,显示面板141显示设置该快速进入省电模式的功能的界面,并接收用户通过触控面板131输入的开启该快速进入/离开省电模式的功能的指令;重力传感器150检测加速度(包括X轴,Y轴和Z轴上的加速度,整体的加速度的噪声);处理器180通过判断X轴、Y轴和Z轴上的加速度可以判断手 机100是否按照触控面板131朝下方向的大致水平的放置,并且增加一个5秒的持续时间的判断,以减少误操作。所述处理器180通过所述5秒内的整体的加速度的噪声可以判断手机100是否放置在静止的物体上,而不是被握持在用户手中。只有当处理器180判断出手机100按照触控面板131朝下方向的大致水平放置并且放置在静止的物体上,而不是被握持在用户手中时,此时用户一般不想使用手机,或者不着急使用手机接收和回复消息,在这种情况下,处理器180控制手机进入省电模式。当所述重力传感器检测到手机100的状态发生改变,如被用户拿起,或者用户翻转了手机而使得触控面板131不在大致水平的朝下,则处理器180不再等待一段时间,而立即控制手机省电模式,从而恢复到正常模式。In the above embodiment, the display panel 141 displays an interface for setting the function of quickly entering the power saving mode, and receives an instruction that the user inputs the function of turning on the fast entry/exit power saving mode through the touch panel 131; the gravity sensor 150 detects the acceleration. (including acceleration on the X-axis, Y-axis, and Z-axis, noise of the overall acceleration); the processor 180 can determine the hand by judging the accelerations on the X-axis, the Y-axis, and the Z-axis. Whether the machine 100 is placed substantially horizontally in the downward direction of the touch panel 131, and a judgment of a duration of 5 seconds is added to reduce erroneous operation. The processor 180 can determine whether the mobile phone 100 is placed on a stationary object by the noise of the overall acceleration within the 5 seconds instead of being held in the user's hand. Only when the processor 180 determines that the mobile phone 100 is placed substantially horizontally in the downward direction of the touch panel 131 and is placed on a stationary object instead of being held in the user's hand, the user generally does not want to use the mobile phone, or is not in a hurry. The handset is used to receive and reply to the message, in which case the processor 180 controls the handset to enter a power save mode. When the gravity sensor detects that the state of the mobile phone 100 has changed, such as being picked up by the user, or the user flips the mobile phone such that the touch panel 131 is not facing substantially horizontally, the processor 180 no longer waits for a while, and immediately Controls the phone's power save mode to return to normal mode.
上述实施例提供了一种省电的方法,使得移动终端可以根据用户的简单操作进入省电模式和退出省电模式,简化了用户的操作,提高了移动终端的易用性和与用户的交互能力。The foregoing embodiment provides a method for saving power, so that the mobile terminal can enter the power saving mode and exit the power saving mode according to the simple operation of the user, simplify the operation of the user, and improve the ease of use and interaction with the user of the mobile terminal. ability.
如图6所示,本发明实施例提供一种进入省电模式的方法流程图。该方法由如图1所示的手机执行,并且在执行本方法之前,手机处于正常模式,并且用户已开启了或未开启该快速进入省电模式的功能。该方法包括:As shown in FIG. 6, the embodiment of the present invention provides a flowchart of a method for entering a power saving mode. The method is performed by the handset as shown in FIG. 1, and before the method is executed, the handset is in the normal mode, and the user has turned on or does not turn on the function of quickly entering the power saving mode. The method includes:
601、处理器180判断该快速进入省电模式的功能是否已经开启,如果用户在601之前已经在显示面板141显示的用于设置该快速进入省电模式的功能的界面中,通过触控面板131选择了开启该快速进入省电模式的功能,则执行602,如果处理器180判断出该快速进入省电模式的功能并未开启,则执行607。601. The processor 180 determines whether the function of quickly entering the power saving mode has been turned on. If the user has already displayed the function of setting the fast power saving mode on the display panel 141 before 601, the touch panel 131 is adopted. If the function of turning on the fast power saving mode is selected, execution 602 is performed. If the processor 180 determines that the function of quickly entering the power saving mode is not enabled, then 607 is performed.
602、处理器180判断重力传感器150检测到的Z轴上的加速度是否为负,如果是,则执行603,如果否,则执行606。602. The processor 180 determines whether the acceleration on the Z axis detected by the gravity sensor 150 is negative. If yes, execute 603. If not, execute 606.
可以理解,在602之前,重力传感器150处于工作状态,能够检测到X轴, Y轴和Z轴上的加速度,以及整体的加速度的噪声;如果重力传感器150没有处于工作状态,则处理器180在执行602之前,先开启重力传感器150使其处于工作状态。It can be understood that before 602, the gravity sensor 150 is in an active state, and the X axis can be detected. The acceleration on the Y and Z axes, as well as the noise of the overall acceleration; if the gravity sensor 150 is not in operation, the processor 180 turns the gravity sensor 150 into an active state before performing 602.
603、处理器180判断重力传感器150检测到的X轴和Y轴上的加速度是否大致为0,如果是,则执行604,如果否,则执行606。603. The processor 180 determines whether the accelerations on the X-axis and the Y-axis detected by the gravity sensor 150 are substantially 0. If yes, execute 604. If not, execute 606.
此处的判断X轴和Y轴上的加速度是否大致为0,是为了考虑用于放置手机的桌面或其他支撑物不是完全水平的情形。大致为0的范围,可以为落入如下区间的值:(-0.98,0.98),或者(-0.49,0.49)等,其中,区间中的数值的单位是m/s2。该区间的值可以由用户设置或者由手机厂家在出厂时预置等。Here, it is judged whether the acceleration on the X-axis and the Y-axis is substantially 0 in order to consider the case where the tabletop or other support for placing the mobile phone is not completely horizontal. A range of approximately 0 may be a value falling within the following range: (-0.98, 0.98), or (-0.49, 0.49), etc., wherein the unit of the numerical value in the interval is m/s2. The value of the interval can be set by the user or preset by the mobile phone manufacturer at the factory.
604、处理器180判断重力传感器150检测到的加速度的噪声是否小于噪声门限值(此处设置为0.004g),如果小于噪声门限值,则执行605,如果没有小于噪声门限值,则执行606。604. The processor 180 determines whether the noise of the acceleration detected by the gravity sensor 150 is less than a noise threshold (here set to 0.004 g). If the noise threshold is less than the noise threshold, perform 605. If not less than the noise threshold, Execute 606.
如图4和图5所示的加速度的噪声是重力传感器150检测到的整体的加速度的噪声,而并非X轴、Y轴和Z轴上的分量。The noise of the acceleration as shown in FIGS. 4 and 5 is the noise of the overall acceleration detected by the gravity sensor 150, and is not the components on the X-axis, the Y-axis, and the Z-axis.
605、处理器180控制手机进入省电模式。605. The processor 180 controls the mobile phone to enter a power saving mode.
605中的省电模式为普通省电模式,605包括:处理器180关闭正在运行的所有的后台运行的应用的进程,停止GPS,停止耳机检测、停止指示灯提醒、停止USB插拔检测、停止NFC、停止语音唤醒、停止触摸屏唤醒功能等,但是保持接听呼叫功能持续的开启。605还包括,处理器180判断RF电路或WiFi模块是否正在下载文件,如果否,则处理器关闭RF电路和WiFi模块,如果有文件正在下载,则处理器保持RF电路或WiFi模块继续下载。The power saving mode in 605 is a normal power saving mode, and 605 includes: the processor 180 turns off all running processes of the background running application, stops the GPS, stops the earphone detection, stops the indicator light, stops the USB plug detection, and stops. NFC, stop voice wake-up, stop touch screen wake-up function, etc., but keep the answering call function on continuously. 605 further includes the processor 180 determining whether the RF circuit or the WiFi module is downloading the file. If not, the processor turns off the RF circuit and the WiFi module. If a file is being downloaded, the processor keeps the RF circuit or the WiFi module to continue downloading.
606、处理器180维持手机工作在现有的模式。606. The processor 180 maintains the mobile phone operating in an existing mode.
在606之后,可以再次执行602,直到进入省电模式或者该快速进入省电模 式的功能被关闭。After 606, 602 may be performed again until entering a power saving mode or the fast entering power saving mode The function is turned off.
607、处理器180维持手机工作在现有的模式。在607之后,可以再次执行601。607. The processor 180 maintains the mobile phone operating in an existing mode. After 607, 601 can be executed again.
由于在开启快速进入省电模式的功能之前,手机工作在正常模式,因此606和607中的现有的模式即为正常模式。Since the handset operates in the normal mode before the function of quickly entering the power saving mode is turned on, the existing mode in 606 and 607 is the normal mode.
可以理解,602是为了判断显示面板140(或触控面板131)是否朝下,603是为了判断显示面板140(或触控面板131)是否水平,604是为了判断手机是否放置在静止的物体上,而没有被用户拿在手中,三个步骤的执行顺序可以互换,只有三个步骤的判断结果都为是,才执行605,只要有一个步骤的判断结果为否,就执行606。It can be understood that 602 is for determining whether the display panel 140 (or the touch panel 131) is facing downward, and 603 is for determining whether the display panel 140 (or the touch panel 131) is horizontal, and 604 is for determining whether the mobile phone is placed on a stationary object. Without being held by the user, the execution order of the three steps can be interchanged. Only the judgment result of the three steps is YES, and 605 is executed. If the judgment result of one step is no, 606 is executed.
为了减小判断的误差,还可以将602替换为处理器180判断重力传感器150检测到的Z轴上的加速度是否大约为-1g(即-9.8m/s2),如果是,则执行603,如果否,则执行606。Z轴上的加速度大约为-1g是指Z轴上的加速度在-1.2g到0.98g之间,也可以是其他区间的值,本发明对此不做限定。当重力传感器150检测到的Z轴上的加速度大约为-1g,则说明显示面板140(或触控面板131)朝下,且相对地面静止或者在水平方向匀速运动。In order to reduce the error of the judgment, 602 may be replaced with the processor 180 determining whether the acceleration on the Z-axis detected by the gravity sensor 150 is approximately -1 g (ie, -9.8 m/s 2 ), and if so, executing 603, If no, execute 606. The acceleration on the Z-axis is approximately -1 g, which means that the acceleration on the Z-axis is between -1.2 g and 0.98 g, and may be a value of other intervals, which is not limited in the present invention. When the acceleration on the Z-axis detected by the gravity sensor 150 is about -1 g, it indicates that the display panel 140 (or the touch panel 131) faces downward and is stationary relative to the ground or moving at a constant speed in the horizontal direction.
然而,在实际的生活中,如果手机在水平方向运动,例如手机放置在行驶的汽车或其他行驶的交通工具中的座椅或者桌子上,由于受到汽车或其他交通工具的影响,手机的重力传感器检测到的加速度的噪声一般也会大于0.004g,因此,如果加速度的噪声小于0.004g,则手机一般在水平方向也没有匀速运动。However, in actual life, if the mobile phone moves in a horizontal direction, such as a mobile phone placed on a seat or a table in a moving car or other moving vehicle, the gravity sensor of the mobile phone is affected by the car or other means of transportation. The noise of the detected acceleration is generally greater than 0.004 g. Therefore, if the noise of the acceleration is less than 0.004 g, the mobile phone generally does not move at a uniform speed in the horizontal direction.
可选的,可以在604之后判断手机是否放置在静止的物体上,即判断手机在水平方向是否静止,为此,可以使用加速度传感器和陀螺仪获取手机在水平方向的加速度,并据此判断手机是否在水平方向也是静止的,或者使用GPS模 块记录手机的运动判断手机是否移动,或者使用基站的定位功能判断手机是否移动,现有技术中还有多种判断手机是否在水平方向是否移动的方式,本发明对此不做限定。仅当手机放置在静止的物体上,才执行605,否则,执行606。Optionally, after 604, it can be determined whether the mobile phone is placed on a stationary object, that is, whether the mobile phone is stationary in the horizontal direction. For this reason, the acceleration sensor and the gyroscope can be used to obtain the acceleration of the mobile phone in the horizontal direction, and the mobile phone is judged accordingly. Whether it is still in the horizontal direction, or use GPS mode The block records the movement of the mobile phone to determine whether the mobile phone is moving, or uses the positioning function of the base station to determine whether the mobile phone is moving. There are various ways to determine whether the mobile phone moves in the horizontal direction in the prior art, which is not limited by the present invention. 605 is performed only when the handset is placed on a stationary object, otherwise 606 is performed.
为了减小判断的误差,还可以在602,603和604中的至少一个中增加持续时间的判断。602可以替换为602’:处理器180判断重力传感器150检测到的Z轴上的加速度是否在第一持续时间里为负。603可以替换为603’:处理器180判断重力传感器150检测到的X轴和Y轴上的加速度是否在该第一持续时间里大致为0。604可以替换为604’:处理器180判断重力传感器150检测到的加速度的噪声是否在第二持续时间里一直小于噪声门限值,或者处理器180判断重力传感器150在第二持续时间里检测到的加速度的噪声的平均值是否小于所述噪声门限值。In order to reduce the error of the judgment, it is also possible to increase the judgment of the duration in at least one of 602, 603 and 604. 602 can be replaced with 602': processor 180 determines if the acceleration on the Z-axis detected by gravity sensor 150 is negative for the first duration. 603 may be replaced by 603': processor 180 determines whether the accelerations on the X-axis and the Y-axis detected by gravity sensor 150 are substantially zero in the first duration. 604 may be replaced by 604': processor 180 determines gravity sensor Whether the noise of the detected acceleration is less than the noise threshold for the second duration, or the processor 180 determines whether the average of the noise of the acceleration detected by the gravity sensor 150 for the second duration is less than the noise gate Limit.
如果手机100在执行601之前已经进入了普通省电模式,则通过602,603和604的判断可以进一步确定手机100是否进入超级省电模式,即605替换为:处理器180控制手机进入超级省电模式。其他步骤的内容和顺序保持不变,此处不再重复。If the mobile phone 100 has entered the normal power saving mode before executing 601, it can be further determined by the judgment of 602, 603, and 604 whether the mobile phone 100 enters the super power saving mode, that is, 605 is replaced by: the processor 180 controls the mobile phone to enter the super power saving mode. mode. The content and order of the other steps remain the same and will not be repeated here.
为了提高判断的准确性,还可以在602,603和604判断结果都为“是”之后,增加红外传感器的判断,根据红外传感器探测到的波长确定手机100当前放置的物体的材质,如果判断当前放置手机的物体为木质或玻璃,则说明手机当前很可能被按照显示面板140(或触控面板131)朝下的方向、水平的、放置在桌子上,此时执行605。如果判断当前放置手机的物体为布或皮质,则手机很可能被按照显示面板140(或触控面板131)朝下的方向、水平的、放置在沙发或床上,此时可能只是用户无意识的操作,并不是暂时不使用手机,此时执行606。 In order to improve the accuracy of the judgment, after the determination results of 602, 603 and 604 are all YES, the judgment of the infrared sensor is increased, and the material of the object currently placed by the mobile phone 100 is determined according to the wavelength detected by the infrared sensor, if the current judgment is If the object on which the mobile phone is placed is wood or glass, the mobile phone is currently likely to be placed on the table in the downward direction of the display panel 140 (or the touch panel 131), and 605 is performed at this time. If it is judged that the object currently placed on the mobile phone is cloth or leather, the mobile phone is likely to be placed on the sofa or the bed in the downward direction of the display panel 140 (or the touch panel 131), which may be an unintended operation of the user. , not for the time being, do not use the phone, at this time execute 606.
可以理解,602和603是为了判断手机是否按照显示面板140(或触控面板131)朝下的方向、水平的放置。该判断也可以由其他方式实现,如通过陀螺仪或其他传感器判断;手机是否按照显示面板140(或触控面板131)朝下的方向、水平的放置如果是,则执行604,如果否,则执行606。It can be understood that 602 and 603 are for determining whether the mobile phone is placed horizontally in the downward direction of the display panel 140 (or the touch panel 131). The determination may also be implemented by other means, such as by a gyroscope or other sensor; whether the mobile phone is placed in the downward direction and horizontal direction of the display panel 140 (or the touch panel 131). If yes, execute 604, if not, then Execute 606.
在上述实施例中,如果手机的处理器包括应用处理器和微控制器,由应用处理器来执行601,605,606和607,由MCU来执行602,603和604,由于MCU的功耗比应用处理器的小,因此能够达到更省电的技术效果。In the above embodiment, if the processor of the mobile phone includes an application processor and a microcontroller, 601, 605, 606, and 607 are executed by the application processor, and 602, 603, and 604 are executed by the MCU, because the power consumption of the MCU is smaller than the application processing. The device is small, so it can achieve more power-saving technical effects.
本发明实施例还提供一种退出省电模式的方法。如图7所示,该方法由如图1所示的手机执行,并且在执行本方法之前,手机处于省电模式,并且用户已开启了或未开启该快速退出省电模式的功能。该方法包括:The embodiment of the invention further provides a method for exiting the power saving mode. As shown in FIG. 7, the method is performed by the mobile phone as shown in FIG. 1, and before the method is executed, the mobile phone is in the power saving mode, and the user has turned on or does not turn on the function of quickly exiting the power saving mode. The method includes:
701、处理器180判断该快速退出省电模式的功能是否已经开启,如果用户在701之前已经在显示面板141显示的用于设置该快速退出省电模式的功能的界面中,选择了开启该快速退出省电模式的功能,则执行702,如果处理器180判断出该快速退出省电模式的功能并未开启,则执行707。701. The processor 180 determines whether the function of quickly exiting the power saving mode has been turned on. If the user has already displayed the function for setting the quick exit power saving mode displayed on the display panel 141 before 701, the fast is selected to be turned on. When the function of the power saving mode is exited, 702 is executed. If the processor 180 determines that the function of quickly exiting the power saving mode is not enabled, then 707 is performed.
702、处理器180判断重力传感器150检测到的Z轴上的加速度是否为正,如果否,则执行703,如果是,则执行706。702. The processor 180 determines whether the acceleration on the Z axis detected by the gravity sensor 150 is positive. If not, execute 703. If yes, execute 706.
可以理解,在702之前,重力传感器150仍处于工作状态(包括手机处于省电模式时),能够检测到X轴,Y轴和Z轴上的加速度,以及整体的加速度;如果重力传感器150没有处于工作状态,则处理器180在执行702之前,先开启重力传感器150使其处于工作状态。It can be understood that before 702, the gravity sensor 150 is still in operation (including when the mobile phone is in the power saving mode), can detect the acceleration on the X axis, the Y axis and the Z axis, and the overall acceleration; if the gravity sensor 150 is not in In the working state, the processor 180 turns on the gravity sensor 150 to be in an active state before executing 702.
703、处理器180判断重力传感器150检测到的X轴和Y轴上的加速度是否远大于0,如果否,则执行704,如果是,则执行706。703. The processor 180 determines whether the accelerations on the X-axis and the Y-axis detected by the gravity sensor 150 are far greater than 0. If not, execute 704, and if yes, perform 706.
此处的判断X轴和Y轴上的加速度是否远大于0,是为了考虑用于放置手 机的桌面或其他支撑物不是完全水平的情形。远大于0是指大于0.98,或小于-0.98。远大于0也可以指大于0.49,或小于-0.49。其中,上述数值的单位是m/s2。Here, it is judged whether the acceleration on the X-axis and the Y-axis is much larger than 0, in order to consider for placing the hand. The desktop or other support of the machine is not completely horizontal. Far greater than 0 means greater than 0.98, or less than -0.98. Far greater than 0 can also mean greater than 0.49, or less than -0.49. Wherein, the unit of the above numerical value is m/s2.
704、处理器180判断重力传感器150检测到的加速度的噪声是否大于噪声门限值(此处设置为0.004g),如果大于噪声门限值,则执行705,如果小于噪声门限值,则执行706。704. The processor 180 determines whether the noise of the acceleration detected by the gravity sensor 150 is greater than a noise threshold (here set to 0.004 g). If the noise threshold is greater than the noise threshold, perform 705. If the noise threshold is less than the noise threshold, execute 705. 706.
如图4和图5所示的加速度是重力传感器150检测到的整体的加速度的噪声,而并非X轴、Y轴和Z轴上的分量。The accelerations shown in FIGS. 4 and 5 are noises of the overall acceleration detected by the gravity sensor 150, and are not components on the X-axis, the Y-axis, and the Z-axis.
705、处理器180控制手机工作在省电模式。705. The processor 180 controls the mobile phone to work in a power saving mode.
706、处理器180控制手机退出省电模式。706. The processor 180 controls the mobile phone to exit the power saving mode.
706中退出省电模式包括:处理器180启动进入省电模式时关闭的所有或部分软件功能和硬件模块;或者包括:处理器180启动预设的软件功能和硬件模块,如用户常用的各类软件功能和硬件模块。The exiting the power saving mode in 706 includes: all or part of the software functions and hardware modules that are turned off when the processor 180 starts to enter the power saving mode; or: the processor 180 starts the preset software functions and hardware modules, such as various types commonly used by the user. Software features and hardware modules.
在705之后,可以再次执行702,直到手机退出省电模式,或者直到该快速退出省电模式的功能被关闭。After 705, 702 may be performed again until the handset exits the power save mode, or until the function of quickly exiting the power save mode is turned off.
707、处理器180维持手机工作在省电模式。在707之后,可以再次执行701。707. The processor 180 maintains the mobile phone in a power saving mode. After 707, 701 can be executed again.
可以理解,702是为了判断显示面板140(或触控面板131)是否朝上,703是为了判断显示面板140(或触控面板131)是否水平,704是为了判断手机是否放置在静止的物体上,而不是被用户拿在手中,三个步骤的执行顺序可以互换,只有三个步骤的判断结果都为否,才执行705,只要有一个步骤的判断结果为是,就执行706。It can be understood that 702 is for determining whether the display panel 140 (or the touch panel 131) is facing upward, and 703 is for determining whether the display panel 140 (or the touch panel 131) is horizontal, and 704 is for determining whether the mobile phone is placed on a stationary object. Instead of being held in the hands of the user, the execution order of the three steps can be interchanged, and only the judgment result of the three steps is no, the execution 705 is performed, and if the judgment result of one step is YES, 706 is executed.
为了减小判断的误差,还可以在702,703和704中的至少一个中增加持续时间的判断。702可以替换为702’:处理器180判断重力传感器150检测到的Z轴上的加速度是否在第一持续时间里为正。703可以替换为703’:处理器180判 断重力传感器150检测到的X轴和Y轴上的加速度是否在第一持续时间里远大于0。704可以替换为704’:处理器180判断重力传感器150检测到的加速度是否在第二持续时间里大于噪声门限值。In order to reduce the error of the judgment, it is also possible to increase the judgment of the duration in at least one of 702, 703 and 704. 702 can be replaced with 702': processor 180 determines whether the acceleration on the Z-axis detected by gravity sensor 150 is positive for the first duration. 703 can be replaced by 703': processor 180 Whether the acceleration on the X-axis and the Y-axis detected by the broken gravity sensor 150 is much greater than 0 in the first duration. 704 may be replaced by 704': the processor 180 determines whether the acceleration detected by the gravity sensor 150 is in the second duration. It is greater than the noise threshold.
在上述实施例中,如果手机的处理器包括应用处理器和微控制器,由应用处理器来执行701,705,706和707,由MCU来执行702,703和704,由于MCU的功耗比应用处理器的小,因此能够达到更省电的技术效果。In the above embodiment, if the processor of the mobile phone includes an application processor and a microcontroller, 701, 705, 706, and 707 are executed by the application processor, and 702, 703, and 704 are executed by the MCU, because the power consumption of the MCU is smaller than the application processing. The device is small, so it can achieve more power-saving technical effects.
在本实施例中,如果701判断结果为是,且手机保持如图2b所示的状态,则经过702,703和704的判断,手机维持省电模式;如果701判断结果为是,手机从图2b所示的状态切换到图2a,图3a,甚至图3b中所示的状态,则经过702,703和704的判断,手机从省电模式切换到正常模式。In this embodiment, if the determination result of 701 is YES, and the mobile phone maintains the state as shown in FIG. 2b, the mobile phone maintains the power saving mode after the judgment of 702, 703, and 704; if the determination result of 701 is YES, the mobile phone from the figure The state shown in 2b is switched to the state shown in Fig. 2a, Fig. 3a, and even Fig. 3b, and the cell is switched from the power saving mode to the normal mode after the judgment of 702, 703 and 704.
可以理解,上述的602和702是为了判断手机是否按照显示面板140(或触控面板131)朝下的方向的放置。该判断也可以由其他方式实现,如通过压力传感器,红外传感器等其他传感器判断,具体的方法如图8-图11。It can be understood that the above 602 and 702 are for determining whether the mobile phone is placed in the downward direction of the display panel 140 (or the touch panel 131). The determination can also be implemented by other means, such as by pressure sensors, infrared sensors and other sensors, the specific method is shown in Figure 8-11.
如下,图8和图9为使用了压力传感器来判断手机是否按照显示面板140(或触控面板131)朝下的方向的放置。As follows, FIGS. 8 and 9 are diagrams in which a pressure sensor is used to determine whether or not the mobile phone is placed in the downward direction of the display panel 140 (or the touch panel 131).
如图8所示,本发明实施例提供另一种进入省电模式的方法流程图。该方法由如图1所示的手机执行,并且在执行本方法之前,手机处于正常模式,并且用户已开启了或未开启该快速进入省电模式的功能。该方法包括:As shown in FIG. 8, the embodiment of the present invention provides another method for entering a power saving mode. The method is performed by the handset as shown in FIG. 1, and before the method is executed, the handset is in the normal mode, and the user has turned on or does not turn on the function of quickly entering the power saving mode. The method includes:
801,与601相同。801, the same as 601.
802、处理器180判断位于手机100背面的压力传感器检测到的压力是否小于压力门限值,如果是,则执行803,如果否,则执行806。802. The processor 180 determines whether the pressure detected by the pressure sensor located on the back of the mobile phone 100 is less than a pressure threshold. If yes, execute 803. If not, execute 806.
在802之前,压力传感器151仍处于工作状态(包括手机处于省电模式时),能够检测到压力值;如果压力传感器151没有处于工作状态,则处理器180在 执行802之前,先开启压力传感器151使其处于工作状态。考虑到测量的误差,压力门限值可以设置为接近0的一个值,例如0.1牛顿或0.05牛顿等。Before 802, the pressure sensor 151 is still in operation (including when the mobile phone is in the power saving mode), and the pressure value can be detected; if the pressure sensor 151 is not in the working state, the processor 180 is Before performing 802, the pressure sensor 151 is turned on to make it in operation. Taking into account the error of the measurement, the pressure threshold can be set to a value close to 0, such as 0.1 Newton or 0.05 Newton.
803-807分别与603-607相同,关于601,603-607的说明也分别适用于801,803-807,此处不再重复。803-807 are the same as 603-607, respectively, and the descriptions of 601, 603-607 are also applicable to 801, 803-807, respectively, and will not be repeated here.
本发明实施例还提供另一种退出省电模式的方法。如图9所示,该方法由如图1所示的手机执行,并且在执行本方法之前,手机处于省电模式,并且用户已开启了或未开启该快速退出省电模式的功能。该方法包括:Another embodiment of the present invention provides a method for exiting the power saving mode. As shown in FIG. 9, the method is performed by the mobile phone as shown in FIG. 1, and before the method is executed, the mobile phone is in the power saving mode, and the user has turned on or does not turn on the function of quickly exiting the power saving mode. The method includes:
901,与701相同。901, the same as 701.
902、处理器180判断位于手机100背面的压力传感器151检测到的压力是否大于压力门限值,如果否,则执行903,如果是,则执行906。902. The processor 180 determines whether the pressure detected by the pressure sensor 151 located on the back of the mobile phone 100 is greater than a pressure threshold. If not, execute 903, and if yes, execute 906.
802中关于压力门限值和压力传感器151的工作状态的说明也适用于902,此处不再重复。The description of the pressure threshold and the operating state of the pressure sensor 151 in 802 also applies to 902, and will not be repeated here.
903-907分别与703-707相同,关于701,703-707的说明也分别适用于901,903-907,此处不再重复。903-907 are the same as 703-707, respectively, and the descriptions of 701, 703-707 are also applicable to 901, 903-907, respectively, and will not be repeated here.
如下,图10-11使用了红外传感器来判断手机是否按照显示面板140(或触控面板131)朝下的方向的放置。As shown below, the infrared sensor is used to determine whether the mobile phone is placed in the downward direction of the display panel 140 (or the touch panel 131).
如图10所示,本发明实施例提供又一种进入省电模式的方法流程图。该方法由如图1所示的手机执行,并且在执行本方法之前,手机处于正常模式,并且用户已开启了或未开启该快速进入省电模式的功能。该方法包括:As shown in FIG. 10, the embodiment of the present invention provides another method for entering a power saving mode. The method is performed by the handset as shown in FIG. 1, and before the method is executed, the handset is in the normal mode, and the user has turned on or does not turn on the function of quickly entering the power saving mode. The method includes:
1001、与601相同。1001, the same as 601.
1002、处理器180判断位于手机100正面的红外传感器检测到的反射能量是否大于能量门限值,如果是,则执行1003,如果否,则执行1006。1002: The processor 180 determines whether the reflected energy detected by the infrared sensor located on the front side of the mobile phone 100 is greater than an energy threshold. If yes, execute 1003. If not, execute 1006.
能量门限值可以接近红外发射器发出的红外波的总能量,例如该总能量的 90%或其他值。在1002之前,红外传感器仍处于工作状态(包括手机处于省电模式时),能够检测到反射能量;如果红外传感器没有处于工作状态,则处理器180在执行1002之前,先开启红外传感器使其处于工作状态。The energy threshold can be close to the total energy of the infrared wave emitted by the infrared emitter, such as the total energy 90% or other value. Before 1002, the infrared sensor is still in working state (including when the mobile phone is in the power saving mode), and the reflected energy can be detected; if the infrared sensor is not in the working state, the processor 180 turns on the infrared sensor to make it before executing 1002. Working status.
1003-1006分别与603-607相同,关于601,603-607的说明也分别适用于1001,1003-1007,此处不再重复。1003-1006 is the same as 603-607, and the descriptions of 601, 603-607 are also applicable to 1001, 1003-1007, respectively, and will not be repeated here.
需要说明的是,通过1002的判断仅能判断出手机100的正面是否有遮挡,不能完全判断正面是否朝下,可以在1002判断为是之后,执行1003之前,增加1002a:处理器180判断位于手机100正面的红外传感器检测到的反射波长是否为玻璃或木头,如果是,则执行1003,如果否,则执行1006。由于手机100的正面被玻璃或木头覆盖时,通常是手机朝下放置在桌面的情形,或者是用户不方便查看显示面板141和操作触控面板131的情形,因此这种情况下通常也是用户不想使用手机100的情形。It should be noted that, by the judgment of 1002, only the front side of the mobile phone 100 can be judged whether there is occlusion, and it is not possible to completely judge whether the front side is facing downward. After the determination of 1002 is YES, before 1003 is performed, 1002a is added: the processor 180 determines that the mobile phone is located at the mobile phone. The reflection wavelength detected by the front side infrared sensor is glass or wood, and if so, 1003 is performed, and if not, 1006 is performed. Since the front surface of the mobile phone 100 is covered by glass or wood, usually when the mobile phone is placed down on the desktop, or the user is inconvenient to view the display panel 141 and operate the touch panel 131, in this case, the user usually does not want to The case of using the mobile phone 100.
如图11所示,本发明实施例提供又一种退出省电模式的方法流程图。该方法由如图1所示的手机执行,并且在执行本方法之前,手机处于省电模式,并且用户已开启了或未开启该快速退出省电模式的功能。该方法包括:As shown in FIG. 11, the embodiment of the present invention provides another method for exiting the power saving mode. The method is performed by a mobile phone as shown in FIG. 1, and before the method is executed, the mobile phone is in a power saving mode, and the user has turned on or does not turn on the function of quickly exiting the power saving mode. The method includes:
1101,与701相同。1101, the same as 701.
1102、处理器180判断位于手机100正面的红外传感器检测到的反射能量是否小于能量门限值,如果否,则执行903,如果是,则执行906。1102. The processor 180 determines whether the reflected energy detected by the infrared sensor located on the front of the mobile phone 100 is less than an energy threshold. If not, executing 903, and if yes, executing 906.
1002中关于能量门限值和红外传感器的工作状态的说明也适用于1102,此处不再重复。The description of the energy threshold and the operating state of the infrared sensor in 1002 also applies to 1102, which is not repeated here.
1103-1107分别与703-707相同,关于701,703-707的说明也分别适用于1101,1103-1107,此处不再重复。1103-1107 is the same as 703-707, and the descriptions of 701, 703-707 are also applicable to 1101, 1103-1107, respectively, and will not be repeated here.
类似的,通过1102的判断仅能判断出手机100的正面是否有遮挡,不能完 全判断正面是否朝下,可以在1102判断为否之后,执行1103之前,增加1003a:处理器180判断位于手机100正面的红外传感器检测到的反射波长是否为玻璃或木头,如果是,则执行1103,如果否,则执行1106。由于手机100的正面被玻璃或木头覆盖时,通常是手机朝下放置在桌面的情形,或者是用户不方便查看显示面板141和操作触控面板131的情形,因此这种情况下通常也是用户不想使用手机100的情形。Similarly, it can be judged by the judgment of 1102 whether the front side of the mobile phone 100 is occluded or not. If it is judged whether the front side is facing down, after 1102 is judged to be no, before performing 1103, 1003a is added: the processor 180 determines whether the reflected wavelength detected by the infrared sensor located on the front side of the mobile phone 100 is glass or wood, and if yes, executes 1103. If no, execute 1106. Since the front surface of the mobile phone 100 is covered by glass or wood, usually when the mobile phone is placed down on the desktop, or the user is inconvenient to view the display panel 141 and operate the touch panel 131, in this case, the user usually does not want to The case of using the mobile phone 100.
如前所述的进入省电模式的方法和退出省电模式的方法,可以配合使用。当使用图6,图8和图10任一种所示的方法,使手机进入省电模式之后,可以使用图7,图9和图11任一种所示的方法,使手机退出省电模式。反之,使用图7,图9和图11任一种所示的方法,使手机退出省电模式之后,也可以使用图6,图8和图10任一种所示的方法,使手机进入省电模式。The method of entering the power saving mode and the method of exiting the power saving mode as described above can be used together. When the method shown in any one of FIG. 6, FIG. 8 and FIG. 10 is used, after the mobile phone enters the power saving mode, the method shown in any one of FIG. 7, FIG. 9 and FIG. 11 can be used to cause the mobile phone to exit the power saving mode. . Conversely, after using the method shown in any one of FIG. 7, FIG. 9 and FIG. 11 to make the mobile phone exit the power saving mode, the method shown in any one of FIG. 6, FIG. 8 and FIG. 10 can also be used to make the mobile phone enter the province. Electrical mode.
本发明实施例还提供一个进入省电模式的装置,如图12所示,该装置包括:屏幕单元1201:用于显示用户界面;重力传感器单元1202,用于检测所述装置的加速度以及加速度的噪声;所述装置处于正常模式;所述装置还包括:第一判断单元1204,用于判断所述装置是否按照所述屏幕单元朝下的水平放置;第二判断单元1205,用于判断所述重力传感器单元检测到的加速度的噪声是否小于噪声门限值;第一控制单元1206,用于在所述第一判断单元判断出所述装置按照所述屏幕单元朝下的水平放置,并且所述第二判断单元判断出所述重力传感器检测到的加速度的噪声小于所述噪声门限值时,控制所述装置进入省电模式。The embodiment of the present invention further provides a device for entering a power saving mode. As shown in FIG. 12, the device includes: a screen unit 1201 for displaying a user interface; and a gravity sensor unit 1202 for detecting acceleration and acceleration of the device. The device is in a normal mode; the device further includes: a first determining unit 1204, configured to determine whether the device is placed horizontally downward according to the screen unit; and a second determining unit 1205, configured to determine the Whether the noise of the acceleration detected by the gravity sensor unit is less than a noise threshold; the first control unit 1206 is configured to determine, at the first determining unit, that the device is placed horizontally downward according to the screen unit, and When the second determining unit determines that the noise of the acceleration detected by the gravity sensor is less than the noise threshold, the device is controlled to enter a power saving mode.
可选的,所述重力传感器单元1202,具体用于,检测所述装置的三维直角坐标系的X轴上的加速度、Y轴上的加速度和Z轴上的加速度;所述第一判断单元1204具体用于:判断所述重力传感器单元检测到的X轴上的加速度、所述 三维直角坐标系的Y轴上的加速度和所述三维直角坐标系的Z轴上的加速度是否分别为0、0、-9.8m/s2,如果是,确定所述装置按照所述屏幕单元朝下的水平放置。Optionally, the gravity sensor unit 1202 is configured to detect acceleration on the X axis, acceleration on the Y axis, and acceleration on the Z axis of the three-dimensional Cartesian coordinate system of the device; the first determining unit 1204 Specifically, it is determined whether the acceleration on the X axis detected by the gravity sensor unit, the acceleration on the Y axis of the three-dimensional Cartesian coordinate system, and the acceleration on the Z axis of the three-dimensional Cartesian coordinate system are respectively 0, 0. , -9.8 m/s 2 , and if so, it is determined that the device is placed horizontally downward according to the screen unit.
可选的,所述重力传感器单元1202,具体用于,检测所述装置的三维直角坐标系的X轴上的加速度、Y轴上的加速度和Z轴上的加速度;所述第一判断单元1204具体用于:判断所述重力传感器单元检测到的X轴上的加速度、所述三维直角坐标系的Y轴上的加速度和所述三维直角坐标系的Z轴上的加速度是否分别为0、0、-9.8m/s2,如果是,断所述X轴上的加速度、所述Y轴上的加速度和所述Z轴上的加速度是否在第一持续时间内分别保持为0、0、-9.8m/s2,如果是,则确定所述移动终端处于正面朝下的水平放置的状态。Optionally, the gravity sensor unit 1202 is configured to detect acceleration on the X axis, acceleration on the Y axis, and acceleration on the Z axis of the three-dimensional Cartesian coordinate system of the device; the first determining unit 1204 Specifically, it is determined whether the acceleration on the X axis detected by the gravity sensor unit, the acceleration on the Y axis of the three-dimensional Cartesian coordinate system, and the acceleration on the Z axis of the three-dimensional Cartesian coordinate system are respectively 0, 0. , -9.8m/s 2 , if yes, the acceleration on the X axis, the acceleration on the Y axis, and the acceleration on the Z axis are respectively maintained at 0, 0, - for the first duration. 9.8 m/s 2 , and if so, it is determined that the mobile terminal is in a horizontally placed state facing down.
可选的,该装置还包括:压力传感器单元1207,多个压力传感器单元1207分布在所述装置的背面。所述压力传感器单元,用于检测所述装置的背面的受力;所述重力传感器单元1202,具体用于,检测所述装置的三维直角坐标系的X轴上的加速度,和所述三维直角坐标系的Y轴上的加速度;所述第一判断单元1204具体用于:判断所述压力传感器单元检测到的压力是否为0,以及判断所述重力传感器单元1202检测到的所述X轴上的加速度和Y轴上的加速度是否分别为0、0;如果判断出所述压力传感器单元检测到的压力为0;并且判断出所述重力传感器检测所述X轴上的加速度和Y轴上的加速度分别为0、0;则确定所述装置按照所述屏幕单元朝下的水平放置。Optionally, the device further comprises: a pressure sensor unit 1207, the plurality of pressure sensor units 1207 being distributed on the back of the device. The pressure sensor unit is configured to detect a force on a back surface of the device; the gravity sensor unit 1202 is specifically configured to detect an acceleration on an X axis of a three-dimensional Cartesian coordinate system of the device, and the three-dimensional right angle Acceleration on the Y-axis of the coordinate system; the first determining unit 1204 is specifically configured to: determine whether the pressure detected by the pressure sensor unit is 0, and determine the X-axis detected by the gravity sensor unit 1202 Whether the acceleration and the acceleration on the Y-axis are 0, 0 respectively; if it is judged that the pressure detected by the pressure sensor unit is 0; and it is judged that the gravity sensor detects the acceleration on the X-axis and the Y-axis The accelerations are 0, 0, respectively; then it is determined that the device is placed horizontally downward according to the screen unit.
可选的,该装置还包括:红外传感器单元1208,所述红外传感器单元,用于检测反射能量和反射波长;重力传感器单元1202,具体用于,检测所述装置的三维直角坐标系的X轴上的加速度和所述三维直角坐标系的Y轴上的加速度;所述第一判断单元1204具体用于:判断所述红外传感器单元检测到的反射 能量是否大于能量门限值,所述反射波长是否对应木头或玻璃,以及判断所述X轴上的加速度和所述Y轴上的加速度是否分别为0、0;如果所述反射能量大于所述能量门限值,所述反射波长对应木头或玻璃,并且所述X轴上的加速度和所述Y轴上的加速度分别为0、0,则确定所述装置按照所述屏幕单元朝下的水平放置。Optionally, the device further includes: an infrared sensor unit 1208, configured to detect reflected energy and a reflected wavelength; and a gravity sensor unit 1202, specifically for detecting an X-axis of the three-dimensional Cartesian coordinate system of the device Acceleration on the Y-axis of the three-dimensional Cartesian coordinate system; the first determining unit 1204 is specifically configured to: determine the reflection detected by the infrared sensor unit Whether the energy is greater than an energy threshold, whether the reflected wavelength corresponds to wood or glass, and whether the acceleration on the X-axis and the acceleration on the Y-axis are 0, 0, respectively; if the reflected energy is greater than An energy threshold value, the reflection wavelength corresponding to wood or glass, and the acceleration on the X-axis and the acceleration on the Y-axis are 0, 0, respectively, determining that the device is facing downward according to the screen unit Place.
其中,所述噪声门限值为0.004g。Wherein, the noise threshold is 0.004 g.
可选的,所述装置还包括,射频单元1209,用于与移动数据网络建立连接,并从所述移动数据网络下载数据;WiFi单元1210,用于与所述接入点建立连接,并从所述接入点下载数据;所述第一控制单元1204具体用于,保持接听呼叫的功能正常运行,以及执行以下至少一个:如果判断当前所述射频单元1209没有从所述移动数据网络下载数据,断开所述射频单元1209与所述移动数据网络的连接;如果判断当前所述射频单元1209没有从所述移动数据网络下载数据,关闭所述射频单元1209;如果判断当前所述WiFi模块1210没有下载数据,断开所述WiFi模块1210与所述接入点的连接;和如果判断所述WiFi模块1210当前没有下载数据,关闭所述WiFi模块1210。Optionally, the device further includes: a radio frequency unit 1209, configured to establish a connection with the mobile data network, and download data from the mobile data network; and a WiFi unit 1210, configured to establish a connection with the access point, and The access point downloads the data; the first control unit 1204 is specifically configured to: keep the function of answering the call running normally, and perform at least one of: if it is determined that the radio frequency unit 1209 does not download data from the mobile data network Disconnecting the radio unit 1209 from the mobile data network; if it is determined that the radio unit 1209 does not download data from the mobile data network, the radio unit 1209 is turned off; if it is determined that the WiFi module 1210 is currently If the data is not downloaded, the connection of the WiFi module 1210 to the access point is disconnected; and if it is determined that the WiFi module 1210 does not currently download data, the WiFi module 1210 is turned off.
可选的,所述第二判断单元1205具体用于,判断所述重力传感器单元在第二持续时间内检测到的最大的加速度噪声是否低于所述噪声门限值,如果是,则确定所述述重力传感器单元检测到的加速度的噪声低于所述噪声门限值;或者判断所述重力传感器单元在第二持续时间内检测到的所有的加速度噪声的平均值是否低于所述噪声门限值,如果是,则确定所述述重力传感器单元检测到的加速度的噪声低于所述噪声门限值。Optionally, the second determining unit 1205 is specifically configured to: determine whether a maximum acceleration noise detected by the gravity sensor unit in the second duration is lower than the noise threshold, and if yes, determine Determining that the noise of the acceleration detected by the gravity sensor unit is lower than the noise threshold; or determining whether an average value of all acceleration noises detected by the gravity sensor unit during the second duration is lower than the noise gate The limit value, if yes, determines that the noise of the acceleration detected by the gravity sensor unit is below the noise threshold.
需要说明的是,在一种实施方式中,本实施例中的屏幕单元1201对应之前实施例中描述的显示面板141和触控面板131,重力传感器单元1202对应之前 实施例中描述的重力传感器150,第一判断单元1204,第二判断单元1205和第一控制单元1206对应之前实施例中描述的处理器180,压力传感器单元1207对应之前实施例中描述的压力传感器151,红外传感器单元对应之前实施例中描述的红外传感器,射频单元1209对应之前实施例中描述的RF电路,WiFi单元1210对应之前实施例中描述的WiFi模块170。之前实施例中对各个模块的描述也适用于本实施例,在此不再重复。It should be noted that, in an embodiment, the screen unit 1201 in this embodiment corresponds to the display panel 141 and the touch panel 131 described in the previous embodiment, and the gravity sensor unit 1202 corresponds to before. The gravity sensor 150, the first determining unit 1204, the second determining unit 1205 and the first control unit 1206 described in the embodiment correspond to the processor 180 described in the previous embodiment, and the pressure sensor unit 1207 corresponds to the pressure sensor described in the previous embodiment. 151. The infrared sensor unit corresponds to the infrared sensor described in the previous embodiment, and the radio frequency unit 1209 corresponds to the RF circuit described in the previous embodiment, and the WiFi unit 1210 corresponds to the WiFi module 170 described in the previous embodiment. The description of each module in the previous embodiment also applies to this embodiment, and will not be repeated here.
本发明实施例还提供一个退出电模式的装置,如图13所示,该装置包括:屏幕单元1201:用于显示用户界面;重力传感器单元1202,用于检测所述装置的加速度以及加速度的噪声;所述装置处于正常模式;所述装置还包括:第三判断单元1304,用于判断所述装置是否按照所述屏幕单元朝下的水平放置;第二判断单元1205,用于判断所述重力传感器单元检测到的加速度的噪声是否小于噪声门限值;第二控制单元1306,用于在所述第一判断单元判断出所述装置没有按照所述屏幕单元朝下的水平放置,或所述第二判断单元判断出所述重力传感器检测到的加速度的噪声大于所述噪声门限值时,控制所述装置退出省电模式。The embodiment of the present invention further provides an apparatus for exiting the electric mode. As shown in FIG. 13, the apparatus includes: a screen unit 1201 for displaying a user interface; and a gravity sensor unit 1202 for detecting acceleration of the device and noise of the acceleration The device is in a normal mode; the device further includes: a third determining unit 1304, configured to determine whether the device is placed horizontally downward according to the screen unit; and a second determining unit 1205, configured to determine the gravity Whether the noise of the acceleration detected by the sensor unit is less than a noise threshold; the second control unit 1306 is configured to: at the first determining unit, determine that the device is not placed horizontally downward according to the screen unit, or When the second determining unit determines that the noise of the acceleration detected by the gravity sensor is greater than the noise threshold, the device is controlled to exit the power saving mode.
可选的,所述重力传感器单元1207,具体用于,检测所述装置的三维直角坐标系的X轴上的加速度、Y轴上的加速度和Z轴上的加速度;所述第三判断单元1304具体用于:判断所述重力传感器单元检测到的X轴上的加速度、所述三维直角坐标系的Y轴上的加速度和所述三维直角坐标系的Z轴上的加速度是否分别为0、0、-9.8m/s2,如果否,确定所述装置没有按照所述屏幕单元朝下的水平放置。Optionally, the gravity sensor unit 1207 is configured to detect acceleration on an X axis, acceleration on a Y axis, and acceleration on a Z axis of a three-dimensional orthogonal coordinate system of the device; the third determining unit 1304 Specifically, it is determined whether the acceleration on the X axis detected by the gravity sensor unit, the acceleration on the Y axis of the three-dimensional Cartesian coordinate system, and the acceleration on the Z axis of the three-dimensional Cartesian coordinate system are respectively 0, 0. , -9.8 m/s 2 , if not, it is determined that the device is not placed horizontally downward according to the screen unit.
可选的,所述装置还包括压力传感器单元1207,多个压力传感器单元1207分布在所述装置的背面。所述压力传感器单元1207,用于检测所述装置的背面 的受力;所述重力传感器单元1202,具体用于,检测所述装置的三维直角坐标系的X轴上的加速度,和所述三维直角坐标系的Y轴上的加速度;所述第三判断单元1304具体用于:判断所述压力传感器单元检测到的压力是否为0,以及判断所述重力传感器检测所述X轴上的加速度和Y轴上的加速度是否分别为0、0;如果判断出所述压力传感器单元检测到的压力大于0;或者判断出所述重力传感器检测所述X轴上的加速度和Y轴上的加速度的至少一个不为0;则确定所述装置没有按照所述屏幕单元朝下的水平放置。Optionally, the device further comprises a pressure sensor unit 1207, the plurality of pressure sensor units 1207 being distributed on the back of the device. The pressure sensor unit 1207 is configured to detect the back of the device The gravity sensor unit 1202 is specifically configured to detect an acceleration on the X-axis of the three-dimensional Cartesian coordinate system of the device, and an acceleration on the Y-axis of the three-dimensional Cartesian coordinate system; The unit 1304 is specifically configured to: determine whether the pressure detected by the pressure sensor unit is 0, and determine whether the gravity sensor detects whether the acceleration on the X axis and the acceleration on the Y axis are 0 or 0, respectively; The pressure detected by the pressure sensor unit is greater than 0; or it is determined that the gravity sensor detects that at least one of the acceleration on the X axis and the acceleration on the Y axis is not 0; then determining that the device does not follow the screen Place the unit horizontally down.
可选的,所述装置还包括红外传感器单元1208,所述红外传感器单元1208,用于检测反射能量和反射波长;重力传感器单元1202,具体用于检测所述装置的三维直角坐标系的X轴上的加速度和所述三维直角坐标系的Y轴上的加速度;所述第三判断单元1304具体用于:判断所述红外传感器单元1208检测到的反射能量是否大于能量预设值,所述反射波长是否对应木头或玻璃,以及判断所述X轴上的加速度和所述Y轴上的加速度是否分别为0、0;如果所述反射能量小于所述能量预设值,或者所述反射波长不对应木头或玻璃,或者所述X轴上的加速度和所述Y轴上的加速度至少一个不为0,则确定所述装置没有按照所述屏幕单元朝下的水平放置。Optionally, the device further includes an infrared sensor unit 1208, configured to detect reflected energy and a reflected wavelength; and a gravity sensor unit 1202, specifically for detecting an X-axis of the three-dimensional Cartesian coordinate system of the device. The acceleration on the Y-axis and the acceleration on the Y-axis of the three-dimensional Cartesian coordinate system; the third determining unit 1304 is specifically configured to: determine whether the reflected energy detected by the infrared sensor unit 1208 is greater than an energy preset value, the reflection Whether the wavelength corresponds to wood or glass, and determining whether the acceleration on the X-axis and the acceleration on the Y-axis are 0 or 0, respectively; if the reflected energy is less than the preset value of the energy, or the reflected wavelength is not Corresponding to wood or glass, or at least one of the acceleration on the X-axis and the acceleration on the Y-axis is not zero, it is determined that the device is not placed horizontally downward according to the screen unit.
在一种实施方式中,所述噪声门限值为0.004g,其中,1g=9.8米/秒2In one embodiment, the noise threshold is 0.004 g, wherein 1 g = 9.8 m/sec 2 .
可选的,所述第二控制单元1306具体用于,开启所述装置进入省电模式时关闭的至少一部分硬件模块和至少一部分软件功能。Optionally, the second control unit 1306 is specifically configured to: turn on at least a part of the hardware module and at least a part of the software function that are turned off when the device enters the power saving mode.
需要说明的是,在一种实施方式中,本实施例中的屏幕单元1201对应之前实施例中描述的显示面板141和触控面板131,重力传感器单元1202对应之前实施例中描述的重力传感器150,第三判断单元1304,第二判断单元1205和第二控制单元1306对应之前实施例中描述的处理器180,压力传感器单元1207对 应之前实施例中描述的压力传感器151,红外传感器单元对应之前实施例中描述的红外传感器,射频单元1209对应之前实施例中描述的RF电路,WiFi单元1210对应之前实施例中描述的WiFi模块170。之前实施例中对各个模块的描述也适用于本实施例,在此不再重复。It should be noted that, in an embodiment, the screen unit 1201 in this embodiment corresponds to the display panel 141 and the touch panel 131 described in the previous embodiment, and the gravity sensor unit 1202 corresponds to the gravity sensor 150 described in the previous embodiment. The third determining unit 1304, the second determining unit 1205 and the second controlling unit 1306 correspond to the processor 180 described in the previous embodiment, and the pair of pressure sensor units 1207 According to the pressure sensor 151 described in the previous embodiment, the infrared sensor unit corresponds to the infrared sensor described in the previous embodiment, and the radio frequency unit 1209 corresponds to the RF circuit described in the previous embodiment, and the WiFi unit 1210 corresponds to the WiFi module 170 described in the previous embodiment. . The description of each module in the previous embodiment also applies to this embodiment, and will not be repeated here.
以上所列举的仅为本发明较佳实施例而已,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。 The above are only the preferred embodiments of the present invention, and thus equivalent changes made in the claims of the present invention are still within the scope of the present invention.

Claims (42)

  1. 一种进入省电模式的方法,应用于具有重力传感器的移动终端,其特征在于,所述方法包括:A method for entering a power saving mode is applied to a mobile terminal having a gravity sensor, wherein the method includes:
    判断所述移动终端是否处于正面朝下的水平放置的状态;Determining whether the mobile terminal is in a horizontally placed state facing down;
    判断所述重力传感器检测到的加速度的噪声是否小于噪声门限值;Determining whether the noise of the acceleration detected by the gravity sensor is less than a noise threshold;
    如果所述移动终端处于正面朝下的水平放置的状态,并且所述重力传感器检测到的加速度的噪声小于所述噪声门限值,所述移动终端从正常模式进入省电模式。The mobile terminal enters a power saving mode from a normal mode if the mobile terminal is in a horizontally placed downward facing state and the noise of the acceleration detected by the gravity sensor is less than the noise threshold.
  2. 如权利要求1所述的方法,其特征在于,所述判断移动终端是否处于正面朝下的水平放置的状态,包括:The method of claim 1, wherein the determining whether the mobile terminal is in a horizontally placed state facing down comprises:
    使用所述重力传感器检测所述移动终端的三维直角坐标系的X轴上的加速度、所述三维直角坐标系的Y轴上的加速度和所述三维直角坐标系的Z轴上的加速度是否分别为0、0、-9.8m/s2Using the gravity sensor to detect acceleration on the X-axis of the three-dimensional Cartesian coordinate system of the mobile terminal, acceleration on the Y-axis of the three-dimensional Cartesian coordinate system, and acceleration on the Z-axis of the three-dimensional Cartesian coordinate system, respectively 0, 0, -9.8m/s 2 ;
    如果是,则确定所述移动终端处于正面朝下的水平放置的状态。If so, it is determined that the mobile terminal is in a horizontally placed state facing down.
  3. 如权利要求1所述的方法,其特征在于,所述判断移动终端是否处于正面朝下的水平放置的状态,包括:The method of claim 1, wherein the determining whether the mobile terminal is in a horizontally placed state facing down comprises:
    使用所述重力传感器检测所述移动终端的三维直角坐标系的X轴上的加速度、所述三维直角坐标系的Y轴上的加速度和所述三维直角坐标系的Z轴上的加速度是否分别为0、0、-9.8m/s2Using the gravity sensor to detect acceleration on the X-axis of the three-dimensional Cartesian coordinate system of the mobile terminal, acceleration on the Y-axis of the three-dimensional Cartesian coordinate system, and acceleration on the Z-axis of the three-dimensional Cartesian coordinate system, respectively 0, 0, -9.8m/s 2 ;
    如果是,判断所述X轴上的加速度、所述Y轴上的加速度和所述Z轴上的加速度是否在第一持续时间内分别保持为0、0、-9.8m/s2,如果是,则确定所述移动终端处于正面朝下的水平放置的状态。If yes, determining whether the acceleration on the X axis, the acceleration on the Y axis, and the acceleration on the Z axis are respectively maintained at 0, 0, -9.8 m/s 2 for the first duration, if And determining that the mobile terminal is in a horizontally placed state facing down.
  4. 如权利要求1所述的方法,其特征在于,所述移动终端还包括分布在背 面的多个压力传感器;The method of claim 1 wherein said mobile terminal further comprises a back Multiple pressure sensors on the surface;
    所述判断移动终端是否处于正面朝下的水平放置的状态,包括:The determining whether the mobile terminal is in a horizontally placed state facing down includes:
    判断多个所述压力传感器检测到的压力是否为0;Determining whether the pressure detected by the plurality of pressure sensors is 0;
    使用所述重力传感器检测所述移动终端的三维直角坐标系的X轴上的加速度和所述三维直角坐标系的Y轴上的加速度是否分别为0、0;Using the gravity sensor to detect whether the acceleration on the X-axis of the three-dimensional Cartesian coordinate system of the mobile terminal and the acceleration on the Y-axis of the three-dimensional Cartesian coordinate system are 0, 0, respectively;
    如果多个所述压力传感器检测到的压力为0,并且所述X轴的加速度和Y轴上的加速度分别为0、0,则确定所述移动终端处于正面朝下的水平放置的状态。If the pressure detected by the plurality of pressure sensors is 0, and the acceleration of the X-axis and the acceleration on the Y-axis are 0, 0, respectively, it is determined that the mobile terminal is in a horizontally placed state facing downward.
  5. 如权利要求1所述的方法,其特征在于,所述移动终端还包括位于所述移动终端正面的红外传感器;The method of claim 1 wherein said mobile terminal further comprises an infrared sensor located on a front side of said mobile terminal;
    所述判断移动终端是否处于正面朝下的水平放置的状态,包括:The determining whether the mobile terminal is in a horizontally placed state facing down includes:
    判断所述红外传感器检测到的反射能量是否大于能量门限值;Determining whether the reflected energy detected by the infrared sensor is greater than an energy threshold;
    判断所述红外传感器检测到的反射波长对应木头或玻璃;Determining that the reflection wavelength detected by the infrared sensor corresponds to wood or glass;
    使用所述重力传感器检测所述移动终端的三维直角坐标系的X轴上的加速度和所述三维直角坐标系的Y轴上的加速度是否分别为0、0;Using the gravity sensor to detect whether the acceleration on the X-axis of the three-dimensional Cartesian coordinate system of the mobile terminal and the acceleration on the Y-axis of the three-dimensional Cartesian coordinate system are 0, 0, respectively;
    如果所述反射能量大于所述能量预设值,所述反射波长对应木头或玻璃,并且所述X轴上的加速度和所述Y轴上的加速度分别为0、0;If the reflected energy is greater than the energy preset value, the reflected wavelength corresponds to wood or glass, and the acceleration on the X axis and the acceleration on the Y axis are 0, 0, respectively;
    确定所述移动终端处于正面朝下的水平放置的状态。It is determined that the mobile terminal is in a horizontally placed state facing down.
  6. 如权利要求1至5任一项所述的方法,其特征在于,判断所述重力传感器检测到的加速度的噪声是否小于噪声门限值,包括:The method according to any one of claims 1 to 5, wherein determining whether the noise of the acceleration detected by the gravity sensor is less than a noise threshold comprises:
    判断所述重力传感器在第二持续时间内检测到的最大的加速度噪声是否低于所述噪声门限值,如果是,则确定所述述重力传感器检测到的加速度的噪声低于所述噪声门限值;或者 Determining whether the maximum acceleration noise detected by the gravity sensor in the second duration is lower than the noise threshold, and if so, determining that the noise of the acceleration detected by the gravity sensor is lower than the noise gate Limit; or
    判断所述重力传感器在第二持续时间内检测到的所有的加速度噪声的平均值是否低于所述噪声门限值,如果是,则确定所述述重力传感器检测到的加速度的噪声低于所述噪声门限值。Determining whether an average value of all acceleration noises detected by the gravity sensor in the second duration is lower than the noise threshold, and if so, determining that the noise of the acceleration detected by the gravity sensor is lower than The noise threshold is described.
  7. 如权利要求1至6任一项所述的方法,其特征在于,所述噪声门限值为G0,其中0.0038g<G0<0.01g,1g=9.8米/秒2The method according to any one of claims 1 to 6, wherein the noise threshold is G0, wherein 0.0038 g < G0 < 0.01 g, 1 g = 9.8 m / sec 2 .
  8. 如权利要求1至7任一项所述的方法,所述移动终端进入省电模式,包括保持接听呼叫的功能正常运行,还包括以下至少一个:The method according to any one of claims 1 to 7, wherein the mobile terminal enters a power saving mode, including maintaining a function of answering a call, and further includes at least one of the following:
    如果判断当前没有从移动数据网络下载数据,断开所述移动终端的射频电路与所述移动数据网络的连接;If it is determined that the data is not currently downloaded from the mobile data network, disconnect the radio frequency circuit of the mobile terminal from the mobile data network;
    如果判断当前没有从所述移动数据网络下载数据,关闭与所述移动数据网络连接的射频电路;If it is determined that data is not currently downloaded from the mobile data network, the radio frequency circuit connected to the mobile data network is closed;
    如果判断当前没有使用WiFi模块下载数据,断开WiFi模块与接入点的连接;If it is determined that the WiFi module is not currently used to download data, disconnect the WiFi module from the access point;
    如果判断当前没有使用所述WiFi模块下载数据,关闭所述WiFi模块。If it is judged that the WiFi module is not currently used to download data, the WiFi module is turned off.
  9. 一种退出省电模式的方法,应用于具有重力传感器的移动终端,其特征在于,包括:A method for exiting a power saving mode, applied to a mobile terminal having a gravity sensor, comprising:
    判断所述移动终端是否处于正面朝下的水平放置的状态;Determining whether the mobile terminal is in a horizontally placed state facing down;
    判断所述重力加速度检测到的加速度的噪声是否小于噪声门限值;Determining whether the noise of the acceleration detected by the gravitational acceleration is less than a noise threshold;
    如果所述移动终端没有处于正面朝下的水平放置的状态,并且所述所述重力加速度检测到的加速度的噪声大于所述噪声门限值,所述移动终端退出所述省电模式;If the mobile terminal is not in a horizontally placed state facing down, and the noise of the acceleration detected by the gravitational acceleration is greater than the noise threshold, the mobile terminal exits the power saving mode;
    或者如果所述所述重力加速度检测到的加速度的噪声大于所述噪声门限值,所述移动终端退出所述省电模式。 Or if the noise of the acceleration detected by the gravity acceleration is greater than the noise threshold, the mobile terminal exits the power saving mode.
  10. 如权利要求11所述的方法,其特征在于,所述判断移动终端是否处于正面朝下的水平放置的状态,包括:The method according to claim 11, wherein the determining whether the mobile terminal is in a horizontally placed state facing down comprises:
    使用所述重力传感器检测所述移动终端的三维直角坐标系的X轴上的加速度、所述三维直角坐标系的Y轴上的加速度和所述三维直角坐标系的Z轴上的加速度是否分别为0、0、-9.8m/s2Using the gravity sensor to detect acceleration on the X-axis of the three-dimensional Cartesian coordinate system of the mobile terminal, acceleration on the Y-axis of the three-dimensional Cartesian coordinate system, and acceleration on the Z-axis of the three-dimensional Cartesian coordinate system, respectively 0, 0, -9.8m/s 2 ;
    如果否,则确定所述移动终端没有处于正面朝下的水平放置的状态。If not, it is determined that the mobile terminal is not in a horizontally placed state facing down.
  11. 如权利要求9所述的方法,其特征在于,所述移动终端还包括分布在所述移动终端背面的多个压力传感器;The method of claim 9 wherein said mobile terminal further comprises a plurality of pressure sensors distributed on the back of said mobile terminal;
    所述判断移动终端是否处于正面朝下的水平放置的状态,包括:The determining whether the mobile terminal is in a horizontally placed state facing down includes:
    判断多个所述压力传感器检测到的压力是否为0;Determining whether the pressure detected by the plurality of pressure sensors is 0;
    使用所述重力传感器检测所述移动终端的三维直角坐标系的X轴上的加速度和所述三维直角坐标系的Y轴上的加速度是否分别为0、0;Using the gravity sensor to detect whether the acceleration on the X-axis of the three-dimensional Cartesian coordinate system of the mobile terminal and the acceleration on the Y-axis of the three-dimensional Cartesian coordinate system are 0, 0, respectively;
    如果所述多个压力传感器检测到的压力大于0,或者所述X轴和Y轴上的加速度中至少有一个不为0,则确定所述移动终端没有处于正面朝下的水平放置的状态。If the pressure detected by the plurality of pressure sensors is greater than zero, or at least one of the accelerations on the X-axis and the Y-axis is not zero, it is determined that the mobile terminal is not in a horizontally placed state facing down.
  12. 如权利要求9所述的方法,其特征在于,所述移动终端还包括,位于所述移动终端正面的红外传感器;The method of claim 9, wherein the mobile terminal further comprises an infrared sensor located on a front side of the mobile terminal;
    所述判断移动终端是否处于正面朝下的水平放置的状态,包括:The determining whether the mobile terminal is in a horizontally placed state facing down includes:
    判断所述红外传感器检测到的反射能量是否大于能量门限值;Determining whether the reflected energy detected by the infrared sensor is greater than an energy threshold;
    并判断所述红外传感器检测到的反射波长对应木头或玻璃;And determining that the reflection wavelength detected by the infrared sensor corresponds to wood or glass;
    如果所述反射能量小于所述能量预设值,或者所述反射波长不对应木头或玻璃;If the reflected energy is less than the energy preset value, or the reflected wavelength does not correspond to wood or glass;
    确定所述移动终端没有处于正面朝下的水平放置的状态。 It is determined that the mobile terminal is not in a horizontally placed state facing down.
  13. 如权利要求9至12任一项所述的方法,其特征在于,所述噪声门限值为G0,其中0.0038g<G0<0.01g,其中,1g=9.8米/秒2The method according to any one of claims 9 to 12, wherein the noise threshold is G0, wherein 0.0038 g < G0 < 0.01 g, wherein 1 g = 9.8 m / sec 2 .
  14. 如权利要求9至13任一项所述的方法,其特征在于,所述移动终端退出省电模式,包括:开启所述移动终端进入省电模式时关闭的至少一部分硬件模块和至少一部分软件功能。The method according to any one of claims 9 to 13, wherein the mobile terminal exits the power saving mode, comprising: turning on at least a part of the hardware module and at least a part of the software function that are closed when the mobile terminal enters the power saving mode. .
  15. 一种进入省电模式的装置,所述装置包括:屏幕单元:用于显示用户界面;重力传感器单元,用于检测所述装置的加速度以及加速度的噪声;A device for entering a power saving mode, the device comprising: a screen unit for displaying a user interface; a gravity sensor unit for detecting acceleration of the device and noise of the acceleration;
    其特征在于,所述装置还包括:The device further includes:
    第一判断单元,用于判断所述装置是否正面朝下的水平放置;a first determining unit, configured to determine whether the device is placed horizontally downward;
    第二判断单元,用于判断所述重力传感器单元检测到的加速度的噪声是否小于噪声门限值;a second determining unit, configured to determine whether the noise of the acceleration detected by the gravity sensor unit is less than a noise threshold;
    第一控制单元,用于在所述第一判断单元判断出所述装置正面朝下的水平放置,并且所述第二判断单元判断出所述重力传感器检测到的加速度的噪声小于所述噪声门限值时,控制所述装置从正常模式进入省电模式。a first control unit, configured to determine, in the first determining unit, that the device is placed face down in a horizontal direction, and the second determining unit determines that the noise of the acceleration detected by the gravity sensor is smaller than the noise gate At the limit, the device is controlled to enter the power save mode from the normal mode.
  16. 如权利要求15所述的装置,其特征在于,The device of claim 15 wherein:
    所述重力传感器单元,具体用于,检测所述装置的三维直角坐标系的X轴上的加速度、Y轴上的加速度和Z轴上的加速度;The gravity sensor unit is specifically configured to detect an acceleration on an X axis, an acceleration on a Y axis, and an acceleration on a Z axis of a three-dimensional Cartesian coordinate system of the device;
    所述第一判断单元具体用于:判断所述重力传感器单元检测到的X轴上的加速度、所述三维直角坐标系的Y轴上的加速度和所述三维直角坐标系的Z轴上的加速度是否分别为0、0、-9.8m/s2,如果是,确定所述装置正面朝下的水平放置。The first determining unit is specifically configured to: determine an acceleration on the X axis detected by the gravity sensor unit, an acceleration on a Y axis of the three-dimensional Cartesian coordinate system, and an acceleration on a Z axis of the three-dimensional Cartesian coordinate system Whether it is 0, 0, -9.8 m/s 2 respectively , and if so, it is determined that the device is placed horizontally face down.
  17. 如权利要求15所述的装置,其特征在于,The device of claim 15 wherein:
    所述重力传感器单元,具体用于,检测所述装置的三维直角坐标系的X轴 上的加速度、Y轴上的加速度和Z轴上的加速度;The gravity sensor unit is specifically configured to detect an X axis of a three-dimensional Cartesian coordinate system of the device Acceleration on, acceleration on the Y-axis, and acceleration on the Z-axis;
    所述第一判断单元具体用于:判断所述重力传感器单元检测到的X轴上的加速度、所述三维直角坐标系的Y轴上的加速度和所述三维直角坐标系的Z轴上的加速度是否分别为0、0、-9.8m/s2,如果是,断所述X轴上的加速度、所述Y轴上的加速度和所述Z轴上的加速度是否在第一持续时间内分别保持为0、0、-9.8m/s2,如果是,则确定所述移动终端处于正面朝下的水平放置的状态。The first determining unit is specifically configured to: determine an acceleration on the X axis detected by the gravity sensor unit, an acceleration on a Y axis of the three-dimensional Cartesian coordinate system, and an acceleration on a Z axis of the three-dimensional Cartesian coordinate system Whether it is 0, 0, -9.8m/s 2 respectively , and if so, whether the acceleration on the X axis, the acceleration on the Y axis, and the acceleration on the Z axis are respectively maintained for the first duration It is 0, 0, -9.8 m/s 2 , and if so, it is determined that the mobile terminal is in a horizontally placed state facing down.
  18. 如权利要求15所述的装置,其特征在于,所述装置还包括,位于所述装置背面的多个压力传感器单元,所述压力传感器单元,用于检测所述装置的背面的受力;The device according to claim 15, wherein said device further comprises a plurality of pressure sensor units located on the back of said device, said pressure sensor unit for detecting a force on the back of said device;
    所述重力传感器单元,具体用于,检测所述装置的三维直角坐标系的X轴上的加速度,和所述三维直角坐标系的Y轴上的加速度;The gravity sensor unit is specifically configured to detect an acceleration on an X axis of a three-dimensional Cartesian coordinate system of the device, and an acceleration on a Y axis of the three-dimensional Cartesian coordinate system;
    所述第一判断单元具体用于:判断所述压力传感器单元检测到的压力是否为0,以及判断所述重力传感器单元检测到的所述X轴上的加速度和Y轴上的加速度是否分别为0、0;如果判断出所述压力传感器单元检测到的压力为0;并且判断出所述重力传感器检测所述X轴上的加速度和Y轴上的加速度分别为0、0;则确定所述装置正面朝下的水平放置。The first determining unit is specifically configured to: determine whether the pressure detected by the pressure sensor unit is 0, and determine whether the acceleration on the X axis and the acceleration on the Y axis detected by the gravity sensor unit are respectively 0, 0; if it is determined that the pressure detected by the pressure sensor unit is 0; and it is determined that the gravity sensor detects the acceleration on the X axis and the acceleration on the Y axis are 0, 0 respectively; The device is placed horizontally face down.
  19. 如权利要求15所述的装置,其特征在于,所述装置还包括,位于所述装置正面的红外传感器单元,所述红外传感器单元,用于检测反射能量和反射波长;The device according to claim 15, wherein said device further comprises: an infrared sensor unit on a front side of said device, said infrared sensor unit for detecting reflected energy and reflected wavelength;
    所述重力传感器单元,具体用于,检测所述装置的三维直角坐标系的X轴上的加速度和所述三维直角坐标系的Y轴上的加速度;The gravity sensor unit is specifically configured to detect an acceleration on an X axis of the three-dimensional Cartesian coordinate system of the device and an acceleration on a Y axis of the three-dimensional Cartesian coordinate system;
    所述第一判断单元具体用于:判断所述红外传感器单元检测到的反射能量大于能量门限值,所述反射波长是否对应木头或玻璃,以及判断所述X轴上的 加速度和所述Y轴上的加速度是否分别为0、0;如果所述反射能量大于所述能量门限值,所述反射波长对应木头或玻璃,并且所述X轴上的加速度和所述Y轴上的加速度分别为0、0,则确定所述装置正面朝下的水平放置。The first determining unit is specifically configured to: determine that the reflected energy detected by the infrared sensor unit is greater than an energy threshold, whether the reflected wavelength corresponds to wood or glass, and determine the X axis Whether the acceleration and the acceleration on the Y axis are 0, 0 respectively; if the reflected energy is greater than the energy threshold, the reflected wavelength corresponds to wood or glass, and the acceleration on the X axis and the Y The accelerations on the axes are 0, 0, respectively, to determine the horizontal placement of the device face down.
  20. 如权利要求15至19任一项所述的装置,其特征在于,所述第二判断单元具体用于,判断所述重力传感器单元在第二持续时间内检测到的最大的加速度噪声是否低于所述噪声门限值,如果是,则确定所述述重力传感器单元检测到的加速度的噪声低于所述噪声门限值;或者The device according to any one of claims 15 to 19, wherein the second determining unit is specifically configured to determine whether the maximum acceleration noise detected by the gravity sensor unit during the second duration is lower than The noise threshold, if yes, determining that the noise of the acceleration detected by the gravity sensor unit is lower than the noise threshold; or
    判断所述重力传感器单元在第二持续时间内检测到的所有的加速度噪声的平均值是否低于所述噪声门限值,如果是,则确定所述述重力传感器单元检测到的加速度的噪声低于所述噪声门限值。Determining whether an average value of all acceleration noises detected by the gravity sensor unit in the second duration is lower than the noise threshold, and if yes, determining that the acceleration of the acceleration detected by the gravity sensor unit is low The noise threshold.
  21. 如权利要求15至20任一项所述的装置,其特征在于,所述噪声门限值为G0,其中0.0038g<G0<0.01g,其中,1g=9.8米/秒2The apparatus according to any one of claims 15 to 20, wherein the noise threshold is G0, wherein 0.0038 g < G0 < 0.01 g, wherein 1 g = 9.8 m / sec 2 .
  22. 如权利要求15至21任一项所述的装置,其特征在于,A device according to any one of claims 15 to 21, wherein
    所述装置还包括,射频单元,用于与移动数据网络建立连接,并从所述移动数据网络下载数据;和WiFi单元,用于与所述接入点建立连接,并从所述接入点下载数据;The apparatus also includes a radio frequency unit for establishing a connection with the mobile data network and downloading data from the mobile data network, and a WiFi unit for establishing a connection with the access point and from the access point Download data;
    所述第一控制单元具体用于,保持接听呼叫的功能正常运行,以及执行以下至少一个:The first control unit is specifically configured to keep the function of answering the call running normally, and perform at least one of the following:
    如果判断当前所述射频单元没有从所述移动数据网络下载数据,断开所述射频单元与所述移动数据网络的连接;If it is determined that the radio frequency unit does not download data from the mobile data network, disconnect the radio frequency unit from the mobile data network;
    如果判断当前所述射频单元没有从所述移动数据网络下载数据,关闭所述射频单元;If it is determined that the radio frequency unit does not download data from the mobile data network, the radio frequency unit is turned off;
    如果判断当前所述WiFi模块有下载数据,断开所述WiFi模块与所述接入 点的连接;和If it is determined that the WiFi module currently has download data, disconnecting the WiFi module from the access Point connection; and
    如果判断当前所述WiFi模块有下载数据,关闭所述WiFi模块。If it is determined that the WiFi module currently has download data, the WiFi module is turned off.
  23. 一种退出省电模式的装置,所述装置包括:屏幕单元:用于显示用户界面;重力传感器单元,用于检测所述装置的加速度以及加速度的噪声;其特征在于,所述装置还包括:A device for exiting the power saving mode, the device comprising: a screen unit for displaying a user interface; a gravity sensor unit for detecting acceleration of the device and noise of the acceleration; wherein the device further comprises:
    第三判断单元,用于判断所述装置是否正面朝下的水平放置;a third determining unit, configured to determine whether the device is placed horizontally facing down;
    第二判断单元,用于判断所述重力传感器单元检测到的加速度的噪声是否小于噪声门限值;a second determining unit, configured to determine whether the noise of the acceleration detected by the gravity sensor unit is less than a noise threshold;
    第二控制单元,用于在所述第三判断单元判断出所述装置没有正面朝下的水平放置,和所述第二判断单元判断出所述重力传感器检测到的加速度的噪声大于所述噪声门限值时,控制所述装置退出省电模式;a second control unit, configured to determine, in the third determining unit, that the device is not placed face down horizontally, and the second determining unit determines that the noise of the acceleration detected by the gravity sensor is greater than the noise Controlling the device to exit the power saving mode when the threshold is exceeded;
    或所述第二判断单元判断出所述重力传感器检测到的加速度的噪声大于所述噪声门限值时,控制所述装置退出省电模式。Or when the second determining unit determines that the noise of the acceleration detected by the gravity sensor is greater than the noise threshold, the device is controlled to exit the power saving mode.
  24. 如权利要求23所述的装置,其特征在于,所述重力传感器单元,具体用于,检测所述装置的三维直角坐标系的X轴上的加速度、Y轴上的加速度和Z轴上的加速度;The apparatus according to claim 23, wherein said gravity sensor unit is specifically configured to detect acceleration on the X-axis of the three-dimensional Cartesian coordinate system of the apparatus, acceleration on the Y-axis, and acceleration on the Z-axis ;
    所述第三判断单元具体用于:判断所述重力传感器单元检测到的X轴上的加速度、所述三维直角坐标系的Y轴上的加速度和所述三维直角坐标系的Z轴上的加速度是否分别为0、0、-9.8m/s2,如果否,确定所述装置没有正面朝下的水平放置。The third determining unit is specifically configured to: determine an acceleration on the X-axis detected by the gravity sensor unit, an acceleration on a Y-axis of the three-dimensional Cartesian coordinate system, and an acceleration on a Z-axis of the three-dimensional Cartesian coordinate system Whether it is 0, 0, -9.8 m/s 2 respectively , and if not, it is determined that the device is not placed horizontally face down.
  25. 如权利要求23所述的装置,其特征在于,所述装置还包括,位于所述装置背面的多个压力传感器单元,所述压力传感器单元,用于检测所述装置的背面的受力; The device according to claim 23, further comprising: a plurality of pressure sensor units on the back of said device, said pressure sensor unit for detecting a force on the back of said device;
    所述重力传感器单元,具体用于,检测所述装置的三维直角坐标系的X轴上的加速度,和所述三维直角坐标系的Y轴上的加速度;The gravity sensor unit is specifically configured to detect an acceleration on an X axis of a three-dimensional Cartesian coordinate system of the device, and an acceleration on a Y axis of the three-dimensional Cartesian coordinate system;
    所述第三判断单元具体用于:判断所述压力传感器单元检测到的压力是否为0,以及判断所述重力传感器检测所述X轴上的加速度和Y轴上的加速度是否分别为0、0;如果判断出所述压力传感器单元检测到的压力大于0;或者判断出所述重力传感器检测所述X轴上的加速度和Y轴上的加速度的至少一个不为0;则确定所述装置没有正面朝下的水平放置。The third determining unit is specifically configured to: determine whether the pressure detected by the pressure sensor unit is 0, and determine whether the gravity sensor detects whether the acceleration on the X axis and the acceleration on the Y axis are 0 or 0, respectively. If it is determined that the pressure detected by the pressure sensor unit is greater than 0; or it is determined that the gravity sensor detects that at least one of the acceleration on the X-axis and the acceleration on the Y-axis is not 0; Place horizontally face down.
  26. 如权利要求23所述的装置,其特征在于,所述装置还包括,位于所述装置正面的红外传感器单元,所述红外传感器单元,用于检测反射能量和反射波长;The device according to claim 23, further comprising: an infrared sensor unit located on a front side of said device, said infrared sensor unit for detecting reflected energy and reflected wavelength;
    所述重力传感器单元,具体用于,检测所述装置的三维直角坐标系的X轴上的加速度和所述三维直角坐标系的Y轴上的加速度;The gravity sensor unit is specifically configured to detect an acceleration on an X axis of the three-dimensional Cartesian coordinate system of the device and an acceleration on a Y axis of the three-dimensional Cartesian coordinate system;
    所述第三判断单元具体用于:判断所述红外传感器单元检测到的反射能量是否大于能量门限值,所述反射波长是否对应木头或玻璃,以及判断所述X轴上的加速度和所述Y轴上的加速度是否分别为0、0;如果所述反射能量小于所述能量门限值,或者所述反射波长不对应木头或玻璃,或者所述X轴上的加速度和所述Y轴上的加速度至少一个不为0,则确定所述装置没有正面朝下的水平放置。The third determining unit is specifically configured to: determine whether the reflected energy detected by the infrared sensor unit is greater than an energy threshold, whether the reflected wavelength corresponds to wood or glass, and determine an acceleration on the X axis and the Whether the acceleration on the Y axis is 0, 0 respectively; if the reflected energy is less than the energy threshold, or the reflected wavelength does not correspond to wood or glass, or the acceleration on the X axis and the Y axis The acceleration of at least one is not zero, then it is determined that the device is not placed horizontally facing down.
  27. 如权利要求23至26所述的装置,其特征在于,所述噪声门限值为G0,其中0.0038g<G0<0.01g,其中,1g=9.8米/秒2The apparatus according to claims 23 to 26, wherein said noise threshold is G0, wherein 0.0038 g < G0 < 0.01 g, wherein 1 g = 9.8 m / sec 2 .
  28. 如权利要求23至27所述的装置,其特征在于,所述第二控制单元具体用于,开启所述装置进入省电模式时关闭的至少一部分硬件模块和至少一部分软件功能。 The device according to any one of claims 23 to 27, wherein the second control unit is specifically configured to: turn on at least a part of the hardware module and at least a part of the software function that are turned off when the device enters the power saving mode.
  29. 一种移动终端,包括,屏幕,用于显示用户界面;重力传感器,用于检测所述移动终端的重力加速度以及加速度的噪声;A mobile terminal includes: a screen for displaying a user interface; a gravity sensor for detecting a gravity acceleration of the mobile terminal and noise of the acceleration;
    其特征在于,所述移动终端还包括:The mobile terminal further includes:
    处理器,用于判断所述移动终端是否处于正面朝下的水平放置的状态;判断所述重力传感器检测到的加速度的噪声是否小于噪声门限值;如果所述移动终端处于正面朝下的水平放置的状态,并且所述重力传感器检测到的加速度的噪声小于所述噪声门限值,控制所述移动终端从正常模式进入省电模式。a processor, configured to determine whether the mobile terminal is in a horizontally placed state facing downward; determining whether the noise of the acceleration detected by the gravity sensor is less than a noise threshold; if the mobile terminal is at a level facing down The state of being placed, and the noise of the acceleration detected by the gravity sensor is less than the noise threshold, and the mobile terminal is controlled to enter the power saving mode from the normal mode.
  30. 如权利要求29所述的移动终端,其特征在于,所述重力传感器具体用于,检测所述移动终端的三维直角坐标系的X轴上的加速度、所述三维直角坐标系的Y轴上的加速度和所述三维直角坐标系的Z轴上的加速度;The mobile terminal according to claim 29, wherein the gravity sensor is specifically configured to detect an acceleration on an X-axis of a three-dimensional Cartesian coordinate system of the mobile terminal, and a Y-axis of the three-dimensional Cartesian coordinate system Acceleration and acceleration on the Z-axis of the three-dimensional Cartesian coordinate system;
    所述处理器,具体用于,判断所述重力传感器检测到的所述X轴上的加速度、所述Y轴上的加速度以及所述Z轴上的加速度是否分别为0、0、-9.8m/s2,如果是,则确定所述移动终端处于正面朝下的水平放置的状态。The processor is specifically configured to determine whether the acceleration on the X axis, the acceleration on the Y axis, and the acceleration on the Z axis detected by the gravity sensor are 0, 0, and -9.8 m, respectively. /s 2 , and if so, it is determined that the mobile terminal is in a horizontally placed state facing down.
  31. 如权利要求29所述的移动终端,其特征在于,所述重力传感器具体用于,检测所述移动终端的三维直角坐标系的X轴上的加速度、所述三维直角坐标系的Y轴上的加速度和所述三维直角坐标系的Z轴上的加速度;The mobile terminal according to claim 29, wherein the gravity sensor is specifically configured to detect an acceleration on an X-axis of a three-dimensional Cartesian coordinate system of the mobile terminal, and a Y-axis of the three-dimensional Cartesian coordinate system Acceleration and acceleration on the Z-axis of the three-dimensional Cartesian coordinate system;
    所述处理器,具体用于,判断所述重力传感器检测到的所述X轴上的加速度、所述Y轴上的加速度以及所述Z轴上的加速度是否分别为0、0、-9.8m/s2The processor is specifically configured to determine whether the acceleration on the X axis, the acceleration on the Y axis, and the acceleration on the Z axis detected by the gravity sensor are 0, 0, and -9.8 m, respectively. /s 2 ,
    如果是,判断所述X轴上的加速度、所述Y轴上的加速度和所述Z轴上的加速度是否在第一持续时间内分别保持为0、0、-9.8m/s2,如果是,则确定所述移动终端处于正面朝下的水平放置的状态。If yes, determining whether the acceleration on the X axis, the acceleration on the Y axis, and the acceleration on the Z axis are respectively maintained at 0, 0, -9.8 m/s 2 for the first duration, if And determining that the mobile terminal is in a horizontally placed state facing down.
  32. 如权利要求29所述的移动终端,其特征在于,所述移动终端还包括:分布在所述所述移动终端背面的多个压力传感器,所述压力传感器用于检测所 述移动终端的背面的受力;A mobile terminal according to claim 29, wherein said mobile terminal further comprises: a plurality of pressure sensors distributed on the back of said mobile terminal, said pressure sensor being used for detecting said The force on the back of the mobile terminal;
    所述重力传感器具体用于,检测所述移动终端的三维直角坐标系的X轴上的加速度和所述三维直角坐标系的Y轴上的加速度;The gravity sensor is specifically configured to detect an acceleration on an X axis of the three-dimensional Cartesian coordinate system of the mobile terminal and an acceleration on a Y axis of the three-dimensional Cartesian coordinate system;
    所述处理器,具体用于,判断多个所述压力传感器检测到的压力是否为0,以及判断X轴上的加速度和所述三维直角坐标系的Y轴上的加速度是否分别为0、0;如果多个所述压力传感器检测到的压力为0,并且所述X轴的加速度和Y轴上的加速度分别为0、0,则确定所述移动终端处正面朝下的水平放置的状态。The processor is specifically configured to determine whether the pressure detected by the plurality of pressure sensors is 0, and determine whether the acceleration on the X-axis and the acceleration on the Y-axis of the three-dimensional Cartesian coordinate system are 0 or 0, respectively. If the pressure detected by the plurality of pressure sensors is 0, and the accelerations of the X-axis and the accelerations on the Y-axis are 0, 0, respectively, a state in which the mobile terminal is placed face down in a horizontal direction is determined.
  33. 如权利要求29所述的移动终端,其特征在于,所述移动终端还包括:位于在所述所述移动终端正面的红外传感器;所述红外传感器用于检测反射能量和反射波长;The mobile terminal according to claim 29, wherein the mobile terminal further comprises: an infrared sensor located on a front side of the mobile terminal; the infrared sensor is configured to detect a reflected energy and a reflected wavelength;
    所述重力传感器具体用于,检测所述移动终端的三维直角坐标系的X轴上的加速度和所述三维直角坐标系的Y轴上的加速度;The gravity sensor is specifically configured to detect an acceleration on an X axis of the three-dimensional Cartesian coordinate system of the mobile terminal and an acceleration on a Y axis of the three-dimensional Cartesian coordinate system;
    所述处理器,具体用于,判断所述反射能力是否大于能量门限值,判断所述反射波长对应木头或玻璃,判断所述X轴上的加速度和所述Y轴上的加速度分别为0、0;如果所述反射能量大于所述能量门限值,所述反射波长对应木头或玻璃,并且所述X轴上的加速度和所述Y轴上的加速度分别为0、0;则确定所述移动终端处于正面朝下的水平放置的状态。The processor is specifically configured to determine whether the reflection capability is greater than an energy threshold, determine that the reflection wavelength corresponds to wood or glass, and determine that the acceleration on the X axis and the acceleration on the Y axis are respectively 0. 0 if the reflected energy is greater than the energy threshold, the reflected wavelength corresponds to wood or glass, and the acceleration on the X-axis and the acceleration on the Y-axis are 0, 0, respectively; The mobile terminal is in a horizontally placed state facing down.
  34. 如权利要求29-33任一项所述的移动终端,其特征在于,所述处理器,具体用于,判断所述重力传感器在第二持续时间内检测到的最大的加速度噪声是否低于所述噪声门限值,如果是,则确定所述述重力传感器检测到的加速度的噪声低于所述噪声门限值;或者The mobile terminal according to any one of claims 29 to 33, wherein the processor is configured to determine whether the maximum acceleration noise detected by the gravity sensor during the second duration is lower than a noise threshold, if yes, determining that the noise of the acceleration detected by the gravity sensor is lower than the noise threshold; or
    判断所述重力传感器在第二持续时间内检测到的所有的加速度噪声的平均值是否低于所述噪声门限值,如果是,则确定所述述重力传感器检测到的加速 度的噪声低于所述噪声门限值。Determining whether an average value of all acceleration noises detected by the gravity sensor in the second duration is lower than the noise threshold, and if yes, determining an acceleration detected by the gravity sensor The noise of the degree is lower than the noise threshold.
  35. 如权利要求29-34任一项所述的移动终端,其特征在于,所述噪声门限值为G0,其中0.0038g<G0<0.01g,其中,1g=9.8米/秒2The mobile terminal according to any one of claims 29 to 34, wherein the noise threshold is G0, wherein 0.0038 g < G0 < 0.01 g, wherein 1 g = 9.8 m / sec 2 .
  36. 如权利要求29-35任一项所述的移动终端,其特征在于,A mobile terminal according to any of claims 29-35, characterized in that
    所述移动终端还包括射频电路,用于与移动数据网络建立连接,并从所述移动数据网络下载数据;WiFi模块,用于与接入点建立连接,并从所述接入点下载数据;The mobile terminal further includes a radio frequency circuit configured to establish a connection with the mobile data network and download data from the mobile data network; a WiFi module configured to establish a connection with the access point and download data from the access point;
    所述处理器具体用于,保持接听呼叫的功能正常运行,并执行以及以下至少一个:The processor is specifically configured to keep the function of answering a call running normally, and execute at least one of the following:
    如果判断当前所述射频电路没有从所述移动数据网络下载数据,控制所述射频电路断开与所述移动数据网络的连接;If it is determined that the radio frequency circuit does not download data from the mobile data network, the radio frequency circuit is controlled to disconnect from the mobile data network;
    如果判断当前所述射频电路没有从所述移动数据网络下载数据,关闭所述射频电路;If it is determined that the radio frequency circuit does not download data from the mobile data network, the radio frequency circuit is turned off;
    如果判断当前所述WiFi模块没有下载数据,控制所述WiFi模块断开与所述接入点的连接;If it is determined that the WiFi module does not download data, the WiFi module is controlled to disconnect from the access point;
    如果判断前所述WiFi模块没有下载数据,关闭所述WiFi模块。If it is determined that the WiFi module does not download data, the WiFi module is turned off.
  37. 一种移动终端,包括,屏幕,用于显示用户界面;重力传感器,用于检测所述移动终端的重力加速度以及加速度的噪声;所述移动终端处于省电模式;A mobile terminal includes: a screen for displaying a user interface; a gravity sensor for detecting a gravity acceleration of the mobile terminal and noise of acceleration; the mobile terminal is in a power saving mode;
    其特征在于,所述移动终端还包括:The mobile terminal further includes:
    处理器,用于判断所述移动终端是否处于正面朝下的水平放置的状态;判断所述重力传感器检测到的加速度的噪声是否小于噪声门限值;如果所述移动终端没有处于正面朝下的水平放置的状态,和所述所述重力加速度检测到的加 速度的噪声大于所述噪声门限值,控制移动终端退出所述省电模式;或者,如果所述所述重力加速度检测到的加速度的噪声大于所述噪声门限值,控制移动终端退出所述省电模式。a processor, configured to determine whether the mobile terminal is in a horizontally placed downward state; determine whether the noise of the acceleration detected by the gravity sensor is less than a noise threshold; if the mobile terminal is not facing down a horizontally placed state, and the detected acceleration of the gravitational acceleration The noise of the speed is greater than the noise threshold, and the mobile terminal is controlled to exit the power saving mode; or if the noise of the acceleration detected by the gravity acceleration is greater than the noise threshold, the mobile terminal is controlled to exit the Power saving mode.
  38. 如权利要求37所述的移动终端,其特征在于,所述重力传感器具体用于,检测所述移动终端的三维直角坐标系的X轴上的加速度、所述三维直角坐标系的Y轴上的加速度和所述三维直角坐标系的Z轴上的加速度;The mobile terminal according to claim 37, wherein the gravity sensor is specifically configured to detect an acceleration on an X-axis of a three-dimensional Cartesian coordinate system of the mobile terminal, and a Y-axis of the three-dimensional Cartesian coordinate system Acceleration and acceleration on the Z-axis of the three-dimensional Cartesian coordinate system;
    所述处理器,具体用于,判断所述重力传感器检测到的所述X轴上的加速度、所述Y轴上的加速度以及所述Z轴上的加速度是否分别为0、0、-9.8m/s2,如果否,则确定所述移动终端没有处于正面朝下的水平放置的状态。The processor is specifically configured to determine whether the acceleration on the X axis, the acceleration on the Y axis, and the acceleration on the Z axis detected by the gravity sensor are 0, 0, and -9.8 m, respectively. /s 2 , if not, it is determined that the mobile terminal is not in a horizontally placed state facing down.
  39. 如权利要求37所述的移动终端,其特征在于,所述移动终端还包括:分布在所述所述移动终端背面的多个压力传感器,所述压力传感器用于检测所述移动终端的背面的受力;The mobile terminal according to claim 37, wherein the mobile terminal further comprises: a plurality of pressure sensors distributed on the back of the mobile terminal, the pressure sensor for detecting the back side of the mobile terminal Force;
    所述重力传感器具体用于,检测所述移动终端的三维直角坐标系的X轴上的加速度和所述三维直角坐标系的Y轴上的加速度;The gravity sensor is specifically configured to detect an acceleration on an X axis of the three-dimensional Cartesian coordinate system of the mobile terminal and an acceleration on a Y axis of the three-dimensional Cartesian coordinate system;
    所述处理器,具体用于,判断多个所述压力传感器检测到的压力是否为0,以及判断X轴上的加速度和所述三维直角坐标系的Y轴上的加速度是否分别为0、0;如果多个所述压力传感器检测到的压力大于0,或者所述X轴的加速度和Y轴上的加速度至少有一个不为0,则确定所述移动终端没有处于正面朝下的水平放置的状态。The processor is specifically configured to determine whether the pressure detected by the plurality of pressure sensors is 0, and determine whether the acceleration on the X-axis and the acceleration on the Y-axis of the three-dimensional Cartesian coordinate system are 0 or 0, respectively. If the pressure detected by the plurality of pressure sensors is greater than 0, or at least one of the acceleration of the X-axis and the acceleration of the Y-axis is not 0, determining that the mobile terminal is not placed horizontally facing down status.
  40. 如权利要求37所述的移动终端,其特征在于,所述移动终端还包括:位于在所述所述移动终端正面的红外传感器;所述红外传感器用于检测反射能量和反射波长;The mobile terminal according to claim 37, wherein the mobile terminal further comprises: an infrared sensor located on a front side of the mobile terminal; the infrared sensor is configured to detect reflected energy and a reflected wavelength;
    所述重力传感器具体用于,检测所述移动终端的三维直角坐标系的X轴上 的加速度和所述三维直角坐标系的Y轴上的加速度;The gravity sensor is specifically configured to detect an X-axis of a three-dimensional Cartesian coordinate system of the mobile terminal Acceleration and acceleration on the Y-axis of the three-dimensional Cartesian coordinate system;
    所述处理器,具体用于,判断所述反射能力是否大于能量门限值,判断所述反射波长对应木头或玻璃,判断所述X轴上的加速度和所述Y轴上的加速度分别为0、0;如果所述反射能量小于所述能量门限值,或者所述反射波长不对应木头或玻璃,或者所述X轴上的加速度和所述Y轴上的加速度至少有一个不为0;则确定所述移动终端没有处于正面朝下的水平放置的状态。The processor is specifically configured to determine whether the reflection capability is greater than an energy threshold, determine that the reflection wavelength corresponds to wood or glass, and determine that the acceleration on the X axis and the acceleration on the Y axis are respectively 0. 0 if the reflected energy is less than the energy threshold, or the reflected wavelength does not correspond to wood or glass, or at least one of the acceleration on the X-axis and the acceleration on the Y-axis is not 0; It is then determined that the mobile terminal is not in a horizontally placed state facing down.
  41. 如权利要求37至40任一项所述的移动终端,其特征在于,所述噪声门限值为G0,其中0.0038g<G0<0.01g,其中,1g=9.8米/秒2The mobile terminal according to any one of claims 37 to 40, wherein the noise threshold is G0, wherein 0.0038 g < G0 < 0.01 g, wherein 1 g = 9.8 m / sec 2 .
  42. 如权利要求37至41任一项所述的移动终端,所述处理器还用于,开启所述移动终端进入省电模式时关闭的至少一部分硬件模块和至少一部分软件功能。 The mobile terminal according to any one of claims 37 to 41, wherein the processor is further configured to: turn on at least a part of the hardware module and at least a part of the software function that are turned off when the mobile terminal enters the power saving mode.
PCT/CN2016/077878 2016-03-30 2016-03-30 Method, device and mobile terminal for entering power saving mode, and method, device and mobile terminal for exiting power saving mode WO2017166128A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2016/077878 WO2017166128A1 (en) 2016-03-30 2016-03-30 Method, device and mobile terminal for entering power saving mode, and method, device and mobile terminal for exiting power saving mode
CN201680009170.3A CN107438999B (en) 2016-03-30 2016-03-30 Into battery saving mode method, exit the method, device and mobile terminal of battery saving mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/077878 WO2017166128A1 (en) 2016-03-30 2016-03-30 Method, device and mobile terminal for entering power saving mode, and method, device and mobile terminal for exiting power saving mode

Publications (1)

Publication Number Publication Date
WO2017166128A1 true WO2017166128A1 (en) 2017-10-05

Family

ID=59963228

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/077878 WO2017166128A1 (en) 2016-03-30 2016-03-30 Method, device and mobile terminal for entering power saving mode, and method, device and mobile terminal for exiting power saving mode

Country Status (2)

Country Link
CN (1) CN107438999B (en)
WO (1) WO2017166128A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191446A (en) * 2019-05-13 2019-08-30 惠州Tcl移动通信有限公司 Application download control method, mobile terminal and storage medium based on WIFI
CN110290462A (en) * 2019-07-24 2019-09-27 四川爱联科技有限公司 Logistics positioning system and method
CN112559072A (en) * 2020-12-15 2021-03-26 平安科技(深圳)有限公司 Service function starting method and related equipment

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI650630B (en) * 2018-04-03 2019-02-11 和碩聯合科技股份有限公司 Electronic device and frequency reduction method thereof
CN109474979A (en) * 2018-12-29 2019-03-15 联想(北京)有限公司 Information processing method and electronic equipment
CN114143754A (en) * 2021-11-30 2022-03-04 上汽通用五菱汽车股份有限公司 Method and device for reducing vehicle-mounted power consumption, vehicle and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070146129A1 (en) * 2005-12-23 2007-06-28 Kinpo Electronics, Inc. Power saving device for GPS device
CN101738596A (en) * 2008-11-21 2010-06-16 深圳富泰宏精密工业有限公司 Electronic device and method for saving power consumption of GPS system in same
CN102759949A (en) * 2011-04-28 2012-10-31 富泰华工业(深圳)有限公司 Electronic device and state control method
CN104836905A (en) * 2015-04-13 2015-08-12 惠州Tcl移动通信有限公司 System adjusting method and apparatus based on user state
CN105188115A (en) * 2015-07-31 2015-12-23 广东欧珀移动通信有限公司 Method and device for saving electricity for intelligent terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070146129A1 (en) * 2005-12-23 2007-06-28 Kinpo Electronics, Inc. Power saving device for GPS device
CN101738596A (en) * 2008-11-21 2010-06-16 深圳富泰宏精密工业有限公司 Electronic device and method for saving power consumption of GPS system in same
CN102759949A (en) * 2011-04-28 2012-10-31 富泰华工业(深圳)有限公司 Electronic device and state control method
CN104836905A (en) * 2015-04-13 2015-08-12 惠州Tcl移动通信有限公司 System adjusting method and apparatus based on user state
CN105188115A (en) * 2015-07-31 2015-12-23 广东欧珀移动通信有限公司 Method and device for saving electricity for intelligent terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191446A (en) * 2019-05-13 2019-08-30 惠州Tcl移动通信有限公司 Application download control method, mobile terminal and storage medium based on WIFI
CN110191446B (en) * 2019-05-13 2022-07-08 惠州Tcl移动通信有限公司 Application download control method based on WIFI, mobile terminal and storage medium
CN110290462A (en) * 2019-07-24 2019-09-27 四川爱联科技有限公司 Logistics positioning system and method
CN112559072A (en) * 2020-12-15 2021-03-26 平安科技(深圳)有限公司 Service function starting method and related equipment
CN112559072B (en) * 2020-12-15 2022-04-08 平安科技(深圳)有限公司 Service function starting method and related equipment

Also Published As

Publication number Publication date
CN107438999B (en) 2019-11-12
CN107438999A (en) 2017-12-05

Similar Documents

Publication Publication Date Title
WO2017166128A1 (en) Method, device and mobile terminal for entering power saving mode, and method, device and mobile terminal for exiting power saving mode
EP3100133B1 (en) Buttonless display activation
WO2020029616A1 (en) Mobile terminal and power-saving mode control method therefor
US8358977B2 (en) Use of mobile computing device sensors to initiate a telephone call or modify telephone operation
US12069531B2 (en) Method and apparatus for triggering terminal behavior based on environment and terminal status parameters
WO2018032581A1 (en) Method and apparatus for application program control
CN103472993A (en) Rotation displaying method, device and terminal equipment
CN106487984B (en) A kind of method and apparatus adjusting volume
WO2016045027A1 (en) Screen sensitivity adjustment method and mobile terminal
WO2017206915A1 (en) Method for determining kernel running configuration in processor and related product
CN111510901B (en) Power adjusting method, device, storage medium and terminal
WO2018036565A1 (en) Terminal control method, terminal, intelligent wearable device and system
US20200212701A1 (en) Method for controlling multi-mode charging, mobile terminal, and storage medium
WO2019011335A1 (en) Mobile terminal and control method therefor, and readable storage medium
WO2016115682A1 (en) Terminal control method and terminal
US20140181726A1 (en) Method and electronic device for providing quick launch access and storage medium
CN111443803B (en) Mode switching method and device, storage medium and mobile terminal
CN110930964B (en) Display screen brightness adjusting method and device, storage medium and terminal
WO2022082951A1 (en) Frame rate setting method, apparatus, storage medium, and mobile terminal
WO2017113372A1 (en) Audio service interference control method and terminal
WO2017206918A1 (en) Terminal awakening accelerating method and related product
WO2019104956A1 (en) Shake-to-start starting type battery, application device, and server
CN106254673B (en) Terminal falls detection method and device
CN111372003A (en) Camera switching method and device and terminal
CN112433694B (en) Light intensity adjusting method and device, storage medium and mobile terminal

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16895909

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16895909

Country of ref document: EP

Kind code of ref document: A1