WO2017206872A1 - Sensor calling function shutdown method and apparatus, storage medium, and electronic device - Google Patents

Sensor calling function shutdown method and apparatus, storage medium, and electronic device Download PDF

Info

Publication number
WO2017206872A1
WO2017206872A1 PCT/CN2017/086469 CN2017086469W WO2017206872A1 WO 2017206872 A1 WO2017206872 A1 WO 2017206872A1 CN 2017086469 W CN2017086469 W CN 2017086469W WO 2017206872 A1 WO2017206872 A1 WO 2017206872A1
Authority
WO
WIPO (PCT)
Prior art keywords
pressing operation
sensor
value
pressure value
power consumption
Prior art date
Application number
PCT/CN2017/086469
Other languages
French (fr)
Chinese (zh)
Inventor
黄宏用
Original Assignee
广东欧珀移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2017206872A1 publication Critical patent/WO2017206872A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading

Definitions

  • the present invention relates to the field of computers, and in particular, to a method, an apparatus, a storage medium, and an electronic device for shutting down a sensor call function.
  • a user installs various third-party applications in a terminal device such as a mobile phone, but some third-party applications call mobile phone hardware, such as various types of sensors.
  • the multiple third-party applications respectively call multiple sensor calling functions, thereby running multiple sensors, reducing the running time of the terminal devices. .
  • Embodiments of the present invention provide a method, an apparatus, a storage medium, and an electronic device for shutting down a sensor call function to reduce power consumption of the device.
  • Embodiments of the present invention provide a method for shutting down a sensor call function, including the following steps:
  • the sensor call function of the sensor whose power consumption value is greater than the corresponding threshold is turned off.
  • the invention also provides a sensor calling function closing device, comprising:
  • a monitoring module for monitoring a pressing operation of the manipulation interface
  • a first acquiring module when the first pressing operation is monitored by the manipulation interface, acquiring a first pressure value of the first pressing operation
  • a first closing module when the first pressure value is greater than a predetermined value, turning off a sensor calling function of the sensor whose power consumption value is greater than a corresponding threshold.
  • the present invention also provides a storage medium in which a plurality of instructions are stored, the instructions being adapted to be loaded by a processor to perform the method as described above.
  • the present invention also provides an electronic device, comprising a processor, a memory, the processor being electrically connected to the memory and a sensor, the memory for storing instructions and data, and the processor for performing the following steps :
  • the sensor call function of the sensor whose power consumption value is greater than the corresponding threshold is turned off.
  • Embodiments of the present invention provide a method, an apparatus, a storage medium, and an electronic device for shutting down a sensor call function to reduce power consumption of the device.
  • FIG. 1 is a flowchart of implementing a method for shutting down a sensor calling function according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of an implementation of acquiring a first pressing operation according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of another implementation for acquiring a first pressing operation according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of implementing a sensor calling function with a power consumption value greater than a corresponding threshold according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of another implementation of a method for shutting down a sensor call function according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a device for shutting down a sensor call function according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • FIG. 8 is another schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • Embodiments of the present invention provide a method for shutting down a sensor call function, including the following steps:
  • the sensor call function of the sensor whose power consumption value is greater than the corresponding threshold is turned off.
  • the method further includes:
  • the step of reading the first pressure value of the first pressing operation when the control interface detects the first pressing operation comprises:
  • the first pressure value of the first pressing operation is read when the pressing duration value is greater than or equal to a preset threshold.
  • the step of reading the first pressure value of the first pressing operation when the control interface detects the first pressing operation comprises:
  • a maximum pressure value in the set is extracted as a first pressure value.
  • the method further includes:
  • the step of turning off the sensor calling function of the sensor whose power consumption value is greater than the corresponding threshold comprises:
  • the sensor calling function of the sensor whose power consumption value is greater than the third threshold is turned off.
  • the method before the step of monitoring the pressing operation of the manipulation interface, the method further includes:
  • the monitoring operation interface is popped up.
  • the pressing operation of the monitoring manipulation interface includes:
  • the method is mainly used in a mobile terminal such as a mobile phone, a PAD, or a smart watch.
  • the method for turning off the sensor calling function in the preferred embodiment includes the following steps:
  • Step S101 monitoring a pressing operation of the manipulation interface
  • Step S102 when the first pressing operation is detected by the manipulation interface, reading the first pressure value of the first pressing operation
  • Step S103 when the first pressure value is greater than a predetermined value, turning off the sensor calling function of the sensor whose power consumption value is greater than the corresponding threshold.
  • the manipulation interface is popped up, for example, when the power consumption speed is too fast, or the CPU usage rate is too high.
  • the control interface can be a small window or a display interface that covers the entire display. When the control interface pops up, the pressing condition of the control interface is monitored in real time.
  • the display uses pressure touch technology, which is equipped with a velocity sensor at the four corners of the screen to sense the pressing force.
  • the step S102 includes the following sub-steps:
  • Step S1021 When the first pressing operation is monitored by the manipulation interface, the pressing duration value of the first pressing operation is acquired.
  • the pressure value of the pressing operation in order to avoid erroneous operation, it is necessary to filter out unnecessary interference pressing, and therefore, when the user performs a pressing operation on the manipulation interface, and the pressing operation is defined as the first pressing operation.
  • obtaining a pressing duration value of the first pressing operation for example, when the control interface acquires a pressing signal, starting to count the pressing operation; when the pressing signal disappears, stopping the timing, and two events The duration is acquired as the duration of the press.
  • Step S1022 When the pressing duration value is greater than or equal to the preset threshold, reading the first pressure value of the first pressing operation.
  • a preset threshold is set for the pressing duration value, and when the pressing duration value is greater than or equal to the preset threshold, reading the first pressing operation A pressure value, otherwise filtered out.
  • the pressing duration is set to be at least 2 seconds or longer, and for those short pressing operations such as less than 2 seconds, filtering is performed as an erroneous operation.
  • the maximum pressure value is used as the The first pressure value.
  • the step S102 includes the following sub-steps:
  • step S1023 when the first pressing operation is monitored by the manipulation interface, a set of all pressure values of the first pressing operation is acquired.
  • each pressure value in the set of all pressure values of the first pressing operation is sequentially read and arranged according to time, and a pressure value is read every 0.1 second or 0.2 second.
  • Step S1024 extracting the maximum pressure value in the set as the first pressure value.
  • the number of the predetermined values of the first pressure value may be plural, and the corresponding threshold value of the power consumption value is also set, and the predetermined value of the first pressure value and the threshold value of the power consumption value are set.
  • One-to-one correspondence may be
  • the step S103 specifically includes the following sub-steps:
  • Step S1031 when the first pressure value is greater than the first predetermined value, turning off a sensor calling function of the sensor whose power consumption value is greater than the first threshold;
  • Step S1032 when the first pressure value is greater than the second predetermined value, turning off the sensor calling function of the sensor whose power consumption value is greater than the second threshold;
  • Step S1033 when the first pressure value is greater than the third predetermined value, turning off the sensor calling function of the sensor whose power consumption value is greater than the third threshold.
  • the power consumption value threshold is X1
  • the power consumption value is X2, and so on.
  • a pointing bar is formed on the control interface to indicate the magnitude of the pressure value, and the indicator bar can have a filling length. The percentage of the total length is used to identify the magnitude of the pressure value, allowing the user to have a more intuitive understanding of the level of stress they have during the pressing operation.
  • the preferred embodiment selects the sensor calling function to be turned off by detecting the magnitude of the first pressure value of the first pressing operation, has large controllability, high control precision, and has the beneficial effects of reducing power consumption and facilitating operation.
  • the method for turning off the sensor calling function includes the following steps:
  • Step S201 monitoring the power consumption speed of the terminal
  • Step S202 when the power consumption speed is greater than a preset value, the monitoring operation interface is popped up;
  • Step S203 monitoring a pressing operation on the monitoring manipulation interface
  • Step S204 when the first pressing operation is detected on the control interface, a bar for popping up the current pressure value in real time is popped up;
  • Step S205 reading a first pressure value of the first pressing operation
  • Step S206 when the first pressure value is greater than a predetermined value, turning off a sensor calling function of the sensor whose power consumption value is greater than a corresponding threshold;
  • Step S207 When the control interface detects the second pressing operation, the sensor calling function of all sensors currently running is turned off.
  • the power consumption speed of the current terminal can be obtained by monitoring the real-time power status of the terminal.
  • step S202 when the power consumption speed is greater than a preset value, it indicates that the power consumption speed of the current terminal is too fast. If the power consumption time is saved, the power consumption is reduced by a certain method, and the pop-up monitoring operation interface is For the user to operate, to achieve energy savings.
  • the monitoring control interface may be a small window or a display interface that covers the entire display screen.
  • the monitoring operation interface may be configured to monitor the pressing operation on the pop-up monitoring control interface, and when the monitoring control interface pops up, monitor the pressing operation on the monitoring control interface in real time.
  • the display uses pressure touch technology, which is equipped with a velocity sensor at the four corners of the screen to sense the pressing force.
  • the pressure value of the pressing operation is acquired, in order to avoid erroneous operation, it is necessary to filter out unnecessary interference pressing. Therefore, when the pressing operation is detected, the pressure value of the pressing operation to be acquired needs to be a pressing operation for a predetermined period of time or longer. For example, at least 2 seconds or more, for those short-time, for example, less than 2 seconds, the pressing operation is filtered out by mistake.
  • the user may also pop up one for the first pressing operation when the control interface detects the first pressing operation.
  • the indicator bar may have a percentage of the total length of the filling length to identify the magnitude of the pressure value, or a different color indicator bar may be used to correspond to the magnitude of the first pressure value.
  • the first pressure value of the first pressing operation is read. Before this, since the pressing operation lasts for a period of time, for example, 2 seconds, wherein the pressure value is not normally constant, therefore, The maximum pressure value is taken as the first pressure value.
  • step S205 includes the following sub-steps:
  • step S1023 when the first pressing operation is monitored by the manipulation interface, a set of all pressure values of the first pressing operation is acquired.
  • each of the pressure values in the set of all pressure values of the first pressing operation is sequentially read and arranged in accordance with time, and a pressure value is read every 0.1 second or 0.2 second.
  • Step S1024 extracting the maximum pressure value in the set as the first pressure value.
  • step S206 there may be a plurality of predetermined values of the first pressure value, and a corresponding threshold value of the power consumption value is also set, and the predetermined value of the first pressure value and the threshold value of the power consumption value are one. A correspondence.
  • the step S206 can include the following sub-steps:
  • Step S1031 when the first pressure value is greater than the first predetermined value, turning off a sensor calling function of the sensor whose power consumption value is greater than the first threshold;
  • Step S1032 when the first pressure value is greater than the second predetermined value, turning off the sensor calling function of the sensor whose power consumption value is greater than the second threshold;
  • Step S1033 when the first pressure value is greater than the third predetermined value, turning off the sensor calling function of the sensor whose power consumption value is greater than the third threshold.
  • the power consumption value threshold is X1
  • the power consumption value is X2, and so on.
  • step S207 if the user finds that the power consumption speed of turning off some of the sensor calling function phones is not improved, the user may choose to press again. After the pressing, the sensor calling function of all the currently running sensors is turned off, thereby closing the current Run the sensor to reduce power consumption.
  • the pressure value of the second pressing operation in order to avoid erroneous operation, the pressure value of the second pressing operation must be greater than a preset value for more than a preset time, for example, the second pressure value is greater than 0.5 N for 1 second.
  • the embodiment of the invention further provides a sensor calling function closing device, comprising:
  • a monitoring module for monitoring a pressing operation of the manipulation interface
  • a first acquiring module when the first pressing operation is monitored by the manipulation interface, acquiring a first pressure value of the first pressing operation
  • a first closing module when the first pressure value is greater than a predetermined value, turning off a sensor calling function of the sensor whose power consumption value is greater than a corresponding threshold.
  • the method further includes:
  • the second closing module is configured to close the sensor calling function of all sensors currently running when the control interface detects the second pressing operation.
  • the first obtaining module includes:
  • a first acquiring unit configured to acquire a set of all pressure values of the first pressing operation when the first pressing operation is monitored by the manipulation interface
  • a first extracting unit configured to extract a maximum pressure value in the set as the first pressure value.
  • the method further includes:
  • the indicating module is configured to pop up a bar for real-time identifying the current pressure value when the first pressing operation is monitored on the control interface.
  • the embodiment of the invention further provides a storage medium, wherein the storage medium stores a plurality of instructions, the instructions being adapted to be loaded by a processor to perform the following steps:
  • the device for shutting down the sensor call function includes: a monitoring module 301 , a first obtaining module 302 , an indicating module 303 , a first closing module 304 , and a second closing module 305 .
  • the monitoring module 301 is configured to monitor a pressing operation of the manipulation interface
  • the first obtaining module 302 is configured to acquire a first pressure value of the first pressing operation when the first pressing operation is monitored by the manipulation interface.
  • the indicating module 303 is configured to pop up a bar for real-time identifying the current pressure value when the first pressing operation is monitored by the control interface.
  • the first closing module 304 is configured to: when the first pressure value is greater than a predetermined value, turn off a sensor calling function of the sensor whose power consumption value is greater than a corresponding threshold.
  • the second closing module 305 is configured to close the sensor calling function of all sensors currently running when the control interface detects the second pressing operation.
  • the first obtaining module 302 includes:
  • a first acquiring unit configured to acquire a set of all pressure values of the first pressing operation when the first pressing operation is monitored by the manipulation interface
  • the first extracting unit is configured to extract a maximum pressure value in the set as the first pressure value.
  • the control interface can be a small window or a display interface that covers the entire display.
  • the display uses pressure touch technology, which is equipped with a velocity sensor at the four corners of the screen to sense the pressing force.
  • the pressure value of the pressing operation is acquired, in order to avoid erroneous operation, it is necessary to filter out unnecessary interference pressing. Therefore, when the pressing operation is detected, the pressure value of the pressing operation to be acquired needs to be a pressing operation for a predetermined period of time or longer. For example, at least 2 seconds or more, for those short-time, for example, less than 2 seconds, the pressing operation is filtered out by mistake.
  • the closing device of the sensor calling function selects the sensor calling function to be turned off by detecting the magnitude of the first pressure value of the first pressing operation, which has large controllability, high control precision, and reduced power consumption. And the benefits of easy operation.
  • an electronic device 400 is also provided, which may be a device such as a smart phone, a tablet computer, a smart watch, or the like. As shown in FIG. 7, the electronic device 400 includes a processor 401, a memory 402, and a sensor 402. The processor 401 is electrically connected to the memory 402 and the sensor 408, and can control the reading and writing of the memory 402 and manage the connection state of the sensor 408.
  • the processor 401 is a control center of the electronic device 400, and connects various parts of the entire electronic device 400 using various interfaces and lines, by running or loading an application stored in the memory 402, and calling data stored in the memory 402, executing The various functions and processing data of the electronic device 400 enable overall monitoring of the electronic device 400.
  • the processor 401 in the electronic device 400 loads the instructions corresponding to the process of one or more applications into the memory 402 according to the following steps, and is stored and stored in the memory 402 by the processor 401.
  • the application thus implementing various functions:
  • the sensor call function of the sensor 408 whose power consumption value is greater than the corresponding threshold is turned off.
  • the processor 401 is configured to perform the following steps:
  • the processor 401 when the first pressure value of the first pressing operation is read when the control interface detects the first pressing operation, the processor 401 is configured to perform the following steps:
  • the first pressure value of the first pressing operation is read when the pressing duration value is greater than or equal to a preset threshold.
  • the processor 401 when the first pressure value of the first pressing operation is read when the control interface detects the first pressing operation, the processor 401 is configured to perform the following steps:
  • a maximum pressure value in the set is extracted as a first pressure value.
  • the processor 401 is further configured to perform the following steps:
  • the processor 401 when the first pressure value is greater than a predetermined value, when the sensor call function of the sensor 408 whose power consumption value is greater than the corresponding threshold is turned off, the processor 401 is configured to perform the following steps:
  • the sensor call function of the sensor 408 whose power consumption value is greater than the third threshold is turned off.
  • the processor 401 is configured to perform the following steps:
  • the monitoring operation interface is popped up.
  • Memory 402 can be used to store applications and data.
  • the application stored in the memory 402 contains instructions executable in the processor 401.
  • Applications can form various functional modules.
  • the processor 401 executes various functional applications and data processing by running an application stored in the memory 402.
  • Electronic device 400 may also include at least one type of sensor 408, 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 408 may close the display panel and/or 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.
  • the electronic device 400 further includes a display screen 403, a control circuit 404, a radio frequency circuit 405, an input unit 406, an audio circuit 407, a sensor 408, and a power source 409.
  • the processor 401 is electrically connected to the radio frequency circuit 405, the input unit 406, the audio circuit 407, and the power source 409, respectively.
  • the display screen 403 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 terminal, which can be composed of images, text, icons, video, and any combination thereof.
  • the control circuit 404 is electrically connected to the display screen 403 for controlling the display screen 403 to display information.
  • the radio frequency circuit 405 is configured to transmit and receive 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 406 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 406 can include a fingerprint identification module.
  • the audio circuit 407 can provide an audio interface between the user and the terminal through a speaker and a microphone.
  • Power source 409 is used to power various components of electronic device 400.
  • the power supply 409 can be logically coupled to the processor 401 through a power management system to enable functions such as managing charging, discharging, and power management through the power management system.
  • the electronic device 400 may further include a camera, a Bluetooth module, and the like, and details are not described herein.
  • the sensor calling function corresponding to the power consumption level to be turned off is selected, the controllability is large, the control precision is high, and the control is high. Power consumption and ease of operation, and does not require all sensor call functions to be turned off to maximize the proper operation of the electronics.
  • Embodiments of the present invention also provide a storage medium having a plurality of instructions stored therein, the instructions being adapted to be loaded by a processor to perform the method as described above.
  • the storage medium may include: a read only memory (ROM, Read) Only Memory), Random Access Memory (RAM), disk or CD.
  • the word "preferred” as used herein is intended to serve as an example, instance, or illustration. Any aspect or design described as “preferred” by the text is not necessarily to be construed as being more advantageous than other aspects or designs. Instead, the use of the word “preferred” is intended to present a concept in a specific manner.
  • the term “or” as used in this application is intended to mean an “or” or “an” That is, unless otherwise specified or clear from the context, "X employs A or B” means naturally including any one of the permutations. That is, if X uses A; X uses B; or X uses both A and B, then "X uses A or B" is satisfied in any of the foregoing examples.

Abstract

A sensor calling function shutdown method, comprising: monitoring a press operation on a control interface (S101); upon monitoring a first press operation on the control interface, reading a first pressure value of the first press operation (S102); when the first pressure value is greater than a predetermined value, shutting down sensor calling functions of sensors having a power consumption value greater than a corresponding threshold value (S103). Also disclosed are a sensor calling function shutdown apparatus, a storage medium, and an electronic device.

Description

传感器调用函数的关闭方法、装置、存储介质及电子设备 Method, device, storage medium and electronic device for closing sensor call function 技术领域Technical field
本发明涉及计算机领域,特别是涉及一种传感器调用函数的关闭方法、装置、存储介质及电子设备。The present invention relates to the field of computers, and in particular, to a method, an apparatus, a storage medium, and an electronic device for shutting down a sensor call function.
背景技术Background technique
现有技术中,用户在手机等终端设备中安装各种第三方应用,但是有些第三方应用的会调用手机硬件,如各类传感器等。在有些情况下,由于用户同时在前台以及后台运行了多个第三方应用,而该多个第三方应用又分别调用了多个传感器调用函数,进而运行了多个传感器,降低终端设备的运行时间。In the prior art, a user installs various third-party applications in a terminal device such as a mobile phone, but some third-party applications call mobile phone hardware, such as various types of sensors. In some cases, since the user runs multiple third-party applications in the foreground and the background at the same time, the multiple third-party applications respectively call multiple sensor calling functions, thereby running multiple sensors, reducing the running time of the terminal devices. .
技术问题technical problem
本发明实施例提供一种传感器调用函数的关闭方法、装置、存储介质及电子设备,以降低设备功耗。Embodiments of the present invention provide a method, an apparatus, a storage medium, and an electronic device for shutting down a sensor call function to reduce power consumption of the device.
技术解决方案Technical solution
本发明实施例提供一种传感器调用函数的关闭方法,包括以下步骤:Embodiments of the present invention provide a method for shutting down a sensor call function, including the following steps:
监测操控界面的按压操作;Monitoring the pressing operation of the manipulation interface;
在所述操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值;Reading the first pressure value of the first pressing operation when the manipulation interface detects the first pressing operation;
当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数。When the first pressure value is greater than a predetermined value, the sensor call function of the sensor whose power consumption value is greater than the corresponding threshold is turned off.
本发明还提供了一种传感器调用函数关闭装置,包括:The invention also provides a sensor calling function closing device, comprising:
监测模块,用于监测操控界面的按压操作;a monitoring module for monitoring a pressing operation of the manipulation interface;
第一获取模块,在操控界面监测到第一次按压操作时,获取所述第一次按压操作的第一压力值;a first acquiring module, when the first pressing operation is monitored by the manipulation interface, acquiring a first pressure value of the first pressing operation;
第一关闭模块,当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数。And a first closing module, when the first pressure value is greater than a predetermined value, turning off a sensor calling function of the sensor whose power consumption value is greater than a corresponding threshold.
本发明还提供了一种存储介质,其中,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行如上所述方法。The present invention also provides a storage medium in which a plurality of instructions are stored, the instructions being adapted to be loaded by a processor to perform the method as described above.
本发明还提供了一种电子设备,其中,包括处理器、存储器,所述处理器与所述存储器以及传感器电性连接,所述存储器用于存储指令和数据,所述处理器用于执行以下步骤:The present invention also provides an electronic device, comprising a processor, a memory, the processor being electrically connected to the memory and a sensor, the memory for storing instructions and data, and the processor for performing the following steps :
监测操控界面的按压操作;Monitoring the pressing operation of the manipulation interface;
在所述操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值;Reading the first pressure value of the first pressing operation when the manipulation interface detects the first pressing operation;
当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数。When the first pressure value is greater than a predetermined value, the sensor call function of the sensor whose power consumption value is greater than the corresponding threshold is turned off.
有益效果 Beneficial effect
本发明实施例提供一种传感器调用函数的关闭方法、装置、存储介质及电子设备,以降低设备功耗。Embodiments of the present invention provide a method, an apparatus, a storage medium, and an electronic device for shutting down a sensor call function to reduce power consumption of the device.
附图说明DRAWINGS
[根据细则91更正 26.06.2017] 
[Correct according to Rule 91 26.06.2017]
图1为本发明实施例提供的传感器调用函数的关闭方法的实现流程图。FIG. 1 is a flowchart of implementing a method for shutting down a sensor calling function according to an embodiment of the present invention.
图2为本发明实施例提供的获取第一次按压操作的实现流程图。FIG. 2 is a flowchart of an implementation of acquiring a first pressing operation according to an embodiment of the present invention.
图3为本发明实施例提供的获取第一次按压操作的另一实现流程图。FIG. 3 is a flowchart of another implementation for acquiring a first pressing operation according to an embodiment of the present invention.
图4为本发明实施例提供的关闭功耗值大于对应阈值的传感器调用函数的实现流程图。FIG. 4 is a flowchart of implementing a sensor calling function with a power consumption value greater than a corresponding threshold according to an embodiment of the present invention.
图5为本发明实施例提供的传感器调用函数的关闭方法的另一实现流程图。FIG. 5 is a flowchart of another implementation of a method for shutting down a sensor call function according to an embodiment of the present invention.
图6为本发明实施例提供的传感器调用函数的关闭装置的结构示意图。FIG. 6 is a schematic structural diagram of a device for shutting down a sensor call function according to an embodiment of the present invention.
图7为本发明实施例提供的电子设备的结构示意图。FIG. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
图8为本发明实施例提供的电子设备的另一结构示意图。FIG. 8 is another schematic structural diagram of an electronic device according to an embodiment of the present invention.
本发明的最佳实施方式BEST MODE FOR CARRYING OUT THE INVENTION
请参照图式,其中相同的组件符号代表相同的组件,本发明的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本发明具体实施例,其不应被视为限制本发明未在此详述的其它具体实施例。Referring to the drawings, wherein like reference numerals refer to the same components, the principles of the invention are illustrated in the context of a suitable computing environment. The following description is based on the specific embodiments of the invention, which are not to be construed as limiting the invention.
在以下的说明中,本发明的具体实施例将参考由一部或多部计算机所执行之作业的步骤及符号来说明,除非另有述明。因此,其将可了解到这些步骤及操作,其中有数次提到为由计算机执行,包括了由代表了以一结构化型式中的数据之电子信号的计算机处理单元所操纵。此操纵转换该数据或将其维持在该计算机之内存系统中的位置处,其可重新配置或另外以本领域技术人员所熟知的方式来改变该计算机之运作。该数据所维持的数据结构为该内存之实体位置,其具有由该数据格式所定义的特定特性。但是,本发明原理以上述文字来说明,其并不代表为一种限制,本领域技术人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。In the following description, the specific embodiments of the present invention will be described with reference to the steps and symbols of the operations performed by one or more computers, unless otherwise stated. Thus, it will be appreciated that these steps and operations, several of which are referred to as being performed by a computer, include manipulation by a computer processing unit that represents an electronic signal of data in a structured version. This manipulation converts the data or maintains it at a location in the memory system of the computer, which can be reconfigured or otherwise alter the operation of the computer in a manner well known to those skilled in the art. The data structure maintained by the data is the physical location of the memory, which has specific characteristics defined by the data format. However, the principles of the present invention are described in the above text, which is not intended to be a limitation, and those skilled in the art will appreciate that the various steps and operations described below can also be implemented in hardware.
本发明实施例提供一种传感器调用函数的关闭方法,包括以下步骤:Embodiments of the present invention provide a method for shutting down a sensor call function, including the following steps:
监测操控界面的按压操作;Monitoring the pressing operation of the manipulation interface;
在所述操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值;Reading the first pressure value of the first pressing operation when the manipulation interface detects the first pressing operation;
当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数。When the first pressure value is greater than a predetermined value, the sensor call function of the sensor whose power consumption value is greater than the corresponding threshold is turned off.
一实施例中,在所述关闭功耗值大于对应阈值的传感器的传感器调用函数的步骤之后,还包括:In an embodiment, after the step of closing the sensor call function of the sensor whose power consumption value is greater than the corresponding threshold, the method further includes:
在所述操控界面监测到第二次按压操作时,关闭当前运行的所有所述传感器的传感器调用函数。When the control interface detects the second pressing operation, the sensor calling function of all the sensors currently running is turned off.
一实施例中,所述在操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值的步骤包括:In an embodiment, the step of reading the first pressure value of the first pressing operation when the control interface detects the first pressing operation comprises:
在操控界面监测到第一次按压操作时,获取所述第一次按压操作的按压持续时间值;Obtaining a pressing duration value of the first pressing operation when the first pressing operation is monitored by the manipulation interface;
当所述按压持续时间值大于或等于预设阈值时,读取所述第一次按压操作的第一压力值。The first pressure value of the first pressing operation is read when the pressing duration value is greater than or equal to a preset threshold.
一实施例中,所述在操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值的步骤包括:In an embodiment, the step of reading the first pressure value of the first pressing operation when the control interface detects the first pressing operation comprises:
在操控界面监测到第一次按压操作时,获取所述第一次按压操作的所有压力值的集合;Acquiring a set of all pressure values of the first pressing operation when the manipulation interface detects the first pressing operation;
提取所述集合中的最大压力值作为第一压力值。A maximum pressure value in the set is extracted as a first pressure value.
一实施例中,在所述监测操控界面的按压操作的步骤之后,还包括:In an embodiment, after the step of monitoring the pressing operation of the manipulation interface, the method further includes:
在操控界面监测到第一次按压操作时,弹出一用于实时标识当前压力值大小的指示条。When the first pressing operation is detected on the manipulation interface, a bar for promptly identifying the current pressure value is popped up.
一实施例中,所述当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数的步骤包括:In an embodiment, when the first pressure value is greater than a predetermined value, the step of turning off the sensor calling function of the sensor whose power consumption value is greater than the corresponding threshold comprises:
当所述第一压力值大于第一预定值时,关闭功耗值大于第一阈值的传感器的传感器调用函数;When the first pressure value is greater than the first predetermined value, turning off a sensor calling function of the sensor whose power consumption value is greater than the first threshold;
当所述第一压力值大于第二预定值时,关闭功耗值大于第二阈值的传感器的传感器调用函数;When the first pressure value is greater than the second predetermined value, turning off a sensor calling function of the sensor whose power consumption value is greater than the second threshold;
当所述第一压力值大于第三预定值时,关闭功耗值大于第三阈值的传感器的传感器调用函数。When the first pressure value is greater than the third predetermined value, the sensor calling function of the sensor whose power consumption value is greater than the third threshold is turned off.
一实施例中,在所述监测操控界面的按压操作的步骤之前,还包括:In an embodiment, before the step of monitoring the pressing operation of the manipulation interface, the method further includes:
监测终端的耗电速度;Monitoring the power consumption speed of the terminal;
当所述耗电速度大于一预设值时,弹出监测操控界面。When the power consumption speed is greater than a preset value, the monitoring operation interface is popped up.
一实施例中,所述监测操控界面的按压操作,包括:In an embodiment, the pressing operation of the monitoring manipulation interface includes:
对所述监测操控界面上的按压操作进行监测。Monitoring the pressing operation on the monitoring manipulation interface.
请参照图1,在一些实施例中,该方法主要用于手机、PAD、智能手表等移动终端中,本优选实施例的传感器调用函数的关闭方法包括以下步骤:Referring to FIG. 1 , in some embodiments, the method is mainly used in a mobile terminal such as a mobile phone, a PAD, or a smart watch. The method for turning off the sensor calling function in the preferred embodiment includes the following steps:
步骤S101,监测操控界面的按压操作;Step S101, monitoring a pressing operation of the manipulation interface;
步骤S102,在操控界面监测到第一次按压操作时,读取该第一次按压操作的第一压力值;Step S102, when the first pressing operation is detected by the manipulation interface, reading the first pressure value of the first pressing operation;
步骤S103,当该第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数。Step S103, when the first pressure value is greater than a predetermined value, turning off the sensor calling function of the sensor whose power consumption value is greater than the corresponding threshold.
下面详细说明本优选实施例的传感器调用函数的关闭方法的各步骤的具体流程。The specific flow of each step of the method for turning off the sensor calling function of the preferred embodiment will be described in detail below.
在该步骤S101中,当前终端满足预定的触发条件时,会弹出该操控界面,例如,当耗电速度过快,或者CPU使用率过高。该操控界面可以是一个小窗口,也可以是布满整个显示屏的显示界面。当该操控界面弹出后,实时监测该操控界面的按压情况。显示屏采用压力触控技术,其在屏幕四角配置了力度传感器,可以对按压力度进行感知。In the step S101, when the current terminal meets the predetermined trigger condition, the manipulation interface is popped up, for example, when the power consumption speed is too fast, or the CPU usage rate is too high. The control interface can be a small window or a display interface that covers the entire display. When the control interface pops up, the pressing condition of the control interface is monitored in real time. The display uses pressure touch technology, which is equipped with a velocity sensor at the four corners of the screen to sense the pressing force.
参见图2,在一些实施例中,该步骤S102包括以下子步骤:Referring to FIG. 2, in some embodiments, the step S102 includes the following sub-steps:
步骤S1021,在操控界面监测到第一次按压操作时,获取第一次按压操作的按压持续时间值。获取该按压操作的压力值时,为了避免误操作,需要滤除不必要干扰按压,因此,当检测到用户对该操控界面进行的按压操作时,并且,该按压操作定义为第一次按压操作,则获取第一次按压操作的按压持续时间值,例如,当操控界面获取到一个按压信号时,开始对该按压操作进行计时;当该按压信号消失时,停止该计时,并将两个事件持续的时间作为按压持续时间进行获取。Step S1021: When the first pressing operation is monitored by the manipulation interface, the pressing duration value of the first pressing operation is acquired. When obtaining the pressure value of the pressing operation, in order to avoid erroneous operation, it is necessary to filter out unnecessary interference pressing, and therefore, when the user performs a pressing operation on the manipulation interface, and the pressing operation is defined as the first pressing operation. And obtaining a pressing duration value of the first pressing operation, for example, when the control interface acquires a pressing signal, starting to count the pressing operation; when the pressing signal disappears, stopping the timing, and two events The duration is acquired as the duration of the press.
步骤S1022,当按压持续时间值大于或等于预设阈值时,读取第一次按压操作的第一压力值。在滤除不必要干扰的过程中,会对按压持续时间值设定一个预设阈值,并当所述按压持续时间值大于或等于预设阈值时,读取所述第一次按压操作的第一压力值,否则滤除。例如,按压持续时间设为至少为2秒以上,对于那些短暂的例如小于2秒的按压操作,当成误操作进行滤除。Step S1022: When the pressing duration value is greater than or equal to the preset threshold, reading the first pressure value of the first pressing operation. In the process of filtering out unnecessary interference, a preset threshold is set for the pressing duration value, and when the pressing duration value is greater than or equal to the preset threshold, reading the first pressing operation A pressure value, otherwise filtered out. For example, the pressing duration is set to be at least 2 seconds or longer, and for those short pressing operations such as less than 2 seconds, filtering is performed as an erroneous operation.
参见图3,在操控界面监测到第一次按压操作时,由于该按压操作持续了一段时间,例如2秒,其中压力值通常情况下均不是恒定的,因此,以其中的最大压力值作为该第一压力值。Referring to FIG. 3, when the first pressing operation is monitored on the manipulation interface, since the pressing operation continues for a period of time, for example, 2 seconds, wherein the pressure value is not normally constant, the maximum pressure value is used as the The first pressure value.
在一些实施例中,该步骤S102包括以下子步骤:In some embodiments, the step S102 includes the following sub-steps:
步骤S1023,在操控界面监测到第一次按压操作时,获取该第一次按压操作的所有压力值的集合。In step S1023, when the first pressing operation is monitored by the manipulation interface, a set of all pressure values of the first pressing operation is acquired.
在该步骤 S1023中,该第一次按压操作的所有压力值的集合中的各个压力值是依照时间依次读取并排列,每间隔0.1秒或者0.2秒读取一个压力值。At this step In S1023, each pressure value in the set of all pressure values of the first pressing operation is sequentially read and arranged according to time, and a pressure value is read every 0.1 second or 0.2 second.
步骤S1024,提取该集合中的最大压力值作为第一压力值。Step S1024, extracting the maximum pressure value in the set as the first pressure value.
在该步骤S103中,该第一压力值的预定值的个数可以有多个,对应的该功耗值的阈值也设置有多个,该第一压力值的预定值与功耗值的阈值一一对应。In the step S103, the number of the predetermined values of the first pressure value may be plural, and the corresponding threshold value of the power consumption value is also set, and the predetermined value of the first pressure value and the threshold value of the power consumption value are set. One-to-one correspondence.
参见图4,在一些实施例中,该步骤S103具体包括以下子步骤:Referring to FIG. 4, in some embodiments, the step S103 specifically includes the following sub-steps:
步骤S1031,当该第一压力值大于第一预定值时,关闭功耗值大于第一阈值的传感器的传感器调用函数;Step S1031, when the first pressure value is greater than the first predetermined value, turning off a sensor calling function of the sensor whose power consumption value is greater than the first threshold;
步骤S1032,当该第一压力值大于第二预定值时,关闭功耗值大于第二阈值的传感器的传感器调用函数;Step S1032, when the first pressure value is greater than the second predetermined value, turning off the sensor calling function of the sensor whose power consumption value is greater than the second threshold;
步骤S1033,当该第一压力值大于第三预定值时,关闭功耗值大于第三阈值的传感器的传感器调用函数。Step S1033, when the first pressure value is greater than the third predetermined value, turning off the sensor calling function of the sensor whose power consumption value is greater than the third threshold.
例如,当第一压力值为0.2牛时,功耗值的阈值为X1,当第一压力值为0.4牛时,功耗值为X2,等等。另外,为了便于用户了解自己的按压的压力值大小,在监测到第一次按压操作时,在该操控界面还形成一个指示条,用以指示压力值的大小,该指示条可以具采用填充长度的占其总长度的百分比来标识压力值的大小,使得用户对自己在按压操作过程中产生的压力程度有个更加直观的了解。For example, when the first pressure value is 0.2 N, the power consumption value threshold is X1, when the first pressure value is 0.4 N, the power consumption value is X2, and so on. In addition, in order to facilitate the user to understand the magnitude of the pressure value of the pressing, when the first pressing operation is detected, a pointing bar is formed on the control interface to indicate the magnitude of the pressure value, and the indicator bar can have a filling length. The percentage of the total length is used to identify the magnitude of the pressure value, allowing the user to have a more intuitive understanding of the level of stress they have during the pressing operation.
本优选实施例通过检测第一次按压操作的第一压力值的大小,来选择出要关闭的传感器调用函数,可操控性大,控制精度高,具有降低功耗以及便于操作的有益效果。请参照图5,在一些实施例中,传感器调用函数的关闭方法包括以下步骤:The preferred embodiment selects the sensor calling function to be turned off by detecting the magnitude of the first pressure value of the first pressing operation, has large controllability, high control precision, and has the beneficial effects of reducing power consumption and facilitating operation. Referring to FIG. 5, in some embodiments, the method for turning off the sensor calling function includes the following steps:
步骤S201,监测终端的耗电速度;Step S201, monitoring the power consumption speed of the terminal;
步骤S202,当耗电速度大于一预设值时,弹出监测操控界面;Step S202, when the power consumption speed is greater than a preset value, the monitoring operation interface is popped up;
步骤S203,对监测操控界面上的按压操作进行监测;Step S203, monitoring a pressing operation on the monitoring manipulation interface;
步骤S204,在操控界面监测到第一次按压操作时,弹出一用于实时标识当前压力值大小的指示条;Step S204, when the first pressing operation is detected on the control interface, a bar for popping up the current pressure value in real time is popped up;
步骤S205,读取该第一次按压操作的第一压力值;Step S205, reading a first pressure value of the first pressing operation;
步骤S206,当该第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数;Step S206, when the first pressure value is greater than a predetermined value, turning off a sensor calling function of the sensor whose power consumption value is greater than a corresponding threshold;
步骤S207,在操控界面监测到第二次按压操作时,关闭当前运行的所有传感器的传感器调用函数。Step S207: When the control interface detects the second pressing operation, the sensor calling function of all sensors currently running is turned off.
下面详细说明本优选实施例各步骤的具体流程。The specific flow of each step of the preferred embodiment will be described in detail below.
在该步骤S201中,可以通过监测该终端的实时电量情况,从而获取到当前终端的耗电速度。In this step S201, the power consumption speed of the current terminal can be obtained by monitoring the real-time power status of the terminal.
在该步骤S202中,当耗电速度大于一预设值时,说明当前终端的耗电速度过快,如果为了保持续航时间,则要通过一定的方法来降低功耗,其通过弹出监测操控界面来供用户操作,以实现节能。In the step S202, when the power consumption speed is greater than a preset value, it indicates that the power consumption speed of the current terminal is too fast. If the power consumption time is saved, the power consumption is reduced by a certain method, and the pop-up monitoring operation interface is For the user to operate, to achieve energy savings.
在该步骤S203中,该监测操控界面可以是一个小窗口,也可以是布满整个显示屏的显示界面。监测操控界面,可以是对该所弹出的监测操控界面上的按压操作进行监测,当该监测操控界面弹出后,实时监测该监测操控界面上的的按压操作。显示屏采用压力触控技术,其在屏幕四角配置了力度传感器,可以对按压力度进行感知。获取该按压操作的压力值时,为了避免误操作,需要滤除不必要干扰按压,因此,当检测到按压操作时,要获取的按压操作的压力值需要是持续预定时间段以上的按压操作,例如至少为2秒以上,对于那些短暂的例如小于2秒的按压操作,当成误操作进行滤除。In the step S203, the monitoring control interface may be a small window or a display interface that covers the entire display screen. The monitoring operation interface may be configured to monitor the pressing operation on the pop-up monitoring control interface, and when the monitoring control interface pops up, monitor the pressing operation on the monitoring control interface in real time. The display uses pressure touch technology, which is equipped with a velocity sensor at the four corners of the screen to sense the pressing force. When the pressure value of the pressing operation is acquired, in order to avoid erroneous operation, it is necessary to filter out unnecessary interference pressing. Therefore, when the pressing operation is detected, the pressure value of the pressing operation to be acquired needs to be a pressing operation for a predetermined period of time or longer. For example, at least 2 seconds or more, for those short-time, for example, less than 2 seconds, the pressing operation is filtered out by mistake.
在该步骤S204中,在该监测操控界面监测到第一次按压操作时,为了便于用户了解自己的按压的压力值大小,还可以在操控界面监测到第一次按压操作时,弹出一用于实时标识当前压力值大小的指示条。该指示条可以具采用填充长度的占其总长度的百分比来标识压力值的大小,也可以采用不同颜色的指示条来对应第一压力值的大小。In the step S204, when the monitoring operation interface detects the first pressing operation, in order to facilitate the user to understand the pressure value of the pressing, the user may also pop up one for the first pressing operation when the control interface detects the first pressing operation. A bar that identifies the current pressure value in real time. The indicator bar may have a percentage of the total length of the filling length to identify the magnitude of the pressure value, or a different color indicator bar may be used to correspond to the magnitude of the first pressure value.
在该步骤S205中,读取该第一次按压操作的第一压力值,在这之前,由于该按压操作持续了一段时间,例如2秒,其中压力值通常情况下均不是恒定的,因此,以其中的最大压力值作为该第一压力值。In this step S205, the first pressure value of the first pressing operation is read. Before this, since the pressing operation lasts for a period of time, for example, 2 seconds, wherein the pressure value is not normally constant, therefore, The maximum pressure value is taken as the first pressure value.
结合图3,在一些实施例中,该步骤S205包括以下子步骤:In conjunction with FIG. 3, in some embodiments, step S205 includes the following sub-steps:
步骤S1023,在操控界面监测到第一次按压操作时,获取该第一次按压操作的所有压力值的集合。In step S1023, when the first pressing operation is monitored by the manipulation interface, a set of all pressure values of the first pressing operation is acquired.
在该步骤中,该第一次按压操作的所有压力值的集合中的各个压力值是依照时间依次读取并排列,每间隔0.1秒或者0.2秒读取一个压力值。In this step, each of the pressure values in the set of all pressure values of the first pressing operation is sequentially read and arranged in accordance with time, and a pressure value is read every 0.1 second or 0.2 second.
步骤S1024,提取该集合中的最大压力值作为第一压力值。Step S1024, extracting the maximum pressure value in the set as the first pressure value.
在步骤S206中,该第一压力值的预定值的个数可以有多个,对应的该功耗值的阈值也设置有多个,该第一压力值的预定值与功耗值的阈值一一对应。In step S206, there may be a plurality of predetermined values of the first pressure value, and a corresponding threshold value of the power consumption value is also set, and the predetermined value of the first pressure value and the threshold value of the power consumption value are one. A correspondence.
结合图4,在一些实施例中,该步骤S206可以包括以下子步骤:With reference to FIG. 4, in some embodiments, the step S206 can include the following sub-steps:
步骤S1031,当该第一压力值大于第一预定值时,关闭功耗值大于第一阈值的传感器的传感器调用函数;Step S1031, when the first pressure value is greater than the first predetermined value, turning off a sensor calling function of the sensor whose power consumption value is greater than the first threshold;
步骤S1032,当该第一压力值大于第二预定值时,关闭功耗值大于第二阈值的传感器的传感器调用函数;Step S1032, when the first pressure value is greater than the second predetermined value, turning off the sensor calling function of the sensor whose power consumption value is greater than the second threshold;
步骤S1033,当该第一压力值大于第三预定值时,关闭功耗值大于第三阈值的传感器的传感器调用函数。Step S1033, when the first pressure value is greater than the third predetermined value, turning off the sensor calling function of the sensor whose power consumption value is greater than the third threshold.
例如,当第一压力值为0.2牛时,功耗值的阈值为X1,当第一压力值为0.4牛时,功耗值为X2,等等。For example, when the first pressure value is 0.2 N, the power consumption value threshold is X1, when the first pressure value is 0.4 N, the power consumption value is X2, and so on.
在该步骤S207中,如果用户发现关掉其中一部分传感器调用函数手机的耗电速度并未得到改善,可以选择再次按压,该次按压之后,关闭当前运行的所有传感器的传感器调用函数,从而关闭当前运行的传感器,实现降低功耗。在该第二按压操作时,为了避免误操作,该第二按压操作的压力值必须大于一预设值并持续预设时间以上,例如,该第二压力值大于0.5牛,并持续1秒。 In this step S207, if the user finds that the power consumption speed of turning off some of the sensor calling function phones is not improved, the user may choose to press again. After the pressing, the sensor calling function of all the currently running sensors is turned off, thereby closing the current Run the sensor to reduce power consumption. In the second pressing operation, in order to avoid erroneous operation, the pressure value of the second pressing operation must be greater than a preset value for more than a preset time, for example, the second pressure value is greater than 0.5 N for 1 second.
本发明实施例还提供了一种传感器调用函数关闭装置,包括:The embodiment of the invention further provides a sensor calling function closing device, comprising:
监测模块,用于监测操控界面的按压操作;a monitoring module for monitoring a pressing operation of the manipulation interface;
第一获取模块,在操控界面监测到第一次按压操作时,获取所述第一次按压操作的第一压力值;a first acquiring module, when the first pressing operation is monitored by the manipulation interface, acquiring a first pressure value of the first pressing operation;
第一关闭模块,当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数。And a first closing module, when the first pressure value is greater than a predetermined value, turning off a sensor calling function of the sensor whose power consumption value is greater than a corresponding threshold.
一实施例中,还包括:In an embodiment, the method further includes:
第二关闭模块,用于在操控界面监测到第二次按压操作时,关闭当前运行的所有传感器的传感器调用函数。The second closing module is configured to close the sensor calling function of all sensors currently running when the control interface detects the second pressing operation.
一实施例中,所述第一获取模块包括:In an embodiment, the first obtaining module includes:
第一获取单元,用于在操控界面监测到第一次按压操作时,获取所述第一次按压操作的所有压力值的集合;a first acquiring unit, configured to acquire a set of all pressure values of the first pressing operation when the first pressing operation is monitored by the manipulation interface;
第一提取单元,用于提取所述集合中的最大压力值作为第一压力值。And a first extracting unit, configured to extract a maximum pressure value in the set as the first pressure value.
一实施例中,还包括:In an embodiment, the method further includes:
指示模块,用于在操控界面监测到第一次按压操作时,弹出一用于实时标识当前压力值大小的指示条。The indicating module is configured to pop up a bar for real-time identifying the current pressure value when the first pressing operation is monitored on the control interface.
本发明实施例还提供了一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行以下步骤:The embodiment of the invention further provides a storage medium, wherein the storage medium stores a plurality of instructions, the instructions being adapted to be loaded by a processor to perform the following steps:
监测操控界面的按压操作;Monitoring the pressing operation of the manipulation interface;
在所述操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值;Reading the first pressure value of the first pressing operation when the manipulation interface detects the first pressing operation;
当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数。请参照图6,在一些实施例中,传感器调用函数的关闭装置包括:监测模块301、第一获取模块302、指示模块303、第一关闭模块304、第二关闭模块305。When the first pressure value is greater than a predetermined value, the sensor call function of the sensor whose power consumption value is greater than the corresponding threshold is turned off. Referring to FIG. 6 , in some embodiments, the device for shutting down the sensor call function includes: a monitoring module 301 , a first obtaining module 302 , an indicating module 303 , a first closing module 304 , and a second closing module 305 .
其中,该监测模块301用于监测操控界面的按压操作;The monitoring module 301 is configured to monitor a pressing operation of the manipulation interface;
第一获取模块302用于在操控界面监测到第一次按压操作时,获取该第一次按压操作的第一压力值。The first obtaining module 302 is configured to acquire a first pressure value of the first pressing operation when the first pressing operation is monitored by the manipulation interface.
指示模块303用于在操控界面监测到第一次按压操作时,弹出一用于实时标识当前压力值大小的指示条。The indicating module 303 is configured to pop up a bar for real-time identifying the current pressure value when the first pressing operation is monitored by the control interface.
第一关闭模块304用于当该第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数。The first closing module 304 is configured to: when the first pressure value is greater than a predetermined value, turn off a sensor calling function of the sensor whose power consumption value is greater than a corresponding threshold.
第二关闭模块305用于在操控界面监测到第二次按压操作时,关闭当前运行的所有传感器的传感器调用函数。The second closing module 305 is configured to close the sensor calling function of all sensors currently running when the control interface detects the second pressing operation.
具体地,第一获取模块302包括:Specifically, the first obtaining module 302 includes:
第一获取单元,该第一获取单元用于在操控界面监测到第一次按压操作时,获取该第一次按压操作的所有压力值的集合;a first acquiring unit, configured to acquire a set of all pressure values of the first pressing operation when the first pressing operation is monitored by the manipulation interface;
第一提取单元,用于提取该集合中的最大压力值作为第一压力值。The first extracting unit is configured to extract a maximum pressure value in the set as the first pressure value.
该操控界面可以是一个小窗口,也可以是布满整个显示屏的显示界面。当该操控界面弹出后,实时监测该操控界面的按压情况。显示屏采用压力触控技术,其在屏幕四角配置了力度传感器,可以对按压力度进行感知。获取该按压操作的压力值时,为了避免误操作,需要滤除不必要干扰按压,因此,当检测到按压操作时,要获取的按压操作的压力值需要是持续预定时间段以上的按压操作,例如至少为2秒以上,对于那些短暂的例如小于2秒的按压操作,当成误操作进行滤除。The control interface can be a small window or a display interface that covers the entire display. When the control interface pops up, the pressing condition of the control interface is monitored in real time. The display uses pressure touch technology, which is equipped with a velocity sensor at the four corners of the screen to sense the pressing force. When the pressure value of the pressing operation is acquired, in order to avoid erroneous operation, it is necessary to filter out unnecessary interference pressing. Therefore, when the pressing operation is detected, the pressure value of the pressing operation to be acquired needs to be a pressing operation for a predetermined period of time or longer. For example, at least 2 seconds or more, for those short-time, for example, less than 2 seconds, the pressing operation is filtered out by mistake.
在上述实施例中,传感器调用函数的关闭装置通过检测第一次按压操作的第一压力值的大小,来选择出要关闭的传感器调用函数,可操控性大,控制精度高,具有降低功耗以及便于操作的有益效果。In the above embodiment, the closing device of the sensor calling function selects the sensor calling function to be turned off by detecting the magnitude of the first pressure value of the first pressing operation, which has large controllability, high control precision, and reduced power consumption. And the benefits of easy operation.
在一优选实施例中,还提供一种电子设备400,该电子设备400可以是智能手机、平板电脑、智能手表等设备。图7所示,电子设备400包括处理器401、存储器402、传感器402。其中,所述处理器401与所述存储器402以及传感器408电性连接,并可控制存储器402的读写以及管理传感器408的连接状态。In a preferred embodiment, an electronic device 400 is also provided, which may be a device such as a smart phone, a tablet computer, a smart watch, or the like. As shown in FIG. 7, the electronic device 400 includes a processor 401, a memory 402, and a sensor 402. The processor 401 is electrically connected to the memory 402 and the sensor 408, and can control the reading and writing of the memory 402 and manage the connection state of the sensor 408.
处理器401是电子设备400的控制中心,利用各种接口和线路连接整个电子设备400的各个部分,通过运行或加载存储在存储器402内的应用程序,以及调用存储在存储器402内的数据,执行电子设备400的各种功能和处理数据,从而对电子设备400进行整体监控。The processor 401 is a control center of the electronic device 400, and connects various parts of the entire electronic device 400 using various interfaces and lines, by running or loading an application stored in the memory 402, and calling data stored in the memory 402, executing The various functions and processing data of the electronic device 400 enable overall monitoring of the electronic device 400.
在本实施例中,电子设备400中的处理器401会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器402中,并由处理器401来运行存储在存储器402中的应用程序,从而实现各种功能:In this embodiment, the processor 401 in the electronic device 400 loads the instructions corresponding to the process of one or more applications into the memory 402 according to the following steps, and is stored and stored in the memory 402 by the processor 401. In the application, thus implementing various functions:
监测操控界面的按压操作;Monitoring the pressing operation of the manipulation interface;
在所述操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值;Reading the first pressure value of the first pressing operation when the manipulation interface detects the first pressing operation;
当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器408的传感器调用函数。When the first pressure value is greater than a predetermined value, the sensor call function of the sensor 408 whose power consumption value is greater than the corresponding threshold is turned off.
在一些实施例中,所述处理器401用于执行以下步骤:In some embodiments, the processor 401 is configured to perform the following steps:
在所述操控界面监测到第二次按压操作时,关闭当前运行的所有所述传感器408的传感器调用函数。When the control interface detects a second pressing operation, the sensor calling function of all of the sensors 408 currently running is turned off.
在一些实施例中,在操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值时,所述处理器401用于执行以下步骤:In some embodiments, when the first pressure value of the first pressing operation is read when the control interface detects the first pressing operation, the processor 401 is configured to perform the following steps:
在操控界面监测到第一次按压操作时,获取所述第一次按压操作的按压持续时间值;Obtaining a pressing duration value of the first pressing operation when the first pressing operation is monitored by the manipulation interface;
当所述按压持续时间值大于或等于预设阈值时,读取所述第一次按压操作的第一压力值。The first pressure value of the first pressing operation is read when the pressing duration value is greater than or equal to a preset threshold.
在一些实施例中,在操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值时,所述处理器401用于执行以下步骤:In some embodiments, when the first pressure value of the first pressing operation is read when the control interface detects the first pressing operation, the processor 401 is configured to perform the following steps:
在操控界面监测到第一次按压操作时,获取所述第一次按压操作的所有压力值的集合;Acquiring a set of all pressure values of the first pressing operation when the manipulation interface detects the first pressing operation;
提取所述集合中的最大压力值作为第一压力值。A maximum pressure value in the set is extracted as a first pressure value.
在一些实施例中,所述处理器401还用于执行以下步骤:In some embodiments, the processor 401 is further configured to perform the following steps:
在操控界面监测到第一次按压操作时,弹出一用于实时标识当前压力值大小的指示条。When the first pressing operation is detected on the manipulation interface, a bar for promptly identifying the current pressure value is popped up.
在一些实施例中,当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器408的传感器调用函数时,所述处理器401用于执行以下步骤:In some embodiments, when the first pressure value is greater than a predetermined value, when the sensor call function of the sensor 408 whose power consumption value is greater than the corresponding threshold is turned off, the processor 401 is configured to perform the following steps:
当所述第一压力值大于第一预定值时,关闭功耗值大于第一阈值的传感器408的传感器调用函数;When the first pressure value is greater than the first predetermined value, turning off the sensor calling function of the sensor 408 whose power consumption value is greater than the first threshold;
当所述第一压力值大于第二预定值时,关闭功耗值大于第二阈值的传感器408的传感器调用函数;When the first pressure value is greater than the second predetermined value, turning off the sensor calling function of the sensor 408 whose power consumption value is greater than the second threshold;
当所述第一压力值大于第三预定值时,关闭功耗值大于第三阈值的传感器408的传感器调用函数。When the first pressure value is greater than the third predetermined value, the sensor call function of the sensor 408 whose power consumption value is greater than the third threshold is turned off.
在一些实施例中,其中,所述处理器401用于执行以下步骤:In some embodiments, the processor 401 is configured to perform the following steps:
监测电子设备的耗电速度;Monitor the power consumption of electronic equipment;
当所述耗电速度大于一预设值时,弹出监测操控界面。When the power consumption speed is greater than a preset value, the monitoring operation interface is popped up.
存储器402可用于存储应用程序和数据。存储器402存储的应用程序中包含有可在处理器401中执行的指令。应用程序可以组成各种功能模块。处理器401通过运行存储在存储器402的应用程序,从而执行各种功能应用以及数据处理。Memory 402 can be used to store applications and data. The application stored in the memory 402 contains instructions executable in the processor 401. Applications can form various functional modules. The processor 401 executes various functional applications and data processing by running an application stored in the memory 402.
电子设备400还可以包括至少一种传感器408,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板的亮度,接近传感器408可在终端移动到耳边时,关闭显示面板和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等; 至于终端还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。Electronic device 400 may also include at least one type of sensor 408, such as a light sensor, motion sensor, and other sensors. Specifically, 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 408 may close the display panel and/or when the terminal moves to the ear. Backlighting. As a kind of motion sensor, 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. It can be used to identify the 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.
在一些实施例中,如图8所示,电子设备400还包括:显示屏403、控制电路404、射频电路405、输入单元406、音频电路407、传感器408以及电源409。其中,处理器401分别与射频电路405、输入单元406、音频电路407以及电源409电性连接。In some embodiments, as shown in FIG. 8, the electronic device 400 further includes a display screen 403, a control circuit 404, a radio frequency circuit 405, an input unit 406, an audio circuit 407, a sensor 408, and a power source 409. The processor 401 is electrically connected to the radio frequency circuit 405, the input unit 406, the audio circuit 407, and the power source 409, respectively.
显示屏403可用于显示由用户输入的信息或提供给用户的信息以及终端的各种图形用户接口,这些图形用户接口可以由图像、文本、图标、视频和其任意组合来构成。The display screen 403 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 terminal, which can be composed of images, text, icons, video, and any combination thereof.
控制电路404与显示屏403电性连接,用于控制显示屏403显示信息。The control circuit 404 is electrically connected to the display screen 403 for controlling the display screen 403 to display information.
射频电路405用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。The radio frequency circuit 405 is configured to transmit and receive 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.
输入单元406可用于接收输入的数字、字符信息或用户特征信息(例如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。其中,输入单元406可以包括指纹识别模组。The input unit 406 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 406 can include a fingerprint identification module.
音频电路407可通过扬声器、传声器提供用户与终端之间的音频接口。The audio circuit 407 can provide an audio interface between the user and the terminal through a speaker and a microphone.
电源409用于给电子设备400的各个部件供电。在一些实施例中,电源409可以通过电源管理系统与处理器401逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。Power source 409 is used to power various components of electronic device 400. In some embodiments, the power supply 409 can be logically coupled to the processor 401 through a power management system to enable functions such as managing charging, discharging, and power management through the power management system.
尽管图8中未示出,电子设备400还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 8, the electronic device 400 may further include a camera, a Bluetooth module, and the like, and details are not described herein.
本发明所述的电子设备中,通过检测第一次按压操作的第一压力值的大小,来选择出要关闭的对应功耗级别的传感器调用函数,可操控性大,控制精度高,具有降低功耗以及便于操作的有益效果,并且无需关闭所有传感器调用函数,从而最大限度地保持电子设备的正常工作。In the electronic device of the present invention, by detecting the magnitude of the first pressure value of the first pressing operation, the sensor calling function corresponding to the power consumption level to be turned off is selected, the controllability is large, the control precision is high, and the control is high. Power consumption and ease of operation, and does not require all sensor call functions to be turned off to maximize the proper operation of the electronics.
本发明实施例还提供了一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行如上所述的方法。Embodiments of the present invention also provide a storage medium having a plurality of instructions stored therein, the instructions being adapted to be loaded by a processor to perform the method as described above.
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读的存储介质中,如存储在终端的存储器中,并被该终端内的至少一个处理器执行,在执行过程中可包括如信息发布方法的实施例的流程。其中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。It should be noted that those skilled in the art can understand that all or part of the steps of the foregoing embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium. As stored in the memory of the terminal and executed by at least one processor within the terminal, a flow such as an embodiment of the information dissemination method may be included in the execution. The storage medium may include: a read only memory (ROM, Read) Only Memory), Random Access Memory (RAM), disk or CD.
本文提供了实施例的各种操作。描述一些或所有操作的顺序不应当被解释为暗示这些操作必需是顺序相关的。本领域技术人员将理解具有本说明书的益处的可替代的排序。而且,应当理解,不是所有操作必需在本文所提供的每个实施例中存在。Various operations of the embodiments are provided herein. The order in which some or all of the operations are described should not be construed as implying that the operations must be sequential. Those skilled in the art will appreciate alternative rankings that have the benefit of this specification. Moreover, it should be understood that not all operations must be present in every embodiment provided herein.
而且,本文所使用的词语“优选的”意指用作实例、示例或例证。奉文描述为“优选的”任意方面或设计不必被解释为比其他方面或设计更有利。相反,词语“优选的”的使用旨在以具体方式提出概念。如本申请中所使用的术语“或”旨在意指包含的“或”而非排除的“或”。即,除非另外指定或从上下文中清楚,“X使用A或B”意指自然包括排列的任意一个。即,如果X使用A;X使用B;或X使用A和B二者,则“X使用A或B”在前述任一示例中得到满足。Moreover, the word "preferred" as used herein is intended to serve as an example, instance, or illustration. Any aspect or design described as "preferred" by the text is not necessarily to be construed as being more advantageous than other aspects or designs. Instead, the use of the word "preferred" is intended to present a concept in a specific manner. The term "or" as used in this application is intended to mean an "or" or "an" That is, unless otherwise specified or clear from the context, "X employs A or B" means naturally including any one of the permutations. That is, if X uses A; X uses B; or X uses both A and B, then "X uses A or B" is satisfied in any of the foregoing examples.
而且,尽管已经相对于一个或多个实现方式示出并描述了本公开,但是本领域技术人员基于对本说明书和附图的阅读和理解将会想到等价变型和修改。本公开包括所有这样的修改和变型,并且仅由所附权利要求的范围限制。特别地关于由上述组件(例如元件、资源等)执行的各种功能,用于描述这样的组件的术语旨在对应于执行所述组件的指定功能(例如其在功能上是等价的)的任意组件(除非另外指示),即使在结构上与执行本文所示的本公开的示范性实现方式中的功能的公开结构不等同。此外,尽管本公开的特定特征已经相对于若干实现方式中的仅一个被公开,但是这种特征可以与如可以对给定或特定应用而言是期望和有利的其他实现方式的一个或多个其他特征组合。而且,就术语“包括”、“具有”、“含有”或其变形被用在具体实施方式或权利要求中而言,这样的术语旨在以与术语“包含”相似的方式包括。Rather, the present invention has been shown and described with respect to the embodiments of the present invention. The present disclosure includes all such modifications and variations, and is only limited by the scope of the appended claims. With particular regard to various functions performed by the above-described components (e.g., elements, resources, etc.), the terms used to describe such components are intended to correspond to performing the specified functions of the components (e.g., they are functionally equivalent). Any component (unless otherwise indicated) is not equivalent in structure to the disclosed structure for performing the functions in the exemplary implementations of the present disclosure as shown herein. Moreover, although certain features of the present disclosure have been disclosed with respect to only one of several implementations, such features may be combined with one or more other implementations as may be desired and advantageous for a given or particular application. Other feature combinations. Furthermore, the terms "comprising," "having," "having," or "include" or "comprising" are used in the particular embodiments or claims, and such terms are intended to be encompassed in a manner similar to the term "comprising."
综上所述,虽然本发明已以优选实施例揭露如上,但上述优选实施例并非用以限制本发明,本领域的普通技术人员,在不脱离本发明的精神和范围内,均可作各种更动与润饰,因此本发明的保护范围以权利要求界定的范围为准。In the above, the present invention has been disclosed in the above preferred embodiments, but the preferred embodiments are not intended to limit the present invention, and those skilled in the art can make various modifications without departing from the spirit and scope of the invention. The invention is modified and retouched, and the scope of the invention is defined by the scope defined by the claims.

Claims (20)

  1. 一种传感器调用函数的关闭方法,其中,包括以下步骤:A method for closing a sensor calling function, comprising the following steps:
    监测操控界面的按压操作;Monitoring the pressing operation of the manipulation interface;
    在所述操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值;Reading the first pressure value of the first pressing operation when the manipulation interface detects the first pressing operation;
    当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数。When the first pressure value is greater than a predetermined value, the sensor call function of the sensor whose power consumption value is greater than the corresponding threshold is turned off.
  2. 根据权利要求1所述的传感器调用函数的关闭方法,其中,在所述关闭功耗值大于对应阈值的传感器的传感器调用函数的步骤之后,还包括:The method for shutting down a sensor call function according to claim 1, wherein after the step of turning off the sensor call function of the sensor whose power consumption value is greater than the corresponding threshold value, the method further comprises:
    在所述操控界面监测到第二次按压操作时,关闭当前运行的所有所述传感器的传感器调用函数。When the control interface detects the second pressing operation, the sensor calling function of all the sensors currently running is turned off.
  3. 根据权利要求1所述的传感器调用函数的关闭方法,其中,所述在操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值的步骤包括:The method for shutting down a sensor call function according to claim 1, wherein the step of reading the first pressure value of the first pressing operation when the manipulation interface detects the first pressing operation comprises:
    在操控界面监测到第一次按压操作时,获取所述第一次按压操作的按压持续时间值;Obtaining a pressing duration value of the first pressing operation when the first pressing operation is monitored by the manipulation interface;
    当所述按压持续时间值大于或等于预设阈值时,读取所述第一次按压操作的第一压力值。The first pressure value of the first pressing operation is read when the pressing duration value is greater than or equal to a preset threshold.
  4. 根据权利要求1所述的传感器调用函数的关闭方法,其中,所述在操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值的步骤包括:The method for shutting down a sensor call function according to claim 1, wherein the step of reading the first pressure value of the first pressing operation when the manipulation interface detects the first pressing operation comprises:
    在操控界面监测到第一次按压操作时,获取所述第一次按压操作的所有压力值的集合;Acquiring a set of all pressure values of the first pressing operation when the manipulation interface detects the first pressing operation;
    提取所述集合中的最大压力值作为第一压力值。A maximum pressure value in the set is extracted as a first pressure value.
  5. 根据权利要求1所述的传感器调用函数的关闭方法,其中,在所述监测操控界面的按压操作的步骤之后,还包括:The method for shutting down a sensor call function according to claim 1, wherein after the step of monitoring the pressing operation of the manipulation interface, the method further comprises:
    在操控界面监测到第一次按压操作时,弹出一用于实时标识当前压力值大小的指示条。When the first pressing operation is detected on the manipulation interface, a bar for promptly identifying the current pressure value is popped up.
  6. 根据权利要求1所述的传感器调用函数的关闭方法,其中,所述当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数的步骤包括:The method for shutting down a sensor call function according to claim 1, wherein when the first pressure value is greater than a predetermined value, the step of turning off the sensor call function of the sensor whose power consumption value is greater than the corresponding threshold value comprises:
    当所述第一压力值大于第一预定值时,关闭功耗值大于第一阈值的传感器的传感器调用函数;When the first pressure value is greater than the first predetermined value, turning off a sensor calling function of the sensor whose power consumption value is greater than the first threshold;
    当所述第一压力值大于第二预定值时,关闭功耗值大于第二阈值的传感器的传感器调用函数;When the first pressure value is greater than the second predetermined value, turning off a sensor calling function of the sensor whose power consumption value is greater than the second threshold;
    当所述第一压力值大于第三预定值时,关闭功耗值大于第三阈值的传感器的传感器调用函数。When the first pressure value is greater than the third predetermined value, the sensor calling function of the sensor whose power consumption value is greater than the third threshold is turned off.
  7. 根据权利要求1所述的传感器调用函数的关闭方法,其中,在所述监测操控界面的按压操作的步骤之前,还包括:The method for shutting down a sensor call function according to claim 1, wherein before the step of monitoring the pressing operation of the manipulation interface, the method further comprises:
    监测终端的耗电速度;Monitoring the power consumption speed of the terminal;
    当所述耗电速度大于一预设值时,弹出监测操控界面。When the power consumption speed is greater than a preset value, the monitoring operation interface is popped up.
  8. 根据权利要求7所述的传感器调用函数的关闭方法,其中,所述监测操控界面的按压操作,包括:The method for shutting down a sensor call function according to claim 7, wherein the pressing operation of the monitoring manipulation interface comprises:
    对所述监测操控界面上的按压操作进行监测。Monitoring the pressing operation on the monitoring manipulation interface.
  9. 一种传感器调用函数关闭装置,其中,包括:A sensor calling function closing device, wherein:
    监测模块,用于监测操控界面的按压操作;a monitoring module for monitoring a pressing operation of the manipulation interface;
    第一获取模块,在操控界面监测到第一次按压操作时,获取所述第一次按压操作的第一压力值;a first acquiring module, when the first pressing operation is monitored by the manipulation interface, acquiring a first pressure value of the first pressing operation;
    第一关闭模块,当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数。And a first closing module, when the first pressure value is greater than a predetermined value, turning off a sensor calling function of the sensor whose power consumption value is greater than a corresponding threshold.
  10. 根据权利要求9所述传感器调用函数关闭装置,其中,还包括:The sensor calling function closing device according to claim 9, further comprising:
    第二关闭模块,用于在操控界面监测到第二次按压操作时,关闭当前运行的所有传感器的传感器调用函数。The second closing module is configured to close the sensor calling function of all sensors currently running when the control interface detects the second pressing operation.
  11. 根据权利要求9所述传感器调用函数关闭装置,其中,所述第一获取模块包括:The sensor calling function closing device according to claim 9, wherein the first obtaining module comprises:
    第一获取单元,用于在操控界面监测到第一次按压操作时,获取所述第一次按压操作的所有压力值的集合;a first acquiring unit, configured to acquire a set of all pressure values of the first pressing operation when the first pressing operation is monitored by the manipulation interface;
    第一提取单元,用于提取所述集合中的最大压力值作为第一压力值。And a first extracting unit, configured to extract a maximum pressure value in the set as the first pressure value.
  12. 根据权利要求9所述传感器调用函数关闭装置,其中,还包括:The sensor calling function closing device according to claim 9, further comprising:
    指示模块,用于在操控界面监测到第一次按压操作时,弹出一用于实时标识当前压力值大小的指示条。The indicating module is configured to pop up a bar for real-time identifying the current pressure value when the first pressing operation is monitored on the control interface.
  13. 一种存储介质,其中,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行如权利要求1-7任一所述的传感器调用函数的关闭方法。A storage medium, wherein the storage medium stores a plurality of instructions adapted to be loaded by a processor to perform a shutdown method of the sensor call function of any of claims 1-7.
  14. 一种电子设备,其中,包括处理器、存储器,所述处理器与所述存储器电性连接,所述存储器用于存储指令和数据,所述处理器用于执行以下步骤:An electronic device, comprising a processor, a memory, the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is configured to perform the following steps:
    监测操控界面的按压操作;Monitoring the pressing operation of the manipulation interface;
    在所述操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值;Reading the first pressure value of the first pressing operation when the manipulation interface detects the first pressing operation;
    当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数。When the first pressure value is greater than a predetermined value, the sensor call function of the sensor whose power consumption value is greater than the corresponding threshold is turned off.
  15. 如权利要求14所述的电子设备,其中,所述处理器还用于执行以下步骤:The electronic device of claim 14, wherein the processor is further configured to perform the following steps:
    在所述操控界面监测到第二次按压操作时,关闭当前运行的所有所述传感器的传感器调用函数。When the control interface detects the second pressing operation, the sensor calling function of all the sensors currently running is turned off.
  16. 如权利要求14所述的电子设备,其中,在操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值时,所述处理器用于执行以下步骤:The electronic device according to claim 14, wherein when the first pressure value of the first pressing operation is read when the manipulation interface detects the first pressing operation, the processor is configured to perform the following steps:
    在操控界面监测到第一次按压操作时,获取所述第一次按压操作的按压持续时间值;Obtaining a pressing duration value of the first pressing operation when the first pressing operation is monitored by the manipulation interface;
    当所述按压持续时间值大于或等于预设阈值时,读取所述第一次按压操作的第一压力值。The first pressure value of the first pressing operation is read when the pressing duration value is greater than or equal to a preset threshold.
  17. 如权利要求14所述的电子设备,其中,在操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值时,所述处理器用于执行以下步骤:The electronic device according to claim 14, wherein when the first pressure value of the first pressing operation is read when the manipulation interface detects the first pressing operation, the processor is configured to perform the following steps:
    在操控界面监测到第一次按压操作时,获取所述第一次按压操作的所有压力值的集合;Acquiring a set of all pressure values of the first pressing operation when the manipulation interface detects the first pressing operation;
    提取所述集合中的最大压力值作为第一压力值。A maximum pressure value in the set is extracted as a first pressure value.
  18. 如权利要求14所述的电子设备,其中,所述处理器还用于执行以下步骤:The electronic device of claim 14, wherein the processor is further configured to perform the following steps:
    在操控界面监测到第一次按压操作时,弹出一用于实时标识当前压力值大小的指示条。When the first pressing operation is detected on the manipulation interface, a bar for promptly identifying the current pressure value is popped up.
  19. 如权利要求14所述的电子设备,其中,当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数时,所述处理器还用于执行以下步骤:The electronic device according to claim 14, wherein when the first pressure value is greater than a predetermined value, when the sensor call function of the sensor whose power consumption value is greater than the corresponding threshold is turned off, the processor is further configured to perform the following steps :
    当所述第一压力值大于第一预定值时,关闭功耗值大于第一阈值的传感器的传感器调用函数;When the first pressure value is greater than the first predetermined value, turning off a sensor calling function of the sensor whose power consumption value is greater than the first threshold;
    当所述第一压力值大于第二预定值时,关闭功耗值大于第二阈值的传感器的传感器调用函数;When the first pressure value is greater than the second predetermined value, turning off a sensor calling function of the sensor whose power consumption value is greater than the second threshold;
    当所述第一压力值大于第三预定值时,关闭功耗值大于第三阈值的传感器的传感器调用函数。When the first pressure value is greater than the third predetermined value, the sensor calling function of the sensor whose power consumption value is greater than the third threshold is turned off.
  20. 如权利要求14所述的电子设备,其中,所述处理器还用于执行以下步骤:The electronic device of claim 14, wherein the processor is further configured to perform the following steps:
    监测电子设备的耗电速度;Monitor the power consumption of electronic equipment;
    当所述耗电速度大于一预设值时,弹出监测操控界面。When the power consumption speed is greater than a preset value, the monitoring operation interface is popped up.
PCT/CN2017/086469 2016-05-31 2017-05-29 Sensor calling function shutdown method and apparatus, storage medium, and electronic device WO2017206872A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610383779.9A CN106095290B (en) 2016-05-31 2016-05-31 The method for closing and device of sensor call function
CN201610383779.9 2016-05-31

Publications (1)

Publication Number Publication Date
WO2017206872A1 true WO2017206872A1 (en) 2017-12-07

Family

ID=57447424

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/086469 WO2017206872A1 (en) 2016-05-31 2017-05-29 Sensor calling function shutdown method and apparatus, storage medium, and electronic device

Country Status (2)

Country Link
CN (1) CN106095290B (en)
WO (1) WO2017206872A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095290B (en) * 2016-05-31 2018-09-21 广东欧珀移动通信有限公司 The method for closing and device of sensor call function
CN106020908B (en) * 2016-05-31 2019-04-12 Oppo广东移动通信有限公司 A kind of function method for closing and device
CN112783563A (en) * 2021-01-28 2021-05-11 惠州Tcl移动通信有限公司 Mobile terminal sensor working method, system, terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102156530A (en) * 2010-09-30 2011-08-17 华为终端有限公司 Power consumption management method and device thereof for mobile terminal
CN103870190A (en) * 2012-12-17 2014-06-18 联想(北京)有限公司 Method for controlling electronic equipment and electronic equipment
US20140292776A1 (en) * 2013-03-26 2014-10-02 Kabushiki Kaisha Toshiba Electronic apparatus and control method
CN105187644A (en) * 2015-08-27 2015-12-23 广东欧珀移动通信有限公司 Playing operation method and terminal
CN105335068A (en) * 2015-11-18 2016-02-17 广东欧珀移动通信有限公司 Application deleting method and terminal equipment
CN106095290A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 Sensor calls method for closing and the device of function

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101768540B1 (en) * 2009-10-30 2017-08-18 삼성전자주식회사 Mobile device and method for providing UI
CN104714741A (en) * 2013-12-11 2015-06-17 北京三星通信技术研究有限公司 Method and device for touch operation
US9547363B2 (en) * 2014-07-16 2017-01-17 Mediatek Inc. Power-saving method and associated electronic device
CN105100476B (en) * 2015-07-28 2019-10-15 努比亚技术有限公司 A kind of mobile terminal unlocking device and method
CN105204730B (en) * 2015-08-27 2018-06-29 广东欧珀移动通信有限公司 A kind of screen control method and user terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102156530A (en) * 2010-09-30 2011-08-17 华为终端有限公司 Power consumption management method and device thereof for mobile terminal
CN103870190A (en) * 2012-12-17 2014-06-18 联想(北京)有限公司 Method for controlling electronic equipment and electronic equipment
US20140292776A1 (en) * 2013-03-26 2014-10-02 Kabushiki Kaisha Toshiba Electronic apparatus and control method
CN105187644A (en) * 2015-08-27 2015-12-23 广东欧珀移动通信有限公司 Playing operation method and terminal
CN105335068A (en) * 2015-11-18 2016-02-17 广东欧珀移动通信有限公司 Application deleting method and terminal equipment
CN106095290A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 Sensor calls method for closing and the device of function

Also Published As

Publication number Publication date
CN106095290A (en) 2016-11-09
CN106095290B (en) 2018-09-21

Similar Documents

Publication Publication Date Title
WO2018129977A1 (en) Charging control method and apparatus, storage medium, and computer device
WO2018161585A1 (en) Method and apparatus for controlling frame rate of electronic device, storage medium, and electronic device
WO2019160371A1 (en) A method and an electronic device for controlling an external electronic device on the basis of an electromanetic signal
WO2017206878A1 (en) Wakeup lock-based processing method and apparatus, storage medium, and electronic device
WO2018076819A1 (en) Data upload method, apparatus, storage medium, electronic device and system
WO2017206870A1 (en) Sensor shutdown method and apparatus, storage medium, and electronic device
EP3281089A1 (en) Smart device and method of operating the same
WO2017206886A1 (en) Wakeup lock releasing method and apparatus, storage medium, and electronic device
WO2015182966A1 (en) Method for controlling display and electronic device
WO2020171427A1 (en) Electronic device which prefetches application and method therefor
WO2018161602A1 (en) Method and apparatus for controlling frame rate of electronic device, storage medium, and electronic device
WO2017206879A1 (en) Mobile terminal application program processing method and apparatus, storage medium, and electronic device
WO2016188285A1 (en) Process management method and device of terminal application
WO2017206885A1 (en) Application program shutdown method and apparatus, storage medium, and electronic device
WO2017206865A1 (en) Application program shutdown method and apparatus, storage medium, and electronic device
WO2018161580A1 (en) Broadcast control method and apparatus, storage medium, and electronic device
WO2017206872A1 (en) Sensor calling function shutdown method and apparatus, storage medium, and electronic device
WO2017206867A1 (en) Sensor shutdown method and apparatus, storage medium, and electronic device
WO2017206892A1 (en) Sensor processing method and apparatus of mobile terminal, storage medium, and electronic device
WO2019039729A1 (en) Method for changing the size of the content displayed on display and electronic device thereof
WO2017206873A1 (en) Application program shutdown method and apparatus, storage medium, and electronic device
WO2017206874A1 (en) Application program shutdown method and apparatus, storage medium, and electronic device
WO2017206881A1 (en) Method and apparatus for processing associated applications, storage medium, and electronic device
WO2021162286A1 (en) Electronic device and method for recognizing audio output device connected to usb type-c connector
WO2019199086A1 (en) Electronic device and control method for electronic device

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: 17805817

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: 17805817

Country of ref document: EP

Kind code of ref document: A1