Control method and device and terminal equipment

By dynamically adjusting the operating mode and duty cycle of the capacitive sensor, and based on the sensor and business information of the terminal device, the power consumption and accuracy issues of the capacitive sensor when detecting the approach or departure of a human body are solved, achieving low power consumption and high accuracy detection in different scenarios.

CN121644733APending Publication Date: 2026-03-10HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

Existing capacitive sensors suffer from high power consumption and insufficient detection accuracy when detecting the approach or departure of a human body, especially when the capacitance value fluctuates due to environmental influences, which can easily lead to a ping-pong effect.

Method used

Based on the sensor information and service information of the terminal device, the operating mode of the capacitive sensor is adjusted, including the first operating mode and the second operating mode, and its duty cycle is dynamically adjusted according to the scene changes to match the current scene requirements, reduce the detection frequency or improve the accuracy.

Benefits of technology

While reducing the power consumption of capacitive sensors, the accuracy of status detection is maintained, which improves the safety and electromagnetic radiation control of terminal devices in different scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121644733A_ABST
    Figure CN121644733A_ABST
Patent Text Reader

Abstract

The invention discloses a control method and device and terminal equipment, relates to the technical field of terminals, and is used for solving the problem of high detection power consumption of a scheme for detecting a human body approaching or leaving state by using a capacitive sensor in the prior art. The method comprises the steps that a scene where the terminal equipment is located is indicated according to sensor information of the terminal equipment and / or service information of the terminal equipment, a capacitive sensor is controlled to be adjusted from a first working mode to a second working mode based on the scene where the terminal equipment is located, and the first working mode and the second working mode have different duty ratios. For example, in a scene in which human body approaching needs to be frequently detected, a working mode with a large duty ratio is adopted to ensure the accuracy of a detection result, and in a scene in which human body approaching does not need to be frequently detected, a working mode with a small duty ratio is adopted to save the detection power consumption of the capacitive sensor, so that the detection efficiency is improved. The accuracy of a detection result can be maintained while the detection power consumption of the capacitive sensor is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to a control method, apparatus and terminal equipment. Background Technology

[0002] Currently, capacitive sensors are mainly used in terminal products to assist devices in detecting the presence of a human body. Generally, a capacitive sensor collects capacitance values ​​from the terminal product at a fixed sampling frequency and reports these values ​​to a processor. The processor then uses these capacitance values ​​to determine if a human body is approaching. For example, a capacitance value above a threshold indicates a human body is approaching, while a capacitance value below the threshold indicates a human body is moving away. Clearly, this method requires the capacitive sensor to frequently report capacitance values ​​to the processor, resulting in significant power consumption in the terminal device.

[0003] To reduce the power consumption of terminal devices, the industry has provided a solution that involves setting the aforementioned threshold locally on the capacitive sensor. Each time the capacitive sensor detects a capacitance value, it doesn't report it to the processor. Instead, it compares the capacitance value to the locally stored threshold. If the capacitance value is greater than the threshold, the sensor reports the proximity of a person to the processing unit; otherwise, it doesn't report it. This solution reduces power consumption by decreasing the number of communications between the capacitive sensor and the processor. However, the capacitance value of the sensor itself is affected by the environment. When the capacitance value fluctuates around the threshold, the state determined by the sensor also fluctuates, creating a ping-pong effect between the states of a person moving away and approaching, thus reducing the accuracy of the detection results.

[0004] Therefore, in schemes that use capacitive sensors to detect the approach or departure of a human body, how to maintain detection accuracy while reducing detection power consumption is a technical problem that urgently needs to be solved. Summary of the Invention

[0005] This application provides a control method, apparatus, and terminal device to reduce the detection power consumption of schemes that use capacitive sensors to detect the approach or departure of a human body, while maintaining the accuracy of detection.

[0006] In a first aspect, this application provides a control method applied to a terminal device. The terminal device includes a capacitive sensor, which includes a first operating mode and a second operating mode, the first operating mode and the second operating mode having different duty cycles. This method can be executed by the terminal device or a module (such as a processor, chip, or chip system) within the terminal device, and includes: indicating the scene in which the terminal device is located based on sensor information and / or service information of the terminal device; and controlling the capacitive sensor to adjust from the first operating mode to the second operating mode based on the scene in which the terminal device is located.

[0007] Based on the above methods, the operating mode of the capacitive sensor can be adjusted according to the scenario in which the terminal device is located, so that the adjusted operating mode matches the scenario. For example, in scenarios where the terminal device needs to frequently detect the approach or departure of people, a large duty cycle operating mode can be used to ensure the accuracy of the status detection results. Conversely, in scenarios where the terminal device does not need to frequently detect the approach or departure of people, a small duty cycle operating mode can be used to save the detection power consumption of the capacitive sensor. In this way, in the scheme of using a capacitive sensor to detect the approach or departure of people, both the detection power consumption of the capacitive sensor and the accuracy of the status detection results can be maintained.

[0008] In one possible design, the capacitive sensor is a specific absorption ratio (SAR) sensor.

[0009] Based on the above design, the detection accuracy of the SAR sensor can be maintained while reducing the detection power consumption of the SAR sensor, thereby reducing close-range radiation in scenarios where the human body is near the device and improving the safety of the terminal device used by the human body.

[0010] In one possible design, the sensor information of the terminal device includes one or more of the following: information collected by a capacitive sensor, information collected by a temperature sensor in the terminal device, and information collected by a touch sensor in the terminal device; the service information of the terminal device may include one or more of the following: the card insertion status of the terminal device, the transmission power of the antenna device connected to the capacitive sensor in the terminal device, and the information reflected by the reflection coefficient of the antenna device connected to the capacitive sensor in the terminal device.

[0011] Based on the above design, the operating mode of the capacitive sensor can be adaptively adjusted using information collected by the capacitive sensor in the terminal device. Alternatively, the operating mode of the capacitive sensor can be adjusted using information collected by other sensors in the terminal device or non-sensor information (i.e., business information). In this way, the control method can be adapted to multiple adjustment modes, thereby improving the flexibility of the control method.

[0012] In one possible design, based on sensor information from the terminal device, the scene in which the terminal device is located is indicated. Specifically, this may include any one of the following indication methods A1 to indication method A3, or a combination of at least two indication methods:

[0013] Indication method A1 indicates whether the terminal device is in a scene sufficiently close to or sufficiently far from a human body, based on information collected by a capacitive sensor. For example, the capacitance parameter of the antenna device connected to the capacitive sensor can be determined based on the information collected. If the capacitance parameter is greater than or equal to a first capacitance threshold, the terminal device is in a scene sufficiently close to a human body; if the capacitance parameter is less than a second capacitance threshold, the terminal device is in a scene sufficiently far from a human body. The second capacitance threshold is less than or equal to the first capacitance threshold. The setting of the first and second capacitance thresholds is related to the terminal device, the sensitivity of the capacitive sensor, or other information, etc., and is not specifically limited. The capacitance parameter can be the absolute capacitance value directly calculated from the information collected by the capacitive sensor, or it can be the capacitance change calculated from the absolute capacitance value and an initial capacitance value. The initial capacitance value refers to the capacitance value measured by the capacitive sensor when the antenna device is in free space. Based on this indication method, the operating mode of the capacitive sensor can be adjusted according to the distance between the human body and the terminal device.

[0014] Indication method A2 indicates whether the terminal device is in a scenario of stable temperature change or drastic temperature change, based on information collected by a temperature sensor in the terminal device. For example, the temperature parameters of the terminal device can be determined based on the information collected by the temperature sensor. If the temperature parameter is less than or equal to a first temperature threshold, the terminal device is in a scenario of stable temperature change; if the temperature parameter is greater than a second temperature threshold, the terminal device is in a scenario of drastic temperature change, where the second temperature threshold is greater than or equal to the first temperature threshold. Alternatively, the temperature parameters of the terminal device can be determined based on the information collected by the temperature sensor. If the temperature parameter is greater than or equal to a third temperature threshold and less than or equal to a fourth temperature threshold, the terminal device is in a scenario of stable temperature change; if the temperature parameter is less than a fifth temperature threshold or greater than a sixth temperature threshold, the terminal device is in a scenario of drastic temperature change, where the fifth temperature threshold is less than or equal to the third temperature threshold, the third temperature threshold is less than the fourth temperature threshold, and the fourth temperature threshold is less than or equal to the sixth temperature threshold. The setting of the first to sixth temperature thresholds is related to the terminal device, the sensitivity of the temperature sensor, or other information, etc., and is not specifically limited. The temperature parameter can be the absolute temperature value calculated directly from the information collected by the temperature sensor, or it can be the temperature change calculated from the collected information and a reference temperature value. The reference temperature value, also known as the initial temperature value, refers to the board temperature (or chip temperature, etc.) of the terminal device at the time of its manufacture. If it is the former, the temperature scenario can be indicated based on the first and second temperature thresholds mentioned above; if it is the latter, the temperature scenario can be indicated based on the third to sixth temperature thresholds mentioned above. Based on this indication method, the operating mode of the capacitive sensor can be adjusted according to the temperature conditions of the terminal device.

[0015] Indication method A3, based on information collected by the touch sensor in the terminal device, indicates whether the terminal device is in a scenario where the human body is sufficiently close or sufficiently far away. For example, it can determine whether the human body is touching the screen of the terminal device based on the information collected by the touch sensor. If the human body is touching the screen, it is determined that the human body is sufficiently close; if the human body is not touching the screen, it is determined that the human body is sufficiently far away. Based on this indication method, the operating mode of the capacitive sensor can be adjusted according to the distance between the human body and the terminal device.

[0016] In one possible design, based on the service information of the terminal device, the scenario in which the terminal device is located is indicated, which may specifically include any one of the following indication methods B1 to indication method B3 or a combination of at least two indication methods:

[0017] Indication method B1 indicates whether the terminal device is in a SIM card inserted or SIM card not inserted scenario based on the SIM card insertion status. Based on this indication method, the operating mode of the capacitive sensor can be adjusted according to the SIM card insertion status of the terminal device.

[0018] Indication method B2 indicates whether the terminal device is in a low-power or high-power scenario based on the transmission power of the antenna device connected to the capacitive sensor in the terminal device. For example, by obtaining the transmission power of the antenna device connected to the capacitive sensor in the terminal device, if the transmission power of the antenna device is less than or equal to a first power threshold, the terminal device is indicated to be in a low-power scenario; if the transmission power of the antenna device is greater than a second power threshold, the terminal device is indicated to be in a high-power scenario. The setting of the second power threshold (greater than or equal to the first power threshold) is related to the terminal device, the antenna device, or other information, etc., and is not specifically limited. Based on this indication method, the operating mode of the capacitive sensor can be adjusted by combining the transmission power of the antenna device connected to the capacitive sensor.

[0019] Indication method B3 indicates whether the terminal device is in a scene where the human body is sufficiently close or sufficiently far away, based on the reflection coefficient information from the antenna device connected to the capacitive sensor in the terminal device. Based on this indication method, the operating mode of the capacitive sensor can be adjusted according to the distance between the human body and the terminal device.

[0020] In one example of scenario B2 above, the first power threshold is less than the transmit power of the antenna device when the human body is sufficiently close.

[0021] Based on the above example, by setting the first power threshold to be less than the transmission power of the antenna device in a scenario where the human body is sufficiently close, low-power scenarios can be accurately identified. The transmission power of the low-power scenario is already lower than the transmission power in a scenario where the human body is sufficiently close. Therefore, the capacitive sensor does not need to frequently detect whether it has entered a scenario where the human body is sufficiently close. The capacitive sensor can adopt a low duty cycle working mode to reduce power consumption.

[0022] In one possible design, based on the scenario in which the terminal device is located, the capacitive sensor is controlled to switch from a first operating mode to a second operating mode. Specifically, when the terminal device changes from the first scenario to the second scenario, the capacitive sensor is controlled to switch from the first operating mode to the second operating mode.

[0023] Based on the above design, the working mode of the capacitive sensor can be adjusted only when the scene changes, while when the scene does not change, no adjustment is needed, such as no need to send control information to the capacitive sensor. This can reduce unnecessary communication processes and save communication consumption.

[0024] In one example of the above design, the duty cycle of the first operating mode is greater than that of the second operating mode. In this case, the terminal device switches from the first scenario to the second scenario, which may specifically include any one or a combination of at least two of the following: C1 to C4.

[0025] Content C1 describes a scenario where the terminal device changes from a scene where the human body is sufficiently far away to a scene where the human body is sufficiently close. When the terminal device is in a scene where the human body is sufficiently close, the capacitance of the capacitive sensor does not change significantly. Therefore, the capacitive sensor does not need to frequently detect whether it has entered a scene where the human body is sufficiently close. Thus, by allowing the capacitive sensor to operate in a low duty cycle mode in a scene where the human body is sufficiently close, detection power consumption can be reduced.

[0026] Content C2 describes the transition of the terminal device from a scenario with drastic temperature changes to one with stable temperature changes. When the terminal device is in a scenario with stable temperature changes, the external temperature changes have little impact on the capacitance value of the capacitive sensor. The capacitance value of the capacitive sensor is relatively stable, and the capacitive sensor does not need to frequently detect the capacitance value. Therefore, by using a low duty cycle operating mode for the capacitive sensor in a scenario with stable temperature changes, the detection power consumption can be reduced.

[0027] Content C3: The terminal device changes from a SIM card inserted scenario to a SIM card not inserted scenario. When the terminal device is in a SIM card not inserted scenario, the antenna function cannot be used, the antenna device itself does not emit signals, and the capacitive sensor does not need to frequently detect whether a human body is close enough. Therefore, by allowing the capacitive sensor to operate in a low duty cycle mode in the SIM card not inserted scenario, the detection power consumption can be reduced.

[0028] Content C4 describes the transition of the terminal device from a high-power scenario to a low-power scenario. When the terminal device is in a low-power scenario, the transmission power of the antenna device is already lower than the transmission power in a scenario where the human body is sufficiently close. The capacitive sensor does not need to frequently detect whether it has entered a scenario where the human body is sufficiently close. Therefore, by allowing the capacitive sensor to operate in a low-duty-cycle mode in a low-power scenario, the detection power consumption can be reduced.

[0029] In one example of the above design, the duty cycle of the first working mode is less than the duty cycle of the second working mode. The terminal device switches from the first scenario to the second scenario, which may specifically include any one or a combination of at least two of the following: D1 to D4.

[0030] Content D1: The terminal device changes from a scenario where it is sufficiently close to the human body to a scenario where it is sufficiently far away from the human body. When the terminal device is in a scenario where it is sufficiently far away from the human body, the capacitive sensor needs to frequently detect whether it has entered a scenario where it is sufficiently close to the human body in order to reduce close-range radiation. Therefore, by allowing the capacitive sensor to operate in a high duty cycle mode in a scenario where it is sufficiently far away from the human body, it can detect whether it has entered a scenario where it is sufficiently close to the human body in a timely and accurate manner, so as to maintain the accuracy of detection.

[0031] Content D2 describes a scenario where the terminal device transitions from a stable temperature environment to a drastically changing temperature environment. When the terminal device is in such an environment, the drastic temperature changes can cause significant variations in the capacitance value of a capacitive sensor. Since capacitive sensors need to frequently check their capacitance, using a high duty cycle for the capacitive sensor in such a rapidly changing environment allows for timely and accurate detection of whether a person is sufficiently close, thus maintaining detection accuracy.

[0032] Content D3 describes the transition of the terminal device from a non-SIM card inserted scenario to a SIM card inserted scenario. When the terminal device is in a SIM card inserted scenario, the antenna function can be activated, and the antenna device will emit signals. The capacitive sensor needs to frequently detect whether it has entered a scenario close enough to the human body to reduce close-range radiation. Therefore, by using a high duty cycle operating mode for the capacitive sensor in the SIM card inserted scenario, it is possible to detect whether it has entered a scenario close to the human body in a timely and accurate manner to maintain the accuracy of detection.

[0033] Content D4 discusses the transition of terminal devices from low-power to high-power scenarios. When a terminal device is in a high-power scenario, the transmission power of the antenna device may be higher than that in a scenario where a human body is close. Capacitive sensors need to frequently detect whether they have entered a scenario close enough to the human body to reduce close-range radiation. Therefore, by using a high duty cycle operating mode for capacitive sensors in high-power scenarios, it is possible to detect whether they have entered a scenario close enough to the human body in a timely and accurate manner, thus maintaining the accuracy of detection.

[0034] In one possible design, the first operating mode has a first duty cycle, the second operating mode has a second duty cycle, and the ratio of the larger duty cycle to the smaller duty cycle is greater than or equal to 4.

[0035] Optionally, the ratio of the larger duty cycle to the smaller duty cycle can be set between 4 and 12 (inclusive), for example, between 4 and 6, or between 6 and 8, or between 8 and 10, or between 10 and 12. The duty cycle ratio can be an integer or a non-integer, which are not listed here.

[0036] The setting of the ratio of the larger duty cycle to the smaller duty cycle is related to the power reduction benefit and the measurement accuracy of the capacitive sensor. The larger the ratio, the better the power reduction effect (or benefit), while the smaller the ratio, the higher the measurement accuracy of the capacitive sensor. Based on this, in one example, a balance can be struck between the power reduction benefit and the measurement accuracy of the capacitive sensor to set the ratio of the larger duty cycle to the smaller duty cycle. For example, it can be set to a slightly intermediate value, such as between 6 and 7, or between 7 and 8, or between 8 and 9, or between 9 and 10, etc.

[0037] Based on the above design, the duty cycle of the high duty cycle mode will be 4 times or more than 4 times that of the low duty cycle mode. If the duty cycle is adjusted by adjusting the duration of each acquisition cycle, the duration of each acquisition cycle of the high duty cycle mode will be more than 4 times that of the low duty cycle mode. For example, if information was originally acquired once every 50ms, it will be acquired once every 200ms after adjustment. Therefore, the acquisition cost of the capacitive sensor is greatly reduced, and the power consumption of the terminal device is significantly reduced.

[0038] Secondly, this application provides a control method applied to a terminal device. The terminal device includes a capacitive sensor, which includes a first operating mode and a second operating mode, wherein the duty cycle of the first operating mode is greater than the duty cycle of the second operating mode. The method includes: instructing the terminal device to switch from a scene where the human body is sufficiently far away to a scene where the human body is sufficiently close, based on information collected by the capacitive sensor, and controlling the capacitive sensor to adjust from the first operating mode to the second operating mode.

[0039] In one possible design, the method further includes: instructing the terminal device to switch from a scene where the human body is sufficiently close to a scene where the human body is sufficiently far away, based on information collected by the capacitive sensor, and controlling the capacitive sensor to adjust from a second operating mode to a first operating mode.

[0040] In one possible design, the capacitive sensor also includes a third operating mode, the duty cycle of which is less than that of the first operating mode. The method further includes: instructing the terminal device to switch from a high-power scenario to a low-power scenario based on the transmission power of the antenna device connected to the capacitive sensor in the terminal device, and controlling the capacitive sensor to adjust from the first operating mode to the third operating mode.

[0041] In a further possible design, the method also includes: instructing the terminal device to switch from a low-power scenario to a high-power scenario based on the transmission power of the antenna device connected to the capacitive sensor in the terminal device, and controlling the capacitive sensor to adjust from a third operating mode to a first operating mode.

[0042] In one possible design, the capacitive sensor also includes a fourth operating mode, the duty cycle of which is less than that of the first operating mode. The method further includes: based on information collected by a temperature sensor in the terminal device, instructing the terminal device to switch from a scenario of drastic temperature changes to a scenario of stable temperature changes, and controlling the capacitive sensor to adjust from the first operating mode to the fourth operating mode.

[0043] In a further possible design, the method also includes: based on information collected by the temperature sensor in the terminal device, instructing the terminal device to switch from a scenario of stable temperature change to a scenario of drastic temperature change, and controlling the capacitive sensor to adjust from a fourth operating mode to a first operating mode.

[0044] In one possible design, the capacitive sensor also includes a fifth operating mode, the duty cycle of which is less than that of the first operating mode. The method further includes: instructing the terminal device to switch from a card-inserted scenario to a card-free scenario based on the card insertion status of the terminal device, and controlling the capacitive sensor to adjust from the first operating mode to the fifth operating mode.

[0045] In a further possible design, the method also includes: instructing the terminal device to switch from a non-card-inserted scenario to a card-inserted scenario based on the card insertion status of the terminal device, and controlling the capacitive sensor to adjust from the fifth working mode to the first working mode.

[0046] In one possible design, the method further includes: instructing the terminal device to switch from a scene where the human body is sufficiently far away to a scene where the human body is sufficiently close, based on information collected by the touch sensor in the terminal device and / or information reflected by the reflection coefficient of the antenna device connected to the capacitive sensor in the terminal device, and controlling the capacitive sensor to adjust from a first operating mode to a second operating mode.

[0047] In one possible design, the method further includes: instructing the terminal device to switch from a scene where the human body is sufficiently close to a scene where the human body is sufficiently far away, based on information collected by the touch sensor in the terminal device and / or information reflected by the reflection coefficient of the antenna device connected to the capacitive sensor in the terminal device, and controlling the capacitive sensor to adjust from a second operating mode to a first operating mode.

[0048] In one possible design, the second, third, fourth, and fifth operating modes mentioned above have the same duty cycle or have different duty cycles.

[0049] Thirdly, this application provides a control device, which can be the aforementioned terminal device, or a module (such as a processor, chip, or chip system) within the terminal device. The control device may include units or modules for performing the steps of the first aspect or any of the designs in the first aspect, or units or modules for performing the steps of the second aspect or any of the designs in the second aspect. For example, the control device may include a transceiver unit and a processing unit; the transceiver unit is used to perform transceiver operations, such as operations related to receiving and sending, and the processing unit is used to perform processing operations.

[0050] For example, when the transceiver unit and the processing unit are used to perform the various steps of the design in the first aspect or any of the first aspects above, the transceiver unit can interact with the sensors of the terminal device and / or the business APP of the terminal device to obtain the sensor information and / or business information of the terminal device. The processing unit can indicate the scene in which the terminal device is located based on the sensor information and / or the business information of the terminal device, and control the capacitive sensor to adjust from the first working mode to the second working mode based on the scene in which the terminal device is located.

[0051] For example, when the transceiver unit and the processing unit are used to perform the various steps of the design in the second aspect or any of the second aspects above, the transceiver unit can interact with the capacitive sensor of the terminal device to obtain the information collected by the capacitive sensor. The processing unit can instruct the terminal device to switch from a scene where the human body is far enough away to a scene where the human body is close enough based on the information collected by the capacitive sensor, and control the capacitive sensor to adjust from the first working mode to the second working mode.

[0052] In one possible design, the control device is a processing chip, the processing unit can be one or more processors or processor cores, and the transceiver unit can be the input / output circuit, input / output interface or antenna port of the processing chip.

[0053] In another possible design, the transceiver unit can be a transmitter and a receiver, or the transceiver unit can be a transmitter and a receiver.

[0054] Fourthly, this application provides a control device, which can be the aforementioned terminal device, or a module (such as a processor, chip, or chip system) within the terminal device. The control device may include a processor, and optionally, may also include a memory. The memory is used to store program instructions; the processor can read the program instructions from the memory, causing the control device to execute the method provided in the first aspect or any of the designs in the first aspect, or to execute the method provided in the second aspect or any of the designs in the second aspect.

[0055] In one possible design, there are one or more processors and one or more memories.

[0056] In one possible design, the memory can be integrated with the processor, or the memory can be set up separately from the processor.

[0057] In one possible design, the control device may further include a transceiver. The transceiver is used to receive and transmit signals; the processor is used to execute program instructions in response to signals received by the transceiver, causing the control device to perform the method provided by the first aspect or any of the designs in the first aspect, or to perform the method provided by the second aspect or any of the designs in the second aspect.

[0058] In one possible design, the transceiver may include a transmitter and a receiver.

[0059] Fifthly, this application provides a control device, which can be the aforementioned terminal device, or a module (such as a processor, chip, or chip system) within the terminal device. The control device may include a processor, and optionally, a communication interface coupled to the processor. Optionally, it may also include a memory coupled to the processor. The processor can read program instructions from the memory, invoke the communication interface to communicate with other devices, and execute the methods provided in the first aspect or any of the designs in the first aspect, or execute the methods provided in the second aspect or any of the designs in the second aspect.

[0060] In one possible design, the communication interface can be a transceiver, or an input / output interface. Optionally, the transceiver can be a transceiver circuit. Optionally, the input / output interface can be an input / output circuit.

[0061] In another possible design, when the control device is a chip or chip system, the communication interface can be an input / output interface, interface circuit, output circuit, input circuit, pin, or related circuit on the chip or chip system. The processor can also be manifested as a processing circuit or logic circuit.

[0062] Sixthly, this application provides a control device, which includes a processor and may further include a storage medium storing instructions. When executed by the processor, the instructions are used to implement the method provided in the first aspect or any of the designs in the first aspect, or to implement the method provided in the second aspect or any of the designs in the second aspect. The control device may be a chip system. The chip system may be composed of chips or may include chips and other discrete devices.

[0063] In a seventh aspect, this application provides a control system, including a control device and a capacitive sensor, the control device and the capacitive sensor being connected together. The control device is used to execute the method provided in the first aspect or any one of the designs in the first aspect, or to execute the method provided in the second aspect or any one of the designs in the second aspect, to control the operating mode of the capacitive sensor. The capacitive sensor is used to collect information using a corresponding operating mode according to the control operation of the control device.

[0064] In one possible design, the control system further includes an antenna device connected to both a capacitive sensor and a control device. The capacitive sensor is specifically used to collect information from the antenna device. The control device is also used to reduce the transmission frequency of the antenna device if it is determined, based on the information collected by the capacitive sensor, that a human body is sufficiently close to the antenna device, and to restore the transmission frequency of the antenna device if it is determined, based on the information collected by the capacitive sensor, that a human body is sufficiently far away from the antenna device.

[0065] In one possible design, the terminal device may also include one or more of the following sensors: a touch sensor and a temperature sensor.

[0066] Eighthly, this application provides a terminal device that includes the control device provided in any one of the third to sixth aspects above, or the control system provided in the seventh aspect above.

[0067] Ninthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a computer, causes the computer to perform the method provided in the first aspect or any of the designs in the first aspect, or to perform the method provided in the second aspect or any of the designs in the second aspect. Optionally, the computer may be a terminal device.

[0068] In a tenth aspect, this application provides a computer program product that, when run on a computer, causes the computer to perform the method provided in the first aspect or any of the designs in the first aspect, or to perform the method provided in the second aspect or any of the designs in the second aspect. Optionally, the computer may be a terminal device.

[0069] Eleventhly, this application provides a chip for reading a computer program stored in a memory and executing the method provided in the first aspect or any design in the first aspect, or executing the method provided in the second aspect or any design in the second aspect. Optionally, the chip may include a processor coupled to the memory for reading the computer program stored in the memory and implementing the method provided in the first aspect or any design in the first aspect, or implementing the method provided in the second aspect or any design in the second aspect. Optionally, the chip may also include components such as a memory, a communication interface, and a power supply module. The memory is used to store the computer program; the communication interface is used to receive and send data; and the power supply unit is used to supply power to the processor.

[0070] In a twelfth aspect, this application provides a chip system including a processor for supporting a computer to implement the methods provided by the first aspect or any design in the first aspect above, or supporting a computer to implement the methods provided by the second aspect or any design in the second aspect above.

[0071] In one possible design, the chip system also includes memory for storing the computer's necessary programs and data. The chip system can consist of chips or include chips and other discrete components.

[0072] The technical effects that can be achieved in the second to twelfth aspects mentioned above can be referred to the description of the beneficial effects in the first aspect mentioned above, and will not be repeated here. Attached Figure Description

[0073] Figure 1a An exemplary schematic diagram of a duty cycle provided in this application is shown;

[0074] Figure 1b An exemplary schematic diagram illustrates a method for reducing the duty cycle provided in this application;

[0075] Figure 1c An exemplary diagram illustrates another method for reducing the duty cycle provided in this application;

[0076] Figure 1d An exemplary diagram illustrating a method for reducing the duty cycle provided in this application is shown.

[0077] Figure 2a An exemplary diagram illustrating a usage scenario of a terminal device provided in this application is shown.

[0078] Figure 2b An exemplary diagram illustrating a usage scenario of another terminal device provided in this application is shown;

[0079] Figure 2cAn exemplary diagram illustrating a usage scenario of another terminal device provided in this application is shown;

[0080] Figure 3 An exemplary schematic diagram of the hardware structure of a possible terminal device provided in this application is shown;

[0081] Figure 4 An exemplary diagram of the architecture of a possible control system provided in this application is shown;

[0082] Figure 5 An exemplary schematic diagram of a possible control method provided in this application is shown;

[0083] Figure 6 An example illustration shows an interactive flow diagram of a control method provided in Implementation Scheme 1;

[0084] Figure 7 An exemplary schematic diagram illustrates a connection method between a Sensor Hub and a SAR sensor provided in Implementation Scheme 1;

[0085] Figure 8 An example illustration shows an interactive flow diagram of a control method provided in Implementation Scheme 2;

[0086] Figure 9 An example illustration shows an interactive flow diagram of a control method provided in Implementation Scheme 3;

[0087] Figure 10 An example illustration shows an interactive flow diagram of a control method provided in Implementation Scheme 4;

[0088] Figure 11 An example illustration shows an interactive flow diagram of a control method provided in Implementation Scheme 5;

[0089] Figure 12 An example illustration shows an interactive flow diagram of a control method provided in Implementation Scheme Six;

[0090] Figure 13 An exemplary schematic diagram of a control device provided in this application is shown;

[0091] Figure 14 An exemplary schematic diagram of another control device provided in this application is shown. Detailed Implementation

[0092] The following is an introduction to the terms and nouns used in this application.

[0093] (1) Duty cycle.

[0094] Duty cycle refers to the proportion of the on-time relative to the total time within a pulse cycle. For example, please refer to... Figure 1a Assuming the total duration of a pulse cycle is T2 and the energizing time is T1, the duty cycle satisfies the following formula (11):

[0095]

[0096] Where D is the duty cycle.

[0097] (2) Working method.

[0098] This application relates to various operating modes of capacitive sensors, each with a different duty cycle. Different duty cycles can be achieved through one or more of the following methods: 1. Different pulse period durations; 2. Different energized periods within the pulse period; 3. Different de-energized periods within the pulse period. Alternatively, other methods may also be used.

[0099] For example, in combination with the above Figure 1a Please see Figure 1b , Figure 1c and Figure 1d This illustrates three ways to reduce the duty cycle. Among them, Figure 1b This illustrates reducing the duty cycle by increasing the duration of each pulse cycle; for example, the duration of one pulse cycle is increased from... Figure 1a The T2 shown increases to Figure 1b As shown in T3, the denominator in the above formula (1.1) becomes smaller, therefore, the duty cycle D becomes larger. Figure 1c The diagram illustrates how to reduce the duty cycle by decreasing the duration of the on-time within each pulse cycle. For example, the duration of the on-time within one pulse cycle is reduced from... Figure 1a The T1 shown is reduced to Figure 1c As shown in T4, the molecule in the above formula (1.1) becomes smaller, therefore, the duty cycle D becomes larger. Figure 1d The diagram illustrates how to reduce the duty cycle by increasing the duration of each pulse cycle while simultaneously decreasing the on-time within each pulse cycle. For example, the duration of one pulse cycle is increased from... Figure 1a The T2 shown increases to Figure 1b As shown in T3, the duration of the energizing time within the pulse period is from... Figure 1a The T1 shown is reduced to Figure 1c As shown in T4, the denominator of the above formula (1.1) is smaller and the numerator is larger, therefore, the duty cycle D is larger.

[0100] Typically, a capacitive sensor acquires one data point per pulse cycle, compared to... Figure 1a The working method shown is due to Figure 1b and Figure 1dIn the operating mode shown, the duration of a pulse cycle increases, therefore, the time it takes for the capacitive sensor to acquire a capacitance value increases, the acquisition frequency of the capacitive sensor decreases, and the corresponding power consumption decreases. Figure 1c Although the duration of a pulse cycle remains the same in this operating mode, the power consumption of the capacitive sensor is reduced due to the shorter power-on time. In other words, the low duty cycle mode consumes less power compared to the high duty cycle mode.

[0101] (3) Scenes where the human body is close enough and scenes where the human body is far enough away.

[0102] In one embodiment of this application, "sufficiently close" and "sufficiently far" of a human body can be understood as referring to the distance between the human body and the antenna device. "Sufficiently close" can be understood as the human body touching the radiator of the antenna device, or the human body being within a first distance (including the first distance) of the radiator. The first distance can be set according to actual needs; for example, the first distance can be 5mm (or 1mm, or 2mm, or 3mm, or 4mm), or the first distance can be 10mm (or 9mm, or 8mm, or 7mm, or 6mm), etc., and can be specifically determined according to the actual design.

[0103] Similarly, a scenario where the human body is sufficiently far away can be understood as the human body being at a second distance from the radiator, where the second distance is greater than or equal to the first distance. For example, the second distance could be 5mm (or 6mm, or 7mm, or 8mm, or 9mm), or 10mm (or 11mm, or 12mm, or 13mm, or 14mm), or 15mm (or 16mm, or 17mm, or 18mm, or 19mm, etc.), etc. The specific distance can be determined according to the actual design.

[0104] In one embodiment of this application, "human body sufficiently close" and "human body sufficiently far away" can be understood as referring to the distance of the human body relative to a touch sensor, proximity sensor, proximity light sensor, or similar sensor on the screen. For example, if it is a touch sensor on the screen, "human body sufficiently close" can be understood as the human body touching the screen, and "human body sufficiently far away" can be understood as the human body not touching the screen. If it is a proximity sensor or proximity light sensor, "human body sufficiently close" can be understood as the human body touching the sensor or the distance detected by the sensor to the human body being within a first distance, including the first distance; "human body sufficiently far away" can be understood as the human body not touching the sensor or the distance detected by the sensor to the human body being beyond a second distance, where the second distance is greater than or equal to the first distance.

[0105] With rapid societal development, terminal devices such as mobile phones are becoming increasingly widespread, and their functions are becoming more and more powerful. These functions include, but are not limited to, communication, processing, storage, navigation, entertainment, and query functions, among others. As terminal devices become more powerful, the scenarios in which users use them in close proximity are also increasing. For example, in some scenarios, such as... Figure 2a As shown, users can utilize the navigation function of their terminal device to navigate while walking, following the navigation prompts to their destination. For example, in other scenarios, such as... Figure 2b As shown, users can use the entertainment functions of their devices to play games or watch videos while riding in a car. Of course, there will also be some non-personal use scenarios, such as... Figure 2c As shown, users can also mount the terminal device on a bicycle or car for navigation.

[0106] Compared to non-intimate use scenarios, when a user uses a terminal device close to their body, the device emits radiation. To reduce this close-contact radiation, a "human proximity detection" function needs to be implemented in the terminal device. This function primarily utilizes a capacitive sensor within the terminal device. The capacitive sensor can be connected to the antenna of the terminal device to detect changes in the antenna's capacitance. When the capacitance change exceeds a set value, it indicates a human presence. In this state, the terminal device can reduce the radio frequency transmission power of the antenna to minimize the impact of electromagnetic radiation on the human body and meet SAR standards. Conversely, when the capacitance change no longer exceeds the set value, it indicates a human presence has moved away, and the terminal device restores the radio frequency transmission power of the antenna to restore its original communication performance.

[0107] However, traditional capacitive sensors typically operate continuously with a fixed duty cycle, resulting in relatively high power consumption. To reduce power consumption, as described in the background section, one solution is to decrease the number of interactions between the capacitive sensor and the processor. However, this approach may lead to false state determinations, compromising the accuracy of state detection. Alternatively, some solutions reduce power consumption by extending the capacitive sensor's duty cycle, for example, increasing it from 50ms to 500ms. While this method does reduce power consumption, it may fail to detect state changes in a timely manner, thus also compromising the accuracy of state detection.

[0108] In view of this, this application provides a control method that comprehensively determines the operating mode of a capacitive sensor based on the scenario in which the terminal device is located. If the scenario does not require frequent detection of state changes, the capacitive sensor can be adjusted to a low duty cycle mode to save detection power consumption. Conversely, if the scenario requires frequent detection of state changes, the capacitive sensor can be adjusted to a high duty cycle mode to improve the accuracy of state detection. This control method ensures both high state detection accuracy and reduced power consumption of the terminal device.

[0109] The control method in this application can be applied to terminal devices, which can be any electronic device with capacitive sensors, such as mobile phones, foldable phones, tablets, wearable devices (e.g., watches, bracelets, etc.), headphones, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), or smart home devices (e.g., smart TVs, etc.). It is understood that this application does not limit the specific type of terminal device.

[0110] Figure 3 A schematic diagram of a possible hardware structure for a terminal device is shown. The terminal device 300 includes: a radio frequency (RF) circuit 310, a power supply 320, a processor 330, a memory 340, an input unit 350, a display unit 360, an audio circuit 370, a communication interface 380, a wireless fidelity (Wi-Fi) module 390, and at least one sensor 391, among other components. It is understood that... Figure 3 The hardware structure of the terminal device 300 shown does not constitute a limitation on the terminal device 300. The terminal device 300 may include more or fewer components than shown, may combine two or more components, or may have different component configurations. Figure 3 The various components shown can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.

[0111] The following is combined Figure 3 A detailed introduction to each component of the terminal device 300 is provided below:

[0112] The RF circuit 310 can be used for receiving and sending data during communication or calls. The RF circuit 310 can also communicate with other devices via wireless communication networks. Specifically, after receiving downlink data from a base station (such as a terrestrial base station, satellite base station, etc.), the RF circuit 310 sends it to the processor 330 for processing; additionally, it sends uplink data to be transmitted to the base station.

[0113] Optionally, the RF circuit 310 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc. The antenna typically includes multiple components, including, but not limited to, cellular antennas, Bluetooth antennas, Wi-Fi / BT antennas, GPS antennas, and near field communication (NFC) antennas.

[0114] Wi-Fi technology is a short-range wireless transmission technology. Terminal device 300 can connect to an access point (AP) via Wi-Fi module 390, thereby enabling access to the data network. Wi-Fi module 390 can be used for data reception and transmission during communication.

[0115] Terminal device 300 can physically connect to other devices via communication interface 380. Optionally, communication interface 380 can be connected to the communication interfaces of other devices via cables to enable data transmission between terminal device 300 and other devices.

[0116] The memory 340 can be used to store software programs and modules. The processor 330 executes various functional applications and data processing of the terminal device 300 by running the software programs and modules stored in the memory 340. Optionally, the memory 340 may mainly include a program storage area and a data storage area. The program storage area may store the operating system (mainly including the software programs or modules corresponding to the kernel layer, system layer, application framework layer, and application layer). In addition, the memory 340 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0117] The input unit 350 can be used to receive and edit various types of data objects, such as numbers or characters, input by the user, and to generate key signal inputs related to user settings and function control of the terminal device 300. Optionally, the input unit 350 may include a touch panel 351 and other input devices 352. Optionally, other input devices 352 may include, but are not limited to, one or more of the following: a physical keyboard, an infrared sensor, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick. For example, an infrared sensor can be used to acquire the user's air gesture operations.

[0118] The display unit 360 can be used to display information input by the user or information provided to the user, as well as various menus of the terminal device 300. The display unit 360 is used to present the interface and realize human-computer interaction. The display unit 360 may include a display panel 361. Optionally, the display panel 361 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0119] The processor 330 is the control center of the terminal device 300. It connects to various components via various interfaces and lines, and executes software programs and / or modules stored in the memory 340, as well as calling data stored in the memory 340, to perform various functions and process data of the terminal device 300, thereby enabling various services based on the terminal device 300. In this embodiment, the processor 330 can be used to implement the control method provided in this embodiment.

[0120] The terminal device 300 also includes a power supply 320 (such as a battery) for supplying power to various components. Optionally, the power supply 320 can be logically connected to the processor 330 through a power management system, thereby enabling the power management system to manage functions such as charging, discharging, and power consumption.

[0121] like Figure 3As shown, the terminal device 300 also includes an audio circuit 370, a microphone 371, and a speaker 372, providing an audio interface between the user and the terminal device 300. The audio circuit 370 converts audio data into a signal recognizable by the speaker 372 and transmits the signal to the speaker 372, where it is converted into a sound signal for output. The microphone 371 collects external sound signals (such as human speech or other sounds) and converts the collected external sound signals into a signal recognizable by the audio circuit 370, sending it to the audio circuit 370. The audio circuit 370 can also convert the signal transmitted by the microphone 371 into audio data, outputting the audio data to the RF circuit 310 for transmission to, for example, another terminal device, or outputting the audio data to the memory 340 for further processing.

[0122] The terminal device 300 can collect status information of itself and its components through at least one sensor 391. The at least one sensor 391 may include, but is not limited to, an accelerometer, a gyroscope, a pedometer, an IMU, a touch panel (TP) sensor (also called a touch sensor), a specific absorption rate (SAR) sensor, a pressure sensor, a barometric pressure sensor, a distance sensor, a fingerprint sensor, and a temperature sensor. Optionally, when the terminal device 300 is a foldable terminal device, the at least one sensor 391 may also include a Hall sensor, which can detect whether the terminal device 300 is in a folded or unfolded state.

[0123] Understandably, despite Figure 3 As not shown in the diagram, the terminal device 300 may also include other components, such as a camera, a Bluetooth module, etc., which will not be described in detail here.

[0124] The control method provided in this application embodiment can be used in the above-mentioned... Figure 3 The illustration includes a processor 330, an RF circuit 310, and at least one sensor 391. In addition, a memory 340 may be used. The memory 340 can be used to store software programs that implement the control method provided in the embodiments of this application. The processor 330 executes the control method provided in the embodiments of this application by running the software program stored in the memory 340. The specific details regarding the memory 340 are not discussed in this application; only the specific implementation of the control method is described below.

[0125] based on Figure 3 The hardware structure of the terminal device shown. Figure 4This diagram illustrates the architecture of a possible control system provided in this application. The components in this system architecture are combined to implement the control method provided in the embodiments of this application. Figure 4 As shown, the system architecture may include a processor 330, an RF circuit 310, and at least one sensor 391. The processor 330 may exemplarily be a system-on-chip (SOC), including an application processor (AP) 331, a sensor hub 332, and a cellular processor (Modem) 333, which are interconnected. Optionally, the application processor 331, sensor hub 332, and cellular processor 333 can also be understood as chips on the SOC; for example, the application processor 331 is an application processor chip, the sensor hub 332 is a sensor hub chip, and the cellular processor 333 is a cellular processor chip.

[0126] Application processor 331 is a processor associated with the application (APP). Application processor 331 can connect to the backend servers of various APPs on the terminal device. Application processor 331 can communicate and interact with the backend servers of various APPs on the terminal device to obtain business information of the terminal device. Application processor 331 can send the business information to sensor hub 332, or it can identify the scene of the terminal device based on the business information and send the scene to sensor hub 332 to assist sensor hub 332 in deciding the operating mode of the capacitive sensor. The business information includes, but is not limited to, the card insertion status of the terminal device, such as whether the subscriber identity module (SIM) card is inserted into the terminal device.

[0127] The sensor hub 332 can be connected to the aforementioned memory 340, or the sensor hub 332 itself may have its own memory. By reading relevant software programs from the memory 340 or local memory, the sensor hub 332 can control the operation of the capacitive sensor. The sensor hub 332 can mount at least one type of sensor 391, including but not limited to all sensors in the sensor 391. Figure 4The diagram shows a SAR sensor 3911, a TP 3912, and a temperature sensor 3913. The sensor hub 332 can determine the operating mode of the capacitive sensor based on information from the attached sensors, and / or, based on service information sent by the application processor 331 (such as card insertion status or scenario), and / or, based on information sent by the cellular processor 333 (such as antenna transmission power or scenario). The capacitive sensor can exemplarily be the SAR sensor 3911. After determining the operating mode of the SAR sensor 3911, the sensor hub 332 can control the SAR sensor 3911 to operate according to the determined mode by sending control signals to it. Of course, the functions of some of the sensors can also be implemented by other devices or methods. In this case, the data from these sensors is not used by the sensor hub 332, such as the TP 3912.

[0128] In addition to connecting to the application processor 331 and the sensor hub 332, the cellular processor 333 can also connect to the RF circuit 310. The cellular processor 333 can obtain the current antenna transmit power by interacting with the RF circuit 310. The cellular processor 333 can then send the current antenna transmit power to the sensor hub 332 to assist the sensor hub 332 in deciding the operating mode of the capacitive sensor. Alternatively, the cellular processor 333 can also determine the scene of the terminal device based on the current antenna transmit power and then send the scene to the sensor hub 332 to assist the sensor hub 332 in deciding the operating mode of the capacitive sensor.

[0129] RF circuit 310 includes at least one antenna link, illustrated using a single antenna link as an example. This link can connect to an antenna radiator (also called a stub) to control the radiator to emit radio frequency signals and receive echo signals. Optionally, the antenna link includes a power amplifier (PA), which may be, for example, a low-noise amplifier connected between the antenna radiator and the cellular processor 333. This low-noise amplifier amplifies the input signal while ensuring good signal quality. The PA can also amplify the transmit power of the antenna radiator and transmit it back to the cellular processor 333 to assist the cellular processor 333 in identifying the current power level. In some scenarios, the antenna link may also include a filter to filter the input signal for smooth signal output.

[0130] Based on the above Figure 3 and Figure 4 The content shown and the other content mentioned above, Figure 5 This illustration shows a possible flowchart of a control method provided in an embodiment of this application. This method can be executed by a terminal device, such as the one described above. Figure 3 The terminal device 300. More specifically, it can be executed by a processor 330 within the terminal device 300, which may include... Figure 4 The application processor 331, sensor hub 332, and cellular processor 333 shown indicate that the control method can be jointly executed by the application processor 331, sensor hub 332, and cellular processor 333.

[0131] The terminal equipment includes capacitive sensors, such as specific absorption rate sensors, as described above. Figure 4 The SAR sensor 3911 is shown. The capacitive sensor has a first operating mode and a second operating mode, with different duty cycles for the two modes. Based on this, as... Figure 5 As shown, the method includes steps 501 and 502, which will be described below with reference to the accompanying drawings.

[0132] Step 501: Based on the sensor information and / or service information of the terminal device, indicate the scene in which the terminal device is located.

[0133] Optionally, the sensor information of the terminal device may include, but is not limited to, one or more of the following: information collected by a capacitive sensor, information collected by a temperature sensor in the terminal device, information collected by a touch sensor (TP) in the terminal device, etc.

[0134] Optionally, the service information of the terminal device may include, but is not limited to, one or more of the following: the card insertion status of the terminal device, the transmission power of the antenna device connected to the capacitive sensor in the terminal device, the information reflected by the reflection coefficient of the antenna device connected to the capacitive sensor in the terminal device (hereinafter referred to as the antenna reflection coefficient), etc.

[0135] It should be noted that the information collected by the aforementioned sensors can include information directly collected by the sensors, as well as other information calculated or derived from the information directly collected by the sensors. For example, the information collected by a temperature sensor can be understood as temperature information, but this temperature information is actually intermediate data calculated based on the information collected by the temperature sensor. Furthermore, temperature change information can also be calculated from the temperature information. In other words, besides the information collected by the sensors themselves, all information that can be derived or calculated from the information collected by the sensors is also within the scope of the information collected by the sensors. Similarly, the aforementioned business information can include the business information itself, as well as other information calculated or derived from the business information. For example, the information reflected by the reflection coefficient of an antenna device can be understood as touch information reflected by the reflection coefficient of the antenna device. This touch information can be used to indicate whether the user has touched the display screen. In other words, besides the business information itself, all information that can be derived or calculated from the business information is also within the scope of the business information.

[0136] Optionally, the terminal device may indicate the scene it is in based on its sensor information and / or its service information, which may include, but is not limited to, the content shown in any one or more of the following scene recognition methods:

[0137] In the first scene recognition method, the terminal device determines whether it is in a scene sufficiently close to or sufficiently far from a human based on information collected by a capacitive sensor. For example, the terminal device can determine the capacitance parameters of the antenna device connected to the SAR sensor based on the capacitance-to-absorptivity information collected by the SAR sensor. If the capacitance parameters are greater than or equal to a first capacitance threshold, the terminal device is determined to be in a scene sufficiently close to a human; if the capacitance parameters are less than a second capacitance threshold, the terminal device is determined to be in a scene sufficiently far from a human. The first capacitance threshold is greater than or equal to the second capacitance threshold.

[0138] Here, the setting of the first capacitance threshold and the second capacitance threshold can be related to the terminal device, the acquisition sensitivity of the capacitive sensor, or other information, such as the antenna device to which the capacitive sensor is connected. No specific limitation is made.

[0139] Here, the capacitance parameter can be the absolute capacitance value directly calculated from the information collected by the SAR sensor, or it can be the capacitance change calculated from the collected information and the initial capacitance value, which refers to the capacitance value measured by the SAR sensor when the antenna device is in free space. If it's the former, then when the absolute capacitance value directly measured by the SAR sensor is greater than or equal to a first capacitance threshold, it can be considered a scenario where the human body is sufficiently close; when the absolute capacitance value directly measured by the SAR sensor is less than a second capacitance threshold, it can be considered a scenario where the human body is sufficiently far away. If it's the latter, then the capacitance change can be calculated first from the information collected by the SAR sensor (e.g., the directly measured absolute capacitance value) and the capacitance value when the antenna device is in free space. When the capacitance change is greater than or equal to the first capacitance threshold, it can be considered a scenario where the human body is sufficiently close; when the capacitance change is less than the second capacitance threshold, it can be considered a scenario where the human body is sufficiently far away.

[0140] The second scene recognition method involves the terminal device determining whether it is in a scene with stable or drastic temperature changes based on information collected by its temperature sensor. For example, the terminal device can first determine its temperature parameters based on the sensor's data. These parameters can be either an absolute temperature value calculated directly from the sensor's data or a temperature change calculated using the collected data and a reference temperature value. This reference temperature value, also known as the initial temperature value, can be set using the terminal device's factory-set circuit board temperature (or chip temperature, etc.). For example, the reference temperature value could be set to 30°C or another temperature.

[0141] When the temperature parameter is the amount of temperature change, if the temperature parameter is less than or equal to a first temperature threshold, the terminal device is determined to be in a scenario of stable temperature change; if the temperature parameter is greater than a second temperature threshold, the terminal device is determined to be in a scenario of drastic temperature change. The first temperature threshold is less than or equal to the second temperature threshold. The setting of the first and second temperature thresholds can be related to the terminal device, the sensitivity of the temperature sensor, or other information; there are no specific limitations. For example, assuming both the first and second temperature thresholds are 10°C, the terminal device can first calculate the temperature based on the information collected by the temperature sensor, and then calculate the amount of temperature change based on this temperature and a reference temperature value. When the amount of temperature change is less than or equal to 10°C, it is considered a scenario of stable temperature change; when the amount of temperature change is greater than 10°C, it is considered a scenario of drastic temperature change.

[0142] When the temperature parameter is an absolute value, if the temperature parameter is greater than or equal to the third temperature threshold and less than or equal to the fourth temperature threshold, it is considered a scenario of stable temperature change. If the temperature parameter is less than the fifth temperature threshold or greater than the sixth temperature threshold, it is considered a scenario of drastic temperature change. The fifth temperature threshold is less than or equal to the third temperature threshold, the third temperature threshold is less than the fourth temperature threshold, and the fourth temperature threshold is less than or equal to the sixth temperature threshold. The settings of the third, fourth, fifth, and sixth temperature thresholds can be related to the terminal device, the temperature sensor's acquisition sensitivity, or other information; there are no specific limitations. For example, assuming the third and fifth temperature thresholds are both set to 20°C, and the fourth and sixth temperature thresholds are both set to 40°C, then if the temperature directly measured by the temperature sensor is greater than or equal to 20°C and less than or equal to 40°C, it means that the current temperature is changing within a certain temperature range (such as the temperature range related to the temperature when the terminal device was manufactured), which can be considered a scenario of stable temperature change; if the absolute value of the temperature directly measured by the temperature sensor is less than 20°C or greater than 40°C, it means that the current temperature exceeds the above temperature range, which can be considered a scenario of drastic temperature change.

[0143] Scene recognition method three: The terminal device determines whether it is in a scene without a card or in a scene with a card inserted based on the card insertion status of the terminal device.

[0144] The fourth scene recognition method involves the terminal device determining whether it is in a high-power or low-power scene based on the transmission power of the antenna connected to the capacitive sensor. For example, the terminal device obtains the transmission power of the antenna connected to the capacitive sensor. If the transmission power is less than or equal to a first power threshold (e.g., -10dBm), the terminal device is determined to be in a low-power scene; if the transmission power is greater than a second power threshold, the terminal device is determined to be in a high-power scene. The first power threshold is less than or equal to the second power threshold.

[0145] Here, the setting of the first power threshold and the second power threshold can be related to the terminal device, the antenna device, or other information, and there is no specific limitation.

[0146] The fifth scene recognition method involves the terminal device determining whether it is in a scene sufficiently close to or sufficiently far from a human body based on information collected by the touch sensor and / or the reflection coefficient of the antenna device connected to the capacitive sensor. For example, the terminal device can determine whether its display screen has been touched; if touched, it is in a scene sufficiently close to the human body. If not touched, it is in a scene sufficiently far from the human body. Another example is that the terminal device can determine whether the antenna's transmission direction is blocked by a human body based on the antenna reflection coefficient of the antenna device connected to the capacitive sensor; if blocked, it is in a scene sufficiently close; otherwise, it is in a scene sufficiently far from the human body.

[0147] Understandably, the aforementioned scenario determination methods can be combined to form new scenario recognition methods. For example, combining scenario recognition method one and scenario recognition method two, or scenario recognition method five and scenario recognition method two, yields scenario recognition method six. This method six can determine whether the terminal device is in a scenario with stable temperature changes and the human body is sufficiently close, a scenario with stable temperature changes and the human body is sufficiently far away, a scenario with drastic temperature changes and the human body is sufficiently close, or a scenario with drastic temperature changes and the human body is sufficiently far away. As another example, combining scenario recognition method two and scenario recognition method four yields scenario recognition method seven. This method seven can determine whether the terminal device is in a low-power scenario with stable temperature changes, a high-power scenario with stable temperature changes, a low-power scenario with drastic temperature changes, or a high-power scenario with drastic temperature changes. For example, combining the above-mentioned scene recognition methods one, three, and four, we can obtain scene recognition method eight. This method eight can determine whether the terminal device is in a low-power scenario where no card is inserted and the human body is sufficiently close, a high-power scenario where no card is inserted and the human body is sufficiently close, a low-power scenario where no card is inserted and the human body is sufficiently far away, a high-power scenario where no card is inserted and the human body is sufficiently far away, a low-power scenario where the card is inserted and the human body is sufficiently close, a high-power scenario where the card is inserted and the human body is sufficiently close, a low-power scenario where the card is inserted and the human body is sufficiently far away, or a high-power scenario where the card is inserted and the human body is sufficiently far away. And so on, not all will be listed here.

[0148] Step 502: Based on the scenario in which the terminal device is located, control the capacitive sensor to adjust from the first working mode to the second working mode.

[0149] Here, the duty cycles of the first and second operating modes are different. For example, the duty cycle of the first operating mode is greater than that of the second operating mode, or the duty cycle of the first operating mode is less than that of the second operating mode.

[0150] Optionally, assuming the first operating mode has a first duty cycle and the second operating mode has a second duty cycle, the ratio of the larger duty cycle to the smaller duty cycle is greater than or equal to 4.

[0151] For example, taking a ratio of 4 as an example, combined with the above... Figure 1a and Figure 1b , Figure 1a For operating modes with larger duty cycles Figure 1b For the smaller duty cycle operating mode, if the duration T2 of each acquisition cycle in the larger duty cycle operating mode is set to 50ms, then the duration T3 of each acquisition cycle in the smaller duty cycle operating mode can be set to 200ms. The power-on period T1 within each acquisition cycle can be the same for both, for example, both can be set to 25ms. In this way, the larger duty cycle is 0.5, and the smaller duty cycle is 0.125. The capacitive sensor acquires information every 50ms in the larger duty cycle operating mode, and every 200ms in the smaller duty cycle operating mode. This significantly reduces the power required for the capacitive sensor to acquire information, effectively reducing the power consumption of the terminal device.

[0152] For example, taking a ratio of 5 as an example, combined with the above... Figure 1a and Figure 1c , Figure 1a For operating modes with larger duty cycles Figure 1c For the smaller duty cycle operating mode, if the power-on duration T1 in each acquisition cycle is set to 25ms for the larger duty cycle operating mode, then the power-on duration T3 in each acquisition cycle for the smaller duty cycle operating mode can be set to 5ms. The duration T2 in each acquisition cycle can be the same for both, for example, both set to 50ms. In this case, the larger duty cycle is 0.5, and the smaller duty cycle is 0.1. Although the capacitive sensor acquires information every 50ms in both the larger and smaller duty cycle operating modes, the shorter power-on duration for each acquisition in the smaller duty cycle mode results in a shorter actual power-on time for the capacitive sensor. This effectively reduces the power required for the capacitive sensor to acquire information, thereby reducing the power consumption of the terminal device.

[0153] For example, taking a ratio of 10 as an example, combined with the above... Figure 1a and Figure 1c , Figure 1a For operating modes with larger duty cycles Figure 1cFor the smaller duty cycle operating mode, if the duration T2 of each acquisition cycle in the larger duty cycle operating mode is set to 50ms and the power-on duration T1 within each acquisition cycle is set to 25ms, then the duration T3 of each acquisition cycle in the smaller duty cycle operating mode can be set to 100ms and the power-on duration T3 within each acquisition cycle to 5ms. In this way, the larger duty cycle is 0.5, and the smaller duty cycle is 0.05. The capacitive sensor acquires information every 50ms in the larger duty cycle operating mode, while it acquires information every 100ms in the smaller duty cycle operating mode. Furthermore, the power-on duration within each acquisition cycle is shorter in the smaller duty cycle operating mode. Therefore, by increasing the duration of each acquisition cycle and shortening the power-on duration within each acquisition cycle, the power required for the capacitive sensor to acquire information can be further reduced, thereby reducing the power consumption of the terminal device.

[0154] In one example, the ratio of the larger duty cycle to the smaller duty cycle can be set between 4 and 12, including 4 and 12. For example, it can be set between 4 and 6, or between 6 and 8, or between 8 and 10, or between 10 and 12. The duty cycle ratio can be an integer or a non-integer, which will not be listed here.

[0155] The setting of the ratio of the larger duty cycle to the smaller duty cycle is related to the power reduction benefit and the measurement accuracy of the capacitive sensor. The larger the ratio, the better the power reduction effect (or benefit), while the smaller the ratio, the higher the measurement accuracy of the capacitive sensor. Therefore, in one example, the ratio of the larger duty cycle to the smaller duty cycle can be set to balance the power reduction benefit and the measurement accuracy of the capacitive sensor. For example, it can be set to a slightly intermediate value, such as between 6 and 7, or between 7 and 8, or between 8 and 9, or between 9 and 10, etc.

[0156] For example, taking the duty cycle of the first working mode as greater than that of the second working mode as an example, based on the scenario in which the terminal device is located, if the terminal device changes from the first scenario to the second scenario, the capacitive sensor can be controlled to switch from the first working mode to the second working mode, and if the terminal device changes from the second scenario to the first scenario, the capacitive sensor can be controlled to switch from the second working mode to the first working mode.

[0157] The first scenario is one that requires frequent detection of human approach or departure, such as including but not limited to: the scenario where the human is sufficiently far away in the first scenario recognition method, the scenario with drastic temperature changes in the second scenario recognition method, the scenario of inserting a card in the third scenario recognition method, the high-power scenario in the fourth scenario recognition method, and the scenario where the human is sufficiently far away in the fifth scenario recognition method.

[0158] The second scenario is one in which frequent detection of human approach or departure is not required. Examples include, but are not limited to: scenarios where the human body is sufficiently close in the first scenario recognition method, scenarios with stable temperature changes in the second scenario recognition method, scenarios without a card in the third scenario recognition method, low-power scenarios in the fourth scenario recognition method, and scenarios where the human body is sufficiently close in the fifth scenario recognition method.

[0159] In other words, when the terminal device undergoes one or more of the following scenario changes: from a scenario where the human body is sufficiently far away to a scenario where the human body is sufficiently close; from a scenario with drastic temperature changes to a scenario with stable temperature changes; from a scenario with a SIM card inserted to a scenario without a SIM card inserted; from a high-power scenario to a low-power scenario, the terminal device can switch from a high-duty-cycle operating mode to a low-duty-cycle operating mode to save power. Conversely, when the terminal device undergoes one or more of the following scenario changes: from a scenario where the human body is sufficiently close to a scenario where the human body is sufficiently far away; from a scenario with stable temperature changes to a scenario with drastic temperature changes; from a scenario without a SIM card inserted to a scenario with a SIM card inserted; from a low-power scenario to a high-power scenario, the terminal device can switch from a low-duty-cycle operating mode to a high-duty-cycle operating mode to achieve accurate status detection.

[0160] By adopting the above control method, the capacitive sensor will use a large duty cycle in scenarios where frequent state detection is required, thereby achieving better detection performance. In scenarios where frequent state detection is not required, it will use a small duty cycle to reduce detection power consumption. In this way, detection power consumption can be reduced while maintaining high detection accuracy.

[0161] Furthermore, when using the first scene recognition method described above, the terminal device can adjust the operating mode of the capacitive sensor based on the information collected by the capacitive sensor. When using any of the second to fifth scene recognition methods described above, the operating mode of the capacitive sensor can be adjusted based on information collected by other sensors in the terminal device or non-sensor information (i.e., business information). Of course, a combination of methods can also be used, that is, adjusting the operating mode of the capacitive sensor by integrating at least two of the information collected by the capacitive sensor, information collected by other sensors, and non-sensor information.

[0162] To further illustrate the solution, the following section uses different scene transformations as examples to further introduce the specific implementation of the control method provided in this application.

[0163] In the following implementation schemes, unless otherwise specified or logically conflicting, the terminology and / or descriptions of different implementation schemes are consistent and can be referenced interchangeably. Technical features from different implementation schemes can be combined to form new implementation schemes based on their inherent logical relationships. Furthermore, the relevant content of the following implementation schemes also applies to other scenarios indicated above, and this application does not specifically limit them.

[0164] Implementation Plan 1

[0165] Please see Figure 6 This diagram illustrates the interactive flow of a control method provided in Implementation Scheme 1. This method can be executed by a terminal device, such as the one described above. Figure 3 The terminal device 300 in the middle. Further, it can be executed by the processor 330 and the capacitive sensor in the terminal device 300, the processor 330 being, for example, a... Figure 4 The sensor hub 332 shown can be used with capacitive sensors, for example, Figure 4 The SAR sensor 3911 is shown. That is to say, the control method can be jointly executed by the sensor hub 332 and the SAR sensor 3911.

[0166] like Figure 6 As shown, the method includes steps 601, 602, 603 and 604, which will be described below with reference to the accompanying drawings.

[0167] Step 601: The SAR sensor sends the collected information to the sensor hub.

[0168] Optionally, please refer to Figure 7 The diagram illustrates a connection method between a sensor hub 332 and a SAR sensor 3911 according to Embodiment 1. The SAR sensor 3911 can be mounted on the sensor hub 332 and connected to the radiator of an antenna device. The SAR sensor 3911 can have multiple channels, including a sensing channel T1 and a temperature-compensated channel T2. The sensing channel T1 is used to sense the capacitance parameters on the radiator of the antenna device, while the temperature-compensated channel T2 is used to provide accurate temperature compensation for the SAR sensor 3911, enabling it to more accurately detect the approach of a human body. Of course, in some scenarios, the SAR sensor 3911 may only have a sensing channel T1 without a temperature-compensated channel T2. In this case, the capacitance parameters sensed on the sensing channel T1 can be directly used as the capacitance parameters sensed by the SAR sensor 3911.

[0169] Furthermore, optionally, the antenna device can be any one or more ungrounded antenna devices in the terminal device, such as, but not limited to, cellular antennas and Wi-Fi antennas. Since the SAR sensor 3911 can be connected to an antenna device through one or two channels (induction channel, or induction channel and temperature compensation channel), if the SAR sensor 3911 is a three-channel sensor, then the SAR sensor 3911 can be connected to at least one antenna device; if the SAR sensor 3911 is a five-channel sensor, then the SAR sensor 3911 can be connected to at least two antenna devices; if the SAR sensor 3911 is an eight-channel sensor, then the SAR sensor 3911 can be connected to three, four, or more antenna devices, and so on, which will not be listed here.

[0170] Optionally, combined Figure 7 After the terminal device is started, the SAR sensor 3911 defaults to the first operating mode, which has a relatively large duty cycle. The SAR sensor 3911 can collect information from the connected radiator in the first operating mode and send it to the sensor hub 332. For example, if the first operating mode is as follows... Figure 1a As shown, T2 is 50ms. Therefore, the SAR sensor 3911 can sense the capacitance information on the radiator through its sensing channel T1 and the temperature information on the radiator through its temperature compensation channel T2 every 50ms. It then uses the temperature information to compensate for the capacitance information, obtaining accurate capacitance information, and finally sends it to the sensor hub 332. In other words, the SAR sensor 3911 sends a message to the sensor hub 332 every 50ms.

[0171] Step 602: The sensor hub determines whether the capacitance parameter corresponding to the collected information is greater than or equal to the set capacitance threshold. If yes, proceed to step 603; otherwise, proceed to step 604.

[0172] Understandably, when a human body approaches a radiator, the capacitance of the radiator increases. Therefore, the capacitance parameter corresponding to the information collected by the SAR sensor 3911 will also increase. This capacitance parameter can be the absolute value of capacitance directly measured based on the information collected by the SAR sensor 3911, or it can be the change in capacitance calculated from the directly measured capacitance and the capacitance value of the antenna device in free space; there is no limitation on this.

[0173] Based on this, combined Figure 7The sensor hub 332 can be pre-configured with a set capacitance threshold, which is the first capacitance threshold in the scene recognition method described above, and the first capacitance threshold is the same as the second capacitance threshold. Each time the sensor hub 332 receives a piece of information from the SAR sensor 3911, it first calculates the corresponding capacitance parameter based on that information, and then compares the capacitance parameter with the set capacitance threshold. If the capacitance parameter is greater than or equal to the set capacitance threshold, it means that the current scene is one where the human body is sufficiently close; if the capacitance parameter is less than the set capacitance threshold, it means that the current scene is one where the human body is sufficiently far away.

[0174] Step 603: The sensor hub controls the SAR sensor to use a second operating mode, which has a smaller duty cycle.

[0175] Understandably, when a human body is close enough, it means that the proximity of the human body has been detected. In this state, the capacitance caused by changes in the external environment is relatively small, and the impact of this capacitance on the judgment of the sensing state is also small. Therefore, the capacitance collected by the SAR sensor 3911 will not change significantly, and the SAR sensor 3911 does not need to collect information frequently, so as to reduce the power consumption of the terminal device.

[0176] Based on this, a first operating mode and a second operating mode can be pre-configured in the sensor hub 332. After detecting a sufficiently close human body, the sensor hub 332 can control the SAR sensor 3911 to use the second operating mode with a lower duty cycle to collect information. The duty cycle of the second operating mode is smaller than that of the first operating mode. For example, combining the above... Figure 1a and Figure 1b The duration of one acquisition cycle T2 in the first working mode is 50ms, while the duration of one acquisition cycle T2 in the second working mode is 500ms. Thus, the SAR sensor 3911 will change from acquiring and reporting one piece of information every 50ms to acquiring and reporting one piece of information every 500ms. The acquisition power consumption and reporting power consumption of the SAR sensor 3911 are significantly reduced.

[0177] Optionally, after detecting a sufficiently close human body, the sensor hub 332 can also control the antenna device connected to the SAR sensor 3911 to reduce its transmission power in order to reduce close-range radiation. That is, in situations where a human body is sufficiently close, the sensor hub 332 can reduce both the transmission power of the antenna device and the duty cycle of the SAR sensor 3911. This reduces the power consumption of the terminal device while ensuring the human body detection function is achieved.

[0178] Furthermore, reducing the duty cycle of the SAR sensor 3911 not only reduces the power consumption of the terminal device but also benefits other scenarios where a lower duty cycle is required. For example, the antenna device connected to the SAR sensor 331 can be the mid-frame of the terminal device (referred to as a mid-frame antenna) or located inside the mid-frame. A mid-frame antenna refers to an antenna whose radiator is directly touchable by the human body. When the antenna device is a mid-frame antenna, such as... Figure 7 As shown, since the SAR sensor 3911 is connected to the mid-frame antenna, reducing the duty cycle of the SAR sensor 3911 can shorten the voltage contact time between the SAR sensor 3911 and the mid-frame antenna, thereby mitigating the electrochemical reaction of the mid-frame antenna and extending its service life. Of course, there may be other beneficial scenarios, which are not specifically limited here.

[0179] Step 604: The sensor hub controls the SAR sensor to use the first operating mode, which has a relatively large duty cycle.

[0180] Understandably, when a human body is far enough away, it means that the state of human approach has not yet been detected. In this case, the capacitance generated by changes in the external environment is relatively large, and this capacitance has a greater impact on the judgment of the sensing state. For example, if a human body moves from being far away from the radiator to being close to the radiator, the capacitance collected by the SAR sensor 3911 will suddenly increase. Therefore, the SAR sensor 3911 needs to collect information frequently to detect whether it has switched to the state of human approach in a timely manner, so as to ensure a relatively high detection accuracy.

[0181] Based on this, after detecting a human body sufficiently far away, the sensor hub 332 can control the SAR sensor 3911 to use a first operating mode with a higher duty cycle to collect information. The duty cycle of the first operating mode can be pre-configured or selected according to the actual application scenario; there is no specific limitation. Because the duty cycle of the first operating mode is high, it ensures that the human body detection function is not affected and that there are no misjudgments or hysteresis effects.

[0182] Optionally, after detecting a human body sufficiently far away, the sensor hub 332 can also control the antenna device connected to the SAR sensor 3911 to restore its transmission power in order to improve radiation performance. That is, in a scenario where the human body is sufficiently far away, the sensor hub 332 can restore the transmission power of the antenna device on the one hand, and restore the duty cycle of the SAR sensor 3911 on the other hand, in order to maintain high detection performance.

[0183] It should be noted that in steps 602 to 604 above, after the sensor hub 332 receives each piece of information sent by the SAR sensor 3911, it can first determine whether the current scene is one where the human body is sufficiently close or sufficiently far away, and then:

[0184] In the first implementation, the sensor hub 332 determines whether the current scene has changed compared to the previously determined scene. If it has changed, it sends a control signal to the SAR sensor 3911 to control the SAR sensor 3911 to switch its operating mode. If it has not changed, there is no need to send a control signal to the SAR sensor 3911. For example, if it is determined that the scene has changed from one where the human body is sufficiently far away to one where the human body is sufficiently close, a first control signal is sent to the SAR sensor 3911. The first control signal is used to control the SAR sensor 3911 to switch from a first operating mode with a large duty cycle to a second operating mode with a small duty cycle. If it is determined that the scene has changed from one where the human body is sufficiently close to one where the human body is sufficiently far away, a second control signal is sent to the SAR sensor 3911. The second control signal is used to control the SAR sensor 3911 to switch from the second operating mode with a small duty cycle to the first operating mode with a large duty cycle. In the first implementation, the sensor hub 332 only sends a control signal to the SAR sensor 3911 when it determines that the scene has changed. Compared with the method of sending a control signal every time the scene is determined (i.e., the second implementation below), unnecessary interaction between the sensor hub 332 and the SAR sensor 3911 can be avoided, thereby reducing communication power consumption.

[0185] In the second implementation, if the sensor hub 332 determines that the current scene is close enough to a human, it sends a first control signal to the SAR sensor 3911. This first control signal controls the SAR sensor 3911 to use a second operating mode with a small duty cycle to collect information. That is, if the SAR sensor 3911 was already using the second operating mode, it continues to use the second operating mode; if it was previously using the first operating mode, it switches to the second operating mode. Conversely, if the sensor hub 332 determines that the current scene is far enough away from a human, it sends a second control signal to the SAR sensor 3911. This second control signal controls the SAR sensor 3911 to use a first operating mode with a large duty cycle to collect information. That is, if the SAR sensor 3911 was already using the first operating mode, it continues to use the first operating mode; if it was previously using the second operating mode, it switches to the first operating mode. In the second implementation, the sensor hub 332 sends a control signal to the SAR sensor 3911 every time a scene is determined, without having to compare it with the previous scene. Therefore, compared with the first implementation, the internal processing flow of the sensor hub 332 can be reduced, and the workload of the sensor hub 332 can be reduced.

[0186] Using the above implementation scheme one, the system can distinguish between two scenarios: a person being sufficiently close and a person being sufficiently far away, based on information collected by the capacitive sensor. When changing from a scenario where the person is sufficiently far away to one where the person is sufficiently close, the capacitive sensor switches from a high duty cycle mode to a low duty cycle mode to save power consumption in the terminal device. Conversely, when changing back from a scenario where the person is sufficiently close to one where the person is sufficiently far away, the capacitive sensor switches from a low duty cycle (second mode) back to a high duty cycle (first mode) mode to ensure high detection accuracy. In this way, the accuracy of the human detection function can be ensured while reducing the power consumption of the terminal device.

[0187] Implementation Plan 2

[0188] Please see Figure 8 The diagram illustrates the interactive flow of a control method provided in Implementation Scheme 2. This method can be executed by a terminal device, such as the one described above. Figure 3 The terminal device 300 in the process. Further, it can be executed by a processor 330 and a capacitive sensor in the terminal device 300. The processor 330 may include, for example, a... Figure 4 The sensor hub 332 and cellular processor 333 shown can be, for example, capacitive sensors. Figure 4 The SAR sensor 3911 is shown. That is to say, the control method can be jointly executed by the sensor hub 332, the cellular processor 333 and the SAR sensor 3911.

[0189] like Figure 8 As shown, the method includes steps 801, 802, 803, 804, 805, and 806, which will be described below with reference to the accompanying drawings.

[0190] Step 801: The cellular processor obtains the transmit power of the antenna device connected to the SAR sensor in the terminal device.

[0191] In combination with the above Figure 4 The cellular processor 333 is connected to the RF circuit 334. Through interaction with the RF circuit 334, the cellular processor 333 can obtain the transmission power of the antenna device connected to the sensor hub 332. For example, the cellular processor 333 can periodically interact with the antenna device to obtain its transmission power in order to periodically identify the current power scenario.

[0192] Step 802: The cellular processor determines whether the transmit power of the antenna device is less than or equal to the set power threshold. If yes, it determines that the current scenario is a low-power scenario and proceeds to step 803. If no, it determines that the current scenario is a high-power scenario and proceeds to step 805.

[0193] Optionally, a power threshold can be pre-configured in the cellular processor 333. This power threshold is the same as the first power threshold in the fourth scene recognition method described above, and it is identical to the second power threshold. After obtaining the transmission power of each antenna device, the cellular processor 333 can compare this transmission power with the set power threshold. If the transmission power is less than or equal to the set power threshold, the current scene is determined to be low-power; if the transmission power is greater than the set power threshold, the current scene is determined to be high-power.

[0194] The power threshold can be set by those skilled in the art based on experience, or it can be customized by the user, without limitation.

[0195] For example, in one scenario, the power threshold could be set to a value lower than the transmission power required for a sufficiently close human presence, such as -10 dBm. Thus, when the antenna's transmission power is less than or equal to the set power threshold, it means the current transmission power is already lower than what should be required for a sufficiently close human presence. Conversely, when the antenna's transmission power is greater than the set power threshold, it means the current transmission power may be greater than, or less than or equal to, what should be required for a sufficiently close human presence, but compared to scenarios where the power is less than or equal to the set power threshold, the antenna's transmission power is relatively higher, belonging to a high-power scenario.

[0196] Step 803: The cellular processor sends first scene information to the sensor hub. The first scene information is used to indicate that the antenna device is in a low-power scene.

[0197] In combination with the above Figure 4 or Figure 7 The cellular processor 333 is also connected to the sensor hub 332. After determining a power scene, the cellular processor 333 can send that power scene to the sensor hub 332. Alternatively, after determining a power scene, the cellular processor 333 can first compare that power scene with previously determined power scenes, and only send the scene information to the sensor hub 332 after detecting a change in the power scene.

[0198] For example, if it's the former, then after the cellular processor 333 determines that the current scene is a low-power scene, it can send the first scene information to the sensor hub 332. This first scene information is used to indicate that the antenna device connected to the SAR sensor 3911 is currently in a low-power scene. If it's the latter, after determining that the current scene is a low-power scene, if it was previously in a high-power scene, the cellular processor 333 will send the first scene information to the sensor hub 332. This first scene information is used to instruct the antenna device connected to the SAR sensor 3911 to switch from a high-power scene to a low-power scene. If it was previously in a low-power scene, then it doesn't need to send information to the sensor hub 332.

[0199] Step 804: The sensor hub controls the SAR sensor to use a second operating mode, which has a smaller duty cycle.

[0200] Understandably, in low-power scenarios, the transmit power of the antenna connected to the SAR sensor 3911 is relatively low, possibly close to or less than the transmit power required for a sufficiently close human presence. In such cases, it's unnecessary for the SAR sensor 3911 to frequently collect information from the antenna to determine if a human is approaching. Therefore, after receiving the first scenario information from the cellular processor 333, the sensor hub 332 can control the SAR sensor 3911 to use a second operating mode with a lower duty cycle (or a third operating mode, where the duty cycle of the third mode is lower than that of the first mode) to collect information, effectively reducing the device's power consumption in this scenario. Of course, if the antenna is a mid-frame antenna for a terminal device, reducing the duty cycle can also alleviate the electrochemical reaction of the mid-frame antenna and extend its lifespan. Other beneficial scenarios are also possible, but specific limitations are not provided here.

[0201] Step 805: The cellular processor sends second scene information to the sensor hub. The second scene information is used to indicate that the antenna device is in a high-power scene.

[0202] For example, after determining that the current scene is a high-power scene, the cellular processor 333 can send second scene information to the sensor hub 332. This second scene information is used to indicate that the antenna device connected to the SAR sensor 3911 is currently in a high-power scene. Alternatively, after determining that the current scene is a high-power scene, if the scene was previously a low-power scene, the cellular processor 333 can send second scene information to the sensor hub 332. This second scene information is used to instruct the antenna device connected to the SAR sensor 3911 to switch from a low-power scene to a high-power scene. If the scene was previously a high-power scene, then it is not necessary to send information to the sensor hub 332.

[0203] Step 806: The sensor hub controls the SAR sensor to use the first operating mode, which has a relatively large duty cycle.

[0204] Understandably, in high-power scenarios, the antenna device's transmission power is relatively high, potentially exceeding the transmission power in scenarios where a human body is sufficiently close. In such cases, the SAR sensor 3911 needs to frequently collect information to accurately determine whether it has entered a close proximity state, thereby reducing close-range radiation. Therefore, after receiving the second scene information sent by the cellular processor 333, the sensor hub 332 can control the SAR sensor 3911 to use a first operating mode with a higher duty cycle to collect information, ensuring that the device's performance is not affected and that there are no misjudgments or hysteresis effects.

[0205] It should be noted that the methods described in steps 802 to 806 above involve the cellular processor acquiring the transmit power of the antenna device, determining the power scenario, and sending it to the sensor hub. However, in other methods, the cellular processor may directly send the acquired transmit power of the antenna device to the sensor hub, which then identifies high-power or low-power scenarios based on the transmit power of the antenna device and controls the operation mode of the SAR sensor accordingly. The latter method allows the sensor hub to uniformly handle scenario identification and operation mode control, while the former method reduces the workload of the sensor hub. The specific method used can be determined based on the actual scenario requirements. For example, the latter method can be used when the sensor hub has high processing power, while the former method can be used when the sensor hub's processing power is insufficient. Of course, other implementations are also possible, and this application does not limit them.

[0206] By adopting the above-described implementation scheme two, the high-power and low-power scenarios can be distinguished by the transmission status of the terminal antenna. When switching from a high-power scenario to a low-power scenario, the capacitive sensor is controlled to switch from a high duty cycle operating mode to a low duty cycle operating mode to save power consumption of the terminal device. Conversely, when switching back from a low-power scenario to a high-power scenario, the capacitive sensor is controlled to switch from a low duty cycle second operating mode back to a high duty cycle first operating mode to ensure high detection accuracy. In this way, the accuracy of the human body detection function can be ensured while reducing the power consumption of the terminal device.

[0207] Implementation Plan 3

[0208] Please see Figure 9 The diagram illustrates the interactive flow of a control method provided in Implementation Scheme 3. This method can be executed by a terminal device, such as the one described above. Figure 3 The terminal device 300 in the process. Further, it can be executed by a processor 330 and a capacitive sensor in the terminal device 300. The processor 330 may include, for example, a... Figure 4 The sensor hub 332 and application processor 331 shown herein, the capacitive sensor may be, for example, Figure 4 The SAR sensor 3911 is shown. That is, the control method can be jointly executed by the sensor hub 332, the application processor 331, and the SAR sensor 3911.

[0209] like Figure 9 As shown, the method includes steps 901, 902, 903 and 904, which will be described below with reference to the accompanying drawings.

[0210] Step 901: The application processor obtains the card insertion status of the terminal device.

[0211] Optionally, the card insertion status of the terminal device refers to whether the SIM card is inserted into the card slot of the terminal device.

[0212] Optionally, the SIM card insertion status can be detected by a detection circuit located at the SIM card slot. For example, a status detection pin can be pre-configured in the detection circuit. When the SIM card is not inserted into the terminal device's SIM card slot, the status detection pin is at a high level. When the SIM card is inserted, the status detection pin is grounded, and the pin level becomes low. Thus, the application processor 331 can determine whether the terminal device is in a SIM card insertion state or a non-SIM card insertion state by acquiring the status level of the status detection pin. For example, the application processor 331 can periodically acquire the status level of the status detection pin to periodically determine the SIM card insertion status of the terminal device.

[0213] Step 902: The application processor determines whether the card insertion status of the terminal device is no card insertion. If yes, it determines that the current situation is a no card insertion scenario and proceeds to step 903. If no, it determines that the current situation is a card insertion scenario and proceeds to step 905.

[0214] Step 903: The application processor sends first scene information to the sensor hub. The first scene information is used to indicate that the terminal device is in a no-card-insertion scene.

[0215] In combination with the above Figure 4 or Figure 7 Application processor 331 is also connected to sensor hub 332. In one example, after determining that the current scenario is one without a SIM card, application processor 331 can directly send first scenario information to sensor hub 332. This first scenario information indicates that the terminal device is currently in a scenario without a SIM card. Alternatively, in another example, after determining that the current scenario is one without a SIM card, if the previous scenario was one with a SIM card, application processor 331 sends first scenario information to sensor hub 332. This first scenario information indicates that the terminal antenna should switch from a scenario with a SIM card to one without a SIM card. If the previous scenario was also one without a SIM card, then no information needs to be sent to sensor hub 332.

[0216] Step 904: The sensor hub controls the SAR sensor to use a second operating mode, which has a smaller duty cycle.

[0217] Understandably, when the SAR sensor 3911 is connected to the cellular antenna, in scenarios without a SIM card, the terminal device cannot provide cellular data, meaning the cellular antenna's function is unavailable. Therefore, it's unnecessary to frequently collect information with the SAR sensor 3911 to determine if a human is approaching, as the cellular antenna won't transmit a signal even if it does. Based on this, after receiving the first scene information from the application processor 331, the sensor hub 332 can control the SAR sensor 3911 to use a second operating mode with a lower duty cycle (or a fifth operating mode, where the duty cycle of the fifth mode is lower than that of the first mode) to collect information, effectively reducing device power consumption in this scenario. Of course, if the cellular antenna is the mid-frame antenna of the terminal device, reducing the duty cycle can also alleviate the electrochemical reaction of the mid-frame antenna and extend its lifespan. Other beneficial scenarios are also possible, but specific limitations are not provided here.

[0218] Step 905: The application processor sends second scene information to the sensor hub. The second scene information is used to indicate that the terminal device is in a card-inserted scene.

[0219] In one example, after determining that the current scenario is a SIM card inserted scenario, the application processor 331 can directly send second scenario information to the sensor hub 332. This second scenario information indicates that the terminal device is currently in a SIM card inserted scenario. Alternatively, in another example, after determining that the current scenario is a SIM card inserted scenario, if the previous scenario was a non-SIM card inserted scenario, the application processor 331 sends second scenario information to the sensor hub 332. This second scenario information indicates that the terminal antenna should switch from a non-SIM card inserted scenario to a SIM card inserted scenario. If the previous scenario was also a SIM card inserted scenario, then no information needs to be sent to the sensor hub 332.

[0220] Step 906: The sensor hub controls the SAR sensor to use a first operating mode, which has a relatively large duty cycle.

[0221] Understandably, when the SAR sensor 3911 is connected to a cellular antenna, the cellular antenna functions normally in a scenario where a SIM card is inserted. Therefore, the SAR sensor 3911 needs to frequently collect information to promptly identify whether a human is approaching. Based on this, after receiving the second scene information sent by the application processor 331, the sensor hub 332 can control the SAR sensor 3911 to use a first operating mode with a higher duty cycle to collect information, ensuring that the device's performance is not affected and that there are no misjudgments or hysteresis effects.

[0222] It should be noted that the methods shown in steps 902 to 906 above involve the application processor obtaining the SIM card insertion status of the terminal device, determining the SIM card insertion scenario, and sending it to the sensor hub. However, in other methods, the application processor may directly send the obtained SIM card insertion status of the terminal device to the sensor hub, which then identifies whether a SIM card is inserted or not based on the SIM card insertion status of the terminal device, and controls the operation mode of the SAR sensor according to the identified scenario. This application does not limit the specific method used in this regard.

[0223] Using the above-described implementation scheme three, the terminal device can distinguish between two scenarios: SIM card inserted and SIM card not inserted. When changing from a SIM card inserted scenario to a SIM card not inserted scenario, the capacitive sensor switches from a high duty cycle operating mode to a low duty cycle operating mode to save power consumption. Conversely, when changing back from a SIM card not inserted scenario to a SIM card inserted scenario, the capacitive sensor switches from a low duty cycle second operating mode back to a high duty cycle first operating mode to ensure high detection accuracy. This approach reduces power consumption of the terminal device while ensuring the accuracy of the human body detection function.

[0224] Implementation Plan 4

[0225] Please see Figure 10The diagram illustrates the interactive flow of a control method provided in Implementation Scheme 4. This method can be executed by a terminal device, such as the one described above. Figure 3 The terminal device 300 in the middle. Further, it can be executed by the processor 330, capacitive sensor, and temperature sensor in the terminal device 300. The processor 330 can be, for example, a... Figure 4 The sensor hub 332 shown can be used with capacitive sensors, for example, Figure 4 The SAR sensor 3911 shown can be, for example, a temperature sensor. Figure 4 The temperature sensor 3913 is shown. That is to say, the control method can be jointly executed by the sensor hub 332, the SAR sensor 3911 and the temperature sensor 3913.

[0226] like Figure 10 As shown, the method includes steps 1001, 1002, 1003 and 1004, which will be described below with reference to the accompanying drawings.

[0227] Step 1001: The temperature sensor sends the collected information to the sensor hub.

[0228] Combination Figure 4 and Figure 7 Temperature sensor 3913 is mounted under sensor hub 332. Temperature sensor 3913 can be additionally set and placed at the position of the antenna device connected to SAR sensor 3911, or it can be an existing temperature sensor in the terminal device, such as the temperature sensor corresponding to the temperature compensation channel of SAR sensor 3911. The specific is not limited.

[0229] Optionally, the temperature sensor 3913 can collect information periodically and report it to the sensor hub 332. For example, if the period is 50ms, the temperature sensor 3913 can send a message to the sensor hub 332 every 50ms.

[0230] Step 1002: The sensor hub determines whether the temperature parameter corresponding to the collected information is greater than or equal to the set temperature threshold. If yes, proceed to step 1003; otherwise, proceed to step 1004.

[0231] Here, combined Figure 7 The temperature parameter can be the absolute temperature value measured directly based on the information collected by the temperature sensor 3913, or it can be the temperature change calculated based on the information collected by the temperature sensor 3913 and a reference temperature value; there is no limitation. For ease of understanding, the latter will be used as an example below.

[0232] Here, the temperature threshold can be understood as the critical value between two states: drastic temperature changes and stable temperature changes. This critical value can be set by those skilled in the art based on experience, or it can be customized by the user; there are no specific limitations.

[0233] Based on this, combined Figure 7 The sensor hub 332 can be pre-configured with a set temperature threshold, which is the first temperature threshold in the second scene recognition method described above. The first temperature threshold is the same as the second temperature threshold. Each time the sensor hub 332 receives a message from the temperature sensor 3913, it first calculates the corresponding temperature value based on that message, then calculates the temperature change based on that temperature value and a reference temperature value, and compares the temperature change with the set temperature threshold. If the temperature change is less than or equal to the set temperature threshold, it means the current scene is one of stable temperature changes; if the temperature change is greater than the set temperature threshold, it means the current scene is one of drastic temperature changes.

[0234] Step 1003: The sensor hub controls the SAR sensor to use a second operating mode, which has a relatively small duty cycle.

[0235] Understandably, in scenarios with stable temperature changes, the temperature of the terminal device will not change significantly in a short period of time. Therefore, the temperature compensation effect has a relatively small impact on the capacitance collected by the SAR sensor 3911. In other words, the capacitance value collected by the SAR sensor 3911 will not fluctuate significantly. Therefore, the SAR sensor 3911 does not need to collect information frequently.

[0236] Based on this, when the sensor hub 332 detects a stable temperature change or a transition from a drastic temperature change to a stable temperature change, it can control the SAR sensor 3911 to use a second operating mode with a lower duty cycle (or a fourth operating mode, where the duty cycle of the fourth operating mode is lower than that of the first operating mode) to collect information. For example, the collection time might change from 50ms to 500ms per data point, while maintaining the same power-on duration for the SAR sensor 3911, effectively reducing the device's power consumption in this scenario. Of course, if the antenna connected to the SAR sensor 3911 is a mid-frame antenna of a terminal device, reducing the duty cycle can also alleviate the electrochemical reaction of the mid-frame antenna and extend its lifespan. Other beneficial scenarios are also possible, but specific limitations are not provided here.

[0237] Step 1004: The sensor hub controls the SAR sensor to use the first operating mode, which has a relatively large duty cycle.

[0238] Understandably, in scenarios with drastic temperature changes, the temperature of the terminal device may change significantly in a short period of time. Therefore, the temperature compensation effect has a significant impact on the capacitance collected by the SAR sensor 3911. In other words, the capacitance value collected by the SAR sensor 3911 may fluctuate considerably. As a result, the SAR sensor 3911 needs to collect information frequently to detect the approach of a human body in a timely manner.

[0239] Based on this, when the sensor hub 332 detects a scenario with drastic temperature changes, or a scenario where the temperature changes from a stable temperature change to a scenario with drastic temperature changes, it can control the SAR sensor 3911 to use a first operating mode with a higher duty cycle to collect information, so as to ensure that the detection function is not affected and that there are no misjudgments of the state or hysteresis effects.

[0240] By adopting the above implementation scheme four, two scenarios—stable temperature change and drastic temperature change—can be distinguished based on the temperature variations of the antenna device. When transitioning from a scenario of drastic temperature change to one of stable temperature change, the capacitive sensor is controlled to switch from a high duty cycle operating mode to a low duty cycle operating mode to save power consumption of the terminal device. Conversely, when transitioning from a scenario of stable temperature change back to one of drastic temperature change, the capacitive sensor is controlled to switch from a low duty cycle second operating mode back to a high duty cycle first operating mode to ensure high detection accuracy. In this way, the accuracy of the human body detection function can be ensured while reducing the power consumption of the terminal device.

[0241] The above-described implementation schemes one through four are only for determining the operation mode of a capacitive sensor based on a single sensor or single business information. However, any two or more of the above implementation schemes one through four can be combined to obtain new implementation schemes. For ease of understanding, two examples based on implementation schemes five and six are given below.

[0242] Implementation Plan 5

[0243] Please see Figure 11 The diagram illustrates the interactive flow of a control method provided in Implementation Scheme 5. This method combines the features of Implementation Scheme 1 and Implementation Scheme 2, simultaneously referencing information collected by the capacitive sensor and the transmission status of the terminal antenna to comprehensively determine the operating mode of the capacitive sensor. This method can be executed by a terminal device, such as the one described above. Figure 3 The terminal device 300 in the middle. Further, it can be executed by the processor 330 and the capacitive sensor in the terminal device 300, the processor 330 being, for example, a... Figure 4 The sensor hub 332 and cellular processor 333 shown can be, for example, capacitive sensors. Figure 4The SAR sensor 3911 is shown. That is to say, the control method can be jointly executed by the sensor hub 332, the cellular processor 333 and the SAR sensor 3911.

[0244] Step 1101: The SAR sensor sends the collected information to the sensor hub.

[0245] Optionally, the SAR sensor can acquire information from the connected antenna device in a first cycle and send it to the sensor hub. The duration of the first cycle can be, for example, the duration of a pulse corresponding to the current operating mode of the SAR sensor.

[0246] Step 1102: The sensor hub determines whether the current scene is one where the human body is sufficiently close or sufficiently far away, based on the information collected by the SAR sensor.

[0247] Here, when the capacitance value corresponding to the information collected by the SAR sensor is greater than or equal to a set capacitance threshold, the sensor hub determines that the current scene is one where a human is sufficiently close. Conversely, when the capacitance value corresponding to the information collected by the SAR sensor is less than the set capacitance threshold, the sensor hub determines that the current scene is one where a human is sufficiently far away.

[0248] Step 1103: The cellular processor obtains the transmit power of the antenna device connected to the SAR sensor in the terminal device.

[0249] Optionally, the cellular processor can acquire the transmit power of the antenna device connected to the SAR sensor in a second cycle. The duration of the second cycle can be the same as or different from the duration of the first cycle; no specific limitation is imposed.

[0250] Step 1104: The cellular processor sends scene information to the sensor hub based on the transmission power of the antenna device connected to the SAR sensor in the terminal device. The scene information is used to indicate a high-power scene or a low-power scene.

[0251] Here, if the transmit power of the antenna device is less than or equal to a set power threshold, the cellular processor can send first scene information to the sensor hub, which indicates a low-power scene. Conversely, if the transmit power of the antenna device is greater than the set power threshold, the cellular processor can send second scene information to the sensor hub, which indicates a high-power scene.

[0252] Among them, the power threshold is set to be less than the transmission power of the antenna device in a scenario where the human body is sufficiently close.

[0253] It should be noted that the order of steps 1101-1102 and steps 1103-1104 is not limited. For example, steps 1101-1102 and steps 1103-1104 can be performed simultaneously, or steps 1101-1102 can be performed first, followed by steps 1103-1104, or steps 1103-1104 can be performed first, followed by steps 1101-1102, and so on. This application does not impose specific limitations in this regard.

[0254] Step 1105: The sensor hub determines the scene combination based on the content of steps 1101 to 1104 above.

[0255] If it is a low-power scenario, then proceed to step 1106;

[0256] If it is a high-power scenario and the human body is close enough, then proceed to step 1107;

[0257] If it is a high-power scenario and the human body is far enough away, then proceed to step 1108.

[0258] Here, low-power scenarios include scenarios where the low-power output is sufficiently close to the human body and scenarios where the low-power output is sufficiently far from the human body. The symbol "&" here means "and" or "and", that is, both conditions are met simultaneously.

[0259] Step 1106: The sensor hub controls the SAR sensor to use a second operating mode, which has a relatively small duty cycle.

[0260] Understandably, when the set power threshold is less than the transmission power of the antenna device in a scenario where the human body is sufficiently close, the low-power scenario means that the current transmission power of the antenna device is already less than the transmission power in a scenario where the human body is sufficiently close. Whether the human body is sufficiently close or sufficiently far away, there is no need for the SAR sensor to collect information frequently, because even if the information collected by the SAR sensor detects a scenario where the human body is sufficiently close, there is no need to adjust the transmission power.

[0261] Based on this, if the sensor hub determines that the current scenario is a low-power scenario, it can control the SAR sensor to use a second operating mode with a small duty cycle. For example, if it determines that the scenario is changing from a high-power scenario to a low-power scenario, it can control the SAR sensor to switch from the first operating mode with a large duty cycle to the second operating mode with a small duty cycle, so as to save power consumption of the terminal device.

[0262] Alternatively, another implementation can distinguish between scenarios where the SAR sensor is sufficiently close to the human body and scenarios where the SAR sensor is sufficiently far away from the human body. For example, in a scenario where the SAR sensor is sufficiently far away from the human body, the sensor hub can control the SAR sensor to use the second operating mode. In a scenario where the SAR sensor is sufficiently close to the human body, the SAR sensor can be controlled to use an operating mode with a smaller duty cycle, such as the fourth operating mode, which has a smaller duty cycle than the second operating mode. This further reduces the power consumption of the terminal device in scenarios where the SAR sensor is sufficiently close to the human body.

[0263] Step 1107: The sensor hub controls the SAR sensor to use the third operating mode, which has a relatively small duty cycle.

[0264] Understandably, in scenarios with high power and the human body close enough, although the current transmission power of the antenna device is relatively high, the human body is currently close to the antenna device, and the capacitance collected by the SAR sensor will not change significantly. In this case, it is not necessary for the SAR sensor to collect information frequently.

[0265] Based on this, if the sensor hub determines that the current scenario is a high-power scenario where the human body is sufficiently close, it can control the SAR sensor to use a third operating mode with a smaller duty cycle. For example, if it determines that the scenario changes from a low-power scenario to a high-power scenario where the human body is sufficiently close, it can control the SAR sensor to switch from a second operating mode with a smaller duty cycle to a third operating mode with a smaller duty cycle. Alternatively, if it determines that the scenario changes from a high-power scenario where the human body is sufficiently far away to a high-power scenario where the human body is sufficiently close, it can control the SAR sensor to switch from a second operating mode with a smaller duty cycle to a third operating mode with a smaller duty cycle.

[0266] The duty cycle of the third working mode can be the same as or different from that of the second working mode. For example, it can be equal to, greater than, or less than the duty cycle of the second working mode, without any limitation.

[0267] In a specific example, the third operating mode is the same as the second operating mode. That is to say, in low-power scenarios and / or when the human body is close enough, the sensor hub can control the SAR sensor to use the same operating mode without switching operating modes.

[0268] Step 1108: The sensor hub controls the SAR sensor to use the first operating mode, which has a relatively large duty cycle.

[0269] Understandably, in high-power scenarios where the human body is sufficiently far away, the current transmission power of the antenna device is relatively high, and the human body is also relatively far away from the antenna device. The capacitance collected by the SAR sensor will change significantly as the human body approaches. Therefore, the SAR sensor needs to collect information frequently in order to detect scenarios where the human body is sufficiently close in a timely and accurate manner.

[0270] Based on this, if the sensor hub determines that the current scenario is a high-power scenario where the human body is sufficiently far away, it can control the SAR sensor to use the first operating mode with a large duty cycle. For example, if it determines that the scenario changes from a low-power scenario to a high-power scenario where the human body is sufficiently far away, it can control the SAR sensor to switch from the second operating mode with a small duty cycle to the first operating mode with a large duty cycle. Alternatively, if it determines that the scenario changes from a high-power scenario where the human body is sufficiently close to the human body to a high-power scenario where the human body is sufficiently far away, it can control the SAR sensor to switch from the third operating mode with a small duty cycle to the first operating mode with a large duty cycle. This ensures that the performance of the device is not affected and that there are no misjudgments or hysteresis effects.

[0271] By adopting the above-described implementation scheme five, the information collected by the capacitive sensor and the transmission status of the terminal antenna can be combined to comprehensively determine the scenario in which the terminal device is located. When changing from a high-power scenario to a low-power scenario, or from a high-power scenario where the human body is sufficiently far away to a high-power scenario where the human body is sufficiently close, the capacitive sensor is controlled to switch from a high duty cycle operating mode to a low duty cycle operating mode to save power consumption of the terminal device. Conversely, when changing from a low-power scenario to a high-power scenario, or from a high-power scenario where the human body is sufficiently close to a high-power scenario where the human body is sufficiently far away, the capacitive sensor is controlled to switch from a low duty cycle operating mode back to a high duty cycle operating mode to ensure that the capacitive sensor has high detection accuracy. In this way, the accuracy of the human body detection function can be ensured while reducing the power consumption of the terminal device.

[0272] Implementation Plan Six

[0273] Please see Figure 12 The diagram illustrates the interactive flow of a control method provided in Implementation Scheme Six. This method combines the findings of Implementation Schemes One, Two, Three, and Four, simultaneously considering information collected by the capacitive sensor, the transmission status of the terminal antenna, the insertion status of the terminal antenna card, and the temperature of the antenna device to comprehensively determine the operating mode of the capacitive sensor. This method can be executed by a terminal device, such as the one described above. Figure 3 The terminal device 300 in the middle. Further, it can be executed by the processor 330, capacitive sensor, and temperature sensor in the terminal device 300. The processor 330 can be, for example, a... Figure 4The sensor hub 332, cellular processor 333, and application processor 331 shown herein may include capacitive sensors, for example, [the following is a list of components and their applications]. Figure 4 The SAR sensor 3911 shown can be, for example, a temperature sensor. Figure 4 The temperature sensor 3913 is shown. That is, the control method can be jointly executed by the sensor hub 332, the cellular processor 333, the application processor 331, the SAR sensor 3911, and the temperature sensor 3913.

[0274] Step 1201: The application processor obtains the card insertion status of the terminal device.

[0275] Optionally, the application processor may acquire the card insertion status of the terminal device in a first cycle, that is, acquire the current card insertion status of the terminal device once every first cycle. The duration of the first cycle can be set by those skilled in the art based on experience, or it can be set according to the actual scenario requirements, or it can be specified by the user, without any specific limitation.

[0276] Step 1202: The application processor sends card insertion scenario information to the sensor hub according to the card insertion status of the terminal device. The card insertion scenario information is used to indicate whether the card has been inserted or not.

[0277] Alternatively, the application processor can directly send the acquired card insertion status to the sensor hub, which can then automatically identify the current card insertion scenario.

[0278] Step 1203: The cellular processor obtains the transmit power of the antenna device connected to the SAR sensor in the terminal device.

[0279] Optionally, the cellular processor can acquire the transmit power of the antenna device connected to the SAR sensor in a second cycle. The duration of the second cycle can be the same as or different from the duration of the first cycle, and there is no specific limitation.

[0280] Step 1204: The cellular processor sends power scene information to the sensor hub based on the transmit power of the antenna device connected to the SAR sensor in the terminal device. The power scene information is used to indicate a high-power scene or a low-power scene.

[0281] Alternatively, the cellular processor can directly send the acquired transmit power of the antenna device to the sensor hub, which can then identify the current power scenario on its own.

[0282] Step 1205: The SAR sensor sends the first information it has collected to the sensor hub.

[0283] Optionally, the SAR sensor can acquire the first information from the connected antenna device in a third cycle and send it to the sensor hub. The duration of the third cycle can be, for example, the duration of a pulse corresponding to the current operating mode of the SAR sensor. The duration of the second cycle can be the same as or different from the durations of the first and second cycles mentioned above; no specific limitation is imposed.

[0284] Step 1206: The sensor hub determines whether the current scene is one where the human body is sufficiently close or sufficiently far away, based on the first information collected by the SAR sensor.

[0285] For example, a sensor hub can calculate the capacitance value based on the first information collected by the SAR sensor. If the capacitance value is greater than or equal to a set capacitance threshold, it determines that the current scene is one where the human body is close enough; otherwise, it determines that the current scene is one where the human body is far enough away.

[0286] Step 1207: The temperature sensor sends the collected second information to the sensor hub.

[0287] Optionally, the temperature sensor may acquire second location information in a fourth cycle and send it to the sensor hub. The duration of the fourth cycle may be the same as or different from the duration of the first, second, and third cycles mentioned above; no specific limitation is imposed.

[0288] Step 1208: The sensor hub determines whether the current scenario is one of stable temperature change or drastic temperature change based on the second information collected by the temperature sensor.

[0289] For example, a sensor hub can calculate temperature parameters based on the second information collected by the temperature sensor. If the temperature parameter is less than or equal to a set temperature threshold, it is determined that the current situation is a scenario of stable temperature change; otherwise, it is determined that the current situation is a scenario of drastic temperature change.

[0290] It should be noted that the order of steps 1201-1202, 1203-1204, 1205-1206, and 1207-1208 is not limited. For example, steps 1101-1102, 1103-1104, 1205-1206, and 1207-1208 can be executed simultaneously. Alternatively, steps 1101-1102 can be executed first, followed by steps 1103-1104, then steps 1105-1106, and finally steps 1107-1108. Or, steps 1107-1108 can be executed first, followed by steps 1101-1102, then steps 1105-1106, and finally steps 1103-1104, and so on. No specific limitations are made here.

[0291] Step 1209: The sensor hub determines the scene combination based on the content of steps 1201 to 1208 above.

[0292] If at least three of the following scenarios are met: low power, no card inserted, human body is close enough, and temperature changes are stable, then proceed to step 1210.

[0293] If at least two of the following scenarios are met: high power, card inserted, human body sufficiently far away, or drastic temperature change, then proceed to step 1211.

[0294] Here, at least three of the following scenarios—low power, no card inserted, human body sufficiently close, and stable temperature change—can include combinations of the following two:

[0295] Combination A1 meets all four requirements in the following scenarios: low power, no card inserted, human body close enough, and stable temperature change.

[0296] Combination A2 satisfies three scenarios: low power, no card inserted, human body sufficiently close, and drastic temperature changes; low power, no card inserted, human body sufficiently far away, and stable temperature changes; low power, card inserted, human body sufficiently close, and stable temperature changes; and high power, no card inserted, human body sufficiently close, and stable temperature changes.

[0297] Correspondingly, at least two of the following scenarios—high power, card already inserted, human body sufficiently far away, and drastic temperature changes—can include the following three combinations:

[0298] Combination B1 meets all four requirements: high power, card already inserted, human body sufficiently far away, and drastic temperature changes.

[0299] Combination B2 satisfies three scenarios: high power, card inserted, human body sufficiently far away, and stable temperature change; high power, card inserted, human body sufficiently close, and drastic temperature change; high power, no card inserted, human body sufficiently far away, and drastic temperature change; and low power, card inserted, human body sufficiently far away, and drastic temperature change.

[0300] Combination B3 satisfies two scenarios, including high power, card inserted, human body sufficiently close, and stable temperature change; high power, no card inserted, human body sufficiently far away, and stable temperature change; high power, no card inserted, human body sufficiently close, and drastic temperature change; low power, card inserted, human body sufficiently far away, and stable temperature change; and low power, no card inserted, human body sufficiently far away, and drastic temperature change.

[0301] Step 1210: The sensor hub controls the SAR sensor to operate in a low duty cycle mode.

[0302] Here, low power, no SIM card inserted, human body sufficiently close, and stable temperature changes are considered scenarios where frequent status detection by the terminal device is not required. High power, SIM card inserted, human body sufficiently far away, and drastic temperature changes are considered scenarios where frequent status detection by the terminal device is required. If the terminal device meets at least three of the following scenarios—low power, no SIM card inserted, human body sufficiently close, and stable temperature changes—that is, if it only meets one of the following scenarios or none of them, it indicates that the number of scenarios where frequent status detection by the terminal device is not required is currently greater. Capacitive sensors do not need to collect information frequently; therefore, capacitive sensors can operate with a small duty cycle to save power consumption of the terminal device.

[0303] Optionally, one or more low duty cycle operating modes can be configured for one scenario in combination A1 and four scenarios in combination A2. Each operating mode corresponds to one or more scenarios. When the sensor hub determines the scenario corresponding to a certain operating mode from other scenarios, it controls the SAR sensor to use the corresponding operating mode.

[0304] For example, when only a small duty cycle operating mode is configured, this operating mode is shared by the five scenarios included in the above combination A1 and combination A2. Therefore, the sensor hub can control the SAR sensor to switch from the large duty cycle operating mode to the small duty cycle operating mode when it detects that the terminal device switches from other scenarios to any of the five scenarios included in the above combination A1 and combination A2. However, when the operation only changes between the five scenarios included in the above combination A1 and combination A2, there is no need to switch the operating mode.

[0305] For example, when multiple low duty cycle operating modes are configured, such as configuring one operating mode for each scenario, the sensor hub can control the SAR sensor to switch operating modes as soon as it detects a scenario change in the terminal device. The switched operating mode corresponds to the current scenario. Alternatively, the lowest duty cycle operating mode can be configured for the low power, no card inserted, human body sufficiently close, and stable temperature change scenarios in combination A1 above, and the four scenarios in combination A2 above can be configured with relatively low duty cycle operating modes. In this way, when the sensor hub detects that the terminal device switches from other scenarios to the low power, no card inserted, human body sufficiently close, and stable temperature change scenarios in combination A1 above, it can control the SAR sensor to switch to the lowest duty cycle operating mode. When it detects that the terminal device switches from other scenarios to any of the four scenarios in combination A2 above, it can control the SAR sensor to switch to the relatively low duty cycle operating mode.

[0306] It is understandable that there are many other configurations for different duty cycles, which will not be listed here.

[0307] Step 1211: The sensor hub controls the SAR sensor to operate in a high duty cycle mode.

[0308] Understandably, if a terminal device meets at least two of the following scenarios: high power, card inserted, human body sufficiently far away, and drastic temperature change, that is, if it only meets one of the following scenarios: low power, no card inserted, human body sufficiently close, and stable temperature change, or none of them are met, it indicates that the current scenarios requiring frequent status detection by the terminal device are more numerous. Capacitive sensors need to collect information frequently. Therefore, capacitive sensors can operate with a large duty cycle to detect the human body's proximity in a timely and accurate manner, ensuring that the device's performance is not affected and that there are no misjudgments or hysteresis effects.

[0309] Optionally, one or more high duty cycle operating modes can be configured for one scenario in combination B1, four scenarios in combination B2, and four scenarios in combination B3. Each operating mode corresponds to one or more scenarios. When the sensor hub determines the scenario corresponding to a certain operating mode from other scenarios, it controls the SAR sensor to use the corresponding operating mode.

[0310] For example, when only a large duty cycle operating mode is configured, this operating mode is shared by the nine scenarios included in the above combinations B1, B2, and B3. Therefore, the sensor hub can control the SAR sensor to switch from a small duty cycle operating mode to the large duty cycle operating mode when it detects that the terminal device switches from other scenarios to any of the nine scenarios included in the above combinations B1, B2, and B3. However, when the operation only changes between the nine scenarios included in the above combinations B1, B2, and B3, there is no need to switch the operating mode.

[0311] For example, when configuring multiple high duty cycle operating modes, such as configuring one operating mode for each scene, the sensor hub can control the SAR sensor to switch operating modes as soon as it detects a scene change in the terminal device. The switched operating mode corresponds to the current scene. Alternatively, the operating mode with the largest duty cycle can be configured for the scenes in combination B1, the four scenes in combination B2 can be configured with relatively large duty cycle operating modes, and the four scenes in combination B3 can be configured with relatively small duty cycle operating modes. In this way, when the sensor hub detects that the terminal device switches from other scenes to a scene in combination B1, it can control the SAR sensor to switch to the operating mode with the largest duty cycle. When it detects that the terminal device switches from other scenes to any of the four scenes in combination B2, it can control the SAR sensor to switch to the operating mode with a relatively large duty cycle. When it detects that the terminal device switches from other scenes to any of the four scenes in combination B3, it can control the SAR sensor to switch to the operating mode with the relatively small duty cycle. Here, "relatively small duty cycle" means the smallest among combinations B1, B2, and B3, but still larger than the duty cycles of combinations A1 and A2.

[0312] It is understandable that there are many other configurations for different duty cycles, which will not be listed here.

[0313] By adopting the above-mentioned implementation scheme six, the information collected by the capacitive sensor, the transmission status of the terminal antenna, the card insertion status of the terminal antenna, and the temperature of the antenna device can be combined to make a comprehensive decision on the scenario in which the terminal device is located. Corresponding working modes can be configured for each or multiple scenarios. Different working modes have different duty cycles. In this way, the duty cycle of the capacitive sensor can be controlled more precisely, ensuring the accuracy of the human body detection function while reducing the power consumption of the terminal device.

[0314] It should be noted that the solution given in step 1209 above is only an example. In actual control schemes, step 1210 can be executed when at least K conditions are met, including low power, no card inserted, human body sufficiently close, and stable temperature change; and step 1211 can be executed when at least L conditions are met, including high power, card inserted, human body sufficiently far away, and drastic temperature change. K and L are both positive integers not greater than 4, and K + L = 5. For example, step 1209 above shows an example where K = 3 and L = 2, and other examples include, but are not limited to, the following examples one to three:

[0315] Example 1, K=4, L=1, that is, when the four scenarios of low power, no card inserted, human body sufficiently close, and stable temperature change are met, step 1210 is executed; when at least one of the scenarios of high power, card inserted, human body sufficiently far away, and drastic temperature change is met, step 1211 is executed. In other words, the low duty cycle mode is used only in one of the scenarios of the above combination A1, and the high duty cycle mode is used in other scenarios.

[0316] Example 2, K=2, L=3, meaning that step 1210 is executed when at least two of the following scenarios are met: low power, no card inserted, human body sufficiently close, and stable temperature change; step 1211 is executed when at least three of the following scenarios are met: high power, card inserted, human body sufficiently far away, and drastic temperature change. In other words, the low duty cycle operating mode, in addition to the above combinations A1 and A2, also includes the following combination A3: scenarios meeting two conditions include low power & no card inserted & human body sufficiently far away & drastic temperature change, low power & card inserted & human body sufficiently close & drastic temperature change, low power & card inserted & human body sufficiently far away & stable temperature change, high power & no card inserted & human body sufficiently close & drastic temperature change, high power & no card inserted & human body sufficiently far away & stable temperature change, and high power & card inserted & human body sufficiently close & stable temperature change. The high duty cycle operating mode only includes the above combinations B1 and B2.

[0317] Example 3, K=1, L=4, meaning that step 1210 is executed when at least one of the following scenarios is met: low power, no card inserted, human body sufficiently close, and stable temperature change; step 1211 is executed when all four scenarios are met: high power, card inserted, human body sufficiently far away, and drastic temperature change. In other words, the low duty cycle operating mode includes, in addition to the above combinations A1, A2, and A3, the following combination A4: scenarios meeting one of the following conditions include: low power & card inserted & human body sufficiently far away & drastic temperature change; high power & no card inserted & human body sufficiently far away & drastic temperature change; high power & card inserted & human body sufficiently close & drastic temperature change; and high power & card inserted & human body sufficiently far away & stable temperature change. The high duty cycle operating mode only includes the above combination B1.

[0318] It should be understood that there may be other implementation schemes, which will not be listed here.

[0319] Based on the control method described above, this application can also provide a control device that can be used to execute the above control method. The relevant features can be found in the above method embodiments, and will not be repeated here.

[0320] In one possible implementation, please refer to Figure 13 The diagram illustrates a possible structure of a control device. The control device 1300 may include a processing unit 1310 and a transceiver unit 1320. The control device 1300 may be a terminal device or a module within a terminal device (such as a processor, chip, or chip system), or it may be an apparatus applied to or used in conjunction with a terminal device or its module to implement the control methods executed by the terminal device or its module.

[0321] The transceiver unit 1320 can also be referred to as a communication unit, transceiver, transceiver device, or transceiver apparatus, etc., and the processing unit 1310 can also be referred to as a processor, processing chip, processing board, processing unit, or processing apparatus, etc. Optionally, the transceiver unit 1320 is used to perform the sending and receiving operations in the above control method. The device in the transceiver unit 1320 that implements the receiving function can be regarded as a receiving unit, and the device in the transceiver unit 1320 that implements the sending function can be regarded as a sending unit. That is, the transceiver unit 1320 includes a receiving unit and a sending unit.

[0322] Optionally, the processing unit 1310 can be used to implement Figure 5 , Figure 6 , Figures 8-12 The processing functions in the illustrated embodiment can be implemented by the transceiver unit 1320. Figure 5 , Figure 6 , Figures 8-12The transmit / receive function in the illustrated embodiment. For example, the control device 1300 performs the above... Figure 5 In the control method shown, the transceiver unit 1320 is used to interact with the sensors of the terminal device and / or the server of the business APP to obtain the sensor information and / or business information of the terminal device. The processing unit 1310 is used to indicate the scene in which the terminal device is located based on the sensor information and / or business information of the terminal device, and control the capacitive sensor to adjust from the first working mode to the second working mode based on the scene in which the terminal device is located. The first working mode and the second working mode have different duty cycles.

[0323] Furthermore, it should be noted that the aforementioned transceiver unit 1320 and / or processing unit 1310 can be implemented using virtual modules. For example, processing unit 1310 can be implemented using software functional units or virtual devices, and transceiver unit 1320 can be implemented using software functions or virtual devices. Alternatively, processing unit 1310 or transceiver unit 1320 can also be implemented using physical devices. For example, if the control device 1300 is implemented using a chip / chip circuit, transceiver unit 1320 can be an input / output circuit and / or a communication interface, performing input operations (corresponding to the aforementioned receiving operations) and output operations (corresponding to the aforementioned sending operations); processing unit 1310 is an integrated processor, microprocessor, or integrated circuit.

[0324] The unit division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, other division methods may be used. Furthermore, the functional units in each embodiment of this application can be integrated into a single processor, exist as separate physical units, or two or more units can be integrated into a single module. The integrated module can be implemented in hardware or as a software functional module.

[0325] In another possible implementation, please refer to Figure 14 The diagram illustrates another possible structure of the control device. For example, the control device 1400 may be a chip or a chip system. Optionally, in the embodiments of this application, the chip system may be composed of chips or may include chips and other discrete devices.

[0326] The control device 1400 can be used to implement the functions of the terminal device or modules (such as processors, chips, or chip systems) in the terminal device described in the foregoing embodiments. The control device 1400 may include at least one processor 1410, which is coupled to a memory. Optionally, the memory may be located within the control device 1400, integrated with the processor, or located outside the control device 1400. For example, the control device 1400 may also include at least one memory 1420. The at least one memory 1420 stores the necessary computer programs (or instructions) and / or data for implementing any of the above embodiments; the at least one processor 1410 can execute the computer programs (or instructions) and / or data stored in the at least one memory 1420 to complete the methods in any of the above embodiments.

[0327] The control device 1400 may also include a communication interface 1430, through which the control device 1400 can interact with other devices. For example, the communication interface 1430 may be a transceiver, circuit, bus, module, pin, or other type of communication interface. When the control device 1400 is a chip-based device or circuit, the communication interface 1430 may also be an input / output circuit, capable of inputting information (or receiving information) and outputting information (or sending information). The processor may be an integrated processor, microprocessor, integrated circuit, or logic circuit, and the processor can determine the output information based on the input information.

[0328] The coupling in this embodiment is an indirect coupling or communication connection between devices, units, or modules, which can be electrical, mechanical, or other forms, used for information exchange between devices, units, or modules. The processor 1410 may operate in conjunction with the memory 1420 and the communication interface 1430. This embodiment does not limit the specific connection medium between the processor 1410, the memory 1420, and the communication interface 1430.

[0329] Optional, see Figure 14 The processor 1410, the memory 1420, and the communication interface 1430 are interconnected via a bus. This bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 14 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0330] In the embodiments of this application, the processor 1410 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.

[0331] In this embodiment, the memory 1420 can be non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), or it can be volatile memory, such as random-access memory (RAM). The memory 1420 can be any other medium capable of carrying or storing desired program code in the form of instructions or data structures, and accessible by a computer, but is not limited thereto. The memory 1420 in this embodiment can also be a circuit or any other device capable of implementing storage functions for storing program instructions and / or data.

[0332] Based on the above, this application also provides a control system, which includes the above-mentioned control device and a capacitive sensor. The control device and the capacitive sensor are connected. The control device is used to implement the control method provided in any of the above-mentioned method embodiments. The capacitive sensor is used to collect capacitance information using the corresponding working mode according to the control operation of the control device.

[0333] In one possible implementation, the capacitive sensor can be the SAR sensor described above.

[0334] In one possible implementation, the terminal device further includes the antenna device described above. The antenna device is connected to a capacitive sensor and a control device, respectively. The capacitive sensor is also used to collect information from the antenna device. The control device is also used to reduce the transmission frequency of the antenna device if it is determined that a human body is approaching the antenna device, and restore the transmission frequency of the antenna device if it is determined that a human body is moving away from the antenna device.

[0335] In one possible implementation, the terminal device may further include one or more of the following sensors: a touch sensor, a temperature sensor. The relevant implementation details are described in the above method embodiments and will not be repeated here.

[0336] Based on the above, this application also provides a terminal device, including the above control device, or including the above control system.

[0337] Based on the above, this application also provides a computer-readable storage medium storing instructions that, when executed, cause the method provided in any of the above-described method embodiments to be implemented. The computer-readable storage medium may include various media capable of storing program code, such as a USB flash drive, portable hard drive, read-only memory, random access memory, magnetic disk, or optical disk.

[0338] Based on the above, this application also provides a computer program product, which includes: a computer program (also referred to as code or instructions), which, when run on a computer, causes the computer to perform the method provided in any of the above method embodiments. Optionally, the computer can be a terminal device.

[0339] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. Furthermore, the various numbers involved in the embodiments of this application (such as the numerical numbers "first," "second," "third," "fourth," etc.) are only for descriptive convenience and are not intended to limit the scope of the embodiments of this application. The order of the sequence numbers of the above processes does not imply the order of execution; the execution order of each process should be determined by its function and internal logic.

[0340] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, compact disc read-only memory (CD-ROM), optical storage, etc.) containing computer-usable program code.

[0341] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in one or more flowchart illustrations and / or one or more block diagrams.

[0342] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means that implement the functions specified in one or more flowcharts and / or one or more block diagrams.

[0343] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, such that the instructions, which execute on the computer or other programmable apparatus, provide steps for implementing the functions specified in one or more flowcharts and / or one or more block diagrams.

Claims

1. A control method characterized by, The method is applied to a terminal device, the terminal device comprises a capacitive sensor, the capacitive sensor comprises a first working mode and a second working mode, the first working mode and the second working mode have different duty cycles; the method comprises: According to the sensor information of the terminal device and / or the service information of the terminal device, the scene in which the terminal device is located is indicated; Based on the scene in which the terminal device is located, the capacitive sensor is adjusted from the first working mode to the second working mode.

2. The method of claim 1, wherein, The capacitive sensor is a specific absorption rate (SAR) sensor.

3. The method of claim 1 or 2, wherein, The sensor information of the terminal device comprises one or more of the following: Information collected by the capacitive sensor, information collected by a temperature sensor in the terminal device, information collected by a touch sensor in the terminal device; The service information of the terminal device comprises one or more of the following: The card insertion state of the terminal device, the transmission power of an antenna device connected to the capacitive sensor in the terminal device, information reflected by the reflection coefficient of the antenna device connected to the capacitive sensor in the terminal device.

4. The method of any one of claims 1 to 3, wherein, The indication of the scene in which the terminal device is located according to the sensor information of the terminal device comprises: According to the information collected by the capacitive sensor, the capacitance parameter of an antenna device connected to the capacitive sensor is determined; If the capacitance parameter is greater than or equal to a first capacitance threshold, it is indicated that the terminal device is in a human body close-enough scene; If the capacitance parameter is less than a second capacitance threshold, it is indicated that the terminal device is in a human body far-enough scene; Wherein, the second capacitance threshold is less than or equal to the first capacitance threshold.

5. The method of any one of claims 1 to 4, wherein, The indication of the scene in which the terminal device is located according to the sensor information of the terminal device comprises: According to the information collected by the temperature sensor in the terminal device, the temperature parameter of the terminal device is determined; If the temperature parameter is less than or equal to a first temperature threshold, it is indicated that the terminal device is in a temperature stable change scene, and if the temperature parameter is greater than a second temperature threshold, it is indicated that the terminal device is in a temperature dramatic change scene, wherein the second temperature threshold is greater than or equal to the first temperature threshold; or, If the temperature parameter is greater than or equal to a third temperature threshold and less than or equal to a fourth temperature threshold, it is indicated that the terminal device is in a temperature stable change scene, and if the temperature parameter is less than a fifth temperature threshold or greater than a sixth temperature threshold, it is indicated that the terminal device is in a temperature dramatic change scene, wherein the fifth temperature threshold is less than or equal to the third temperature threshold, the third temperature threshold is less than the fourth temperature threshold, and the fourth temperature threshold is less than or equal to the sixth temperature threshold.

6. The method of any one of claims 1 to 5, wherein, The indication of the scene in which the terminal device is located according to the service information of the terminal device comprises: According to the card insertion state of the terminal device, it is indicated that the terminal device is in a card-inserted scene or a card-uninserted scene.

7. The method of any one of claims 1 to 6, wherein, The method comprises the following steps: acquiring the transmission power of an antenna device connected to the capacitive sensor in the terminal device; if the transmission power is less than or equal to a first power threshold, indicating that the terminal device is in a low-power scenario; if the transmission power is greater than a second power threshold, indicating that the terminal device is in a high-power scenario; wherein the second power threshold is greater than or equal to the first power threshold, and the first power threshold is less than or equal to the transmission power of the antenna device in a scenario where a human body is close enough.

8. The method of any one of claims 1 to 7, wherein, The method comprises the following steps: According to the information collected by the capacitive sensor in the terminal device and / or the information reflected by the reflection coefficient of the antenna device connected to the capacitive sensor in the terminal device, it is indicated that the terminal device is in a scenario where a human body is close enough or a scenario where a human body is far enough.

9. The method of any one of claims 1 to 8, wherein, The method comprises the following steps: When the terminal device changes from a first scenario to a second scenario, the capacitive sensor is controlled to switch from the first working mode to the second working mode.

10. The method of claim 9, wherein, The duty cycle of the first working mode is greater than the duty cycle of the second working mode, The terminal device changes from a first scenario to a second scenario, which includes one or more of the following: The terminal device changes from a scenario where a human body is far enough away to a scenario where a human body is close enough; The terminal device changes from a scenario with a stable temperature change to a scenario with a dramatic temperature change; The terminal device changes from a card-inserted scenario to a card-uninserted scenario; The terminal device changes from a high-power scenario to a low-power scenario.

11. The method of claim 9, wherein, The duty cycle of the first working mode is less than the duty cycle of the second working mode, and the terminal device changes from a first scenario to a second scenario, which includes one or more of the following: The terminal device changes from a scenario where a human body is close enough to a scenario where a human body is far enough away; The terminal device changes from a scenario with a stable temperature change to a scenario with a dramatic temperature change; The terminal device changes from a card-uninserted scenario to a card-inserted scenario; The terminal device changes from a low-power scenario to a high-power scenario.

12. The method of any one of claims 1 to 11, wherein, The first working mode has a first duty cycle, and the second working mode has a second duty cycle, and the ratio of the larger duty cycle to the smaller duty cycle is greater than or equal to 4.

13. A control method characterized by, The method comprises the following steps: According to the information collected by the capacitive sensor in the terminal device, it is indicated that the terminal device changes from a scenario where a human body is far enough away to a scenario where a human body is close enough, and the capacitive sensor is controlled to adjust from the first working mode to the second working mode; or, The terminal device comprises a capacitive sensor, the capacitive sensor comprises a first working mode and a second working mode, and the duty cycle of the first working mode is greater than the duty cycle of the second working mode. According to information collected by the capacitive sensor, it is indicated that the terminal device switches from a scenario in which a human body is close enough to a scenario in which the human body is far enough away, and the capacitive sensor is controlled to adjust from the second working mode to the first working mode.

14. The method of claim 13, wherein, The capacitive sensor further comprises a third working mode, and a duty cycle of the third working mode is less than a duty cycle of the first working mode; the method further comprises: According to a transmission power of an antenna device connected to the capacitive sensor in the terminal device, it is indicated that the terminal device switches from a high-power scenario to a low-power scenario, and the capacitive sensor is controlled to adjust from the first working mode to the third working mode; or, According to the transmission power of the antenna device connected to the capacitive sensor in the terminal device, it is indicated that the terminal device switches from the low-power scenario to the high-power scenario, and the capacitive sensor is controlled to adjust from the third working mode to the first working mode.

15. The method of claim 13 or 14, wherein, The capacitive sensor further comprises a fourth working mode, and a duty cycle of the fourth working mode is less than the duty cycle of the first working mode; the method further comprises: According to information collected by a temperature sensor in the terminal device, it is indicated that the terminal device switches from a scenario in which temperature changes sharply to a scenario in which temperature changes stably, and the capacitive sensor is controlled to adjust from the first working mode to the fourth working mode; or, According to information collected by the temperature sensor in the terminal device, it is indicated that the terminal device switches from the scenario in which temperature changes stably to the scenario in which temperature changes sharply, and the capacitive sensor is controlled to adjust from the fourth working mode to the first working mode.

16. The method of any one of claims 13 to 15, wherein, The capacitive sensor further comprises a fifth working mode, and a duty cycle of the fifth working mode is less than the duty cycle of the first working mode; the method further comprises: According to a card insertion state of the terminal device, it is indicated that the terminal device switches from a scenario in which a card is inserted to a scenario in which no card is inserted, and the capacitive sensor is controlled to adjust from the first working mode to the fifth working mode; or, According to the card insertion state of the terminal device, it is indicated that the terminal device switches from the scenario in which no card is inserted to the scenario in which the card is inserted, and the capacitive sensor is controlled to adjust from the fifth working mode to the first working mode.

17. The method of any one of claims 13 to 16, wherein, The second working mode, the third working mode, the fourth working mode and the fifth working mode have a same duty cycle or different duty cycles.

18. A terminal device, comprising: The control device and the capacitive sensor are connected; The control device is configured to implement the method in any one of claims 1 to 12 or implement the method in any one of claims 13 to 17. The capacitive sensor is configured to collect information by using a corresponding working mode according to control of the control device.

19. The terminal device according to claim 18, characterized by The terminal device further comprises an antenna device, and the antenna device is connected to the capacitive sensor and the control device respectively; The capacitive sensor is specifically configured to collect information of the antenna device; and The capacitive sensor is specifically configured to collect information of the antenna device; and The control device is further configured to reduce the transmission frequency of the antenna device if it is determined from the information that a human body is close enough to the antenna device, and to restore the transmission frequency of the antenna device if it is determined from the information that a human body is far enough away from the antenna device.

20. The terminal device according to claim 18 or 19, characterized by The terminal device further comprises one or more of the following sensors: a temperature sensor, a touch sensor.