WO2017206870A1 - 一种传感器关闭方法、装置、存储介质及电子设备 - Google Patents
一种传感器关闭方法、装置、存储介质及电子设备 Download PDFInfo
- Publication number
- WO2017206870A1 WO2017206870A1 PCT/CN2017/086467 CN2017086467W WO2017206870A1 WO 2017206870 A1 WO2017206870 A1 WO 2017206870A1 CN 2017086467 W CN2017086467 W CN 2017086467W WO 2017206870 A1 WO2017206870 A1 WO 2017206870A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- sensor
- function
- function level
- remaining power
- level
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
- G06F1/3212—Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3287—Power saving characterised by the action undertaken by switching off individual functional units in the computer system
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/329—Power saving characterised by the action undertaken by task scheduling
Definitions
- the present invention relates to the field of terminal technologies, and in particular, to a sensor shutdown method, device, storage medium, and electronic device.
- Smartphones have powerful features, many of which are attributed to a wide variety of sensors.
- Electronic compasses, accelerometers, three-axis gyroscopes, and light sensors are all common sensor devices inside mobile phones.
- each sensor in the smartphone corresponds to a plurality of calling functions, which are respectively used to call different functions of the sensor, or to control the sensor to operate in a certain state.
- calling functions which are respectively used to call different functions of the sensor, or to control the sensor to operate in a certain state.
- the sensor used is not completely released, that is, it is still in the awake state, which will cause the mobile phone to be consumed in a large amount, which reduces the battery life.
- Embodiments of the present invention provide a sensor shutdown method, device, storage medium, and electronic device, which can speed up sensor startup speed and reduce terminal power consumption.
- an embodiment of the present invention provides a sensor shutdown method, including:
- the sensor calling function corresponding to the first target function level is turned off.
- an embodiment of the present invention provides a sensor shutdown device, including:
- a function level setting module for setting a function level to a sensor calling function
- the remaining power acquisition module is configured to acquire the current remaining power of the terminal
- a function level obtaining module configured to acquire a first target function level corresponding to the remaining power
- And closing a module configured to close a sensor calling function corresponding to the first target function level.
- an embodiment of the present invention provides a storage medium, where the storage medium stores a plurality of instructions, the instructions being adapted to be loaded by a processor to perform the steps in the sensor shutdown method.
- an embodiment of the present invention provides an electronic device, including a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions in the memory to perform the following steps:
- the sensor calling function corresponding to the first target function level is turned off.
- Embodiments of the present invention provide a sensor shutdown method, device, storage medium, and electronic device, which can speed up sensor startup speed and reduce terminal power consumption.
- FIG. 1 is a schematic flowchart diagram of a method for shutting down a sensor according to an embodiment of the present invention.
- FIG. 2 is another schematic flowchart of a sensor shutdown method according to an embodiment of the present invention.
- FIG. 3 is a schematic structural diagram of a sensor closing device according to an embodiment of the present invention.
- FIG. 4 is a schematic flowchart diagram of a specific embodiment of a method for shutting down a sensor according to an embodiment of the present invention.
- FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
- FIG. 6 is another schematic structural diagram of an electronic device according to an embodiment of the present invention.
- the intelligent terminal will turn off the sensor calling function, that is, all functions using the sensor.
- the sensor shutdown scheme can reduce the terminal power consumption, since the scheme is a calling function for turning off all the sensors, if the smart terminal needs to restart the sensor after the sensor is turned off, then the smart terminal needs to be called again. All of the sensor's calling functions cause the sensor to restart at a slower rate.
- Embodiments of the present invention provide a sensor shutdown method, including:
- the sensor calling function corresponding to the first target function level is turned off.
- the step of acquiring the current remaining power of the terminal further includes:
- the preset power threshold is less than the first power function threshold, the first target function level corresponding to the remaining power is obtained.
- the step of acquiring the first target function level corresponding to the remaining power amount specifically includes:
- the first preset function level is set to a first target function level.
- the first objective function level is lower than a highest function level
- the step of closing the sensor calling function corresponding to the first target function level specifically includes:
- the sensor calling function corresponding to the first target function level is closed, and the sensor calling function whose function level is lower than the first target function level.
- the calling the function setting function level for the sensor specifically includes:
- a function level is set for the sensor calling function according to the attribute.
- the attribute of the sensor calling function includes a frequency at which the sensor calls a function call sensor
- the setting a function level to the sensor calling function according to the attribute specifically includes:
- the function level is set to the sensor calling function according to the frequency at which the sensor calls the function call sensor.
- the method further includes:
- the sensor If it is less than the remaining power, the sensor is not turned off;
- the second target function level corresponding to the difference between the power consumption and the remaining power is obtained, and the sensor calling function corresponding to the second target function level is turned off.
- FIG. 1 is a schematic flowchart diagram of a method for shutting down a sensor according to an embodiment of the present invention.
- the method is used for shutting down a sensor in a terminal, where the terminal may be a mobile device including a sensor such as a smart phone or a tablet computer.
- the sensor shutdown method of the preferred embodiment includes:
- the terminal sets a function level to the sensor calling function.
- the sensor system can make the phone more colorful.
- a pressure sensor calculates the altitude by measuring atmospheric pressure.
- each sensor corresponds to multiple calling functions. These sensor calling functions are used to use a certain function of the sensor or to control the running state of the sensor.
- the sensor calling function A can make the sensor collect data, and the sensor calling function B can The sensor is caused to process the data; if the sensor calls the function C, the sensor can be made active, and the sensor can call the function D to turn on the sensor.
- the corresponding sensor is used.
- the terminal uses the light sensor to determine the exposure time and whether the LED flash is turned on according to the brightness of the environment, thereby improving the quality of the photograph.
- the photo app is turned off, the light sensor is not fully released and is still awake. At this time, the light sensor in the awake state will consume the terminal power, so it is necessary to release the light sensor.
- the function of the sensor is turned off, the next time the sensor is used, the function of each part of the sensor needs to be restarted, so that the start speed of the sensor is slowed down. Therefore, the function is level-divided according to the properties of the sensor calling function to implement step-by-step closure of the sensor calling function.
- the function level of the sensor calling function may be divided according to the sensor function specifically called by the sensor calling function, for example, the sensor calling function that causes the sensor to perform data processing is set to the first function level, and the sensor is called by the sensor for data acquisition.
- the function is set to the second function level.
- the method for dividing the function level of the sensor calling function may further divide the state of the sensor according to the sensor calling function, for example, setting the sensor calling function that causes the sensor to be awake to the first function level, the sensor will be made
- the sensor call function that is in hibernation is set to the second function level.
- the method of function level partitioning of the sensor call function may also be divided according to the frequency at which they call the sensor. If the sensor calling function with the lower sensor frequency is set to the first function level, the sensor calling function with the higher calling frequency is set to the second function level.
- the first function level is the highest function level
- the second function level is the level lower than the highest function level.
- step S102 the current remaining power of the terminal is acquired. Specifically, whether the sensor call function is turned off may be determined according to the current amount of remaining power. If the remaining power is sufficient, it is preferred to ensure that the sensor can be started quickly; if the remaining power is low, avoid the situation that the terminal consumes more power because the sensor is not turned off.
- step S103 the terminal acquires a first target function level corresponding to the remaining power.
- the preset remaining power interval has a mapping relationship with the first preset function level. This mapping relationship can be set automatically by the system or preset by the user. If the system is automatically set, the terminal first obtains a preset remaining power interval, for example, 10%-15% of the total power is set as a preset remaining power interval; then the terminal sets a corresponding first preset function for the preset remaining power interval. Level, for example, the first preset function level corresponding to the preset remaining power interval of 10%-15% of the total power is set as the third function level; the terminal terminates the preset remaining power interval, the first preset function level, and The relationship between the two is stored.
- the terminal can provide an editable selection interface for the user, and the interval value of the preset remaining power and the first preset function level can be selected on the interface.
- the user can directly select the interval value of the remaining power and the corresponding first preset function level on the interface to perform binding, thereby achieving the relationship between the two.
- the terminal when the remaining power is low, the terminal first obtains the preset remaining power interval in which the remaining power is located. If the remaining power of the terminal is 12% of the total power, it is in the range of 10%-15% of the total power. Presetting the remaining power interval; then obtaining a first preset function level associated with the preset remaining power interval; and finally setting the first preset function level to the first target function level.
- step S104 the terminal closes the sensor calling function corresponding to the first objective function level. Specifically, it may be determined whether the first target function level is the lowest function level, for example, the lowest function level, directly closing the sensor calling function corresponding to the first target function level; if not the lowest function level, closing the first target The sensor call function corresponding to the function level, and the sensor call function whose function level is lower than the first target function level.
- the sensor off method of the embodiment of the present invention sets a function level to the sensor calling function, acquires the current remaining power of the terminal, acquires the first target function level corresponding to the remaining power, and closes the sensor calling function corresponding to the first target function level.
- the solution turns off the corresponding sensor calling function according to the remaining power of the terminal, instead of directly closing all the sensor calling functions, not only can reduce the power consumption of the terminal, but also improve the speed of the sensor restarting.
- FIG. 2 is another schematic flowchart of a method for shutting down a sensor according to an embodiment of the present invention.
- the method is used for shutting down a sensor in a terminal, where the terminal may be a mobile device including a sensor such as a smart phone or a tablet computer.
- the sensor shutdown method of the preferred embodiment includes:
- step S201 the attribute of the sensor calling function is acquired, and the function level is set according to the attribute calling function of the sensor.
- the sensor system can make the phone more colorful.
- a pressure sensor calculates the altitude by measuring atmospheric pressure.
- each sensor corresponds to multiple calling functions. These sensor calling functions are used to use a certain function of the sensor or to control the running state of the sensor.
- the sensor calling function A can make the sensor collect data
- the sensor calling function B can The sensor is caused to process the data; if the sensor calls the function C, the sensor can be made active, and the sensor can call the function D to turn on the sensor.
- the corresponding sensor is used.
- the terminal uses the light sensor to determine the exposure time and whether the LED flash is turned on according to the brightness of the environment, thereby improving the quality of the photograph.
- the photo app is turned off, the light sensor is not fully released and is still awake. At this time, the light sensor in the awake state will consume the terminal power, so it is necessary to release the light sensor.
- the function of the sensor is turned off, the next time the sensor is used, the function of each part of the sensor needs to be restarted, so that the start speed of the sensor is slowed down. Therefore, the function is level-divided according to the properties of the sensor calling function to implement step-by-step closure of the sensor calling function.
- the function level of the sensor calling function may be divided according to the sensor function specifically called by the sensor calling function, for example, the sensor calling function that causes the sensor to perform data processing is set to the first function level, and the sensor is called by the sensor for data acquisition.
- the function is set to the second function level.
- the method for dividing the function level of the sensor calling function may further divide the state of the sensor according to the sensor calling function, for example, setting the sensor calling function that causes the sensor to be awake to the first function level, the sensor will be made
- the sensor call function that is in hibernation is set to the second function level.
- the method of function level partitioning of sensor call functions may also be based on the frequency at which they call the sensor. If the sensor calling function with the lower sensor frequency is set to the first function level, the sensor calling function with the higher calling frequency is set to the second function level.
- the first function level is the highest function level
- the second function level is the level lower than the highest function level.
- step S202 the current remaining power of the terminal is acquired. Specifically, whether the sensor call function is turned off may be determined according to the current amount of remaining power. If the remaining power is sufficient, it is preferred to ensure that the sensor can be started quickly; if the remaining power is low, avoid the situation that the terminal consumes more power because the sensor is not turned off.
- step S203 the terminal determines whether the remaining power is less than the preset power threshold, and if it is greater than or equal to the preset power threshold, then proceeds to step S204; if less than the preset power threshold, proceeds to step S205.
- step S204 if the threshold is greater than or equal to the preset power threshold, the remaining power is high. At this time, the power consumption required by the terminal may be further predicted to determine whether to turn off the sensor, so as to improve the correctness of the sensor shutdown process.
- the terminal determines whether the power consumption is less than the remaining power, such as less than the remaining power, and does not turn off the sensor; if greater than or equal to the remaining power, obtains a second preset function level corresponding to the difference between the power consumption and the remaining power.
- the second preset function level is set to the second target function level, and finally the sensor calling function corresponding to the second target function level is turned off.
- the difference has a mapping relationship with the second preset function level.
- This mapping relationship can be set automatically by the system or preset by the user. If the system is automatically set, the terminal first obtains a preset difference interval; then the terminal sets a corresponding second preset function level for the difference interval; and finally the terminal sets the difference interval, the second preset function level, and the association between the two The relationship is stored. If the user presets, the terminal can provide an editable selection interface for the user, and the difference interval value and the second preset function level can be selected on the interface. The user can directly select the difference interval value and the corresponding second preset function level on the interface to perform binding, thereby achieving the relationship between the two.
- step S205 if the terminal finds that the remaining power is less than the preset power threshold in step S203, it indicates that the terminal has a low power. At this time, the terminal should reduce the power consumption caused by the sensor not being released. Therefore, the terminal determines whether the remaining power is within the preset remaining power interval, and if yes, obtains a first preset function level corresponding to the preset remaining power interval, and sets the first preset function level to the first target function level.
- the preset remaining power interval has a mapping relationship with the first preset function level. This mapping relationship can be set automatically by the system or preset by the user. If the system is automatically set, the terminal first obtains a preset remaining power interval, for example, 10%-15% of the total power is set as a preset remaining power interval; then the terminal sets a corresponding first preset function for the preset remaining power interval. Level, for example, the first preset function level corresponding to the preset remaining power interval of 10%-15% of the total power is set as the third function level; the terminal terminates the preset remaining power interval, the first preset function level, and The relationship between the two is stored.
- a preset remaining power interval for example, 10%-15% of the total power is set as a preset remaining power interval
- Level for example, the first preset function level corresponding to the preset remaining power interval of 10%-15% of the total power is set as the third function level; the terminal terminates the preset remaining power interval, the first preset function level, and The relationship between the two is stored.
- the terminal can provide an editable selection interface for the user, and the interval value of the preset remaining power and the first preset function level can be selected on the interface.
- the user can directly select the interval value of the remaining power and the corresponding first preset function level on the interface to perform binding, thereby achieving the relationship between the two.
- the terminal when the remaining power is low, the terminal first obtains the preset remaining power interval in which the remaining power is located. If the remaining power of the terminal is 12% of the total power, it is in the range of 10%-15% of the total power. Presetting the remaining power interval; then obtaining a first preset function level associated with the preset remaining power interval; and finally setting the first preset function level to the first target function level.
- step S206 the terminal determines whether the first target function level is the lowest function level, if the first target function level is the lowest function level, then proceeds to step S207; if the first target function level is not the lowest function level, then the transfer proceeds to Step S208.
- step S207 if it is determined in step S206 that the first objective function level is the lowest function level, the sensor calling function corresponding to the first objective function level is turned off.
- the method for determining whether the first target function level is the lowest function level may be various, for example, querying whether all functions running in the system by the application have a function call corresponding to the first target function level Child function. For example, if the first objective function level is the second function level, it is determined whether there is a function at the third function level called by the function of the second function level.
- step S208 If it does not exist, it indicates that the first target function level is the lowest function level, and the corresponding sensor calling function can be directly closed; if it exists, the first target function level is not the lowest function level, and the specific sensor is turned off. The method is provided by step S208.
- step S208 if it is determined in step S206 that the first target function level is not the lowest function level, the sensor calling function corresponding to the first objective function level and the sensor calling function whose function level is lower than the first objective function level are turned off.
- the sensor calling function corresponding to the first objective function level and the sensor calling function whose function level is lower than the first objective function level are turned off.
- the first target function level is the third function level
- the function whose function level is less than or equal to the third function level is turned off, specifically the functions in the third function level, the fourth function level, and the fifth function level (when When the function level is 1-5 level).
- the sensor closing method provided by the embodiment of the invention adopts the attribute of acquiring the sensor calling function, sets the function level according to the attribute calling function of the sensor, obtains the current remaining power of the terminal, and determines whether the remaining power is less than the preset power threshold, if greater than or equal to the preset.
- the power threshold is used to obtain the power consumption required by the terminal to determine whether the power consumption is less than the remaining power. If the power is less than the remaining power, the sensor is not turned off. If the power is greater than or equal to the remaining power, the difference between the power consumption and the remaining power is obtained.
- the embodiment of the invention further provides a sensor closing device, comprising:
- a function level setting module for setting a function level to a sensor calling function
- the remaining power acquisition module is configured to acquire the current remaining power of the terminal
- a function level obtaining module configured to acquire a first target function level corresponding to the remaining power
- And closing a module configured to close a sensor calling function corresponding to the first target function level.
- the sensor closing device further includes:
- a determining module configured to determine whether the remaining power is less than a preset power threshold
- the function level obtaining module is configured to acquire a first target function level corresponding to the remaining power amount when the determining module determines to be YES.
- the function level obtaining module specifically includes:
- a first determining sub-module configured to determine whether the remaining power is within a preset remaining power interval
- a function level obtaining submodule configured to acquire a first preset function level corresponding to the preset remaining power consumption interval when the first determining submodule determines to be YES;
- a function level setting submodule is configured to set the first preset function level to a first target function level.
- the first target function level is lower than a highest function level; the shutdown module specifically includes:
- a second determining submodule configured to determine whether the first target function level is a lowest function level
- a first closing submodule configured to: when the second determining submodule determines to be YES, close the sensor calling function corresponding to the first target function level;
- a second closing submodule configured to: when the second determining submodule determines to be no, close the sensor calling function corresponding to the first target function level, and the sensor call whose function level is lower than the first target function level function.
- the function level setting module specifically includes:
- An attribute obtaining submodule configured to acquire an attribute of the sensor calling function
- a function level setting submodule for setting a function level to the sensor calling function according to the attribute.
- the embodiment of the present invention further provides a sensor closing device, which may be integrated in the terminal, and the terminal may specifically be a device such as a smart phone or a tablet computer.
- the sensor shutdown device 30 can include a function level setting module 301, a remaining power acquisition module 302, and function level acquisition modules 303 and 304. The specific description is as follows:
- the function level setting module 301 is configured to set a function level for a sensor calling function
- the remaining power acquisition module 302 is configured to acquire the current remaining power of the terminal
- the function level obtaining module 303 is configured to acquire a first target function level corresponding to the remaining power
- the shutdown module 304 is configured to close the sensor calling function corresponding to the first target function level.
- the sensor shutdown device 30 further includes a determination module.
- the specific description is as follows:
- the determining module is configured to determine whether the remaining power is less than a preset power threshold
- the function level obtaining module 303 is specifically configured to acquire a first target function level corresponding to the remaining power when the preset power threshold is less than.
- the function level acquisition module 303 includes a first decision sub-module, a function level acquisition sub-module, and a function level setting sub-module.
- the specific description is as follows:
- the first determining sub-module is configured to determine whether the remaining power is within a preset remaining power interval
- the function level acquisition sub-module is configured to acquire, when yes, a first preset function level corresponding to the preset remaining power consumption interval;
- the function level setting submodule is configured to set the first preset function level to the first target function level.
- the shutdown module 304 includes a second determination sub-module, a second determination sub-module, and a second shutdown sub-module.
- the specific description is as follows:
- a second determining submodule configured to determine whether the first target function level is the lowest function level
- a first closing sub-module configured to: when yes, close a sensor calling function corresponding to the first target function level
- the second closing sub-module is configured to: when no, close the sensor calling function corresponding to the first target function level, and the sensor calling function whose function level is lower than the first target function level.
- the sensor closing device provided by the embodiment of the present invention sets a function level to the sensor calling function, acquires the current remaining power of the terminal, acquires the first target function level corresponding to the remaining power, and closes the sensor calling function corresponding to the first target function level; Turning off the corresponding sensor calling function according to the remaining power of the terminal instead of directly closing all the sensor calling functions can not only reduce the power consumption of the terminal, but also increase the speed of the sensor restarting.
- FIG. 4 is a schematic flowchart diagram of a specific embodiment of a method for shutting down a sensor according to an embodiment of the present invention.
- step S401 the user opens a function level setting interface, and divides the remaining power amount below 40% of the total power, specifically dividing into 10% of the total power, 10%-20% of the total power, and 20 of the total power. %-30%, the total remaining power of 30%-40% of the four remaining power range, and set below 10% of the total power corresponding to the first function level, the total power of 10%-20% corresponds to the second function level, total 20%-30% of the power corresponds to the third function level, and 30%-40% of the total power corresponds to the fourth function level.
- the fourth function level includes a calling function that calls the sensor data collection function; the third function level includes a calling function that calls the sensor data analysis function; and the second function level includes a calling function that calls the sensor data storage function; the first function level includes Call the call function of the sensor data output function.
- step S402 when the mobile phone closes the WeChat application, the mobile phone detects that the remaining power is 22% of the total power, and obtains the remaining power interval that is 20%-30% of the total power.
- step S403 the mobile phone obtains a function level corresponding to 20%-30% of the total power amount, which is a third function level.
- step S404 the mobile phone sets the third function level to the first target function level, and closes the calling function of the call sensor data output function included in the first target function level.
- the sensor closing method and device of the preferred embodiment adopts a function level for setting a function of the sensor; acquiring the current remaining power of the terminal; acquiring a first target function level corresponding to the remaining power; and closing a sensor calling function corresponding to the first target function level;
- the solution closes the corresponding sensor calling function according to the remaining power of the terminal, instead of directly closing all the sensor calling functions, not only can reduce the power consumption of the terminal, but also increase the speed of the sensor restarting.
- the foregoing modules may be implemented as a separate entity, or may be implemented in any combination, and may be implemented as the same or a plurality of entities.
- the foregoing modules refer to the foregoing method embodiments, and details are not described herein again.
- the embodiment of the invention further provides an electronic device, which may be a device such as a smart phone or a tablet computer.
- the electronic device 500 includes a processor 501, a memory 502, a display screen 503, and a control circuit 504.
- the processor 501 is electrically connected to the memory 502, the display screen 503, and the control circuit 504, respectively.
- the processor 501 is a control center of the electronic device 500, and connects various parts of the entire electronic device using various interfaces and lines, executes the electronic by running or loading an application stored in the memory 502, and calling data stored in the memory 502.
- the various functions and processing data of the device enable overall monitoring of the electronic device.
- the processor 501 in the electronic device 500 loads the instructions corresponding to the process of one or more applications into the memory 502 according to the following steps, and is stored and stored in the memory 502 by the processor 501.
- the application thus implementing various functions:
- the sensor calling function corresponding to the first target function level is turned off.
- the processor 501 is further configured to perform the following steps:
- the preset power threshold is less than the first power function threshold, the first target function level corresponding to the remaining power is obtained.
- the processor 501 when acquiring the first target function level corresponding to the remaining power, the processor 501 is configured to perform the following steps:
- the first preset function level is set to a first target function level.
- the first objective function level is lower than a highest function level
- the processor 501 is configured to perform the following steps:
- the sensor calling function corresponding to the first target function level is closed, and the sensor calling function whose function level is lower than the first target function level.
- the processor 501 when a function level is set for a sensor call function, the processor 501 is configured to perform the following steps:
- a function level is set for the sensor calling function according to the attribute.
- the properties of the sensor call function include a frequency at which the sensor calls a function call sensor
- the processor 501 is configured to perform the following steps:
- the function level is set to the sensor calling function according to the frequency at which the sensor calls the function call sensor.
- the processor 501 is further configured to perform the following steps:
- the sensor If it is less than the remaining power, the sensor is not turned off;
- the second target function level corresponding to the difference between the power consumption and the remaining power is obtained, and the sensor calling function corresponding to the second target function level is turned off.
- Memory 502 can be used to store applications and data.
- the application stored in the memory 502 contains instructions executable in the processor.
- Applications can form various functional modules.
- the processor 501 executes various functional applications and data processing by running an application stored in the memory 502.
- the display screen 503 can be used to display information entered by the user or information provided to the user as well as various graphical user interfaces of the electronic device, which can be composed of images, text, icons, video, and any combination thereof.
- the control circuit 504 is electrically connected to the display screen 503 for controlling the display screen 503 to display information.
- the electronic device 500 further includes a radio frequency circuit 505, an input unit 506, an audio circuit 507, a sensor 508, and a power source 509.
- the processor 501 is electrically connected to the radio frequency circuit 505, the input unit 506, the audio circuit 507, the sensor 508, and the power source 509, respectively.
- the radio frequency circuit 505 is used for transmitting and receiving radio frequency signals to establish wireless communication with network devices or other electronic devices through wireless communication, and to transmit and receive signals with network devices or other electronic devices.
- the input unit 506 can be configured to receive input digits, character information, or user characteristic information (eg, fingerprints), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function controls.
- the input unit 506 can include a fingerprint identification module.
- the audio circuit 507 can provide an audio interface between the user and the electronic device through a speaker and a microphone.
- Electronic device 500 may also include at least one type of sensor 508, such as a light sensor, motion sensor, and other sensors.
- the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may close the display panel and/or the backlight when the terminal moves to the ear.
- the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
- gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.;
- Other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like that can be configured in the terminal are not described herein.
- Power source 509 is used to power various components of electronic device 500.
- the power supply 509 can be logically coupled to the processor 501 through a power management system to enable functions such as managing charging, discharging, and power management through the power management system.
- the electronic device 500 may further include a camera, a Bluetooth module, and the like, and details are not described herein.
- the electronic device provided by the embodiment of the present invention sets a function level to the sensor calling function, acquires the current remaining power of the electronic device, acquires the first target function level corresponding to the remaining power, and closes the sensor calling function corresponding to the first target function level; Turning off the corresponding sensor calling function according to the remaining power of the electronic device instead of directly closing all the sensor calling functions not only reduces the power consumption of the electronic device, but also improves the speed of the sensor restarting.
- the embodiment of the present invention further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by the processor in the steps in any of the foregoing embodiments.
- the storage medium may include: a read only memory (ROM, Read) Only Memory), Random Access Memory (RAM), disk or CD.
- the sensor shutdown method, device, storage medium and electronic device provided by the embodiments of the present invention are described in detail.
- the functional modules may be integrated into one processing chip, or each module may exist physically or separately. Or more than two modules are integrated in one module.
- the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
- the principles and embodiments of the present invention are described herein with reference to specific examples. The description of the above embodiments is only for the purpose of understanding the method of the present invention and the core idea thereof. Also, those skilled in the art according to the present invention The present invention is not limited by the scope of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Power Sources (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
一种传感器关闭方法、装置、存储介质及电子设备,其中该方法包括:对传感器调用函数设置函数级别(S101);获取终端当前的剩余电量(S102);获取剩余电量对应的第一目标函数级别(S103);关闭第一目标函数级别对应的传感器调用函数(S104)。
Description
本发明涉及终端技术领域,具体涉及一种传感器关闭方法、装置、存储介质及电子设备。
随着通信技术的发展,智能手机的功能越来越强大。智能手机之所以具有强大的功能,其中很多地方要归功于多种多样的传感器。电子罗盘、加速传感器、三轴陀螺仪、光线传感器,这些都是手机内部比较常见的传感器装置。
传感器作为一种接收和传递感知到的信息的装置,可以帮助智能手机准确获取各种外界信息。具体的,智能手机中的每个传感器都对应多个调用函数,这些调用函数分别用于调用传感器的不同功能,或者控制传感器以某种状态运行。如当应用要使用某个传感器时,可以调用使用函数来开启该传感器。通常应用关闭后,其使用的传感器并未完全释放,即仍处于唤醒状态,此时将导致手机电量被大量消耗,降低了手机的续航能力。
本发明实施例提供一种传感器关闭方法、装置、存储介质及电子设备,可以加快传感器启动速度,减少终端功耗。
第一方面,本发明实施例提供一种传感器关闭方法,包括:
对传感器调用函数设置函数级别;
获取终端当前的剩余电量;
获取所述剩余电量对应的第一目标函数级别;
关闭所述第一目标函数级别对应的传感器调用函数。
第二方面,本发明实施例提供一种传感器关闭装置,包括:
函数级别设置模块,用于对传感器调用函数设置函数级别;
剩余电量获取模块,用于获取终端当前的剩余电量;
函数级别获取模块,用于获取所述剩余电量对应的第一目标函数级别;
关闭模块,用于关闭所述第一目标函数级别对应的传感器调用函数。
第三方面,本发明实施例提供一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行上述传感器关闭方法中的步骤。
第四方面,本发明实施例提供一种电子设备,包括处理器和存储器,所述存储器存储有多条指令,所述处理器加载所述存储器中的指令用于执行以下步骤:
对传感器调用函数设置函数级别;
获取电子设备当前的剩余电量;
获取所述剩余电量对应的第一目标函数级别;
关闭所述第一目标函数级别对应的传感器调用函数。
本发明实施例提供一种传感器关闭方法、装置、存储介质及电子设备,可以加快传感器启动速度,减少终端功耗。
图1为本发明实施例提供的传感器关闭方法的流程示意图。
图2为本发明实施例提供的传感器关闭方法的另一流程示意图。
图3为本发明实施例提供的传感器关闭装置的结构示意图。
图4为本发明实施例提供的传感器关闭方法的具体实施例的流程示意图。
图5为本发明实施例提供的电子设备的结构示意图。
图6为本发明实施例提供的电子设备的另一结构示意图。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
目前,为了减低智能终端电量的消耗,进而提升智能终端的续航能力,智能终端会关闭传感器调用函数,即所有使用传感器的函数。
然而,这种传感器关闭方案虽然可以降低终端电量消耗,但是由于该方案是关闭所有的传感器的调用函数,如果在关闭传感器后,智能终端需要重新启动该传感器,那么此时,智能终端需要重新调用该传感器的所有调用函数,会导致传感器重新启动的速度比较慢。
本发明实施例提供了一种传感器关闭方法,包括:
对传感器调用函数设置函数级别;
获取终端当前的剩余电量;
获取所述剩余电量对应的第一目标函数级别;
关闭所述第一目标函数级别对应的传感器调用函数。
一实施例中,所述获取终端当前的剩余电量的步骤之后还包括:
判断所述剩余电量是否小于预设电量阈值;
若小于所述预设电量阈值,则获取所述剩余电量对应的第一目标函数级别。
一实施例中,所述获取所述剩余电量对应的第一目标函数级别的步骤具体包括:
判断所述剩余电量是否在预设剩余电量区间内;
若是,则获取所述预设剩余电量区间对应的第一预设函数级别;
将所述第一预设函数级别设置为第一目标函数级别。
一实施例中,所述第一目标函数级别低于最高函数级别;
所述关闭所述第一目标函数级别对应的传感器调用函数的步骤具体包括:
判断所述第一目标函数级别是否为最低函数级别;
若是,则关闭所述第一目标函数级别对应的传感器调用函数;
若否,则关闭所述第一目标函数级别对应的传感器调用函数,以及函数级别低于所述第一目标函数级别的传感器调用函数。
一实施例中,所述对传感器调用函数设置函数级别具体包括:
获取所述传感器调用函数的属性;
根据所述属性对所述传感器调用函数设置函数级别。
一实施例中,所述传感器调用函数的属性包括所述传感器调用函数调用传感器的频率;
所述根据所述属性对所述传感器调用函数设置函数级别具体包括:
根据所述传感器调用函数调用传感器的频率对所述传感器调用函数设置函数级别。
一实施例中,所述判断所述剩余电量是否小于预设电量阈值的步骤之后还包括:
若大于或等于预设电量阈值,则获取所述终端所需的耗电量;
判断所述耗电量是否小于所述剩余电量;
若小于所述剩余电量,则不关闭传感器;
若大于或等于所述剩余电量,则获取所述耗电量与所述剩余电量的差值对应的第二目标函数级别,并关闭所述第二目标函数级别对应的传感器调用函数。
在一优选实施例中,提供了一种传感器关闭方法。请参照图1,图1为本发明实施例提供的传感器关闭方法的流程示意图。该方法用于对终端中的传感器进行关闭处理,其中该终端可以是智能手机、平板电脑等包含传感器的移动设备。本优选实施例的传感器关闭方法包括:
在步骤S101中,终端对传感器调用函数设置函数级别。传感器系统作为智能手机的一部分,可以让手机的功能更加丰富多彩。如压力传感器,通过测量大气压计算海拔高度。在传感器系统中,每个传感器都对应多个调用函数,这些传感器调用函数用于使用传感器的某个功能或者控制传感器的运行状态,如传感器调用函数A可以使传感器采集数据,传感器调用函数B可以使传感器处理数据;又如传感器调用函数C可以使传感器处于活跃状态,传感器调用函数D可以开启该传感器。
通常,当我们打开某个应用进行操作时,会使用到相应的传感器。如打开拍照应用时,终端会使用光线传感器根据环境亮暗来确定曝光时间及LED闪光灯是否打开,从而提高照片的拍摄质量。然而,当照片应用关闭时,光线传感器并未完全释放,仍处于唤醒状态。这时处于唤醒状态的光线传感器将消耗终端电量,因此有必要释放该光线传感器。
然而,如果将传感器的功能都关闭,则下次再使用该传感器时,需要重新启动传感器各个部分的功能,从而使传感器的启动速度变慢。因此根据传感器调用函数的属性对函数进行级别划分,以实现对传感器调用函数的逐级关闭。
具体的,可以根据传感器调用函数具体调用的传感器功能来对传感器调用函数进行函数级别划分,如将使传感器进行数据处理的传感器调用函数设置为第一函数级别,将使传感器进行数据采集的传感器调用函数设置为第二函数级别。
其中,对传感器调用函数进行函数级别划分的方法还可以是根据该传感器调用函数使传感器所处的状态来划分,如将使传感器处于唤醒状态的传感器调用函数设置为第一函数级别,将使传感器处于休眠状态的传感器调用函数设置为第二函数级别。
在另一实施例当中,对传感器调用函数进行函数级别划分的方法还可以是根据它们调用传感器的频率来划分。如将调用传感器频率较低的传感器调用函数设置为第一函数级别,将调用传感器频率较高的传感器调用函数设置为第二函数级别。
需要说明的是,该第一函数级别为最高函数级别,第二函数级别为级别低于最高函数级别的级别。当选择关闭传感器调用函数时,优先关闭具有较高级别的传感器调用函数。
在步骤S102中,获取终端当前的剩余电量。具体的,可以根据当前的剩余电量的多少,来确定是否关闭传感器调用函数。如剩余电量充足,则优先确保传感器可以快速启动;如剩余电量较少,此时应避免因传感器未关闭导致终端功耗较大的情况。
在步骤S103中,终端获取剩余电量对应的第一目标函数级别。需要说明的是,预设剩余电量区间与第一预设函数级别存在映射关系。这种映射关系既可以是系统自动设置,也可以由用户预先设置。如是系统自动设置,终端首先获取预设剩余电量区间,如将总电量的10%-15%设为一个预设剩余电量区间;接着终端为该预设剩余电量区间设置对应的第一预设函数级别,如将总电量的10%-15%这个预设剩余电量区间对应的第一预设函数级别设为第三函数级别;最后终端将该预设剩余电量区间、第一预设函数级别及二者的关联关系存储起来。如是用户预先设置,终端可以为用户提供一个可编辑的选择界面,该界面上可以选择预设剩余电量的区间值及第一预设函数级别。用户可以直接在该界面上选择剩余电量的区间值及其相应的第一预设函数级别进行绑定,从而实现二者的关联关系。
在实际应用中,当剩余电量较低时,终端先获取该剩余电量所处的预设剩余电量区间,如终端剩余电量为总电量的12%,则其处于总电量的10%-15%这个预设剩余电量区间中;然后获取该预设剩余电量区间关联的第一预设函数级别;最后终端将该第一预设函数级别设置为第一目标函数级别。
在步骤S104中,终端关闭第一目标函数级别对应的传感器调用函数。具体的,可以先判断该第一目标函数级别是否为最低函数级别,如为最低函数级别,则直接关闭该第一目标函数级别对应的传感器调用函数;如不是最低函数级别,则关闭第一目标函数级别对应的传感器调用函数,以及函数级别低于第一目标函数级别的传感器调用函数。
由上可知,本发明实施例的传感器关闭方法采用对传感器调用函数设置函数级别,获取终端当前的剩余电量,获取剩余电量对应的第一目标函数级别,关闭第一目标函数级别对应的传感器调用函数;该方案根据终端的剩余电量来关闭相应的传感器调用函数,而非直接关闭所有的传感器调用函数,不仅可以降低终端电量消耗的,还能提升传感器重新启动的速度。
请参照图2,图2为本发明实施例提供的传感器关闭方法的另一流程示意图。该方法用于对终端中的传感器进行关闭处理,其中该终端可以是智能手机、平板电脑等包含传感器的移动设备。本优选实施例的传感器关闭方法包括:
在步骤S201中,获取传感器调用函数的属性,根据属性对传感器调用函数设置函数级别。
传感器系统作为智能手机的一部分,可以让手机的功能更加丰富多彩。如压力传感器,通过测量大气压计算海拔高度。在传感器系统中,每个传感器都对应多个调用函数,这些传感器调用函数用于使用传感器的某个功能或者控制传感器的运行状态,如传感器调用函数A可以使传感器采集数据,传感器调用函数B可以使传感器处理数据;又如传感器调用函数C可以使传感器处于活跃状态,传感器调用函数D可以开启该传感器。
通常,当我们打开某个应用进行操作时,会使用到相应的传感器。如打开拍照应用时,终端会使用光线传感器根据环境亮暗来确定曝光时间及LED闪光灯是否打开,从而提高照片的拍摄质量。然而,当照片应用关闭时,光线传感器并未完全释放,仍处于唤醒状态。这时处于唤醒状态的光线传感器将消耗终端电量,因此有必要释放该光线传感器。
然而,如果将传感器的功能都关闭,则下次再使用该传感器时,需要重新启动传感器各个部分的功能,从而使传感器的启动速度变慢。因此根据传感器调用函数的属性对函数进行级别划分,以实现对传感器调用函数的逐级关闭。
具体的,可以根据传感器调用函数具体调用的传感器功能来对传感器调用函数进行函数级别划分,如将使传感器进行数据处理的传感器调用函数设置为第一函数级别,将使传感器进行数据采集的传感器调用函数设置为第二函数级别。
其中,对传感器调用函数进行函数级别划分的方法还可以是根据该传感器调用函数使传感器所处的状态来划分,如将使传感器处于唤醒状态的传感器调用函数设置为第一函数级别,将使传感器处于休眠状态的传感器调用函数设置为第二函数级别。
在其他实施例当中,对传感器调用函数进行函数级别划分的方法还可以是根据它们调用传感器的频率来划分。如将调用传感器频率较低的传感器调用函数设置为第一函数级别,将调用传感器频率较高的传感器调用函数设置为第二函数级别。
需要说明的是,该第一函数级别为最高函数级别,第二函数级别为级别低于最高函数级别的级别。当选择关闭传感器调用函数时,优先关闭具有较高级别的传感器调用函数。
在步骤S202中,获取终端当前的剩余电量。具体的,可以根据当前的剩余电量的多少,来确定是否关闭传感器调用函数。如剩余电量充足,则优先确保传感器可以快速启动;如剩余电量较少,此时应避免因传感器未关闭导致终端功耗较大的情况。
在步骤S203中,终端判断剩余电量是否小于预设电量阈值,如大于或等于预设电量阈值,则转入步骤S204;如小于预设电量阈值,则转入步骤S205。
在步骤S204中,如大于或等于预设电量阈值,说明剩余电量较高,此时可以进一步预测终端所需的耗电量来决定是否关闭传感器,以提高传感器关闭处理的正确性。
具体的,终端判断耗电量是否小于剩余电量,如小于剩余电量,则不关闭传感器;如大于或等于剩余电量,则获取耗电量与剩余电量的差值对应的第二预设函数级别,再将该第二预设函数级别设置为第二目标函数级别,最后关闭第二目标函数级别对应的传感器调用函数。
需要说明的是,该差值与第二预设函数级别存在映射关系。这种映射关系既可以是系统自动设置,也可以由用户预先设置。如是系统自动设置,终端首先获取预设差值区间;接着终端为该差值区间设置对应的第二预设函数级别;最后终端将该差值区间、第二预设函数级别及二者的关联关系存储起来。如是用户预先设置,终端可以为用户提供一个可编辑的选择界面,该界面上可以选择差值区间值及第二预设函数级别。用户可以直接在该界面上选择差值区间值及其相应的第二预设函数级别进行绑定,从而实现二者的关联关系。
在步骤S205中,如步骤S203中终端得出剩余电量小于预设电量阈值的结论,说明终端电量已较低,此时应该减少终端因未释放传感器而导致功耗较大的情况。因此终端判断剩余电量是否在预设剩余电量区间内,如是,则获取预设剩余电量区间对应的第一预设函数级别,将第一预设函数级别设置为第一目标函数级别。
需要说明的是,预设剩余电量区间与第一预设函数级别存在映射关系。这种映射关系既可以是系统自动设置,也可以由用户预先设置。如是系统自动设置,终端首先获取预设剩余电量区间,如将总电量的10%-15%设为一个预设剩余电量区间;接着终端为该预设剩余电量区间设置对应的第一预设函数级别,如将总电量的10%-15%这个预设剩余电量区间对应的第一预设函数级别设为第三函数级别;最后终端将该预设剩余电量区间、第一预设函数级别及二者的关联关系存储起来。如是用户预先设置,终端可以为用户提供一个可编辑的选择界面,该界面上可以选择预设剩余电量的区间值及第一预设函数级别。用户可以直接在该界面上选择剩余电量的区间值及其相应的第一预设函数级别进行绑定,从而实现二者的关联关系。
在实际应用中,当剩余电量较低时,终端先获取该剩余电量所处的预设剩余电量区间,如终端剩余电量为总电量的12%,则其处于总电量的10%-15%这个预设剩余电量区间中;然后获取该预设剩余电量区间关联的第一预设函数级别;最后终端将该第一预设函数级别设置为第一目标函数级别。
在步骤S206中,终端判断第一目标函数级别是否为最低函数级别,若该第一目标函数级别是最低函数级别,则转入步骤S207;若第一目标函数级别非最低函数级别,则转入步骤S208。
在步骤S207中,若步骤S206中判断第一目标函数级别是最低函数级别,则关闭第一目标函数级别对应的传感器调用函数。具体地,判断该第一目标函数级别是否为最低函数级别的方法可以有多种,例如,查询该应用程序在系统中运行的所有函数中,是否存在被该第一目标函数级别对应的函数调用的子函数。例如,该第一目标函数级别为第二函数级别,则判断是否存在被第二函数级别的函数调用的第三函数级别的函数。如果不存在,则说明该该第一目标函数级别为最低函数级别,直接关闭其对应的传感器调用函数即可;如果存在,则说明该第一目标函数级别不为最低函数级别,具体的传感器关闭方法由步骤S208提供。
在步骤S208中,若步骤S206中判断第一目标函数级别非最低函数级别,则关闭第一目标函数级别对应的传感器调用函数,以及函数级别低于第一目标函数级别的传感器调用函数。例如,当第一目标函数级别为第三函数级别时,则关闭函数级别小于或等于第三函数级别的函数,具体为第三函数级别、第四函数级别及第五函数级别中的函数(当函数级别为1-5级别时)。
这样即完成了本优选实施例的传感器关闭方法对传感器进行关闭处理的过程。
本发明实施例提供的传感器关闭方法采用获取传感器调用函数的属性,根据属性对传感器调用函数设置函数级别,获取终端当前的剩余电量,判断剩余电量是否小于预设电量阈值,若大于或等于预设电量阈值,则获取终端所需的耗电量,判断耗电量是否小于剩余电量,若小于剩余电量,则不关闭传感器,若大于或等于剩余电量,则获取耗电量与剩余电量的差值对应的第二目标函数级别,并根据第二目标函数级别关闭传感器调用函数,若小于预设电量阈值,则判断剩余电量是否在预设剩余电量区间内,若在预设剩余电量区间内,则获取预设剩余电量区间对应的第一预设函数级别,将第一预设函数级别设置为第一目标函数级别,判断第一目标函数级别是否为最低函数级别,若是最低函数级别,则关闭第一目标函数级别对应的传感器调用函数,若不是最低函数级别,则关闭第一目标函数级别对应的传感器调用函数,以及函数级别低于第一目标函数级别的传感器调用函数。该方案根据终端的剩余电量来关闭相应的传感器调用函数,而非直接关闭所有的传感器调用函数,不仅可以降低终端电量消耗的,还能提升传感器重新启动的速度。
本发明实施例还提供一种传感器关闭装置,包括:
函数级别设置模块,用于对传感器调用函数设置函数级别;
剩余电量获取模块,用于获取终端当前的剩余电量;
函数级别获取模块,用于获取所述剩余电量对应的第一目标函数级别;
关闭模块,用于关闭所述第一目标函数级别对应的传感器调用函数。
一实施例中,所述传感器关闭装置还包括:
判断模块,用于判断所述剩余电量是否小于预设电量阈值;
所述函数级别获取模块,具体用于当所述判断模块判断为是时,获取所述剩余电量对应的第一目标函数级别。
一实施例中,所述函数级别获取模块具体包括:
第一判断子模块,用于判断所述剩余电量是否在预设剩余电量区间内;
函数级别获取子模块,用于当所述第一判断子模块判断为是时,获取所述预设剩余电量区间对应的第一预设函数级别;
函数级别设置子模块,用于将所述第一预设函数级别设置为第一目标函数级别。
一实施例中,所述第一目标函数级别低于最高函数级别;所述关闭模块具体包括:
第二判断子模块,用于判断所述第一目标函数级别是否为最低函数级别;
第一关闭子模块,用于当所述第二判断子模块判断为是时,关闭所述第一目标函数级别对应的传感器调用函数;
第二关闭子模块,用于当所述第二判断子模块判断为否时,关闭所述第一目标函数级别对应的传感器调用函数,以及函数级别低于所述第一目标函数级别的传感器调用函数。
一实施例中,所述函数级别设置模块具体包括:
属性获取子模块,用于获取所述传感器调用函数的属性;
函数级别设置子模块,用于根据所述属性对所述传感器调用函数设置函数级别。
为了更好地实施以上方法,本发明实施例还提供一种传感器关闭装置,该传感器关闭装置可以集成在终端中,该终端具体可以是智能手机、平板电脑等设备。如图3所示,该传感器关闭装置30可以包括函数级别设置模块301、剩余电量获取模块302、函数级别获取模块303及304。具体描述如下:
该函数级别设置模块301,用于对传感器调用函数设置函数级别;
该剩余电量获取模块302,用于获取终端当前的剩余电量;
该函数级别获取模块303,用于获取剩余电量对应的第一目标函数级别;
该关闭模块304,用于关闭第一目标函数级别对应的传感器调用函数。
在一些实施例中,该传感器关闭装置30还包括判断模块。具体描述如下:
该判断模块,用于判断剩余电量是否小于预设电量阈值;
函数级别获取模块303具体用于,在小于预设电量阈值时,获取剩余电量对应的第一目标函数级别。
在一些实施例中,函数级别获取模块303包括第一判断子模块、函数级别获取子模块和函数级别设置子模块。具体描述如下:
该第一判断子模块,用于判断剩余电量是否在预设剩余电量区间内;
该函数级别获取子模块,用于在是时,获取预设剩余电量区间对应的第一预设函数级别;
该一函数级别设置子模块,用于将第一预设函数级别设置为第一目标函数级别。
在一些实施例中,关闭模块304包括第二判断子模块、第二判断子模块和第二关闭子模块。具体描述如下:
第二判断子模块,用于判断第一目标函数级别是否为最低函数级别;
第一关闭子模块,用于在是时,关闭第一目标函数级别对应的传感器调用函数;
第二关闭子模块,用于在否时,关闭第一目标函数级别对应的传感器调用函数,以及函数级别低于第一目标函数级别的传感器调用函数。
本发明实施例提供的传感器关闭装置采用对传感器调用函数设置函数级别,获取终端当前的剩余电量,获取剩余电量对应的第一目标函数级别,关闭第一目标函数级别对应的传感器调用函数;该方案根据终端的剩余电量来关闭相应的传感器调用函数,而非直接关闭所有的传感器调用函数,不仅可以降低终端电量消耗的,还能提升传感器重新启动的速度。
请参照图4,图4为本发明实施例提供的传感器关闭方法的具体实施例的流程示意图。
在步骤S401中,用户打开函数级别设置界面,对低于总电量40%的剩余电量进行区间划分,具体分为低于总电量的10%,总电量的10%-20%,总电量的20%-30%,总电量的30%-40%这四个剩余电量区间,并设置低于总电量的10%对应第一函数级别,总电量的10%-20%对应第二函数级别,总电量的20%-30%对应第三函数级别,总电量的30%-40%对应第四函数级别。具体的,第四函数级别包含调用传感器数据采集功能的调用函数;第三函数级别包含调用传感器数据分析功能的调用函数;第二函数级别包含调用传感器数据存储功能的调用函数;第一函数级别包含调用传感器数据输出功能的调用函数。
在步骤S402中,当手机关闭微信应用时,手机检测到剩余电量为总电量的22%,得到该剩余电量处于总电量的20%-30%这个剩余电量区间。
在步骤S403中,手机获取到总电量的20%-30%这个剩余电量区间对应的函数级别为第三函数级别。
在步骤S404中,手机将第三函数级别设置为第一目标函数级别,并关闭该第一目标函数级别中包含的调用传感器数据输出功能的调用函数。
本优选实施例的传感器关闭方法及装置采用对传感器调用函数设置函数级别;获取终端当前的剩余电量;获取剩余电量对应的第一目标函数级别;关闭第一目标函数级别对应的传感器调用函数;该方案根据终端的剩余电量来关闭相应的传感器调用函数,而非直接关闭所有的传感器调用函数,不仅可以降低终端电量消耗的,还能提升传感器重新启动的速度。
具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块的具体实施可参见前面的方法实施例,在此不再赘述。
本发明实施例还提供一种电子设备,该电子设备可以是智能手机、平板电脑等设备。如图5所示,电子设备500包括处理器501、存储器502、显示屏503以及控制电路504。其中,处理器501分别与存储器502、显示屏503、控制电路504电性连接。
处理器501是电子设备500的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器502内的应用程序,以及调用存储在存储器502内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。
在本实施例中,电子设备500中的处理器501会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器502中,并由处理器501来运行存储在存储器502中的应用程序,从而实现各种功能:
对传感器调用函数设置函数级别;
获取电子设备当前的剩余电量;
获取所述剩余电量对应的第一目标函数级别;
关闭所述第一目标函数级别对应的传感器调用函数。
在一些实施例中,获取电子设备当前的剩余电量的步骤之后,处理器501还用于执行以下步骤:
判断所述剩余电量是否小于预设电量阈值;
若小于所述预设电量阈值,则获取所述剩余电量对应的第一目标函数级别。
在一些实施例中,获取所述剩余电量对应的第一目标函数级别时,处理器501用于执行以下步骤:
判断所述剩余电量是否在预设剩余电量区间内;
若是,则获取所述预设剩余电量区间对应的第一预设函数级别;
将所述第一预设函数级别设置为第一目标函数级别。
在一些实施例中,所述第一目标函数级别低于最高函数级别;
关闭所述第一目标函数级别对应的传感器调用函数时,处理器501用于执行以下步骤:
判断所述第一目标函数级别是否为最低函数级别;
若是,则关闭所述第一目标函数级别对应的传感器调用函数;
若否,则关闭所述第一目标函数级别对应的传感器调用函数,以及函数级别低于所述第一目标函数级别的传感器调用函数。
在一些实施例中,对传感器调用函数设置函数级别时,处理器501用于执行以下步骤:
获取所述传感器调用函数的属性;
根据所述属性对所述传感器调用函数设置函数级别。
在一些实施例中,所述传感器调用函数的属性包括所述传感器调用函数调用传感器的频率;
根据所述属性对所述传感器调用函数设置函数级别时,处理器501用于执行以下步骤:
根据所述传感器调用函数调用传感器的频率对所述传感器调用函数设置函数级别。
在一些实施例中,判断所述剩余电量是否小于预设电量阈值之后,处理器501还用于执行以下步骤:
若大于或等于预设电量阈值,则获取所述电子设备所需的耗电量;
判断所述耗电量是否小于所述剩余电量;
若小于所述剩余电量,则不关闭传感器;
若大于或等于所述剩余电量,则获取所述耗电量与所述剩余电量的差值对应的第二目标函数级别,并关闭所述第二目标函数级别对应的传感器调用函数。
存储器502可用于存储应用程序和数据。存储器502存储的应用程序中包含有可在处理器中执行的指令。应用程序可以组成各种功能模块。处理器501通过运行存储在存储器502的应用程序,从而执行各种功能应用以及数据处理。
显示屏503可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图像、文本、图标、视频和其任意组合来构成。
控制电路504与显示屏503电性连接,用于控制显示屏503显示信息。
在一些实施例中,如图6所示,电子设备500还包括:射频电路505、输入单元506、音频电路507、传感器508以及电源509。其中,处理器501分别与射频电路505、输入单元506、音频电路507、传感器508以及电源509电性连接。
射频电路505用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。
输入单元506可用于接收输入的数字、字符信息或用户特征信息(例如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。其中,输入单元506可以包括指纹识别模组。
音频电路507可通过扬声器、传声器提供用户与电子设备之间的音频接口。
电子设备500还可以包括至少一种传感器508,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板的亮度,接近传感器可在终端移动到耳边时,关闭显示面板和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;
至于终端还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
电源509用于给电子设备500的各个部件供电。在一些实施例中,电源509可以通过电源管理系统与处理器501逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管图6中未示出,电子设备500还可以包括摄像头、蓝牙模块等,在此不再赘述。
本发明实施例提供的电子设备,对传感器调用函数设置函数级别,获取电子设备当前的剩余电量,获取剩余电量对应的第一目标函数级别,关闭第一目标函数级别对应的传感器调用函数;该方案根据电子设备的剩余电量来关闭相应的传感器调用函数,而非直接关闭所有的传感器调用函数,不仅降低了电子设备电量消耗的,还提升了传感器重新启动的速度。
本发明实施例还提供了一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载上述任一实施例中的步骤。
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读的存储介质中,如存储在终端的存储器中,并被该终端内的至少一个处理器执行,在执行过程中可包括如信息发布方法的实施例的流程。其中,存储介质可以包括:只读存储器(ROM,Read
Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。
以上对本发明实施例提供的一种传感器关闭方法、装置、存储介质及电子设备进行了详细介绍,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。
Claims (20)
- 一种传感器关闭方法,其中,包括:对传感器调用函数设置函数级别;获取终端当前的剩余电量;获取所述剩余电量对应的第一目标函数级别;关闭所述第一目标函数级别对应的传感器调用函数。
- 根据权利要求1所述的传感器关闭方法,其中,所述获取终端当前的剩余电量的步骤之后还包括:判断所述剩余电量是否小于预设电量阈值;若小于所述预设电量阈值,则获取所述剩余电量对应的第一目标函数级别。
- 根据权利要求1所述的传感器关闭方法,其中,所述获取所述剩余电量对应的第一目标函数级别的步骤具体包括:判断所述剩余电量是否在预设剩余电量区间内;若是,则获取所述预设剩余电量区间对应的第一预设函数级别;将所述第一预设函数级别设置为第一目标函数级别。
- 根据权利要求1所述的传感器关闭方法,其中,所述第一目标函数级别低于最高函数级别;所述关闭所述第一目标函数级别对应的传感器调用函数的步骤具体包括:判断所述第一目标函数级别是否为最低函数级别;若是,则关闭所述第一目标函数级别对应的传感器调用函数;若否,则关闭所述第一目标函数级别对应的传感器调用函数,以及函数级别低于所述第一目标函数级别的传感器调用函数。
- 根据权利要求1所述的传感器关闭方法,其中,所述对传感器调用函数设置函数级别具体包括:获取所述传感器调用函数的属性;根据所述属性对所述传感器调用函数设置函数级别。
- 根据权利要求5所述的传感器关闭方法,其中,所述传感器调用函数的属性包括所述传感器调用函数调用传感器的频率;所述根据所述属性对所述传感器调用函数设置函数级别具体包括:根据所述传感器调用函数调用传感器的频率对所述传感器调用函数设置函数级别。
- 根据权利要求2所述的传感器关闭方法,其中,所述判断所述剩余电量是否小于预设电量阈值的步骤之后还包括:若大于或等于预设电量阈值,则获取所述终端所需的耗电量;判断所述耗电量是否小于所述剩余电量;若小于所述剩余电量,则不关闭传感器;若大于或等于所述剩余电量,则获取所述耗电量与所述剩余电量的差值对应的第二目标函数级别,并关闭所述第二目标函数级别对应的传感器调用函数。
- 一种传感器关闭装置,其中,包括:函数级别设置模块,用于对传感器调用函数设置函数级别;剩余电量获取模块,用于获取终端当前的剩余电量;函数级别获取模块,用于获取所述剩余电量对应的第一目标函数级别;关闭模块,用于关闭所述第一目标函数级别对应的传感器调用函数。
- 根据权利要求8所述的传感器关闭装置,其中,所述传感器关闭装置还包括:判断模块,用于判断所述剩余电量是否小于预设电量阈值;所述函数级别获取模块,具体用于当所述判断模块判断为是时,获取所述剩余电量对应的第一目标函数级别。
- 根据权利要求8所述的传感器关闭装置,其中,所述函数级别获取模块具体包括:第一判断子模块,用于判断所述剩余电量是否在预设剩余电量区间内;函数级别获取子模块,用于当所述第一判断子模块判断为是时,获取所述预设剩余电量区间对应的第一预设函数级别;函数级别设置子模块,用于将所述第一预设函数级别设置为第一目标函数级别。
- 根据权利要求8所述的传感器关闭装置,其中,所述第一目标函数级别低于最高函数级别;所述关闭模块具体包括:第二判断子模块,用于判断所述第一目标函数级别是否为最低函数级别;第一关闭子模块,用于当所述第二判断子模块判断为是时,关闭所述第一目标函数级别对应的传感器调用函数;第二关闭子模块,用于当所述第二判断子模块判断为否时,关闭所述第一目标函数级别对应的传感器调用函数,以及函数级别低于所述第一目标函数级别的传感器调用函数。
- 根据权利要求8所述的传感器关闭装置,其中,所述函数级别设置模块具体包括:属性获取子模块,用于获取所述传感器调用函数的属性;函数级别设置子模块,用于根据所述属性对所述传感器调用函数设置函数级别。
- 一种存储介质,其中,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行如权利要求1-7任一项所述的步骤。
- 一种电子设备,其中,包括处理器和存储器,所述存储器存储有多条指令,所述处理器加载所述存储器中的指令用于执行以下步骤:对传感器调用函数设置函数级别;获取电子设备当前的剩余电量;获取所述剩余电量对应的第一目标函数级别;关闭所述第一目标函数级别对应的传感器调用函数。
- 根据权利要求14所述的电子设备,其中,所述获取电子设备当前的剩余电量的步骤之后,所述处理器还用于执行以下步骤:判断所述剩余电量是否小于预设电量阈值;若小于所述预设电量阈值,则获取所述剩余电量对应的第一目标函数级别。
- 根据权利要求14所述的电子设备,其中,获取所述剩余电量对应的第一目标函数级别时,所述处理器用于执行以下步骤:判断所述剩余电量是否在预设剩余电量区间内;若是,则获取所述预设剩余电量区间对应的第一预设函数级别;将所述第一预设函数级别设置为第一目标函数级别。
- 根据权利要求14所述的电子设备,其中,所述第一目标函数级别低于最高函数级别;关闭所述第一目标函数级别对应的传感器调用函数时,所述处理器用于执行以下步骤:判断所述第一目标函数级别是否为最低函数级别;若是,则关闭所述第一目标函数级别对应的传感器调用函数;若否,则关闭所述第一目标函数级别对应的传感器调用函数,以及函数级别低于所述第一目标函数级别的传感器调用函数。
- 根据权利要求14所述的电子设备,其中,对传感器调用函数设置函数级别时,所述处理器用于执行以下步骤:获取所述传感器调用函数的属性;根据所述属性对所述传感器调用函数设置函数级别。
- 根据权利要求18所述的电子设备,其中,所述传感器调用函数的属性包括所述传感器调用函数调用传感器的频率;根据所述属性对所述传感器调用函数设置函数级别时,所述处理器用于执行以下步骤:根据所述传感器调用函数调用传感器的频率对所述传感器调用函数设置函数级别。
- 根据权利要求15所述的电子设备,其中,判断所述剩余电量是否小于预设电量阈值之后,所述处理器还用于执行以下步骤:若大于或等于预设电量阈值,则获取所述电子设备所需的耗电量;判断所述耗电量是否小于所述剩余电量;若小于所述剩余电量,则不关闭传感器;若大于或等于所述剩余电量,则获取所述耗电量与所述剩余电量的差值对应的第二目标函数级别,并关闭所述第二目标函数级别对应的传感器调用函数。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610379815.4A CN106055076B (zh) | 2016-05-31 | 2016-05-31 | 一种传感器关闭方法和装置 |
| CN201610379815.4 | 2016-05-31 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017206870A1 true WO2017206870A1 (zh) | 2017-12-07 |
Family
ID=57172550
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/086467 Ceased WO2017206870A1 (zh) | 2016-05-31 | 2017-05-29 | 一种传感器关闭方法、装置、存储介质及电子设备 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106055076B (zh) |
| WO (1) | WO2017206870A1 (zh) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109511139A (zh) * | 2018-12-19 | 2019-03-22 | Oppo广东移动通信有限公司 | Wifi控制方法、装置、移动设备、计算机可读存储介质 |
| CN112947216A (zh) * | 2021-03-02 | 2021-06-11 | 山东鲁能软件技术有限公司智能电气分公司 | 架空线路可视化监拍供电气象控制系统及方法 |
| CN113514327A (zh) * | 2021-04-22 | 2021-10-19 | 中煤科工集团重庆研究院有限公司 | 厚埋层混凝土穿透式无线应力应变传感器 |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106055076B (zh) * | 2016-05-31 | 2019-07-16 | Oppo广东移动通信有限公司 | 一种传感器关闭方法和装置 |
| CN106896896B (zh) * | 2017-02-03 | 2019-10-25 | Oppo广东移动通信有限公司 | 省电方法、装置及电子设备 |
| CN111796883B (zh) * | 2019-04-09 | 2024-05-14 | Oppo广东移动通信有限公司 | 设备控制方法、装置、存储介质及电子设备 |
| CN114204660A (zh) * | 2021-11-05 | 2022-03-18 | 南方电网数字电网研究院有限公司 | 户外传感器的电路控制方法、装置和计算机设备 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090098914A1 (en) * | 2007-10-15 | 2009-04-16 | Research In Motion Limited | Method and system for enabling or disabling features based on a battery level threshold |
| CN102929382A (zh) * | 2012-10-24 | 2013-02-13 | 惠州Tcl移动通信有限公司 | 降低电子设备功耗的方法及电子设备 |
| CN104166453A (zh) * | 2014-08-15 | 2014-11-26 | 百度在线网络技术(北京)有限公司 | 降低移动终端耗电量的方法和装置 |
| CN104199538A (zh) * | 2014-08-26 | 2014-12-10 | 深圳市中兴移动通信有限公司 | 一种移动终端省电的方法、系统及移动终端 |
| CN106055076A (zh) * | 2016-05-31 | 2016-10-26 | 广东欧珀移动通信有限公司 | 一种传感器关闭方法和装置 |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9195286B2 (en) * | 2012-03-26 | 2015-11-24 | Mediatek Inc. | Method for performing power consumption control, and associated apparatus |
| CN103677214B (zh) * | 2013-12-31 | 2016-06-01 | 北京金山网络科技有限公司 | 用于移动终端的耗电控制方法、装置以及移动终端 |
-
2016
- 2016-05-31 CN CN201610379815.4A patent/CN106055076B/zh not_active Expired - Fee Related
-
2017
- 2017-05-29 WO PCT/CN2017/086467 patent/WO2017206870A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090098914A1 (en) * | 2007-10-15 | 2009-04-16 | Research In Motion Limited | Method and system for enabling or disabling features based on a battery level threshold |
| CN102929382A (zh) * | 2012-10-24 | 2013-02-13 | 惠州Tcl移动通信有限公司 | 降低电子设备功耗的方法及电子设备 |
| CN104166453A (zh) * | 2014-08-15 | 2014-11-26 | 百度在线网络技术(北京)有限公司 | 降低移动终端耗电量的方法和装置 |
| CN104199538A (zh) * | 2014-08-26 | 2014-12-10 | 深圳市中兴移动通信有限公司 | 一种移动终端省电的方法、系统及移动终端 |
| CN106055076A (zh) * | 2016-05-31 | 2016-10-26 | 广东欧珀移动通信有限公司 | 一种传感器关闭方法和装置 |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109511139A (zh) * | 2018-12-19 | 2019-03-22 | Oppo广东移动通信有限公司 | Wifi控制方法、装置、移动设备、计算机可读存储介质 |
| CN112947216A (zh) * | 2021-03-02 | 2021-06-11 | 山东鲁能软件技术有限公司智能电气分公司 | 架空线路可视化监拍供电气象控制系统及方法 |
| CN113514327A (zh) * | 2021-04-22 | 2021-10-19 | 中煤科工集团重庆研究院有限公司 | 厚埋层混凝土穿透式无线应力应变传感器 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106055076A (zh) | 2016-10-26 |
| CN106055076B (zh) | 2019-07-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017206870A1 (zh) | 一种传感器关闭方法、装置、存储介质及电子设备 | |
| WO2014021681A1 (en) | Method and apparatus for alarm service using context awareness in portable terminal | |
| WO2019083271A1 (ko) | 어플리케이션 프로그램을 제어하는 전자 장치 및 그 제어 방법 | |
| WO2017164585A1 (en) | Electronic device and control method thereof | |
| WO2018161585A1 (zh) | 电子设备帧率的控制方法、装置、存储介质及电子设备 | |
| WO2017206878A1 (zh) | 一种基于唤醒锁的处理方法、装置、存储介质及电子设备 | |
| WO2017206879A1 (zh) | 一种移动终端应用程序的处理方法、装置、存储介质及电子设备 | |
| WO2020171427A1 (ko) | 어플리케이션을 프리페치하는 전자 장치 및 방법 | |
| EP3108328A1 (en) | Electronic device and power saving method thereof | |
| WO2021162286A1 (en) | Electronic device and method for recognizing audio output device connected to usb type-c connector | |
| WO2017078423A1 (en) | Electronic device and method for controlling display thereof | |
| WO2020032636A1 (en) | Electronic device for providing notification message and method thereof | |
| WO2017206885A1 (zh) | 应用程序的关闭方法、装置、存储介质及电子设备 | |
| WO2018076869A1 (zh) | 一种数据备份方法、装置、存储介质和电子设备 | |
| WO2019039707A1 (en) | METHOD FOR CONFIGURING ACTION OF AN EXTERNAL DEVICE AND ELECTRONIC DEVICE SUPPORTING THE SAME | |
| WO2018026164A1 (en) | Method of processing touch events and electronic device adapted thereto | |
| WO2018171534A1 (zh) | 基于移动终端的双摄像头供电控制方法、系统及移动终端 | |
| WO2017206886A1 (zh) | 一种唤醒锁释放方法、装置、存储介质及电子设备 | |
| WO2020251192A1 (en) | Electronic device and method of utilizing storage space thereof | |
| WO2018161580A1 (zh) | 广播的控制方法、装置、存储介质及电子设备 | |
| WO2017206865A1 (zh) | 一种应用程序的关闭方法、装置、存储介质及电子设备 | |
| WO2017206867A1 (zh) | 一种传感器的关闭方法、装置、存储介质及电子设备 | |
| WO2017206877A1 (zh) | 一种唤醒锁的释放方法、装置、存储介质及电子设备 | |
| WO2017206892A1 (zh) | 一种移动终端的传感器处理方法、装置、存储介质及电子设备 | |
| WO2017206873A1 (zh) | 一种应用程序的关闭方法、装置、存储介质及电子设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17805815 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17805815 Country of ref document: EP Kind code of ref document: A1 |