WO2018149030A1 - Method, apparatus, and device for detecting proximity of electronic device to human body - Google Patents

Method, apparatus, and device for detecting proximity of electronic device to human body Download PDF

Info

Publication number
WO2018149030A1
WO2018149030A1 PCT/CN2017/081901 CN2017081901W WO2018149030A1 WO 2018149030 A1 WO2018149030 A1 WO 2018149030A1 CN 2017081901 W CN2017081901 W CN 2017081901W WO 2018149030 A1 WO2018149030 A1 WO 2018149030A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
acceleration
sensor
threshold
capacitance
Prior art date
Application number
PCT/CN2017/081901
Other languages
French (fr)
Chinese (zh)
Inventor
曹登钧
张治国
甄海涛
孙增才
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201780009700.9A priority Critical patent/CN108700938B/en
Publication of WO2018149030A1 publication Critical patent/WO2018149030A1/en

Links

Images

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters

Definitions

  • the present application relates to the field of information technology, and in particular, to a method, device, and device for detecting an electronic device approaching a human body.
  • the metal substrate or the heat sink itself is also monitored for the capacitance value, which may cause the capacitance value measured by the capacitance sensor to change, and thus mistakenly believe
  • the electronic device is placed on the human body.
  • a wallet or the like is installed, so that the human body does not directly contact the capacitance sensor, so that the capacitance value measured by the capacitance sensor does not change, and the electronic component is mistaken for The device is placed on the desktop.
  • the capacitive sensor is also affected by environmental factors such as temperature and humidity, which may affect the capacitance value of the capacitive sensor, and thus mistakenly believe that the electronic device is placed on the human body.
  • the embodiment of the present invention provides a method, device, and device for detecting an electronic device approaching a human body, and can solve the problem that a capacitive sensor is used to determine whether an electronic device is placed on a human body inaccurately.
  • a method for detecting an electronic device approaching a human body is provided, monitoring an acceleration of the electronic device in a preset direction, and determining, according to the acceleration, whether the electronic device is in a stationary state, and whether the time in the stationary state exceeds a preset time segment. If the electronic device is not in a stationary state, or is in a stationary state for a predetermined period of time, it can be determined that the electronic device is close to the human body.
  • the preset direction is a non-horizontal direction.
  • the preset direction may be a direction perpendicular to the plane of the keyboard.
  • the electronic device includes an acceleration sensor that can be used to monitor the acceleration of the electronic device in a predetermined direction.
  • the higher the sensitivity of the acceleration sensor the greater the power consumption.
  • the sensitivity of the acceleration sensor is usually set within a reasonable range. Therefore, before monitoring the acceleration of the electronic device in a preset direction, the sensitivity of the acceleration sensor can be increased first.
  • the method before the electronic device monitors the acceleration of the electronic device in a preset direction, the method further includes: after the electronic device determines that the acceleration sensor detects the acceleration in either direction, first confirming whether the electronic device is horizontal Move in direction. Specifically, the electronic device reads the acceleration detected by the acceleration sensor in any direction according to a preset time interval; if there is a continuous N times monitored acceleration in the preset direction is greater than or equal to the first threshold, determining that the electronic device is moved And not moving in the horizontal direction; if there is no acceleration in the preset direction that is continuously detected N times is greater than or equal to the first threshold, and there is a continuous N times of monitoring the acceleration in the horizontal direction is greater than the first threshold, then determining The electronic device moves in the horizontal direction. Where N is a positive integer greater than zero.
  • an electronic device may be placed on a desktop of a moving vehicle. At this time, the electronic device has no acceleration in a preset direction, but the acceleration in the horizontal direction is large, and whether the electronic device moves in a horizontal direction may be Excluding this scenario, in this scenario, the electronic device is not considered to be close to the human body.
  • determining whether the electronic device is in a static state according to the acceleration in the preset direction comprises: determining that the electronic device is in a stationary state if the acceleration in the preset direction is determined to be less than or equal to the second threshold; Determining that the acceleration in the preset direction is greater than the second threshold determines that the electronic device is not in a stationary state.
  • the second threshold is less than the first threshold.
  • the electronic device determines whether the capacitance value reaches the capacitance threshold is detected by the capacitance sensor; if the capacitance threshold is not reached, it is determined that the electronic device is not close to the human body; When the capacitance threshold is reached, the electronic device continues to monitor whether the electronic device is in a stationary state for more than a preset period of time through the acceleration sensor. In a special case, the electronic device may remain stationary for a preset period of time on the human body. At this time, the capacitance value can be monitored by the capacitive sensor. If the capacitance value reaches the capacitance threshold, it can be considered to be placed on the human body.
  • the capacitance value does not reach the capacitance threshold, it is necessary to monitor whether the electronic device is still stationary for a preset period of time through the acceleration sensor. If it is stationary, it can be determined that it is not placed on the human body. Otherwise, continue to determine if the electronic device is moving in the horizontal direction.
  • the capacitive sensor is triggered first, that is, the capacitive sensor detects that the capacitance value reaches the capacitance threshold, it is necessary to further monitor the acceleration of the electronic device in any direction by the acceleration sensor, and return to the judgment of the acceleration sensor. method.
  • a device for detecting an electronic device approaching a human body comprising: a monitoring module configured to monitor an acceleration of the electronic device in a preset direction; and a determining module configured to be in accordance with a preset direction monitored by the monitoring module The acceleration determines whether the electronic device is in a stationary state, and whether the time in the stationary state exceeds a preset time period; the determining module is further configured to: if it is determined that the electronic device is not in a stationary state, or is in a stationary state, the time does not exceed a preset time period, Then determine that the electronic device is close to the human body.
  • the preset direction is a non-horizontal direction.
  • the preset direction can be a square that is perpendicular to the plane of the keyboard. to.
  • the monitoring module includes an acceleration sensor for monitoring the acceleration of the electronic device in a predetermined direction.
  • the determination module is also used to increase the sensitivity of the acceleration sensor
  • the determining module is further configured to determine if the electronic device is moving in a horizontal direction if the acceleration sensor monitors acceleration in either direction.
  • the determining module is further configured to read the acceleration detected by the acceleration sensor in any direction according to a preset time interval; if there is a continuous N times, the acceleration in the preset direction is greater than or equal to the first
  • the threshold is determined to be that the electronic device is moved and does not move in the horizontal direction; if there is no continuous acceleration detected in the preset direction that is greater than or equal to the first threshold, and there are consecutive N times of monitoring in the horizontal direction
  • the acceleration is greater than the first threshold, and then the electronic device is determined to move in a horizontal direction; wherein N is a positive integer greater than zero.
  • the determining module is further configured to: if it is determined that the acceleration in the preset direction monitored by the monitoring module is less than or equal to the second threshold, determining that the electronic device is in a stationary state; if determining the pre-monitored by the monitoring module If the acceleration in the direction is greater than the second threshold, it is determined that the electronic device is not in a stationary state; wherein the second threshold is less than the first threshold.
  • the monitoring module further includes a capacitance sensor; the capacitance sensor is configured to monitor whether the capacitance value reaches a set capacitance threshold; and the determining module is further configured to determine that the capacitance value monitored by the capacitance sensor does not reach the set value. Capacitance threshold and determine that the acceleration sensor does not monitor the acceleration in either direction.
  • the capacitive sensor is further configured to monitor whether the capacitance value reaches a capacitance threshold if the determining module determines that the electronic device is in a stationary state for more than a preset time period; and the determining module is further configured to perform capacitive sensor monitoring.
  • the determining module is further configured to: if the capacitance value monitored by the capacitance sensor reaches the capacitance threshold, continue to monitor the electronic device through the acceleration sensor to determine whether the electronic device is at rest.
  • the determining module is further configured to: if it is determined that the electronic device is in a static state for more than a preset period of time, determining that the electronic device is not in proximity to the human body; and the determining module is further configured to determine, by using the acceleration sensor, that the electronic device is in a stationary state If the preset time period is not exceeded, continue to monitor whether the electronic device moves in the horizontal direction.
  • the monitoring module is further configured to determine whether the acceleration in either direction is detected if the capacitance value monitored by the capacitive sensor reaches a capacitance threshold.
  • a third aspect provides a device for detecting an electronic device that is close to a human body
  • the device includes a sensor and a processor, a sensor for monitoring acceleration of the electronic device in a preset direction, and a processor configured to monitor a preset direction according to the sensor
  • the acceleration on the upper side determines whether the electronic device is in a stationary state, and whether the time in the stationary state exceeds a preset time period; the processor is further configured to: if it is determined that the electronic device is not in a stationary state, or is in a stationary state, the time does not exceed a preset time
  • the segment determines that the electronic device is close to the human body.
  • the preset direction is a non-horizontal direction.
  • the preset direction may be a direction perpendicular to the plane of the keyboard.
  • the senor includes an acceleration sensor for monitoring the acceleration of the electronic device in a predetermined direction.
  • the processor is also used to increase the sensitivity of the acceleration sensor.
  • the processor is further configured to determine if the electronic device is moving in a horizontal direction if the acceleration sensor monitors acceleration in either direction.
  • the processor is further configured to read the acceleration detected by the acceleration sensor in any direction according to a preset time interval; if there is a continuous N times, the acceleration in the preset direction is greater than or equal to the first
  • the threshold is determined to be that the electronic device is moved and does not move in the horizontal direction; if there is no continuous acceleration detected in the preset direction that is greater than or equal to the first threshold, and there are consecutive N times of monitoring in the horizontal direction
  • the acceleration is greater than the first threshold to determine that the electronic device is moving in a horizontal direction; wherein N is a positive integer greater than zero.
  • the processor is further configured to: if it is determined that the acceleration in the preset direction monitored by the sensor is less than or equal to the second threshold, determine that the electronic device is in a stationary state; if the preset direction monitored by the sensor is determined The acceleration on the second is greater than the second threshold, determining that the electronic device is not in a stationary state; wherein the second threshold is less than the first threshold.
  • the senor further includes a capacitive sensor; the capacitive sensor is configured to monitor whether the capacitance value reaches a set capacitance threshold; and the processor is further configured to determine that the capacitance value monitored by the capacitive sensor does not reach the set capacitance Threshold and determine that the acceleration sensor is not monitoring acceleration in either direction.
  • the capacitive sensor is further configured to monitor whether the capacitance value reaches a capacitance threshold if the processor determines that the electronic device is in a stationary state for more than a preset period of time; the processor is further configured to monitor the capacitance sensor If the capacitance value does not reach the capacitance threshold, it is determined that the electronic device is not close to the human body; the processor is further configured to continue monitoring the electronic device through the acceleration sensor to determine whether the electronic device is in a static state if the capacitance sensor detects that the capacitance value reaches the capacitance threshold.
  • the processor is further configured to: if it is determined that the electronic device is in a static state for more than a preset period of time, determining that the electronic device is not in proximity to the human body; and the processor is further configured to determine, by using the acceleration sensor, that the electronic device is in a stationary state For a preset period of time, continue to monitor whether the electronic device is moving in the horizontal direction.
  • the acceleration sensor is further configured to determine whether the acceleration in either direction is detected if the capacitance value monitored by the capacitance sensor reaches a capacitance threshold.
  • a computer storage medium for storing computer software instructions for use in the above apparatus, comprising programs for performing the above aspects.
  • the embodiment of the present application provides a method, device, and device for detecting an electronic device approaching a human body, by monitoring an acceleration of the electronic device in a preset direction, and determining, according to the acceleration, whether the electronic device is in a static state and in a static state. Whether the preset time period is exceeded. If the electronic device is not in a stationary state, or is in a stationary state for a predetermined period of time, it can be determined that the electronic device is close to the human body.
  • the present invention determines whether the electronic device is stationary and is stationary for more than a preset period of time by monitoring the acceleration of the electronic device. Since the acceleration is not affected by non-human factors, and combined with the characteristics of the use of the electronic device on the human body, it can be accurately It is judged whether the electronic device is placed on the human body, which reduces the misjudgment of the capacitive sensor and improves the accuracy of the detection.
  • the number of the capacitive sensors is at least three.
  • a capacitive sensor is placed on each side of the notebook to detect the two-leg mode; a capacitive sensor is placed in the middle of the notebook to detect the one-leg mode.
  • the position of the capacitive sensor needs to be opened.
  • the capacitive sensor on the left and right sides of the notebook can be covered by the foot pad, and the opening position of the capacitive sensor in the middle is directly exposed, which affects the appearance of the notebook.
  • the present application employs an acceleration sensor. Since the acceleration sensor is not affected by the material of the notebook casing, the notebook does not need to be opened, so that the appearance of the notebook is not affected.
  • FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 2 is a flowchart of a method for detecting an electronic device approaching a human body according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of a method for setting an coordinate axis according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a method for placing an acceleration sensor according to an embodiment of the present application.
  • FIG. 5 is a flowchart of another method for detecting an electronic device approaching a human body according to an embodiment of the present disclosure
  • FIG. 6 is a flowchart of still another method for detecting an electronic device approaching a human body according to an embodiment of the present application
  • FIG. 7 is a flowchart of still another method for detecting an electronic device approaching a human body according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of an apparatus for detecting an electronic device approaching a human body according to an embodiment of the present application.
  • the electronic device In the process of using an electronic device, the electronic device is usually placed on a desktop or placed directly on the human body.
  • the processor of the electronic device can run at full speed, and the operating frequency is not limited.
  • the working frequency of the electronic device needs to be limited to a reasonable range, so as to ensure that the temperature of the electronic device does not burn the human body and avoid excessive electromagnetic radiation to damage the human body. Therefore, the method provided by the embodiment of the present application is needed to detect whether the electronic device is close to the human body.
  • the electronic device needs to reduce the temperature of the electronic device by reducing the working frequency or reducing the brightness of the screen display, thereby avoiding The human body causes damage and avoids excessive electromagnetic radiation damage to the human body.
  • the electronic device provided by the embodiment of the present application can be used to implement the method implemented by the embodiments of the present application.
  • the parts related to the embodiment of the present application are shown. If the specific technical details are not disclosed, please refer to the following.
  • the electronic device can be a notebook computer, a tablet computer, a UMPC (Ultra-mobile Personal Computer), a netbook, a PDA (Personal Digital Assistant), and the like.
  • FIG. 1 is a block diagram showing a portion of the structure of a notebook computer 100 associated with various embodiments of the present application.
  • the notebook computer 100 includes components such as a memory 110, a sensor 120, a processor 130, and a power source 140.
  • components such as a memory 110, a sensor 120, a processor 130, and a power source 140.
  • the notebook computer 100 shown in FIG. The structure does not constitute a limitation to a notebook computer, and may include more or fewer components than those illustrated, or some components may be combined, or different component arrangements.
  • the memory 110 can be used to store software programs and modules, and the processor 130 executes various functional applications and data processing of the notebook computer 100 by running software programs and modules stored in the memory 110.
  • the memory 110 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The data created by the use of the notebook computer 100 (such as audio data, image data, phone book, etc.).
  • the memory 110 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the memory 110 may be used to store an application, data, and the like that perform the method for implementing the present application.
  • the sensor 120 may include an acceleration sensor 121.
  • the acceleration sensor 121 can detect the magnitude of the acceleration of the notebook computer 100 in various directions (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the notebook computer 100 (such as horizontal and vertical screen switching).
  • the related information such as a pedometer, a tap) or the like, and the acceleration sensor 121 may be disposed at a position on either side of the left and right sides of the notebook computer 100.
  • the acceleration sensor 121 can also adjust the detection accuracy of the acceleration sensor 121 by sensitivity. The higher the sensitivity, the higher the detection accuracy. For example, when the moving range of the notebook computer is small, the acceleration and direction when moving can be detected.
  • the sensor 120 may further include a capacitance sensor 141.
  • the capacitance sensor 141 detects whether the base of the notebook computer 100 is directly in contact with the human body through the measured change in the capacitance value.
  • the capacitance sensor 141 may be disposed inside the base of the notebook computer 100.
  • the base of the notebook computer 100 is a metal outer layer, since the metal outer layer shields the capacitive sensing of the capacitance sensor 141, an opening is required at the metal outer layer where the capacitance sensor 141 is disposed.
  • the processor 130 is the control center of the notebook computer 100, which connects various portions of the entire notebook computer 100 using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 110, and by calling them stored in the memory 110.
  • the data is executed to perform various functions of the notebook computer 100 and process data, thereby performing overall monitoring of the notebook computer 100.
  • the processor 130 may include one or more processing units; the processor 130 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application, etc., and the modem processor mainly Handle wireless communications. It can be understood that the above modem processor may not be integrated into the processor 130.
  • the processor 130 may reduce the temperature of the electronic device in such a manner that the detection result detected by the sensor 120 controls the operating frequency of the processor 130 or the screen display brightness of the display unit 130.
  • the notebook computer 100 also includes a power source 140 (such as a battery) for powering various components.
  • a power source 140 such as a battery
  • the power source can be logically coupled to the processor 130 through a power management system to manage functions such as charging, discharging, and power management through the power management system. .
  • the notebook computer 100 may further include a WiFi (Wireless Fidelity) module, a Bluetooth module, and the like, and details are not described herein again.
  • a WiFi Wireless Fidelity
  • Bluetooth Wireless Fidelity
  • a method for detecting an electronic device approaching a human body may be applied to an electronic device as shown in FIG. 1, wherein the electronic device may include at least one acceleration sensor, and may also include at least one acceleration sensor and At least one capacitive sensor is not limited herein.
  • the method specifically includes:
  • the electronic device monitors its own acceleration in a preset direction.
  • the preset direction is a non-horizontal direction.
  • the coordinate axes are set in advance, and can be set as follows: on the horizontal plane, any two perpendicular directions are the X-axis and the Y-axis, and the direction of the gravity line is the Z-axis. It can also be set as follows: as shown in FIG. 3, on the plane where the keyboard of the notebook computer is located, the direction parallel to the button is the X axis, the direction perpendicular to the button is the Y axis, and the direction perpendicular to the plane of the keyboard is the Z axis.
  • the embodiment of the present application is not limited.
  • the electronic device can monitor the acceleration of the electronic device in a preset direction on the coordinate axis by using the acceleration sensor, and determine whether the electronic device moves and the amplitude of the movement by using the acceleration value.
  • the acceleration sensor can be disposed at any of the left and right sides of the notebook computer, and the preset direction here can be the Z-axis direction as shown in FIG.
  • the acceleration sensor When the electronic device is turned on, the acceleration sensor also starts to work. For example, when the electronic device is placed on the desktop, it is turned on, or placed on the person's leg to boot.
  • the electronic device determines, according to the acceleration in the preset direction, whether the electronic device is in a stationary state, and whether the time in the stationary state exceeds a preset time period.
  • step 301 is performed. Refer to Figure 6 for this step.
  • the preset direction in the present application is described by taking the Z axis in the second preset coordinate axis as an example.
  • the acceleration of the electronic device in the Z-axis direction is zero, it can be determined that the electronic device is in a stationary state.
  • the electronic device is placed on the desktop, there are cases such as tapping the keyboard, wind blowing, etc., which may cause slight jitter of the electronic device, so that the acceleration of the electronic device is not zero at this time, and this situation should also be considered as static. status.
  • it is necessary to set a second threshold and when the acceleration of the electronic device in the Z-axis direction is less than the second threshold, the electronic device can be considered to be in a stationary state.
  • tapping the keyboard can also be excluded by monitoring whether the electronic device has input, which is not limited herein.
  • the electronic device may remain stationary for a period of time, but may not remain stationary at all times. Therefore, when it is detected that the electronic device is in a stationary state, it is also necessary to determine whether the stationary state exceeds a preset period of time to further distinguish whether the electronic device is placed on the desktop or placed on the leg.
  • the preset time period may be, for example, 5 minutes or other values, which is not limited in this application.
  • the electronic device determines that the electronic device is close to the human body.
  • the electronic device when detecting that the electronic device is close to the human body, the electronic device needs to reduce the temperature of the electronic device by reducing the working frequency or reducing the brightness of the screen display, thereby avoiding harm to the human body.
  • the electronic device is placed on the leg and turned on and placed on the leg for use.
  • An implementation manner of the embodiment of the present application is: when the electronic device only includes the acceleration sensor, since the leg cannot be kept still for a relatively long time, the electronic device always has jitter or shakes after a period of time. Then, the acceleration measured by the acceleration sensor can be used to determine whether the electronic device is always shaking, or the time in the stationary state does not exceed the preset time period, and further determining whether the electronic device is placed on the leg.
  • Another implementation manner of the embodiment of the present application is: when the electronic device includes an acceleration sensor and one or two capacitive sensors, there may be a wallet or an electronic device in the trouser pocket, so that the capacitive sensor does not directly contact the leg. And thus not triggered. However, only the electronic device is used on the leg, the electronic device will always shake or shake after a period of time, the acceleration sensor can detect it, and confirm that the electronic device is placed on the leg. Therefore, the acceleration sensor can also reduce the capacitance sensor. Misjudgment.
  • a method for detecting an electronic device approaching a human body by using an embodiment of the present application by monitoring an acceleration of the electronic device in a preset direction, and determining whether the electronic device is in a static state according to the acceleration, and whether the time in the stationary state exceeds a pre-predetermined time Set the time period. If the electronic device is not in a stationary state, or the time in which the stationary state is described does not exceed a preset period of time, it may be determined that the electronic device is in proximity to the human body.
  • the present invention determines whether the electronic device is stationary and is stationary for more than a preset period of time by monitoring the acceleration of the electronic device. Since the acceleration is not affected by non-human factors, and combined with the characteristics of the use of the electronic device on the human body, it can be accurately It is judged whether the electronic device is placed on the human body, which reduces the misjudgment of the capacitive sensor and improves the accuracy of the detection.
  • the number of the capacitive sensors is at least three.
  • a capacitive sensor is placed on each side of the notebook to detect the two-leg mode; a capacitive sensor is placed in the middle of the notebook to detect the one-leg mode.
  • the position of the capacitive sensor needs to be opened.
  • the capacitive sensor on the left and right sides of the notebook can be covered by the foot pad, and the opening position of the capacitive sensor in the middle is directly exposed, which affects the appearance of the notebook.
  • the present application employs an acceleration sensor. Since the acceleration sensor is not affected by the material of the notebook casing, the notebook computer does not need to be opened, and the acceleration sensor does not affect the appearance of the notebook.
  • an acceleration sensor may be used to monitor the acceleration of the electronic device, and the placement position of the electronic device may also be changed. Therefore, before step 101, as shown in FIG. 5, the embodiment of the present application further provides a detection electronic device.
  • the method for the device to approach the human body specifically includes:
  • the electronic device is in an initial state.
  • the acceleration sensor of the electronic device is not triggered. If the electronic device also contains a capacitive sensor, the capacitive sensor is also not triggered, and the electronic device may be placed on the desktop.
  • the electronic device determines that the acceleration sensor is triggered.
  • the sensitivity of the acceleration sensor is set according to the range in which the acceleration is to be monitored. For example, the sensitivity of the acceleration sensor can be set lower when the electronic device is placed on the desktop.
  • the acceleration sensor is triggered only when a large acceleration occurs, for example, when a person picks up an electronic device to move. Therefore, it is necessary to set a first threshold for the acceleration sensor. When the acceleration of the electronic device is greater than or equal to the first threshold, the electronic device confirms that the acceleration sensor is triggered, and can confirm that the electronic device is moved.
  • the electronic device determines that the acceleration sensor is triggered is that the electronic device reads the acceleration measured by the acceleration sensor in three axial directions of the preset coordinate axis according to a preset time interval. In either axis direction, if there is a continuous N times of monitored acceleration greater than or equal to the first threshold, it can be determined that the acceleration sensor is triggered.
  • the electronic device determines, by the acceleration sensor, whether the electronic device moves in a horizontal direction.
  • step 204 is performed.
  • step 201 Determining the electronic device if there is no continuous N times of monitoring that the acceleration in the Z-axis direction is greater than or equal to the first threshold, and there are consecutive N times of monitoring that the acceleration in the X-axis or Z-axis direction is greater than or equal to the first threshold Moving in the horizontal direction, for example, if the electronic device is placed on a movable vehicle, if the electronic device moves in the horizontal direction and the capacitive sensor is not triggered, it can be considered that the electronic device does not approach the human body, and the electronic device does not need to perform temperature reduction and frequency reduction processing. . When the electronic device is stationary, step 201 is performed.
  • the electronic device increases the sensitivity of the acceleration sensor.
  • an electronic device is placed on a desktop and a person picks up the electronic device and places it elsewhere.
  • the electronic device only includes an acceleration sensor.
  • the electronic device When the electronic device is placed on the desktop, the electronic device is at a standstill and the acceleration sensor is not triggered.
  • the action of picking up the movement triggers the acceleration sensor.
  • Another implementation manner of the embodiment of the present application is: when the electronic device includes the acceleration sensor and one or two capacitive sensors, when the electronic device is placed on the desktop, neither the acceleration sensor nor the capacitive sensor is triggered, when the electronic device is picked up The acceleration sensor is triggered.
  • the capacitive sensor is still not triggered, possibly because of a wallet or electronic device in the trouser pocket.
  • the acceleration sensor can detect the jitter of the electronic device and confirm that the electronic device is placed on the leg. Therefore, the detection of the acceleration sensor can also reduce the misjudgment of the capacitive sensor.
  • the judgment may be assisted according to the variation of the angle between the Z axis and the gravity line, for example, when the electronic device is placed on the desktop, it is at rest.
  • the angle between the Z-axis and the gravity line hardly changes.
  • the angle between the Z axis and the gravity line may change significantly. Therefore, it is possible to jointly determine whether the electronic device moves and the amplitude of the movement by the value of the acceleration of the electronic device on the Z-axis and the change in the angle between the Z-axis and the gravity line, and the detection accuracy can be improved.
  • the electronic device can also be used with a gyro sensor.
  • a gyro sensor For example, if the notebook is not placed horizontally, when the person just rotates the laptop, it may cause the laptop to accelerate in the Z-axis direction and trigger the acceleration sensor. At this time, the electronic device is not considered to have moved. Therefore, the use of the gyroscope can also eliminate the case where the electronic device only rotates.
  • the embodiment of the present application can make a more accurate judgment on the movement of the electronic device in combination with the gyroscope.
  • a method for detecting an electronic device approaching a human body by monitoring an acceleration of the electronic device, and further determining whether the electronic device is moved according to whether the acceleration is greater than a first threshold. After determining that the electronic device is moved, combined with the characteristics of the use of the electronic device on the human body, it can accurately determine whether the electronic device is moved to the human body, which can reduce the misjudgment of the capacitive sensor and improve the accuracy of the detection. .
  • the method for detecting the proximity of the electronic device to the human body provided by the embodiment of the present application further includes:
  • step 301 If it is determined that the electronic device is in a static state for more than a preset period of time, the electronic device monitors whether the capacitance value reaches a capacitance threshold by using a capacitance sensor. If the capacitance value does not reach the capacitance threshold, step 302 is performed; if the capacitance threshold is reached, step 303 is performed.
  • the capacitive sensor detects whether the human body is detected by monitoring whether the capacitance value reaches the capacitance value.
  • the capacitance value measured by the capacitive sensor reaches the capacitance threshold.
  • the electronic device determines that the electronic device is not in proximity to the human body.
  • the electronic device continues to monitor, by the acceleration sensor, whether the electronic device is in a static state for more than the preset time period. If yes, go to step 302; if no, go to step 203.
  • the electronic device since the capacitance value measured by the capacitance sensor reaches the capacitance threshold, the electronic device may be placed on the leg, or may be placed on a metal desktop or a heat sink, so in order to determine whether to put it on the leg, it is necessary to once again
  • the electronic device is monitored by the acceleration sensor to determine whether the electronic device is stationary and stationary for a preset period of time.
  • the duration of the preset time period here may be the same as or different from the above.
  • the electronic device is monitored again for a preset period of time, it can be confirmed that the capacitive sensor is misjudged, and the electronic device may be placed on a metal desktop or a heat sink, and the electronic device is not close to the human body.
  • the electronic device is placed on the leg, and there is an exception that the acceleration sensor detects that the electronic device has been stationary for a preset period of time. At this point, it is necessary to monitor whether the capacitance value reaches the capacitance threshold through the capacitive sensor. If it is not reached, it can be confirmed that the electronic device is not close to the human body; if the capacitance threshold is reached, it may be that the electronic device may be placed on a metal desktop or heat dissipation. On the device, it is necessary to continue to use the acceleration sensor to monitor whether the time when the electronic device is stationary is longer than the preset time period.
  • step 202 is performed.
  • the embodiment of the present application further provides a method for detecting the proximity of the electronic device to the human body, specifically including :
  • the electronic device determines whether the capacitance value monitored by the capacitive sensor reaches a capacitance threshold, the electronic device determines whether the acceleration sensor detects acceleration in either direction.
  • step 202 if the acceleration sensor detects that the electronic device has moved, step 202 is performed; if the acceleration sensor does not detect the movement of the electronic device, step 204 is performed.
  • the electronic device is turned on on the leg, or turned on on a metal desktop or heat sink, the capacitive sensor is triggered, and the acceleration sensor is not triggered. At this time, the sensitivity of the acceleration sensor is increased, and the electronic device is continuously monitored for jitter. If the jitter occurs, it is confirmed on the leg. If there is still no jitter within the preset time period, monitor the capacitance sensor again to reach the capacitance threshold. If it is reached, the electronic device is placed on a metal desktop or a heat sink. The capacitance is misjudged, and only the acceleration sensor is used to judge and Adjust the sensitivity of the acceleration sensor back to its original value.
  • each electronic device such as a notebook computer, etc.
  • each electronic device includes hardware structures and/or software modules corresponding to the execution of the respective functions.
  • the present application can be implemented 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 to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.
  • the embodiment of the present application may divide the functional modules of the electronic device according to the foregoing method example.
  • each functional module may be divided according to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware or Implemented in the form of a software function module. It should be noted that the division of the module in the embodiment of the present application is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • FIG. 8 is a schematic diagram showing a possible structure of the device 800 involved in the foregoing embodiment.
  • the device 800 includes a monitoring module 801 and a determining module 802.
  • the monitoring module 801 is configured to support the electronic device 800 to perform the process 101 in FIG. 2, the processes 301 and 303 in FIG. 6, and the 401 in FIG. 7;
  • the determining module 802 is configured to support the electronic device to perform the processes 102 and 103 in FIG. Process 201-204 in FIG. 5, process 302 in FIG. All the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.
  • the monitoring module 801 can be the sensor 120 shown in FIG. 1; the determining module 802 is the processor 130 shown in FIG. 1, for example, can be a central processing unit (CPU), a general-purpose processor, and digital signal processing. Digital Signal Processor (DSP), Application-Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component or random combination. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor can also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the steps of a method or algorithm described in connection with the present disclosure may be implemented in a hardware or may be implemented by a processor executing software instructions.
  • the software instructions may be composed of corresponding software modules, which may be stored in a random access memory (RAM), a flash memory, a read only memory (ROM), an erasable programmable read only memory ( Erasable Programmable ROM (EPROM), electrically erasable programmable read only memory (EEPROM), registers, hard disk, removable hard disk, compact disk read only (CD-ROM) or any other form of storage medium known in the art.
  • An exemplary storage medium is coupled to the processor to enable the processor to read information from, and write information to, the storage medium.
  • the storage medium can also be an integral part of the processor.
  • the functions described herein can be implemented in hardware, software, firmware, or any combination thereof.
  • the functions may be stored in a computer readable medium or transmitted as one or more instructions or code on a computer readable medium.
  • Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a general purpose or special purpose computer.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Power Sources (AREA)

Abstract

A method, an apparatus, and a device for detecting the proximity of an electronic device to a human body, relating to the field of information technology, and solving the problem in which an existing method of using a capacitive sensor to determine whether an electronic device is placed on a human body is unreliable. The method for detecting proximity of an electronic device to a human body comprises: an electronic device monitors an acceleration of the electronic device in a preset direction (101), the preset direction being a non-horizontal direction; the electronic device determines, according to the acceleration in the preset direction, whether the electronic device is in a stationary state, and determines whether the stationary state is maintained longer than a preset time period (102); and if it is determined that the electronic device is not in a stationary state or the stationary state is not maintained longer than the preset time period, the electronic device determines that the electronic device is close to the human body (103). The method, apparatus, and device for detecting proximity of an electronic device to a human body are used to determine whether an electronic device in use is close to a human body.

Description

一种检测电子设备接近人体的方法、装置及设备Method, device and device for detecting electronic device approaching human body 技术领域Technical field
本申请涉及信息技术领域,尤其涉及一种检测电子设备接近人体的方法、装置及设备。The present application relates to the field of information technology, and in particular, to a method, device, and device for detecting an electronic device approaching a human body.
背景技术Background technique
在使用电子设备的过程中,为了避免电子设备的温度过高或者电磁波辐射过高而造成对人体的伤害,需要检测电子设备是否放置在人体上。当检测到电子设备放置在人体上时,需要降低该电子设备的温度或者频率,以保护人体不受伤害。In the process of using an electronic device, in order to avoid damage to the human body caused by excessive temperature of the electronic device or excessive electromagnetic radiation, it is necessary to detect whether the electronic device is placed on the human body. When it is detected that the electronic device is placed on the human body, it is necessary to lower the temperature or frequency of the electronic device to protect the human body from harm.
目前,大多数电子设备都是采用内置多个电容传感器,通过电容传感器测得的电容值来判断电子设备是否放置在人体上。具体的,当人体接触到电容传感器时,电容传感器测得的电容值会发生变化。因此,可以通过电容值的变化幅度来判断电子设备是否放置在人体上。然而,在实际情况中,采用电容传感器的判断方式经常会出现误判断的情况。例如:当电子设备放置在金属材质的桌面或散热器上面时,由于金属材质的桌面或散热器本身也会被监测到电容值,也会导致电容传感器测得的电容值发生变化,进而误认为电子设备是放置在人体上。或者,当电子设备放置人腿上,而人腿上放置了书或者裤包内装有钱包等,导致人体没有直接接触到电容传感器,从而电容传感器测得的电容值没有发生变化,会误认为电子设备是放置在桌面上。此外,电容传感器还受到如温度、湿度的环境因素影响,这些环境因素都可能影响电容传感器的电容值变化,进而误认为电子设备放置在人体上。At present, most electronic devices use a built-in multiple capacitive sensor to determine whether the electronic device is placed on the human body by the capacitance value measured by the capacitive sensor. Specifically, when the human body contacts the capacitive sensor, the capacitance value measured by the capacitive sensor changes. Therefore, whether the electronic device is placed on the human body can be judged by the magnitude of the change in the capacitance value. However, in the actual situation, the judgment method using the capacitive sensor often leads to misjudgment. For example, when an electronic device is placed on a metal desktop or a heat sink, the metal substrate or the heat sink itself is also monitored for the capacitance value, which may cause the capacitance value measured by the capacitance sensor to change, and thus mistakenly believe The electronic device is placed on the human body. Or, when the electronic device is placed on a person's leg, and a book or a trouser bag is placed on the person's leg, a wallet or the like is installed, so that the human body does not directly contact the capacitance sensor, so that the capacitance value measured by the capacitance sensor does not change, and the electronic component is mistaken for The device is placed on the desktop. In addition, the capacitive sensor is also affected by environmental factors such as temperature and humidity, which may affect the capacitance value of the capacitive sensor, and thus mistakenly believe that the electronic device is placed on the human body.
由此可见,采用电容传感器来判断电子设备是否放置在人体上的方式不够准确,经常出现误判断,导致电子设备不能及时准确的降低温度或降低频率,会给人体带来伤害。It can be seen that the use of a capacitive sensor to determine whether the electronic device is placed on the human body is not accurate enough, and often misjudgment causes the electronic device to fail to reduce the temperature or reduce the frequency in time and accurately, which may cause harm to the human body.
发明内容Summary of the invention
本申请实施例提供一种检测电子设备接近人体的方法、装置及设备,能够解决采用电容传感器来判断电子设备是否放置在人体上的方式不准确的问题。The embodiment of the present invention provides a method, device, and device for detecting an electronic device approaching a human body, and can solve the problem that a capacitive sensor is used to determine whether an electronic device is placed on a human body inaccurately.
为达到上述目的,本申请的实施例采用如下技术方案:To achieve the above objective, the embodiment of the present application adopts the following technical solutions:
第一方面,提供一种检测电子设备接近人体的方法,监测电子设备在预设方向上的加速度,并根据这个加速度确定该电子设备是否处于静止状态,且处于静止状态的时间是否超过预设时间段。如果电子设备不处于静止状态,或处于静止状态的时间不超过预设时间段,则可确定电子设备接近人体。In a first aspect, a method for detecting an electronic device approaching a human body is provided, monitoring an acceleration of the electronic device in a preset direction, and determining, according to the acceleration, whether the electronic device is in a stationary state, and whether the time in the stationary state exceeds a preset time segment. If the electronic device is not in a stationary state, or is in a stationary state for a predetermined period of time, it can be determined that the electronic device is close to the human body.
其中,预设方向为非水平方向。例如,预设方向可为与键盘平面垂直的方向。Among them, the preset direction is a non-horizontal direction. For example, the preset direction may be a direction perpendicular to the plane of the keyboard.
在一种可能的设计中,电子设备包括加速度传感器,可通过加速度传感器监测电子设备在预设方向上的加速度。 In one possible design, the electronic device includes an acceleration sensor that can be used to monitor the acceleration of the electronic device in a predetermined direction.
在一种可能的设计中,由于加速度传感器的灵敏度越高,功耗越大。为了节省功耗,通常将加速度传感器的灵敏度设置在一个合理的范围内。因此,在监测电子设备在预设方向上的加速度之前,可先提升加速度传感器的灵敏度,In one possible design, the higher the sensitivity of the acceleration sensor, the greater the power consumption. In order to save power, the sensitivity of the acceleration sensor is usually set within a reasonable range. Therefore, before monitoring the acceleration of the electronic device in a preset direction, the sensitivity of the acceleration sensor can be increased first.
在一种可能的设计中,在电子设备监测电子设备在预设方向上的加速度之前,该方法还包括:在电子设备确定加速度传感器监测到任一方向的加速度后,先确认电子设备是否为水平方向移动。具体的,电子设备按照预设时间间隔读取该加速度传感器在任一方向上监测到的加速度;若存在连续N次监测到的预设方向上的加速度大于或等于第一阈值,则确定电子设备被移动,且不在水平方向移动;若不存在连续N次监测到的预设方向上的加速度大于或等于第一阈值时,且存在连续N次监测到的水平方向上的加速度大于第一阈值,则确定电子设备在水平方向移动。其中,N为大于零的正整数。In a possible design, before the electronic device monitors the acceleration of the electronic device in a preset direction, the method further includes: after the electronic device determines that the acceleration sensor detects the acceleration in either direction, first confirming whether the electronic device is horizontal Move in direction. Specifically, the electronic device reads the acceleration detected by the acceleration sensor in any direction according to a preset time interval; if there is a continuous N times monitored acceleration in the preset direction is greater than or equal to the first threshold, determining that the electronic device is moved And not moving in the horizontal direction; if there is no acceleration in the preset direction that is continuously detected N times is greater than or equal to the first threshold, and there is a continuous N times of monitoring the acceleration in the horizontal direction is greater than the first threshold, then determining The electronic device moves in the horizontal direction. Where N is a positive integer greater than zero.
在一种应用场景中,电子设备可能放置在移动的交通工具的桌面上,此时,电子设备在预设方向上没有加速度,但在水平方向加速度很大,通过电子设备是否在水平方向移动可以排除该场景,在该场景下,不认为电子设备接近人体。In an application scenario, an electronic device may be placed on a desktop of a moving vehicle. At this time, the electronic device has no acceleration in a preset direction, but the acceleration in the horizontal direction is large, and whether the electronic device moves in a horizontal direction may be Excluding this scenario, in this scenario, the electronic device is not considered to be close to the human body.
在一种可能的设计中,电子设备根据预设方向上的加速度确定电子设备是否处于静止状态包括:若确定预设方向上的加速度小于或等于第二阈值,则确定电子设备处于静止状态;若确定预设方向上的加速度大于第二阈值,则确定电子设备不处于静止状态。其中,第二阈值小于第一阈值。具体的,电子设备放置在桌面时,存在例如敲击键盘、风吹等情况,也可能造成电子设备发生轻微的抖动,造成此时电子设备的加速度不为零,因此,通过该判断静止状态的方法可以排除这类情况。In a possible design, determining whether the electronic device is in a static state according to the acceleration in the preset direction comprises: determining that the electronic device is in a stationary state if the acceleration in the preset direction is determined to be less than or equal to the second threshold; Determining that the acceleration in the preset direction is greater than the second threshold determines that the electronic device is not in a stationary state. The second threshold is less than the first threshold. Specifically, when the electronic device is placed on the desktop, there are cases such as tapping the keyboard, wind blowing, etc., and the electronic device may be slightly shaken, so that the acceleration of the electronic device is not zero at this time, and therefore, the static state is determined by the determination. The method can rule out such situations.
在一种可能的设计中,若确定电子设备处于静止状态的时间超过预设时间段,则通过电容传感器监测电容值是否达到电容阈值;若未达到电容阈值,则确定电子设备未接近人体;若达到电容阈值,则电子设备通过加速度传感器继续监测电子设备是否处于静止状态超过预设时间段。由于在特殊情况下,电子设备可能在人体上在预设时间段内一直保持静止状态,此时可通过电容传感器监测下电容值,如果电容值达到电容阈值,则可认为是放置在人体上。若电容值没有达到电容阈值,则需再通过加速度传感器再监测下电子设备在预设时间段内是否一直静止,若静止,则可确定未放置在人体上。否则,继续判断电子设备是否在水平方向上移动。In a possible design, if it is determined that the electronic device is in a static state for more than a preset period of time, whether the capacitance value reaches the capacitance threshold is detected by the capacitance sensor; if the capacitance threshold is not reached, it is determined that the electronic device is not close to the human body; When the capacitance threshold is reached, the electronic device continues to monitor whether the electronic device is in a stationary state for more than a preset period of time through the acceleration sensor. In a special case, the electronic device may remain stationary for a preset period of time on the human body. At this time, the capacitance value can be monitored by the capacitive sensor. If the capacitance value reaches the capacitance threshold, it can be considered to be placed on the human body. If the capacitance value does not reach the capacitance threshold, it is necessary to monitor whether the electronic device is still stationary for a preset period of time through the acceleration sensor. If it is stationary, it can be determined that it is not placed on the human body. Otherwise, continue to determine if the electronic device is moving in the horizontal direction.
在一种可能的设计中,考虑到有可能是电容传感器先触发,即电容传感器监测到电容值达到电容阈值,则需要进一步通过加速度传感器监测电子设备在任一方向上的加速度,回到加速度传感器的判断方法。In a possible design, considering that it is possible that the capacitive sensor is triggered first, that is, the capacitive sensor detects that the capacitance value reaches the capacitance threshold, it is necessary to further monitor the acceleration of the electronic device in any direction by the acceleration sensor, and return to the judgment of the acceleration sensor. method.
第二方面,提供一种检测电子设备接近人体的装置,该装置包括:监测模块,用于监测电子设备在预设方向上的加速度;确定模块,用于根据监测模块监测的预设方向上的加速度确定电子设备是否处于静止状态,且在静止状态的时间是否超过预设时间段;确定模块,还用于若确定电子设备不处于静止状态,或处于静止状态的时间不超过预设时间段,则确定电子设备接近人体。In a second aspect, a device for detecting an electronic device approaching a human body is provided, the device comprising: a monitoring module configured to monitor an acceleration of the electronic device in a preset direction; and a determining module configured to be in accordance with a preset direction monitored by the monitoring module The acceleration determines whether the electronic device is in a stationary state, and whether the time in the stationary state exceeds a preset time period; the determining module is further configured to: if it is determined that the electronic device is not in a stationary state, or is in a stationary state, the time does not exceed a preset time period, Then determine that the electronic device is close to the human body.
其中,预设方向为非水平方向。例如,预设方向可为与键盘平面垂直的方 向。Among them, the preset direction is a non-horizontal direction. For example, the preset direction can be a square that is perpendicular to the plane of the keyboard. to.
在一种可能的设计中,监测模块包括加速度传感器,加速度传感器用于监测电子设备在预设方向上的加速度。In one possible design, the monitoring module includes an acceleration sensor for monitoring the acceleration of the electronic device in a predetermined direction.
在一种可能的设计中,确定模块还用于提升加速度传感器的灵敏度;In one possible design, the determination module is also used to increase the sensitivity of the acceleration sensor;
在一种可能的设计中,确定模块,还用于若加速度传感器监测到任一方向上的加速度,则确定电子设备是否在水平方向移动。In one possible design, the determining module is further configured to determine if the electronic device is moving in a horizontal direction if the acceleration sensor monitors acceleration in either direction.
在一种可能的设计中,确定模块,还用于按照预设时间间隔读取加速度传感器在任一方向上监测到的加速度;若存在连续N次监测到的预设方向上的加速度大于或等于第一阈值,则确定电子设备被移动,且不在水平方向移动;若不存在连续N次监测到的预设方向上的加速度大于或等于第一阈值时,且存在连续N次监测到的水平方向上的加速度大于第一阈值,则确定电子设备在水平方向移动;其中,N为大于零的,正整数。In a possible design, the determining module is further configured to read the acceleration detected by the acceleration sensor in any direction according to a preset time interval; if there is a continuous N times, the acceleration in the preset direction is greater than or equal to the first The threshold is determined to be that the electronic device is moved and does not move in the horizontal direction; if there is no continuous acceleration detected in the preset direction that is greater than or equal to the first threshold, and there are consecutive N times of monitoring in the horizontal direction The acceleration is greater than the first threshold, and then the electronic device is determined to move in a horizontal direction; wherein N is a positive integer greater than zero.
在一种可能的设计中,确定模块,还用于若确定监测模块监测到的预设方向上的加速度小于或等于第二阈值,则确定电子设备处于静止状态;若确定监测模块监测到的预设方向上的加速度大于第二阈值,则确定电子设备不处于静止状态;其中,第二阈值小于第一阈值。In a possible design, the determining module is further configured to: if it is determined that the acceleration in the preset direction monitored by the monitoring module is less than or equal to the second threshold, determining that the electronic device is in a stationary state; if determining the pre-monitored by the monitoring module If the acceleration in the direction is greater than the second threshold, it is determined that the electronic device is not in a stationary state; wherein the second threshold is less than the first threshold.
在一种可能的设计中,监测模块还包括电容传感器;电容传感器,用于监测电容值是否达到设定的电容阈值;确定模块,还用于确定电容传感器监测到的电容值未达到设定的电容阈值,并确定加速度传感器没有监测到任一方向上的加速度。In a possible design, the monitoring module further includes a capacitance sensor; the capacitance sensor is configured to monitor whether the capacitance value reaches a set capacitance threshold; and the determining module is further configured to determine that the capacitance value monitored by the capacitance sensor does not reach the set value. Capacitance threshold and determine that the acceleration sensor does not monitor the acceleration in either direction.
在一种可能的设计中,电容传感器,还用于若确定模块确定电子设备处于静止状态的时间超过预设时间段,则监测电容值是否达到电容阈值;确定模块,还用于若电容传感器监测到电容值未达到电容阈值,则确定电子设备未接近人体;确定模块,还用于若电容传感器监测到的电容值达到的电容阈值,则继续通过加速度传感器监测电子设备,确定电子设备是否处于静止状态超过预设时间段;确定模块,还用于若确定电子设备处于静止状态超过预设时间段,则确定电子设备未接近人体;确定模块,还用于若通过加速度传感器确定电子设备处于静止状态不超过预设时间段,则继续监测电子设备是否在水平方向移动。In a possible design, the capacitive sensor is further configured to monitor whether the capacitance value reaches a capacitance threshold if the determining module determines that the electronic device is in a stationary state for more than a preset time period; and the determining module is further configured to perform capacitive sensor monitoring. If the capacitance value does not reach the capacitance threshold, it is determined that the electronic device is not close to the human body; and the determining module is further configured to: if the capacitance value monitored by the capacitance sensor reaches the capacitance threshold, continue to monitor the electronic device through the acceleration sensor to determine whether the electronic device is at rest The determining module is further configured to: if it is determined that the electronic device is in a static state for more than a preset period of time, determining that the electronic device is not in proximity to the human body; and the determining module is further configured to determine, by using the acceleration sensor, that the electronic device is in a stationary state If the preset time period is not exceeded, continue to monitor whether the electronic device moves in the horizontal direction.
在一种可能的设计中,监测模块,还用于若通过电容传感器监测到的电容值达到电容阈值,则确定是否监测到任一方向上的加速度。In one possible design, the monitoring module is further configured to determine whether the acceleration in either direction is detected if the capacitance value monitored by the capacitive sensor reaches a capacitance threshold.
第三方面,提供一种检测电子设备接近人体的设备,该设备包括传感器和处理器;传感器,用于监测电子设备在预设方向上的加速度;处理器,用于根据传感器监测的预设方向上的加速度确定电子设备是否处于静止状态,且在静止状态的时间是否超过预设时间段;处理器,还用于若确定电子设备不处于静止状态,或处于静止状态的时间不超过预设时间段,则确定电子设备接近人体。A third aspect provides a device for detecting an electronic device that is close to a human body, the device includes a sensor and a processor, a sensor for monitoring acceleration of the electronic device in a preset direction, and a processor configured to monitor a preset direction according to the sensor The acceleration on the upper side determines whether the electronic device is in a stationary state, and whether the time in the stationary state exceeds a preset time period; the processor is further configured to: if it is determined that the electronic device is not in a stationary state, or is in a stationary state, the time does not exceed a preset time The segment determines that the electronic device is close to the human body.
其中,预设方向为非水平方向。例如,预设方向可为与键盘平面垂直的方向。Among them, the preset direction is a non-horizontal direction. For example, the preset direction may be a direction perpendicular to the plane of the keyboard.
在一种可能的设计中,传感器包括加速度传感器,加速度传感器用于监测电子设备在预设方向上的加速度。 In one possible design, the sensor includes an acceleration sensor for monitoring the acceleration of the electronic device in a predetermined direction.
在一种可能的设计中,处理器还用于提升加速度传感器的灵敏度。In one possible design, the processor is also used to increase the sensitivity of the acceleration sensor.
在一种可能的设计中,处理器,还用于若加速度传感器监测到任一方向上的加速度,则确定电子设备是否在水平方向移动。In one possible design, the processor is further configured to determine if the electronic device is moving in a horizontal direction if the acceleration sensor monitors acceleration in either direction.
在一种可能的设计中,处理器,还用于按照预设时间间隔读取加速度传感器在任一方向上监测到的加速度;若存在连续N次监测到的预设方向上的加速度大于或等于第一阈值,则确定电子设备被移动,且不在水平方向移动;若不存在连续N次监测到的预设方向上的加速度大于或等于第一阈值时,且存在连续N次监测到的水平方向上的加速度大于第一阈值,则确定电子设备在水平方向移动;其中,N为大于零的正整数。In a possible design, the processor is further configured to read the acceleration detected by the acceleration sensor in any direction according to a preset time interval; if there is a continuous N times, the acceleration in the preset direction is greater than or equal to the first The threshold is determined to be that the electronic device is moved and does not move in the horizontal direction; if there is no continuous acceleration detected in the preset direction that is greater than or equal to the first threshold, and there are consecutive N times of monitoring in the horizontal direction The acceleration is greater than the first threshold to determine that the electronic device is moving in a horizontal direction; wherein N is a positive integer greater than zero.
在一种可能的设计中,处理器,还用于若确定传感器监测到的预设方向上的加速度小于或等于第二阈值,则确定电子设备处于静止状态;若确定传感器监测到的预设方向上的加速度大于第二阈值,则确定电子设备不处于静止状态;其中,第二阈值小于第一阈值。In a possible design, the processor is further configured to: if it is determined that the acceleration in the preset direction monitored by the sensor is less than or equal to the second threshold, determine that the electronic device is in a stationary state; if the preset direction monitored by the sensor is determined The acceleration on the second is greater than the second threshold, determining that the electronic device is not in a stationary state; wherein the second threshold is less than the first threshold.
在一种可能的设计中,传感器还包括电容传感器;电容传感器,用于监测电容值是否达到设定的电容阈值;处理器,还用于确定电容传感器监测到的电容值未达到设定的电容阈值,并确定加速度传感器没有监测到任一方向上的加速度。In a possible design, the sensor further includes a capacitive sensor; the capacitive sensor is configured to monitor whether the capacitance value reaches a set capacitance threshold; and the processor is further configured to determine that the capacitance value monitored by the capacitive sensor does not reach the set capacitance Threshold and determine that the acceleration sensor is not monitoring acceleration in either direction.
在一种可能的设计中,电容传感器,还用于若处理器确定电子设备处于静止状态的时间超过预设时间段,则监测电容值是否达到电容阈值;处理器,还用于若电容传感器监测到电容值未达到电容阈值,则确定电子设备未接近人体;处理器,还用于若电容传感器监测到电容值达到电容阈值,则继续通过加速度传感器监测电子设备,确定电子设备是否处于静止状态超过预设时间段;处理器,还用于若确定电子设备处于静止状态超过预设时间段,则确定电子设备未接近人体;处理器,还用于若通过加速度传感器确定电子设备处于静止状态不超过预设时间段,则继续监测电子设备是否在水平方向移动。In a possible design, the capacitive sensor is further configured to monitor whether the capacitance value reaches a capacitance threshold if the processor determines that the electronic device is in a stationary state for more than a preset period of time; the processor is further configured to monitor the capacitance sensor If the capacitance value does not reach the capacitance threshold, it is determined that the electronic device is not close to the human body; the processor is further configured to continue monitoring the electronic device through the acceleration sensor to determine whether the electronic device is in a static state if the capacitance sensor detects that the capacitance value reaches the capacitance threshold. a preset period of time; the processor is further configured to: if it is determined that the electronic device is in a static state for more than a preset period of time, determining that the electronic device is not in proximity to the human body; and the processor is further configured to determine, by using the acceleration sensor, that the electronic device is in a stationary state For a preset period of time, continue to monitor whether the electronic device is moving in the horizontal direction.
在一种可能的设计中,加速度传感器,还用于若通过电容传感器监测到的电容值达到电容阈值,则确定是否监测到任一方向上的加速度。In one possible design, the acceleration sensor is further configured to determine whether the acceleration in either direction is detected if the capacitance value monitored by the capacitance sensor reaches a capacitance threshold.
第四方面,提供一种计算机存储介质,用于存储为上述设备所用计算机软件指令,其包含用于执行上述方面所涉及的程序。In a fourth aspect, a computer storage medium is provided for storing computer software instructions for use in the above apparatus, comprising programs for performing the above aspects.
本申请实施例提供一种检测电子设备接近人体的方法、装置及设备,通过监测电子设备在预设方向上的加速度,并根据这个加速度确定该电子设备是否处于静止状态,且处于静止状态的时间是否超过预设时间段。如果电子设备不处于静止状态,或处于静止状态的时间不超过预设时间段,则可确定电子设备接近人体。与现有技术相比较,现有技术中只通过电容传感器测得的电容值的变化来确认是否接近人体,然而电容值的变化还受到非人体因素的影响,这将导致电容传感器的误判。而本申请通过监测电子设备的加速度,判断电子设备是否静止并且静止超过预设时间段,由于加速度不会受到非人体因素影响,并且结合电子设备放在人体上的使用时的特点,可以准确地判断出电子设备是否放置在人体上,减少了电容传感器的误判,提高检测的准确度。 The embodiment of the present application provides a method, device, and device for detecting an electronic device approaching a human body, by monitoring an acceleration of the electronic device in a preset direction, and determining, according to the acceleration, whether the electronic device is in a static state and in a static state. Whether the preset time period is exceeded. If the electronic device is not in a stationary state, or is in a stationary state for a predetermined period of time, it can be determined that the electronic device is close to the human body. Compared with the prior art, in the prior art, only the change of the capacitance value measured by the capacitance sensor is used to confirm whether it is close to the human body, but the change of the capacitance value is also affected by non-human factors, which will lead to misjudgment of the capacitance sensor. The present invention determines whether the electronic device is stationary and is stationary for more than a preset period of time by monitoring the acceleration of the electronic device. Since the acceleration is not affected by non-human factors, and combined with the characteristics of the use of the electronic device on the human body, it can be accurately It is judged whether the electronic device is placed on the human body, which reduces the misjudgment of the capacitive sensor and improves the accuracy of the detection.
此外,在现有技术中,只采用电容传感器来检测人体是否接近的方法中,由于要检测双腿和单腿的模式,所以电容传感器的数量至少为三个。以笔记本电脑为例,在笔记本电脑左右两边各放置一个电容传感器,用来检测双腿模式;在笔记本中间的位置放置一个电容传感器,用来检测单腿模式。当笔记本电脑为金属外壳时,为避免电容感应被屏蔽,放置电容传感器的位置需要开孔。笔记本电脑左右两边的电容传感器可通过脚垫遮盖,而中间的电容传感器的开孔位置直接暴露在外,影响笔记本的美观。然而,本申请采用的是加速度传感器。由于加速度传感器不受笔记本电脑外壳材质的影响,因此笔记本电脑不需要开孔,进而不会影响笔记本的美观。Further, in the prior art, in the method of using only the capacitive sensor to detect whether the human body is approaching, since the mode of the two legs and the single leg is to be detected, the number of the capacitive sensors is at least three. Taking a notebook computer as an example, a capacitive sensor is placed on each side of the notebook to detect the two-leg mode; a capacitive sensor is placed in the middle of the notebook to detect the one-leg mode. When the notebook is a metal case, in order to avoid capacitive sensing being shielded, the position of the capacitive sensor needs to be opened. The capacitive sensor on the left and right sides of the notebook can be covered by the foot pad, and the opening position of the capacitive sensor in the middle is directly exposed, which affects the appearance of the notebook. However, the present application employs an acceleration sensor. Since the acceleration sensor is not affected by the material of the notebook casing, the notebook does not need to be opened, so that the appearance of the notebook is not affected.
附图说明DRAWINGS
图1为本申请实施例提供的一种电子设备的结构示意图;1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
图2为本申请实施例提供的一种检测电子设备接近人体的方法流程图;2 is a flowchart of a method for detecting an electronic device approaching a human body according to an embodiment of the present application;
图3为本申请实施例提供的一种设置坐标轴的方法示意图;FIG. 3 is a schematic diagram of a method for setting an coordinate axis according to an embodiment of the present application; FIG.
图4为本申请实施例提供的一种放置加速度传感器的方法示意图;4 is a schematic diagram of a method for placing an acceleration sensor according to an embodiment of the present application;
图5为本申请实施例提供的另一种检测电子设备接近人体的方法流程图;FIG. 5 is a flowchart of another method for detecting an electronic device approaching a human body according to an embodiment of the present disclosure;
图6为本申请实施例提供的又一种检测电子设备接近人体的方法流程图;FIG. 6 is a flowchart of still another method for detecting an electronic device approaching a human body according to an embodiment of the present application;
图7为本申请实施例提供的再一种检测电子设备接近人体的方法流程图;FIG. 7 is a flowchart of still another method for detecting an electronic device approaching a human body according to an embodiment of the present application;
图8为本申请实施例提供的一种检测电子设备接近人体的装置的结构示意图。FIG. 8 is a schematic structural diagram of an apparatus for detecting an electronic device approaching a human body according to an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述。The technical solutions in the embodiments of the present application will be clearly described below with reference to the accompanying drawings in the embodiments of the present application.
在使用电子设备的过程中,通常将电子设备放在桌面上或直接放置人体上使用。当电子设备放在桌面上使用时,电子设备的处理器可以全速运行,工作频率不受限制。然而,当电子设备放在人体上使用时,电子设备的工作频率需要限制在一个合理的范围内,以确保电子设备工作时的温度不会烫伤人体,避免过高的电磁波辐射伤害人体。因此,需要采用本申请实施例提供的方法去检测电子设备是否接近人体,当检测到电子设备接近人体时,电子设备需要通过降低工作频率或降低屏幕显示亮度等方式降低电子设备的温度,避免对人体造成伤害,避免过高的电磁波辐射伤害人体。In the process of using an electronic device, the electronic device is usually placed on a desktop or placed directly on the human body. When the electronic device is placed on the desktop, the processor of the electronic device can run at full speed, and the operating frequency is not limited. However, when the electronic device is placed on the human body, the working frequency of the electronic device needs to be limited to a reasonable range, so as to ensure that the temperature of the electronic device does not burn the human body and avoid excessive electromagnetic radiation to damage the human body. Therefore, the method provided by the embodiment of the present application is needed to detect whether the electronic device is close to the human body. When detecting that the electronic device is close to the human body, the electronic device needs to reduce the temperature of the electronic device by reducing the working frequency or reducing the brightness of the screen display, thereby avoiding The human body causes damage and avoids excessive electromagnetic radiation damage to the human body.
本申请实施例提供的电子设备可以用于实施本申请各实施例实现的方法,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照下述的本申请各实施例。The electronic device provided by the embodiment of the present application can be used to implement the method implemented by the embodiments of the present application. For the convenience of description, only the parts related to the embodiment of the present application are shown. If the specific technical details are not disclosed, please refer to the following. Various embodiments of the present application.
该电子设备可以为笔记本电脑、平板电脑、UMPC(Ultra-mobile Personal Computer,超级移动个人计算机)、上网本、PDA(Personal Digital Assistant,个人数字助理)等设备,本申请实施例以电子设备为笔记本电脑为例进行说明,图1示出的是与本申请各实施例相关的笔记本电脑100的部分结构的框图。The electronic device can be a notebook computer, a tablet computer, a UMPC (Ultra-mobile Personal Computer), a netbook, a PDA (Personal Digital Assistant), and the like. For illustrative purposes, FIG. 1 is a block diagram showing a portion of the structure of a notebook computer 100 associated with various embodiments of the present application.
如图1所示,笔记本电脑100包括:存储器110、传感器120、处理器130、以及电源140等部件。本领域技术人员可以理解,图1中示出的笔记本电脑100 结构并不构成对笔记本电脑的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。As shown in FIG. 1, the notebook computer 100 includes components such as a memory 110, a sensor 120, a processor 130, and a power source 140. Those skilled in the art will appreciate that the notebook computer 100 shown in FIG. The structure does not constitute a limitation to a notebook computer, and may include more or fewer components than those illustrated, or some components may be combined, or different component arrangements.
下面结合图1对笔记本电脑100的各个构成部件进行具体的介绍:The components of the notebook computer 100 will be specifically described below with reference to FIG. 1 :
存储器110可用于存储软件程序以及模块,处理器130通过运行存储在存储器110的软件程序以及模块,从而执行笔记本电脑100的各种功能应用以及数据处理。存储器110可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据笔记本电脑100的使用所创建的数据(比如音频数据、图像数据、电话本等)等。此外,存储器110可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。在本申请实施例中,存储器110可以用于存储执行本申请实施方法的应用程序以及数据等。The memory 110 can be used to store software programs and modules, and the processor 130 executes various functional applications and data processing of the notebook computer 100 by running software programs and modules stored in the memory 110. The memory 110 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The data created by the use of the notebook computer 100 (such as audio data, image data, phone book, etc.). Further, the memory 110 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. In the embodiment of the present application, the memory 110 may be used to store an application, data, and the like that perform the method for implementing the present application.
在本申请实施例中,传感器120可以包括加速度传感器121。具体的,加速度传感器121可以检测笔记本电脑100在各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别笔记本电脑100姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等,加速度传感器121可以设置在笔记本电脑100的左右两侧任一侧的位置。加速度传感器121还可以通过灵敏度调节该加速度传感器121的检测精度,灵敏度越高,检测精度越高,例如笔记本电脑的移动幅度很小时也可以检测到移动时的加速度和方向。In the embodiment of the present application, the sensor 120 may include an acceleration sensor 121. Specifically, the acceleration sensor 121 can detect the magnitude of the acceleration of the notebook computer 100 in various directions (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the notebook computer 100 (such as horizontal and vertical screen switching). The related information (such as a pedometer, a tap) or the like, and the acceleration sensor 121 may be disposed at a position on either side of the left and right sides of the notebook computer 100. The acceleration sensor 121 can also adjust the detection accuracy of the acceleration sensor 121 by sensitivity. The higher the sensitivity, the higher the detection accuracy. For example, when the moving range of the notebook computer is small, the acceleration and direction when moving can be detected.
在本申请实施例中,传感器120还可以包括电容传感器141。具体的,电容传感器141通过测得的电容值的变化来检测笔记本电脑100的底座是否有人体直接接触到。当笔记本电脑100的底座为塑胶外层时,电容传感器141可设置在笔记本电脑100的底座内侧。当笔记本电脑100的底座为金属外层时,由于金属外层会屏蔽电容传感器141的电容感应,因此,在设置电容传感器141的金属外层处需要开孔。In the embodiment of the present application, the sensor 120 may further include a capacitance sensor 141. Specifically, the capacitance sensor 141 detects whether the base of the notebook computer 100 is directly in contact with the human body through the measured change in the capacitance value. When the base of the notebook computer 100 is a plastic outer layer, the capacitance sensor 141 may be disposed inside the base of the notebook computer 100. When the base of the notebook computer 100 is a metal outer layer, since the metal outer layer shields the capacitive sensing of the capacitance sensor 141, an opening is required at the metal outer layer where the capacitance sensor 141 is disposed.
处理器130是笔记本电脑100的控制中心,利用各种接口和线路连接整个笔记本电脑100的各个部分,通过运行或执行存储在存储器110内的软件程序和/或模块,以及调用存储在存储器110内的数据,执行笔记本电脑100的各种功能和处理数据,从而对笔记本电脑100进行整体监控。处理器130可包括一个或多个处理单元;处理器130可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器130中。在本申请实施例中,处理器130可以在获取到传感器120检测到的检测结果控制处理器130的工作频率或显示单元130的屏幕显示亮度等方式降低电子设备的温度。The processor 130 is the control center of the notebook computer 100, which connects various portions of the entire notebook computer 100 using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 110, and by calling them stored in the memory 110. The data is executed to perform various functions of the notebook computer 100 and process data, thereby performing overall monitoring of the notebook computer 100. The processor 130 may include one or more processing units; the processor 130 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application, etc., and the modem processor mainly Handle wireless communications. It can be understood that the above modem processor may not be integrated into the processor 130. In the embodiment of the present application, the processor 130 may reduce the temperature of the electronic device in such a manner that the detection result detected by the sensor 120 controls the operating frequency of the processor 130 or the screen display brightness of the display unit 130.
笔记本电脑100还包括给各个部件供电的电源140(比如电池),优选的,电源可以通过电源管理***与处理器130逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。 The notebook computer 100 also includes a power source 140 (such as a battery) for powering various components. Preferably, the power source can be logically coupled to the processor 130 through a power management system to manage functions such as charging, discharging, and power management through the power management system. .
尽管未示出,笔记本电脑100还可以包括WiFi(wireless fidelity,无线保真)模块、蓝牙模块等,在此不再赘述。Although not shown, the notebook computer 100 may further include a WiFi (Wireless Fidelity) module, a Bluetooth module, and the like, and details are not described herein again.
如图2所示,本申请实施例提供的一种检测电子设备接近人体的方法,可应用如图1的电子设备,其中,电子设备可以包括至少一个加速度传感器,也可以包括至少一个加速度传感器和至少一个电容传感器,在此不做限定。该方法具体包括:As shown in FIG. 2, a method for detecting an electronic device approaching a human body according to an embodiment of the present application may be applied to an electronic device as shown in FIG. 1, wherein the electronic device may include at least one acceleration sensor, and may also include at least one acceleration sensor and At least one capacitive sensor is not limited herein. The method specifically includes:
101、电子设备监测自身在预设方向上的加速度。101. The electronic device monitors its own acceleration in a preset direction.
其中,预设方向为非水平方向。具体的,以电子设备为笔记本电脑为例,预先设置坐标轴,可以这样设置:在水平面上,任意两个相垂直的方向分别为X轴和Y轴,重力线所在方向为Z轴。也可以这样设置:如图3所示,在笔记本电脑的键盘所在的平面上,平行于按键的方向为X轴,垂直于按键的方向为Y轴,垂直于键盘所在平面的方向为Z轴。对于坐标轴的设置,本申请实施例不做限定。然后,电子设备可以采用加速度传感器监测电子设备在坐标轴上预设方向上的加速度,通过加速度数值来判断该电子设备是否发生移动以及移动的幅度。如图4所示,加速度传感器可以设置在笔记本电脑左右两侧中任一侧的位置,这里的预设方向可以为如图3所示的Z轴方向。Among them, the preset direction is a non-horizontal direction. Specifically, taking the electronic device as a notebook computer as an example, the coordinate axes are set in advance, and can be set as follows: on the horizontal plane, any two perpendicular directions are the X-axis and the Y-axis, and the direction of the gravity line is the Z-axis. It can also be set as follows: as shown in FIG. 3, on the plane where the keyboard of the notebook computer is located, the direction parallel to the button is the X axis, the direction perpendicular to the button is the Y axis, and the direction perpendicular to the plane of the keyboard is the Z axis. For the setting of the coordinate axis, the embodiment of the present application is not limited. Then, the electronic device can monitor the acceleration of the electronic device in a preset direction on the coordinate axis by using the acceleration sensor, and determine whether the electronic device moves and the amplitude of the movement by using the acceleration value. As shown in FIG. 4, the acceleration sensor can be disposed at any of the left and right sides of the notebook computer, and the preset direction here can be the Z-axis direction as shown in FIG.
当电子设备开机时,加速度传感器也开始工作。例如电子设备在桌面上放置时开机,或放置在人腿上开机。When the electronic device is turned on, the acceleration sensor also starts to work. For example, when the electronic device is placed on the desktop, it is turned on, or placed on the person's leg to boot.
102、电子设备根据预设方向上的加速度确定电子设备是否处于静止状态,且处于静止状态的时间是否超过预设时间段。102. The electronic device determines, according to the acceleration in the preset direction, whether the electronic device is in a stationary state, and whether the time in the stationary state exceeds a preset time period.
若确定电子设备不处于静止状态,或者静止状态不超过预设时间段,则执行步骤,则执行步骤103;若确定电子设备处于静止状态,且静止状态超过预设时间段,则执行步骤301,该步骤可参考图6。If it is determined that the electronic device is not in a static state, or the stationary state does not exceed the preset time period, the step is performed, and step 103 is performed; if it is determined that the electronic device is in a static state, and the stationary state exceeds the preset time period, step 301 is performed. Refer to Figure 6 for this step.
具体的,本申请中的预设方向以第二种预设坐标轴中的Z轴为例进行说明。当电子设备在Z轴方向上的加速度为零时,可确定电子设备处于静止状态。考虑到电子设备放置在桌面时,存在例如敲击键盘、风吹等情况,也可能造成电子设备发生轻微的抖动,造成此时电子设备的加速度不为零,而这种情况也应当认为是静止状态。为了排除这类情况,需要设置第二阈值,当电子设备在Z轴方向上的加速度小于第二阈值时,都可认为电子设备处于静止状态。需要说明的是,敲击键盘的情况也可以通过监测电子设备是否有输入的方式进行排除,在此不做限定。Specifically, the preset direction in the present application is described by taking the Z axis in the second preset coordinate axis as an example. When the acceleration of the electronic device in the Z-axis direction is zero, it can be determined that the electronic device is in a stationary state. Considering that when the electronic device is placed on the desktop, there are cases such as tapping the keyboard, wind blowing, etc., which may cause slight jitter of the electronic device, so that the acceleration of the electronic device is not zero at this time, and this situation should also be considered as static. status. In order to eliminate such a situation, it is necessary to set a second threshold, and when the acceleration of the electronic device in the Z-axis direction is less than the second threshold, the electronic device can be considered to be in a stationary state. It should be noted that the case of tapping the keyboard can also be excluded by monitoring whether the electronic device has input, which is not limited herein.
再有,考虑到电子设备放置在腿上时,也可能在一段时间内保持静止状态,却不能一直保持静止状态。因此,在监测到电子设备处于静止状态时,还需要判断静止状态是否超过一个预设时间段,以便进一步区分电子设备是放置在桌面上的,还是放置在腿上的。该预设时间段例如可以为5分钟,也可以为其他值,本申请不做限定。Furthermore, considering that the electronic device is placed on the leg, it may remain stationary for a period of time, but may not remain stationary at all times. Therefore, when it is detected that the electronic device is in a stationary state, it is also necessary to determine whether the stationary state exceeds a preset period of time to further distinguish whether the electronic device is placed on the desktop or placed on the leg. The preset time period may be, for example, 5 minutes or other values, which is not limited in this application.
103、电子设备确定电子设备接近人体。103. The electronic device determines that the electronic device is close to the human body.
具体的,当检测到电子设备接近人体时,电子设备需要通过降低工作频率或降低屏幕显示亮度等方式降低电子设备的温度,避免对人体造成伤害。 Specifically, when detecting that the electronic device is close to the human body, the electronic device needs to reduce the temperature of the electronic device by reducing the working frequency or reducing the brightness of the screen display, thereby avoiding harm to the human body.
在一种应用场景,电子设备放在腿上开机,并一直放置在腿上使用。In one application scenario, the electronic device is placed on the leg and turned on and placed on the leg for use.
本申请实施例的一种实现方式是:电子设备只包含加速度传感器时,由于腿不可能在相当长的时间内一直保持不动,所以电子设备总会有抖动或者静止一段时间后再抖动。于是可通过加速度传感器测得的加速度判断电子设备是否是一直在抖动,或处于静止状态的时间不超过预设时间段,进一步确定该电子设备是否是放在腿上的。An implementation manner of the embodiment of the present application is: when the electronic device only includes the acceleration sensor, since the leg cannot be kept still for a relatively long time, the electronic device always has jitter or shakes after a period of time. Then, the acceleration measured by the acceleration sensor can be used to determine whether the electronic device is always shaking, or the time in the stationary state does not exceed the preset time period, and further determining whether the electronic device is placed on the leg.
本申请实施例的另一种实现方式是:电子设备包含加速度传感器以及一个或两个电容传感器时,有可能是由于裤包里有钱包或者电子设备放偏了,导致电容传感器没有直接接触到腿,进而没有被触发。但只有电子设备在腿上使用,电子设备总会有抖动或者静止一段时间后再抖动,加速度传感器都可检测出来,并确认电子设备放在腿上,因此,利用加速度传感器检测还可以减少电容传感器的误判。Another implementation manner of the embodiment of the present application is: when the electronic device includes an acceleration sensor and one or two capacitive sensors, there may be a wallet or an electronic device in the trouser pocket, so that the capacitive sensor does not directly contact the leg. And thus not triggered. However, only the electronic device is used on the leg, the electronic device will always shake or shake after a period of time, the acceleration sensor can detect it, and confirm that the electronic device is placed on the leg. Therefore, the acceleration sensor can also reduce the capacitance sensor. Misjudgment.
本申请实施例提供的一种检测电子设备接近人体的方法,通过监测电子设备在预设方向上的加速度,并根据这个加速度确定该电子设备是否处于静止状态,且在静止状态的时间是否超过预设时间段。如果电子设备不处于静止状态,或处述静止状态的时间不超过预设时间段,则可确定电子设备接近人体。与现有技术相比较,现有技术中只通过电容传感器测得的电容值的变化来确认是否接近人体,然而电容值的变化还受到非人体因素的影响,这将导致电容传感器的误判。而本申请通过监测电子设备的加速度,判断电子设备是否静止并且静止超过预设时间段,由于加速度不会受到非人体因素影响,并且结合电子设备放在人体上的使用时的特点,可以准确地判断出电子设备是否放置在人体上,减少了电容传感器的误判,提高检测的准确度。A method for detecting an electronic device approaching a human body by using an embodiment of the present application, by monitoring an acceleration of the electronic device in a preset direction, and determining whether the electronic device is in a static state according to the acceleration, and whether the time in the stationary state exceeds a pre-predetermined time Set the time period. If the electronic device is not in a stationary state, or the time in which the stationary state is described does not exceed a preset period of time, it may be determined that the electronic device is in proximity to the human body. Compared with the prior art, in the prior art, only the change of the capacitance value measured by the capacitance sensor is used to confirm whether it is close to the human body, but the change of the capacitance value is also affected by non-human factors, which will lead to misjudgment of the capacitance sensor. The present invention determines whether the electronic device is stationary and is stationary for more than a preset period of time by monitoring the acceleration of the electronic device. Since the acceleration is not affected by non-human factors, and combined with the characteristics of the use of the electronic device on the human body, it can be accurately It is judged whether the electronic device is placed on the human body, which reduces the misjudgment of the capacitive sensor and improves the accuracy of the detection.
此外,在现有技术中,只采用电容传感器来检测人体是否接近的方法中,由于要检测双腿和单腿的模式,所以电容传感器的数量至少为三个。以笔记本电脑为例,在笔记本电脑左右两边各放置一个电容传感器,用来检测双腿模式;在笔记本中间的位置放置一个电容传感器,用来检测单腿模式。当笔记本电脑为金属外壳时,为避免电容感应被屏蔽,放置电容传感器的位置需要开孔。笔记本电脑左右两边的电容传感器可通过脚垫遮盖,而中间的电容传感器的开孔位置直接暴露在外,影响笔记本的美观。然而,本申请采用的是加速度传感器。由于加速度传感器不受笔记本电脑外壳材质的影响,因此笔记本电脑都不需要开孔,采用加速度传感器进而不会影响笔记本的美观。Further, in the prior art, in the method of using only the capacitive sensor to detect whether the human body is approaching, since the mode of the two legs and the single leg is to be detected, the number of the capacitive sensors is at least three. Taking a notebook computer as an example, a capacitive sensor is placed on each side of the notebook to detect the two-leg mode; a capacitive sensor is placed in the middle of the notebook to detect the one-leg mode. When the notebook is a metal case, in order to avoid capacitive sensing being shielded, the position of the capacitive sensor needs to be opened. The capacitive sensor on the left and right sides of the notebook can be covered by the foot pad, and the opening position of the capacitive sensor in the middle is directly exposed, which affects the appearance of the notebook. However, the present application employs an acceleration sensor. Since the acceleration sensor is not affected by the material of the notebook casing, the notebook computer does not need to be opened, and the acceleration sensor does not affect the appearance of the notebook.
进一步的,可以采用加速度传感器来监测电子设备的加速度,考虑到电子设备的放置位置也会发生变化,因此,在步骤101之前,如图5所示,本申请实施例还提供了一种检测电子设备接近人体的方法,具体包括:Further, an acceleration sensor may be used to monitor the acceleration of the electronic device, and the placement position of the electronic device may also be changed. Therefore, before step 101, as shown in FIG. 5, the embodiment of the present application further provides a detection electronic device. The method for the device to approach the human body specifically includes:
201、电子设备处于初始状态。201. The electronic device is in an initial state.
具体的,电子设备的加速度传感器未触发。若电子设备还包含电容传感器,电容传感器也未触发,此时电子设备可能放置在桌面上。Specifically, the acceleration sensor of the electronic device is not triggered. If the electronic device also contains a capacitive sensor, the capacitive sensor is also not triggered, and the electronic device may be placed on the desktop.
202、电子设备确定加速度传感器被触发。202. The electronic device determines that the acceleration sensor is triggered.
具体的,由于加速度传感器的灵敏度越高,功耗越大。因此,为了降低功 耗,通常根据要监测加速度的范围设置加速度传感器的灵敏度。例如:当电子设备放置在桌面上时,加速度传感器的灵敏度可以设置为较低。只有当有较大的加速度发生时,例如:人拿起电子设备进行移动时,才会触发加速度传感器。因此需要为加速度传感器设置第一阈值,当电子设备的加速度大于等于第一阈值时,电子设备确认加速度传感器被触发,并且可确认电子设备被移动了。Specifically, the higher the sensitivity of the acceleration sensor, the greater the power consumption. Therefore, in order to reduce work Consumption, usually the sensitivity of the acceleration sensor is set according to the range in which the acceleration is to be monitored. For example, the sensitivity of the acceleration sensor can be set lower when the electronic device is placed on the desktop. The acceleration sensor is triggered only when a large acceleration occurs, for example, when a person picks up an electronic device to move. Therefore, it is necessary to set a first threshold for the acceleration sensor. When the acceleration of the electronic device is greater than or equal to the first threshold, the electronic device confirms that the acceleration sensor is triggered, and can confirm that the electronic device is moved.
考虑到电子设备在非移动的情况下,例如猛然的敲击,也会造成瞬间的加速度大于等于第一阈值。为了排除这类情况,电子设备确定加速度传感器被触发的一种可能实现方式是,电子设备按照预设时间间隔读取该加速度传感器在预设坐标轴三个轴方向上测到的加速度。在任一轴方向上,如果存在连续N次监测到的加速度大于或等于第一阈值时,可以确定加速度传感器被触发了。Considering that the electronic device is in a non-moving situation, such as a sudden tap, it also causes the instantaneous acceleration to be greater than or equal to the first threshold. In order to eliminate such a situation, a possible implementation manner in which the electronic device determines that the acceleration sensor is triggered is that the electronic device reads the acceleration measured by the acceleration sensor in three axial directions of the preset coordinate axis according to a preset time interval. In either axis direction, if there is a continuous N times of monitored acceleration greater than or equal to the first threshold, it can be determined that the acceleration sensor is triggered.
203、电子设备通过加速度传感器确定电子设备是否在水平方向移动。203. The electronic device determines, by the acceleration sensor, whether the electronic device moves in a horizontal direction.
具体的,如果存在连续N次监测到Z轴方向上的加速度大于或等于第一阈值时,则确定电子设备不在水平方向上移动,则执行步骤204。Specifically, if there is a continuous N times of monitoring that the acceleration in the Z-axis direction is greater than or equal to the first threshold, then it is determined that the electronic device does not move in the horizontal direction, then step 204 is performed.
如果不存在连续N次监测到Z轴方向上的加速度大于或等于第一阈值时,且存在连续N次监测到X轴或Z轴方向上的加速度大于或等于第一阈值时,则确定电子设备在水平方向上移动,例如电子设备放置在可以移动的交通工具上若电子设备在水平方向上移动,电容传感器未被触发,则可以认为电子设备没有接近人体,电子设备不需要进行降温降频处理。等电子设备静止时,执行步骤201。Determining the electronic device if there is no continuous N times of monitoring that the acceleration in the Z-axis direction is greater than or equal to the first threshold, and there are consecutive N times of monitoring that the acceleration in the X-axis or Z-axis direction is greater than or equal to the first threshold Moving in the horizontal direction, for example, if the electronic device is placed on a movable vehicle, if the electronic device moves in the horizontal direction and the capacitive sensor is not triggered, it can be considered that the electronic device does not approach the human body, and the electronic device does not need to perform temperature reduction and frequency reduction processing. . When the electronic device is stationary, step 201 is performed.
204、电子设备提升加速度传感器的灵敏度。204. The electronic device increases the sensitivity of the acceleration sensor.
具体的,当确定电子设备不是在水平方向移动时,则需提高加速度传感器的灵敏度,以便加速度传感器能监测到电子设备是否发生抖动的情况。Specifically, when it is determined that the electronic device is not moving in the horizontal direction, it is necessary to increase the sensitivity of the acceleration sensor so that the acceleration sensor can detect whether the electronic device is shaken.
在一种应用场景,电子设备放置在桌面上,人拿起电子设备往其他地方放置。In one application scenario, an electronic device is placed on a desktop and a person picks up the electronic device and places it elsewhere.
本申请实施例的一种实现方式是:电子设备只包含加速度传感器。当电子设备放置在桌面时,电子设备处于静止状态,加速度传感器未被触发。当人开始拿起电子设备往其他地方放置时,拿起移动的动作触发加速度传感器。判断电子设备是否是水平方向移动。如果是水平方向移动,则有可能是将电子设备从桌面的一处移动到了另一处,或者可能是电子设备放置在移动着的交通工具的桌面上的。如果电子设备不是水平方向移动,则电子设备包括了在竖直方向的移动,那么可能是人拿起电子设备往腿上放置。此时需要提高加速度传感器的灵敏度,以便监测电子设备是否发生抖动,继续执行步骤101-103。由于电子设备没有放置在腿上,不需要降温降频处理,等电子设备静止后,电子设备回到初始状态。One implementation of the embodiment of the present application is that the electronic device only includes an acceleration sensor. When the electronic device is placed on the desktop, the electronic device is at a standstill and the acceleration sensor is not triggered. When a person starts picking up an electronic device and places it elsewhere, the action of picking up the movement triggers the acceleration sensor. Determine if the electronic device is moving in the horizontal direction. If it is moving horizontally, it is possible to move the electronic device from one place to another on the desktop, or it may be that the electronic device is placed on the desktop of the moving vehicle. If the electronic device is not moving in a horizontal direction, the electronic device includes a movement in the vertical direction, then it may be that the person picks up the electronic device and places it on the leg. At this time, it is necessary to increase the sensitivity of the acceleration sensor to monitor whether the electronic device is shaken, and then continue to perform steps 101-103. Since the electronic device is not placed on the leg, there is no need to cool down and down, and after the electronic device is stationary, the electronic device returns to the initial state.
本申请实施例的另一种实现方式是:电子设备包含加速度传感器以及一个或两个电容传感器时,当电子设备放置在桌面时,加速度传感器和电容传感器都没有触发,当电子设备被拿起时,加速度传感器被触发。先判断电子设备是否是水平方向移动。如果是水平方向移动,则有可能是将电子设备从桌面的一处移动到了另一处,或者可能是电子设备放置在移动着的交通工具的桌面上 的。如果电子设备不是水平方向移动,则电子设备包括了在竖直方向的移动,那么可能是人将电子设备拿到了腿上。提高加速度传感器的灵敏度,监测电子设备在Z轴方向上的抖动。如果电子设备被放置人腿上时,电容传感器仍然没有被触发,有可能是由于裤包里有钱包或者电子设备放偏了。但加速度传感器能够监测到电子设备的抖动,并确认电子设备放置腿上,因此,利用加速度传感器检测还可以减少电容传感器的误判。Another implementation manner of the embodiment of the present application is: when the electronic device includes the acceleration sensor and one or two capacitive sensors, when the electronic device is placed on the desktop, neither the acceleration sensor nor the capacitive sensor is triggered, when the electronic device is picked up The acceleration sensor is triggered. First determine if the electronic device is moving horizontally. If it is moving horizontally, it is possible to move the electronic device from one place to another on the desktop, or it may be that the electronic device is placed on the desktop of the moving vehicle. of. If the electronic device is not moving in a horizontal direction, the electronic device includes a movement in the vertical direction, and it may be that the person takes the electronic device to the leg. Improve the sensitivity of the acceleration sensor and monitor the jitter of the electronic device in the Z-axis direction. If the electronic device is placed on a person's leg, the capacitive sensor is still not triggered, possibly because of a wallet or electronic device in the trouser pocket. However, the acceleration sensor can detect the jitter of the electronic device and confirm that the electronic device is placed on the leg. Therefore, the detection of the acceleration sensor can also reduce the misjudgment of the capacitive sensor.
需要说明的是,当预设坐标轴的Z轴不在重力线方向上时,还可以根据Z轴和重力线的夹角变化量来辅助判断,例如:当电子设备放置在桌面上时,处于静止状态,Z轴和重力线的夹角几乎不会变化。而当电子设备放置在腿上时,Z轴和重力线的夹角可能会发生较明显的变化。因此,可以通过电子设备在Z轴上的加速度的数值和Z轴和重力线的夹角变化来共同判断电子设备是否发生移动以及移动的幅度,能够提高检测的正确率。It should be noted that when the Z axis of the preset coordinate axis is not in the direction of the gravity line, the judgment may be assisted according to the variation of the angle between the Z axis and the gravity line, for example, when the electronic device is placed on the desktop, it is at rest. The angle between the Z-axis and the gravity line hardly changes. When the electronic device is placed on the leg, the angle between the Z axis and the gravity line may change significantly. Therefore, it is possible to jointly determine whether the electronic device moves and the amplitude of the movement by the value of the acceleration of the electronic device on the Z-axis and the change in the angle between the Z-axis and the gravity line, and the detection accuracy can be improved.
此外,为了提高检测电子设备移动的精准度,该电子设备还可以采用陀螺仪传感器配合使用。例如:若笔记本电脑未水平放置时,当人只是旋转笔记本电脑时,可能也会造成笔记本电脑在Z轴方向发生加速度,触发加速度传感器,而此时并不认为电子设备发生了移动。因此,利用陀螺仪还可以排除电子设备仅仅是发生旋转的情况,对陀螺仪的使用可参考现有技术,在此不重复赘述。因此,本申请实施例可以结合陀螺仪对电子设备的移动做出更精准的判断。In addition, in order to improve the accuracy of detecting the movement of the electronic device, the electronic device can also be used with a gyro sensor. For example, if the notebook is not placed horizontally, when the person just rotates the laptop, it may cause the laptop to accelerate in the Z-axis direction and trigger the acceleration sensor. At this time, the electronic device is not considered to have moved. Therefore, the use of the gyroscope can also eliminate the case where the electronic device only rotates. For the use of the gyroscope, reference may be made to the prior art, and details are not described herein. Therefore, the embodiment of the present application can make a more accurate judgment on the movement of the electronic device in combination with the gyroscope.
本申请实施例提供的一种检测电子设备接近人体的方法,通过监测电子设备加速度,并根据这个加速度是否大于第一阈值,进一步确定该电子设备是否被移动。当确定电子设备被移动后,再结合电子设备放在人体上的使用时的特点,可以准确地判断出电子设备是否被移动到人体上使用,能够减少电容传感器的误判,提高检测的准确度。A method for detecting an electronic device approaching a human body according to an embodiment of the present application, by monitoring an acceleration of the electronic device, and further determining whether the electronic device is moved according to whether the acceleration is greater than a first threshold. After determining that the electronic device is moved, combined with the characteristics of the use of the electronic device on the human body, it can accurately determine whether the electronic device is moved to the human body, which can reduce the misjudgment of the capacitive sensor and improve the accuracy of the detection. .
如图6所示,为了采用电容传感器对电子设备是否放置在腿上进行进一步的验证,在步骤102之后,本申请实施例提供的一种检测电子设备接近人体的方法,还包括:As shown in FIG. 6 , in order to further verify whether the electronic device is placed on the leg by using the capacitive sensor, after the step 102, the method for detecting the proximity of the electronic device to the human body provided by the embodiment of the present application further includes:
301、若确定电子设备处于静止状态的时间超过预设时间段,则电子设备通过电容传感器监测电容值是否达到电容阈值。若该电容值未达到电容阈值时,执行步骤302;若达到电容阈值,执行步骤303。301. If it is determined that the electronic device is in a static state for more than a preset period of time, the electronic device monitors whether the capacitance value reaches a capacitance threshold by using a capacitance sensor. If the capacitance value does not reach the capacitance threshold, step 302 is performed; if the capacitance threshold is reached, step 303 is performed.
具体的,当电子设备放置在腿上时,也存在例外情况,即电子设备在预设时间段内一直保持静止状态。这时需要通过电容传感器来监测一下是否达到电容阈值。其中,电容传感器是通过监测电容值是否达到电容值来检测是否检测到人体。通常,当人体直接触摸到电容传感器时,电容传感器测得的电容值就会达到该电容阈值,需要注意的是,当电子设备放置在金属材质的桌面或散热器、或者电子设备放置在有水的桌面上,电容传感器测得电容值都有可能达到该电容阈值。Specifically, when the electronic device is placed on the leg, there is also an exception that the electronic device remains stationary for a preset period of time. At this time, a capacitive sensor is needed to monitor whether the capacitance threshold is reached. Among them, the capacitive sensor detects whether the human body is detected by monitoring whether the capacitance value reaches the capacitance value. Usually, when the human body directly touches the capacitive sensor, the capacitance value measured by the capacitive sensor reaches the capacitance threshold. It should be noted that when the electronic device is placed on a metal desktop or a heat sink, or the electronic device is placed in water, On the desktop, it is possible for the capacitance sensor to measure the capacitance value to reach the capacitance threshold.
302、电子设备确定电子设备未接近人体。302. The electronic device determines that the electronic device is not in proximity to the human body.
303、电子设备通过加速度传感器继续监测电子设备是否处于静止状态超过上述预设时间段。若是,执行步骤302;若不是,执行步骤203。 303. The electronic device continues to monitor, by the acceleration sensor, whether the electronic device is in a static state for more than the preset time period. If yes, go to step 302; if no, go to step 203.
具体的,由于电容传感器测得的电容值达到电容阈值时,电子设备可能放置在腿上,也有可能是放置在金属材质的桌面或散热器上,所以为了确定是否放在腿上,需要再一次通过加速度传感器监测电子设备,判断电子设备是否静止且静止的时间是否达到预设时间段。这里的预设时间段的时长可以与上文中的相同或不同。Specifically, since the capacitance value measured by the capacitance sensor reaches the capacitance threshold, the electronic device may be placed on the leg, or may be placed on a metal desktop or a heat sink, so in order to determine whether to put it on the leg, it is necessary to once again The electronic device is monitored by the acceleration sensor to determine whether the electronic device is stationary and stationary for a preset period of time. The duration of the preset time period here may be the same as or different from the above.
若再次监测电子设备在预设时间段内仍然静止,则可确认电容传感器误判,电子设备可能放置在金属材质的桌面或散热器上,电子设备未接近人体。If the electronic device is monitored again for a preset period of time, it can be confirmed that the capacitive sensor is misjudged, and the electronic device may be placed on a metal desktop or a heat sink, and the electronic device is not close to the human body.
在一种应用场景,电子设备是放置在腿上,也存在例外情况,即加速度传感器监测到该电子设备在预设时间段内一直处于静止状态。此时需要再通过电容传感器监测一下电容值是否达到电容阈值了,如果没有达到,则可确认电子设备没有接近人体;如果达到电容阈值,也可能是电子设备有可能放置在金属材质的桌面或散热器上,需要继续用加速度传感器监测一下电子设备静止的时间是否超过预设时间段。如果再次确认电子设备静止的时间超过了预设时间段,则电容传感器属于误判,电子设备可能放置在金属材质的桌面或散热器上,并没有放置在腿上;如果确认电子设备移动了,则执行步骤202。In an application scenario, the electronic device is placed on the leg, and there is an exception that the acceleration sensor detects that the electronic device has been stationary for a preset period of time. At this point, it is necessary to monitor whether the capacitance value reaches the capacitance threshold through the capacitive sensor. If it is not reached, it can be confirmed that the electronic device is not close to the human body; if the capacitance threshold is reached, it may be that the electronic device may be placed on a metal desktop or heat dissipation. On the device, it is necessary to continue to use the acceleration sensor to monitor whether the time when the electronic device is stationary is longer than the preset time period. If it is confirmed again that the electronic device is stationary for more than the preset time period, the capacitive sensor is misjudged, and the electronic device may be placed on a metal desktop or a heat sink, and is not placed on the leg; if it is confirmed that the electronic device is moved, Then step 202 is performed.
考虑到如果电子设备包括加速度传感器和电容传感器,有可能电容传感器先被触发,如图7所示,在步骤202之前,本申请实施例还提供了一种检测电子设备接近人体的方法,具体包括:It is considered that if the electronic device includes the acceleration sensor and the capacitive sensor, it is possible that the capacitive sensor is triggered first. As shown in FIG. 7 , before the step 202, the embodiment of the present application further provides a method for detecting the proximity of the electronic device to the human body, specifically including :
401、若电子设备确定电容传感器监测到的电容值达到电容阈值,则电子设备确定加速度传感器是否监测到任一方向上的加速度。401. If the electronic device determines that the capacitance value monitored by the capacitive sensor reaches a capacitance threshold, the electronic device determines whether the acceleration sensor detects acceleration in either direction.
具体的,如果加速度传感器监测到电子设备有移动时,执行步骤202;如果加速度传感器没有监测到电子设备移动时,执行步骤204。Specifically, if the acceleration sensor detects that the electronic device has moved, step 202 is performed; if the acceleration sensor does not detect the movement of the electronic device, step 204 is performed.
在一种应用场景,电子设备放在腿上开机,或在金属材质的桌面或散热器上开机,电容传感器被触发,而加速度传感器没被触发。此时提高加速度传感器的灵敏度,继续监测电子设备是否发生抖动,如果发生抖动,则确认在腿上。如果在预设时间段内仍然没有发生抖动,再一次监测电容传感器是否达到电容阈值,如果达到,则电子设备放置金属材质的桌面或散热器上,电容误判,后面只用加速度传感器进行判断并将加速度传感器的灵敏度调回到原来的值。In one application scenario, the electronic device is turned on on the leg, or turned on on a metal desktop or heat sink, the capacitive sensor is triggered, and the acceleration sensor is not triggered. At this time, the sensitivity of the acceleration sensor is increased, and the electronic device is continuously monitored for jitter. If the jitter occurs, it is confirmed on the leg. If there is still no jitter within the preset time period, monitor the capacitance sensor again to reach the capacitance threshold. If it is reached, the electronic device is placed on a metal desktop or a heat sink. The capacitance is misjudged, and only the acceleration sensor is used to judge and Adjust the sensitivity of the acceleration sensor back to its original value.
上述主要从各个网元之间交互的角度对本申请实施例提供的方案进行了介绍。可以理解的是,各个电子设备,例如笔记本电脑等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The solution provided by the embodiment of the present application is mainly introduced from the perspective of interaction between the network elements. It can be understood that each electronic device, such as a notebook computer, etc., in order to implement the above functions, includes hardware structures and/or software modules corresponding to the execution of the respective functions. Those skilled in the art will readily appreciate that the present application can be implemented 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 to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.
本申请实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采 用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present application may divide the functional modules of the electronic device according to the foregoing method example. For example, each functional module may be divided according to each function, or two or more functions may be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or Implemented in the form of a software function module. It should be noted that the division of the module in the embodiment of the present application is schematic, and is only a logical function division, and the actual implementation may have another division manner.
在采用对应各个功能划分各个功能模块的情况下,图8示出了上述实施例中所涉及的装置800的一种可能的结构示意图,装置800包括:监测模块801和确定模块802。监测模块801用于支持电子设备800执行图2中的过程101,图6中的过程301和303,以及图7中的401;确定模块802用于支持电子设备执行图2中的过程102和103、图5中的过程201-204,图6中的过程302。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。FIG. 8 is a schematic diagram showing a possible structure of the device 800 involved in the foregoing embodiment. The device 800 includes a monitoring module 801 and a determining module 802. The monitoring module 801 is configured to support the electronic device 800 to perform the process 101 in FIG. 2, the processes 301 and 303 in FIG. 6, and the 401 in FIG. 7; the determining module 802 is configured to support the electronic device to perform the processes 102 and 103 in FIG. Process 201-204 in FIG. 5, process 302 in FIG. All the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.
其中,监测模块801可以是如图1所示的传感器120;确定模块802如图1所示的处理器130,例如可以是中央处理器(Central Processing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。该处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。The monitoring module 801 can be the sensor 120 shown in FIG. 1; the determining module 802 is the processor 130 shown in FIG. 1, for example, can be a central processing unit (CPU), a general-purpose processor, and digital signal processing. Digital Signal Processor (DSP), Application-Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component or random combination. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor can also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
结合本申请公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(Random Access Memory,RAM)、闪存、只读存储器(Read Only Memory,ROM)、可擦除可编程只读存储器(Erasable Programmable ROM,EPROM)、电可擦可编程只读存储器(Electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。The steps of a method or algorithm described in connection with the present disclosure may be implemented in a hardware or may be implemented by a processor executing software instructions. The software instructions may be composed of corresponding software modules, which may be stored in a random access memory (RAM), a flash memory, a read only memory (ROM), an erasable programmable read only memory ( Erasable Programmable ROM (EPROM), electrically erasable programmable read only memory (EEPROM), registers, hard disk, removable hard disk, compact disk read only (CD-ROM) or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor to enable the processor to read information from, and write information to, the storage medium. Of course, the storage medium can also be an integral part of the processor.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art will appreciate that in one or more examples described above, the functions described herein can be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored in a computer readable medium or transmitted as one or more instructions or code on a computer readable medium. Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another. A storage medium may be any available media that can be accessed by a general purpose or special purpose computer.
以上所述的具体实施方式,对本申请的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本申请的具体实施方式而已,并不用于限定本申请的保护范围,凡在本申请的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本申请的保护范围之内。 The specific embodiments of the present invention have been described in detail with reference to the specific embodiments of the present application. It is to be understood that the foregoing description is only The scope of protection, any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present application are included in the scope of protection of the present application.

Claims (27)

  1. 一种检测电子设备接近人体的方法,其特征在于,所述方法包括:A method for detecting an electronic device approaching a human body, the method comprising:
    所述电子设备监测所述电子设备在预设方向上的加速度,所述预设方向为非水平方向;The electronic device monitors an acceleration of the electronic device in a preset direction, where the preset direction is a non-horizontal direction;
    所述电子设备根据所述预设方向上的加速度确定所述电子设备是否处于静止状态,且处于所述静止状态的时间是否超过预设时间段;Determining, by the electronic device, whether the electronic device is in a stationary state according to an acceleration in the preset direction, and whether a time in the static state exceeds a preset time period;
    若确定所述电子设备不处于所述静止状态,或处于所述静止状态的时间不超过所述预设时间段,则所述电子设备确定所述电子设备接近人体。The electronic device determines that the electronic device is close to the human body if it is determined that the electronic device is not in the stationary state, or the time in the stationary state does not exceed the preset time period.
  2. 根据权利要求1所述的方法,其特征在于,所述电子设备包括加速度传感器,所述电子设备监测所述电子设备在预设方向上的加速度包括:The method according to claim 1, wherein the electronic device comprises an acceleration sensor, and the electronic device monitoring the acceleration of the electronic device in a preset direction comprises:
    所述电子设备通过所述加速度传感器监测所述电子设备在所述预设方向上的加速度。The electronic device monitors an acceleration of the electronic device in the preset direction by the acceleration sensor.
  3. 根据权利要求2所述的方法,其特征在于,在所述电子设备通过所述加速度传感器监测所述电子设备在所述预设方向上的加速度之前,所述方法还包括:所述电子设备提升所述加速度传感器的灵敏度。The method according to claim 2, wherein before the electronic device monitors the acceleration of the electronic device in the preset direction by the acceleration sensor, the method further comprises: upgrading the electronic device The sensitivity of the acceleration sensor.
  4. 根据权利要求2或3所述的方法,其特征在于,在所述电子设备监测所述电子设备在预设方向上的加速度之前,所述方法还包括:The method according to claim 2 or 3, wherein before the electronic device monitors the acceleration of the electronic device in a preset direction, the method further includes:
    若所述电子设备确定所述加速度传感器监测到任一方向上的加速度,则确定所述电子设备是否在水平方向移动。If the electronic device determines that the acceleration sensor detects acceleration in either direction, it is determined whether the electronic device is moving in a horizontal direction.
  5. 根据权利要求4所述的方法,其特征在于,所述电子设备确定所述电子设备是否在水平方向移动包括:The method according to claim 4, wherein the determining, by the electronic device, whether the electronic device is moving in a horizontal direction comprises:
    所述电子设备按照预设时间间隔读取所述加速度传感器在所述任一方向上监测到的加速度;Reading, by the electronic device, the acceleration detected by the acceleration sensor in the any direction according to a preset time interval;
    若存在连续N次监测到的所述预设方向上的加速度大于或等于第一阈值,则所述电子设备确定所述电子设备被移动,且不在所述水平方向移动;If there is a continuous N times of monitoring that the acceleration in the preset direction is greater than or equal to the first threshold, the electronic device determines that the electronic device is moved and does not move in the horizontal direction;
    若不存在连续N次监测到的所述预设方向上的加速度大于或等于所述第一阈值时,且存在连续N次监测到的所述水平方向上的加速度大于所述第一阈值,则所述电子设备确定所述电子设备在所述水平方向移动;If there is no continuous acceleration detected in the preset direction that is greater than or equal to the first threshold, and the acceleration in the horizontal direction that is continuously monitored N times is greater than the first threshold, The electronic device determines that the electronic device moves in the horizontal direction;
    其中,N为大于零的正整数。Where N is a positive integer greater than zero.
  6. 根据权利要求5所述的方法,其特征在于,所述电子设备根据所述预设方向上的加速度确定所述电子设备是否处于静止状态包括:The method according to claim 5, wherein the determining, by the electronic device, whether the electronic device is in a stationary state according to the acceleration in the preset direction comprises:
    若所述电子设备确定所述预设方向上的加速度小于或等于第二阈值,则所述电子设备确定所述电子设备处于所述静止状态;若所述电子设备确定所述预设方向上的加速度大于所述第二阈值,则所述电子设备确定所述电子设备不处于所述静止状态;If the electronic device determines that the acceleration in the preset direction is less than or equal to the second threshold, the electronic device determines that the electronic device is in the stationary state; if the electronic device determines the preset direction The acceleration is greater than the second threshold, and the electronic device determines that the electronic device is not in the stationary state;
    其中,所述第二阈值小于所述第一阈值。The second threshold is smaller than the first threshold.
  7. 根据权利要求4-6任一项所述的方法,其特征在于,所述电子设备还包括电容传感器,在所述电子设备确定所述加速度传感器监测到任一方向上的加速度之前,所述方法还包括: The method according to any one of claims 4-6, wherein the electronic device further comprises a capacitance sensor, the method further before the electronic device determines that the acceleration sensor monitors acceleration in either direction Includes:
    所述电子设备确定所述电容传感器监测到的电容值未达到设定的电容阈值,并确定所述加速度传感器没有监测到任一方向上的加速度。The electronic device determines that the capacitance value monitored by the capacitance sensor does not reach the set capacitance threshold, and determines that the acceleration sensor does not monitor the acceleration in either direction.
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method of claim 7, wherein the method further comprises:
    若所述电子设备确定所述电子设备处于所述静止状态的时间超过所述预设时间段,则所述电子设备通过所述电容传感器监测所述电容值是否达到所述电容阈值;If the electronic device determines that the electronic device is in the static state for more than the preset time period, the electronic device monitors, by the capacitive sensor, whether the capacitance value reaches the capacitance threshold;
    若未达到所述电容阈值,则所述电子设备确定所述电子设备未接近人体;If the capacitance threshold is not reached, the electronic device determines that the electronic device is not in proximity to the human body;
    若达到所述电容阈值,则所述电子设备通过所述加速度传感器继续监测所述电子设备是否处于所述静止状态超过所述预设时间段;If the capacitance threshold is reached, the electronic device continues to monitor, by the acceleration sensor, whether the electronic device is in the stationary state for more than the preset time period;
    若通过所述加速度传感器继续监测所述电子设备处于所述静止状态超过所述预设时间段,则所述电子设备确定所述电子设备未接近人体;If the electronic device is continuously monitored by the acceleration sensor to be in the stationary state for more than the preset time period, the electronic device determines that the electronic device is not in proximity to the human body;
    若通过所述加速度传感器继续监测所述电子设备处于所述静止状态不超过所述预设时间段,则所述电子设备继续监测所述电子设备是否在所述水平方向移动。If it is continuously monitored by the acceleration sensor that the electronic device is in the stationary state for less than the preset time period, the electronic device continues to monitor whether the electronic device moves in the horizontal direction.
  9. 根据权利要求7或8所述的方法,其特征在于,在所述电子设备确定所述加速度传感器监测到任一方向上的加速度之前,所述方法还包括:The method according to claim 7 or 8, wherein before the electronic device determines that the acceleration sensor detects acceleration in either direction, the method further comprises:
    若所述电子设备确定所述电容传感器监测到的所述所述电容值达到所述电容阈值,则所述电子设备确定所述加速度传感器是否监测到任一方向上的加速度。If the electronic device determines that the capacitance value monitored by the capacitance sensor reaches the capacitance threshold, the electronic device determines whether the acceleration sensor monitors acceleration in either direction.
  10. 一种检测电子设备接近人体的装置,其特征在于,所述装置包括:A device for detecting an electronic device approaching a human body, characterized in that the device comprises:
    监测模块,用于监测电子设备在预设方向上的加速度,所述预设方向为非水平方向;a monitoring module, configured to monitor an acceleration of the electronic device in a preset direction, where the preset direction is a non-horizontal direction;
    确定模块,用于根据所述监测模块监测的所述预设方向上的加速度确定所述电子设备是否处于静止状态,且处于所述静止状态的时间是否超过预设时间段;a determining module, configured to determine, according to the acceleration in the preset direction that is monitored by the monitoring module, whether the electronic device is in a static state, and whether the time in the static state exceeds a preset time period;
    所述确定模块,还用于若确定所述电子设备不处于所述静止状态,或处于所述静止状态的时间不超过所述预设时间段,则确定所述电子设备接近人体。The determining module is further configured to determine that the electronic device is close to the human body if it is determined that the electronic device is not in the static state, or the time in the static state does not exceed the preset time period.
  11. 根据权利要求10所述的装置,其特征在于,所述监测模块包括加速度传感器;所述加速度传感器用于监测所述电子设备在所述预设方向上的加速度。The apparatus according to claim 10, wherein said monitoring module comprises an acceleration sensor; said acceleration sensor is configured to monitor an acceleration of said electronic device in said predetermined direction.
  12. 根据权利要求11所述的装置,其特征在于,所述确定模块,还用于提升所述加速度传感器的灵敏度。The device according to claim 11, wherein the determining module is further configured to increase the sensitivity of the acceleration sensor.
  13. 根据权利要求11或12所述的装置,其特征在于,所述确定模块,还用于若所述加速度传感器监测到任一方向上的加速度,则确定所述电子设备是否在水平方向移动。The apparatus according to claim 11 or 12, wherein the determining module is further configured to determine whether the electronic device moves in a horizontal direction if the acceleration sensor detects acceleration in either direction.
  14. 根据权利要求13所述的装置,其特征在于,所述确定模块,还用于按照预设时间间隔读取所述加速度传感器在所述任一方向上监测到的加速度;The device according to claim 13, wherein the determining module is further configured to read an acceleration detected by the acceleration sensor in the any direction according to a preset time interval;
    若存在连续N次监测到的所述预设方向上的加速度大于或等于第一阈值,则确定所述电子设备被移动,且不在所述水平方向移动; If there is a continuous N times of monitoring that the acceleration in the preset direction is greater than or equal to the first threshold, determining that the electronic device is moved and does not move in the horizontal direction;
    若不存在连续N次监测到的所述预设方向上的加速度大于或等于所述第一阈值时,且存在连续N次监测到的所述水平方向上的加速度大于所述第一阈值,则确定所述电子设备在所述水平方向移动;If there is no continuous acceleration detected in the preset direction that is greater than or equal to the first threshold, and the acceleration in the horizontal direction that is continuously monitored N times is greater than the first threshold, Determining that the electronic device moves in the horizontal direction;
    其中,N为大于零的正整数。Where N is a positive integer greater than zero.
  15. 根据权利要求14任一项所述的装置,其特征在于,所述确定模块,还用于若确定所述监测模块监测到的所述预设方向上的加速度小于或等于第二阈值,则确定所述电子设备处于所述静止状态;若确定所述监测模块监测到的所述预设方向上的加速度大于所述第二阈值,则确定所述电子设备不处于所述静止状态;The device according to any one of claims 1 to 4, wherein the determining module is further configured to: if it is determined that the acceleration in the preset direction monitored by the monitoring module is less than or equal to a second threshold, The electronic device is in the quiescent state; if it is determined that the acceleration in the preset direction monitored by the monitoring module is greater than the second threshold, determining that the electronic device is not in the quiescent state;
    其中,所述第二阈值小于所述第一阈值。The second threshold is smaller than the first threshold.
  16. 根据权利要求13-15任一项所述的装置,其特征在于,所述监测模块还包括电容传感器;所述电容传感器,用于监测电容值是否达到设定的电容阈值;The device according to any one of claims 13-15, wherein the monitoring module further comprises a capacitance sensor; the capacitance sensor is configured to monitor whether the capacitance value reaches a set capacitance threshold;
    所述确定模块,还用于确定所述电容传感器监测到的所述电容值未达到设定的所述电容阈值,并确定所述加速度传感器没有监测到任一方向上的加速度。The determining module is further configured to determine that the capacitance value monitored by the capacitive sensor does not reach the set capacitance threshold, and determine that the acceleration sensor does not monitor acceleration in either direction.
  17. 根据权利要求16所述的装置,其特征在于,所述电容传感器,还用于若所述确定模块确定所述电子设备处于所述静止状态的时间超过所述预设时间段,则监测所述电容值是否达到所述电容阈值;The device according to claim 16, wherein the capacitance sensor is further configured to: if the determining module determines that the electronic device is in the stationary state for more than the preset time period, monitoring the Whether the capacitance value reaches the capacitance threshold;
    所述确定模块,还用于若所述电容传感器监测到所述电容值未达到所述电容阈值,则确定所述电子设备未接近人体;The determining module is further configured to: if the capacitance sensor detects that the capacitance value does not reach the capacitance threshold, determine that the electronic device is not close to the human body;
    所述确定模块,还用于若所述电容传感器监测到的所述电容值达到的所述电容阈值,则继续通过所述加速度传感器监测所述电子设备,确定所述电子设备是否处于所述静止状态超过所述预设时间段;The determining module is further configured to: if the capacitance threshold detected by the capacitance sensor reaches the capacitance threshold, continue to monitor the electronic device by using the acceleration sensor to determine whether the electronic device is in the static state The state exceeds the preset time period;
    所述确定模块,还用于若确定所述电子设备处于所述静止状态超过所述预设时间段,则确定所述电子设备未接近人体;The determining module is further configured to: if it is determined that the electronic device is in the static state for more than the preset time period, determine that the electronic device is not in proximity to a human body;
    所述确定模块,还用于若通过所述加速度传感器确定所述电子设备处于所述静止状态不超过所述预设时间段,则继续监测所述电子设备是否在所述水平方向移动。The determining module is further configured to continue to monitor whether the electronic device moves in the horizontal direction if it is determined by the acceleration sensor that the electronic device is in the stationary state does not exceed the preset time period.
  18. 根据权利要求16或17所述的装置,其特征在于,所述监测模块,还用于若通过所述电容传感器监测到的所述所述电容值达到所述电容阈值,则确定是否监测到任一方向上的加速度。The device according to claim 16 or 17, wherein the monitoring module is further configured to: if the capacitance value detected by the capacitance sensor reaches the capacitance threshold, determine whether to monitor Acceleration in one direction.
  19. 一种检测电子设备接近人体的设备,其特征在于,所述设备包括传感器和处理器;A device for detecting an electronic device approaching a human body, characterized in that the device comprises a sensor and a processor;
    所述传感器,用于监测电子设备在预设方向上的加速度,所述预设方向为非水平方向;The sensor is configured to monitor an acceleration of the electronic device in a preset direction, where the preset direction is a non-horizontal direction;
    所述处理器,用于根据所述传感器监测的所述预设方向上的加速度确定所述电子设备是否处于静止状态,且处于所述静止状态的时间是否超过预设时间段; The processor is configured to determine, according to the acceleration in the preset direction that is monitored by the sensor, whether the electronic device is in a static state, and whether the time in the static state exceeds a preset time period;
    所述处理器,还用于若确定所述电子设备不处于所述静止状态,或处于所述静止状态的时间不超过所述预设时间段,则确定所述电子设备接近人体。The processor is further configured to determine that the electronic device is close to the human body if it is determined that the electronic device is not in the static state, or the time in the static state does not exceed the preset time period.
  20. 根据权利要求19所述的设备,其特征在于,所述传感器包括加速度传感器,所述加速度传感器用于监测所述电子设备在所述预设方向上的加速度。The apparatus according to claim 19, wherein said sensor comprises an acceleration sensor for monitoring an acceleration of said electronic device in said predetermined direction.
  21. 根据权利要求20所述的设备,其特征在于,所述处理器,还用于提升所述加速度传感器的灵敏度。The device according to claim 20, wherein said processor is further configured to increase the sensitivity of said acceleration sensor.
  22. 根据权利要求20或21所述的设备,其特征在于,所述处理器,还用于若所述加速度传感器监测到任一方向上的加速度,则确定所述电子设备是否在水平方向移动。The device according to claim 20 or 21, wherein the processor is further configured to determine whether the electronic device moves in a horizontal direction if the acceleration sensor detects acceleration in either direction.
  23. 根据权利要求22所述的设备,其特征在于,所述处理器,还用于按照预设时间间隔读取所述加速度传感器在所述任一方向上监测到的加速度;The device according to claim 22, wherein the processor is further configured to read an acceleration detected by the acceleration sensor in the any direction according to a preset time interval;
    若存在连续N次监测到的所述预设方向上的加速度大于或等于第一阈值,则确定所述电子设备被移动,且不在所述水平方向移动;If there is a continuous N times of monitoring that the acceleration in the preset direction is greater than or equal to the first threshold, determining that the electronic device is moved and does not move in the horizontal direction;
    若不存在连续N次监测到的所述预设方向上的加速度大于或等于所述第一阈值时,且存在连续N次监测到的所述水平方向上的加速度大于所述第一阈值,则确定所述电子设备在所述水平方向移动;If there is no continuous acceleration detected in the preset direction that is greater than or equal to the first threshold, and the acceleration in the horizontal direction that is continuously monitored N times is greater than the first threshold, Determining that the electronic device moves in the horizontal direction;
    其中,N为大于零的正整数。Where N is a positive integer greater than zero.
  24. 根据权利要求23所述的设备,其特征在于,所述处理器,还用于若确定所述传感器监测到的所述预设方向上的加速度小于或等于第二阈值,则确定所述电子设备处于所述静止状态;若确定所述传感器监测到的所述预设方向上的加速度大于所述第二阈值,则确定所述电子设备不处于所述静止状态;The device according to claim 23, wherein the processor is further configured to determine the electronic device if it is determined that the acceleration in the preset direction monitored by the sensor is less than or equal to a second threshold In the quiescent state; if it is determined that the acceleration in the preset direction monitored by the sensor is greater than the second threshold, determining that the electronic device is not in the quiescent state;
    其中,所述第二阈值小于所述第一阈值。The second threshold is smaller than the first threshold.
  25. 根据权利要求22-24任一项所述的设备,其特征在于,所述传感器还包括电容传感器;所述电容传感器,用于监测电容值是否达到设定的电容阈值;The device according to any one of claims 22 to 24, wherein the sensor further comprises a capacitance sensor; the capacitance sensor is configured to monitor whether the capacitance value reaches a set capacitance threshold;
    所述处理器,还用于确定所述电容传感器监测到的所述电容值未达到设定的所述电容阈值,并确定所述加速度传感器没有监测到任一方向上的加速度。The processor is further configured to determine that the capacitance value monitored by the capacitance sensor does not reach the set capacitance threshold, and determine that the acceleration sensor does not monitor acceleration in either direction.
  26. 根据权利要求25所述的设备,其特征在于,所述电容传感器,还用于若所述处理器确定所述电子设备处于所述静止状态的时间超过所述预设时间段,则监测所述电容值是否达到所述电容阈值;The device according to claim 25, wherein the capacitance sensor is further configured to monitor the electronic device if the time when the processor determines that the electronic device is in the stationary state exceeds the preset time period Whether the capacitance value reaches the capacitance threshold;
    所述处理器,还用于若所述电容传感器监测到所述电容值未达到所述电容阈值,则确定所述电子设备未接近人体;The processor is further configured to: if the capacitance sensor detects that the capacitance value does not reach the capacitance threshold, determine that the electronic device is not close to the human body;
    所述处理器,还用于若所述电容传感器监测到所述电容值达到所述电容阈值,则继续通过所述加速度传感器监测所述电子设备,确定所述电子设备是否处于所述静止状态超过所述预设时间段;The processor is further configured to: if the capacitance sensor detects that the capacitance value reaches the capacitance threshold, continue to monitor the electronic device by using the acceleration sensor to determine whether the electronic device is in the static state The preset time period;
    所述处理器,还用于若确定所述电子设备处于所述静止状态超过所述预设时间段,则确定所述电子设备未接近人体;The processor is further configured to: if it is determined that the electronic device is in the static state for more than the preset time period, determine that the electronic device is not in proximity to a human body;
    所述处理器,还用于若通过所述加速度传感器确定所述电子设备处于所述静止状态不超过所述预设时间段,则继续监测所述电子设备是否在所述水平方 向移动。The processor is further configured to: if it is determined by the acceleration sensor that the electronic device is in the static state, does not exceed the preset time period, continue to monitor whether the electronic device is in the horizontal Move to.
  27. 根据权利要求25或26所述的设备,其特征在于,所述加速度传感器,还用于若通过所述电容传感器监测到的所述所述电容值达到所述电容阈值,则确定是否监测到任一方向上的加速度。 The device according to claim 25 or 26, wherein the acceleration sensor is further configured to determine whether the monitoring is reached if the capacitance value monitored by the capacitance sensor reaches the capacitance threshold Acceleration in one direction.
PCT/CN2017/081901 2017-02-16 2017-04-25 Method, apparatus, and device for detecting proximity of electronic device to human body WO2018149030A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201780009700.9A CN108700938B (en) 2017-02-16 2017-04-25 Method, device and equipment for detecting electronic equipment approaching human body

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710084717.2 2017-02-16
CN201710084717 2017-02-16

Publications (1)

Publication Number Publication Date
WO2018149030A1 true WO2018149030A1 (en) 2018-08-23

Family

ID=63170492

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/081901 WO2018149030A1 (en) 2017-02-16 2017-04-25 Method, apparatus, and device for detecting proximity of electronic device to human body

Country Status (2)

Country Link
CN (1) CN108700938B (en)
WO (1) WO2018149030A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115765802A (en) * 2022-10-24 2023-03-07 维沃移动通信有限公司 Electronic device, detection method, and readable storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685305A (en) * 2011-03-14 2012-09-19 深圳市同洲软件有限公司 Contextual mode switching method of mobile terminal and mobile terminal
CN102984372A (en) * 2012-11-21 2013-03-20 广东欧珀移动通信有限公司 Method and device for extinguishing and lighting screen and mobile terminal
CN103248747A (en) * 2012-02-09 2013-08-14 中兴通讯股份有限公司 Method for adjusting electromagnetic wave energy absorption ratio based on sensor and mobile terminal
CN103631494A (en) * 2013-11-15 2014-03-12 联想(北京)有限公司 Information processing method and electronic equipment
CN104238728A (en) * 2013-06-19 2014-12-24 联想(北京)有限公司 State judging method and state judging device
CN104639732A (en) * 2013-11-13 2015-05-20 上海斐讯数据通信技术有限公司 Electronic equipment and method for automatically lightening screen
US20150201387A1 (en) * 2014-01-10 2015-07-16 Microsoft Corporation Radio Frequency (RF) Attenuation Functions for Specific Absorption Rate (SAR) Compliance
CN105516442A (en) * 2014-09-25 2016-04-20 宇龙计算机通信科技(深圳)有限公司 Event prompting method and mobile terminal
CN105635467A (en) * 2015-12-31 2016-06-01 上海摩软通讯技术有限公司 Mobile terminal and promoting method thereof
CN105866469A (en) * 2016-03-25 2016-08-17 广东欧珀移动通信有限公司 Terminal acceleration data processing method and device
CN105955484A (en) * 2016-05-07 2016-09-21 乐视控股(北京)有限公司 Control method and apparatus based on motion acceleration of terminal
CN106034351A (en) * 2015-03-09 2016-10-19 联想(北京)有限公司 Transmission power adjusting method and electronic equipment
US9490885B1 (en) * 2015-05-01 2016-11-08 Amazon Technologies, Inc. Proximity sensor and antenna system arrangement for metal housing

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8432322B2 (en) * 2009-07-17 2013-04-30 Apple Inc. Electronic devices with capacitive proximity sensors for proximity-based radio-frequency power control
US20120016641A1 (en) * 2010-07-13 2012-01-19 Giuseppe Raffa Efficient gesture processing
CN105939417A (en) * 2016-06-03 2016-09-14 上海摩软通讯技术有限公司 Mobile terminal and signal transmitting power adjusting method of mobile terminal

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685305A (en) * 2011-03-14 2012-09-19 深圳市同洲软件有限公司 Contextual mode switching method of mobile terminal and mobile terminal
CN103248747A (en) * 2012-02-09 2013-08-14 中兴通讯股份有限公司 Method for adjusting electromagnetic wave energy absorption ratio based on sensor and mobile terminal
CN102984372A (en) * 2012-11-21 2013-03-20 广东欧珀移动通信有限公司 Method and device for extinguishing and lighting screen and mobile terminal
CN104238728A (en) * 2013-06-19 2014-12-24 联想(北京)有限公司 State judging method and state judging device
CN104639732A (en) * 2013-11-13 2015-05-20 上海斐讯数据通信技术有限公司 Electronic equipment and method for automatically lightening screen
CN103631494A (en) * 2013-11-15 2014-03-12 联想(北京)有限公司 Information processing method and electronic equipment
US20150201387A1 (en) * 2014-01-10 2015-07-16 Microsoft Corporation Radio Frequency (RF) Attenuation Functions for Specific Absorption Rate (SAR) Compliance
CN105516442A (en) * 2014-09-25 2016-04-20 宇龙计算机通信科技(深圳)有限公司 Event prompting method and mobile terminal
CN106034351A (en) * 2015-03-09 2016-10-19 联想(北京)有限公司 Transmission power adjusting method and electronic equipment
US9490885B1 (en) * 2015-05-01 2016-11-08 Amazon Technologies, Inc. Proximity sensor and antenna system arrangement for metal housing
CN105635467A (en) * 2015-12-31 2016-06-01 上海摩软通讯技术有限公司 Mobile terminal and promoting method thereof
CN105866469A (en) * 2016-03-25 2016-08-17 广东欧珀移动通信有限公司 Terminal acceleration data processing method and device
CN105955484A (en) * 2016-05-07 2016-09-21 乐视控股(北京)有限公司 Control method and apparatus based on motion acceleration of terminal

Also Published As

Publication number Publication date
CN108700938B (en) 2021-02-09
CN108700938A (en) 2018-10-23

Similar Documents

Publication Publication Date Title
CN107567607B (en) Accelerometer-based Hall effect sensor filtering for computing devices
EP3100133B1 (en) Buttonless display activation
US10353571B2 (en) Method and apparatus for preventing touchscreen misoperation
US10559273B2 (en) Display screen control method and apparatus and terminal
KR20180102701A (en) Mechanism to avoid unintentional user interaction with a convertible mobile device during conversion
KR20140014266A (en) Motion-based device operations
CN108536377A (en) Display control method and device, terminal, computer readable storage medium
US11719718B2 (en) System and method for determining whether an electronic device is located on a stationary or stable surface
TW201344537A (en) Electronic device and protection method and protection system of touch screen thereof
JP2014119931A (en) Electronic apparatus and control program for touch sensor
WO2018149030A1 (en) Method, apparatus, and device for detecting proximity of electronic device to human body
CN102073281A (en) Method and device for avoiding erroneous touch of power switch
US9417667B2 (en) Methods and devices for touchscreen eavesdropping prevention
CA2851705C (en) Methods and devices for touchscreen eavesdropping prevention
JP2013157055A (en) Information processing device, information processing method, and program
TWM403684U (en) Portable computer
TW201537443A (en) Method for palm rejection and electronic apparatus using the same
US20240231510A9 (en) System and method for determining whether an electronic device is located on a stationary or stable surface
US20240134468A1 (en) System and method for determining whether an electronic device is located on a stationary or stable surface
JP6158050B2 (en) Electronic device, method and program
JP2015035110A (en) Display device, and method of controlling display device
CN117519803A (en) Device pickup detection
JP2015164253A (en) Communication terminal and control method
TW201407473A (en) Operation system wake-up module and method thereof
JP2015055935A (en) Display device and control method of the same

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

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

Country of ref document: EP

Kind code of ref document: A1