Touch operation response method and device, equipment, storage medium and program product
By receiving the status value and coordinate information of the active pen, the electronic device can respond to the touch operation of the active pen in a timely manner, solving the problem of large response latency in traditional technology and achieving a faster and more accurate response.
Patent Information
- Application Number
- CN202511884734.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-12
- Publication Date
- 2026-03-17
AI Technical Summary
Traditionally, electronic devices experience significant delays in responding to touch input from an active pen.
By receiving the status value sent by the active pen, it determines whether the touch operation generates pressure, and responds based on the preset pressure value and coordinate information, reducing the dependence on the actual pressure value.
It reduces the response latency of electronic devices to touch operations with an active pen, improves the accuracy and efficiency of the response, and avoids false responses.
Smart Images

Figure CN121680657A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, and in particular to a response method and device for touch operation, equipment, storage medium and program product. BACKGROUND
[0002] The active pen plays an important role in the interaction process between the active pen and the touch screen of the electronic device as the main peripheral input accessory of the electronic device.
[0003] Generally, a pressure sensor is installed in the active pen, and when the active pen contacts the touch screen of the electronic device to generate pressure, the pressure sensor can detect the pressure value of the generated pressure, and then the pressure value can be transmitted to the electronic device through Bluetooth transmission between the active pen and the electronic device, so that the electronic device responds to the touch operation of the active pen according to the pressure value and the touch position of the active pen.
[0004] However, the conventional technology has the problem of large response delay of the electronic device to the touch operation of the active pen. SUMMARY
[0005] Therefore, it is necessary to provide a response method and device for touch operation, equipment, storage medium and program product capable of reducing the response delay of the electronic device to the touch operation of the active pen.
[0006] In a first aspect, the present application provides a response method for active pen touch operation, applied to an electronic device, comprising:
[0007] receiving a state value sent by the active pen; the state value is used to represent whether a touch operation between the active pen and a touch screen of the electronic device generates pressure;
[0008] in the case that the state value represents that the touch operation generates pressure, responding to the touch operation based on a preset pressure value and coordinate information of the active pen.
[0009] In a second aspect, the present application provides a response method for active pen touch operation, applied to an active pen, comprising:
[0010] sending a state value representing whether a touch operation between the active pen and a touch screen of the electronic device generates pressure to an electronic device, so that the electronic device responds to the touch operation based on a preset pressure value and coordinate information of the active pen in the case that the state value represents that the touch operation between the active pen and the touch screen of the electronic device generates pressure.
[0011] In a third aspect, the present application further provides a response device for active pen touch operation, applied to an electronic device, comprising:
[0012] The first receiving module is configured to receive a state value sent by the active pen, wherein the state value is used to represent whether a touch operation between the active pen and a touch screen of the electronic device generates pressure.
[0013] The response module is configured to respond to the touch operation based on a preset pressure value and coordinate information of the active pen when the state value represents that the touch operation generates pressure.
[0014] In a fourth aspect, the present application further provides a response device for active pen touch operation, which is applied to an active pen and comprises:
[0015] The sending module is configured to send a state value representing whether a touch operation between the active pen and a touch screen of the electronic device generates pressure to the electronic device, so that the electronic device responds to the touch operation based on a preset pressure value and coordinate information of the active pen when the state value represents that the touch operation generates pressure.
[0016] In a fifth aspect, the present application further provides an electronic device, which comprises a transceiver, a memory and a processor, wherein the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0017] The state value sent by the active pen is received, wherein the state value is used to represent whether a touch operation between the active pen and a touch screen of the electronic device generates pressure.
[0018] The touch operation is responded based on a preset pressure value and coordinate information of the active pen when the state value represents that the touch operation generates pressure.
[0019] In a sixth aspect, the present application further provides an active pen, which comprises a pressure sensor, a transceiver, a memory and a processor, wherein the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0020] The state value representing whether a touch operation between the active pen and a touch screen of the electronic device generates pressure is sent to the electronic device, so that the electronic device responds to the touch operation based on a preset pressure value and coordinate information of the active pen when the state value represents that the touch operation generates pressure.
[0021] In a seventh aspect, the present application further provides a computer readable storage medium, which stores a computer program, wherein the computer program is executed by a processor to implement the steps of the method in the first aspect and the second aspect.
[0022] Eighthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the methods described in the first and second aspects above.
[0023] The aforementioned touch operation response method, apparatus, device, storage medium, and program product, when a touch operation occurs between the active pen and the touch screen of an electronic device, allow the electronic device to receive a state value sent by the active pen that characterizes whether the touch operation generates pressure. This enables the electronic device to respond to the touch operation between the active pen and the touch screen based on a preset pressure value and the coordinate information of the active pen, when the state value indicates that the touch operation generates pressure. This allows the electronic device to respond to touch operations promptly, eliminating the need for the electronic device to respond only after receiving the pressure value corresponding to the touch operation sent by the active pen, thus reducing the response latency of the electronic device to the active pen's touch operation. Attached Figure Description
[0024] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0025] Figure 1 This is an application environment diagram of a touch operation response method in one embodiment;
[0026] Figure 2 This is a flowchart illustrating a touch operation response method in one embodiment;
[0027] Figure 3 This is a flowchart illustrating the response method for touch operation in another embodiment;
[0028] Figure 4 This is a schematic diagram of signal transmission between the active pen and the electronic device in an embodiment of this application;
[0029] Figure 5 A schematic diagram illustrating the improved effect of the touch operation response method provided in the embodiments of this application;
[0030] Figure 6 This is a structural block diagram of a touch operation response device in one embodiment;
[0031] Figure 7 This is a structural block diagram of a touch operation response device in one embodiment;
[0032] Figure 8 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0033] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0034] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.
[0035] The touch operation response method provided in this application embodiment can be applied to, for example, Figure 1 In the application environment shown, electronic device 102 periodically sends uplink signals. Upon receiving the uplink signals, active pen 104 sends downlink signals to electronic device 102. Electronic device 102 calculates the coordinates of the active pen based on the location of the downlink signals sent by active pen 104. Simultaneously, active pen 104 is equipped with a pressure sensor. When the active pen touches the touchscreen of the electronic device, generating pressure, the pressure sensor detects the pressure value and sends it to electronic device 102. This allows electronic device 102 to respond to touch operations of active pen 104 based on its coordinates and the pressure value. Electronic device 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, and projection devices. Portable wearable devices can include smartwatches, smart bracelets, and head-mounted devices. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, and smart glasses.
[0036] In one exemplary embodiment, such as Figure 2 As shown, a touch operation response method is provided, which is applied to... Figure 1 Taking an electronic device as an example, the explanation includes the following steps:
[0037] S201, Receive the status value sent by the active pen; the status value is used to characterize whether the touch operation between the active pen and the touch screen of the electronic device generates pressure.
[0038] In this embodiment, when the electronic device and the active pen are close to each other, the electronic device can interact with the active pen and establish a communication connection. For example, a communication connection between the electronic device and the active pen can be established through interaction methods such as Bluetooth pairing, magnetic pairing, and electromagnetic resonance.
[0039] Subsequently, when the active pen comes into contact with the touch screen of the electronic device, the pressure sensor in the active pen can detect whether the touch operation between the active pen and the touch screen generates pressure. Based on the detection result, a state value characterizing whether the touch operation between the active pen and the touch screen generates pressure can be generated, and the state value can be sent to the electronic device through the communication connection between the active pen and the electronic device.
[0040] Understandably, this state value can indicate whether the touch operation between the stylus and the touchscreen generates pressure, or it can indicate whether the touch operation generates no pressure. For example, if the stylus accidentally touches the touchscreen, the corresponding touch operation will not generate pressure.
[0041] For example, in this embodiment, the aforementioned state value can be transmitted using multiple bits, meaning the state value received by the electronic device includes multiple bits of data. For instance, an 8-bit data transmission method can be used for the state value. When the multi-bit data received by the electronic device is 11111111, it can be determined that the received state value represents pressure applied during a touch operation between the stylus and the touchscreen of the electronic device. When the multi-bit data received by the electronic device is 00000000, it can be determined that the received state value represents no pressure applied during a touch operation between the stylus and the touchscreen of the electronic device. Furthermore, as an optional implementation, during the process of the active pen sending status values to the electronic device, the multi-bit data may be interfered with. If the electronic device receives the multi-bit data as 11010111, it can still be determined that the received status value represents pressure generated during the touch operation between the active pen and the touch screen of the electronic device. If the electronic device receives the multi-bit data as 00000100, it can still be determined that the received status value represents no pressure generated during the touch operation between the active pen and the touch screen of the electronic device. That is, even if a small number of bits in the multi-bit data are interfered with and change, it will not affect the overall data validity of the multi-bit data. In other words, when using multi-bit data transmission of status values, the combination of multiple bits represents a single status value. Compared with single-bit data transmission, this reduces the impact of single-bit data errors on the overall data validity and has stronger anti-interference capabilities. Furthermore, it's understandable that using multi-bit data transmission status values, compared to using multi-bit data transmission pressure values, can reduce the impact of interference on the overall data validity. For example, if a single bit of data is interfered with when transmitting pressure values using multi-bit data transmission, it will affect the accuracy of the transmitted pressure value. However, if a single bit of data is interfered with when transmitting status values using multi-bit data transmission, the status value represented by the multi-bit data will not change, thus not affecting the accuracy of the status value represented by the multi-bit data. It should also be noted that when transmitting pressure values using multi-bit data transmission, the number of bits is generally 12 bits or more, while when transmitting status values using multi-bit data transmission, fewer bits are used, resulting in a smaller data volume and reducing the time spent transmitting status values.
[0042] S202, when the state value represents the pressure generated by the touch operation, respond to the touch operation based on the preset pressure value and the coordinate information of the active pen.
[0043] The preset pressure value can be determined based on the pressure values corresponding to historical touch operations. For example, the average pressure value corresponding to historical touch operations can be determined as the preset pressure value, or the maximum pressure value in historical touch operations can be determined as the preset pressure value.
[0044] In this embodiment, as an optional implementation, the electronic device can determine the coordinate information of the active pen based on the position of the signal emitted by the active pen. Furthermore, if the electronic device determines that the state value sent by the active pen represents pressure generated by a touch operation between the active pen and the touchscreen, the electronic device can respond to the touch operation between the active pen and the touchscreen of the electronic device based on a system-preset pressure value and the coordinate information of the active pen.
[0045] As an alternative implementation, if the electronic device determines that the state value sent by the active pen indicates that no pressure was generated during the touch operation between the active pen and the touch screen, it can stop responding to the touch operation.
[0046] Understandably, in this embodiment, the electronic device responds to touch operations based on a preset pressure value and the coordinate information of the active pen, provided that pressure is generated during the touch operation between the active pen and the touchscreen. This avoids erroneous responses from the electronic device to touch operations that occur without generating pressure, thus ensuring the accuracy of the electronic device's touch operation response. For example, if the active pen accidentally touches the touchscreen, a touch operation occurs, but no pressure is generated. If the electronic device responds to this touch operation based on a preset pressure value and the coordinate information of the active pen, it will result in an erroneous response from the electronic device to this accidental touch.
[0047] In the above-mentioned touch operation response method, when a touch operation occurs between the active pen and the touch screen of the electronic device, the state value sent by the active pen received by the electronic device can characterize whether the touch operation generates pressure. Thus, when the state value indicates that the touch operation generates pressure, the electronic device can respond to the touch operation between the active pen and the touch screen based on a preset pressure value and the coordinate information of the active pen. This enables the electronic device to respond to the touch operation in a timely manner, without having to respond to the touch operation only after receiving the pressure value corresponding to the touch operation sent by the active pen, thereby reducing the response latency of the electronic device to the touch operation of the active pen.
[0048] When a touch operation occurs between the active pen and the touchscreen, the pressure sensor of the active pen detects the pressure value of the touch operation and then transmits the pressure value of the touch operation to the electronic device via Bluetooth. In an exemplary embodiment, the above method further includes:
[0049] Step A: Upon receiving the actual pressure value sent by the active pen via Bluetooth transmission, respond to the touch operation based on the actual pressure value and the coordinate information of the active pen.
[0050] In this embodiment, when pressure is applied during a touch operation between the stylus and the touchscreen, if the electronic device does not receive the actual pressure value transmitted by the stylus via Bluetooth, it responds to the touch operation based on the preset pressure value and the coordinate information of the stylus. If the electronic device receives the actual pressure value transmitted by the stylus via Bluetooth, it responds to the touch operation based on the actual pressure value and the coordinate information of the stylus. This avoids the problems of missed points during rapid clicks and loss of the starting trajectory during rapid writing and drawing. Furthermore, upon receiving the actual pressure value, it can respond to the touch operation relatively accurately based on the actual pressure value and the coordinate information of the stylus.
[0051] In this embodiment, when the actual pressure value sent by the active pen is received via Bluetooth transmission, the touch operation between the active pen and the touch screen can be responded to more accurately based on the actual pressure value and the coordinate information of the active pen, thus ensuring the accuracy of the electronic device's response to touch operation.
[0052] In some scenarios, electronic devices can also periodically send uplink signals to achieve rapid wake-up and accurate detection of the active pen. In an exemplary embodiment, such as Figure 3 As shown, the above method also includes:
[0053] S301 sends an uplink signal to the active pen.
[0054] For example, the electronic device can periodically send uplink signals for rapid wake-up and accurate detection of the active pen. As an optional implementation, the electronic device can periodically send the uplink signal according to a preset transmission cycle. For instance, the preset transmission cycle can be consistent with the screen refresh rate of the electronic device, achieving high-precision synchronous communication between the active pen and the touchscreen through timing alignment, ultimately ensuring low latency and accuracy in position positioning and pressure data transmission.
[0055] S302 receives downlink signals sent by the active pen based on uplink signals.
[0056] S303 determines the coordinate information of the active pen based on the receiving location information of the downlink signal.
[0057] In this embodiment, after receiving an uplink signal from the electronic device, the active pen can send a downlink signal to the electronic device based on the uplink signal. Furthermore, after receiving the downlink signal, the electronic device can determine the coordinate information of the active pen based on the receiving location information of the downlink signal. For example, the coordinate information of the receiving location of the downlink signal can be used as the coordinate information of the active pen.
[0058] Alternatively, as an optional implementation, the aforementioned status value can be carried in the downlink signal sent by the active pen, or it can be carried in the acknowledgment (ACK) signal of the active pen to the aforementioned uplink signal, further reducing the active pen's time overhead and having a smaller impact on the reporting rate. At the same time, it can also save the signaling overhead between the active pen and the electronic device.
[0059] In this embodiment, the electronic device sends an uplink signal to the active pen, enabling rapid wake-up and accurate detection of the active pen. In addition, the active pen can send a downlink signal based on the uplink signal. After receiving the downlink signal sent by the active pen, the electronic device can quickly and accurately determine the coordinate information of the active pen based on the receiving location information of the downlink signal, ensuring the accuracy and efficiency of determining the coordinate information of the active pen.
[0060] In one exemplary embodiment, a method for responding to a touch operation is provided, wherein the method is applied to Figure 1 Taking the active pen in the example, the explanation includes the following steps:
[0061] Step B involves sending a state value to the electronic device that indicates whether the touch operation between the active pen and the touch screen of the electronic device generates pressure. This allows the electronic device to respond to the touch operation based on a preset pressure value and the coordinate information of the active pen when the state value indicates that the touch operation between the active pen and the touch screen of the electronic device generates pressure.
[0062] In this embodiment, when the electronic device and the active pen are close to each other, the electronic device can interact with the active pen and establish a communication connection. For example, a communication connection between the electronic device and the active pen can be established through interaction methods such as Bluetooth pairing, magnetic pairing, and electromagnetic resonance.
[0063] Subsequently, when the active pen comes into contact with the touch screen of the electronic device, the pressure sensor in the active pen can detect whether the touch operation between the active pen and the touch screen generates pressure. Based on the detection result, a state value characterizing whether the touch operation between the active pen and the touch screen generates pressure can be generated, and the state value can be sent to the electronic device through the communication connection between the active pen and the electronic device.
[0064] Understandably, this state value can indicate whether the touch operation between the stylus and the touchscreen generates pressure, or it can indicate whether the touch operation generates no pressure. For example, if the stylus accidentally touches the touchscreen, the corresponding touch operation will not generate pressure.
[0065] For example, in this embodiment, the aforementioned state value can be transmitted using multiple bits, meaning the state value received by the electronic device includes multiple bits of data. For instance, an 8-bit data transmission method can be used for the state value. When the multi-bit data received by the electronic device is 11111111, it can be determined that the received state value represents pressure applied during a touch operation between the stylus and the touchscreen of the electronic device. When the multi-bit data received by the electronic device is 00000000, it can be determined that the received state value represents no pressure applied during a touch operation between the stylus and the touchscreen of the electronic device. Furthermore, as an optional implementation, during the process of the active pen sending status values to the electronic device, the multi-bit data may be interfered with. If the electronic device receives the multi-bit data as 11010111, it can still be determined that the received status value represents pressure generated during the touch operation between the active pen and the touch screen of the electronic device. If the electronic device receives the multi-bit data as 00000100, it can still be determined that the received status value represents no pressure generated during the touch operation between the active pen and the touch screen of the electronic device. That is, even if a small number of bits in the multi-bit data are interfered with and change, it will not affect the overall data validity of the multi-bit data. In other words, when using multi-bit data transmission of status values, the combination of multiple bits represents a single status value. Compared with single-bit data transmission, this reduces the impact of single-bit data errors on the overall data validity and has stronger anti-interference capabilities. Furthermore, it's understandable that using multi-bit data transmission status values, compared to using multi-bit data transmission pressure values, can reduce the impact of interference on the overall data validity. For example, if a single bit of data is interfered with when transmitting pressure values using multi-bit data transmission, it will affect the accuracy of the transmitted pressure value. However, if a single bit of data is interfered with when transmitting status values using multi-bit data transmission, the status value represented by the multi-bit data will not change, thus not affecting the accuracy of the status value represented by the multi-bit data. It should also be noted that when transmitting pressure values using multi-bit data transmission, the number of bits is generally 12 bits or more, while when transmitting status values using multi-bit data transmission, fewer bits are used, resulting in a smaller data volume and reducing the time spent transmitting status values.
[0066] In this embodiment, as an optional implementation, the electronic device can determine the coordinate information of the active pen based on the position of the signal emitted by the active pen. Further, when the electronic device determines that the state value sent by the active pen represents pressure generated by a touch operation between the active pen and the touchscreen, the electronic device can respond to the touch operation between the active pen and the touchscreen of the electronic device based on a system-preset pressure value and the coordinate information of the active pen. The preset pressure value can be determined based on the pressure values corresponding to historical touch operations. For example, the average pressure value corresponding to historical touch operations can be used as the preset pressure value, or the maximum pressure value in historical touch operations can be used as the preset pressure value.
[0067] As an alternative implementation, if the electronic device determines that the state value sent by the active pen indicates that no pressure was generated during the touch operation between the active pen and the touch screen, it can stop responding to the touch operation.
[0068] Understandably, in this embodiment, the electronic device responds to touch operations based on a preset pressure value and the coordinate information of the active pen, provided that pressure is generated during the touch operation between the active pen and the touchscreen. This avoids erroneous responses from the electronic device to touch operations that occur without generating pressure, thus ensuring the accuracy of the electronic device's touch operation response. For example, if the active pen accidentally touches the touchscreen, a touch operation occurs, but no pressure is generated. If the electronic device responds to this touch operation based on a preset pressure value and the coordinate information of the active pen, it will result in an erroneous response from the electronic device to this accidental touch.
[0069] Meanwhile, when the active pen detects pressure generated by the touch operation between the active pen and the touch screen through the pressure sensor, the active pen can also send the actual pressure value of the touch operation to the electronic device via Bluetooth transmission. When the electronic device receives the actual pressure value sent by the active pen via Bluetooth transmission, it will respond to the touch operation based on the actual pressure value and the coordinate information of the active pen.
[0070] In the above-mentioned touch operation response method, when a touch operation occurs between the active pen and the touch screen of the electronic device, the active pen can send a state value to the electronic device that represents whether the touch operation generates pressure. This allows the electronic device to respond to the touch operation between the active pen and the touch screen based on a preset pressure value and the coordinate information of the active pen when the state value indicates that the touch operation generates pressure. This enables the electronic device to respond to the touch operation in a timely manner, without having to wait until the electronic device receives the pressure value corresponding to the touch operation sent by the active pen before responding to the touch operation, thus reducing the response latency of the electronic device to the touch operation of the active pen.
[0071] The following will combine Figure 4 and Figure 5 The touch operation response method provided in the embodiments of this application will be explained and described. Figure 4 This invention illustrates a schematic diagram of signal transmission between the active pen and the electronic device in an embodiment of this application. Figure 5 A schematic diagram illustrating the improved effect of the touch operation response method provided in the embodiments of this application is shown. Figure 4 As shown, the touch operation response method provided in this application embodiment uses dual-channel data transmission. When a touch operation occurs between the active pen and the touch screen of the electronic device, the active pen transmits a status value representing whether pressure was generated during the touch operation to the electronic device through the transmission channel. Compared to transmitting pressure values (12 bits or more), transmitting status values involves much less data and takes less time. Moreover, using multi-bit data transmission of status values provides stronger anti-interference capabilities compared to transmitting specific pressure values. Additionally, the active pen transmits the actual pressure value of the touch operation to the electronic device through the transmission channel. Figure 5 As shown, through the aforementioned dual-channel data transmission, the active pen contacts the touchscreen of the electronic device. After sensing pressure, the active pen transmits a status value in either the confirmation signal or the downlink signal sent by the electronic device to the touch IC. When the touch IC determines that the status value represents pressure generated by the touch operation, it reports the pen coordinates and a preset fixed pressure value to the system. If the system does not receive the actual pressure value transmitted via Bluetooth, it responds to the touch operation using the reported preset pressure value and the coordinate information of the active pen. This overcomes the problem of missed points during rapid clicks and loss of the starting trajectory during rapid writing and drawing caused by the latency of Bluetooth pressure data transmission, thus avoiding... Figure 5 The dotted line shown indicates the issue of lost trajectory lines. This solution addresses both the high latency of Bluetooth pressure data transmission and the susceptibility to interference when directly transmitting pressure data to the touch IC. This approach significantly improves the user experience of the active pen.
[0072] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.
[0073] Based on the same inventive concept, this application also provides a touch operation response device for implementing the touch operation response method described above. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations of one or more touch operation response device embodiments provided below can be found in the limitations of the touch operation response method described above, and will not be repeated here.
[0074] In one exemplary embodiment, such as Figure 6 As shown, a touch operation response device is provided, applied to an electronic device, including: a first receiving module and a response module, wherein:
[0075] The first receiving module is used to receive the status value sent by the active pen; the status value is used to characterize whether the touch operation between the active pen and the touch screen of the electronic device generates pressure.
[0076] The response module is used to respond to touch operations based on preset pressure values and the coordinate information of the active pen when the state value represents the pressure generated by the touch operation.
[0077] In one embodiment, the response module is further configured to respond to the touch operation based on the actual pressure value and the coordinate information of the active pen when the actual pressure value sent by the active pen is received via Bluetooth transmission.
[0078] In one embodiment, the above apparatus further includes: a transmitting module, a second receiving module, and a determining module, wherein:
[0079] The transmitting module is used to send uplink signals to the active pen.
[0080] The second receiving module is used to receive the downlink signal sent by the active pen based on the uplink signal.
[0081] The determination module is used to determine the coordinate information of the active pen based on the received location information of the downlink signal.
[0082] In one embodiment, the aforementioned status value is carried in the downlink signal, or in the acknowledgment signal of the uplink signal.
[0083] In one embodiment, the aforementioned state value includes multiple bits of data.
[0084] In one embodiment, the response module is further configured to stop responding to touch operations when the state value indicates that the touch operation has not generated pressure.
[0085] In one exemplary embodiment, such as Figure 7 As shown, a touch operation response device is provided for use with an active pen, comprising: a sending module, wherein:
[0086] The sending module is used to send a status value to the electronic device, indicating whether the touch operation between the active pen and the touch screen of the electronic device generates pressure, so that the electronic device can respond to the touch operation based on a preset pressure value and the coordinate information of the active pen when the status value indicates that the touch operation between the active pen and the touch screen of the electronic device generates pressure.
[0087] In one embodiment, the aforementioned sending module is further configured to send the actual pressure value to the electronic device via Bluetooth transmission.
[0088] Each module in the aforementioned touch operation response device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0089] In one exemplary embodiment, a computer device is provided, which may be an electronic device or an active pen, and its internal structure diagram may be as follows: Figure 8As shown, the computer device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a touch operation response method. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, a trackball, or a touchpad located on the casing of the computer device, or an external keyboard, touchpad, or mouse. Additionally, if the computer device uses an active pen, it may also include a pressure sensor.
[0090] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0091] In one exemplary embodiment, an electronic device is provided, including a transceiver, a memory, and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0092] Receive the status value sent by the active pen; the status value is used to characterize whether the touch operation between the active pen and the touch screen of the electronic device generates pressure;
[0093] When the state value represents the pressure generated by the touch operation, the touch operation is responded to based on the preset pressure value and the coordinate information of the active pen.
[0094] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0095] Upon receiving the actual pressure value sent by the active pen via Bluetooth transmission, the system responds to touch operations based on the actual pressure value and the coordinate information of the active pen.
[0096] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0097] Send an uplink signal to the active pen;
[0098] Receive downlink signals sent by the active pen based on uplink signals;
[0099] Based on the receiving location information of the downlink signal, the coordinate information of the active pen is determined.
[0100] In one embodiment, the aforementioned status value may optionally be carried in the downlink signal or in the acknowledgment signal of the uplink signal.
[0101] In one embodiment, optionally, the aforementioned state value includes multiple bits of data.
[0102] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0103] If the state value indicates that no pressure was applied during the touch operation, the system will stop responding to touch operations.
[0104] In one exemplary embodiment, an active pen is provided, including a pressure sensor, a transceiver, a memory, and a processor. The memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0105] The control transceiver sends a status value to the electronic device, indicating whether the touch operation between the active pen and the touch screen of the electronic device generates pressure. This enables the electronic device to respond to the touch operation based on a preset pressure value and the coordinate information of the active pen when the status value indicates that the touch operation between the active pen and the touch screen of the electronic device generates pressure.
[0106] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0107] The transceiver controls the transmission of actual pressure values to the electronic device via Bluetooth.
[0108] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the above-described method.
[0109] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the methods described above.
[0110] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0111] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0112] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for responding to touch operations, characterized in that, The method is applied to an electronic device, and comprises: receiving a state value sent by a stylus; the state value is used to represent whether a touch operation between the stylus and a touch screen of the electronic device generates pressure; in a case where the state value represents that the touch operation generates pressure, responding to the touch operation based on a preset pressure value and coordinate information of the stylus.
2. The method of claim 1, wherein, The method further comprises: in a case where an actual pressure value sent by the stylus is received through Bluetooth transmission, responding to the touch operation based on the actual pressure value and the coordinate information of the stylus.
3. The method according to claim 1 or 2, characterized in that, The method further comprises: sending an uplink signal to the stylus; receiving a downlink signal sent by the stylus based on the uplink signal; determining the coordinate information of the stylus based on position information of a receiving position of the downlink signal.
4. The method of claim 3, wherein, The state value is carried in the downlink signal or a confirmation signal of the uplink signal.
5. The method of claim 1, wherein, The state value comprises a plurality of bit data.
6. The method of claim 1, wherein, The method further comprises: in a case where the state value represents that the touch operation does not generate pressure, stopping responding to the touch operation.
7. A response method of a touch operation, characterized by, The method is applied to a stylus, and comprises: sending, to an electronic device, a state value representing whether a touch operation between the stylus and a touch screen of the electronic device generates pressure, so that the electronic device, in a case where the state value represents that the touch operation between the stylus and the touch screen of the electronic device generates pressure, responds to the touch operation based on a preset pressure value and coordinate information of the stylus.
8. The method of claim 7, wherein, The method further comprises: sending, to the electronic device, an actual pressure value through Bluetooth transmission between the stylus and the electronic device.
9. A response device for touch operation, characterized by The device is applied to an electronic device, and comprises: a first receiving module configured to receive a state value sent by a stylus; the state value is used to represent whether a touch operation between the stylus and a touch screen of the electronic device generates pressure; a responding module configured to, in a case where the state value represents that the touch operation generates pressure, respond to the touch operation based on a preset pressure value and coordinate information of the stylus.
10. A response device for touch operation, characterized by The device is applied to a stylus, and comprises: a sending module configured to send, to an electronic device, a state value representing whether a touch operation between the stylus and a touch screen of the electronic device generates pressure, so that the electronic device, in a case where the state value represents that the touch operation between the stylus and the touch screen of the electronic device generates pressure, responds to the touch operation based on a preset pressure value and coordinate information of the stylus. 11.An electronic device comprising a transceiver, a memory, and a processor, the memory storing a computer program, wherein, The processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
12. An active pen comprising a pressure sensor, a transceiver, a memory, and a processor, the memory storing a computer program, wherein, The processor implements the steps of the method of any one of claims 7 to 8 when executing the computer program.
13. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program, when executed by a processor, implements the steps of the method of any one of claims 1 to 8.
14. A computer program product comprising a computer program, characterized in that, The computer program, when executed by a processor, implements the steps of the method of any one of claims 1 to 8.
