Input device control method and input device

WO2026179703A1PCT designated stage Publication Date: 2026-09-03HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2026/078034
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-02-27
Filing Date
2026-02-09
Publication Date
2026-09-03

Smart Images

  • Figure CN2026078034_03092026_PF_FP_ABST
    Figure CN2026078034_03092026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of electronic devices, and provides an input device control method and an input device, wherein the input device is provided with an SAR sensor, and the SAR sensor is connected to a sensing body. The method may comprise: controlling an SAR sensor to collect a capacitance value of a sensing body; and when the capacitance value is greater than a capacitance threshold, determining that an input device is held. By means of the technical solution provided by the present application, the holding state of the input device is determined on the basis of the capacitance value of the sensing body collected by the SAR sensor, such that the power consumption is relatively low, prolonging the battery life of the input device.
Need to check novelty before this filing date? Find Prior Art

Description

Control methods and input devices

[0001] This application claims priority to Chinese Patent Application No. 202510229653.5, filed on February 27, 2025, entitled "Control Method and Input Device for Input Device", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of electronic equipment technology, and in particular to a control method for an input device and an input device. Background Technology

[0003] Input devices such as styluses and wireless mice can enrich the interaction methods of mobile phones, tablets and other terminal devices, greatly improving the flexibility and convenience of user operation, and have now become common accessories for terminal devices.

[0004] Grip detection is an important feature of input devices. One way to achieve this is by using a touch film sensor to detect touch signals. If the touch film sensor detects a touch signal, it determines that the user is holding the input device; if the touch film sensor does not detect a touch signal, it determines that the user is not holding the stylus. However, this method requires relatively high power consumption. Summary of the Invention

[0005] This application provides a control method and an input device for reducing the power consumption of the input device.

[0006] In a first aspect, a control method for an input device is provided, the input device being equipped with a SAR sensor connected to a sensing element, the method including: controlling the SAR sensor to acquire the capacitance value of the sensing element; and determining that the input device is in a holding state when the capacitance value is greater than a capacitance threshold.

[0007] The input device can be a stylus, wireless mouse, etc. The control method can be executed by the input device, or by one or more modules within the input device.

[0008] The input device control method provided in this application determines the grip state of the input device based on the capacitance value of the sensor collected by the SAR sensor. The SAR sensor has the characteristics of low power consumption and high sensitivity. Only one or a few sensors are needed to cover most or all of the input device. In other words, only the capacitance value of one or a few sensors needs to be collected by the SAR sensor, so the power consumption is low. Compared with the method of using a touch film sensor to detect the grip state, this solution can reduce power consumption and extend the battery life of the input device.

[0009] In one possible implementation of the first aspect, there is one SAR sensor, which is connected to one or more sensors.

[0010] In the above embodiments, setting up a single SAR sensor requires less space. When the SAR sensor is connected to a single sensor, space can be saved even more. When the SAR sensor is connected to multiple sensors, the pen grip detection area can better cover the input device, thereby improving the accuracy of the detection results.

[0011] In one possible implementation of the first aspect, when the SAR sensor is connected to a sensor, if the capacitance value of the sensor is greater than a capacitance threshold, it is determined that the input device is in a holding state; if the capacitance value of the sensor is less than or equal to the capacitance threshold, it is determined that the input device is in a non-holding state.

[0012] When a SAR sensor is connected to multiple sensors, the input device is determined to be in a holding state if the capacitance value of at least one sensor is greater than the capacitance threshold; and the input device is determined to be in a non-holding state if the capacitance values ​​of all sensors are less than or equal to the capacitance threshold.

[0013] In one possible implementation of the first aspect, the SAR sensor includes a plurality of sensors; each SAR sensor is connected to one sensor, or each SAR sensor is connected to multiple sensors, or some SAR sensors are connected to one sensor and other SAR sensors are connected to multiple sensors.

[0014] In the above embodiments, multiple SAR sensors are set up, and each SAR sensor is connected to one or more sensors. This allows the detection area to better cover the entire input device, thereby improving the accuracy of the detection results.

[0015] In one possible implementation of the first aspect, the input device is determined to be in a holding state when the capacitance value of at least one sensor is greater than a capacitance threshold; and the input device is determined to be in a non-holding state when the capacitance value of each sensor is less than or equal to the capacitance threshold.

[0016] In one possible implementation of the first aspect, the method further includes: before controlling the SAR sensor to acquire the capacitance value of the sensor, in a first standby state, entering a second standby state in response to a target event; after entering the second standby state, entering a wake-up state when it is determined that the input device is in a holding state.

[0017] The power consumption of the input device in the first standby state is lower than that in the second standby state; the target event can be a motion event or a pressure-sensitive event, etc.

[0018] In the above embodiments, in the first standby state, after a target event (such as a motion event) occurs on the input device, it enters a second standby state and continues to identify the user's intention to use the input device by detecting the pen grip state. Only after confirming that the input device is in a pen grip state does it enter the wake-up state. This effectively reduces the probability of false wake-ups, thereby reducing power consumption and extending battery life. Furthermore, the power consumption of the input device in the first standby state is lower than that in the second standby state. Therefore, when the user does not use the input device for a long time, remaining in the first standby state can better save power. In addition, in the above embodiments, when waking up the input device, in addition to determining that the input device is in a grip state, it is also determined that a target event has occurred on the input device. This can, to some extent, prevent the input device from being woken up due to the user holding the pen for a long time without using it, thus further saving power and extending battery life.

[0019] In one possible implementation of the first aspect, the method further includes: in a second standby state or wake-up state, if no target event is detected within the target duration, then entering a first standby state. This can reduce power consumption and further save power.

[0020] In one possible implementation of the first aspect, the target event includes: a motion event occurring in the input device.

[0021] In this embodiment, in the first standby state, the target event detected by the input device is a motion event. This method is easy to implement and has low power consumption, thus saving power more effectively.

[0022] In one possible implementation of the first aspect, when a motion event occurs in the input device, the acceleration of the input device is greater than an acceleration threshold.

[0023] In one possible implementation of the first aspect, the method further includes: issuing a prompt signal when the input device switches from a non-held state to a held state; the prompt signal includes at least one of the following: a vibration signal, an audio signal, and a light signal.

[0024] In the above embodiments, when the input device switches from a non-held state to a held state, a prompt signal is issued, which allows the user to more intuitively feel the working status of the input device, and can also interact with the user, increasing fun and thus improving the user's interactive experience.

[0025] In one possible implementation of the first aspect, the method further includes: switching from a first performance mode to a second performance mode when the input device switches from a non-held state to a held state; the performance of the input device in the second performance mode is higher than the performance in the first performance mode; and switching from the second performance mode to the first performance mode when the input device switches from a held state to a non-held state.

[0026] In the above embodiments, when the input device is switched to a holding state, the input device switches to a high-performance mode, which can improve the working performance of the input device and thus improve the user experience; when the input device is switched to a non-holding state, the input device switches to a low-performance mode, which can reduce power consumption and thus extend the battery life of the input device.

[0027] In one possible implementation of the first aspect, when the input device switches from a non-held state to a held state, and the duration of the input device being held is longer than a first duration, the device switches from a first performance mode to a second performance mode; when the input device switches from a held state to a non-held state, and the duration of the input device being non-held is longer than a second duration, the device switches from a second performance mode to a first performance mode.

[0028] The above implementation method can reduce the frequent switching of performance modes caused by factors such as accidental touches, and reduce the resource overhead and power consumption caused by performance switching.

[0029] In one possible implementation of the first aspect, the input device has a wireless communication module, and the sensor reuses the antenna of the wireless communication module. This saves space and cost.

[0030] In one possible implementation of the first aspect, the input device has a touch sensor, and the sensing element reuses the sensing electrodes of the touch sensor. This can save space and cost.

[0031] In one possible implementation of the first aspect, the input device is a stylus, and the SAR sensor includes two SAR sensors, with the first SAR sensor connected to one sensor and the second SAR sensor connected to both sensors.

[0032] The input device has a Bluetooth antenna and a touch sensor. The first SAR sensor is connected to a sensor that reuses the Bluetooth antenna, and the second SAR sensor is connected to two sensors that reuse the two sensing electrodes of the touch sensor.

[0033] The above implementation method can ensure that the grip state detection area effectively covers the input device, thereby improving the accuracy of the detection results.

[0034] In one possible implementation of the first aspect, the input device is a stylus, and the SAR sensor includes two SAR sensors, with the first SAR sensor connected to the two sensors and the second SAR sensor connected to the two sensors.

[0035] The input device has a Bluetooth antenna, a stroboscopic antenna, and a touch sensor. One of the sensors connected to the first SAR sensor reuses the Bluetooth antenna, and the other sensor connected to the first SAR sensor reuses the stroboscopic antenna. The two sensors connected to the second SAR sensor reuse the two sensing electrodes of the touch sensor.

[0036] The above implementation method allows the grip state detection area to better cover the input device, thereby improving the accuracy of the detection results.

[0037] In a second aspect, an input device is provided, comprising: an MCU and a SAR sensor, wherein the MCU is electrically connected to the SAR sensor, and the SAR sensor is connected to a sensor; the MCU is used to perform the method described in the first aspect or any embodiment thereof.

[0038] In one possible implementation of the second aspect, the input device is a stylus, and the SAR sensor includes two sensors, one of which has its sensor element near the tip of the stylus, and the other of which has its sensor element near the tail of the stylus.

[0039] In one possible implementation of the second aspect, the input device further includes a wireless communication module for communicating with a terminal device; the sensor reuses the antenna of the wireless communication module.

[0040] In one possible implementation of the second aspect, the input device further includes a touch sensor, wherein the sensing element reuses the sensing electrodes of the touch sensor.

[0041] In one possible implementation of the second aspect, the input device is a stylus, and the SAR sensor includes two SAR sensors, with the first SAR sensor connected to one sensor and the second SAR sensor connected to both sensors.

[0042] The input device also includes a Bluetooth antenna and a touch sensor. The sensor connected to the first SAR sensor reuses the Bluetooth antenna, and the two sensors connected to the second SAR sensor reuse the two sensing electrodes of the touch sensor.

[0043] In one possible implementation of the second aspect, the input device is a stylus, and the SAR sensor includes two SAR sensors, with the first SAR sensor connected to the two sensors and the second SAR sensor connected to the two sensors.

[0044] The input device also includes a Bluetooth antenna, a stroboscopic antenna, and a touch sensor. One of the sensors connected to the first SAR sensor reuses the Bluetooth antenna, and the other sensor connected to the first SAR sensor reuses the stroboscopic antenna. The two sensors connected to the second SAR sensor reuse the two sensing electrodes of the touch sensor.

[0045] Thirdly, a readable storage medium is provided having a program stored thereon, which, when executed by a processor, implements the method described in the first aspect or any embodiment of the first aspect.

[0046] Fourthly, a program product is provided that, when run on a device, causes the device to perform the method described in the first aspect or any embodiment thereof.

[0047] Fifthly, a chip system is provided, including a processor coupled to a memory, the processor executing a program stored in the memory to implement the method described in the first aspect or any embodiment thereof. The chip system may be a single chip or a chip module composed of multiple chips.

[0048] It is understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here. Attached Figure Description

[0049] Figure 1 is a schematic diagram of an application scenario provided by an embodiment of this application;

[0050] Figure 2 is a schematic diagram of the hardware structure of the stylus provided in the embodiment of this application;

[0051] Figure 3 is a schematic diagram of some configuration methods of the SAR sensor and sensing element provided in the embodiments of this application;

[0052] Figure 4 is a flowchart illustrating a control method provided in an embodiment of this application.

[0053] Figure 5 is a schematic diagram of the working state control process of the stylus provided in the embodiment of this application;

[0054] Figure 6 is a schematic diagram of the working state control principle of the stylus provided in the embodiment of this application;

[0055] Figure 7 is a schematic diagram of the pen grip feedback control process of the stylus provided in the embodiment of this application;

[0056] Figure 8 is a schematic diagram of the performance mode switching process provided in an embodiment of this application;

[0057] Figure 9 is a schematic diagram of the control device provided in an embodiment of this application. Detailed Implementation

[0058] The embodiments of this application are described below with reference to the accompanying drawings. The terminology used in the implementation section of this application is only for explaining specific embodiments and is not intended to limit the application. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0059] In grip state detection technology, touch signals are detected by a touch film sensor, and the grip state is determined based on the detection results. Since the electrode array of the touch film sensor includes many sensing electrodes, the touch film sensor needs to detect the capacitance value of each sensing electrode when it is working, so the power consumption is relatively high.

[0060] Based on this, this application provides a control scheme for an input device, which uses a SAR sensor to collect the capacitance value of the sensor, and then determines the holding state of the input device based on the capacitance value, thereby reducing power consumption and extending the battery life of the input device.

[0061] The input device in this application embodiment can be a stylus, wireless mouse, etc. For ease of explanation, a stylus is used as an example in this application embodiment. In some examples, the stylus may also be called a touch pen or signal pen, etc.

[0062] The application scenarios of the embodiments of this application will be described below. Figure 1 shows a schematic diagram of an application scenario, which includes a stylus 100 and a terminal device 200.

[0063] The terminal device 200 can be a mobile phone, tablet, laptop, desktop computer, smart screen, smartwatch, vehicle device, etc. In this embodiment, a tablet is used as an example for illustrative purposes.

[0064] The stylus 100 and the terminal device 200 can communicate via wireless communication technology, such as Bluetooth, which can be Bluetooth Classic (BT), Bluetooth Low Energy (BLE), or other future Bluetooth technologies. Alternatively, the input device and the terminal device 200 can also communicate via wireless communication technologies such as SparkLink, Wi-Fi, Near Field Communication (NFC), and Ultra Wideband (UWB). For ease of explanation, the following embodiments of this application use Bluetooth communication between the stylus 100 and the terminal device 200 as an example.

[0065] After the stylus 100 establishes a communication connection with the terminal device 200, it can input information into the terminal device 200. The terminal device 200 can respond to the input operation of the stylus 100 and perform corresponding processing.

[0066] The stylus 100 can send a coding signal to the terminal device 200, which may be, for example, a square wave signal; the terminal device 200 can determine the input position of the stylus 100 on the screen of the terminal device 200 (hereinafter referred to as the terminal screen) based on the coding signal.

[0067] When the stylus 100 is close to the terminal device 200, the tip of the stylus 100 and the electrodes of the terminal screen (hereinafter referred to as screen electrodes) can form a transmission path through capacitive coupling. The coding signal sent by the stylus 100 can be transmitted to the screen electrodes of the terminal device 200 through this transmission path. The terminal device 200 can determine the input position of the stylus based on information such as the intensity of the coding signal received by the screen electrodes.

[0068] When the stylus 100 sends a coding signal to the terminal device 200, it can directly contact the terminal screen or not, for example, by being close to the terminal screen. As long as the terminal device 200 can detect the coding signal, it can determine the input position of the stylus 100 based on the coding signal.

[0069] Correspondingly, in some examples, users can directly perform touch operations on the terminal screen using the stylus 100, which can be used to achieve writing, drawing, or control operations.

[0070] In some examples, users can perform air gestures on the terminal device 200 using the stylus 100, which can be used to perform page turning, laser pointers, and other functions.

[0071] Figure 2 shows a schematic diagram of the hardware structure of the stylus. As shown in Figure 2, the stylus 100 may include: a microcontroller unit (MCU) 110, a memory 120, a power module 130, a wireless communication module 140, a coding module 150, a sensor module, a speaker 170, a motor 181, and an indicator 182. The sensor module may include a pressure sensor 161, an accelerometer (ACC) sensor 162, a touch sensor 163, and a specific absorption rate (SAR) sensor 164, etc.

[0072] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the stylus 100. In other embodiments of this application, the stylus 100 may include more or fewer components than illustrated, or combine some components, or split some components, or arrange the components differently. The functional characteristics of the illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0073] The MCU110 is used to perform various functional control operations and data processing operations. It is understood that the MCU110 described here is only an illustrative example, and in some examples, the MCU110 may be replaced by other controllers or processors.

[0074] The memory 120 can be used to store executable program code (i.e., programs), which includes instructions. The MCU 110 executes various functional applications and data processing of the stylus 100 by running the instructions stored in the memory 120. The memory 120 may include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function, etc. The data storage area may store data created during the use of the stylus 100, etc. Furthermore, the memory 120 may include high-speed random access memory and may also include non-volatile memory.

[0075] The power module 130 may include a battery, a power management unit, etc. The power management unit is used to manage the charging of the battery and the power supply of the battery to other modules; in some examples, some or all of the functions of the power management unit may be integrated into the MCU 110.

[0076] The wireless communication module 140 can provide solutions for wireless communication technologies such as Bluetooth, Wi-Fi, NFC, and UWB applied to the stylus 100. The wireless communication module 140 can be one or more devices integrating at least one communication processing module. The stylus 100 can communicate with networks and other devices (such as terminal device 200) via wireless communication technologies. In some embodiments, the wireless communication module 140 can be a Bluetooth chip, and the communication method is Bluetooth communication; this will also be used as an example in the following description.

[0077] The wireless communication module 140 can be used in conjunction with an antenna (not shown) to receive electromagnetic waves and convert them into electrical signals, or to convert electrical signals to be transmitted into electromagnetic waves and transmit them.

[0078] The coding module 150 can be located on the tip side of the stylus 100 and is used to output a coding signal. The terminal device 200 can determine the input position of the stylus tip on the terminal screen based on the received coding signal. The coding signal can be a square wave signal or a triangular wave signal, etc. The coding signal can also be called a reporting signal.

[0079] In some examples, during the Bluetooth pairing process between the stylus 100 and the terminal device 200, or after successful Bluetooth pairing, the terminal device 200 can send coding configuration parameters to the stylus 100. After receiving the coding configuration parameters, the wireless communication module 140 of the stylus 100 can send them to the coding module 150 via the MCU 110. When the tip of the stylus 100 approaches the terminal screen, the coding module 150 can receive a detection signal sent by the terminal device 200, which instructs the stylus 100 to provide a coding signal. After receiving this detection signal, the coding module 150 can output a coding signal according to the coding configuration parameters. In some examples, the MCU 110 can also control the coding module 150 to output the coding signal based on the coding configuration parameters.

[0080] The coding configuration parameters may include the frequency of the coding signal, the interval between the corresponding transmission time slots, the width of the transmission time slot, and the number of transmission time slots in one cycle. The stylus 100 and the terminal device 200 can transmit detection signals, coding signals, and other data based on the relevant stylus 100 protocol (pen protocol, PP).

[0081] Pressure sensor 161 is used to detect the magnitude of pressure. It can be located at the tip of stylus 100. When the tip of stylus 100 contacts the screen of terminal device 200, pressure sensor 161 can collect pressure data from the tip. In some examples, pressure sensor 161 can also be located in the barrel of stylus 100. When one end of the tip of stylus 100 is subjected to force, the other end of the tip moves to transmit the force to pressure sensor 161.

[0082] The MCU110 can send the pressure data collected by the pressure sensor 161 to the terminal device 200 via Bluetooth. The terminal device 200 can perform corresponding processing based on the pressure data, such as controlling the thickness and color depth of the handwriting on the stylus 100.

[0083] In some implementations, the pressure sensitivity of the pressure sensor 161 is adjustable, meaning the pressure sensitivity of the pressure sensor 161 can be adjusted. Higher pressure sensitivity allows the pressure sensor 161 to more accurately detect changes in pen tip pressure, resulting in richer and more nuanced variations in the thickness and color depth of the pen strokes when drawing or writing.

[0084] The same pressure range is divided into multiple pressure sensitivity levels. The more pressure sensitivity levels there are, the higher the pressure sensitivity. For example, a pressure sensitivity level of 512 means that the pressure sensor 161 can sense 512 different pressure changes.

[0085] The ACC sensor 162 can detect the magnitude of the acceleration of the stylus 100 in various directions (e.g., three-axis directions), which can be used to identify the posture of the stylus 100. In some examples, the ACC sensor 162 can also be replaced by an A+G sensor (a combination sensor of an accelerometer and a gyroscope) or other sensors that can detect the posture of the stylus.

[0086] Touch sensor 163 is used to detect touch signals from a user touching the stylus body; specifically, it can be a touch film sensor. Touch sensor 163 includes an electrode array comprising multiple sensing electrodes arranged in a specific pattern. When a hand touches the stylus body 100, the capacitance value of the sensing electrodes changes. By detecting this change in capacitance, a touch signal can be determined. In some examples, touch signals detected by touch sensor 163 can be used to identify gestures such as pressing / squeezing and swiping.

[0087] In some implementations, the touch sensor 163 can cover a portion of the pen body of the stylus 100, such as the middle and lower part of the pen body (i.e., the side closest to the pen tip), to save cost and power consumption.

[0088] The SAR sensor 164 can be used to detect the proximity of a human body. SAR stands for Specific Absorption Rate (or Electromagnetic Wave Absorption Ratio), which refers to the electromagnetic radiation energy absorbed by a unit mass of human tissue per unit time under the influence of an external electromagnetic field, and is measured in W / kg.

[0089] The SAR sensor 164 detects the proximity of a human body by measuring the capacitance value of the equivalent capacitance between the sensor 165 and the human body. Since the human body is a conductor, a capacitor is formed between the human body and the sensor 165 when the human body approaches the sensor 165 to a certain extent. The capacitance value of this capacitor gradually increases as the human body moves closer to the sensor 165 and gradually decreases as the human body moves away from the sensor 165. Therefore, the proximity of the human body can be detected by measuring the change in capacitance of the sensor 165.

[0090] When a user needs to use the stylus 100, they will approach the stylus 100 and then hold it. Based on this, in this embodiment, the user's holding of the stylus 100 can be detected by the capacitance value of the sensor 165 collected by the SAR sensor 164, that is, the holding state of the stylus 100 can be detected. The specific detection process can be found in the following embodiments, and will not be described in detail here.

[0091] The SAR sensor 164 can be in chip form or non-chip form.

[0092] The material of the sensor 165 can be a conductive material or a semiconductor material. For example, the sensor 165 can be an antenna, a flexible circuit board, or indium tin oxide (ITO).

[0093] In some implementations, the sensor 165 can reuse the structure in the stylus 100 to save space and cost. For example, the sensor 165 can be the Bluetooth antenna in the stylus 100 or the sensing electrode of the touch sensor 163.

[0094] In some examples, the sensor element 165 of the SAR sensor 164 may be one of the sensing electrodes to save power consumption. For example, the sensor element 165 of the SAR sensor 164 may be one of the sensing electrodes located in the middle of the pen body.

[0095] In some examples, the sensor element 165 of the SAR sensor 164 may include multiple sensing electrodes of the touch sensor 163. For example, the sensor element 165 of the SAR sensor 164 may include two sensing electrodes near the two ends of the electrode array to save power while expanding the sensing range of the sensor element 165.

[0096] The above example can also be understood as follows: the SAR sensor 164 can be connected to one or more sensors 165, each sensor 165 being a sensing electrode in an electrode array.

[0097] In some implementations, as shown in Figure 3(a), a SAR sensor 164 may be configured such that its sensor element 165 is located in the middle of the stylus body, so that the detection area of ​​the SAR sensor 164 can cover the main area of ​​the stylus body. For example, the sensor element 165 may be the sensing electrode of the touch sensor 163.

[0098] In some implementations, as shown in Figure 3(b), two SAR sensors 164 (SAR1 and SAR2) can be configured. The sensor of one SAR sensor 164 (SAR1 in this example) is located near the tail of the stylus 100, and the sensor of the other SAR sensor 164 (SAR2 in this example) is located near the tip of the stylus 100. In this way, when the holding state is detected based on the capacitance value detected by the SAR sensor 164, the detection area can better cover the pen body of the stylus 100, thereby making the detection results more accurate.

[0099] In some examples, SAR1 may also be referred to as the first SAR sensor, and SAR2 may also be referred to as the second SAR sensor.

[0100] The sensor elements 165 of the two SAR sensors 164 can partially or completely reuse the structure in the stylus 100 to save space and cost.

[0101] For example, as shown in FIG3, the sensor 1 of SAR1 reuses the Bluetooth antenna, and the sensor 2 of SAR2 reuses the sensing electrode of the touch sensor 163. It is understood that if the stylus 100 uses other wireless communication methods, such as stroboscopic communication, the sensor 1 of SAR1 can reuse the stroboscopic antenna. When the wireless communication module 140 in the stylus 100 includes multiple wireless communication methods, the sensor can reuse the antenna of at least one wireless communication method. For example, a Bluetooth antenna or a stroboscopic antenna can be reused as the sensor 1 of SAR1, i.e., SAR1 is connected to one sensor 1. Alternatively, a Bluetooth antenna and a stroboscopic antenna can be reused as the sensor 1 of SAR1, i.e., SAR1 is connected to two sensors 1, one sensor 1 reuses the Bluetooth antenna, and the other sensor 1 reuses the stroboscopic antenna.

[0102] As mentioned above, one of the sensing electrodes of the touch sensor 163 can be reused as the sensor 2 of SAR2, that is, SAR2 is connected to one sensor 2. Alternatively, both sensing electrodes of the touch sensor 163 can be reused as the sensor 2 of SAR2, that is, SAR2 is connected to two sensors 2, and each of these two sensors reuses one sensing electrode of the touch sensor 163.

[0103] When a SAR sensor is connected to one sensor, a single-channel SAR sensor can be used; when a SAR sensor is connected to multiple sensors, a multi-channel SAR sensor can be used.

[0104] In some implementations, SAR1 and SAR2 can also be replaced by a multi-channel SAR sensor 164, which is electrically connected to the sensing electrodes of the Bluetooth antenna and the touch sensor 163, respectively.

[0105] The implementation using multiple SAR sensors 164 results in lower cost and power consumption; the use of multi-channel SAR sensors 164 can save space, and the specific implementation can be selected as needed, which is not particularly limited in this application embodiment.

[0106] The speaker 170, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The stylus 100 can emit sound signals through the speaker 170.

[0107] In some examples, the stylus 100 may also include a microphone (not shown) to collect sound signals. The stylus 100 can use the sound signals collected by the microphone to achieve functions such as speech recognition.

[0108] Motor 181 can generate vibration cues. For example, motor 181 can be used for touch vibration feedback.

[0109] Indicator 182 can be an indicator light, which can be used to indicate charging status, power changes, etc.

[0110] The control method of the embodiments of this application will be described below. For ease of description, the technical solution of this application will be illustrated by taking a single SAR sensor as an example.

[0111] Figure 4 is a schematic flowchart of a control method provided in an embodiment of this application. The method mainly involves pen grip detection (i.e., grip state detection). As shown in Figure 4, the method may include the following steps:

[0112] S110. Acquire the capacitance value C of the sensor through a SAR sensor.

[0113] When performing pen grip detection, the MCU can send an enable signal to the SAR sensor, controlling the SAR sensor to start collecting the capacitance value C of the connected sensor.

[0114] The SAR sensor can periodically collect the capacitance value C of the sensor. The specific collection period can be set as needed and is not specifically limited here.

[0115] As mentioned earlier, a SAR sensor can be connected to one or more sensors. When a SAR sensor is connected to multiple sensors, the capacitance value C collected by the SAR sensor includes the capacitance value C of each sensor. The capacitance values ​​C of each sensor can be collected synchronously or asynchronously.

[0116] When the user's hand is far from the sensor, the capacitance of the sensor is relatively small; when the user's hand is close to the sensor, the sensor can generate a larger capacitance value, and as the user's hand gets closer to the sensor, the capacitance value generated by the sensor gradually increases.

[0117] S120. Determine whether the capacitance value C is greater than the capacitance threshold THc; if yes, proceed to step S130; otherwise, proceed to step S140.

[0118] The capacitance threshold THc can be determined based on the capacitance value that the SAR sensor can collect when the user holds the stylus. For example, the capacitance threshold THc can be the average or minimum capacitance value of the sensor corresponding to different positions of the user holding the stylus. In specific implementation, the capacitance threshold THc can be determined according to the sensitivity requirements. The specific determination method is not particularly limited here.

[0119] After the SAR sensor acquires the capacitance value C, it can identify the pen grip state based on the relationship between the capacitance value C and the capacitance threshold THc.

[0120] When the capacitance value C is greater than the capacitance threshold THc, it can be determined that the user is holding the stylus, that is, the stylus is in a holding state.

[0121] When the capacitance value C is less than or equal to the capacitance threshold THc, it can be determined that the user is not holding the stylus, that is, the stylus is in an unheld state.

[0122] It is understandable that, when a SAR sensor collects capacitance values ​​C from multiple sensors, the relationship between each capacitance value C collected by the SAR sensor and the capacitance threshold THc can be determined separately. If at least one capacitance value C is greater than the capacitance threshold THc, the stylus is determined to be in a held state; if each capacitance value C is less than or equal to the capacitance threshold THc, the stylus is determined to be in an unheld state. In this embodiment, the number of capacitance values ​​C that meet the condition (i.e., greater than the capacitance threshold THc) when the stylus is in a held state is not particularly limited.

[0123] In some implementations, after the SAR sensor acquires the capacitance value C, it can transmit the capacitance value C to the MCU, which then determines the relationship between the capacitance value C and the capacitance threshold THc.

[0124] In some implementations, after the SAR sensor acquires the capacitance value C, it can determine the relationship between the capacitance value C and the capacitance threshold THc. Optionally, when the capacitance value C is greater than the capacitance threshold THc, the SAR sensor can send an interrupt signal to the MCU to notify the MCU that the stylus is in a holding state.

[0125] S130. Ensure the stylus is in a holding position.

[0126] As described above, if the capacitance value C collected by the SAR sensor is greater than the capacitance threshold THc, it can be determined that the stylus is in a holding state. Then, related function control operations can be performed, such as switching between standby and wake-up states. For details, please refer to the embodiments below.

[0127] S140. Ensure the stylus is not in a holding position.

[0128] If the capacitance value C collected by the SAR sensor is less than or equal to the capacitance threshold THc, it can be determined that the stylus is in a non-grip state.

[0129] In this case, the SAR sensor can continue to collect the capacitance value of the sensor until it is determined that the stylus is being held or that holding status detection is no longer required.

[0130] In some examples, even when the stylus is determined to be held, the SAR sensor can continue to collect the capacitance value of the sensor until the holding state detection is no longer required.

[0131] In some embodiments, when there are multiple SAR sensors, the stylus can be determined to be in a holding state if the capacitance value C collected by at least one SAR sensor is greater than the capacitance threshold THc; and the stylus can be determined to be in a non-holding state if the capacitance value C collected by each SAR sensor is less than or equal to the capacitance threshold THc.

[0132] Those skilled in the art will understand that the above embodiments are exemplary and not intended to limit this application. Where possible, the execution order of one or more of the above steps can be adjusted, or they can be selectively combined to obtain one or more other embodiments. For example, in some embodiments, step S120 can be omitted, and the judgment result can be determined directly; in some embodiments, step S140 can be omitted. Those skilled in the art can arbitrarily select and combine the above steps as needed, and all combinations that do not depart from the essence of this application fall within the protection scope of this application.

[0133] In the aforementioned grip state detection scheme, the grip state of the stylus is determined based on the capacitance value of the sensor collected by the SAR sensor. The SAR sensor is characterized by low power consumption and high sensitivity; only one or a few sensors are needed to cover most or all of the stylus's area. In other words, only the capacitance value of one or a few sensors needs to be collected, resulting in low power consumption. Compared to using a touch film sensor to detect grip state, this scheme reduces power consumption and extends the stylus's battery life. Furthermore, the sensor configuration of the SAR sensor is flexible; it can be additionally configured or reused from the stylus's structure, making this scheme highly adaptable.

[0134] The above-mentioned grip state detection scheme can be applied to a variety of scenarios. Several possible scenarios are illustrated below.

[0135] Standby wake-up scenario

[0136] Styluses have relatively small battery capacities. To extend their battery life, one approach is to put the stylus into standby mode when it remains inactive for extended periods. When movement is detected in standby mode, the stylus is woken up. However, this approach risks accidental wake-up due to shaking or other reasons. Therefore, this application provides a standby wake-up mechanism that controls the stylus's operating state based on its grip and employs a multi-level standby wake-up mechanism to reduce power consumption and the likelihood of accidental wake-ups.

[0137] Figure 5 is a schematic diagram of the working state control process of the stylus provided in an embodiment of this application. As shown in Figure 5, the standby wake-up mechanism corresponding to this control process can include three stages: a first standby state, a second standby state, and a wake-up state. The power consumption of the stylus in the second standby state is slightly higher than that in the first standby state. Figure 6 is a schematic diagram of the working state control principle of the stylus provided in an embodiment of this application. The following description, in conjunction with the processes shown in Figures 5 and 6, explains these stages. As shown in Figure 5, the control process can include the following steps:

[0138] S210. In the first standby state, detect the movement event of the stylus.

[0139] In the first standby state, the devices in the stylus used to detect stylus movement events (such as the ACC sensor) are active, while other devices can be in a powered-off or low-power state (i.e., standby state). For example, the MCU, memory, and power module can be in a low-power standby state, while the wireless communication module, coding module, and other sensors can be powered off. It is understood that this is only one example, and in other examples, the devices in the stylus may operate in other modes in the first standby state.

[0140] As the core component of the stylus, the working state of the MCU reflects the working state of the stylus; that is, the working state of the stylus can also be considered as the working state of the MCU. As shown in Figure 6, the MCU is in the first standby state (step S1), which means that the stylus is in the first standby state.

[0141] The working process of a stylus involves generating displacement or movement. When the user is not using the stylus, it is usually stationary; when the user uses the stylus, they control its movement. Based on this, by detecting whether the stylus is moving, we can initially determine whether the user intends to use it.

[0142] When detecting handwriting motion events, an ACC sensor or other sensors that can detect handwriting posture can be used. For ease of explanation, the ACC sensor will be used as an example below.

[0143] Specifically, the relationship between the acceleration detected by the ACC sensor (i.e., the acceleration of the stylus) and the preset acceleration threshold can be used to determine whether the stylus has undergone a motion event.

[0144] When the acceleration of the stylus is greater than the acceleration threshold, it can be determined that the stylus has undergone a motion event, that is, the stylus is in motion; when the acceleration of the stylus is less than or equal to the acceleration threshold, it can be determined that the stylus has not undergone a motion event, that is, the stylus is in a stationary state.

[0145] The magnitude of the acceleration threshold can be determined based on the actual required sensitivity, and no special limitation is made here.

[0146] S220. If a motion event is detected, the system enters the second standby state.

[0147] When a movement event occurs in the stylus, it indicates that the user may intend to use the stylus. Considering that in some scenarios, such as when the stylus is placed on a shaking table or in a moving bag, the user may not intend to use the stylus, in this embodiment, after detecting a movement event, the stylus can respond to the event and enter a second standby state. By detecting the user's grip, the user's intention to use the stylus can be further determined, thereby reducing the probability of false wake-up.

[0148] Specifically, referring to Figure 6, in the first standby state, when the acceleration detected by the ACC sensor is greater than the acceleration threshold (step S2), it can be determined that the stylus has moved. At this time, the ACC sensor can send an interrupt signal (i.e., the ACC interrupt signal) to the MCU. After receiving the interrupt signal, the MCU can respond to the interrupt signal and enter the second standby state (step S3), that is, the stylus enters the second standby state.

[0149] In the second standby state, the MCU can enable the SAR sensor (step S4), that is, the MCU sends an enable signal to the SAR sensor to wake up the SAR sensor and make the SAR sensor collect the capacitance value C of the sensor (step S5) to perform pen grip state detection.

[0150] S230, The capacitance value C of the sensor is collected by the SAR sensor.

[0151] This step can be referred to the relevant description in step S110 of the foregoing embodiments, and will not be repeated here.

[0152] S240. Determine whether the capacitance value C is greater than the capacitance threshold THc; if yes, proceed to step S250; otherwise, proceed to step S230.

[0153] After the SAR sensor acquires the capacitance value C, it can determine the relationship between the capacitance value C and the capacitance threshold THc (step S6).

[0154] When the capacitance value C collected by the SAR sensor is greater than the capacitance threshold THc, it can be determined that the stylus is in a holding state. In this case, it indicates that the user's intention to use the stylus is strong, and the stylus can be woken up.

[0155] When the capacitance value C collected by the SAR sensor is less than or equal to the capacitance threshold THc, it can be determined that the stylus is in an unheld state. In this case, the capacitance value C of the sensor can continue to be collected by the SAR sensor to detect the pen holding state.

[0156] Further details regarding this step can be found in the description of step S120 in the foregoing embodiments, and will not be repeated here.

[0157] S250, Enter wake-up state.

[0158] If the capacitance value C collected by the SAR sensor is greater than the capacitance threshold THc, it indicates that the stylus is in a holding state. In this case, the MCU can enter the wake-up state (step S7) and wake up other devices, so that the entire stylus enters the wake-up state.

[0159] In some embodiments, in the second standby state or wake-up state, if no movement event of the stylus is detected within the target duration, that is, the stylus remains stationary within the target duration, the stylus can enter the first standby state to save power consumption.

[0160] Specifically, referring to Figure 6, if the MCU does not receive an ACC interrupt signal within the target duration, it can be determined that the stylus is in a stationary state within the target duration. Then the MCU can enter the first standby state, that is, the stylus enters the first standby state.

[0161] The target duration can be a system preset, such as 5 minutes, and the specific duration can be set as needed; no particular limitation is made here. In some implementations, the target duration can also be set by the user. Optionally, after the stylus is connected to the terminal device, the user can set the target duration through the terminal device.

[0162] In this embodiment, the target event that triggers the stylus to enter the second standby state is not limited to motion events. In some embodiments, in the first standby state, the stylus can also be triggered to enter the second standby state by detecting other target events.

[0163] For example, the target event could be a pressure-sensitive event, which represents the stylus tip pressing against the terminal screen. In practice, a pressure-sensitive event can be determined when the pressure value detected by the pressure sensor exceeds a pressure threshold.

[0164] The magnitude of this pressure threshold can be determined based on the required sensitivity, and is not specifically limited here. Optionally, in the first standby state, the pressure sensor can use a lower sampling rate to acquire pressure values ​​to reduce power consumption.

[0165] The power consumption of the first standby state, the second standby state, and the wake-up state increases sequentially. In some examples, the various working states of the stylus can also be named in other ways. For example, the first standby state can also be called the first-level standby state, and the second standby state can also be called the second-level standby state. Similarly, the second standby state can also be called the first wake-up state, and correspondingly, the wake-up state can be called the second wake-up state. The standby state can also be called standby mode, low-power operating state / mode, sleep state / mode, etc., and the wake-up state can also be called wake-up mode, normal operating state / mode, etc.

[0166] It is understood that the judgment steps described in the embodiments of this application are only for ease of understanding. In some examples, the judgment steps may not be performed, and the judgment result may be determined directly, and the steps corresponding to the judgment result may be performed.

[0167] The aforementioned standby wake-up mechanism, in the first standby state, enters a second standby state after a target event (such as a motion event) occurs on the stylus. There, it continues to detect the user's intention to use the stylus by detecting the pen's grip status. Only after confirming the stylus is in a gripped state does it enter the wake-up state. This effectively reduces the chance of false wake-ups, thus lowering power consumption and extending battery life. Furthermore, through this multi-level standby mechanism, target event detection, which consumes less power than grip status detection, can be used in the first standby state. This allows the stylus to conserve power when it remains in the first standby state for extended periods without user interaction. Additionally, this standby wake-up mechanism, upon waking the stylus, confirms not only that it is being held but also that a target event has occurred. This helps prevent the stylus from waking up after prolonged periods of holding without use, further conserving power and extending battery life.

[0168] Pen grip feedback scenario

[0169] In this scenario, the stylus can provide grip feedback when switched to a holding position, allowing users to more intuitively feel the stylus's working status and thus improve the user's interactive experience.

[0170] Specifically, referring to Figure 7, the pen grip feedback control process corresponding to this pen grip feedback scenario may include the following steps:

[0171] S310, confirm that the stylus has switched from an unheld state to a held state.

[0172] In some examples, the stylus can perform grip detection in the sleep state described above; in other examples, the stylus can perform grip detection in the wake state.

[0173] In other words, the stylus can provide grip feedback when switching from a non-grip state to a grip state in a sleep state, or when switching from a non-grip state to a grip state in a wake state.

[0174] As mentioned earlier, when performing pen grip detection, the SAR sensor can periodically collect capacitance values. Correspondingly, pen grip detection can be performed periodically based on these capacitance values. It can be understood that if the detection result of the current cycle is a gripping state and the detection result of the previous cycle is a non-gripping state, it can be determined that the stylus has switched from a non-gripping state to a gripping state.

[0175] S320, issue a prompt signal.

[0176] The prompt signal may include at least one of the following: a vibration signal, a sound signal, and a light signal. That is, when the stylus is switched to a holding state, it can control the motor to generate a vibration signal, control the speaker to emit a sound signal, and / or control the indicator to emit a light signal.

[0177] In some implementations, the prompt signal can be a system preset, for example, the prompt signal is a vibration signal.

[0178] In some implementations, the prompt signal can also be set by the user. Optionally, after the stylus is connected to the terminal device, the user can set the stylus's prompt signal through the terminal device. For example, the prompt signal can be set to a vibration signal plus a sound signal, that is, when the stylus switches to the holding state, it controls the motor to generate a vibration signal and controls the speaker to emit a sound signal.

[0179] The aforementioned pen grip feedback scheme issues a prompt signal when the stylus switches from an unheld state to a held state, allowing users to more intuitively feel the stylus's working status. It can also interact with users, increasing fun and thus improving the user's interactive experience.

[0180] Performance switching scenarios

[0181] In this scenario, the stylus can switch performance modes depending on the grip position. These performance modes can include a low-performance mode and a high-performance mode. In some examples, the low-performance mode may also be referred to as the first performance mode, and the high-performance mode as the second performance mode. The stylus performs better in the second performance mode than in the first performance mode.

[0182] Figure 8 is a schematic diagram of the performance mode switching process provided in an embodiment of this application. As shown in Figure 8, the performance mode switching process may include the following steps:

[0183] S410: When switching from a non-holding state to a holding state, switch from low performance mode to high performance mode.

[0184] Optionally, the stylus can perform grip detection while in a wake-up state; when the stylus is not being held, it can be in a low-performance mode to reduce power consumption.

[0185] When the stylus is switched from an unheld state to a held state, it can switch from a low-performance mode to a high-performance mode to improve its performance and thus enhance the user experience.

[0186] Optionally, the performance metrics corresponding to the low-performance mode and the high-performance mode may include: coding performance, pressure sensitivity performance, and communication performance. That is, compared to the low-performance mode, the stylus has higher coding performance, pressure sensitivity performance, and / or communication performance in the high-performance mode.

[0187] The performance parameters related to coding performance can include the frequency and amplitude of the coding signal. When switching to high-performance mode, increasing the frequency of the coding signal can improve input smoothness; increasing the amplitude of the coding signal can improve anti-interference ability, thereby improving input smoothness.

[0188] The performance parameters related to pressure sensitivity can include: the pressure sensitivity of the pressure sensor, the sampling rate of the pressure data, and the transmission frequency. When switching to high-performance mode, increasing the pressure sensitivity of the pressure sensor can make the variations in the thickness and color depth of the stylus pen strokes richer and more delicate; when switching to high-performance mode, increasing the sampling rate and transmission frequency of the pressure data can reduce input latency, improve input response speed, and enhance input smoothness.

[0189] In some examples, performance parameters corresponding to communication performance may include data transmission rate and signal strength of wireless communication connections (such as Bluetooth connections). When the stylus is switched to high-performance mode, it can improve the data transmission rate and / or signal strength of Bluetooth connections.

[0190] In some examples, the performance parameters corresponding to communication performance may include the communication method. For example, in low-performance mode, the stylus may use Bluetooth communication; in high-performance mode, the stylus may use StarFlash communication.

[0191] In high-performance mode, improved communication performance makes data transmission between the stylus and the terminal device more timely and reliable, thereby improving input response speed and enhancing input fluency.

[0192] Similar to step S310, if the detection result of the current cycle is a holding state and the detection result of the previous cycle is a non-holding state, it can be determined that the stylus has switched from a non-holding state to a holding state.

[0193] In some implementations, the stylus can be switched from low-performance mode to high-performance mode immediately after it is switched from an unheld state to a held state.

[0194] Considering that in practical applications, users may accidentally touch the stylus or pick it up and immediately put it down, some implementations can switch the stylus from low-performance mode to high-performance mode when the stylus switches from an unheld state to a held state, and the duration of the stylus being held is longer than the first duration. This reduces the frequent switching of performance modes caused by factors such as accidental touches, and reduces the resource overhead and power consumption caused by performance switching.

[0195] The first duration can be several seconds or several pen grip detection cycles, etc. The specific duration can be set as needed, and there is no special limitation here.

[0196] S420: When the stylus is switched from being held to being unheld, it switches from high-performance mode to low-performance mode.

[0197] Similar to step S410, if the detection result of the current cycle is an unheld state and the detection result of the previous cycle is a held state, then it can be determined that the stylus has switched from the held state to the unheld state. After the stylus switches to the unheld state, it can be switched from high-performance mode to low-performance mode to reduce power consumption.

[0198] In some implementations, the stylus can be switched from high-performance mode to low-performance mode immediately after it is switched from being held to being unheld.

[0199] In some implementations, when the stylus switches from a held state to a non-held state, and the duration of the non-held state is longer than the second duration, the stylus can be switched from high-performance mode to low-performance mode. This reduces the frequent switching of performance modes caused by factors such as accidental touches, and lowers the resource overhead and power consumption caused by performance switching.

[0200] The second duration can be equal to or different from the first duration. The second duration can be several seconds or several pen grip detection cycles, etc. The specific duration can be set as needed, and there is no special limitation here.

[0201] In some examples, when the stylus switches performance modes, it can send a notification message to the terminal device to inform the terminal device of the performance mode that the stylus is switching to.

[0202] The above performance mode switching scheme allows the stylus to switch to high-performance mode when it is held, which can improve the stylus's working performance and thus enhance the user experience; when the stylus is not held, it switches to low-performance mode, which can reduce power consumption and thus extend the stylus's battery life.

[0203] Those skilled in the art will understand that any of the above examples or any of the diagrams can be considered an independent solution, or any combination of the above examples or any combination of diagrams can also be considered an independent solution. This application does not impose any particular restrictions here.

[0204] The above describes the handwriting pen control method provided in the embodiments of this application. In the various embodiments of this application, unless otherwise specified or logically conflicting, the terms and / or descriptions between the various embodiments are consistent and can be referenced by each other. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationship.

[0205] The apparatus provided in the embodiments of this application will now be described in detail with reference to FIG9. It should be understood that the description of the apparatus embodiments corresponds to the description of the method embodiments. For ease of reading, the apparatus embodiments here will not repeat the details of the foregoing method embodiments one by one, but it should be clear that the apparatus in this embodiment can implement all the contents of the foregoing method embodiments.

[0206] Figure 9 is a schematic diagram of the structure of the control device provided in the embodiment of this application. The device can be an input device or a component in the input device, used to implement the method involved in the above method embodiment.

[0207] As shown in Figure 9, the device may include: a control module 310, a processing module 320, and a communication module 330.

[0208] The control module 310 is used to support the device in performing control operations in the above embodiments and / or other processes for the techniques described herein. For example, the control module 310 may be the MCU or a module within an MCU as described in the foregoing embodiments, or it may be other hardware or a combination of hardware and software.

[0209] The processing module 320 is used to support the device in performing the state or event determination operations in the method steps of the above embodiments and / or other processes used in the techniques described herein. The processing module 320 may be the MCU or a module in the MCU described in the foregoing embodiments, and the functions of the processing module 320 may also be performed by multiple components described in the foregoing embodiments.

[0210] The communication module 330 is used to support the device in performing operations related to communication processes with other devices (e.g., terminal devices) as described in the above embodiments and / or other processes using the techniques described herein. The communication module 330 may include the wireless communication module and / or other modules described in the foregoing embodiments.

[0211] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The functional characteristics of the integrated unit can be implemented in hardware, software, or a combination of hardware and software. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0212] This application also provides a readable storage medium (also known as a computer-readable storage medium) storing a program thereon, which, when executed by a processor, implements the method described in the above-described method embodiments.

[0213] This application also provides a program product (also known as a computer program product) that, when run on a device, causes the device to implement the method described in the above-described method embodiments.

[0214] This application also provides a chip system including a processor coupled to a memory. The processor executes a program stored in the memory to implement the method described in the above embodiments. The chip system may be a single chip or a chip module composed of multiple chips.

[0215] In the above embodiments, each processing step or functional feature can be implemented, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented, in whole or in part, as a program product. The program product includes one or more instructions. When the instructions are loaded and executed on the device, the process or function described in accordance with the embodiments of this application is generated, in whole or in part. The instructions can be stored in a readable storage medium or transmitted through the readable storage medium.

[0216] The naming or numbering of steps in this application does not mean that the steps in the method flow must be executed in the time / logical order indicated by the naming or numbering. The execution order of the named or numbered process steps can be changed according to the technical purpose to be achieved, as long as the same or similar technical effect can be achieved.

[0217] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0218] In the embodiments provided in this application, it should be understood that the disclosed apparatus / devices and methods can be implemented in other ways. For example, the apparatus / device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0219] It should be understood that in the description of this application and the appended claims, the terms "comprising," "including," "having," and any variations thereof are intended to cover a non-exclusive inclusion and mean "including but not limited to," unless otherwise specifically emphasized. For example, a process, method, system, product, or apparatus that includes a series of steps or modules is not necessarily limited to those steps or modules that are explicitly listed, but may include other steps or modules that are not explicitly listed or that are inherent to such process, method, product, or apparatus.

[0220] In the description of this application, unless otherwise stated, " / " indicates that the objects before and after are in an "or" relationship. For example, A / B can mean A or B. "And / or" in this application is used to describe the relationship between the related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural.

[0221] Furthermore, in the description of this application, unless otherwise stated, "multiple" means two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0222] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0223] Furthermore, in the description of this application and the appended claims, the terms "first," "second," etc., are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence, nor should they be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than that illustrated or described herein; features defined as "first" or "second" may explicitly or implicitly include at least one of those features.

[0224] In the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.

[0225] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized.

[0226] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A method for controlling an input device, characterized in that, The input device is equipped with a SAR sensor, and the SAR sensor is connected to a sensor. The method includes: Control the SAR sensor to acquire the capacitance value of the sensor; If the capacitance value is greater than the capacitance threshold, it is determined that the input device is in a holding state.

2. The method according to claim 1, characterized in that, The SAR sensor is a single sensor, and the SAR sensor is connected to one or more sensors.

3. The method according to claim 2, characterized in that, When the SAR sensor is connected to a sensor, if the capacitance value of the sensor is greater than the capacitance threshold, the input device is determined to be in a held state; if the capacitance value of the sensor is less than or equal to the capacitance threshold, the input device is determined to be in a non-held state. When the SAR sensor is connected to multiple sensors, if the capacitance value of at least one sensor is greater than the capacitance threshold, it is determined that the input device is in a holding state. If the capacitance value of each of the sensors is less than or equal to the capacitance threshold, the input device is determined to be in a non-grip state.

4. The method according to claim 1, characterized in that, The SAR sensor includes multiple sensors; Each SAR sensor is connected to one sensor, or each SAR sensor is connected to multiple sensors, or some SAR sensors are connected to one sensor and other SAR sensors are connected to multiple sensors.

5. The method according to claim 4, characterized in that, If the capacitance value of at least one sensor is greater than the capacitance threshold, the input device is determined to be in a gripped state; if the capacitance value of each sensor is less than or equal to the capacitance threshold, the input device is determined to be in a non-griped state.

6. The method according to any one of claims 1-5, characterized in that, The method further includes: Before the SAR sensor is controlled to acquire the capacitance value of the sensor, in the first standby state, in response to a target event, it enters the second standby state; the power consumption of the input device in the first standby state is lower than the power consumption in the second standby state; After entering the second standby state, and if it is determined that the input device is in a holding state, it enters the wake-up state.

7. The method according to claim 6, characterized in that, The method further includes: If no target event is detected within the target duration during the second standby state or the wake-up state, the system enters the first standby state.

8. The method according to claim 6 or 7, characterized in that, The target event includes: the input device undergoing a motion event.

9. The method according to claim 8, characterized in that, When a motion event occurs in the input device, the acceleration of the input device is greater than the acceleration threshold.

10. The method according to any one of claims 1-9, characterized in that, The method further includes: When the input device switches from a non-held state to a held state, a prompt signal is issued; the prompt signal includes at least one of the following: a vibration signal, an audio signal, and a light signal.

11. The method according to any one of claims 1-10, characterized in that, The method further includes: When the input device switches from a non-held state to a held state, it switches from a first performance mode to a second performance mode; the performance of the input device in the second performance mode is higher than its performance in the first performance mode. When the input device switches from a held state to a non-held state, it switches from the second performance mode to the first performance mode.

12. The method according to claim 11, characterized in that, When the input device switches from a non-held state to a held state, and the duration of the input device being in the held state is greater than a first duration, the device switches from the first performance mode to the second performance mode. When the input device switches from a held state to a non-held state, and the duration of the non-held state is longer than a second duration, the device switches from the second performance mode to the first performance mode.

13. The method according to any one of claims 1-12, characterized in that, The input device has a wireless communication module, and the sensor reuses the antenna of the wireless communication module.

14. The method according to any one of claims 1-13, characterized in that, The input device has a touch sensor, and the sensor element reuses the sensing electrodes of the touch sensor.

15. The method according to any one of claims 1-14, characterized in that, The input device is a stylus, and the SAR sensor includes two sensors. The first SAR sensor is connected to one sensor, and the second SAR sensor is connected to two sensors. The input device has a Bluetooth antenna and a touch sensor. The sensor connected to the first SAR sensor reuses the Bluetooth antenna, and the two sensors connected to the second SAR sensor reuse the two sensing electrodes of the touch sensor.

16. The method according to any one of claims 1-14, characterized in that, The input device is a stylus, and the SAR sensor includes two SAR sensors. The first SAR sensor is connected to two sensors, and the second SAR sensor is also connected to two sensors. The input device has a Bluetooth antenna, a stroboscopic antenna, and a touch sensor. One of the sensors connected to the first SAR sensor reuses the Bluetooth antenna, and the other sensor connected to the first SAR sensor reuses the stroboscopic antenna. The two sensors connected to the second SAR sensor reuse the two sensing electrodes of the touch sensor.

17. An input device, characterized in that, include: An MCU and a SAR sensor, wherein the MCU is electrically connected to the SAR sensor, and the SAR sensor is connected to a sensor. The MCU is used to perform the method as described in any one of claims 1-16.

18. The input device according to claim 17, characterized in that, The input device is a stylus, and the SAR sensor includes two sensors, one of which has its sensor element close to the tip of the stylus, and the other of which has its sensor element close to the tail of the stylus.

19. The input device according to claim 17 or 18, characterized in that, The input device further includes a wireless communication module for communicating with a terminal device; the sensor reuses the antenna of the wireless communication module.

20. The input device according to any one of claims 17-19, characterized in that, The input device also includes a touch sensor, and the sensor element reuses the sensing electrodes of the touch sensor.

21. The input device according to any one of claims 17-20, characterized in that, The input device is a stylus, and the SAR sensor includes two sensors. The first SAR sensor is connected to one sensor, and the second SAR sensor is connected to two sensors. The input device also includes a Bluetooth antenna and a touch sensor. The sensor connected to the first SAR sensor reuses the Bluetooth antenna, and the two sensors connected to the second SAR sensor reuse the two sensing electrodes of the touch sensor.

22. The input device according to any one of claims 17-20, characterized in that, The input device is a stylus, and the SAR sensor includes two SAR sensors. The first SAR sensor is connected to two sensors, and the second SAR sensor is also connected to two sensors. The input device further includes a Bluetooth antenna, a stroboscopic antenna, and a touch sensor. One of the sensors connected to the first SAR sensor reuses the Bluetooth antenna, and the other sensor connected to the first SAR sensor reuses the stroboscopic antenna. The two sensors connected to the second SAR sensor reuse the two sensing electrodes of the touch sensor.

23. A readable storage medium having a program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-16.

24. A program product, characterized in that, When the program product is run on the device, the device performs the method as described in any one of claims 1-16.

25. A chip system, characterized in that, The chip system includes a processor coupled to a memory, the processor executing a program stored in the memory to implement the method as described in any one of claims 1-16.