WO2019071426A1 - 阈值设置方法及相关产品 - Google Patents

阈值设置方法及相关产品 Download PDF

Info

Publication number
WO2019071426A1
WO2019071426A1 PCT/CN2017/105516 CN2017105516W WO2019071426A1 WO 2019071426 A1 WO2019071426 A1 WO 2019071426A1 CN 2017105516 W CN2017105516 W CN 2017105516W WO 2019071426 A1 WO2019071426 A1 WO 2019071426A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
proximity sensor
threshold
working threshold
scenario
Prior art date
Application number
PCT/CN2017/105516
Other languages
English (en)
French (fr)
Inventor
张强
Original Assignee
深圳市云中飞网络科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市云中飞网络科技有限公司 filed Critical 深圳市云中飞网络科技有限公司
Priority to CN201780092548.5A priority Critical patent/CN110809877B/zh
Priority to PCT/CN2017/105516 priority patent/WO2019071426A1/zh
Publication of WO2019071426A1 publication Critical patent/WO2019071426A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a threshold setting method and related products.
  • the proximity sensor can detect the distance between the object and the mobile terminal according to the infrared light reflection value of the object, thereby controlling the transition between the bright screen and the blank screen of the mobile terminal, for example, detecting the object distance when making a call through the human ear.
  • the display screen and the backlight are turned off, so that the power consumption is reduced and the human ear is accidentally touched when the display screen is bright, but the infrared light reflection value is disturbed by external conditions, making the mobile terminal unnecessary. Bright screen and off screen conversion.
  • the embodiment of the invention provides a threshold setting method and related products, so as to improve the accuracy and intelligence of the mobile terminal proximity sensor working threshold setting.
  • an embodiment of the present invention provides a threshold setting method, where the method includes:
  • Setting a working threshold of the proximity sensor is the target operating threshold.
  • an embodiment of the present invention provides a mobile terminal, which has a function of implementing behavior of a mobile terminal in the foregoing method design.
  • the functions may be implemented by hardware or by corresponding software implemented by hardware.
  • the hardware or software includes one or more corresponding to the function Module.
  • an embodiment of the present invention provides a mobile terminal, including: a processor, a memory, and one or more programs; the one or more programs are stored in the foregoing memory, and configured to be configured by the Executed by the processor, the program includes instructions for performing the steps described in any of the methods of the first aspect of the embodiments of the present invention.
  • an embodiment of the present invention provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program for electronic data exchange, the computer program specifically including instructions for executing
  • the computer comprises a mobile terminal, in part or all of the steps described in any of the methods of the first aspect of the present invention.
  • an embodiment of the present invention provides a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to execute Some or all of the steps described in any of the methods of the first aspect of the invention.
  • the computer program product can be a software installation package, the computer comprising a mobile terminal.
  • the mobile terminal first detects system state information of the mobile terminal; secondly, determines a scenario in which the mobile terminal is located according to the system state information; and then uses the scenario as a query identifier And determining a mapping relationship between the preset scenario and the proximity sensor working threshold, determining that the working threshold of the proximity sensor corresponding to the scenario is a target working threshold; and finally, setting a working threshold of the proximity sensor to the target working threshold.
  • the mobile terminal determines the scenario described by the mobile terminal according to the system state information, and sets different working thresholds of the proximity sensor according to different scenarios, instead of making the working threshold of the proximity sensor a fixed value, which is beneficial to improving the mobile terminal. Proximity and intelligence of sensor proximity threshold settings.
  • FIG. 1 is a schematic flowchart diagram of a threshold setting method according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart diagram of another threshold setting method according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart diagram of another threshold setting method according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart diagram of another threshold setting method according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure.
  • FIG. 6 is a block diagram of a functional unit of a mobile terminal according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • the mobile terminal involved in the embodiments of the present invention may include various handheld devices, wireless devices, wearable devices, computing devices, or other processing devices connected to the wireless modem, and various forms of user equipment (User Equipment, UE), mobile station (MS), terminal device, and the like.
  • UE User Equipment
  • MS mobile station
  • terminal device and the like.
  • the devices mentioned above are collectively referred to as mobile terminals.
  • the embodiments of the present invention are described in detail below.
  • FIG. 1 is a schematic flowchart diagram of a method for setting a threshold according to an embodiment of the present invention. As shown in the figure, the threshold setting method includes:
  • the mobile terminal detects system status information of the mobile terminal.
  • the mobile terminal includes a gravity sensor, a proximity sensor or the like
  • the system state information includes posture information of the mobile terminal detected by the gravity sensor, and the measured value detected by the proximity sensor, the posture information includes the movement The angle between the terminal and the horizontal plane, ranging from 0 to 90 degrees.
  • the proximity sensor comprises two parts, the first part is a transmitting end, that is, the LED lamp emits infrared light, the second part is a receiving end, receives infrared light, and the receiving end determines the measured value of the proximity sensor according to the infrared light intensity value.
  • the range of the infrared intensity can be 256, 1024, and 4096 depending on the internal components of the proximity sensor. For example, when the integrated circuit inside the sensor is a 10-bit device, if there is no object blocking, the measured value is 50. When the face is close to the device, the infrared rays are all reflected to the receiving end, and the full scale is 1024, that is, the measured value is 1024.
  • the mobile terminal determines, according to the system state information, a scenario in which the mobile terminal is located.
  • the scene in which the mobile terminal is located includes a first scene, a second scene, a third scene, and a fourth scene.
  • the first scene is a black pants scene
  • the second scene is a normal scene under ambient light.
  • the third scenario is a startup scenario of the proximity sensor
  • the fourth scenario is a non-ear call scenario in a bright screen state.
  • the mobile terminal uses the scenario as a query identifier to query a mapping relationship between a preset scenario and a proximity sensor working threshold, and determines that a working threshold of the proximity sensor corresponding to the scenario is a target working threshold.
  • the target working threshold corresponding to the scenario may be obtained by using the mapping relationship between the preset scenario and the proximity sensor working threshold, and the setting policy of the target working threshold corresponding to the scenario may also be obtained, which is not limited herein.
  • the mapping relationship between the preset scene and the proximity sensor working threshold may be preset by the developer before the mobile terminal leaves the factory, or the mobile terminal may determine the scene and the proximity sensor according to the historical usage data of the user by intelligently learning the user habit.
  • the mapping relationship between the working thresholds is established and pre-existing in the mobile terminal, which is not limited herein.
  • the working threshold of the proximity sensor triggers the mobile terminal to be in a blanking state and a bright screen a threshold for switching between states, when the measured value of the proximity sensor is greater than the working threshold, the mobile terminal sets a blanking state, and when the measured value of the proximity sensor is less than the working threshold, the mobile terminal Set the bright screen status.
  • the mobile terminal sets an operating threshold of the proximity sensor to the target working threshold.
  • the mobile terminal first detects system state information of the mobile terminal; secondly, determines a scenario in which the mobile terminal is located according to the system state information; and then uses the scenario as a query identifier And determining a mapping relationship between the preset scenario and the proximity sensor working threshold, determining that the working threshold of the proximity sensor corresponding to the scenario is a target working threshold; and finally, setting a working threshold of the proximity sensor to the target working threshold.
  • the mobile terminal determines the scenario described by the mobile terminal according to the system state information, and sets different working thresholds of the proximity sensor according to different scenarios, instead of making the working threshold of the proximity sensor a fixed value, which is beneficial to improving the mobile terminal. Proximity and intelligence of sensor proximity threshold settings.
  • the determining, according to the system state information, the scenario in which the mobile terminal is located includes:
  • Setting the working threshold of the proximity sensor to the target working threshold includes:
  • the working threshold of the proximity sensor is set to be a first working threshold, and the first working threshold is smaller than a minimum measured value detected by the proximity sensor in the first scenario.
  • the first scene is a black pants scene
  • the black pants scene can be understood as a scene in which the mobile terminal is placed in a black pants pocket.
  • the measured value of the proximity sensor is a measured value when an object approaches.
  • the first working threshold is used by the mobile terminal to detect that the measured value of the proximity sensor is greater than the first working threshold and the number of touch operations for the touch display screen is greater than the second pre- When the threshold is set, the mobile terminal is placed in a blackout state.
  • the measured value of the proximity sensor is affected, so that the measured value of the proximity sensor is relatively small, and the touch display screen of the mobile terminal recognizes the skin.
  • the proximity sensor is activated, and the proximity sensor makes the measured value due to the black pants If the operating threshold is less than the proximity sensor, the proximity sensor will report the remote event.
  • the mobile terminal When the touch screen exceeds the set number of times, the mobile terminal will brighten the screen to remind the user, and the bright screen is an unnecessary bright screen if If the mobile terminal is not to be bright, the working threshold of the proximity sensor needs to be set to be smaller than the minimum measured value detected by the black pants scene, and then the measured value is greater than the working threshold, then the mobile terminal is The black pants scene will always be off.
  • the first preset threshold is a threshold for the mobile terminal to distinguish between the normal scene under the ambient light and the black pants scene, because the black pants in the black pants scene have a relatively small amount of infrared reflection, when an object approaches
  • the measured value of the proximity sensor is less than the first preset threshold, it is determined that the mobile terminal is in a black pants scene, and the first preset threshold may be an experience value.
  • the first working threshold is a sum of a minimum measured value and a constant detected by the proximity sensor before the mobile terminal is turned off, and the constant is an empirical value obtained by a technician by multiple statistical analysis.
  • the mobile terminal determines the black pants scene, and sets the working threshold of the proximity sensor in the black pants scene to be small, thereby avoiding the bright screen of the display caused by accidentally touching the mobile terminal in the black pants scene, which is beneficial to reduce
  • the power consumption of the mobile terminal improves the rationality of the bright screen and the screen-out conversion of the mobile terminal.
  • the determining, according to the system state information, the scenario in which the mobile terminal is located includes:
  • the scenario in which the mobile terminal is located is determined to be a second scenario
  • Setting the working threshold of the proximity sensor to the target working threshold includes:
  • the working threshold for setting the proximity sensor is a second working threshold, and the second working threshold is a sum of a current measured value of the proximity sensor and a preset value.
  • the second scenario is a regular scenario under ambient light.
  • the second working threshold is used when the mobile terminal is converted from the first scene to the second scene, so that the measured value of the mobile terminal in the proximity sensor is smaller than the The second working threshold is in a bright state.
  • detecting that the measured value of the proximity sensor is greater than a first preset threshold indicates that the mobile terminal is converted from a black pants scene to a normal scene under ambient light.
  • the working threshold of the proximity sensor before the black pants scene needs to be restored, and the current measured value of the proximity sensor may be a measured value when the second scene is detected, where the preset value is Constant, can be 40 or 50, etc.
  • the determining, according to the system state information, the scenario in which the mobile terminal is located includes:
  • Setting the working threshold of the proximity sensor to the target working threshold includes:
  • the working threshold for setting the proximity sensor is a third working threshold, and the third working threshold is a maximum span value of the proximity sensor.
  • the third scenario is a startup scenario of the proximity sensor.
  • the change of the proximity sensor from the sleep state to the startup state may be that the mobile terminal is changed from the screen-off state to the call state, or the mobile terminal may be changed from the screen-off state to the bright-screen state, and the proximity.
  • the sensor is in a sleep state when the sensor is off and no touch operation is detected.
  • the third working threshold is a maximum span value of the proximity sensor, that is, an initial working threshold of the proximity sensor is set to a maximum value, and the working threshold of the proximity sensor is prevented from being small, and the mobile terminal is not illuminated after the mobile terminal is triggered.
  • the proximity sensor In the case of the screen, for example, the proximity sensor is in a sleep state when the mobile terminal is off, and when there is a call to wake up the proximity sensor, if the set proximity sensor has a small operating threshold, the user will have difficulty seeing the display.
  • the call information because the measured value of the proximity sensor when the user is close is greater than the working threshold, the operating threshold of the proximity sensor should first be set to the maximum value.
  • the method further includes:
  • the mobile terminal periodically updates the working threshold of the proximity sensor every preset period of time.
  • the plurality of measured values may be six measured values within a preset time period.
  • the measured value of the mobile terminal will be relatively large, affecting the accuracy of the screen off and the screen switching, then periodically detecting the measured value of the proximity sensor, according to the measurement The value corrects the operating threshold of the mobile terminal to avoid the impact on the proximity sensor operation in the case of a film.
  • the mobile terminal performs periodic update on the working threshold of the proximity sensor in the third scenario, avoiding that the working threshold of the proximity sensor is always at the maximum value, and the mobile terminal cannot be turned off, periodically.
  • Calibrating the operating threshold of the proximity sensor based on the average of the plurality of measured values is advantageous for improving the accuracy of the threshold setting of the mobile terminal.
  • the determining, according to the system state information, the scenario in which the mobile terminal is located includes:
  • Setting the working threshold of the proximity sensor to the target working threshold includes:
  • the working threshold of the proximity sensor is set to be a fourth working threshold, and the fourth working threshold is greater than a maximum measured value detected by the proximity sensor in the fourth scenario.
  • the fourth scenario is a non-ear call scenario in a bright screen state of the mobile terminal.
  • the preset posture information is horizontal posture information, that is, posture information of the mobile terminal when the angle with the horizontal plane is less than 45 degrees.
  • the fourth working threshold is used by the mobile terminal to detect an environment
  • the mobile terminal is smaller than the third preset threshold and the measured value of the proximity sensor is smaller than the fourth working threshold, the mobile terminal is in a bright screen state.
  • the mobile terminal since the mobile terminal is in a bright screen state and is in a non-earphone state, it may be explained that the mobile terminal is operated, and at this time, there may be a screen-out situation caused by a finger approaching the proximity sensor during the user operation, where It is not desirable for the mobile terminal to be turned off. Therefore, if the working threshold of the mobile terminal is set to be larger than the maximum measured value detected in the scene, the display may be prevented from being screened out.
  • the mobile terminal determines the fourth scenario by detecting the posture information, and sets the working threshold of the mobile terminal in the fourth scenario to be greater than the maximum measured value in the scenario, which is beneficial to avoid the screen being mistakenly displayed. It is beneficial to improve the intelligence of the threshold setting of the mobile terminal.
  • FIG. 2 is a schematic flowchart of another threshold setting method according to an embodiment of the present invention. As shown in the figure, the threshold setting method includes:
  • the mobile terminal detects system status information of the mobile terminal.
  • the first scene is a black pants scene.
  • the mobile terminal uses the first scenario as a query identifier to query a mapping relationship between a preset scenario and a proximity sensor working threshold, and determines that the working threshold of the proximity sensor corresponding to the first scenario is a first working threshold. .
  • the mobile terminal sets an operating threshold of the proximity sensor to a first working threshold.
  • the first working threshold is smaller than the minimum measured value detected by the proximity sensor in the first scenario, and the first working threshold is used by the mobile terminal to detect that the measured value of the proximity sensor is greater than
  • the mobile terminal is in a blackout state.
  • the mobile terminal determines that the scenario where the mobile terminal is located is the second scenario when the measured value of the proximity sensor is greater than the first preset threshold.
  • the second scenario is a regular scenario under ambient light.
  • the mobile terminal uses the second scenario as a query identifier to query a mapping relationship between a preset scenario and a proximity sensor working threshold, and determines the working of the proximity sensor corresponding to the second scenario.
  • the threshold is the second working threshold.
  • the mobile terminal sets an operating threshold of the proximity sensor to a second working threshold.
  • the second working threshold is a sum of a current measured value of the proximity sensor and a preset value.
  • the second working threshold is used when the mobile terminal is converted from the first scenario to the second scenario, when the measured value of the proximity sensor is less than the second working threshold. It is in bright state.
  • the mobile terminal first detects system state information of the mobile terminal; secondly, determines a scenario in which the mobile terminal is located according to the system state information; and then uses the scenario as a query identifier And determining a mapping relationship between the preset scenario and the proximity sensor working threshold, determining that the working threshold of the proximity sensor corresponding to the scenario is a target working threshold; and finally, setting a working threshold of the proximity sensor to the target working threshold.
  • the mobile terminal determines the scenario described by the mobile terminal according to the system state information, and sets different working thresholds of the proximity sensor according to different scenarios, instead of making the working threshold of the proximity sensor a fixed value, which is beneficial to improving the mobile terminal. Proximity and intelligence of sensor proximity threshold settings.
  • the mobile terminal determines the black pants scene, and sets the working threshold of the proximity sensor in the black pants scene to be small, thereby avoiding the bright screen of the display caused by the accidental touch of the mobile terminal in the black pants scene, which is beneficial to reducing the power of the mobile terminal. Consumption, improve the rationality of the bright screen and the screen-out conversion of the mobile terminal.
  • the mobile terminal detects the change from the black pants scene to the normal scene in the ambient light, the setting of the proximity sensor working threshold is restored, and the working threshold of the proximity sensor is prevented from being too small, so that the mobile terminal cannot be bright.
  • it is beneficial to improve the rationality of the proximity sensor working threshold setting of the mobile terminal.
  • FIG. 3 is a schematic flowchart of another threshold setting method according to an embodiment of the present invention. As shown in the figure, the threshold setting method includes:
  • the mobile terminal detects system status information of the mobile terminal.
  • the third scenario is a startup scenario of the proximity sensor.
  • the mobile terminal uses the third scenario as a query identifier to query a preset scenario and proximity. And determining a working threshold of the proximity sensor corresponding to the third scenario as a third working threshold.
  • the mobile terminal sets an operating threshold of the proximity sensor to a third working threshold, and the third working threshold is a maximum span value of the proximity sensor.
  • the mobile terminal acquires multiple measurement values of the proximity sensor in a preset time period.
  • the mobile terminal updates the third working threshold to an average of the plurality of measured values.
  • the mobile terminal first detects system state information of the mobile terminal; secondly, determines a scenario in which the mobile terminal is located according to the system state information; and then uses the scenario as a query identifier And determining a mapping relationship between the preset scenario and the proximity sensor working threshold, determining that the working threshold of the proximity sensor corresponding to the scenario is a target working threshold; and finally, setting a working threshold of the proximity sensor to the target working threshold.
  • the mobile terminal determines the scenario described by the mobile terminal according to the system state information, and sets different working thresholds of the proximity sensor according to different scenarios, instead of making the working threshold of the proximity sensor a fixed value, which is beneficial to improving the mobile terminal. Proximity and intelligence of sensor proximity threshold settings.
  • setting the working threshold of the proximity sensor to the maximum range value of the proximity sensor is beneficial to avoid the screen failure of the mobile terminal. It is beneficial to improve the intelligence of the threshold setting of the mobile terminal.
  • the mobile terminal performs periodic update on the working threshold of the proximity sensor in the third scenario, avoiding that the working threshold of the proximity sensor is always at the maximum value, and the mobile terminal cannot be turned off, periodically according to multiple
  • the average value of the measured values calibrates the operating threshold of the proximity sensor, which is beneficial to improve the accuracy of the threshold setting of the mobile terminal.
  • FIG. 4 is a schematic flowchart of another threshold setting method according to an embodiment of the present invention. As shown in the figure, the threshold setting method includes:
  • the mobile terminal detects system status information of the mobile terminal.
  • the mobile terminal determines, according to the system state information, posture information when the mobile terminal is in a bright screen state.
  • the mobile terminal determines that the scenario in which the mobile terminal is located is a fourth scenario when it is detected that the gesture information matches the preset posture information.
  • the fourth scenario is a non-ear call scenario in the case of a bright screen.
  • the mobile terminal uses the fourth scenario as a query identifier to query a mapping relationship between a preset scenario and a proximity sensor working threshold, and determines that the working threshold of the proximity sensor corresponding to the fourth scenario is a fourth working threshold. .
  • the mobile terminal sets an operating threshold of the proximity sensor to a fourth working threshold.
  • the fourth working threshold is greater than a maximum measured value detected by the proximity sensor in the fourth scenario.
  • the fourth working threshold is used when the mobile terminal detects that the environmental object is smaller than a third preset threshold and the measured value of the proximity sensor is smaller than the fourth working threshold.
  • the terminal is in bright state.
  • the mobile terminal first detects system state information of the mobile terminal; secondly, determines a scenario in which the mobile terminal is located according to the system state information; and then uses the scenario as a query identifier And determining a mapping relationship between the preset scenario and the proximity sensor working threshold, determining that the working threshold of the proximity sensor corresponding to the scenario is a target working threshold; and finally, setting a working threshold of the proximity sensor to the target working threshold.
  • the mobile terminal determines the scenario described by the mobile terminal according to the system state information, and sets different working thresholds of the proximity sensor according to different scenarios, instead of making the working threshold of the proximity sensor a fixed value, which is beneficial to improving the mobile terminal. Proximity and intelligence of sensor proximity threshold settings.
  • the mobile terminal determines the fourth scenario by detecting the posture information, and sets the working threshold of the mobile terminal in the fourth scenario to be greater than the maximum measured value in the scenario, which is beneficial to avoid the situation that the display screen is mistakenly turned off, and is beneficial to improve the movement.
  • the intelligence of the terminal threshold setting is beneficial to avoid the situation that the display screen is mistakenly turned off, and is beneficial to improve the movement.
  • FIG. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal includes a processor and a memory. And a communication interface and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, the program including instructions for performing the following steps;
  • Setting a working threshold of the proximity sensor is the target operating threshold.
  • the mobile terminal first detects system state information of the mobile terminal; secondly, determines a scenario in which the mobile terminal is located according to the system state information; and then uses the scenario as a query identifier And determining a mapping relationship between the preset scenario and the proximity sensor working threshold, determining that the working threshold of the proximity sensor corresponding to the scenario is a target working threshold; and finally, setting a working threshold of the proximity sensor to the target working threshold.
  • the mobile terminal determines the scenario described by the mobile terminal according to the system state information, and sets different working thresholds of the proximity sensor according to different scenarios, instead of making the working threshold of the proximity sensor a fixed value, which is beneficial to improving the mobile terminal. Proximity and intelligence of sensor proximity threshold settings.
  • the instructions in the program are specifically configured to perform the following steps: when detecting the system state information When the measured value of the proximity sensor is less than or equal to the first preset threshold, determining that the scenario in which the mobile terminal is located is the first scenario;
  • the instruction in the program is specifically configured to perform the following steps: setting a working threshold of the proximity sensor to a first working threshold, the first The working threshold is less than a minimum measured value detected by the proximity sensor in the first scenario.
  • the first working threshold is used by the mobile terminal to detect that the measured value of the proximity sensor is greater than the first working threshold and the number of touch operations for the touch display screen is greater than the second pre- When the threshold is set, the mobile terminal is placed in a blackout state.
  • the instructions in the program are specifically configured to perform the following steps: when detecting the system state information When the measured value of the proximity sensor is greater than the first preset threshold, determining that the scenario in which the mobile terminal is located is a second scenario;
  • the instruction in the program is specifically configured to perform the following steps: setting the working threshold of the proximity sensor to a second work As a threshold, the second working threshold is a sum of a current measured value of the proximity sensor and a preset value.
  • the second working threshold is used when the mobile terminal is converted from the first scene to the second scene, so that the measured value of the mobile terminal in the proximity sensor is smaller than the The second working threshold is in a bright state.
  • the instructions in the program are specifically configured to perform the following steps: when detecting the location according to the system state information When the proximity sensor is changed from the sleep state to the startup state, determining that the scene in which the mobile terminal is located is a third scenario;
  • the instruction in the program is specifically configured to perform the following steps: setting a working threshold of the proximity sensor to a third working threshold, the third The operating threshold is the maximum span value of the proximity sensor.
  • the program further includes instructions for performing the following steps: after setting the working threshold of the proximity sensor to a third working threshold, acquiring a plurality of measurements of the proximity sensor within a preset time period And a value for updating the third operational threshold to an average of the plurality of measurements.
  • the instructions in the program are specifically configured to perform the step of: determining the mobile according to the system state information The posture information when the terminal is in the bright screen state; and when it is detected that the posture information matches the preset posture information, determining that the scene in which the mobile terminal is located is the fourth scene;
  • the instruction in the program is specifically configured to perform the following steps: setting a working threshold of the proximity sensor to a fourth working threshold, the fourth The working threshold is greater than the maximum measured value detected by the proximity sensor in the fourth scenario.
  • the fourth working threshold is used when the mobile terminal detects that the environmental object is less than the third preset threshold and the measured value of the proximity sensor is less than the fourth working threshold. , the mobile terminal is in a bright screen state.
  • the mobile terminal includes corresponding hardware for executing each function.
  • Structure and / or software modules are arranged in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
  • the embodiment of the present invention may divide the functional unit into the mobile terminal according to the foregoing method example.
  • each functional unit may be divided according to each function, or two or more functions may be integrated into one processing unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present invention is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • FIG. 6 shows a block diagram of one possible functional unit composition of the mobile terminal involved in the embodiment.
  • the mobile terminal 600 includes a processing unit 602 and a communication unit 603.
  • the processing unit 602 is configured to perform control management on the action of the mobile terminal.
  • the processing unit 602 is configured to support the mobile terminal to perform steps S101-S104 in FIG. 1 , steps S201-S207 in FIG. 2, and step S301 in FIG. 3 S306, steps S401-S405 in FIG. 4 and/or other processes for the techniques described herein.
  • the communication unit 603 is configured to support communication between the mobile terminal and other devices, or support communication between the processing unit 602 and a built-in (such as a proximity sensor, etc.) of the mobile terminal, and the storage unit 601 is configured to store program codes and data of the mobile terminal. .
  • the processing unit 602 is configured to detect system state information of the mobile terminal by using the communication unit 603, and configured to determine a scenario in which the mobile terminal is located according to the system state information, and to use the scenario Determining, by the query identifier, a mapping relationship between the preset scenario and the proximity sensor working threshold, determining that the working threshold of the proximity sensor corresponding to the scenario is a target working threshold; and setting a working threshold for setting the proximity sensor to Target work threshold.
  • the processing unit 602 is specifically configured to: when detecting the proximity sensor in the system state information When the measured value is less than or equal to the first preset threshold, determining that the scenario in which the mobile terminal is located is the first scenario;
  • the processing unit 602 is specifically configured to: set a working threshold of the proximity sensor to a first working threshold, where the first working threshold is smaller than a value, where the working threshold of the proximity sensor is set to be the target working threshold. The minimum measured value detected by the proximity sensor in the first scenario.
  • the first working threshold is used by the mobile terminal to detect that the measured value of the proximity sensor is greater than the first working threshold and the number of touch operations for the touch display screen is greater than the second pre- When the threshold is set, the mobile terminal is placed in a blackout state.
  • the processing unit 602 is specifically configured to: when detecting the proximity sensor in the system state information When the measured value is greater than the first preset threshold, determining that the scenario in which the mobile terminal is located is a second scenario;
  • the processing unit 602 is specifically configured to: set a working threshold of the proximity sensor to a second working threshold, where the working threshold of the proximity sensor is the target working threshold, where the second working threshold is The sum of the current measured value of the proximity sensor and the preset value.
  • the second working threshold is used when the mobile terminal is converted from the first scene to the second scene, so that the measured value of the mobile terminal in the proximity sensor is smaller than the The second working threshold is in a bright state.
  • the processing unit 602 is specifically configured to: when detecting the scenario in which the mobile terminal is located according to the system state information, when detecting the proximity sensor according to the system state information When the sleep state is changed to the startup state, determining that the scenario in which the mobile terminal is located is a third scenario;
  • the processing unit 602 is specifically configured to: set a working threshold of the proximity sensor to a third working threshold, where the working threshold of the proximity sensor is the target working threshold, where the third working threshold is The maximum range value of the proximity sensor.
  • the processing unit 602 is further configured to: acquire, by the communication unit 603, multiple measurements of the proximity sensor within a preset time period. And a value for updating the third operational threshold to an average of the plurality of measurements.
  • the mobile terminal is determined according to the system status information
  • the processing unit 602 is specifically configured to: determine posture information when the mobile terminal is in a bright screen state according to the system state information; and to detect that the posture information matches the preset posture information when detecting Determining that the scenario in which the mobile terminal is located is a fourth scenario;
  • the processing unit 602 is specifically configured to: set a working threshold of the proximity sensor to a fourth working threshold, where the fourth working threshold is greater than a value, where the working threshold of the proximity sensor is set to be the target working threshold. The maximum measured value detected by the proximity sensor in the fourth scenario.
  • the fourth working threshold is used when the mobile terminal detects that the environmental object is less than the third preset threshold and the measured value of the proximity sensor is less than the fourth working threshold. , the mobile terminal is in a bright screen state.
  • the processing unit 602 can be a processor or a controller
  • the communication unit 603 can be a communication interface
  • the storage unit 601 can be a memory.
  • the embodiment of the present invention further provides another mobile terminal.
  • the mobile terminal can be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, and the mobile terminal is used as a mobile phone as an example:
  • FIG. 7 is a block diagram showing a partial structure of a mobile phone related to a mobile terminal provided by an embodiment of the present invention.
  • the mobile phone includes: a radio frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (WiFi) module 970, and a processor 980. And power supply 990 and other components.
  • RF radio frequency
  • the RF circuit 910 can be used for receiving and transmitting information.
  • RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • LNA Low Noise Amplifier
  • RF circuitry 910 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), general packet radio service (General Packet Radio Service, GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), etc.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Messaging Service
  • the memory 920 can be used to store software programs and modules, and the processor 980 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 920.
  • the memory 920 can mainly include a storage program area and an storage data area, wherein the storage program area can store an operating system, an application required for at least one function, and the like; the storage data area can store data created according to the use of the mobile phone (such as a preset). Threshold, etc.).
  • memory 920 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 930 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset.
  • the input unit 930 may include a fingerprint sensor 931 and other input devices 932.
  • the fingerprint sensor 931 can collect fingerprint data of the user.
  • the input unit 930 may also include other input devices 932.
  • the other input device 932 may include, but is not limited to, one or more of a touch screen, a physical button, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, a joystick, and the like.
  • the display unit 940 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
  • the display unit 940 can include a display screen 941.
  • the display screen 941 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the fingerprint sensor 931 and the display screen 941 function as two separate components to implement the input and input functions of the mobile phone, in some embodiments, the fingerprint sensor 931 can be integrated with the display screen 941 to implement the mobile phone. Input and playback features.
  • the handset may also include at least one type of sensor 950, 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 screen 941 according to the brightness of the ambient light, and the proximity sensor may turn off the display screen 941 and/or when the mobile phone moves to the ear. Or backlight.
  • Accelerometer as a type of motion sensor The sensor can detect the acceleration of each direction (usually three axes). When it is still, it can detect the magnitude and direction of gravity.
  • An audio circuit 960, a speaker 961, and a microphone 962 can provide an audio interface between the user and the handset.
  • the audio circuit 960 can transmit the converted electrical data of the received audio data to the speaker 961 for conversion to the sound signal by the speaker 961; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal by the audio circuit 960. After receiving, it is converted into audio data, and then processed by the audio data playback processor 980, sent to the other mobile phone via the RF circuit 910, or played back to the memory 920 for further processing.
  • WiFi is a short-range wireless transmission technology
  • the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 970, which provides users with wireless broadband Internet access.
  • FIG. 7 shows the WiFi module 970, it can be understood that it does not belong to the essential configuration of the mobile phone, and can be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 980 is the control center of the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 920, and invoking data stored in the memory 920, executing The phone's various functions and processing data, so that the overall monitoring of the phone.
  • the processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 980.
  • the handset also includes a power source 990 (such as a battery) that supplies power to the various components.
  • a power source 990 such as a battery
  • the power source can be logically coupled to the processor 980 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • each step method flow can be implemented based on the structure of the mobile phone.
  • each unit function can be implemented based on the structure of the mobile phone.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, the computer program causing the computer to perform some or all of the steps of any of the methods described in the foregoing method embodiments.
  • the computer includes a mobile terminal.
  • Embodiments of the present invention also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform the operations as recited in the above method embodiments Part or all of the steps of either method.
  • the computer program product can be a software installation package, the computer comprising a mobile terminal.
  • the disclosed apparatus may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. in.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a memory. A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing memory includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.
  • ROM Read-Only Memory
  • RAM Random Access Memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明实施例公开了阈值设置方法及相关产品,包括:检测移动终端的系统状态信息;根据所述系统状态信息确定所述移动终端所处的场景;以所述场景为查询标识,查询预设的场景与接近传感器工作阈值的映射关系,确定所述场景对应的所述接近传感器的工作阈值为目标工作阈值;设置所述接近传感器的工作阈值为所述目标工作阈值。本发明实施例有利于提升移动终端接近传感器工作阈值设置的准确性和智能性。

Description

阈值设置方法及相关产品 技术领域
本发明涉及通信技术领域,尤其涉及一种阈值设置方法及相关产品。
背景技术
随着智能手机的快速发展,手机已经成为人们手中不可或缺的产品之一,为了方便用户的使用,手机的各种智能性设置层出不穷,各种各样的传感器应用在手机的不同方面,例如接近传感器,光感传感器等。
目前,接近传感器可根据物体的红外光反射值,检测物体与移动终端的距离,从而控制移动终端的亮屏与熄屏之间的转换,例如,当通过人耳打电话时,检测到物体距离移动终端较近,则关闭显示屏以及背光,使降低电量消耗的同时避免显示屏亮屏时的人耳误触操作等,但是红外光反射值会被外界条件干扰,使移动终端出现不必要的亮屏与熄屏的转换。
发明内容
本发明实施例提供了一种阈值设置方法及相关产品,以期提升移动终端接近传感器工作阈值设置的准确性和智能性。
第一方面,本发明实施例提供了一种阈值设置方法,所述方法包括:
检测移动终端的系统状态信息;
根据所述系统状态信息确定所述移动终端所处的场景;
以所述场景为查询标识,查询预设的场景与接近传感器工作阈值的映射关系,确定所述场景对应的所述接近传感器的工作阈值为目标工作阈值;
设置所述接近传感器的工作阈值为所述目标工作阈值。
第二方面,本发明实施例提供了一种移动终端,该移动终端具有实现上述方法设计中移动终端的行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与所述功能相对应 的模块。
第三方面,本发明实施例提供了一种移动终端,包括:处理器,存储器,以及一个或多个程序;所述一个或多个程序被存储在上述存储器中,并且被配置成由所述处理器执行,所述程序包括用于执行本发明实施例第一方面任一方法中所描述的步骤的指令。
第四方面,本发明实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质存储有用于电子数据交换的计算机程序,该计算机程序具体包括指令,所述指令用于执行如本发明实施例第一方面任一方法中所描述的部分或全部步骤,上述计算机包括移动终端。
第五方面,本发明实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本发明实施例第一方面任一方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包,所述计算机包括移动终端。
可以看出,本发明实施例中,移动终端首先检测所述移动终端的系统状态信息;其次,根据所述系统状态信息确定所述移动终端所处的场景;然后,以所述场景为查询标识,查询预设的场景与接近传感器工作阈值的映射关系,确定所述场景对应的所述接近传感器的工作阈值为目标工作阈值;最后,设置所述接近传感器的工作阈值为所述目标工作阈值。可见,移动终端根据系统状态信息确定移动终端所述的场景,根据不同的场景设置所述接近传感器不同的工作阈值,而不是使接近传感器的工作阈值为一个固定的值,有利于提升了移动终端接近传感器工作阈值设置的准确性和智能性。
附图说明
下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍.
图1是本发明实施例公开的一种阈值设置方法的流程示意图;
图2是本发明实施例公开的另一种阈值设置方法的流程示意图;
图3是本发明实施例公开的另一种阈值设置方法的流程示意图;
图4是本发明实施例公开的另一种阈值设置方法的流程示意图;
图5是本发明实施例公开的一种移动终端的结构示意图;
图6是本发明实施例公开的一种移动终端的功能单元组成框图;
图7是本发明实施例公开的另一种移动终端的结构示意图。
具体实施方式
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
本发明实施例所涉及到的移动终端可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为移动终端。下面对本发明实施例进行详细介绍。
请参阅图1,图1是本发明实施例提供了一种阈值设置方法的流程示意图, 如图所示,本阈值设置方法包括:
S101,移动终端检测所述移动终端的系统状态信息;
其中,所述移动终端内置重力传感器,接近传感器等传感器,所述系统状态信息包括所述重力传感器检测的移动终端的姿态信息,所述接近传感器检测的测量值,所述姿态信息包括所述移动终端与水平面的夹角,取值范围是0-90度。
其中,所述接近传感器包括两个部分,第一部分为发射端,即为LED灯发射红外光,第二部分为接收端,接收红外光,接收端根据红外光强值确定接近传感器的测量值。红外光强的量程根据接近传感器内部器件的不同,分别可以为256、1024、4096,例如,当接近传感器内部的集成电路为10位的器件时,若无物体遮挡,则测量值为50,若脸部全部贴近器件,则红外线全部反射到接收端,满量程为1024,即测量值为1024。
S102,所述移动终端根据所述系统状态信息确定所述移动终端所处的场景;
其中,所述移动终端所处的场景包括第一场景,第二场景,第三场景,第四场景,所述第一场景为黑裤子场景,所述第二场景为处于环境光下的常规场景,所述第三场景为所述接近传感器的启动场景,所述第四场景为亮屏状态下的非耳朵通话场景。
S103,所述移动终端以所述场景为查询标识,查询预设的场景与接近传感器工作阈值的映射关系,确定所述场景对应的所述接近传感器的工作阈值为目标工作阈值;
其中,通过所述预设的场景与接近传感器工作阈值的映射关系可以得到所述场景对应的目标工作阈值,也可以得到所述场景对应的目标工作阈值的设置策略,在此不做唯一限定。
其中,所述预设的场景与接近传感器工作阈值的映射关系可以是开发人员在移动终端出厂前预设置,也可以是移动终端通过智能学习用户习惯,根据用户的历史使用数据确定场景与接近传感器的工作阈值之间的映射关系,建立并预存在所述移动终端中,在此不作限定。
其中,所述接近传感器的工作阈值为触发所述移动终端在熄屏状态和亮屏 状态之间切换的阈值,当所述接近传感器的测量值大于所述工作阈值时,所述移动终端设置熄屏状态,当所述接近传感器的测量值小于所述工作阈值时,所述移动终端设置亮屏状态。
S104,所述移动终端设置所述接近传感器的工作阈值为所述目标工作阈值。
可以看出,本发明实施例中,移动终端首先检测所述移动终端的系统状态信息;其次,根据所述系统状态信息确定所述移动终端所处的场景;然后,以所述场景为查询标识,查询预设的场景与接近传感器工作阈值的映射关系,确定所述场景对应的所述接近传感器的工作阈值为目标工作阈值;最后,设置所述接近传感器的工作阈值为所述目标工作阈值。可见,移动终端根据系统状态信息确定移动终端所述的场景,根据不同的场景设置所述接近传感器不同的工作阈值,而不是使接近传感器的工作阈值为一个固定的值,有利于提升了移动终端接近传感器工作阈值设置的准确性和智能性。
在一个可能的示例中,所述根据所述系统状态信息确定所述移动终端所处的场景,包括:
当检测到所述系统状态信息中所述接近传感器的测量值小于或等于第一预设阈值时,确定所述移动终端所处的场景为第一场景;
所述设置所述接近传感器的工作阈值为所述目标工作阈值,包括:
设置所述接近传感器的工作阈值为第一工作阈值,所述第一工作阈值小于所述接近传感器在所述第一场景下检测到的最小测量值。
其中,所述第一场景为黑裤子场景,所述黑裤子场景可以理解为所述移动终端放置在黑色裤子口袋里的场景。
其中,所述接近传感器的测量值为有物体接近时的测量值。
在这个可能的示例中,所述第一工作阈值用于所述移动终端检测到所述接近传感器的测量值大于所述第一工作阈值且针对触控显示屏的触控操作次数大于第二预设阈值时,使所述移动终端处于熄屏状态。
其中,由于所述黑裤子场景中的黑裤子对红外线的反射量比较小,会影响接近传感器的测量值,致使接近传感器的测量值比较小,当所述移动终端的触控显示屏识别到皮肤时,接近传感器启动,且接近传感器由于黑裤子使测量值 小于接近传感器的工作阈值,此时,接近传感器会上报远离事件,当触碰显示屏超过设定次数时,所述移动终端会亮屏提醒用户,而该亮屏为不必要的亮屏,如果想要移动终端不亮屏,则需要将所述接近传感器的工作阈值设置较小,小于所述黑裤子场景检测到的最小测量值,那么测量值就会大于所述工作阈值,那么移动终端在黑裤子场景中就会始终处于熄屏状态。
其中,第一预设阈值为移动终端区分处于环境光下的常规场景和处于黑裤子场景的阈值,由于所述黑裤子场景中的黑裤子对红外线的反射量比较小,当有物体接近时所述接近传感器的测量值小于该第一预设阈值时,则确定所述移动终端处于黑裤子场景,该第一预设阈值可以为经验值。
其中,所述第一工作阈值为所述移动终端熄屏前所述接近传感器检测到的最小测量值与常数的和,所述常数为技术人员通过多次记录统计分析得到的经验值。
可见,本示例中,移动终端确定黑裤子场景,设定黑裤子场景下接近传感器的工作阈值较小,避免了在黑裤子场景时由于误触移动终端导致的显示屏亮屏情况,有利于降低移动终端的电量消耗,提升移动终端的亮屏与熄屏转换的合理性。
在一个可能的示例中,所述根据所述系统状态信息确定所述移动终端所处的场景,包括:
当检测到所述系统状态信息中所述接近传感器的测量值大于所述第一预设阈值时,确定所述移动终端所处的场景为第二场景;
所述设置所述接近传感器的工作阈值为所述目标工作阈值,包括:
设置所述接近传感器的工作阈值为第二工作阈值,所述第二工作阈值为所述接近传感器当前的测量值与预设值的和。
其中,所述第二场景为处于环境光下的常规场景。
在这个可能的示例中,所述第二工作阈值用于所述移动终端由所述第一场景转换为所述第二场景时,使所述移动终端在所述接近传感器的测量值小于所述第二工作阈值时处于亮屏状态。
其中,当有物体靠近时,检测到所述接近传感器的测量值大于第一预设阈 值时,说明所述移动终端由黑裤子场景转换为环境光下的常规场景。
其中,当为第二场景时,需要恢复所述黑裤子场景之前的接近传感器的工作阈值,所述接近传感器当前的测量值可以为检测出第二场景时的测量值,所述预设值为常数,可以为40或者50等。
可见,本示例中,移动终端当检测到由黑裤子场景转换为环境光下的常规场景时,恢复所述接近传感器工作阈值的设置,避免了接近传感器的工作阈值过小,导致所述移动终端无法亮屏的情况,有利于提升移动终端的接近传感器工作阈值设置的合理性。
在一个可能的示例中,所述根据所述系统状态信息确定所述移动终端所处的场景,包括:
当根据所述系统状态信息检测到所述接近传感器由休眠状态变更为启动状态时,确定所述移动终端所处的场景为第三场景;
所述设置所述接近传感器的工作阈值为所述目标工作阈值,包括:
设置所述接近传感器的工作阈值为第三工作阈值,所述第三工作阈值为所述接近传感器的最大量程值。
其中,所述第三场景为所述接近传感器的启动场景。
其中,所述接近传感器由休眠状态变更为启动状态可以为所述移动终端由熄屏状态变更为通话状态,或者可以为所述移动终端由熄屏状态变更为亮屏状态等情况,所述接近传感器在熄屏状态且没有检测到触控操作时处于休眠状态。
其中,所述第三工作阈值为所述接近传感器的最大量程值,即将所述接近传感器的初始工作阈值设置为最大值,避免所述接近传感器的工作阈值较小在触发了移动终端后无法亮屏的情况,例如,在移动终端熄屏情况下接近传感器处于休眠状态,当有通话进入唤醒所述接近传感器后,如果设置的接近传感器的工作阈值较小,那么用户将很难看到显示屏上的通话信息,因为用户靠近时接近传感器的测量值大于了工作阈值,所以应该首先将所述接近传感器的工作阈值设置为最大值。
可见,本示例中,移动终端在检测到所述接近传感器的由休眠状态变更为启动状态时,设置所述接近传感器的工作阈值为所述接近传感器的最大量程值, 有利于避免移动终端的误熄屏情况,有利于提升移动终端阈值设置的智能性。
在这个可能的示例中,所述设置所述接近传感器的工作阈值为第三工作阈值之后,所述方法还包括:
获取预设时段内所述接近传感器的多个测量值;
将所述第三工作阈值更新为所述多个测量值的平均值。
其中,在第三场景下,所述移动终端每间隔预设时段周期性更新所述接近传感器的工作阈值。
其中,所述多个测量值可以为预设时段内的6个测量值。
其中,如果移动终端会存在贴膜的情况,在贴膜情况下,移动终端的测量值会比较大,影响显示屏熄屏与亮屏切换的准确性,那么周期性检测接近传感器的测量值,根据测量值校正移动终端的工作阈值,可以避免贴膜情况下对接近传感器工作的影响。
可见,本示例中,移动终端在第三场景下对所述接近传感器的工作阈值实现周期性更新,避免了接近传感器的工作阈值一直在最大值,所述移动终端无法熄屏的情况,周期性的根据多个测量值的平均值校准接近传感器的工作阈值,有利于提升移动终端阈值设置的准确性。
在一个可能的示例中,所述根据所述系统状态信息确定所述移动终端所处的场景,包括:
根据所述系统状态信息确定所述移动终端处于亮屏状态时的姿态信息;
当检测到所述姿态信息与预设姿态信息匹配时,确定所述移动终端所处的场景为第四场景;
所述设置所述接近传感器的工作阈值为所述目标工作阈值,包括:
设置所述接近传感器的工作阈值为第四工作阈值,所述第四工作阈值大于所述接近传感器在所述第四场景下检测到的最大测量值。
其中,所述第四场景为移动终端亮屏状态下的非耳朵通话场景。
其中,所述预设姿态信息为水平姿态信息,即与水平面的夹角小于45度时移动终端的姿态信息。
在这个可能的示例中,所述第四工作阈值用于所述移动终端检测到环境物 体距离所述移动终端小于第三预设阈值且所述接近传感器的测量值小于所述第四工作阈值时,使所述移动终端处于亮屏状态。
其中,由于移动终端处于亮屏状态,且非耳朵通话状态,则可以说明在操作所述移动终端,且此时会存在由于用户操作过程中手指误靠近接近传感器而导致的熄屏情况,在此并不希望移动终端熄屏,因此,设置移动终端的工作阈值大于该种场景下检测到的最大测量值,则可以避免显示屏误熄屏的情况。
可见,本示例中,移动终端通过检测姿态信息确定第四场景,并将第四场景下移动终端的工作阈值设置为大于该场景下的最大测量值,有利于避免显示屏误熄屏的情况,有利于提升移动终端阈值设置的智能性。
与所述图1所示的实施例一致的,请参阅图2,图2是本发明实施例提供的另一种阈值设置方法的流程示意图,如图所示,本阈值设置方法包括:
S201,移动终端检测所述移动终端的系统状态信息。
S202,所述移动终端当检测到所述系统状态信息中接近传感器的测量值小于或等于第一预设阈值时,确定所述移动终端所处的场景为第一场景。
其中,所述第一场景为黑裤子场景。
S203,所述移动终端以所述第一场景为查询标识,查询预设的场景与接近传感器工作阈值的映射关系,确定所述第一场景对应的所述接近传感器的工作阈值为第一工作阈值。
S204,所述移动终端设置所述接近传感器的工作阈值为第一工作阈值。
其中,所述第一工作阈值小于所述接近传感器在所述第一场景下检测到的最小测量值,所述第一工作阈值用于所述移动终端检测到所述接近传感器的测量值大于所述第一工作阈值且针对触控显示屏的触控操作次数大于第二预设阈值时,使所述移动终端处于熄屏状态。
S205,所述移动终端当检测到所述系统状态信息中所述接近传感器的测量值大于所述第一预设阈值时,确定所述移动终端所处的场景为第二场景。
其中,所述第二场景为处于环境光下的常规场景。
S206,所述移动终端以所述第二场景为查询标识,查询预设的场景与接近传感器工作阈值的映射关系,确定所述第二场景对应的所述接近传感器的工作 阈值为第二工作阈值。
S207,所述移动终端设置所述接近传感器的工作阈值为第二工作阈值。
其中,所述第二工作阈值为所述接近传感器当前的测量值与预设值的和。
其中,所述第二工作阈值用于所述移动终端由所述第一场景转换为所述第二场景时,使所述移动终端在所述接近传感器的测量值小于所述第二工作阈值时处于亮屏状态。
可以看出,本发明实施例中,移动终端首先检测所述移动终端的系统状态信息;其次,根据所述系统状态信息确定所述移动终端所处的场景;然后,以所述场景为查询标识,查询预设的场景与接近传感器工作阈值的映射关系,确定所述场景对应的所述接近传感器的工作阈值为目标工作阈值;最后,设置所述接近传感器的工作阈值为所述目标工作阈值。可见,移动终端根据系统状态信息确定移动终端所述的场景,根据不同的场景设置所述接近传感器不同的工作阈值,而不是使接近传感器的工作阈值为一个固定的值,有利于提升了移动终端接近传感器工作阈值设置的准确性和智能性。
此外,移动终端确定黑裤子场景,设定黑裤子场景下接近传感器的工作阈值较小,避免了在黑裤子场景时由于误触移动终端导致的显示屏亮屏情况,有利于降低移动终端的电量消耗,提升移动终端的亮屏与熄屏转换的合理性。
此外,移动终端当检测到由黑裤子场景转换为环境光下的常规场景时,恢复所述接近传感器工作阈值的设置,避免了接近传感器的工作阈值过小,导致所述移动终端无法亮屏的情况,有利于提升移动终端的接近传感器工作阈值设置的合理性。
与所述图1所示的实施例一致的,请参阅图3,图3是本发明实施例提供的另一种阈值设置方法的流程示意图,如图所示,本阈值设置方法包括:
S301,移动终端检测所述移动终端的系统状态信息;
S302,所述移动终端当根据所述系统状态信息检测到接近传感器由休眠状态变更为启动状态时,确定所述移动终端所处的场景为第三场景;
其中,所述第三场景为接近传感器的启动场景。
S303,所述移动终端以所述第三场景为查询标识,查询预设的场景与接近 传感器工作阈值的映射关系,确定所述第三场景对应的所述接近传感器的工作阈值为第三工作阈值。
S304,所述移动终端设置所述接近传感器的工作阈值为第三工作阈值,所述第三工作阈值为所述接近传感器的最大量程值。
S305,所述移动终端获取预设时段内所述接近传感器的多个测量值。
S306,所述移动终端将所述第三工作阈值更新为所述多个测量值的平均值。
可以看出,本发明实施例中,移动终端首先检测所述移动终端的系统状态信息;其次,根据所述系统状态信息确定所述移动终端所处的场景;然后,以所述场景为查询标识,查询预设的场景与接近传感器工作阈值的映射关系,确定所述场景对应的所述接近传感器的工作阈值为目标工作阈值;最后,设置所述接近传感器的工作阈值为所述目标工作阈值。可见,移动终端根据系统状态信息确定移动终端所述的场景,根据不同的场景设置所述接近传感器不同的工作阈值,而不是使接近传感器的工作阈值为一个固定的值,有利于提升了移动终端接近传感器工作阈值设置的准确性和智能性。
此外,移动终端在检测到所述接近传感器的由休眠状态变更为启动状态时,设置所述接近传感器的工作阈值为所述接近传感器的最大量程值,有利于避免移动终端的误熄屏情况,有利于提升移动终端阈值设置的智能性。
此外,移动终端在第三场景下对所述接近传感器的工作阈值实现周期性更新,避免了接近传感器的工作阈值一直在最大值,所述移动终端无法熄屏的情况,周期性的根据多个测量值的平均值校准接近传感器的工作阈值,有利于提升移动终端阈值设置的准确性。
与所述图1所示的实施例一致的,请参阅图4,图4是本发明实施例提供的另一种阈值设置方法的流程示意图,如图所示,本阈值设置方法包括:
S401,移动终端检测所述移动终端的系统状态信息。
S402,所述移动终端根据所述系统状态信息确定所述移动终端处于亮屏状态时的姿态信息。
S403,所述移动终端当检测到所述姿态信息与预设姿态信息匹配时,确定所述移动终端所处的场景为第四场景。
其中,所述第四场景为亮屏情况下的非耳朵通话场景。
S404,所述移动终端以所述第四场景为查询标识,查询预设的场景与接近传感器工作阈值的映射关系,确定所述第四场景对应的所述接近传感器的工作阈值为第四工作阈值。
S405,所述移动终端设置所述接近传感器的工作阈值为第四工作阈值。
其中,所述第四工作阈值大于所述接近传感器在所述第四场景下检测到的最大测量值。
其中,所述第四工作阈值用于所述移动终端检测到环境物体距离所述移动终端小于第三预设阈值且所述接近传感器的测量值小于所述第四工作阈值时,使所述移动终端处于亮屏状态。
可以看出,本发明实施例中,移动终端首先检测所述移动终端的系统状态信息;其次,根据所述系统状态信息确定所述移动终端所处的场景;然后,以所述场景为查询标识,查询预设的场景与接近传感器工作阈值的映射关系,确定所述场景对应的所述接近传感器的工作阈值为目标工作阈值;最后,设置所述接近传感器的工作阈值为所述目标工作阈值。可见,移动终端根据系统状态信息确定移动终端所述的场景,根据不同的场景设置所述接近传感器不同的工作阈值,而不是使接近传感器的工作阈值为一个固定的值,有利于提升了移动终端接近传感器工作阈值设置的准确性和智能性。
此外,移动终端通过检测姿态信息确定第四场景,并将第四场景下移动终端的工作阈值设置为大于该场景下的最大测量值,有利于避免显示屏误熄屏的情况,有利于提升移动终端阈值设置的智能性。
与上述图1-图4所示的实施例一致的,请参阅图5,图5是本发明实施例提供的一种移动终端的结构示意图,如图所示,该移动终端包括处理器、存储器、通信接口以及一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行以下步骤的指令;
检测移动终端的系统状态信息;
根据所述系统状态信息确定所述移动终端所处的场景;
以所述场景为查询标识,查询预设的场景与接近传感器工作阈值的映射关系,确定所述场景对应的所述接近传感器的工作阈值为目标工作阈值;
设置所述接近传感器的工作阈值为所述目标工作阈值。
可以看出,本发明实施例中,移动终端首先检测所述移动终端的系统状态信息;其次,根据所述系统状态信息确定所述移动终端所处的场景;然后,以所述场景为查询标识,查询预设的场景与接近传感器工作阈值的映射关系,确定所述场景对应的所述接近传感器的工作阈值为目标工作阈值;最后,设置所述接近传感器的工作阈值为所述目标工作阈值。可见,移动终端根据系统状态信息确定移动终端所述的场景,根据不同的场景设置所述接近传感器不同的工作阈值,而不是使接近传感器的工作阈值为一个固定的值,有利于提升了移动终端接近传感器工作阈值设置的准确性和智能性。
在一个可能的示例中,在所述根据所述系统状态信息确定所述移动终端所处的场景方面,所述程序中的指令具体用于执行以下步骤:当检测到所述系统状态信息中所述接近传感器的测量值小于或等于第一预设阈值时,确定所述移动终端所处的场景为第一场景;
在所述设置所述接近传感器的工作阈值为所述目标工作阈值方面,所述程序中的指令具体用于执行以下步骤:设置所述接近传感器的工作阈值为第一工作阈值,所述第一工作阈值小于所述接近传感器在所述第一场景下检测到的最小测量值。
在这个可能的示例中,所述第一工作阈值用于所述移动终端检测到所述接近传感器的测量值大于所述第一工作阈值且针对触控显示屏的触控操作次数大于第二预设阈值时,使所述移动终端处于熄屏状态。
在一个可能的示例中,在所述根据所述系统状态信息确定所述移动终端所处的场景方面,所述程序中的指令具体用于执行以下步骤:当检测到所述系统状态信息中所述接近传感器的测量值大于所述第一预设阈值时,确定所述移动终端所处的场景为第二场景;
在所述设置所述接近传感器的工作阈值为所述目标工作阈值方面,所述程序中的指令具体用于执行以下步骤:设置所述接近传感器的工作阈值为第二工 作阈值,所述第二工作阈值为所述接近传感器当前的测量值与预设值的和。
在这个可能的示例中,所述第二工作阈值用于所述移动终端由所述第一场景转换为所述第二场景时,使所述移动终端在所述接近传感器的测量值小于所述第二工作阈值时处于亮屏状态。
在一个可能的示例中,在所述根据所述系统状态信息确定所述移动终端所处的场景方面,所述程序中的指令具体用于执行以下步骤:当根据所述系统状态信息检测到所述接近传感器由休眠状态变更为启动状态时,确定所述移动终端所处的场景为第三场景;
在所述设置所述接近传感器的工作阈值为所述目标工作阈值方面,所述程序中的指令具体用于执行以下步骤:设置所述接近传感器的工作阈值为第三工作阈值,所述第三工作阈值为所述接近传感器的最大量程值。
在这个可能的示例中,所述程序还包括用于执行以下步骤的指令:所述设置所述接近传感器的工作阈值为第三工作阈值之后,获取预设时段内所述接近传感器的多个测量值;以及用于将所述第三工作阈值更新为所述多个测量值的平均值。
在一个可能的示例中,在所述根据所述系统状态信息确定所述移动终端所处的场景方面,所述程序中的指令具体用于执行以下步骤:根据所述系统状态信息确定所述移动终端处于亮屏状态时的姿态信息;以及用于当检测到所述姿态信息与预设姿态信息匹配时,确定所述移动终端所处的场景为第四场景;
在所述设置所述接近传感器的工作阈值为所述目标工作阈值方面,所述程序中的指令具体用于执行以下步骤:设置所述接近传感器的工作阈值为第四工作阈值,所述第四工作阈值大于所述接近传感器在所述第四场景下检测到的最大测量值。
在这个可能的示例中,所述第四工作阈值用于所述移动终端检测到环境物体距离所述移动终端小于第三预设阈值且所述接近传感器的测量值小于所述第四工作阈值时,使所述移动终端处于亮屏状态。
上述主要从方法侧执行过程的角度对本发明实施例的方案进行了介绍。可以理解的是,移动终端为了实现上述功能,其包含了执行各个功能相应的硬件 结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本发明能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
本发明实施例可以根据上述方法示例对移动终端进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本发明实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用集成的单元的情况下,图6示出了所述实施例中所涉及的移动终端的一种可能的功能单元组成框图。移动终端600包括:处理单元602和通信单元603。处理单元602用于对移动终端的动作进行控制管理,例如,处理单元602用于支持移动终端执行图1中的步骤S101-S104、图2中的步骤S201-S207、图3中的步骤S301-S306、图4中的步骤S401-S405和/或用于本文所描述的技术的其它过程。通信单元603用于支持移动终端与其他设备的通信,或者支持处理单元602与移动终端的内设(如接近传感器等)之间的通信,存储单元601,用于存储移动终端的程序代码和数据。
其中,所述处理单元602,用于通过所述通信单元603检测移动终端的系统状态信息;以及用于根据所述系统状态信息确定所述移动终端所处的场景;以及用于以所述场景为查询标识,查询预设的场景与接近传感器工作阈值的映射关系,确定所述场景对应的所述接近传感器的工作阈值为目标工作阈值;以及用于设置所述接近传感器的工作阈值为所述目标工作阈值。
在一个可能的示例中,在所述根据所述系统状态信息确定所述移动终端所处的场景方面,所述处理单元602具体用于:当检测到所述系统状态信息中所述接近传感器的测量值小于或等于第一预设阈值时,确定所述移动终端所处的场景为第一场景;
在所述设置所述接近传感器的工作阈值为所述目标工作阈值方面,所述处理单元602具体用于:设置所述接近传感器的工作阈值为第一工作阈值,所述第一工作阈值小于所述接近传感器在所述第一场景下检测到的最小测量值。
在这个可能的示例中,所述第一工作阈值用于所述移动终端检测到所述接近传感器的测量值大于所述第一工作阈值且针对触控显示屏的触控操作次数大于第二预设阈值时,使所述移动终端处于熄屏状态。
在一个可能的示例中,在所述根据所述系统状态信息确定所述移动终端所处的场景方面,所述处理单元602具体用于:当检测到所述系统状态信息中所述接近传感器的测量值大于所述第一预设阈值时,确定所述移动终端所处的场景为第二场景;
在所述设置所述接近传感器的工作阈值为所述目标工作阈值方面,所述处理单元602具体用于:设置所述接近传感器的工作阈值为第二工作阈值,所述第二工作阈值为所述接近传感器当前的测量值与预设值的和。
在这个可能的示例中,所述第二工作阈值用于所述移动终端由所述第一场景转换为所述第二场景时,使所述移动终端在所述接近传感器的测量值小于所述第二工作阈值时处于亮屏状态。
在一个可能的示例中,在所述根据所述系统状态信息确定所述移动终端所处的场景方面,所述处理单元602具体用于:当根据所述系统状态信息检测到所述接近传感器由休眠状态变更为启动状态时,确定所述移动终端所处的场景为第三场景;
在所述设置所述接近传感器的工作阈值为所述目标工作阈值方面,所述处理单元602具体用于:设置所述接近传感器的工作阈值为第三工作阈值,所述第三工作阈值为所述接近传感器的最大量程值。
在这个可能的示例中,所述处理单元602设置所述接近传感器的工作阈值为第三工作阈值之后,还用于:通过所述通信单元603获取预设时段内所述接近传感器的多个测量值;以及用于将所述第三工作阈值更新为所述多个测量值的平均值。
在一个可能的示例中,在所述根据所述系统状态信息确定所述移动终端所 处的场景方面,所述处理单元602具体用于:根据所述系统状态信息确定所述移动终端处于亮屏状态时的姿态信息;以及用于当检测到所述姿态信息与预设姿态信息匹配时,确定所述移动终端所处的场景为第四场景;
在所述设置所述接近传感器的工作阈值为所述目标工作阈值方面,所述处理单元602具体用于:设置所述接近传感器的工作阈值为第四工作阈值,所述第四工作阈值大于所述接近传感器在所述第四场景下检测到的最大测量值。
在这个可能的示例中,所述第四工作阈值用于所述移动终端检测到环境物体距离所述移动终端小于第三预设阈值且所述接近传感器的测量值小于所述第四工作阈值时,使所述移动终端处于亮屏状态。
其中,处理单元602可以是处理器或控制器,通信单元603可以是通信接口,存储单元601可以是存储器。
本发明实施例还提供了另一种移动终端,如图7所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该移动终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以移动终端为手机为例:
图7示出的是与本发明实施例提供的移动终端相关的手机的部分结构的框图。参考图7,手机包括:射频(Radio Frequency,RF)电路910、存储器920、输入单元930、显示单元940、传感器950、音频电路960、无线保真(Wireless Fidelity,WiFi)模块970、处理器980、以及电源990等部件。本领域技术人员可以理解,图7中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
下面结合图7对手机的各个构成部件进行具体的介绍:
RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务 (General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。
存储器920可用于存储软件程序以及模块,处理器980通过运行存储在存储器920的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器920可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据手机的使用所创建的数据(比如预设阈值等)等。此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元930可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括指纹传感器931以及其他输入设备932。指纹传感器931,可采集用户在其上的指纹数据。除了指纹传感器931,输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于触控屏、物理按键、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元940可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元940可包括显示屏941,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示屏941。虽然在图7中,指纹传感器931与显示屏941是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将指纹传感器931与显示屏941集成而实现手机的输入和播放功能。
手机还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏941的亮度,接近传感器可在手机移动到耳边时,关闭显示屏941和/或背光。作为运动传感器的一种,加速计 传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号播放;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据播放处理器980处理后,经RF电路910以发送给比如另一手机,或者将音频数据播放至存储器920以便进一步处理。
WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图7示出了WiFi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器980可包括一个或多个处理单元;优选的,处理器980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器980中。
手机还包括给各个部件供电的电源990(比如电池),优选的,电源可以通过电源管理系统与处理器980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。
前述图1~图4所示的实施例中,各步骤方法流程可以基于该手机的结构实现。
前述图6所示的实施例中,各单元功能可以基于该手机的结构实现。
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,所述计算机包括移动终端。
本发明实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,所述计算机包括移动终端。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元 中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。
以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (20)

  1. 一种阈值设置方法,其特征在于,包括:
    检测移动终端的系统状态信息;
    根据所述系统状态信息确定所述移动终端所处的场景;
    以所述场景为查询标识,查询预设的场景与接近传感器工作阈值的映射关系,确定所述场景对应的所述接近传感器的工作阈值为目标工作阈值;
    设置所述接近传感器的工作阈值为所述目标工作阈值。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述系统状态信息确定所述移动终端所处的场景,包括:
    当检测到所述系统状态信息中所述接近传感器的测量值小于或等于第一预设阈值时,确定所述移动终端所处的场景为第一场景;
    所述设置所述接近传感器的工作阈值为所述目标工作阈值,包括:
    设置所述接近传感器的工作阈值为第一工作阈值,所述第一工作阈值小于所述接近传感器在所述第一场景下检测到的最小测量值。
  3. 根据权利要求2所述的方法,其特征在于,所述第一工作阈值用于所述移动终端检测到所述接近传感器的测量值大于所述第一工作阈值且针对触控显示屏的触控操作次数大于第二预设阈值时,使所述移动终端处于熄屏状态。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述根据所述系统状态信息确定所述移动终端所处的场景,包括:
    当检测到所述系统状态信息中所述接近传感器的测量值大于所述第一预设阈值时,确定所述移动终端所处的场景为第二场景;
    所述设置所述接近传感器的工作阈值为所述目标工作阈值,包括:
    设置所述接近传感器的工作阈值为第二工作阈值,所述第二工作阈值为所述接近传感器当前的测量值与预设值的和。
  5. 根据权利要求4所述的方法,其特征在于,所述第二工作阈值用于所述移动终端由所述第一场景转换为所述第二场景时,使所述移动终端在所述接近传感器的测量值小于所述第二工作阈值时处于亮屏状态。
  6. 根据权利要求1所述的方法,其特征在于,所述根据所述系统状态信息确定所述移动终端所处的场景,包括:
    当根据所述系统状态信息检测到所述接近传感器由休眠状态变更为启动状态时,确定所述移动终端所处的场景为第三场景;
    所述设置所述接近传感器的工作阈值为所述目标工作阈值,包括:
    设置所述接近传感器的工作阈值为第三工作阈值,所述第三工作阈值为所述接近传感器的最大量程值。
  7. 根据权利要求6所述的方法,其特征在于,所述设置所述接近传感器的工作阈值为第三工作阈值之后,所述方法还包括:
    获取预设时段内所述接近传感器的多个测量值;
    将所述第三工作阈值更新为所述多个测量值的平均值。
  8. 根据权利要求1所述的方法,其特征在于,所述根据所述系统状态信息确定所述移动终端所处的场景,包括:
    根据所述系统状态信息确定所述移动终端处于亮屏状态时的姿态信息;
    当检测到所述姿态信息与预设姿态信息匹配时,确定所述移动终端所处的场景为第四场景;
    所述设置所述接近传感器的工作阈值为所述目标工作阈值,包括:
    设置所述接近传感器的工作阈值为第四工作阈值,所述第四工作阈值大于所述接近传感器在所述第四场景下检测到的最大测量值。
  9. 根据权利要求8所述的方法,其特征在于,所述第四工作阈值用于所述移动终端检测到环境物体距离所述移动终端小于第三预设阈值且所述接近传感器的测量值小于所述第四工作阈值时,使所述移动终端处于亮屏状态。
  10. 一种移动终端,其特征在于,包括处理单元和通信单元,
    所述处理单元用于通过所述通信单元检测移动终端的系统状态信息;以及用于根据所述系统状态信息确定所述移动终端所处的场景;以及用于以所述场景为查询标识,查询预设的场景与接近传感器工作阈值的映射关系,确定所述场景对应的所述接近传感器的工作阈值为目标工作阈值;以及用于设置所述接 近传感器的工作阈值为所述目标工作阈值。
  11. 根据权利要求10所述的移动终端,其特征在于,在所述根据所述系统状态信息确定所述移动终端所处的场景方面,所述处理单元具体用于:当检测到所述系统状态信息中所述接近传感器的测量值小于或等于第一预设阈值时,确定所述移动终端所处的场景为第一场景;
    在所述设置所述接近传感器的工作阈值为所述目标工作阈值方面,所述处理单元具体用于:设置所述接近传感器的工作阈值为第一工作阈值,所述第一工作阈值小于所述接近传感器在所述第一场景下检测到的最小测量值。
  12. 根据权利要求11所述的移动终端,其特征在于,所述第一工作阈值用于所述移动终端检测到所述接近传感器的测量值大于所述第一工作阈值且针对触控显示屏的触控操作次数大于第二预设阈值时,使所述移动终端处于熄屏状态。
  13. 根据权利要求10-12任一项所述的移动终端,其特征在于,在所述根据所述系统状态信息确定所述移动终端所处的场景方面,所述处理单元具体用于:当检测到所述系统状态信息中所述接近传感器的测量值大于所述第一预设阈值时,确定所述移动终端所处的场景为第二场景;
    在所述设置所述接近传感器的工作阈值为所述目标工作阈值方面,所述处理单元具体用于:设置所述接近传感器的工作阈值为第二工作阈值,所述第二工作阈值为所述接近传感器当前的测量值与预设值的和。
  14. 根据权利要求13所述的移动终端,其特征在于,所述第二工作阈值用于所述移动终端由所述第一场景转换为所述第二场景时,使所述移动终端在所述接近传感器的测量值小于所述第二工作阈值时处于亮屏状态。
  15. 根据权利要求10所述的移动终端,其特征在于,在所述根据所述系统状态信息确定所述移动终端所处的场景方面,所述处理单元具体用于:当根据所述系统状态信息检测到所述接近传感器由休眠状态变更为启动状态时,确定所述移动终端所处的场景为第三场景;
    在所述设置所述接近传感器的工作阈值为所述目标工作阈值方面,所述处理单元具体用于:设置所述接近传感器的工作阈值为第三工作阈值,所述第三 工作阈值为所述接近传感器的最大量程值。
  16. 根据权利要求15所述的移动终端,其特征在于,所述处理单元设置所述接近传感器的工作阈值为第三工作阈值之后,还用于:通过所述通信单元获取预设时段内所述接近传感器的多个测量值;以及用于将所述第三工作阈值更新为所述多个测量值的平均值。
  17. 根据权利要求10所述的移动终端,其特征在于,在所述根据所述系统状态信息确定所述移动终端所处的场景方面,所述处理单元具体用于:根据所述系统状态信息确定所述移动终端处于亮屏状态时的姿态信息;以及用于当检测到所述姿态信息与预设姿态信息匹配时,确定所述移动终端所处的场景为第四场景;
    在所述设置所述接近传感器的工作阈值为所述目标工作阈值方面,所述处理单元具体用于:设置所述接近传感器的工作阈值为第四工作阈值,所述第四工作阈值大于所述接近传感器在所述第四场景下检测到的最大测量值。
  18. 根据权利要求17所述的移动终端,其特征在于,所述第四工作阈值用于所述移动终端检测到环境物体距离所述移动终端小于第三预设阈值且所述接近传感器的测量值小于所述第四工作阈值时,使所述移动终端处于亮屏状态。
  19. 一种移动终端,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求1-9任一项所述的方法中的步骤的指令。
  20. 一种计算机可读存储介质,其特征在于,其存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。
PCT/CN2017/105516 2017-10-10 2017-10-10 阈值设置方法及相关产品 WO2019071426A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780092548.5A CN110809877B (zh) 2017-10-10 2017-10-10 阈值设置方法、移动终端和计算机存储介质
PCT/CN2017/105516 WO2019071426A1 (zh) 2017-10-10 2017-10-10 阈值设置方法及相关产品

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/105516 WO2019071426A1 (zh) 2017-10-10 2017-10-10 阈值设置方法及相关产品

Publications (1)

Publication Number Publication Date
WO2019071426A1 true WO2019071426A1 (zh) 2019-04-18

Family

ID=66100172

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/105516 WO2019071426A1 (zh) 2017-10-10 2017-10-10 阈值设置方法及相关产品

Country Status (2)

Country Link
CN (1) CN110809877B (zh)
WO (1) WO2019071426A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683598A (zh) * 2015-03-25 2015-06-03 深圳市欧珀通信软件有限公司 接近传感器阈值调节方法、装置及智能设备
CN105939427A (zh) * 2016-07-06 2016-09-14 广东欧珀移动通信有限公司 一种红外接近传感器的控制方法、装置及移动终端
CN106331320A (zh) * 2016-08-15 2017-01-11 广东欧珀移动通信有限公司 控制屏幕状态的方法及装置
CN106850983A (zh) * 2017-01-20 2017-06-13 广东欧珀移动通信有限公司 一种熄屏控制方法、装置和终端
CN107071147A (zh) * 2017-03-08 2017-08-18 广东欧珀移动通信有限公司 一种参数调整方法及设备

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102843469A (zh) * 2012-08-16 2012-12-26 广东欧珀移动通信有限公司 一种设置红外线接近传感器阈值的方法及移动终端
CN106484141B (zh) * 2016-10-19 2019-03-29 Oppo广东移动通信有限公司 阈值的设置方法及移动终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683598A (zh) * 2015-03-25 2015-06-03 深圳市欧珀通信软件有限公司 接近传感器阈值调节方法、装置及智能设备
CN105939427A (zh) * 2016-07-06 2016-09-14 广东欧珀移动通信有限公司 一种红外接近传感器的控制方法、装置及移动终端
CN106331320A (zh) * 2016-08-15 2017-01-11 广东欧珀移动通信有限公司 控制屏幕状态的方法及装置
CN106850983A (zh) * 2017-01-20 2017-06-13 广东欧珀移动通信有限公司 一种熄屏控制方法、装置和终端
CN107071147A (zh) * 2017-03-08 2017-08-18 广东欧珀移动通信有限公司 一种参数调整方法及设备

Also Published As

Publication number Publication date
CN110809877A (zh) 2020-02-18
CN110809877B (zh) 2021-06-11

Similar Documents

Publication Publication Date Title
WO2018219104A1 (zh) 省电控制方法及相关产品
WO2017088154A1 (zh) 一种情景模式切换的方法
WO2018032581A1 (zh) 一种应用程序控制方法及装置
US10674452B2 (en) Terminal management method and apparatus
WO2018166204A1 (zh) 一种控制指纹识别模组的方法、移动终端及存储介质
CN108900231B (zh) 动态天线调整方法及相关产品
CN107219951B (zh) 触控屏控制方法、装置、存储介质及终端设备
CN109542279B (zh) 一种终端设备控制方法及终端设备
WO2018133642A1 (zh) 指纹识别模组、指纹识别方法及相关产品
CN107317918B (zh) 参数设置方法及相关产品
US20190245362A1 (en) Charging Protection Method, Terminal, and Charger
CN111651030B (zh) 传感器检测方法、装置、存储介质及移动终端
CN107071151B (zh) 针对home键所对应的物理按键的控制方法及移动终端
CN108388400B (zh) 一种操作处理方法及移动终端
CN112286286B (zh) 待机控制方法及可穿戴设备、计算机可读存储介质
CN110277097B (zh) 数据处理方法及相关设备
CN110851014B (zh) 触摸识别方法、装置、存储介质及终端设备
CN108304709B (zh) 人脸解锁方法及相关产品
CN111427745A (zh) 一种终端的使用控制方法、装置、存储介质及终端
CN108170360B (zh) 一种手势功能的控制方法及移动终端
CN110673761A (zh) 一种触摸按键的检测方法及其终端设备
CN107329547B (zh) 一种温度控制的方法和设备以及移动终端
CN107077275B (zh) 多媒体信息的呈现方法和终端
CN111132282B (zh) 一种应用于移动终端的应用处理器唤醒方法及装置
WO2019071426A1 (zh) 阈值设置方法及相关产品

Legal Events

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

Ref document number: 17928795

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 8.09.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17928795

Country of ref document: EP

Kind code of ref document: A1