Anti-mis-touch method and device, electronic equipment and medium

CN115437520BActive Publication Date: 2026-10-09VIVO MOBILE COMM CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211130191.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-16
Publication Date
2026-10-09
Estimated Expiration
2042-09-16

AI Technical Summary

Technical Problem

[0005]本申请实施例的目的是提供一种防误触方法、电子设备及介质,能够解决导致电子设备对用户的误触的识别率较低的问题

Benefits of technology

[0012] In this embodiment, the electronic device, after establishing a wireless connection with the stylus, can acquire first pressure information detected by the stylus, determine a first target operating mode of the stylus based on the first pressure information, and execute the anti-mistouch function of the electronic device according to the anti-mistouch mode corresponding to the first target operating mode. Since the electronic device can determine the first target operating mode of the stylus based on the first pressure information acquired by the stylus, rather than determining whether to activate the anti-mistouch function based on whether the display screen detects the stylus tip, it can avoid accidental touches when the display screen does not detect the stylus tip, thereby reducing erroneous operations by the electronic device and improving the recognition rate of user accidental touches.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115437520B_ABST
    Figure CN115437520B_ABST
Patent Text Reader

Abstract

The application discloses a false touch prevention method and device, electronic equipment and a medium, and belongs to the technical field of electronics. In a case where a wireless connection is established with a stylus, first pressure information detected by the stylus is acquired; a first target working mode of the stylus is determined according to the first pressure information; and a false touch prevention function of the electronic equipment is executed in a false touch prevention mode corresponding to the first target working mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of electronic technology, specifically relating to a method, device, electronic device, and medium for preventing accidental touches. Background Technology

[0002] Typically, when a user uses a stylus to input on the screen of an electronic device, if the electronic device detects the stylus tip, it can activate the screen's anti-accidental touch function when the distance between the stylus tip and the screen is less than a preset distance, in order to reduce the chance of the user accidentally touching the screen.

[0003] However, since electronic devices can only detect the stylus tip when it is close to the display screen, there is a possibility that the user's hand may accidentally touch the display screen when the electronic device does not detect the stylus tip, which may lead to the electronic device performing erroneous operations.

[0004] This results in electronic devices having a low rate of recognizing accidental touches from users. Summary of the Invention

[0005] The purpose of this application is to provide a method, electronic device, and medium for preventing accidental touches, which can solve the problem of low recognition rate of accidental touches by electronic devices.

[0006] In a first aspect, embodiments of this application provide a method for preventing accidental touches, the method comprising: acquiring first pressure information detected by the stylus when a wireless connection is established with the stylus; determining a first target operating mode of the stylus based on the first pressure information; and executing the anti-accidental touch function of the electronic device according to an anti-accidental touch mode corresponding to the first target operating mode.

[0007] Secondly, embodiments of this application provide an anti-mistouch device, which includes: an acquisition module, a determination module, and a processing module; the acquisition module is used to acquire first pressure information detected by the stylus when a wireless connection is established with the stylus; the determination module is used to determine a first target working mode of the stylus based on the first pressure information acquired by the acquisition module; and the processing module is used to execute the anti-mistouch function of the electronic device according to the anti-mistouch mode corresponding to the first target working mode determined by the determination module.

[0008] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions implementing the steps of the method as described in the first aspect when executed by the processor.

[0009] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, and when the program or instructions are executed by a processor, they implement the steps of the method as described in the first aspect.

[0010] Fifthly, embodiments of this application provide a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method as described in the first aspect.

[0011] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method as described in the first aspect.

[0012] In this embodiment, the electronic device, after establishing a wireless connection with the stylus, can acquire first pressure information detected by the stylus, determine a first target operating mode of the stylus based on the first pressure information, and execute the anti-mistouch function of the electronic device according to the anti-mistouch mode corresponding to the first target operating mode. Since the electronic device can determine the first target operating mode of the stylus based on the first pressure information acquired by the stylus, rather than determining whether to activate the anti-mistouch function based on whether the display screen detects the stylus tip, it can avoid accidental touches when the display screen does not detect the stylus tip, thereby reducing erroneous operations by the electronic device and improving the recognition rate of user accidental touches. Attached Figure Description

[0013] Figure 1 This is one of the flowcharts illustrating a message display method provided in an embodiment of this application;

[0014] Figure 2 This is one of the schematic diagrams illustrating the trend of pressure information obtained by an electronic device from a stylus, provided in an embodiment of this application.

[0015] Figure 3 This is one of the schematic diagrams illustrating a mobile phone interface provided in an embodiment of this application;

[0016] Figure 4 This is a second flowchart illustrating a message display method provided in an embodiment of this application;

[0017] Figure 5 This is a schematic diagram of the structure of an anti-accidental touch device provided in an embodiment of this application;

[0018] Figure 6 This is one of the hardware structure diagrams of an electronic device provided in the embodiments of this application;

[0019] Figure 7This is a second schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0020] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0021] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0022] The method for preventing accidental touches provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0023] Typically, when a user uses a stylus to input on an electronic device's screen, if the electronic device detects the stylus tip, it can activate the screen's anti-mistouch function when the distance between the stylus tip and the screen is less than a preset distance, thus reducing the chance of accidental touches by the user's hand. However, since the electronic device can only detect the stylus tip when it is very close to the screen, there is a possibility that the user's hand might accidentally touch the screen even when the electronic device has not detected the stylus tip. Therefore, the recognition rate of accidental touches by the electronic device is relatively low.

[0024] In this embodiment, the electronic device, after establishing a wireless connection with the stylus, can acquire first pressure information detected by the stylus and determine a first operating mode of the stylus based on the first pressure information. Then, it executes the anti-mistouch function of the electronic device according to the anti-mistouch mode corresponding to the first target operating mode. Since the electronic device can determine the first target operating mode of the stylus based on the first pressure information from the user pressing the stylus, rather than determining whether to activate the anti-mistouch function based on whether the display screen detects the stylus tip, it can avoid accidental touches when the display screen does not detect the stylus tip, thereby reducing erroneous operations by the electronic device and improving the recognition rate of user accidental touches.

[0025] The entity executing the accidental touch prevention method provided in this application is an accidental touch prevention device. This device can be an electronic device, or a control unit or module within that electronic device; this application does not limit this. The technical solution provided in this application will be described below using an electronic device as an example.

[0026] This application provides a method for preventing accidental touches. Figure 1 A flowchart illustrating an embodiment of the present application provides a method for preventing accidental touches, which can be applied to electronic devices. Figure 1 As shown, the method for preventing accidental touches provided in this application embodiment may include the following steps 201 to 203.

[0027] Step 201: With a wireless connection established with the stylus, acquire the first pressure information detected by the stylus.

[0028] Optionally, in this embodiment of the application, the first pressure information mentioned above can be the pressure information detected by a pressure sensor located on the stylus body.

[0029] For example, the wireless connection mentioned above can be any of the following: Bluetooth connection, Wireless-Fidelity (Wi-Fi) connection, local area network connection, etc.

[0030] Optionally, in this embodiment of the application, the first pressure information may include one or more pressure information obtained in real time by the electronic device from the stylus tip.

[0031] For example, the first pressure information mentioned above can be a pressure value greater than or equal to 0.

[0032] Step 202: Determine the first target working mode of the stylus based on the first pressure information.

[0033] Optionally, in this embodiment of the application, the first target working mode can be the current working state of the stylus.

[0034] Further optionally, in the embodiments of this application, the first target working mode can be any of the following: idle mode, pen-holding mode, pen-gripping mode after holding the pen, pen-dropping mode, writing mode, pen-lifting mode, pen-gripping mode after lifting the pen, pen-releasing mode, etc.

[0035] The following examples illustrate the working modes that may occur when a user writes with a stylus.

[0036] For example, the idle mode described above is used to indicate the stationary state of the stylus when the user is not touching it. For instance, the idle mode could indicate that the stylus is currently in a magnetic state or a charging state.

[0037] For example, the above-described pen-holding mode is used to indicate the state of the stylus before it touches the display screen when the user picks it up.

[0038] For example, the above-mentioned pen-holding mode is used to indicate the pen-holding state when the user picks up the stylus and holds it in their hand, before the stylus touches the display screen.

[0039] For example, the above-described pen-writing mode is used to indicate the state of the stylus as it moves toward the display screen during the user's use of the stylus.

[0040] For example, the above writing mode is used to indicate the state when the stylus is in contact with the display screen while the user is writing with the stylus.

[0041] For example, the above-mentioned pen-lifting mode is used to indicate the state of the stylus when the user lifts the stylus after writing or pausing.

[0042] For example, the above-mentioned pen-holding mode after lifting the pen is used to indicate the state of the pen before it touches the display screen when the user lifts the pen and holds it in their hand.

[0043] For example, the above-mentioned pen-dropping mode is used to indicate the state of the stylus when the user puts it down after writing with the stylus.

[0044] The following example illustrates how to determine the first target working mode of a stylus based on the first pressure information received by the stylus.

[0045] Optionally, in the embodiments of this application, step 202 can be implemented by steps 202a and 202b as described below.

[0046] Step 202a: The electronic device determines the target preset pressure range corresponding to the first pressure information from N preset pressure ranges.

[0047] Each preset pressure range corresponds to at least one first working mode, and N is a positive integer.

[0048] Optionally, in this embodiment of the application, the above-mentioned N preset pressure ranges can be pre-stored by the electronic device or can be set by the user in advance according to their needs.

[0049] For example, the above-mentioned at least one preset pressure value range can be at least one of the following: [0, g1], [g1, g2], [g2, g3], [g3, g4], [g4, Max], etc.

[0050] Among them, g1, g2, g3, and g4 are used to indicate different pressure thresholds, which can be set according to actual needs, and Max is used to indicate the maximum pressure value that the stylus can detect.

[0051] Optionally, in this application, the aforementioned target preset pressure range can specifically be the pressure range where the first pressure information is located. Here, "the pressure range where the first pressure information is located" can be understood as: the first pressure information is less than the maximum critical value of the target preset pressure range, and greater than the minimum critical value of the target preset pressure range.

[0052] It should be noted that each of the N preset pressure ranges mentioned above can correspond to one or more working modes.

[0053] For example, suppose the N preset pressure ranges in the electronic device are: [0, g1], [g1, g2], [g2, g3], [g3, g4], [g4, Max]. Here, [0, g1] corresponds to one working mode, i.e., idle mode. [g1, g2] corresponds to two working modes, i.e., pen-holding mode or pen-releasing mode. [g2, g3] corresponds to two working modes, i.e., pen-gripping mode after picking up the pen or pen-gripping mode after lifting the pen. [g3, g4] corresponds to two working modes, i.e., pen-dropping mode or pen-lifting mode. [g4, Max] corresponds to one working mode, i.e., writing mode. If the first pressure information is maintained within [0, g1], then [0, g1] is determined as the target preset pressure range corresponding to the first pressure information. If the first pressure information is maintained within [g1, g2], then [g1, g2] is determined as the target preset pressure range corresponding to the first pressure information. If the first pressure information remains within [g2, g3], then [g2, g3] is determined as the target preset pressure range corresponding to the first pressure information. If the first pressure information remains within [g3, g4], then [g3, g4] is determined as the target preset pressure range corresponding to the first pressure information. If the first pressure information remains within [g4, Max], then [g4, Max] is determined as the target preset pressure range corresponding to the first pressure information.

[0054] Step 202b: The electronic device determines the first target working mode according to the first working mode corresponding to the target preset pressure range.

[0055] For example, when the aforementioned target preset pressure range corresponds to a working mode, then that working mode is determined as the first target working mode.

[0056] For example, suppose the first pressure information is that the electronic device obtains 5 pressure values ​​from the stylus within 200ms, and the first pressure information is maintained within [0, g1]. Then the electronic device can determine the first working mode (i.e., idle mode) corresponding to [0, g1] as the first target working mode.

[0057] For example, when the aforementioned target preset pressure range corresponds to two operating modes, the first target operating mode needs to be determined based on the changing trend corresponding to the first pressure information. Specifically, the aforementioned changing trend can be an increasing trend or a decreasing trend.

[0058] For example, such as Figure 2 As shown, assuming the first pressure information is the pressure detected by the stylus during the time period 0-t1, and this first pressure information remains within [0, g1], the electronic device can determine that the first target working mode of the stylus is the idle mode. Assuming the first pressure information is the pressure detected by the stylus during the time period t2-t3, and this first pressure information remains within [g1, g2], and the trend of the first pressure information is increasing, the electronic device can determine that the first target working mode of the stylus is the pen-holding mode. Assuming the first pressure information is the pressure detected by the stylus during the time period t3-t4, and this first pressure information remains within [g2, g3], and the previous working mode was the pen-holding mode, then the first target working mode of the stylus is determined to be the pen-grip mode after holding the pen. Assuming the first pressure information is the pressure detected by the stylus during the time period t3-t4, and this first pressure information remains within [g3, g4], and the trend of the first pressure information is increasing, the electronic device can determine that the first target working mode of the stylus is the pen-dropping mode. Assuming the first pressure information is the pressure detected by the stylus during the time period t4-t5, and this first pressure information remains within [g4, max], the electronic device can determine that the first target working mode of the stylus is writing mode. Assuming the first pressure information is the pressure detected by the stylus during the time period t5-t6, and this first pressure information remains within [g3, g4], and the trend of the first pressure information is decreasing, the electronic device can determine that the first target working mode of the stylus is lifting mode. Assuming the first pressure information is the pressure detected by the stylus during the time period t6-t7, and this first pressure information remains within [g2, g3], and the previous working mode was lifting mode, the electronic device can determine that the first target working mode of the stylus is the pen-holding mode after lifting. Assuming the first pressure information is the pressure detected by the stylus during the time period t7-t8, and this first pressure information remains within [g1, g2], and the trend of the first pressure information is decreasing, the electronic device can determine that the first target working mode of the stylus is releasing mode.

[0059] Step 203: Execute the anti-accidental touch function of the electronic device according to the anti-accidental touch mode corresponding to the first target working mode.

[0060] Optionally, in this embodiment of the application, when the first target working mode is any one of the idle mode, pen-holding mode, or pen-release mode, the electronic device activates the anti-mistouch mode corresponding to the first target working mode, i.e., the normal finger anti-mistouch mode. If the electronic device receives touch input from the user's target part on the electronic device, it stops responding to the touch input from the user's target part if the touch input meets the first condition.

[0061] Specifically, the first condition includes at least one of the following: the touch area of ​​the touch input is greater than or equal to an area threshold; the touch sensing amount is less than or equal to a preset sensing threshold; the touch input is located in an edge area, and the touch input type is a preset input type.

[0062] Optionally, in this embodiment of the application, when the first target working mode is any one of the following working modes: pen grip mode, pen placement mode, pen lifting mode, or pen grip mode after lifting the pen, the electronic device activates the anti-mistouch mode corresponding to the first target working mode, namely the pen grip palm anti-mistouch mode, and performs the first operation.

[0063] Specifically, the first operation mentioned above includes at least one of the following: reducing the preset area threshold, increasing the preset sensing threshold, and increasing the area size of the edge region.

[0064] Optionally, in this embodiment of the application, when the first target working mode is writing mode, the electronic device activates the anti-mistouch mode corresponding to the first target working mode, that is, the absolute anti-mistouch mode, and stops responding to the user's touch input on the target part of the electronic device.

[0065] In this embodiment, the aforementioned anti-accidental touch function is used to instruct the electronic device to prevent accidental touches caused by the user's body parts touching the screen when it is wirelessly connected to the stylus. The user's body parts can be any of the following: fingers, palms, nails, arms, toes, elbows, wrists, etc.

[0066] The anti-mistouch method provided in this application embodiment allows the electronic device to acquire first pressure information detected by the stylus when a wireless connection is established with it. Based on this first pressure information, the electronic device determines a first target operating mode for the stylus and executes its anti-mistouch function according to the anti-mistouch mode corresponding to the first target operating mode. Since the electronic device determines the stylus's current operating mode based on the first pressure information from the user pressing the stylus, rather than determining whether to activate the anti-mistouch function based on whether the display screen detects the stylus tip, it avoids accidental touches when the display screen does not detect the stylus tip, thereby reducing erroneous operations by the electronic device and improving its recognition rate of user mis-touches.

[0067] The following will provide examples of several operating modes corresponding to the target preset pressure range.

[0068] Optionally, in this embodiment of the application, when the above-mentioned target preset pressure range corresponds to at least two first working modes, the at least two first working modes include: a second working mode and a third working mode, and the above-mentioned step 202b can be specifically implemented by the following steps 202b1 to 202b3.

[0069] Step 202b1: The electronic device acquires the pressure change trend of the first pressure information.

[0070] Optionally, in this embodiment of the application, the aforementioned pressure change trend is specifically used to indicate the change trend between pressure information in the first pressure information.

[0071] Further, optionally, in the embodiments of this application, the above-mentioned trend of change can be an increasing trend or a decreasing trend.

[0072] Step 202b2: When the electronic device shows an increasing trend in its operating mode, the second operating mode is set as the first target operating mode.

[0073] Optionally, in this embodiment of the application, the second working mode can be one of the two working modes corresponding to the preset pressure range of the target, and the change trend of the corresponding first pressure information is an increasing trend.

[0074] Further optionally, in the embodiments of this application, the above-mentioned second working mode can be any of the following: pen holding mode, pen gripping mode after holding the pen, pen placement mode, etc.

[0075] For example, suppose the first pressure information includes g1” and g2”, where g1” is the pressure information detected by the stylus at time t1 and g2” is the pressure information detected by the stylus at time t2, where Δt = t2 - t1 > 0. If g2” - g1” = Δg > 0, and the ratio f of the pressure difference Δg to the time period Δt is greater than 0 and less than 1, i.e., 0 < f < 1, then the trend of change corresponding to the first pressure information is an increasing trend.

[0076] Step 202b3: When the electronic device shows a decreasing trend, the third working mode is determined as the first target working mode.

[0077] Optionally, in this embodiment of the application, the third working mode can be one of the two working modes corresponding to the preset pressure range of the target, and the changing trend of the corresponding first pressure information is a decreasing trend.

[0078] Further optionally, in the embodiments of this application, the third working mode can be any of the following: pen lifting mode, pen holding mode after lifting the pen, pen putting mode, etc.

[0079] For example, suppose the first pressure information includes g1” and g2”, where g1” is the pressure information detected by the stylus at time t1 and g2” is the pressure information detected by the stylus at time t2, where Δt = t2 - t1 > 0. If g2” - g1” = Δg < 0, and the ratio f of the pressure difference Δg to the time period Δt is greater than -1 and less than 0, i.e. -1 < f < 0, then the trend of change corresponding to the first pressure information is a decreasing trend.

[0080] Thus, it can be seen that since the electronic device can determine the first target working mode from among the multiple first working modes according to the pressure change trend of the first pressure information, it can accurately determine the current working mode of the stylus based on the first pressure information obtained by the electronic device. In this way, the recognition rate of the electronic device for the user's accidental touch can be improved.

[0081] The following example illustrates how to adjust the critical value corresponding to the first preset pressure range based on the second pressure information.

[0082] Optionally, in the embodiments of this application, before step 202a above, the shooting method provided in the embodiments of this application may further include the following steps 301 to 303.

[0083] Step 301: When the electronic device detects that the second target working mode of the stylus is the fourth working mode, it acquires the second pressure information detected by the stylus.

[0084] For example, when a user triggers the electronic device to activate the threshold update mode of a preset pressure range, the electronic device can detect the second target working mode of the stylus, so as to obtain the second pressure information detected by the stylus if the second target working mode of the stylus is detected to be the fourth working mode.

[0085] Specifically, the electronic device can determine the second target operating mode of the stylus based on the instruction information sent by the stylus; and / or, the electronic device can determine the second target operating mode of the stylus based on the signal of the stylus contacting the display screen.

[0086] In this embodiment of the application, the second pressure information can be one or more pressure information that the electronic device obtains from the stylus in real time when the stylus is in the fourth working mode.

[0087] For example, the second pressure information mentioned above can be a pressure value greater than or equal to 0.

[0088] Specifically, the second pressure information may be different from or the same as the first pressure information.

[0089] Further optionally, in the embodiments of this application, the fourth working mode can be any of the following: idle mode, pen-holding mode, writing mode, etc.

[0090] Specifically, the aforementioned idle mode is used to indicate whether the stylus is in a charging state or a magnetically attached state.

[0091] When the stylus is in a charging or magnetic state, it can send a first indication to the electronic device. This first indication indicates that the stylus is in an idle state, so that the electronic device can determine that the stylus's second target operating mode is the idle mode.

[0092] Specifically, the above-mentioned pen grip mode is used to indicate the state of the stylus when it is not in a charging or magnetic state and the electronic device cannot detect the signal of the stylus contacting the display screen.

[0093] When the stylus is not in a charging or magnetic state, the stylus can send a second instruction to the electronic device. This second instruction indicates that the stylus is not in an idle state. At this time, the electronic device can determine whether a signal of contact between the stylus and the display screen is detected. If no signal of contact between the stylus and the display screen is detected, the electronic device can determine that the second target working mode of the stylus is the pen grip mode.

[0094] Specifically, the above writing mode is used to indicate the state of the stylus when it is not in a charging or magnetic state and when a contact signal between the stylus and the display screen can be detected.

[0095] The electronic device can determine whether a signal of contact between the stylus and the display screen is detected. If the signal of contact between the stylus and the display screen is detected, the electronic device can determine that the second target working mode of the stylus is writing mode.

[0096] Step 302: The electronic device determines the target pressure information based on the second pressure information.

[0097] Optionally, in this embodiment of the application, the electronic device can determine the target pressure information based on the second pressure information if the second pressure information meets the update conditions.

[0098] The update conditions may include at least one of the first update conditions and the second update conditions.

[0099] For example, the first update condition can be: the number of pressure information in the second pressure information that exceeds the critical value of the first preset pressure range is greater than or equal to a preset number. Here, the "critical value exceeding the first preset pressure range" can be either the minimum critical value less than the first preset pressure range or the maximum critical value greater than the first preset pressure range.

[0100] For example, the second update condition may be: the average value of the pressure information in the second pressure information exceeds the threshold value of the first preset pressure range.

[0101] Optionally, in this embodiment of the application, the electronic device can determine the maximum pressure information in the second pressure information as the target pressure information; or, the electronic device can determine the average value of the pressure information in the second pressure information as the target pressure information.

[0102] Step 303: The electronic device adjusts at least part of the critical value of the first preset pressure range corresponding to the fourth working mode according to the target pressure information.

[0103] Optionally, in this embodiment of the application, the first preset pressure range corresponds one-to-one with the fourth working mode.

[0104] Specifically, when the fourth working mode is the idle mode, the corresponding first preset pressure range is [0, g1].

[0105] Specifically, when the fourth working mode is the pen-holding mode, the corresponding first preset pressure range is [g2, g3].

[0106] Specifically, when the fourth working mode is the writing mode, the corresponding first preset pressure range is [g4, Max].

[0107] Optionally, in the embodiments of this application, at least some of the above-mentioned critical values ​​may be one critical value or two critical values.

[0108] For example, when the fourth working mode is the idle mode, the electronic device can adjust the maximum critical value of the first preset pressure range, i.e., the value of g1 in [0, g1], based on the target pressure information.

[0109] For example, when the fourth working mode is the pen-holding mode, the electronic device can adjust the minimum and / or maximum critical values ​​of the first preset pressure range based on the target pressure information, that is, the value of g2 and / or the value of g3 in [g2, g3].

[0110] For example, when the fourth working mode is writing mode, the electronic device can adjust the minimum critical value of the first preset pressure range, i.e., the value of g4 in [g4, Max], based on the target pressure information.

[0111] For example, if the electronic device determines that the stylus is currently in idle mode, and the maximum pressure value g1' in the second pressure information collected is greater than g1, and the duration of collecting g1' exceeds the preset time threshold t, then the maximum critical value g1 is updated to g1', that is, the first preset pressure range corresponding to the idle mode is updated from [0, g1] to [0, g1'].

[0112] For example, if the electronic device determines that the stylus is currently in the first grip mode, and the minimum pressure value g2' < g2 and the maximum pressure value g3' > g3 in the second pressure information collected, and the duration of collecting g2' and g3' exceeds the preset time threshold t, then the minimum critical value g2 and the maximum critical value g3 will be updated to g2' and g3', that is, the first preset pressure range corresponding to the grip mode will be updated from [g2, g3] to [g2', g3'].

[0113] For example, assuming the electronic device determines that the stylus is currently in writing mode, the average of all pressure values ​​less than the minimum threshold value g4 in the collected second pressure information is g4', and g4' < g4. Then the minimum threshold value g4 is updated to g4', that is, the first preset pressure range corresponding to the writing mode is updated from [g4,Max] to [g4',Max].

[0114] Optionally, in one possible implementation of this application embodiment, the electronic device can adjust the maximum critical value (or minimum critical value) of the first preset pressure range to the target pressure information.

[0115] Optionally, in another possible implementation of this application embodiment, the electronic device can adjust the maximum critical value of the first preset pressure range to the third pressure information, and adjust the minimum critical value of the first preset pressure range to the fourth pressure information. The third pressure information is the sum of the target pressure information and the preset pressure information, and the fourth pressure information is the difference between the target pressure information and the preset pressure information.

[0116] Thus, it can be seen that, since the electronic device can adjust the critical value of the first predetermined pressure range corresponding to the fourth working mode in a timely manner based on the acquired second pressure information in the fourth working mode of the stylus, the convenience of updating the critical value corresponding to the first preset pressure range of the stylus is improved.

[0117] The following example illustrates how an electronic device executes its anti-accidental touch function according to the anti-accidental touch mode corresponding to the first target operating mode.

[0118] Optionally, in the embodiments of this application, step 203 can be implemented by step 203a as described below.

[0119] Step 203a: When the electronic device is in the fifth working mode of the first target mode, if it receives touch input from the user's target part on the electronic device, it stops responding to touch input if the touch input meets the first condition.

[0120] The first condition includes at least one of the following: the touch area of ​​the touch input is greater than or equal to a preset area threshold, the touch sensing amount is less than or equal to a preset sensing threshold, the touch position of the touch input is located in the edge area, and the input type of the touch input is a preset input type.

[0121] For example, the aforementioned touch sensing quantity is: the amount of capacitance change at the position of the touch input when the aforementioned touch input is performed.

[0122] For example, different parts of the user's body correspond to different amounts of touch sensitivity when touching the display screen.

[0123] Optionally, in the embodiments of this application, the fifth working mode can be any of the following: idle mode, pen-holding mode, pen-releasing mode, etc.

[0124] Specifically, the fifth working mode mentioned above corresponds to the normal finger anti-accidental touch mode.

[0125] Optionally, in this embodiment of the application, the target part can be any part of the user's body. Specifically, the target part can be any of the following: fingers, palms, nails, arms, toes, elbows, wrists, etc.

[0126] For example, the above-mentioned stop responding to touch input is used to instruct the electronic device not to respond to touch input from a certain part of the user's body that meets the first condition.

[0127] For example, the preset input type can be any of the following: long press input, tap input, etc.

[0128] For example, assuming the electronic device determines that the stylus is in idle mode, if it detects touch input from the user's palm on the display screen, it determines whether the touch input meets a first condition. If the touch input meets at least one of the first conditions, such as the touch area of ​​the touch input being greater than or equal to a preset area threshold, it stops responding to the touch input. If the touch input does not meet at least one of the first conditions, it responds to the touch input.

[0129] For example, assuming the electronic device determines that the stylus is in pen-hold mode, if it detects touch input from a user's finger on the display screen, it determines whether the touch input meets a first condition. If the touch input meets at least one of the first conditions, such as the touch sensitivity of the finger being less than or equal to a preset sensing threshold, then the device stops responding to the touch input. If the touch input does not meet at least one of the first conditions, then the device responds to the touch input.

[0130] For example, such as Figure 3 As shown, assuming the shaded area is the edge region, then the edge width is x and the edge height is y, where x indicates the width on the left and right sides of the edge region, and y indicates the width above and below the edge region. If the electronic device detects a long press (touch input) by the user's palm on the edge region, and the long press duration is greater than or equal to a preset long press duration threshold of 200ms, then the long press will be suppressed (i.e., the touch input will be stopped).

[0131] Optionally, in the embodiments of this application, after step 203 above, the shooting method provided in the embodiments of this application may further include the following step 401.

[0132] Step 401: When the first target working mode is the sixth working mode, the electronic device performs the first operation.

[0133] The first operation includes at least one of the following: reducing the preset area threshold, increasing the preset sensing threshold, and increasing the area size of the edge region.

[0134] For example, the sixth working mode mentioned above can be any of the following: pen grip mode after picking up the pen, pen placement mode, pen lifting mode, and pen grip mode after lifting the pen.

[0135] Optionally, in the embodiments of this application, the sixth working mode described above is different from the fifth working mode described above.

[0136] Specifically, the anti-accidental touch mode corresponding to the sixth working mode mentioned above is the pen-holding palm anti-accidental touch mode.

[0137] For example, the aforementioned reduction of the preset area threshold can be based on reducing Δs according to the preset area threshold s; the aforementioned increase of the preset sensing threshold can be based on increasing Δd according to the preset sensing threshold d; the aforementioned increase of the area size of the edge region can be based on increasing Δx and Δy according to the preset edge width x and edge height y.

[0138] Thus, it can be seen that since electronic devices can adjust the preset threshold corresponding to the anti-accidental touch mode according to the first target working mode of the stylus being the sixth working mode, they can effectively prevent accidental touch events during the use of the stylus. Therefore, the recognition rate of accidental touches by electronic devices can be improved.

[0139] Optionally, in the embodiments of this application, step 203 above can be implemented by step 203c below.

[0140] Step 203c: When the first target working mode is the seventh working mode, the electronic device stops responding to the user's touch input on the target part of the electronic device.

[0141] Further optionally, in this embodiment of the application, the seventh working mode can be: writing mode.

[0142] Optionally, in the embodiments of this application, the seventh working mode is different from the fifth and sixth working modes.

[0143] Specifically, the anti-accidental touch mode corresponding to the seventh working mode mentioned above is the absolute anti-accidental touch mode.

[0144] It should be noted that when the electronic device detects that the first target working mode of the stylus is writing mode, it will not respond to the user's touch input on the target part of the electronic device.

[0145] Optionally, in this embodiment of the application, the target part can be any part of the user's body. Specifically, the target part can be any of the following: fingers, palms, nails, arms, toes, elbows, wrists, and other parts of the user's body.

[0146] Optionally, in the embodiments of this application, step 203 above can also be implemented by step 203d below.

[0147] Step 203d: When the electronic device detects that the stylus is in contact with the display screen, it stops responding to touch input from the user's target part on the electronic device.

[0148] It should be noted that when the electronic device detects contact between the stylus and the display screen, it will activate an absolute anti-mistouch mode, meaning it will not respond to any touch input from the user's target area on the electronic device.

[0149] Thus, it can be seen that since electronic devices do not respond to touch input from the user's target body part when the stylus is in writing mode or in contact with the display screen, the accidental touch of the user's body part on the electronic device is prevented during the writing process. Therefore, the recognition rate of accidental touches by electronic devices can be improved.

[0150] The following will provide an exemplary description of the method for preventing accidental touches provided in the embodiments of this application:

[0151] For example, such as Figure 4 As shown, the method for preventing accidental touches provided in this application may include the following steps S1 to S10:

[0152] Step S1: Check if the stylus Bluetooth and the electronic device Bluetooth are successfully paired. If yes, enter the normal finger anti-mistouch mode. If not, proceed to step S2.

[0153] Step S2: Collect the current pen pressure data.

[0154] Step S3: Determine the first target working mode of the stylus based on the pressure data of the stylus body.

[0155] Step S4: Detect whether the stylus is in contact with the display screen. If yes, proceed to step S8; otherwise, proceed to step S5.

[0156] Step S5: Detect whether the stylus is in writing mode. If yes, proceed to step S8; otherwise, proceed to step S6.

[0157] Step S6: Detect whether the stylus is in any of the following modes: pen-dropping mode, pen-holding mode after picking up the pen, pen-lifting mode, and pen-holding mode after lifting the pen. If yes, proceed to step S9; otherwise, proceed to step S7.

[0158] Step S7: Detect whether the stylus is in any of the following modes: idle mode, pen-holding mode, and pen-release mode. If yes, proceed to step S10; otherwise, re-enter step S2.

[0159] Step S8: Activate the absolute anti-mistouch mode corresponding to the display and writing mode, that is, stop responding to the user's touch input on the electronic device.

[0160] Step S9: Activate the pen-holding palm anti-mistouch mode corresponding to the working mode in Step S6 above, that is, reduce the preset area threshold, increase the preset sensing threshold, and increase the area size of the edge area.

[0161] Step S10: Activate the normal finger anti-mistouch mode corresponding to the working mode in step S7 above. That is, if the user's touch input on the target part of the electronic device meets the first condition, stop responding to the touch input. The first condition includes at least one of the following: the touch area of ​​the touch input is greater than or equal to a preset area threshold; the touch sensing amount is less than or equal to a preset sensing threshold; the touch input is located in the edge area, and the input type of the touch input is a preset input type.

[0162] The method for preventing accidental touches provided in this application can be implemented by an anti-accidental touch device. This application uses an anti-accidental touch device to implement the method as an example to illustrate the anti-accidental touch device provided in this application.

[0163] Figure 5 A schematic diagram of a possible structure of the anti-accidental touch device involved in an embodiment of this application is shown. For example... Figure 5 As shown, the device 70 may include: an acquisition module 71, a determination module 72, and a processing module 73. The acquisition module 71 is used to acquire first pressure information detected by the stylus when a wireless connection is established with the stylus; the determination module 72 is used to determine a first target operating mode of the stylus based on the first pressure information acquired by the acquisition module; and the processing module 73 is used to execute the anti-mistouch function of the electronic device according to the anti-mistouch mode corresponding to the first target operating mode determined by the determination module.

[0164] In one possible implementation, the determining module 72 is specifically used to determine the target preset pressure range corresponding to the first pressure information from N preset pressure ranges, each preset pressure range corresponding to at least one first working mode, where N is a positive integer; and to determine the first target working mode according to the first working mode corresponding to the target preset pressure range.

[0165] In one possible implementation, when the target preset pressure range corresponds to at least two first operating modes, the at least two first operating modes include a second operating mode and a third operating mode; the acquisition module 71 is further configured to acquire the pressure change trend of the first pressure information. The determination module 72 is further configured to determine the second operating mode as the first target operating mode when the pressure change trend acquired by the acquisition module is an increasing trend; and to determine the third operating mode as the first target operating mode when the pressure change trend acquired by the acquisition module is a decreasing trend.

[0166] In one possible implementation, the device further includes: an adjustment module. The acquisition module 71 is further configured to acquire second pressure information detected by the stylus when the second target operating mode of the stylus is detected to be the fourth operating mode. The determination module 72 is further configured to determine target pressure information based on the second pressure information acquired by the acquisition module. The adjustment module 73 is configured to adjust at least a portion of the critical values ​​of the first preset pressure range corresponding to the fourth operating mode based on the target pressure information determined by the determination module; wherein the first preset pressure range is any one of N preset pressure ranges.

[0167] In one possible implementation, the processing module 73 is specifically configured to, when the first target operating mode determined by the determining module is the fifth operating mode, if it receives touch input from a user's target area on the electronic device, and the touch input meets a first condition, stop responding to the touch input. The first condition includes at least one of the following: the touch area of ​​the touch input is greater than or equal to a preset area threshold; the touch sensing amount is less than or equal to a preset sensing threshold; the touch input is located in an edge region; and the touch input type is a preset input type.

[0168] In one possible implementation, the processing module 73 is further configured to perform a first operation when the first target operating mode determined by the determination module is the sixth operating mode. The first operation includes at least one of the following: decreasing a preset area threshold, increasing a preset sensing threshold, or increasing the area size of the edge region.

[0169] In one possible implementation, the processing module 73 is specifically used to stop responding to touch input from the user's target part on the electronic device when the first target working mode determined by the determining module is the seventh working mode.

[0170] The anti-mistouch device provided in this application embodiment can, when a wireless connection is established with the stylus, acquire first pressure information detected by the stylus, determine a first target operating mode of the stylus based on the first pressure information, and execute the anti-mistouch function of the device according to the anti-mistouch mode corresponding to the first target operating mode. Since the anti-mistouch device can determine the current operating mode of the stylus based on at least one pressure information from the user pressing the stylus, rather than determining whether to activate the anti-mistouch function based on whether the display screen detects the stylus tip, it can avoid accidental touches when the display screen does not detect the stylus tip, thereby reducing erroneous operations by the anti-mistouch device. Therefore, it can improve the recognition rate of user accidental touches by the anti-mistouch device.

[0171] The anti-accidental touch device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.

[0172] The anti-accidental touch device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.

[0173] The anti-accidental touch device provided in this application embodiment can achieve... Figures 1 to 4 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.

[0174] Optionally, such as Figure 6 As shown, this application embodiment also provides an electronic device 80, including a processor 81 and a memory 82. The memory 82 stores a program or instructions that can run on the processor 81. When the program or instructions are executed by the processor 81, they implement the various process steps of the above-described anti-accidental touch method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0175] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0176] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.

[0177] The electronic device 100 includes, but is not limited to, components such as: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.

[0178] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 7 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0179] The processor 110 is used to acquire first pressure information detected by the stylus when a wireless connection is established with the stylus, determine a first target working mode of the stylus based on the first pressure information, and execute the anti-mistouch function of the electronic device according to the anti-mistouch mode corresponding to the first target working mode.

[0180] Optionally, the processor 110 is specifically configured to determine, from N preset pressure ranges, a target preset pressure range corresponding to the first pressure information, where each preset pressure range corresponds to at least one first working mode, and N is a positive integer; and to determine a first target working mode based on the first working mode corresponding to the target preset pressure range.

[0181] Optionally, when the target preset pressure range corresponds to at least two first working modes, the at least two first working modes include: a second working mode and a third working mode; the processor 110 is specifically used to acquire the pressure change trend of the first pressure information; when the pressure change trend is an increasing trend, the second working mode is determined as the first working mode; when the pressure change trend is a decreasing trend, the third working mode is determined as the first working mode.

[0182] Optionally, the processor 110 is further configured to, when detecting that the second target working mode of the stylus is the fourth working mode, acquire second pressure information detected by the stylus; determine target pressure information based on the second pressure information; and adjust at least a portion of the critical values ​​of the first preset pressure range corresponding to the fourth working mode based on the target pressure information.

[0183] Optionally, the processor 110 is specifically configured to, when the first target working mode is the fifth working mode, if it receives touch input from a user's target part on the electronic device, stop responding to the touch input if the touch input meets a first condition; wherein the first condition includes at least one of the following: the touch area of ​​the touch input is greater than or equal to a preset area threshold; the touch sensing amount is less than or equal to a preset sensing threshold; the position of the touch input is located in the edge area, and the input type of the touch input is a preset input type.

[0184] Optionally, the processor 110 is further configured to perform a first operation when the first target operating mode is the sixth operating mode; wherein the first operation includes at least one of the following: reducing the preset area threshold, increasing the preset sensing threshold, and increasing the area size of the edge region.

[0185] Optionally, the processor 110 is specifically configured to stop responding to touch input from the user's target part on the electronic device when the first target operating mode is the sixth operating mode.

[0186] The anti-mistouch method provided in this application embodiment allows the electronic device to acquire first pressure information detected by the stylus when a wireless connection is established with the stylus. Based on the first pressure information, the electronic device determines a first target operating mode of the stylus and executes its anti-mistouch function according to the anti-mistouch mode corresponding to the first target operating mode. Since the electronic device can determine the current operating mode of the stylus based on at least one pressure signal from the user pressing the stylus, rather than determining whether to activate the anti-mistouch function based on whether the display screen detects the stylus tip, it can avoid accidental touches when the display screen does not detect the stylus tip, thereby reducing erroneous operations by the electronic device and improving the recognition rate of user accidental touches.

[0187] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.

[0188] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DRRAM). The memory 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0189] Processor 110 may include one or more processing units; optionally, processor 110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 110.

[0190] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described anti-accidental touch method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0191] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0192] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described anti-accidental touch method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0193] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0194] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described anti-accidental touch method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0195] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0196] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.

[0197] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method for preventing accidental touches, characterized in that, The method includes: When a wireless connection is established with the stylus, the first pressure information detected by the stylus is acquired; Based on the first pressure information, the first target working mode of the stylus is determined; According to the anti-accidental touch mode corresponding to the first target working mode, the anti-accidental touch function of the electronic device is executed; The first pressure information is the pressure information detected by the pressure sensor installed on the stylus body; Determining the first target working mode of the stylus based on the first pressure information includes: From N preset pressure ranges, determine the target preset pressure range corresponding to the first pressure information, where each preset pressure range corresponds to at least one first working mode, and N is a positive integer; The first target working mode is determined based on the first working mode corresponding to the target preset pressure range.

2. The method according to claim 1, characterized in that, When the target preset pressure range corresponds to at least two of the first working modes, the at least two first working modes include: a second working mode and a third working mode; Based on the first operating mode corresponding to the target preset pressure range, the first target operating mode is determined, including: Obtain the pressure change trend of the first pressure information; When the pressure change trend is increasing, the second working mode is determined as the first target working mode; When the pressure change trend is decreasing, the third working mode is determined as the first target working mode.

3. The method according to claim 1, characterized in that, Before acquiring the first pressure information detected by the stylus, the method further includes: If the second target working mode of the stylus is detected to be the fourth working mode, the second pressure information detected by the stylus is acquired. Based on the second pressure information, the target pressure information is determined; Based on the target pressure information, at least a portion of the critical values ​​of the first preset pressure range corresponding to the fourth working mode are adjusted; Wherein, the first preset pressure range is any one of the N preset pressure ranges.

4. The method according to claim 1, characterized in that, According to the anti-accidental touch mode corresponding to the first target operating mode, the anti-accidental touch function of the electronic device is executed, including: When the first target working mode is the fifth working mode, if a user's target part is received on the electronic device for touch input, then if the touch input meets the first condition, the response to the touch input will stop. The first condition includes at least one of the following: The touch area of ​​the touch input is greater than or equal to a preset area threshold. The amount of touch sensing is less than or equal to the preset sensing threshold; The touch input is located in the edge area, and the input type of the touch input is a preset input type; The touch sensing quantity is the amount of capacitance change at the position of the touch input when the touch input is performed.

5. The method according to claim 4, characterized in that, After executing the accidental touch prevention function of the electronic device according to the accidental touch prevention mode corresponding to the first target operating mode, the method further includes: If the first target working mode is the sixth working mode, perform the first operation; The first operation includes at least one of the following: decreasing the preset area threshold, increasing the preset sensing threshold, and increasing the area size of the edge region.

6. The method according to claim 1, characterized in that, According to the anti-accidental touch mode corresponding to the first target operating mode, the anti-accidental touch function of the electronic device is executed, including: When the first target operating mode is the seventh operating mode, the response to the user's touch input on the electronic device at the target location is stopped.

7. A device for preventing accidental touch, characterized in that, The device includes: an acquisition module, a determination module, and a processing module; The acquisition module is used to acquire the first pressure information detected by the stylus when a wireless connection is established with the stylus; The determining module is used to determine the first target working mode of the stylus based on the first pressure information acquired by the acquiring module. The processing module is used to execute the anti-accidental touch function of the electronic device according to the anti-accidental touch mode corresponding to the first target working mode determined by the determining module. The first pressure information is the pressure information detected by the pressure sensor installed on the stylus body; The determining module is specifically used to determine the target preset pressure range corresponding to the first pressure information from N preset pressure ranges, each preset pressure range corresponding to at least one first working mode, where N is a positive integer; and to determine the first target working mode according to the first working mode corresponding to the target preset pressure range.

8. The apparatus according to claim 7, characterized in that, When the target preset pressure range corresponds to at least two of the first working modes, the at least two first working modes include: a second working mode and a third working mode; The acquisition module is further configured to acquire the pressure change trend of the first pressure information; The determining module is further configured to, when the pressure change trend obtained by the acquiring module is an increasing trend, determine the second working mode as the first target working mode; and when the pressure change trend obtained by the acquiring module is a decreasing trend, determine the third working mode as the first target working mode.

9. The apparatus according to claim 7, characterized in that, The device further includes: an adjustment module; The acquisition module is further configured to acquire the second pressure information detected by the stylus when the second target working mode of the stylus is detected to be the fourth working mode; The determining module is further configured to determine target pressure information based on the second pressure information obtained by the acquiring module; The adjustment module is used to adjust at least a portion of the critical values ​​of the first preset pressure range corresponding to the fourth working mode based on the target pressure information determined by the determining module. Wherein, the first preset pressure range is any one of the N preset pressure ranges.

10. The apparatus according to claim 7, characterized in that, The processing module is specifically configured to, when the first target working mode determined by the determining module is the fifth working mode, if it receives touch input from the user's target part on the electronic device, and the touch input meets the first condition, stop responding to the touch input. The first condition includes at least one of the following: The touch area of ​​the touch input is greater than or equal to a preset area threshold. The amount of touch sensing is less than or equal to the preset sensing threshold; The touch input is located in the edge area, and the input type of the touch input is a preset input type; The touch sensing quantity is the amount of capacitance change at the position of the touch input when the touch input is performed.

11. The apparatus according to claim 10, characterized in that, The processing module is further configured to perform a first operation when the first target working mode determined by the determining module is the sixth working mode; The first operation includes at least one of the following: decreasing the preset area threshold, increasing the preset sensing threshold, and increasing the area size of the edge region.

12. The apparatus according to claim 7, characterized in that, The processing module is specifically used to stop responding to touch input from the user's target part on the electronic device when the first target working mode determined by the determining module is the seventh working mode.

13. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the anti-accidental touch method as described in any one of claims 1-6.

14. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the anti-accidental touch method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Mistaken touch prevention method and device, equipment and storage medium

    CN111488076A

  • Mobile terminal mistaken touch prevention method and device, computer equipment and storage medium

    CN113552995A

  • Improved stylus device

    CN212229604U