Control method and device and electronic equipment
By identifying the status of the pen device and controlling the delayed response or non-response of the electronic device to touch input, the problem of accidentally touching the capacitive active pen when operating on the touch screen is solved, improving the user's operating experience and convenience.
Patent Information
- Application Number
- CN202410848802.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-08-30
AI Technical Summary
When users use a capacitive active pen to operate on a touch screen, they are prone to accidentally touching the screen with the hand holding the pen, resulting in inconvenient operation.
By obtaining the status of the pen device, identifying whether the user is holding it and approaching the screen, the electronic device is controlled to respond with a delay or no response to touch input, thereby reducing accidental touches.
It effectively avoids the problem of accidental touches when users use capacitive active pens. Users do not need to wear anti-accidental touch gloves or raise their hands. The operation is simple and the anti-accidental touch effect is remarkable.
Smart Images

Figure CN118567516A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of touch control technology, and specifically relates to a control method, device and electronic equipment. Background Art
[0002] At present, a stylus is a smart handwriting tool, such as a capacitive active pen, which can be used by users to write or draw on a capacitive touch screen with high precision and high speed. The application scenarios of the capacitive active pen include handwriting input, electronic signature, sketch design, etc. In recent years, with the popularization of large-size smart terminals, capacitive active pens have been widely used in education, business, creativity and other fields, providing convenience and creating value for users.
[0003] In the prior art, when a user uses a pen to operate on a touch screen, it is very easy for the hand holding the pen to touch the screen by mistake. Usually, the user can only keep his hand in the air or wear gloves to prevent accidental touches, which makes the user's operation inconvenient. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a control method that can solve the problem that when a user uses a pen to operate on a touch screen, the hand holding the pen easily touches the screen by mistake.
[0005] In a first aspect, an embodiment of the present application provides a control method, which includes: obtaining the status of a pen device that is communicatively connected to an electronic device; and when the status indicates that the pen device is held by hand and close to the screen of the electronic device, controlling the electronic device to delay response or not respond to touch input received by the screen by the hand.
[0006] In a second aspect, an embodiment of the present application provides a control device, which includes: an acquisition module for acquiring the status of a pen device that is communicatively connected to an electronic device; and a first control module for controlling the electronic device to delay response or not respond to touch input received by the hand on the screen when the status indicates that the pen device is held and close to the screen of the electronic device.
[0007] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps described in the first aspect are implemented.
[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0009] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0010] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0011] In an embodiment of the present application, based on the communication connection between the electronic device and the pen device, the state of the pen device can be obtained. When the state indicates that the pen device is held by the user and is approaching the screen, this scene is defined as a scene in which the user is using the pen device to write. Further, after identifying the scene, the electronic device is controlled to respond with a delay, or not respond, to the touch input of the hand received during the writing process, thereby reducing the phenomenon of accidental touches during the writing process. It can be seen that in an embodiment of the present application, when the user uses a capacitive active pen to operate on the touch screen, the user only needs to operate normally, does not need to wear anti-accidental touch gloves, and does not need to lift his hand, so as to effectively avoid accidental touches during the writing process, thereby achieving an anti-accidental touch effect while ensuring that the user's operation is simple. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 is a flow chart of a control method of some embodiments of the present application;
[0013] Figure 2 It is one of the schematic diagrams for explaining the control method of some embodiments of the present application;
[0014] Figure 3 This is the second schematic diagram for explaining the control method of some embodiments of the present application;
[0015] Figure 4 This is the third schematic diagram for explaining the control method of some embodiments of the present application;
[0016] Figure 5 This is a fourth schematic diagram illustrating the control method of some embodiments of the present application;
[0017] Figure 6 This is a fifth schematic diagram illustrating the control method of some embodiments of the present application;
[0018] Figure 7 is a block diagram of a control device of some embodiments of the present application;
[0019] Figure 8 Schematic diagram of the hardware structure of the electronic device of some embodiments of the present application;
[0020] Fig. 9It is a schematic diagram of the hardware structure of an electronic device of some embodiments of the present application. DETAILED DESCRIPTION
[0021] The following will be combined with the drawings of the embodiments of the present application to clearly describe the technical solutions of the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present application belong to the scope of protection of this application.
[0022] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally a class, and the number of objects is not limited. For example, the target object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0023] The control method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0024] like Figure 1 FIG. 1 is a flowchart of a control method according to an embodiment of the present application, and takes the method applied to an electronic device as an example. The method includes:
[0025] Step 110: Acquire the status of the pen device that is communicatively connected to the electronic device.
[0026] Optionally, it is detected whether the Bluetooth pairing between the pen device and the electronic device is successful. If the Bluetooth pairing is successful, the pen device and the electronic device are communicatively connected.
[0027] Optionally, the pen device is a capacitive active pen. The capacitive active pen communicates with the main control Bluetooth of the electronic device via Bluetooth. This is a commonly used screen-pen interaction method. The pen tip pressure, function button status, pen body touch information, pen body movement status information, etc. of the pen device can be transmitted via Bluetooth.
[0028] Furthermore, based on the communication connection relationship between the pen device and the electronic device, the pen body capacitance data collected by the capacitive film on the pen device and the acceleration data collected by the gravity acceleration sensor on the pen device are obtained, so that the state of the pen device is obtained through the pen body capacitance data and the acceleration data.
[0029] Step 120: When the state indicating pen device is held and close to the screen of the electronic device, the electronic device is controlled to delay response or not respond to the touch input received by the screen.
[0030] Prior to this step, it is determined whether the acquired state indicates that the pen device is held by hand and close to the screen of the electronic device.
[0031] For example, when the pen body capacitance data is greater than threshold 1, it indicates that the user is holding the pen device; when the acceleration data is greater than threshold 2, it indicates that the pen device is approaching the screen of the electronic device. When the above two conditions are met, the judgment result is that the pen device is held and approaching the screen of the electronic device. When the pen device is held and approaching the screen of the electronic device, it corresponds to the user holding the pen device and performing a writing operation in the application scenario.
[0032] When a user uses a pen device to complete writing, they need to go through three steps: putting down the pen, writing, and lifting the pen. During the process of putting down the pen, the hand holding the pen will first touch the screen, which is very easy to cause accidental touches. Therefore, this embodiment optimizes the accidental touch phenomenon from the perspective of the process of putting down the pen.
[0033] Optionally, when the state of the pen device indicates that the pen device is held and close to the screen of the electronic device, the touch integrated circuit (IC) is controlled to enter the touch suppression mode; otherwise, the touch IC is in the normal suppression mode. In conjunction with this step, in the touch suppression mode, the electronic device is controlled to delay the response or not respond to the touch input received by the hand on the screen.
[0034] For reference, during the writing process, the user's little finger touches the screen first, and then the contact area between the user's hand holding the pen and the screen gradually increases. The contact between the hand and the screen during this process is actually a false touch, and this embodiment will not respond to the touch input of the hand received during this process; or, in order to avoid missing the response to the normal touch input of the hand during this process, the touch input of the hand during this process can also be responded to with a delayed response.
[0035] In an embodiment of the present application, based on the communication connection between the electronic device and the pen device, the state of the pen device can be obtained. When the state indicates that the pen device is held by the user and is approaching the screen, this scene is defined as a scene in which the user is writing with the pen device. Further, after identifying the scene, the electronic device is controlled to respond with a delay, or not respond, to the touch input received by the hand during the writing process, thereby reducing the phenomenon of accidental touches during the writing process. It can be seen that in an embodiment of the present application, when the user uses a capacitive active pen to operate on the touch screen, the user only needs to operate normally, does not need to wear anti-accidental touch gloves, and does not need to lift his hand, so as to effectively avoid accidental touches during the writing process, thereby achieving an anti-accidental touch effect while ensuring that the user's operation is simple.
[0036] It should be noted that the screen of the electronic device is scanned at a certain frequency, such as 60Hz, 120Hz, etc., so that when the user's hand falls on the screen, the screen can receive the touch input of the user's hand in a certain frame through scanning. Based on this, the present application takes frames as units and does not respond to or delays the response to the touch input of the hand in a certain frame.
[0037] The moment when the screen receives the touch input of a certain frame of hand is the scanning moment of the frame data.
[0038] In the process of the control method of another embodiment of the present application, step 120 includes:
[0039] Sub-step A1: Do not respond to the touch input of the hand received by the screen in the first N1 frames, where N1 is a positive integer and no signal of the pen device touching the screen is detected in the first frame.
[0040] In the application scenario, when the user's hand holding the pen just touches the screen during the writing process, the contact surface between the hand and the screen is uneven. Figure 2 As shown in FIG. 1 , the contact area between the touch input of the hand received by the screen at the beginning and the screen is small, corresponding to the small raised area of the palm contacting the screen; further, as shown in FIG. Figure 3 and Figure 4 ,Subsequently, as the hand falls, the contact area between the received,few frames of touch input and the screen gradually increases.
[0041] like Figure 5 As shown, for a user's conventional touch input, such as a user clicking the screen with a thumb, the contact area between the thumb and the screen is Figure 2 The screen contact areas of the false touch inputs are very close, so it is difficult to distinguish between the user's regular touch input and the false touch input based on the screen contact area alone. The user's regular touch input is not a false touch input and is a touch input that needs to be responded to.
[0042] Among them, Figures 2 to 6 In the figure, the box represents the area where the user's hand contacts the screen.
[0043] In this embodiment, a dynamic frame dropping method is proposed to prevent the above-mentioned false touch phenomenon from occurring.
[0044] Specifically, since the contact area between the touch input of the hand in the first few frames and the screen is small and it is impossible to distinguish whether it is a regular touch input or an erroneous touch input, the touch input of the hand received in the first few frames will be discarded, that is, no response will be given.
[0045] Optionally, in a conventional touch operation scenario, such as when a finger taps the screen very quickly, the number of touch input frames scanned by the screen is relatively small. If all of them are discarded, the operation will not be performed, and the user experience is that the response is not sensitive. Therefore, in order to avoid discarding all the data of the user's conventional touch input for a certain operation, the value of N1 should not be too large. According to debugging experience, the value range of N1 is [1, 3]. If the screen scanning frequency is high, the value of N1 can be appropriately larger.
[0046] In addition, when receiving the first frame of hand touch input, it is necessary to determine whether a signal of the pen device touching the screen is detected at the current moment. If it is detected, it means that the pen device has been in contact with the screen and has entered the writing process, which is not within the optimization scope of this embodiment and will not be described in detail here. Therefore, this embodiment also needs to be limited to when receiving the first frame of hand touch input, no signal of the pen device touching the screen is detected.
[0047] The pen device has the function of transmitting signals. The closer the pen device is to the screen, the greater the electronic device's sensitivity to the signal. Usually, when the pen device is about 20 mm away from the screen, the electronic device can sense the signal, which is the signal that the pen device is touching the screen.
[0048] Furthermore, when the screen contact area of the touch input received from the hand in the N1+1th frame is greater than a certain threshold, the touch input is considered to be an erroneous touch input and no response is required. Combined with the scenario in which the screen contact area gradually increases during the writing process until the writing process begins, subsequent touch inputs from the hand can be considered to be erroneous touch inputs.
[0049] When the screen contact area of the hand touch input received in the N1+1th frame is less than or equal to the threshold, if a signal of the pen device touching the screen is detected at the time of receiving the frame, the touch input is considered to be an erroneous touch input and no response is required. At this time, the writing process begins from the detection of the signal of the pen device touching the screen.
[0050] When the screen contact area of the hand touch input received in the N1+1th frame is less than or equal to the threshold, if no signal of the pen device contacting the screen is detected at the time of receiving the frame, the touch input is considered to be a regular touch input and requires a response.
[0051] For example, N1=1, threshold=18. The first frame data received by the screen is discarded, and the screen contact area is calculated to be 19 based on the second frame data. If the screen contact area is greater than 18, it is determined to be an erroneous touch input, and the second frame data is not responded.
[0052] For another example, N1=1, threshold=18. The first frame of data received by the screen is discarded, and the screen contact area is calculated to be 16 based on the second frame of data. The screen contact area is less than 18. If a signal of the pen device touching the screen is detected in the second frame, it is determined to be an erroneous touch input, and the second frame of data is not responded to; conversely, if a signal of the pen device touching the screen is not detected in the second frame, it is determined to be a normal touch input, and the second frame of data is responded to.
[0053] In this embodiment, a method of sampling and dropping frames is provided to optimize the palm-mist accident phenomenon. In the process of writing, the palm-mist accident phenomenon is optimized by discarding the initial few frames of small-area unstable data of the hand in contact with the screen, thereby avoiding the false response to the initial small-area touch input of the hand in the process of writing.
[0054] In the process of the control method of another embodiment of the present application, step 120 includes:
[0055] Sub-step B1: Cache the data of the touch input of the hand received by the screen in the first N2 frames, where N2 is a positive integer, and the touch screen area of the touch input of the hand in the first N2 frames is less than or equal to the first threshold, and no signal of the pen device contacting the screen is detected within the time range corresponding to the first N2 frames.
[0056] In this step, starting from when the screen receives the first frame of hand touch input, if the screen contact area of the hand touch input continues to be small, and after detection, no signal of the pen device touching the screen is detected, therefore, it is impossible to determine whether it is a false touch input, then the data of these frames of hand touch input received will be cached first.
[0057] Optionally, the screen contact area of the hand touch input is calculated by the number of nodes whose collected palm touch difference (diff) exceeds the reporting threshold.
[0058] like Figure 6 As shown, the reporting threshold is 100, and the number of nodes where the palm touch diff exceeds the reporting threshold is 22, so the contact screen area of the touch input is 22.
[0059] Optionally, a first threshold is set, and when the screen contact area is less than or equal to the first threshold, it is considered that the screen contact area of the touch input of the hand is small.
[0060] Sub-step B2: When the screen contact area of the touch input of the hand in the next frame of the first N2 frames received by the screen is greater than the first threshold, do not respond to the touch input of the hand in the next frame, and do not respond to the touch input of the cached data.
[0061] In this step, after continuously caching the touch input data of the hand in the first N2 frames, the screen receives the touch input of the hand in the N2+1 frame. After calculation, the screen contact area of the touch input of the hand in the N2+1 frame is greater than the first threshold, which means that the screen contact area is large, which is consistent with the scenario that the contact area between the hand and the screen gradually increases during the writing process. In this case, the touch input of the hand in the first N2+1 frames will be judged as false touch input and will not be responded to.
[0062] Alternatively, sub-step B3: when the screen contact area of the touch input of the hand in the next frame of the first N2 frames received by the screen is less than or equal to the first threshold, and the next frame detects a signal that the pen device contacts the screen, do not respond to the touch input of the hand in the next frame, and do not respond to the touch input of the cached data.
[0063] In this step, after continuously caching the touch input data of the hand in the first N2 frames, the screen receives the touch input of the hand in the N2+1 frame. After calculation, the screen contact area of the touch input of the hand in the N2+1 frame is still less than or equal to the first threshold, indicating that the screen contact area is still small. However, at this moment, a signal of the pen device touching the screen is detected, which meets the pen-falling scenario, and the touch input of the hand in the first N2+1 frames is judged as a false touch input and will not be responded to.
[0064] Among them, for conventional touch input, its contact area with the screen is small. In order to avoid continuously caching touch input with a small screen contact area, which makes conventional touch input unable to respond, a fixed value can be set to achieve caching of only a certain number of frames of touch input data of the hand.
[0065] For example, the fixed value is 2, and the first threshold S1 is 18. The screen contact areas of the touch input of the hand in the first and second frames are 6 and 15, and no signal of the pen device touching the screen is detected until the scanning moment of the second frame, and the data of the touch input of the hand in the first and second frames are cached. When the touch input of the hand in the third frame is received, the screen contact area of the touch input of the hand in the third frame is calculated. If the screen contact area is 19, the screen contact area of the touch input of the hand in the third frame is greater than 18, and the touch input of the hand in the first three frames is all erroneous touch input, and no response is given. On the contrary, when the touch input of the hand in the third frame is received, the screen contact area of the touch input of the hand in the third frame is calculated. If the screen contact area is 17, the screen contact area of the touch input of the hand in the third frame is still less than 18, but at the scanning moment of the touch input of the hand in the third frame, a signal of the pen device touching the screen is detected, and the touch input of the hand in the first three frames is all erroneous touch input, and no response is given. Correspondingly, N2 = the fixed value, that is, N2 = 2.
[0066] In more scenarios, the value of N2 can be flexibly changed.
[0067] For example, the fixed value is 2, the first threshold S1 = 18, the screen contact area of the hand touch input in the first frame is 6, and no signal of the pen device touching the screen is detected, so the first frame data is cached; the screen contact area of the hand touch input in the second frame is 19, and the screen contact area is greater than 18, so the hand touch inputs in the first two frames are all false touch inputs, and no response is made. Correspondingly, N2 = 1.
[0068] For another example, the fixed value is 2, the first threshold S1 = 18, the screen contact area of the hand touch input in the first frame is 6, and no signal of the pen device touching the screen is detected, then the first frame data is cached; the screen contact area of the hand touch input in the second frame is 16, and the screen contact area is less than 18, but at the scanning moment of the hand touch input in the second frame, a signal of the pen device touching the screen is detected, then the hand touch input in the first two frames is a false touch input, and no response is made. Correspondingly, N2 = 1.
[0069] Optionally, based on the above example, a solution is provided, in which a fixed value is set, and if the false touch judgment of the received touch input is completed within the number of frames of the previous fixed value, then N2 changes flexibly; conversely, if the false touch judgment of the received touch input is not completed within the number of frames of the previous fixed value, then the value of N2 is the fixed value. The value of N2 is less than or equal to the fixed value.
[0070] Optionally, the anti-mistouch measure proposed in this embodiment can delay the response to the normal touch input. Therefore, the fixed value here can be set slightly larger than the value of N1 in the above embodiment. According to debugging experience, the optional range of the fixed value is [1, 4].
[0071] In this embodiment, when the screen contact area of the current N2 frames continues to not exceed the first threshold and no signal of the pen device touching the screen is continuously detected, the data of the previous N2 frames are continuously cached, and when the touch input of the hand in the N2+1 frame is received, if the screen contact area of the touch input of the hand in the N2+1 frame is greater than the first threshold or the signal sent by the pen device is detected at the scanning moment of the N2+1 frame, it is considered that the touch input of the hand in the previous N2+1 frames are all false touch inputs during the pen-putting process, and no response will be given to achieve the effect of preventing false touches.
[0072] In the process of the control method of another embodiment of the present application, step 120 includes:
[0073] Sub-step C1: Cache the data of the touch input of the hand received by the screen in the first N2 frames, where N2 is a positive integer, and the touch screen area of the touch input of the hand in the first N2 frames is less than or equal to the first threshold, and no signal of the pen device contacting the screen is detected within the time range corresponding to the first N2 frames.
[0074] Sub-step C2: When the screen contact area of the hand touch input in the next frame of the first N2 frames received by the screen is less than or equal to the first threshold, and no signal of the pen device contacting the screen is detected in the next frame, the data of the hand touch input in the next frame is cached.
[0075] Sub-step C3: starting from the time corresponding to the next frame, responding sequentially to the touch input of the buffered data.
[0076] In this embodiment, the screen contact area of the hand touch input received in the N2+1th frame is less than or equal to the first threshold, and no signal from the pen device is detected at the scanning moment of the N2+1th frame. Therefore, it is impossible to determine that the hand touch input in the previous N2+1 frames is a false touch input. Therefore, the N2+1th frame data is cached first, and at the same time, the cached data is responded to in sequence.
[0077] For example, the fixed value is 2, the first threshold S1 is 18, the screen receives the 1st and 2nd frame data, the screen contact area is 6 and 14, and no signal from the pen device is detected, the 1st and 2nd frame data are cached; the screen receives the 3rd frame data, the screen contact area is 16, and still no signal from the pen device is detected, the 3rd frame data is cached, and at the scanning time of the 3rd frame data, the 1st frame data is responded. The screen receives the 4th frame data, the screen contact area is 17, and still no signal from the pen device is detected, the 4th frame data is cached, and at the scanning time of the 4th frame data, the 2nd frame data is responded.
[0078] It should be noted that until the writing process begins, if it is determined to be an erroneous touch input based on a certain frame of data, the response to the cached data will be stopped immediately.
[0079] For reference, continuing with the above example, when the screen receives the 5th frame data and the screen contact area is 19, the previous frame data will be judged as false touch input, the 5th frame data will not be cached, and the 5th frame data will not be responded to. At the same time, the cached data will no longer be responded to.
[0080] Or, continuing with the above example, the screen receives the 5th frame data, and the screen contact area is 18, but the signal sent by the pen device is detected at the scanning moment of the 5th frame, then the previous frame data are all judged as false touch inputs, the 5th frame data is not cached, and the 5th frame data is not responded to. At the same time, the cached data will no longer be responded to.
[0081] In this embodiment, when the screen receives a touch input from a hand, it will not respond immediately but cache it to prevent accidental touches. In addition, in order to avoid the user's unresponsive experience due to the lack of response to regular touch input, the cached data will be responded to immediately when it is determined that it is not an accidental touch input, thereby achieving a delayed response effect and having less impact on the screen's response sensitivity.
[0082] In the above embodiments of the present application, for the discarded and cached frame data, the measure of not reporting can be adopted; when a response is required, the cached frame data is reported, and the main control end responds according to the current mode.
[0083] In the process of the control method of another embodiment of the present application, after step 110, the method further includes:
[0084] Step D1: When the state does not indicate that the pen device is held and close to the screen of the electronic device, the electronic device is controlled not to respond to a touch input received by the screen from a hand with a screen contact area greater than a second threshold, wherein the second threshold is greater than the first threshold.
[0085] In this embodiment, when any one of the pen body capacitance data and the acceleration data does not meet the condition, the touch suppression mode is exited and the normal suppression mode is entered. In the normal suppression mode, a palm area suppression threshold S is set. When the contact area between the palm and the screen exceeds S, the touch input is controlled not to be responded to, so as to achieve the normal anti-mistouch function. Therefore, when the state does not indicate that the pen device is held and close to the screen of the electronic device, and when the pen device and the electronic device are not in communication connection, the electronic device is assumed to be in the normal suppression mode by default.
[0086] Correspondingly, the palm area suppression threshold S in the normal suppression mode is the second threshold.
[0087] On this basis, during the pen-holding process, that is, when the state indicator pen device is held and close to the screen of the electronic device, a palm area suppression threshold S1 will also be set. When the contact area between the palm and the screen exceeds S1, it will be controlled to not respond to the touch input.
[0088] Correspondingly, the palm area suppression threshold S1 in the touch suppression mode is the first threshold.
[0089] In this embodiment, the palm area suppression threshold in the writing process is smaller than the palm area suppression threshold in other scenarios, so that the anti-mistouch effect in the writing process is more stable.
[0090] In summary, in the scenario where the user uses a pen device to write, during the process of writing, the hand holding the pen will touch the screen first, so that the screen receives the touch input of the hand earlier than the time when the pen device contacts the screen signal. As a result, due to the appearance of this time difference, the touch input of the hand is mis-responded, and then a false touch phenomenon occurs. Based on this, the embodiment of the present application proposes a method for optimizing false touches during the process of writing, which uses the capacitive film on the pen device to identify whether the user is holding the pen, and then combines the gravity sensor on the pen device to identify whether the user is writing, so as to implement a dynamic frame drop strategy and a delayed response strategy when the user holds the pen and writes, and then combines the preset screen contact area suppression threshold to prevent false touches caused by responding to the touch input of the user's hand holding the pen, and then based on the optimization of false touches during the writing process, the probability of false touches when using the pen device is greatly reduced, and the writing experience of the user using the pen device is improved. Among them, both the dynamic frame drop strategy and the delayed response strategy can effectively optimize the problem of accidental touch by the palm of the hand and reduce the probability of accidental touch. The dynamic frame drop strategy is more practical in actual application than the delayed response strategy. Since the delayed response strategy does not discard the sampled data, it has less impact on the response sensitivity of the user's regular touch input on the screen.
[0091] In the control method provided in the embodiment of the present application, the execution subject may be a control device. In the embodiment of the present application, the control device provided in the embodiment of the present application is described by taking the control method executed by the control device as an example.
[0092] Figure 7 A block diagram of a control device 700 according to an embodiment of the present application is shown, and the device includes:
[0093] An acquisition module 10 is used to acquire the state of a pen device that is communicatively connected to the electronic device;
[0094] The first control module 20 is used to control the electronic device to delay or not respond to the touch input received by the hand on the screen when the status indication pen device is held and close to the screen of the electronic device.
[0095] In an embodiment of the present application, based on the communication connection between the electronic device and the pen device, the state of the pen device can be obtained. When the state indicates that the pen device is held by the user and is approaching the screen, this scene is defined as a scene in which the user is writing with the pen device. Further, after identifying the scene, the electronic device is controlled to respond with a delay, or not respond, to the touch input received by the hand during the writing process, thereby reducing the phenomenon of accidental touches during the writing process. It can be seen that in an embodiment of the present application, when the user uses a capacitive active pen to operate on the touch screen, the user only needs to operate normally, does not need to wear anti-accidental touch gloves, and does not need to lift his hand, so as to effectively avoid accidental touches during the writing process, thereby achieving an anti-accidental touch effect while ensuring that the user's operation is simple.
[0096] Optionally, the first control module 20 includes:
[0097] A first control unit, configured to not respond to the touch input of the hand received by the screen in the first N1 frames;
[0098] Wherein, N1 is a positive integer, and no signal of the pen device contacting the screen is detected in the first frame.
[0099] Optionally, the first control module 20 includes:
[0100] A first buffer unit is used to buffer the data of the touch input of the hand in the first N2 frames received by the screen, wherein N2 is a positive integer, and the touch screen area of the touch input of the hand in the first N2 frames is less than or equal to a first threshold, and no signal of the pen device contacting the screen is detected within a time range corresponding to the first N2 frames;
[0101] A second control unit is configured to, when the screen contact area of the touch input of the hand in the next frame of the first N2 frames received by the screen is greater than the first threshold, not respond to the touch input of the hand in the next frame, and not respond to the touch input of the cached data;
[0102] The third control unit is used for not responding to the touch input of the hand in the next frame and not responding to the touch input of the cached data when the screen contact area of the touch input of the hand in the next frame of the first N2 frames received by the screen is less than or equal to the first threshold and the signal of the pen device contacting the screen is detected in the next frame.
[0103] Optionally, the first control module 20 includes:
[0104] A second buffer unit is used to buffer the data of the touch input of the hand in the first N2 frames received by the screen, wherein N2 is a positive integer, and the touch screen area of the touch input of the hand in the first N2 frames is less than or equal to the first threshold, and no signal of the pen device contacting the screen is detected within the time range corresponding to the first N2 frames;
[0105] A third cache unit is used to cache data of the touch input of the hand in the next frame when the screen contact area of the touch input of the hand in the next frame of the first N2 frames received by the screen is less than or equal to the first threshold and no signal of the pen device contacting the screen is detected in the next frame;
[0106] The fourth control unit is used to respond to the touch input of the buffered data in sequence starting from the time corresponding to the next frame.
[0107] Optionally, the device further comprises:
[0108] a second control module, for controlling the electronic device to not respond to a touch input received by the screen from a hand with a screen contact area greater than a second threshold value, when the state does not indicate that the pen device is held and close to the screen of the electronic device;
[0109] The second threshold is greater than the first threshold.
[0110] The device in the application embodiment can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the present application embodiment is not specifically limited.
[0111] The device of the embodiment of the present application may be a device having an action system. The action system may be an Android action system, an iOS action system, or other possible action systems, which are not specifically limited in the embodiment of the present application.
[0112] The device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0113] Alternatively, if Figure 8 As shown, an embodiment of the present application also provides an electronic device 100, including a processor 101, a memory 102, and a program or instruction stored in the memory 102 and executable on the processor 101. When the program or instruction is executed by the processor 101, each step of any of the above-mentioned control method embodiments is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0114] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0115] Fig. 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0116] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, a processor 1010, a camera 1011 and other components.
[0117] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0118] Among them, the processor 1010 is used to obtain the status of the pen device that is communicatively connected to the electronic device; when the status indicates that the pen device is held and close to the screen of the electronic device, the electronic device is controlled to delay the response or not respond to the touch input of the hand received by the screen.
[0119] In an embodiment of the present application, based on the communication connection between the electronic device and the pen device, the state of the pen device can be obtained. When the state indicates that the pen device is held by the user and is approaching the screen, this scene is defined as a scene in which the user is writing with the pen device. Further, after identifying the scene, the electronic device is controlled to respond with a delay, or not respond, to the touch input received by the hand during the writing process, thereby reducing the phenomenon of accidental touches during the writing process. It can be seen that in an embodiment of the present application, when the user uses a capacitive active pen to operate on the touch screen, the user only needs to operate normally, does not need to wear anti-accidental touch gloves, and does not need to lift his hand, so as to effectively avoid accidental touches during the writing process, thereby achieving an anti-accidental touch effect while ensuring that the user's operation is simple.
[0120] Optionally, the processor 1010 is further configured to not respond to the touch input of the hand received by the screen in the first N1 frames; wherein N1 is a positive integer, and no signal of the pen device contacting the screen is detected in the first frame.
[0121] Optionally, processor 1010 is further used to cache data of touch input of the hand in the first N2 frames received by the screen; wherein N2 is a positive integer, and the touch screen area of the touch input of the hand in the first N2 frames is less than or equal to a first threshold, and no signal of the pen device touching the screen is detected within a time range corresponding to the first N2 frames; when the screen contact area of the touch input of the hand in the next frame of the first N2 frames received by the screen is greater than the first threshold, no response is made to the touch input of the hand in the next frame, and no response is made to the touch input of the cached data; when the screen contact area of the touch input of the hand in the next frame of the first N2 frames received by the screen is less than or equal to the first threshold, and a signal of the pen device touching the screen is detected in the next frame, no response is made to the touch input of the hand in the next frame, and no response is made to the touch input of the cached data.
[0122] Optionally, processor 1010 is further used to cache data of touch input of the hand in the first N2 frames received by the screen; wherein N2 is a positive integer, and the touch screen area of the touch input of the hand in the first N2 frames is less than or equal to a first threshold, and no signal of the pen device contacting the screen is detected within a time range corresponding to the first N2 frames; when the screen contact area of the touch input of the hand in the next frame of the first N2 frames received by the screen is less than or equal to the first threshold, and no signal of the pen device contacting the screen is detected in the next frame, cache data of the touch input of the hand in the next frame; and respond to the touch input of the cached data sequentially starting from the moment corresponding to the next frame.
[0123] Optionally, the processor 1010 is further used to control the electronic device not to respond to touch input received by the screen from a hand with a screen contact area greater than a second threshold when the state does not indicate that the pen device is held and close to the screen of the electronic device; wherein the second threshold is greater than the first threshold.
[0124] In summary, in the scenario where the user uses a pen device to write, during the process of writing, the hand holding the pen will touch the screen first, so that the screen receives the touch input of the hand earlier than the time when the pen device contacts the screen signal. As a result, due to the appearance of this time difference, the touch input of the hand is mis-responded, and then a false touch phenomenon occurs. Based on this, the embodiment of the present application proposes a method for optimizing false touches during the process of writing, which uses the capacitive film on the pen device to identify whether the user is holding the pen, and then combines the gravity sensor on the pen device to identify whether the user is writing, so as to implement a dynamic frame drop strategy and a delayed response strategy when the user holds the pen and writes, and then combines the preset screen contact area suppression threshold to prevent false touches caused by responding to the touch input of the user's hand holding the pen, and then based on the optimization of false touches during the writing process, the probability of false touches when using the pen device is greatly reduced, and the writing experience of the user using the pen device is improved. Among them, both the dynamic frame drop strategy and the delayed response strategy can effectively optimize the problem of accidental touch by the palm of the hand and reduce the probability of accidental touch. The dynamic frame drop strategy is more practical in actual application than the delayed response strategy. Since the delayed response strategy does not discard the sampled data, it has less impact on the response sensitivity of the user's regular touch input on the screen.
[0125] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video image obtained by the image capture device (such as a camera) in the video image capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and an action rod, which will not be repeated here. The memory 1009 can be used to store software programs and various data, including but not limited to applications and action systems. The processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes the action system, user pages and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1010.
[0126] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0127] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.
[0128] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned control method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0129] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0130] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0131] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0132] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned control method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0133] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0134] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0135] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A control method, characterized in that: The method comprises: Acquire the status of the pen device connected to the electronic device for communication; When the state indicates that the pen device is held by hand and close to the screen of the electronic device, the electronic device is controlled to delay response or not respond to the touch input of the hand received by the screen.
2. The method according to claim 1, characterized in that The controlling the electronic device to not respond to the touch input of the hand received by the screen comprises: The screen does not respond to the touch input of the hand received in the first N1 frames; Wherein, N1 is a positive integer, and in the first frame, no signal indicating that the pen device is in contact with the screen is detected.
3. The method according to claim 1, characterized in that The controlling the electronic device to not respond to the touch input of the hand received by the screen comprises: Buffering the data of the touch input of the hand in the first N2 frames received by the screen; wherein N2 is a positive integer, and the touch screen area of the touch input of the hand in the first N2 frames is less than or equal to a first threshold, and no signal of the pen device contacting the screen is detected within a time range corresponding to the first N2 frames; When the screen contact area of the touch input of the hand in the next frame of the first N2 frames received by the screen is greater than the first threshold, no response is made to the touch input of the hand in the next frame, and no response is made to the touch input of the cached data; or When the screen contact area of the touch input of the hand in the next frame of the previous N2 frames received by the screen is less than or equal to the first threshold, and the next frame detects a signal that the pen device contacts the screen, no response is given to the touch input of the hand in the next frame, and no response is given to the touch input of the cached data.
4. The method according to claim 1, characterized in that: The controlling the electronic device to perform a delayed response to the touch input of the hand received by the screen includes: Buffering the data of the touch input of the hand in the first N2 frames received by the screen; wherein N2 is a positive integer, and the touch screen area of the touch input of the hand in the first N2 frames is less than or equal to a first threshold, and no signal of the pen device contacting the screen is detected within a time range corresponding to the first N2 frames; When the screen contact area of the touch input of the hand in the next frame of the previous N2 frames received by the screen is less than or equal to the first threshold, and the next frame does not detect a signal of the pen device contacting the screen, cache the data of the touch input of the hand in the next frame; The touch input of the buffered data is responded to sequentially starting from the time corresponding to the next frame.
5. The method according to claim 3 or 4, characterized in that: After obtaining the state of the pen device connected to the electronic device for communication, the method further includes: In a case where the state does not indicate that the pen device is held and close to the screen of the electronic device, controlling the electronic device not to respond to a touch input received by the screen from a hand with a screen contact area greater than a second threshold; The second threshold is greater than the first threshold.
6. A control device, characterized in that: The device comprises: An acquisition module, used to acquire the state of the pen device connected to the electronic device for communication; The first control module is used to control the electronic device to delay response or not respond to the touch input received by the hand on the screen when the state indicates that the pen device is held and close to the screen of the electronic device.
7. The device according to claim 6, characterized in that The first control module comprises: A first control unit, configured to not respond to the touch input of the hand received by the screen in the first N1 frames; Wherein, N1 is a positive integer, and in the first frame, no signal indicating that the pen device is in contact with the screen is detected.
8. The device according to claim 6, characterized in that The first control module comprises: A first cache unit is used to cache data of touch input of the hand in the first N2 frames received by the screen, wherein N2 is a positive integer, and the touch screen area of the touch input of the hand in the first N2 frames is less than or equal to a first threshold, and no signal of the pen device contacting the screen is detected within a time range corresponding to the first N2 frames; a second control unit, configured to, when the screen contact area of the touch input of the hand of the next frame of the previous N2 frames received by the screen is greater than the first threshold, not respond to the touch input of the hand of the next frame, and not respond to the touch input of the cached data; A third control unit is used for not responding to the touch input of the hand in the next frame of the previous N2 frames received by the screen, and not responding to the touch input of the cached data when the screen contact area of the touch input of the hand in the next frame of the previous N2 frames is less than or equal to the first threshold and the next frame detects a signal that the pen device contacts the screen.
9. The device according to claim 6, characterized in that The first control module comprises: A second cache unit is used to cache data of the touch input of the hand in the first N2 frames received by the screen, wherein N2 is a positive integer, and the touch screen area of the touch input of the hand in the first N2 frames is less than or equal to a first threshold, and no signal of the pen device contacting the screen is detected within a time range corresponding to the first N2 frames; A third cache unit is used to cache data of the touch input of the hand in the next frame of the previous N2 frames, if the screen contact area of the touch input of the hand in the next frame received by the screen is less than or equal to the first threshold and the signal of the pen device contacting the screen is not detected in the next frame; The fourth control unit is used to respond to the touch input of the buffered data in sequence starting from the time corresponding to the next frame.
10. The device according to claim 8 or 9, characterized in that The device also includes: a second control module, configured to control the electronic device to not respond to a touch input received by the screen from a hand with a screen contact area greater than a second threshold value, if the state does not indicate that the pen device is held and close to the screen of the electronic device; The second threshold is greater than the first threshold.
11. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the control method according to any one of claims 1 to 5 are implemented.
