WO2017206870A1 - Procédé et appareil d'arrêt de capteur, support d'informations et dispositif électronique - Google Patents
Procédé et appareil d'arrêt de capteur, support d'informations et dispositif électronique 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
L'invention concerne un procédé et un appareil d'arrêt de capteur, un support d'informations et un dispositif électronique. Le procédé consiste : à définir des niveaux de fonction pour des fonctions d'appel de capteur (S101) ; à obtenir la puissance restante actuelle d'un terminal (S102) ; à obtenir un premier niveau de fonction cible correspondant à la puissance restante (S103) ; à arrêter des fonctions d'appel de capteur correspondant au premier niveau de fonction cible (S104).
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610379815.4 | 2016-05-31 | ||
| CN201610379815.4A CN106055076B (zh) | 2016-05-31 | 2016-05-31 | 一种传感器关闭方法和装置 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017206870A1 true WO2017206870A1 (fr) | 2017-12-07 |
Family
ID=57172550
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/086467 Ceased WO2017206870A1 (fr) | 2016-05-31 | 2017-05-29 | Procédé et appareil d'arrêt de capteur, support d'informations et dispositif électronique |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106055076B (fr) |
| WO (1) | WO2017206870A1 (fr) |
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广东移动通信有限公司 | 设备控制方法、装置、存储介质及电子设备 |
| CN114204660B (zh) * | 2021-11-05 | 2026-03-13 | 广东电网有限责任公司广州供电局 | 户外传感器的电路控制方法、装置和计算机设备 |
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/fr 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 |
|---|---|
| CN106055076B (zh) | 2019-07-16 |
| CN106055076A (zh) | 2016-10-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017206870A1 (fr) | Procédé et appareil d'arrêt de capteur, support d'informations et dispositif électronique | |
| WO2014021681A1 (fr) | Procédé et appareil destinés à un service de réveil utilisant la sensibilité au contexte dans un terminal portatif | |
| WO2019083271A1 (fr) | Dispositif électronique de commande d'application et procédé de commande associé | |
| WO2017164585A1 (fr) | Dispositif électronique et son procédé de commande | |
| WO2018161585A1 (fr) | Procédé et appareil de commande de fréquence de trames d'un dispositif électronique, support de stockage et dispositif électronique | |
| WO2017206878A1 (fr) | Procédé et appareil de traitement basé sur un verrou d'activation, support d'informations et dispositif électronique | |
| WO2017206879A1 (fr) | Procédé et appareil de traitement de programme d'application de terminal mobile, support de stockage, et dispositif électronique | |
| WO2020032636A1 (fr) | Dispositif électronique pour fournir un message de notification et procédé associé | |
| WO2019039707A1 (fr) | Procédé de configuration d'action d'un dispositif externe et dispositif électronique prenant en charge celui-ci | |
| WO2017078423A1 (fr) | Dispositif électronique et procédé de commande d'affichage associé | |
| EP3108328A1 (fr) | Dispositif électronique et son procédé d'économie d'énergie | |
| WO2018026164A1 (fr) | Procédé de traitement d'événements tactiles et dispositif électronique adapté à celui-ci | |
| WO2018076869A1 (fr) | Procédé sauvegarde de données, appareil, support de stockage et dispositif électronique | |
| WO2017206867A1 (fr) | Procédé et appareil d'arrêt de capteurs, support d'informations, et dispositif électronique | |
| WO2021162286A1 (fr) | Dispositif électronique et procédé de reconnaissance de dispositif de sortie audio connecté à un connecteur usb de type c | |
| WO2020251192A1 (fr) | Dispositif électronique et procédé d'utilisation d'un espace de stockage correspondant | |
| WO2018171534A1 (fr) | Procédé de commande d'alimentation électrique de double appareil photo de terminal mobile, système, et terminal mobile. | |
| WO2017206885A1 (fr) | Procédé et appareil d'arrêt de programme d'application, support de stockage et dispositif électronique | |
| WO2017206886A1 (fr) | Procédé et appareil de déverrouillage d'activation, support d'informations et dispositif électronique | |
| WO2018161580A1 (fr) | Procédé et appareil de commande de diffusion, support de stockage, et dispositif électronique | |
| WO2017206865A1 (fr) | Procédé et appareil d'arrêt de programme d'application, support d'informations et dispositif électronique | |
| WO2017206877A1 (fr) | Procédé et appareil de déverrouillage de verrou d'activation, support d'informations, et dispositif électronique | |
| WO2017206892A1 (fr) | Procédé et appareil de traitement de capteur d'un terminal mobile, support d'informations et dispositif électronique | |
| WO2017206873A1 (fr) | Procédé et appareil d'arrêt de programme d'application, support d'informations et dispositif électronique | |
| WO2018208041A1 (fr) | Procédé et appareil de réalisation d'au moins une opération d'après un contexte de dispositifs |
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 |