CN111694419A - Sensor control method and electronic device - Google Patents

Sensor control method and electronic device Download PDF

Info

Publication number
CN111694419A
CN111694419A CN202010404088.9A CN202010404088A CN111694419A CN 111694419 A CN111694419 A CN 111694419A CN 202010404088 A CN202010404088 A CN 202010404088A CN 111694419 A CN111694419 A CN 111694419A
Authority
CN
China
Prior art keywords
sensor
electronic equipment
electronic device
target
target sensor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010404088.9A
Other languages
Chinese (zh)
Inventor
童庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010404088.9A priority Critical patent/CN111694419A/en
Publication of CN111694419A publication Critical patent/CN111694419A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a sensor control method and electronic equipment. The method comprises the following steps: the method comprises the steps that under the condition that the electronic equipment is in a communication state, the distance between the electronic equipment and a target object is detected through a first target sensor in the electronic equipment, under the condition that the distance between the electronic equipment and the target object is smaller than or equal to a preset threshold value, the specific absorption rate of the electronic equipment is reduced, and a power supply in the electronic equipment is controlled to stop supplying power to a second target sensor in the electronic equipment. Therefore, when the electronic equipment is in a communication state, the specific absorption rate of the electronic equipment is reduced, and the power consumption of the electronic equipment is reduced, namely the power consumption of the electronic equipment is reduced on the basis of ensuring the reduction of the specific absorption rate.

Description

Sensor control method and electronic device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a sensor control method and an electronic device.
Background
With the rapid development of electronic devices and mobile communication technologies, applications of electronic devices are becoming more and more extensive, and the use duration of electronic devices becomes a focus of increasing attention of users, and reducing the power consumption of electronic devices can prolong the use duration of electronic devices. Meanwhile, with the enhancement of health consciousness of users, the attention on the radiation energy of the electronic equipment is increasing, wherein the Specific Absorption Rate (SAR) is a measurement index of the electromagnetic radiation of the electronic equipment, the specific absorption Rate refers to the electromagnetic radiation energy absorbed by a substance with unit mass in unit time, and the radiation energy of the electronic equipment can be reduced by reducing the SAR.
In a conventional electronic device, an SAR sensor and an infrared sensor are stacked, and the SAR sensor and the infrared sensor are independent in function. When the SAR sensor detects that a human body approaches the electronic equipment, the electronic equipment is triggered to reduce SAR, and when the infrared sensor judges that an object or the human body approaches the electronic equipment, the screen is prohibited to be lightened, so that the power consumption of the electronic equipment can be reduced.
However, in a call scenario, the functions of the SAR sensor and the infrared sensor are similar, but the SAR sensor and the infrared sensor are always in the working process, which increases the power consumption of the electronic device.
Disclosure of Invention
The embodiment of the invention provides a sensor control method and electronic equipment, and aims to solve the problem that in the prior art, in a call scene, the power consumption of the electronic equipment is increased because functions of an SAR sensor and an infrared sensor are similar but are always in a working process.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a sensor control method, which is applied to an electronic device, and the method includes:
detecting a distance between the electronic equipment and a target object through a first target sensor in the electronic equipment under the condition that the electronic equipment is in a communication state;
when the distance between the electronic equipment and the target object is smaller than or equal to the preset threshold, reducing the specific absorption rate of the electronic equipment, and controlling a power supply in the electronic equipment to stop supplying power to a second target sensor in the electronic equipment;
wherein, in the case that the first target sensor is an infrared sensor, the second target sensor is a specific absorption rate SAR sensor; or, in the case that the first target sensor is the SAR sensor, the second target sensor is the infrared sensor.
In a second aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
the detection module is used for detecting the distance between the electronic equipment and a target object through a first target sensor in the electronic equipment under the condition that the electronic equipment is in a communication state;
the control module is used for reducing the specific absorption rate of the electronic equipment and controlling a power supply in the electronic equipment to stop supplying power to a second target sensor in the electronic equipment under the condition that the distance between the electronic equipment and the target object is smaller than or equal to the preset threshold value;
wherein, in the case that the first target sensor is an infrared sensor, the second target sensor is a specific absorption rate SAR sensor; or, in the case that the first target sensor is the SAR sensor, the second target sensor is the infrared sensor.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the sensor control method.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the sensor control method are implemented.
In the embodiment of the invention, when the electronic equipment is in a communication state, the distance between the electronic equipment and the target object is detected through the first target sensor in the electronic equipment, and when the distance between the electronic equipment and the target object is smaller than or equal to the preset threshold value, the specific absorption rate of the electronic equipment is reduced, and the power supply in the electronic equipment is controlled to stop supplying power to the second target sensor in the electronic equipment. Therefore, when the electronic equipment is in a communication state, the specific absorption rate of the electronic equipment is reduced, and the power consumption of the electronic equipment is reduced, namely the power consumption of the electronic equipment is reduced on the basis of ensuring the reduction of the specific absorption rate.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 shows a flow chart of a sensor control method of one embodiment of the present invention;
FIG. 2 shows a block diagram of an electronic device of one embodiment of the invention;
FIG. 3 shows a flow chart of a sensor control method of another embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a sensor control apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart of a sensor control method according to an embodiment of the present invention is shown, and is applied to a first electronic device, where the method specifically includes the following steps:
step 101, under the condition that the electronic equipment is in a communication state, detecting the distance between the electronic equipment and a target object through a first target sensor in the electronic equipment.
And 102, reducing the specific absorption rate of the electronic equipment and controlling a power supply in the electronic equipment to stop supplying power to a second target sensor in the electronic equipment under the condition that the distance between the electronic equipment and the target object is smaller than or equal to a preset threshold value.
Wherein, under the condition that the first target sensor is an infrared sensor, the second target sensor is a specific absorption rate SAR sensor; or, in the case where the first target sensor is a SAR sensor, the second target sensor is an infrared sensor.
The traditional electronic equipment design is that an SAR sensor and an infrared sensor are stacked and have independent functions. Although the two sensor application scenarios are different, there is a common part of the functionality, namely distance detection. The SAR sensor can detect whether a living object (such as a human body) approaches by changing capacitance on an induction channel of the SAR sensor and converting the change of the capacitance into the change of voltage when the living object approaches the SAR sensor. The infrared sensor judges whether a human body or an object approaches by utilizing the infrared reflection quantity received by the receiving end. When the electronic equipment is in a call scene, the distance detection functions of the SAR sensor and the infrared sensor coexist, so that the power consumption of the system is increased, and the energy waste is caused.
In view of the above technical problems, in the embodiment of the present invention, when an electronic device is in a state of answering a call or dialing a call, it may be determined whether the electronic device is in a communication state, and when the electronic device is in the communication state, a first target sensor in the electronic device detects a distance between the electronic device and a target object, and when the distance is less than or equal to a preset threshold, the specific absorption rate of the electronic device is reduced, and a power supply in the electronic device is controlled to stop supplying power to a second target sensor in the electronic device, and when the first target sensor is an infrared sensor, the second target sensor is an SAR sensor; or, in the case that the first target sensor is an SAR sensor, the second target sensor is an infrared sensor, that is, only one of the infrared sensor and the SAR sensor is used to detect the distance between the electronic device and the target object. And in the case that the distance is detected to be less than or equal to the preset threshold value, reducing the specific absorption rate of the electronic device, and controlling a power supply in the electronic device to stop supplying power to a second target sensor in the electronic device, so that the specific absorption rate of the electronic device is reduced, and the power consumption of the electronic device is reduced. For example, in a case where the first target sensor is an infrared sensor, the infrared sensor detects a distance between the electronic device and a target object (in this case, the SAR sensor does not participate in detecting the distance), and in a case where the distance is less than or equal to a preset threshold, the electronic device performs an operation of reducing the SAR, and controls the power supply to stop supplying power to the SAR sensor in the electronic device, so that the SAR sensor stops operating, thereby saving the electric quantity of the power supply and causing the SAR sensor to consume no electric quantity at this time. In the case where the first target sensor is an infrared sensor, the target object may be a human body or an object.
Or, in the case that the first target sensor is an SAR sensor, the SAR sensor detects a distance between the electronic device and the target object (in this case, the infrared sensor does not participate in detecting the distance), and in the case that the distance is smaller than or equal to a preset threshold, the electronic device performs an operation of reducing the SAR, and controls the power supply to stop supplying power to the infrared sensor in the electronic device, so that the infrared sensor stops working, thereby saving the electric quantity of the power supply. In the case where the first target sensor is an SAR sensor, the target may be a human body.
Therefore, through the steps 101 and 102, when the electronic device is in a communication state, not only the specific absorption rate of the electronic device can be reduced, but also the power consumption of the electronic device can be reduced.
In the sensor control method provided by this embodiment, when the electronic device is in a communication state, the first target sensor in the electronic device detects a distance between the electronic device and the target object, and when the distance between the electronic device and the target object is less than or equal to a preset threshold, the specific absorption rate of the electronic device is reduced, and the power supply in the electronic device is controlled to stop supplying power to the second target sensor in the electronic device. Therefore, when the electronic equipment is in a communication state, the specific absorption rate of the electronic equipment is reduced, and the power consumption of the electronic equipment is reduced, namely the power consumption of the electronic equipment is reduced on the basis of ensuring the reduction of the specific absorption rate.
Referring to fig. 2, a block diagram of an electronic device according to an embodiment of the present invention is shown, a switch is disposed between a power supply and a SAR sensor, in fig. 2, a first target sensor is an infrared sensor, a second target sensor is a system architecture diagram, which is shown by way of example, of the SAR sensor, a processor controls the switch to be opened, so that the power supply stops supplying power to the SAR sensor, and the processor controls the switch to be closed, so that the power supply supplies power to the SAR sensor. It can be understood that the power consumption reduction scheme when the first target sensor is the SAR sensor and the second target sensor is the infrared sensor can be realized only by interchanging the positions of the infrared sensor and the SAR sensor in fig. 2. That is, a switch is arranged between the power supply and the second target sensor, the processor controls the switch to be switched off, so that the power supply stops supplying power to the second target sensor, and the processor controls the switch to be switched on, so that the power supply supplies power to the second target sensor.
Referring to fig. 3, which shows a flow chart of a sensor control method according to another embodiment of the present invention, based on fig. 2, the method provided by the present embodiment includes the following steps:
step 301, judging whether the electronic equipment is in a communication state.
In the case that the electronic device is in a communication state, executing step 302; in the case that the electronic device is not in the communication state, step 303 is executed, and after step 303 is executed, step 301 may be continuously executed to continuously determine whether the electronic device is in the communication state.
Step 302, detecting a distance between the electronic device and a target object through a first target sensor in the electronic device.
Step 304 is performed after step 302 is performed.
And step 303, controlling the switch to be closed so as to control the power supply to supply power to the second target sensor.
In the switch closed state, the power supply can supply power to the second target sensor (for example, the second target sensor is the SAR sensor), so that the SAR sensor is in a normal working state.
Step 304, determining whether the distance between the electronic device and the target object detected by the first target sensor in the electronic device is less than or equal to a preset threshold.
Executing step 305 if the distance between the electronic device and the target object is less than or equal to the preset threshold, that is, if the distance between the electronic device and the target object detected by the infrared sensor is less than or equal to the preset threshold; in the case that the distance between the electronic device and the target object is greater than the preset threshold, step 303 is executed, and step 302 is continuously executed after step 303 is executed, that is, in the communication state, if the detected distance between the electronic device and the target object is greater than the preset threshold, the distance between the electronic device and the target object may be continuously detected by the first target sensor in the electronic device. The distance between the electronic device and the target object can be periodically detected through the first target sensor in the electronic device, or the distance between the electronic device and the target object can be detected in real time through the first target sensor in the electronic device. Under the condition that the distance between the electronic equipment and the target object is periodically detected through the first target sensor in the electronic equipment, the power consumption of the electronic equipment can be further saved.
In this embodiment, the first target sensor is an infrared sensor, and the second target sensor is an SAR sensor, for example, that is, the distance between the electronic device and the target is detected by the infrared sensor, and step 305 is executed when the distance between the electronic device and the target detected by the infrared sensor is smaller than or equal to a preset threshold.
And 305, reducing the specific absorption rate of the electronic equipment, and controlling a switch connected between the power supply and the second target sensor in the electronic equipment to be disconnected so as to control the power supply to stop supplying power to the second target sensor.
After step 305 is performed, step 306 is then performed.
And step 306, judging whether the electronic equipment keeps the communication state.
And executing step 302 under the condition that the electronic equipment keeps a communication state, and after executing step 302 and step 304, if the distance between the electronic equipment and the target object is greater than the preset threshold, executing step 303 to control the switch to be closed so that the power supply starts to supply power to the second target sensor to ensure that the second target sensor works normally. After the step 303 is executed, step 306 is continuously executed to determine whether the electronic device continues to maintain the communication state (i.e., determine whether the electronic device is still in the communication state), so that when the electronic device maintains the communication state, step 302 and step 304 are continuously executed to determine whether the detected distance between the electronic device and the target object is less than or equal to the preset threshold. If the electronic device does not continue to maintain the communication state, the flow ends.
It should be noted that, if step 302 is repeatedly executed after steps 301, 302, 304, 305, and 306, since the switch between the power supply and the second target sensor is turned off, the second target sensor is in a stop state, and the second target sensor does not participate in the distance detection, that is, only the first target sensor performs the distance detection between the electronic device and the target in step 302, it is not necessary to simultaneously detect the distance between the electronic device and the target with both sensors, thereby reducing the power consumption of the electronic device. When step 302 is repeatedly executed, the distance between the electronic device and the target object may be periodically detected by the first target sensor in the electronic device, or the distance between the electronic device and the target object may be detected in real time by the first target sensor in the electronic device. Under the condition that the distance between the electronic equipment and the target object is periodically detected through the first target sensor in the electronic equipment, the power consumption of the electronic equipment can be further saved.
In the embodiment of the invention, under the condition that the first target sensor is an infrared sensor and the second target sensor is an SAR sensor, through the steps 301 to 306, when the distance between the electronic equipment and the target object is smaller than or equal to the preset threshold, SAR can be reduced, and the switch is controlled to be switched off, so that the power supply is controlled to stop supplying power to the SAR sensor, and the power consumption of the electronic equipment is reduced on the basis of reducing the SAR. And under the condition that the distance between the electronic equipment and the target object is larger than a preset threshold value, the SAR sensor can work normally.
It should be noted that, if the power supply in fig. 2 can supply power to the second target sensor as well as other components (for example, a sensor for detecting a fingerprint), the power supply can stop supplying power to the second target sensor by setting a switch between the power supply and the second target sensor, so that on the basis of reducing power consumption, the power supply is not affected to supply power to other components in the electronic device, that is, a path between the power supply and the other components is not cut off, and normal operation of the other components is ensured.
Similar to the above steps 301 to 306, when the first target sensor is an SAR sensor and the second target sensor is an infrared sensor, details are not repeated here, and the power consumption of the electronic device can still be reduced on the basis of reducing the SAR.
Optionally, if the switch shown in fig. 2 is not set, after the controlling the power supply in the electronic device stops supplying power to the second target sensor in the electronic device, the method may further include the following steps:
detecting a distance between the electronic equipment and a target object through a first target sensor in the electronic equipment under the condition that the electronic equipment keeps a communication state;
and controlling the power supply to start supplying power to the second target sensor under the condition that the distance is larger than the preset threshold value.
Referring to fig. 4, a schematic structural diagram of a sensor control apparatus according to an embodiment of the present invention is shown, where the apparatus 400 includes:
a first determining module 410, configured to determine whether a distance between the electronic device and a target object, which is detected by a first target sensor in the electronic device, is smaller than or equal to a preset threshold value when the electronic device is in a communication state;
the control module 420 is configured to, when the distance between the electronic device and the target object is less than or equal to the preset threshold, reduce a specific absorption rate of the electronic device, and control a power supply in the electronic device to stop supplying power to a second target sensor in the electronic device;
wherein, in the case that the first target sensor is an infrared sensor, the second target sensor is a specific absorption rate SAR sensor; or, in the case that the first target sensor is the SAR sensor, the second target sensor is the infrared sensor.
The sensor control apparatus provided in this embodiment detects a distance between the electronic device and the target object through the first target sensor in the electronic device when the electronic device is in a communication state, reduces a specific absorption rate of the electronic device when the distance between the electronic device and the target object is less than or equal to a preset threshold, and controls the power supply in the electronic device to stop supplying power to the second target sensor in the electronic device. Therefore, when the electronic equipment is in a communication state, the specific absorption rate of the electronic equipment is reduced, and the power consumption of the electronic equipment is reduced, namely the power consumption of the electronic equipment is reduced on the basis of ensuring the reduction of the specific absorption rate.
Optionally, the control module 420 is specifically configured to, when the distance between the electronic device and the target object is smaller than or equal to the preset threshold, reduce a specific absorption rate of the electronic device, and control a switch connected between the power supply and the second target sensor in the electronic device to be turned off, so as to control the power supply to stop supplying power to the second target sensor.
Optionally, the control module 420 is further configured to control the switch to be closed when the electronic device maintains the communication state and the distance is greater than the preset threshold, so as to control the power supply to start supplying power to the second target sensor.
Optionally, the control module 420 is further configured to control the switch to be closed when the electronic device is not in the communication state, so as to control the power supply to supply power to the second target sensor.
Optionally, the control module 420 is further configured to detect a distance between the electronic device and a target object through a first target sensor in the electronic device when the electronic device maintains a communication state; and controlling the power supply to start supplying power to the second target sensor under the condition that the distance is larger than the preset threshold value.
Figure 5 is a schematic diagram of a hardware configuration of an electronic device implementing various embodiments of the invention,
the electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
A processor 510, configured to determine, when the electronic device is in a communication state, whether a distance between the electronic device and a target object, which is detected by a first target sensor in the electronic device, is smaller than or equal to a preset threshold;
when the distance between the electronic equipment and the target object is smaller than or equal to the preset threshold, reducing the specific absorption rate of the electronic equipment, and controlling a power supply in the electronic equipment to stop supplying power to a second target sensor in the electronic equipment;
wherein, in the case that the first target sensor is an infrared sensor, the second target sensor is a specific absorption rate SAR sensor; or, in the case that the first target sensor is the SAR sensor, the second target sensor is the infrared sensor.
Optionally, the processor 510 is specifically configured to, when the distance between the electronic device and the target object is less than or equal to the preset threshold, reduce a specific absorption rate of the electronic device, and control a switch connected between the power supply and the second target sensor in the electronic device to be turned off, so as to control the power supply to stop supplying power to the second target sensor.
Optionally, the processor 510 is further configured to control the switch to close to control the power supply to start supplying power to the second target sensor when the electronic device maintains the communication state and the distance is greater than the preset threshold.
Optionally, the processor 510 is further configured to control the switch to close to control the power supply to supply power to the second target sensor when the electronic device is not in the communication state.
Optionally, the processor 510 is further configured to detect, by a first target sensor in the electronic device, a distance between the electronic device and a target object while the electronic device maintains a communication state;
and controlling the power supply to start supplying power to the second target sensor under the condition that the distance is larger than the preset threshold value.
In the embodiment of the invention, when the electronic equipment is in a communication state, the specific absorption rate of the electronic equipment is reduced under the condition that the distance between the electronic equipment and the target object is smaller than or equal to the preset threshold, and the power supply in the electronic equipment is controlled to stop supplying power to the second target sensor in the electronic equipment, so that the specific absorption rate of the electronic equipment is reduced, the power consumption of the electronic equipment is reduced, and the power consumption of the electronic equipment is reduced on the basis of ensuring the reduction of the specific absorption rate.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The electronic device 500 also includes at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 5061 and/or a backlight when the electronic device 500 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 508 is an interface for connecting an external device to the electronic apparatus 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic apparatus 500 or may be used to transmit data between the electronic apparatus 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the electronic device. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The electronic device 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the electronic device 500 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 510, a memory 509, and a computer program that is stored in the memory 509 and can be run on the processor 510, and when the computer program is executed by the processor 510, the processes of the sensor control method embodiment are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the sensor control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (11)

1. A sensor control method applied to an electronic device, the method comprising:
detecting a distance between the electronic equipment and a target object through a first target sensor in the electronic equipment under the condition that the electronic equipment is in a communication state;
when the distance between the electronic equipment and the target object is smaller than or equal to the preset threshold, reducing the specific absorption rate of the electronic equipment, and controlling a power supply in the electronic equipment to stop supplying power to a second target sensor in the electronic equipment;
wherein, in the case that the first target sensor is an infrared sensor, the second target sensor is a specific absorption rate SAR sensor; or, in the case that the first target sensor is the SAR sensor, the second target sensor is the infrared sensor.
2. The method according to claim 1, wherein the reducing a specific absorption rate of the electronic device and controlling a power supply in the electronic device to stop supplying power to a second target sensor in the electronic device when the distance between the electronic device and the target object is less than or equal to the preset threshold value comprises:
and when the distance between the electronic equipment and the target object is smaller than or equal to the preset threshold, reducing the specific absorption rate of the electronic equipment, and controlling a switch connected between the power supply and the second target sensor in the electronic equipment to be switched off so as to control the power supply to stop supplying power to the second target sensor.
3. The method of claim 2, further comprising, after the controlling the power supply in the first electronic device to stop providing power to the second target sensor in the electronic device:
and under the condition that the electronic equipment keeps a communication state and the distance is greater than the preset threshold value, controlling the switch to be closed so as to control the power supply to start supplying power to the second target sensor.
4. The method of claim 2, further comprising:
controlling the switch to close to control the power supply to supply power to the second target sensor when the electronic device is not in a communication state.
5. The method of claim 1, further comprising, after the controlling the power supply in the electronic device stops supplying power to the second target sensor in the electronic device:
detecting a distance between the electronic equipment and a target object through a first target sensor in the electronic equipment under the condition that the electronic equipment keeps a communication state;
and controlling the power supply to start supplying power to the second target sensor under the condition that the distance is larger than the preset threshold value.
6. An electronic device, characterized in that the electronic device comprises:
the detection module is used for detecting the distance between the electronic equipment and a target object through a first target sensor in the electronic equipment under the condition that the electronic equipment is in a communication state;
the control module is used for reducing the specific absorption rate of the electronic equipment and controlling a power supply in the electronic equipment to stop supplying power to a second target sensor in the electronic equipment under the condition that the distance between the electronic equipment and the target object is smaller than or equal to the preset threshold value;
wherein, in the case that the first target sensor is an infrared sensor, the second target sensor is a specific absorption rate SAR sensor; or, in the case that the first target sensor is the SAR sensor, the second target sensor is the infrared sensor.
7. The apparatus according to claim 6, wherein the control module is specifically configured to reduce a specific absorption rate of the electronic device and control a switch of the electronic device connected between the power source and the second target sensor to be turned off to control the power source to stop supplying power to the second target sensor when a distance between the electronic device and the target object is less than or equal to the preset threshold.
8. The apparatus of claim 7, wherein the control module is further configured to control the switch to close to control the power source to start supplying power to the second target sensor when the electronic device maintains the communication state and the distance is greater than the preset threshold.
9. The apparatus of claim 7, wherein the control module is further configured to control the switch to close to control the power supply to supply power to the second target sensor if the electronic device is not in the communication state.
10. The apparatus of claim 6,
the control module is further used for detecting the distance between the electronic equipment and a target object through a first target sensor in the electronic equipment under the condition that the electronic equipment keeps a communication state;
and controlling the power supply to start supplying power to the second target sensor under the condition that the distance is larger than the preset threshold value.
11. An electronic device, comprising: memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the sensor control method according to any one of claims 1 to 5.
CN202010404088.9A 2020-05-13 2020-05-13 Sensor control method and electronic device Pending CN111694419A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010404088.9A CN111694419A (en) 2020-05-13 2020-05-13 Sensor control method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010404088.9A CN111694419A (en) 2020-05-13 2020-05-13 Sensor control method and electronic device

Publications (1)

Publication Number Publication Date
CN111694419A true CN111694419A (en) 2020-09-22

Family

ID=72477275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010404088.9A Pending CN111694419A (en) 2020-05-13 2020-05-13 Sensor control method and electronic device

Country Status (1)

Country Link
CN (1) CN111694419A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115379047A (en) * 2021-05-21 2022-11-22 北京小米移动软件有限公司 Communication terminal and control method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581896A (en) * 2013-10-15 2015-04-29 中兴通讯股份有限公司 Terminal transmitting power adjusting method and device as well as terminal
CN106572527A (en) * 2016-11-11 2017-04-19 上海乐今通信技术有限公司 Mobile terminal and method of reducing SAR of mobile terminal
EP3182764A1 (en) * 2015-12-16 2017-06-21 Intel Corporation Communication devices having an energy management interface
CN106900052A (en) * 2015-12-21 2017-06-27 深圳富泰宏精密工业有限公司 Power adjusts module and the object wearing device of module is adjusted with the power
CN108156655A (en) * 2018-01-03 2018-06-12 上海传英信息技术有限公司 A kind of method and its system that mobile phone radiation is reduced using Distance-sensing
CN110519835A (en) * 2018-05-21 2019-11-29 青岛海信移动通信技术股份有限公司 A kind of method and apparatus of transmission power adjustment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581896A (en) * 2013-10-15 2015-04-29 中兴通讯股份有限公司 Terminal transmitting power adjusting method and device as well as terminal
EP3182764A1 (en) * 2015-12-16 2017-06-21 Intel Corporation Communication devices having an energy management interface
CN106900052A (en) * 2015-12-21 2017-06-27 深圳富泰宏精密工业有限公司 Power adjusts module and the object wearing device of module is adjusted with the power
CN106572527A (en) * 2016-11-11 2017-04-19 上海乐今通信技术有限公司 Mobile terminal and method of reducing SAR of mobile terminal
CN108156655A (en) * 2018-01-03 2018-06-12 上海传英信息技术有限公司 A kind of method and its system that mobile phone radiation is reduced using Distance-sensing
CN110519835A (en) * 2018-05-21 2019-11-29 青岛海信移动通信技术股份有限公司 A kind of method and apparatus of transmission power adjustment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115379047A (en) * 2021-05-21 2022-11-22 北京小米移动软件有限公司 Communication terminal and control method thereof
CN115379047B (en) * 2021-05-21 2024-04-30 北京小米移动软件有限公司 Communication terminal and control method thereof

Similar Documents

Publication Publication Date Title
CN109067418B (en) Antenna control method and mobile terminal
CN108459797B (en) Control method of folding screen and mobile terminal
CN108347759B (en) Anti-interference method of flexible screen and mobile terminal
WO2019120087A1 (en) Processing method for reducing power consumption and mobile terminal
CN108227996B (en) Display control method and mobile terminal
CN108322599B (en) Network access method and mobile terminal
CN109739394B (en) SAR value processing method and mobile terminal
CN111324235A (en) Screen refreshing frequency adjusting method and electronic equipment
CN110045807B (en) Voltage control method and terminal
CN110471559B (en) False touch prevention method and mobile terminal
CN108196753B (en) Interface switching method and mobile terminal
CN108521501B (en) Voice input method, mobile terminal and computer readable storage medium
CN109600468B (en) Control method of foldable terminal and foldable terminal
CN111443815A (en) Vibration reminding method and electronic equipment
CN111093137B (en) Volume control method, volume control equipment and computer readable storage medium
CN109597546B (en) Icon processing method and terminal equipment
CN109343811B (en) Display adjustment method and terminal equipment
CN109443261B (en) Method for acquiring folding angle of folding screen mobile terminal and mobile terminal
CN108540642B (en) Mobile terminal and operation method thereof
CN108089935B (en) Application program management method and mobile terminal
CN108388400B (en) Operation processing method and mobile terminal
CN108021315B (en) Control method and mobile terminal
CN111352566B (en) Parameter adjusting method and electronic equipment
CN110673761B (en) Touch key detection method and terminal equipment thereof
CN109391739B (en) Mobile terminal and communication method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200922