Touch screen anti-mistouch method, electronic device and storage medium
By obtaining relative position information between the stylus and the touch screen and setting different false touch conditions, the problem of inaccurate false touch judgment in the prior art is solved, and more efficient false touch recognition and user experience improvement is achieved.
Patent Information
- Application Number
- CN202211293419.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-21
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2042-10-21
AI Technical Summary
The prior art is difficult to accurately identify the situation where the stylus is accidentally touched on the touch screen, especially when the side of the palm or finger is accidentally touched, resulting in inaccurate judgment of the false touch, affecting the user experience.
By obtaining the relative position information of the stylus and the touch screen, including distance and angle, setting different error touch conditions, flexibly judging error touch situations, and improving judgment accuracy and flexibility.
Identify mist touches more accurately in different scenarios, improving user work efficiency and usage satisfaction.
Smart Images

Figure CN117917623B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of touch screens, and in particular to a touch screen anti-mistouch method, electronic device, and storage medium. Background Art
[0002] When a user uses a stylus to write on the touch screen of an electronic device, if a conductor other than the stylus, such as a part of the hand, accidentally touches the touch screen, causing the touch screen to detect point data corresponding to the touch of the conductor such as the hand, the touch screen may respond to the false touch of the conductor such as the hand, such as displaying traces of the false touch on the touch screen or opening the wrong application interface, etc., which will bring a bad user experience.
[0003] In the prior art, in order to reduce the impact of false touches, electronic devices with touch screens usually determine whether it is a false touch based on relevant conditions. For example, the touch panel (TP) algorithm of electronic devices with capacitive touch screens determines whether it is a false touch based on conditions such as the number of certain nodes in the area where the capacitance value of the capacitive touch screen changes significantly. If so, the device does not respond to the operation determined to be a false touch. However, when a user uses a stylus, the side of the palm or a finger, which serves as a support point, may accidentally touch the capacitive touch screen. The area of the capacitive touch screen that is accidentally touched is relatively small, so the number of certain nodes in the corresponding area where the capacitance value changes significantly is also relatively small. If the prior art is used to perform false touch judgment, it is often difficult for electronic devices with capacitive touch screens to accurately identify false touches. Summary of the Invention
[0004] The present application provides a touch screen anti-mistouch method, electronic device, and storage medium, which can set corresponding mistouch conditions according to different distances between the tip of a stylus pen and the touch screen and different angles between the stylus pen and the touch screen, so that the electronic device can identify mistouch situations in different scenarios, thereby improving the flexibility and accuracy of the electronic device in judging mistouch situations, and also improving the work efficiency and user satisfaction of users using the stylus pen and touch screen.
[0005] In a first aspect, a method for preventing false touches of a touch screen is provided, comprising obtaining first relative position information between the touch screens of a first electronic device and a second electronic device, and using a first false touch condition to determine whether a false touch occurs; obtaining second relative position information between the touch screens of the first electronic device and the second electronic device, and using a second false touch condition to determine whether a false touch occurs; wherein the first relative position information and the second relative position information include at least one parameter of distance and angle, and the first false touch condition and the second false touch condition are different.
[0006] In the above scheme, false touch judgment can be performed based on the first relative position information or the second relative position information, that is, different false touch conditions can be used according to different distances or angles. Compared with the existing false touch conditions, it is more flexible and can perform targeted false touch judgment according to different scenarios, thereby improving the user's work efficiency and usage satisfaction.
[0007] In combination with the first aspect, the first electronic device includes a stylus, and the second electronic device obtains the first relative position information and the second relative position information through the first electronic device.
[0008] In the above solution, after the stylus detects the first relative position information and the second relative position information between the stylus and the touch screen of the second electronic device, the stylus can send both to the second electronic device. In some embodiments, the first electronic device can also be another electronic device that needs to interact with the second electronic device.
[0009] In combination with the first aspect, in some implementations, the first relative position information includes the distance between the first electronic device and the touch screen, and a first false touch condition is used to determine whether a false touch occurs, including: if the distance belongs to the mth interval, determining whether a false touch occurs according to a first sub-false touch condition corresponding to the mth interval, the first false touch condition includes a first sub-false touch condition; wherein the first sub-false touch condition is that the number of nodes in a row or a column of the area where the capacitance value changes significantly is greater than or equal to k m The contact corresponding to the k nodes is judged as a false touch, m The node corresponds to the mth interval, m and k m is a natural number greater than or equal to 1. The smaller the distance interval is, the fewer the number of nodes in the first sub-false touch condition is.
[0010] In the above solution, the distance between the first electronic device and the touch screen is divided into different intervals, each of which corresponds to a first sub-false touch condition. By setting different first sub-false touch conditions for different intervals, false touches during use of the first and second electronic devices can be more accurately determined. Compared to existing false touch determination conditions, this approach is more flexible and accurate, improving the user experience.
[0011] It should be understood that the number of intervals, the parameter values in the first false touch condition and the first sub-false touch condition can be set according to the actual situation. This application does not limit it, as long as the number of nodes in the first sub-false touch condition corresponding to the interval with closer distance is smaller.
[0012] In combination with the first aspect, in some implementations, the second relative position information includes the distance between the first electronic device and the touch screen, and the angle between the first electronic device and the touch screen, and a second false touch condition is used to determine whether a false touch occurs, including: if the distance belongs to the nth interval and the angle belongs to the jth angle range, determining whether a false touch occurs according to a second sub-false touch condition corresponding to the jth angle range, the second false touch condition includes a sub-second false touch condition; wherein the second sub-false touch condition is that the number of nodes in a row or a column of the area where the capacitance value changes significantly is greater than or equal to k j The contact corresponding to the k nodes is judged as a false touch, j The node corresponds to the jth angle range of the nth interval, n, j and k j is a natural number greater than or equal to 1. The greater the possibility of mis-touch caused by the pen holding posture corresponding to the angle range in the nth interval, the fewer the number of nodes in the second sub-mis-touch condition corresponding to the angle range.
[0013] In the above solution, the angle between the first electronic device and the touch screen within the same interval is divided into different angle ranges, with each angle range corresponding to a second sub-false touch condition. By setting different second sub-false touch conditions for different angle ranges within the same interval, false touches can be more accurately and flexibly determined based on the usage of the first electronic device within the same interval, further improving the user experience.
[0014] In combination with the first aspect, in some implementations, the first false touch condition and the second false touch condition correspond to point reporting data, and the point reporting data includes touch coordinates, touch pressure, touch area shape, and capacitance value.
[0015] It can be understood that the second electronic device can determine the false touch situation based on the reporting point data, and different false touch conditions can be set corresponding to different contents of the reporting point data. For example, different false touch conditions can be set according to the touch coordinates, different false touch conditions can be set according to the touch pressure, and so on.
[0016] In combination with the first aspect, in some implementations, the first relative position information includes the distance between the first electronic device and the touch screen, and the first false touch condition is used to determine whether a false touch occurs, including: if the distance belongs to the ath interval, determining whether a false touch occurs based on the first sub-false touch condition corresponding to the ath interval, the first false touch condition includes the first sub-false touch condition; wherein a is a natural number greater than or equal to 1, and the smaller the distance, the stricter the first sub-false touch condition corresponding to the interval.
[0017] In the above scheme, the first false touch condition and the first sub-false touch condition can be set according to the parameter content in the reporting data. For example, if the first false touch condition set according to the touch pressure is that the touch pressure is less than or equal to F1 is a false touch, then the first sub-false touch conditions corresponding to different intervals can be set, as long as the touch pressure value in the first sub-false touch condition corresponding to the interval with smaller distance is smaller.
[0018] In combination with the first aspect, in some implementations, the second relative position information includes the distance between the first electronic device and the touch screen, and the angle between the first electronic device and the touch screen, and the second false touch condition is used to determine whether there is a false touch, including: if the distance belongs to the bth interval and the angle belongs to the cth angle range, determine whether there is a false touch according to the second sub-false touch condition corresponding to the cth angle range, and the second false touch condition includes a second sub-false touch condition; wherein b and c are natural numbers greater than or equal to 1, the greater the possibility of false touch caused by the pen holding posture corresponding to the angle range in the bth interval, the stricter the second sub-false touch condition corresponding to the angle range.
[0019] In the above scheme, the second false touch condition and the second sub-false touch condition can be set according to the parameter content in the reporting data. For example, if the second false touch condition set according to the touch pressure is that the touch pressure is less than or equal to F1 is a false touch, then the second sub-false touch conditions corresponding to different angle ranges in the same interval can be set. As long as the posture corresponding to the angle range in the same interval is more likely to produce a false touch, the smaller the touch pressure value in the corresponding second sub-false touch condition can be.
[0020] In combination with the first aspect, in some implementations, the point reporting data is data generated by a touch operation.
[0021] It can be understood that the reporting point data is data corresponding to the touch position generated by the second electronic device when it detects a touch operation on the touch screen.
[0022] In a second aspect, the present application provides an electronic device, characterized in that it includes a processor and a memory, the memory is used to store instructions, and the processor is used to execute instructions. When the processor executes the instruction, it performs the method described in the first aspect.
[0023] In a third aspect, the present application provides a computer-readable storage medium, characterized in that instructions are stored in the computer-readable storage medium, and when the instructions are run on an electronic device, the method described in the first aspect is executed.
[0024] In a fourth aspect, the present application provides a computer program product, characterized in that the computer program product includes computer instructions, and when executed by an electronic device, the electronic device performs the method described in the first aspect.
[0025] In summary, the touch screen anti-mistouch method provided by the present application sets different mistouch conditions for different distances between the tip of the stylus pen and the touch screen, and different angles between the stylus pen and the touch screen in the same range. This method can be applied to more usage scenarios, and the judgment of mistouch situations on the touch screen is more flexible and accurate, thereby greatly improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] To more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can derive other drawings based on these drawings without inventive effort.
[0027] Figure 1 According to some embodiments of the present application, a schematic diagram of interactive operation between a stylus pen and an electronic device is shown;
[0028] Figure 2 According to some embodiments of the present application, a schematic diagram of a working cycle of a stylus and a touch screen is shown;
[0029] Figure 3 According to some embodiments of the present application, a schematic diagram of a scene of writing with a stylus is shown;
[0030] Figure 4 According to some embodiments of the present application, a schematic diagram of a point reporting on a touch screen is shown;
[0031] Figure 5 According to some embodiments of the present application, a schematic diagram of a software structure of an electronic device is shown;
[0032] Figure 6 According to some embodiments of the present application, a schematic diagram of the software structure of a stylus is shown;
[0033] Figure 7 According to some embodiments of the present application, a schematic diagram of capacitance change on a stylus after a hand holds the stylus is shown;
[0034] Figure 8 According to some embodiments of the present application, a schematic diagram of an interaction process between various modules in a touch screen and a stylus is shown;
[0035] Figure 9 According to some embodiments of the present application, a schematic flow chart of a method for preventing accidental touches of a touch screen is shown;
[0036] Figure 10According to some embodiments of the present application, a schematic diagram of the hardware structure of an electronic device is shown;
[0037] Figure 11 According to some embodiments of the present application, a schematic diagram of the hardware structure of a stylus is shown. DETAILED DESCRIPTION
[0038] Various aspects of the illustrative embodiments will be described below using terms commonly employed by those skilled in the art.
[0039] It can be understood that the illustrative embodiments of the present application include but are not limited to a method for preventing accidental touches of a touch screen, an electronic device, and a storage medium.
[0040] The business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field will know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0041] The technical solutions provided by the various embodiments disclosed in this application are applicable to various electronic devices, not limited to the tablet computer 100. For example, the electronic device may include, but is not limited to, user equipment (UE), a terminal, etc. For example, the electronic device may be a tablet computer (portable android device, PAD), a personal digital assistant (PDA), a handheld device with wireless communication function, a computing device, a vehicle-mounted device or a wearable device, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc., a mobile terminal or a fixed terminal with a touch screen, and may also include an electronic device with both a touch screen and a physical button. In the embodiments of this application, the form of the terminal device is not specifically limited.
[0042] In order to more clearly understand the solutions in the embodiments of the present application, some terms involved in the embodiments of the present application are first explained below.
[0043] Stylus: also known as a touch pen, can be used to write, draw, or replace mouse operations on the touch screen of the corresponding terminal device.
[0044] A touch screen, also known as a "touch screen" or "touch panel," is a sensitive liquid crystal display device that receives input signals from a stylus, such as a stylus tip. When a graphical button on the screen is released, the touch screen's tactile feedback system activates various connected devices according to pre-programmed signals. Touch screens can be broadly categorized by sensor type: infrared, resistive, surface acoustic wave, and capacitive.
[0045] Capacitive touch screen technology: This is a touch screen technology that uses the human body's capacitive sensing to work. The principle is that when a finger touches the touch screen, due to the human body's electric field, a coupling capacitor is formed between the user and the touch screen surface, and the finger absorbs a very small capacitance signal from the contact point. This capacitance signal flows out from the detection nodes at the four corners of the touch screen, and the capacitance signal flowing through these four detection nodes is proportional to the distance from the finger to the four corners. The processor can then accurately calculate the capacitance detection of these four electrodes to determine the location of the touch point. The electronic device can then monitor the user's touch operation based on the change in capacitance value at the touch position on the entire screen.
[0046] Refresh rate of an electronic device: The number of times the display screen of an electronic device is refreshed per second, also known as display frequency or display frame rate. Refresh rates of electronic devices can include 60Hz, 90Hz, 120Hz, etc.
[0047] The electronic device and the stylus work synchronously: the stylus decodes the uplink synchronization signal of the electronic device, and after successful decoding, sends a downlink signal according to the corresponding parameter value in the communication protocol negotiated with the electronic device. After the electronic device receives and decodes the downlink signal, it obtains the position information of the stylus.
[0048] As described in the background technology, taking the electronic device as a tablet computer and the touch screen as a capacitive touch screen as an example, firstly, Figures 1 to 4 The interactive working process of the electronic device 100 with the touch screen 101 and the stylus 200 is described. Figure 1 and 2As shown, after the touch screen 101 and the stylus 200 are connected, the stylus 200 approaches the touch screen 101 from a distance, and the touch screen 101 sends an uplink synchronization signal to the stylus 200 in each working cycle. The uplink synchronization signal is used to make the stylus 200 and the electronic device 100 work synchronously. Among them, the time between the touch screen 101 sending two adjacent uplink synchronization signals is a working cycle. For example, if the refresh rate of the touch screen 101 is 60Hz, then the working cycle of the touch screen 101 is 16.6ms. The stylus 200 searches for the uplink synchronization signal in each working cycle. If the stylus 200 searches for the uplink synchronization signal successfully, then the stylus 200 will perform coding according to the parameter values specified in the communication protocol between the touch screen 101 and the stylus 200 during the remaining time of this working cycle, that is, send a downlink signal, that is, Figure 2 At the beginning of the n+1th working cycle shown, if the stylus 200 successfully decodes the uplink synchronization signal, the stylus 200 will code the touch screen 101. The touch screen 101 collects the mutual capacitance, self-capacitance, and noise on its screen during each working cycle. In the prior art, the stylus 200 can search for the uplink synchronization signal at a distance of less than or equal to 20 cm from the tip of the stylus to the touch screen 101, while the touch screen 101 may need to be at a shorter distance, such as 10 mm, to stably collect the downlink signal. Therefore, Figure 2 The touch screen shown may collect the coding signal of the stylus 200 in a working cycle after the (n+2)th working cycle. After the signal amount of the collected downlink signal is greater than the threshold, the touch screen 101 will switch from the previous working mode, such as the hand-pen simultaneous mode, to the pen mode. The hand-pen simultaneous mode is a mode in which the touch screen 101 can respond to signals from both the hand and the stylus, and the pen mode is a mode in which the touch screen 101 only responds to signals from the stylus 200. As described above, the ability of the stylus 200 to search for uplink synchronization signals is greater than the ability of the touch screen 101 to search for downlink signals. By having the stylus 200 search for uplink synchronization signals, the distance between the stylus 200 and the touch screen 101 can be more conveniently determined.
[0049] like Figure 3 In the example, the user uses the stylus pen 200 to click on the touch screen 101 of the tablet computer 100 . On the input interface of the touch screen 101 , the stylus pen 200 , the user's little finger, and the side of the palm holding the pen all contact the three areas A1 , B1 , and C1 of the touch screen 101 . Figure 4 It is the full-screen capacitance value of a certain frame detected by the touch sensor on the touch screen 101 in a life cycle. A life cycle is the process from the stylus or hand or other conductor starting to contact the touch screen 101 to leaving the touch screen 101. Figure 4As shown, touch screen 101 is equipped with 16×34 touch sensors, with 16 representing the number of touch sensors in each row and 34 representing the number of touch sensors in each column. Each data point corresponds to the capacitance detected by a touch sensor. Touch screen 101 detects significant capacitance changes at the sensor nodes within the dashed boxes (A2, B2, and C2) corresponding to areas A1, B1, and C1, respectively. It is understood that the number of touch sensors in each row and column of touch screen 101 can be adjusted based on specific circumstances. Figure 4 The capacitance values detected by the touch sensor in the dotted boxes of areas A2, B2, and C2 are greater than the capacitance values of the untouched areas outside the dotted boxes. Therefore, the processor of the electronic device 100 can generate reporting point data based on the data corresponding to the three dotted boxes A2, B2, and C2, such as capacitance values, where each dotted box can correspond to a reporting point, and each reporting point corresponds to a set of reporting point data, including information such as touch coordinates, touch pressure, touch area shape, and capacitance value. Then, the electronic device 100 performs corresponding operations based on the reporting point data, such as opening the corresponding application, displaying the corresponding handwriting, etc.
[0050] Figure 4 In the figure, the sizes of the three dotted boxes A2, B2 and C2 are 4×3, 5×4 and 6×5 respectively, that is, the three areas A1, B1 and C1 on the touch screen 101 have 4×3 touch sensors, 5×4 touch sensors and 6×5 touch sensors respectively. The capacitance value changes greatly due to the contact of the three areas of the stylus 200, the user's little finger and the side of the palm holding the pen. It can be understood that the three dotted boxes A2, B2 and C2 are rectangles. However, in actual scenarios, since the shape of the conductor touching the touch screen 101, the duration of the touch, etc. are not uniform, the shapes of the areas of the sensor nodes with large instantaneous capacitance changes on the touch screen will also be different and may not be regular. In some embodiments, the contact corresponding to the situation where the number of nodes in a row or a column in the dotted box is greater than or equal to the preset threshold is usually judged as a false touch. For example, the preset threshold can be 10 nodes, corresponding to the three dotted boxes A2, B2 and C2, because Figure 4 The area of the user's little finger and the side of the palm holding the pen that contacts the touch screen 101 is small, making Figure 4 The sizes of the dashed boxes in areas B and C are only 5×4 and 6×5, respectively. Therefore, the number of nodes in the dashed boxes in areas B and C does not meet the criteria for determining a false touch. Therefore, the touch screen 101 will respond to false touches by the user's little finger and the side of the palm of the hand, for example, by displaying additional handwriting in areas B and C of the touch screen 101, affecting the user's experience. It is understood that the above-mentioned preset thresholds can be adjusted according to actual conditions and are not specifically limited here.
[0051] Therefore, in order to help the touch screen more accurately distinguish false touches, the present application proposes a method for preventing false touches for a touch screen. After determining that a false touch may occur, such as when the stylus is held by a hand or other limb, and the distance between the tip of the stylus and the touch screen meets a first threshold (in the first threshold, the stylus can search for the uplink synchronization signal emitted by the electronic device), different false touch conditions are set according to different distances between the tip of the stylus and the touch screen and different angles between the stylus and the touch screen. This can help the electronic device more accurately identify false touches in different scenarios, improve the flexibility and accuracy of the electronic device in judging false touches, and further improve the user's work efficiency and usage satisfaction.
[0052] Specifically, after determining the situation in which an accidental touch may occur, the distance between the stylus tip and the touch screen can be divided into a first range and a second range. In the second range, the distance between the stylus tip and the touch screen is closer than in the first range. Therefore, compared to the first range, in the second range, the user's hand or other body part is more likely to accidentally touch the touch screen. Therefore, the accidental touch conditions for the second range need to be stricter than those for the first range.
[0053] Then, within the same range, the angle range between the stylus and the touch screen can be set to a first angle range and a second angle range. Within the first angle range, the user is likely holding the stylus and writing normally on the touch screen, and the hand or other body parts are most likely to accidentally touch the touch screen. In the second angle range, the user is not holding the stylus and writing normally, which means that compared to the first angle range, the hand or other body parts are less likely to accidentally touch the touch screen. Therefore, within the same range, the accidental touch condition corresponding to the first angle range needs to be more stringent than the accidental touch condition corresponding to the second angle range.
[0054] For example, if the first threshold is set to 15 cm, the first interval can be set to [5, 15] cm, the second interval can be set to [0, 5) cm, the first angle range can be set to [20°, 55°], and the second angle range can be set to [0°, 20°) and (55°, 90°]. If the original false touch condition of the electronic device is to judge the contact corresponding to a row or a column in the area where the capacitance value changes greatly is greater than 10 nodes as a false touch, then the false touch condition corresponding to the first interval can be set to judge the contact corresponding to a row or a column in the area where the capacitance value changes greatly is greater than 8 nodes as a false touch, and the false touch condition corresponding to the second interval can be set to judge the contact corresponding to a row or a column in the area where the capacitance value changes greatly is greater than 7 nodes as a false touch.
[0055] In the first interval, the false touch condition corresponding to the first angle range can be set as follows: the contact corresponding to a row or column in the area where the capacitance value changes greatly is greater than 7 nodes is judged as a false touch, and the false touch conditions corresponding to other angle ranges are that the contact corresponding to a row or column in the area where the capacitance value changes greatly is greater than 8 nodes is judged as a false touch; in the first interval, the false touch condition corresponding to the first angle range can be set as follows: the contact corresponding to a row or column in the area where the capacitance value changes greatly is greater than 5 nodes is judged as a false touch, and the false touch conditions corresponding to other angle ranges are that the contact corresponding to a row or column in the area where the capacitance value changes greatly is greater than 7 nodes is judged as a false touch.
[0056] It can be understood that the content and values of the parameters in the original false touch conditions, the false touch conditions in different intervals, and the false touch conditions in different angle ranges in the same interval can be set according to the reporting data or other data and signals that can be used to judge false touches, and the number of intervals and value ranges, the number and value ranges of angle ranges can also be adjusted according to different situations, as long as it is met that in different intervals, the false touch conditions corresponding to the intervals with closer distances are stricter than the false touch conditions corresponding to the intervals with farther distances, and in the same interval, the false touch conditions corresponding to the angle range with a greater possibility of false touch are stricter, and in a certain interval, the false touch conditions corresponding to a certain angle range can be the same as or stricter than the false touch conditions corresponding to the interval.
[0057] Furthermore, the point reporting data may be data containing information such as touch coordinates, touch pressure, touch area morphology, and capacitance value. For example, if the original false touch condition is that a contact with a touch pressure less than or equal to F1 N is a false touch, then the false touch condition corresponding to the first interval may be set to a contact less than or equal to F2 N as a false touch, and the false touch condition corresponding to the second interval may be set to a contact less than or equal to F3 N as a false touch. The distance between the tip of the stylus pen and the touch screen indicated by the second interval is closer than that of the first interval, wherein F1, F2, and F3 are real numbers, and F2 is greater than F3. At the same time, under the first interval, the false touch condition corresponding to the first angle range may be set to a contact less than or equal to F4 N as a false touch, and the false touch condition corresponding to the second angle range may be set to a contact less than or equal to F5 N as a false touch. The possibility of a false touch in the first angle range is greater than that in the second angle range. F1, F4, and F5 are real numbers, and F5 is greater than F4. Here, there is no specific limitation on the content and values of the parameters in the original false touch conditions, false touch conditions in different intervals, and false touch conditions in different angle ranges in the same interval, the number and value ranges of the intervals, and the number and value ranges of the angle ranges.
[0058] The following is a detailed introduction to a method for preventing accidental touches of a touch screen provided in an embodiment of the present application in combination with a specific technical solution.
[0059] Before describing in detail a method for preventing accidental touches of a touch screen according to an embodiment of the present application, the software structure of the tablet computer 100 will be described by taking the electronic device as an example.
[0060] The software system of the tablet computer 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the present invention, the Android system with a layered architecture is used as an example to illustrate the software architecture of the tablet computer 100.
[0061] A layered architecture divides software into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces. Figure 5 According to an embodiment of the present application, a software structure diagram of a tablet computer 100 is shown. Figure 5 In some embodiments, the Android system is divided into four layers, which are, from top to bottom, the application layer 01, the application framework layer 02, the system library and runtime library 03, and the Linux kernel layer 04.
[0062] The application layer 01 may include a series of application packages, which may include applications such as camera, gallery, calendar, call, map, navigation, etc.
[0063] The application framework layer 02 provides an application programming interface (API) and a programming framework for the applications of the application layer 01. The application framework layer includes some predefined functions.
[0064] The application framework layer 02 may include a content provider, a view system, a window manager, a resource manager, a state manager, an anti-mistouch module, and the like.
[0065] Content providers are used to store and retrieve data and make it accessible to applications. This data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0066] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0067] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0068] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0069] The state manager is used to manage the display state, touch state, etc. of the display screen 130. For example, the state manager can set the state of the display screen to a light state or an off state. The state manager can also enable or disable the touch function of the display screen.
[0070] The anti-false touch module is used to call functions in the system library or core library, obtain the point reporting data triggered by the touch operation from the kernel layer, and determine whether the touch operation is a false touch operation based on the point reporting data. The point reporting data can be data containing information such as touch coordinates, touch pressure, touch area shape, capacitance value, etc.
[0071] The system library and runtime layer 03 may include:
[0072] The Android runtime is responsible for scheduling and management of the Android system, including the core library and the virtual machine. The core library consists of two parts: one for the Java language's callable functions and the other for the Android core library. The application layer 01 and the application framework layer 02 run in the virtual machine. The virtual machine executes the Java files in the application layer 01 and application framework layer 02 as binary files. The virtual machine performs functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0073] System library, including multiple functional modules, such as image rendering library, image synthesis library, function library, media library, input database, etc.
[0074] Image rendering libraries are used to render two-dimensional or three-dimensional images.
[0075] The image synthesis library is used to synthesize two-dimensional or three-dimensional images.
[0076] The function library provides macros, type definitions, string operation functions, mathematical calculation functions, and input and output functions used in the C language.
[0077] The media library supports playback and recording of many common audio and video formats, as well as still image files. The media library can support a variety of audio and video coding formats, such as: Moving Picture Experts Group (MPEG) 4, H.264, Moving Picture Experts Group Audio Layer III (MP3), Advanced Audio Coding (AAC), Adaptive Multirate (AMR), Joint Photographic Experts Group (JPG), and Portable Network Graphics (PNG).
[0078] The input processing library is a library used to process input devices, which can implement mouse, keyboard and touch input processing, etc.
[0079] The Linux kernel 04 is a layer between hardware and software. The Linux kernel 04 includes at least power management, Bluetooth driver, touch screen driver, display driver, sensor driver, etc.
[0080] The touch screen driver is used to process the touch signal generated by the touch screen TP (e.g., the combination of the touch sensor 180K and the display screen 194), for example, to convert the touch signal into point reporting data. When the TP is a capacitive touch screen, the touch signal can be data containing capacitance values.
[0081] The display driver is used to convert the data containing the window content into an electrical signal that can be recognized by the display screen 130, and control the display screen 130 to display the window content through the electrical signal.
[0082] The sensor driver may include a driver corresponding to a touch sensor, etc., for collecting and generating a touch signal corresponding to a contact on the touch screen TP.
[0083] Bluetooth drivers are used to implement wireless connections between electronic devices and other hardware devices.
[0084] I understand. Figure 5 The software architecture of the tablet computer 100 shown is only an example. In other embodiments, the software architecture of the tablet computer 100 may adopt other architectures, which is not limited here.
[0085] Before introducing in detail a method for preventing accidental touches of a touch screen according to an embodiment of the present application, the software structure of the stylus pen 200 is introduced.
[0086] Figure 6This is a software structure diagram of a stylus 200 provided in an embodiment of the present application. Figure 6 As shown, the software system of the stylus pen 200 may include a main control module 210 , an uplink decoding module 220 , a coding module 230 , a touch module 240 , a gesture module 250 , a transmission module 260 , and the like.
[0087] The main control module 210 is used to control the stylus 200 to work, such as controlling the stylus to decode the uplink synchronization signal, controlling the stylus to send distance signals, posture signals, etc., and controlling the stylus to communicate through the transmission module 260, etc.;
[0088] The uplink decoding module 220 is used to search for an uplink synchronization signal in each working cycle according to the communication protocol between the touch screen and the stylus pen, and obtain a distance signal including the distance between the tip of the stylus pen 200 and the touch screen 101 by decoding the uplink synchronization signal;
[0089] The coding module 230 is used to transmit the position signal, pressure signal, keystroke information and other information of the stylus to the electronic device via other wireless transmission methods such as the coding module 230;
[0090] The touch module 240 is used to sense whether a hand is holding the stylus and recognize the operation gesture. When the stylus 200 is an active capacitive stylus, the touch module 240 is used to detect parameters such as the capacitance value on the stylus 200;
[0091] The posture module 250 is used to sense the posture of the pen and accurately obtain the pen posture change. When the stylus 200 is an active capacitive stylus, the posture module 250 is used to detect the posture of the stylus 200 relative to the touch screen 101, such as the angle.
[0092] The transmission module 260 is used to communicate with electronic devices and transmit distance signals, posture signals, pressure signals, position signals, key information and the like.
[0093] Taking the stylus 200 as an active capacitive stylus as an example, when the user holds the stylus with a hand or other limb, the touch module 240 will Figure 7As shown, the capacitance value on the stylus 200 is collected, and a significant capacitance change is detected in the dashed box areas D and E. The dashed box area D includes a column of three touch sensor nodes, and the dashed box area E also includes a row of three touch sensor nodes. The six touch sensor nodes in the dashed boxes D and E have a larger capacitance than the surrounding sensor nodes. Each sensor node corresponds to a touch sensor. If a row or column on the stylus body contains nodes greater than or equal to the original threshold, for example, the original threshold is equal to three nodes, the stylus 200 will transmit a signal including the capacitance value to the electronic device 100 via the transmission module 260. The processor 110 of the electronic device 100 can then determine that the stylus 200 is in palm pen mode. It is understood that the above-mentioned original threshold can be adjusted according to actual conditions and is not specifically limited here.
[0094] It can be understood that the stylus 200 also includes other modules such as a pressure sensing module and an acceleration module.
[0095] It can be understood that the embodiment of the present application does not specifically limit the shape of the stylus.
[0096] The following embodiments can be implemented on a tablet computer 100 with a capacitive touch screen 101 and a stylus 200 having the aforementioned hardware / software architecture. The following embodiments will use the tablet computer 100 with a capacitive touch screen 101 and the stylus 200 as examples to illustrate a touch screen anti-mistouch method.
[0097] The following combination Figure 6 and Figure 7 , introduces a schematic diagram of the interactive workflow between an electronic device with a touch screen and a stylus in the process of implementing a touch screen anti-mistouch method proposed in an embodiment of the present application. As an example and not a limitation, the interactive workflow can apply the above-mentioned touch screen anti-mistouch method. The specific interactive process is as follows Figure 8 As shown, the following steps may be included:
[0098] S1001, establishing a communication connection.
[0099] In some embodiments, the electronic device can establish a communication connection with the stylus via a Bluetooth driver. For example, the Bluetooth function of the electronic device and the stylus can be turned on by pressing a Bluetooth turn-on button on the electronic device and the stylus. The electronic device can also communicate with the stylus via wireless local area networks (WLAN), global navigation satellite systems (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc., which are not described in detail here.
[0100] S1002: Send an uplink synchronization signal.
[0101] The electronic device sends an uplink synchronization signal to the stylus through the touch screen driver, and the stylus decodes the uplink synchronization signal to work synchronously with the electronic device.
[0102] S1003: Search for an uplink synchronization signal to obtain distance information.
[0103] The stylus pen can receive and decode the uplink synchronization signal, and obtain the distance between the tip of the stylus pen and the touch screen of the electronic device through the uplink synchronization signal.
[0104] S1004, sending distance information.
[0105] The stylus can send distance information to the electronic device through the coding module 230 .
[0106] It is understandable that the stylus pen can also send the distance information to the electronic device through other wired or wireless methods, and the specific sending method is not specifically limited here.
[0107] S1005, detecting hand contact information.
[0108] The stylus can detect hand contact information through the touch module 240. For example, when the stylus is an active capacitive stylus, the stylus detects changes in capacitance on the stylus through the touch module 240. In the embodiments of the present application, the type of stylus and the corresponding hand contact information are not specifically limited.
[0109] S1006, detecting posture information.
[0110] The stylus can detect its posture information through the posture module 250. When the stylus is an active capacitive stylus, the stylus can detect its angle relative to the touch screen through the posture module 250. In the embodiments of the present application, the type of stylus and the corresponding posture information are not specifically limited.
[0111] It can be understood that there is no specific limitation on the order of step S1003, step S1005 and step S1006, that is, step S1003, step S1005 and step S1006 can be performed at the same time or at different times.
[0112] S1007, sending hand contact information and gesture information.
[0113] After detecting hand contact information and gesture information, the stylus sends both to the electronic device through the transmission module 260. It can be understood that there is no specific limitation on the manner and order in which the stylus sends the distance information, hand contact information, and gesture information. That is, the stylus can send the distance information, hand contact information, and gesture information at the same time or at different times through any possible wired or wireless means.
[0114] S1008: Generate a touch signal.
[0115] When a conductor such as a stylus or a user's hand contacts or approaches a touch screen of an electronic device, taking a capacitive touch screen as an example, a touch sensor on the touch screen generates a touch signal including a capacitance value.
[0116] S1009, generating reporting point data.
[0117] The touch screen driver of the electronic device generates corresponding point reporting data from the touch signal, wherein the point reporting data includes touch coordinates, touch pressure, touch area shape, capacitance value, etc.
[0118] S1010, determine whether it is an accidental touch, if so, go to step S1010 to continue the next judgment, if not, go to step S1011.
[0119] The anti-false touch module determines whether the touch signal corresponding to the reporting point data is a false touch touch signal. The specific method of determining whether it is a false touch will be described in detail in the following process of a touch screen anti-false touch method.
[0120] S1011, respond to the reporting point data.
[0121] If the anti-false touch module of the electronic device determines that the touch signal corresponding to the reporting point data is not from a false touch, but from a normal touch, the anti-false touch module of the electronic device converts the reporting point data into a touch event including information such as touch coordinates, and sends the touch event to the window manager. After the window manager converts the touch event into a system touch event, it sends the system touch event to the window. Among them, the system touch event includes touch coordinates and event types, and the event types include press, slide, lift, cancel, etc. After the application corresponding to the window receives the system touch event, it sends the system touch event to the control of the touch area. The control of the touch area generates the user interface (UI) change content and passes the user interface change content to the view system of the application framework layer. The view system calls the system library and reverse drawing, rendering synthesis and other processing according to the user interface change content to generate a frame, and then sends the frame to the display screen for display through the display driver, that is, responding to the reporting point data to display handwriting, open the corresponding application, etc.
[0122] The following embodiment proposes a method for preventing accidental touches of a touch screen based on the tablet computer 100 with a capacitive touch screen 101 and the stylus 200 having the above software structure. The method will be described in detail below.
[0123] like Figure 9 As shown, after the stylus pen and the electronic device with a touch screen are successfully connected to each other, on the one hand, the stylus pen can search for the uplink synchronization signal sent by the electronic device, and after the search is successful, obtain the distance information between the tip of the stylus pen and the touch screen of the electronic device, and send the distance information to the electronic device. On the other hand, the stylus pen can detect whether there is a hand or other limb holding the stylus pen through the touch module, and also send the obtained hand contact information to the electronic device. In addition, the stylus pen can also detect the posture of the stylus pen through the posture module and send the posture information to the electronic device. In order to help electronic devices identify false touches more flexibly and accurately, the embodiment of the present application proposes the following Figure 9 The touch screen anti-mistouch method shown is used as an example but not limitation. The input can specifically include the following steps. For the sake of ease of description, the execution subject of the following steps is an electronic device with a capacitive touch screen, and the stylus is an active capacitive stylus.
[0124] S1101, determining that it is in the first situation.
[0125] The electronic device determines whether the current situation is in a first situation based on the received distance information and hand contact information of the stylus. The first situation is a situation where a false touch may occur, that is, a conductor such as a hand may falsely touch the touch screen, causing the touch screen to respond. For example, the first situation is when the stylus is held by a hand or limb, and the distance between the stylus tip and the touch screen is less than or equal to a first threshold. Within the first threshold, the stylus can search for the uplink synchronization signal sent by the touch screen. The value of the first threshold can be set according to the specific situation. For example, the first threshold can be set according to the user's height. For users with a height range of [160, 180] cm, the first threshold can be set to 15 cm; for users with a height range of [140, 160) cm, the first threshold can be set to 10 cm; for users with a height range greater than 180 cm, the first threshold can be set to 20 cm; for users with a height range less than 140 cm, the first threshold can be set to 7 cm, and so on.
[0126] It is understandable that the value of the first threshold can be set according to different users in actual situations and can be adjusted according to actual usage data in the future, and is not specifically limited here.
[0127] S1102, setting an accidental touch condition according to the distance.
[0128] After the electronic device determines that the distance between the tip of the stylus pen and the touch screen is less than or equal to the first threshold, the distance between the tip of the stylus pen and the touch screen can be further set to N intervals, where N is a natural number greater than or equal to 1.
[0129] For example, if N is set to 2 and the first threshold is 15 cm, then the first interval can be set to [5, 15] cm and the second interval can be set to [0, 5) cm. In the second interval, the tip of the stylus is closer to the touch screen, so a conductor such as a hand is more likely to touch the touch screen, which means that there is a greater possibility of accidental touches.
[0130] If the original false touch condition determines that the touch area, i.e., the area on the touch screen where the capacitance value changes greatly, has a row or a column with more than or equal to a preset threshold number of nodes, such as 10 nodes, and the contact is determined to be a false touch, then according to the existing settings, the first false touch condition corresponding to the first interval can be strictly limited to, for example, 8 nodes, which is smaller than 10 nodes and stricter than the original false touch condition. This is more suitable for the situation where a small area of the touch screen may be mistakenly touched by a finger or the side of the hand in the hand holding stylus mode. That is, in the first interval, if the number of nodes in a row or a column in the touch area is greater than or equal to 8 nodes, the touch is determined to be a false touch.
[0131] At the same time, the second false touch condition corresponding to the second interval is strictly limited to, for example, 7 nodes, which is smaller than 8 nodes and more stringent than the first false touch condition. This is more suitable for situations in which, when holding a stylus, there is a greater possibility of false touches on a smaller area of the touch screen, such as fingers or the side of the hand, than in the first interval. In other words, in the second interval, if the number of nodes in a row or column of the touch area is greater than or equal to 7 nodes, the touch is considered a false touch.
[0132] It is understood that the value of N can be set based on actual needs. In practical situations, the distance between the stylus tip and the touch screen can also be set to another number of intervals. The specific number can be set based on actual needs, as long as the false touch conditions corresponding to closer distance intervals are more stringent than those corresponding to farther distance intervals. The number of intervals is not specifically limited here. At the same time, the preset threshold value of the original false touch condition can also be other values. The degree of strictness and the difference between the original false touch condition and the false touch conditions corresponding to different intervals can also be limited based on actual needs, and are also not specifically limited here.
[0133] S1103: In the same interval, set the false touch condition according to the angle.
[0134] After determining that the stylus is in a certain interval, the electronic device may further set the angle between the stylus and the touch screen to M ranges according to the posture information, where M is a natural number greater than or equal to 1.
[0135] For example, M is set to 2, the first angle range is set to [20°, 55°], and the second angle range is set to [0°, 20°) and (55°, 90°]. In the first angle range, the user may be in a normal writing state with the stylus held in the right hand or the left hand. Compared with other angle ranges, the possibility of the hand or other part of the body accidentally touching the touch screen is greater.
[0136] If the touch screen is currently in the first interval, the first false touch condition corresponding to the first interval is that there are contacts corresponding to 8 or more nodes in a row or column in the touch area, that is, an area on the touch screen with a large capacitance change, and the touch screen is judged as a false touch. Then, based on the existing settings, a third false touch condition corresponding to the first angle range can be set, such as a strict limit of 5 nodes, which is smaller than 8 nodes and more stringent than the first false touch condition. This is more suitable for situations in which a small area of the touch screen may be mistakenly touched by a finger or the side of the hand in the hand holding stylus mode. That is, when the distance between the tip of the stylus and the touch screen is within the range of [5, 15] cm and the angle between the stylus and the touch screen is within the first angle range, if there are 5 or more nodes in a row or column in the touch area, the touch is judged as a false touch. At the same time, the fourth false touch condition corresponding to the second angle range is strictly limited to, for example, 7 nodes, which is larger than 5 nodes and smaller than 8 nodes. This is more relaxed than the third false touch condition and more stringent than the first false touch condition. This is more suitable for situations in which, when holding the stylus, a smaller area of the touch screen may be accidentally touched by a finger, the side of the hand, or other objects, at a smaller angle than the first angle range within the same range. In other words, when the distance between the stylus tip and the touch screen is within the range of [5, 15] cm, and the angle between the stylus and the touch screen is within the second angle range, if the number of nodes in a row or column in the touch area is greater than or equal to 7, the touch is considered a false touch.
[0137] It is understood that within the same interval, the false touch conditions for different angle ranges should be set based on the likelihood of false touches. The greater the likelihood of false touches, the stricter the false touch conditions. The same false touch conditions also apply to angle ranges with the same likelihood of false touches. However, the false touch conditions corresponding to an angle range can be equal to the false touch conditions corresponding to that interval. For example, the fourth false touch condition corresponding to the second angle range can be strictly limited to 8 nodes, which is greater than 5 nodes and more relaxed than the third false touch condition, but the same as the first false touch condition. That is, when the distance between the stylus tip and the touch screen is within the range of [5, 15] cm, and the angle between the stylus and the touch screen is within the second angle range, if the number of nodes in a row or column in the touch area is greater than or equal to 8 nodes, the touch is determined to be a false touch.
[0138] It can be understood that in specific practical situations, the angle between the stylus and the touch screen in the same interval can also be set to an angle range of other numbers and values. The specific number and value can be set according to actual needs, as long as the angle range with a greater possibility of false touch in the same interval is stricter, the number and value of the angle range are not specifically limited here. At the same time, the preset threshold of the original false touch condition can also be other values, and the size and difference of the strictness of the original false touch condition and the false touch conditions corresponding to different angle ranges can also be set according to actual needs, and are also not specifically limited here. At the same time, the size and difference of the strictness between the false touch conditions in different intervals corresponding to the same angle range can also be set according to actual needs, and are also not specifically limited here.
[0139] It is understood that in the prior art, electronic devices determine whether a touch is a false touch based on point reporting data, which includes information such as touch coordinates, touch pressure, touch area morphology, and capacitance values. In the above embodiment, the original false touch condition is that the number of nodes in a certain row or column in the touch area morphology is greater than or equal to a preset threshold. It is understood that if the original false touch condition uses other information in the point reporting data as a judgment condition, or uses other data or signals as a judgment condition, then using the above touch screen false touch prevention method, the actual parameters of the false touch conditions in different intervals and the false touch conditions in different angle ranges within the same interval can be adjusted according to specific circumstances. For example, the actual parameters can correspond to the touch coordinates, touch pressure, capacitance values, etc. in the original false touch conditions, as long as the false touch conditions corresponding to closer intervals are stricter than those corresponding to farther intervals within the same interval, and the false touch conditions are stricter within the same interval as the stylus posture increases the likelihood of the hand or other body part contacting the touch screen. In addition, the false touch condition corresponding to the stylus posture within a certain interval can be the same as or stricter than the false touch condition corresponding to that interval.
[0140] For example, if the original false touch condition is that a touch with a pressure less than or equal to F1 N is considered a false touch, then the false touch condition corresponding to the first interval can be set to a touch with a pressure less than or equal to F2 N, and the false touch condition corresponding to the second interval can be set to a touch with a pressure less than or equal to F3 N. The second interval indicates that the distance between the stylus tip and the touch screen is closer than the first interval, where F1, F2, and F3 are real numbers, and F2 is greater than F3. At the same time, within the first interval, the false touch condition corresponding to the first angle range can be set to a touch with a pressure less than or equal to F4 N, and the false touch condition corresponding to the second angle range can be set to a touch with a pressure less than or equal to F5 N. The probability of a false touch occurring in the first angle range is greater than that occurring in the second angle range, where F1, F4, and F5 are real numbers, and F5 is greater than F4.
[0141] Here, there is no specific limitation on the content and values of the parameters in the original false touch conditions, false touch conditions in different intervals, and false touch conditions in different angle ranges in the same interval, the number and value ranges of the intervals, and the number and value ranges of the angle ranges.
[0142] To summarize, the above-mentioned method for preventing false touches of the touch screen, after determining that the stylus is being held and used and a false touch may occur, adjusts the conditions for determining false touches according to different distances between the tip of the stylus and the touch screen and different angles between the stylus and the touch screen. This can help the electronic device to more accurately identify false touches in different scenarios, improve the flexibility and accuracy of the electronic device in determining false touches, and further improve the user's work efficiency and usage satisfaction.
[0143] The following combination Figure 10 , introduces the hardware structure of the above-mentioned electronic device.
[0144] like Figure 10 As shown, the tablet computer 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0145] It is understood that the structures illustrated in the embodiments of the present invention do not constitute specific limitations on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0146] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.
[0147] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0148] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or is cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the aforementioned memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system. In some embodiments, the processor 110 may call and execute the execution instructions of the touch screen anti-mistouch method provided in each embodiment of the present application stored in the memory to implement the touch screen anti-mistouch method provided in the embodiment of the present application.
[0149] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0150] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C busses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K via the I2C interface, enabling communication between the processor 110 and the touch sensor 180K via the I2C bus interface, thereby enabling the touch function of the tablet computer 100.
[0151] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface, enabling the function of answering calls through a Bluetooth headset.
[0152] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering calls via a Bluetooth headset. Both the aforementioned I2S interface and the aforementioned PCM interface can be used for audio communication.
[0153] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface, enabling the function of playing music through Bluetooth headphones.
[0154] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to enable the tablet computer 100's camera function. The processor 110 and the display screen 194 communicate via the DSI interface to enable the tablet computer 100's display function, such as displaying the trajectory of a stylus or conductor after contacting the touch screen in this embodiment.
[0155] The GPIO interface can be configured via software. The GPIO interface can be configured as either a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, display 194, wireless communication module 160, audio module 170, sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0156] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the tablet computer 100 and to transfer data between the tablet computer 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as augmented reality devices.
[0157] It should be understood that the interface connection relationship between the modules illustrated in the embodiment of the present application is merely illustrative and does not constitute a structural limitation on the tablet computer 100. In other embodiments of the present application, the tablet computer 100 may also adopt different interface connection methods from the above embodiments, or a combination of various interface connection methods.
[0158] The charging management module 140 is configured to receive charging input from a charger. While charging the battery 142 , the charging management module 140 can also provide power to the tablet computer 100 through the power management module 141 .
[0159] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0160] The wireless communication function of the tablet computer 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0161] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in tablet computer 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0162] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the tablet computer 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0163] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the low-frequency baseband signal obtained by the IOU to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in one device with the mobile communication module 150 or other functional modules.
[0164] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., applied to the tablet computer 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0165] In some embodiments, antenna 1 of tablet computer 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that tablet computer 100 can communicate with a network and other devices via wireless communication technologies. The aforementioned wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The aforementioned GNSS may include the global positioning system (GPS), the global navigation satellite system (GLONASS), the Beidou navigation satellite system (BDS), the quasi-zenith satellite system (QZSS) and / or the satellite based augmentation system (SBAS).
[0166] Tablet computer 100 implements display functionality through a GPU, display screen 194, and an application processor. The GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0167] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini-LED, a Micro-LED, a Micro-OLED, or a quantum dot light-emitting diode (QLED). In some embodiments, tablet computer 100 may include one or N display screens 194, where N is a positive integer greater than one.
[0168] The tablet computer 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
[0169] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and transformed into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.
[0170] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the tablet computer 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0171] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the tablet computer 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0172] Video codecs are used to compress or decompress digital video. Tablet computer 100 may support one or more video codecs. This allows tablet computer 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0173] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU enables intelligent cognitive applications in the tablet computer 100, such as image recognition, face recognition, speech recognition, and text comprehension.
[0174] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the tablet computer 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0175] The internal memory 121 can be used to store computer executable program codes, and the aforementioned executable program codes include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as an application corresponding to the function related to the anti-mistouch method of the touch screen provided in the embodiment of the present application), etc. The data storage area may store data created during the use of the tablet computer 100, etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications of the tablet computer 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor 110.
[0176] The tablet computer 100 can implement audio functions such as music playback and recording through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0177] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals.
[0178] The speaker 170A, also called a "speaker," is used to convert audio electrical signals into sound signals. The tablet computer 100 can listen to music or make hands-free calls through the speaker 170A.
[0179] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the tablet computer 100 receives a call or a voice message, the user can place the receiver 170B close to the ear to hear the voice.
[0180] The microphone 170C, also known as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The tablet computer 100 can be provided with at least one microphone 170C. In other embodiments, the tablet computer 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the tablet computer 100 can also be provided with three, four or more microphones 170C to realize sound signal collection, noise reduction, and identification of sound sources, and realize directional recording function, etc.
[0181] The headphone jack 170D is used to connect a wired headphone and can be the USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0182] The pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can be a device comprising at least two parallel plates with conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The tablet computer 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation is applied to the display screen 194, the tablet computer 100 detects the intensity of the touch operation based on the pressure sensor 180A. The tablet computer 100 can also calculate the position of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions.
[0183] The gyro sensor 180B may be used to determine the motion posture of the tablet computer 100. In some embodiments, the angular velocity of the tablet computer 100 around three axes (ie, x, y, and z axes) may be determined by the gyro sensor 180B.
[0184] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the tablet computer 100 calculates altitude using the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
[0185] The magnetic sensor 180D includes a Hall sensor, and the tablet computer 100 can use the magnetic sensor 180D to detect whether the flip cover is opened or closed.
[0186] Accelerometer 180E detects the magnitude of acceleration of tablet computer 100 in all directions (generally three axes). It can also detect the magnitude and direction of gravity when tablet computer 100 is stationary. It can also be used to identify the tablet computer 100's posture, enabling applications such as switching between landscape and portrait modes and pedometers.
[0187] Distance sensor 180F is used to measure distance. Tablet computer 100 can measure distance using infrared or laser. In some embodiments, when photographing a scene, tablet computer 100 can use distance sensor 180F to measure distance for fast focusing.
[0188] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The tablet computer 100 emits infrared light outward through the light emitting diode. The tablet computer 100 uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the tablet computer 100. When insufficient reflected light is detected, the tablet computer 100 can determine that there is no object near the tablet computer 100. The tablet computer 100 can use the proximity light sensor 180G to detect when the user holds the tablet computer 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0189] Ambient light sensor 180L is used to sense ambient light brightness. Tablet computer 100 can adaptively adjust the brightness of display screen 194 based on the perceived ambient light. Ambient light sensor 180L can also be used to automatically adjust white balance when taking photos. Ambient light sensor 180L can also work with proximity light sensor 180G to detect whether tablet computer 100 is in a pocket to prevent accidental touches.
[0190] The fingerprint sensor 180H is used to collect fingerprints. The tablet computer 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc. For example, a fingerprint sensor can be configured on the front of the tablet computer 100 (below the display screen 194), or on the back of the tablet computer 100 (below the rear camera). In addition, the fingerprint recognition function can also be implemented by configuring a fingerprint sensor in the touch screen, that is, the fingerprint sensor can be integrated with the touch screen to implement the fingerprint recognition function of the tablet computer 100.
[0191] Temperature sensor 180J is used to detect temperature. In some embodiments, tablet computer 100 uses the temperature detected by temperature sensor 180J to implement temperature management strategies. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, tablet computer 100 reduces the performance of a processor located near temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature falls below another threshold, tablet computer 100 heats battery 142 to prevent abnormal shutdown of tablet computer 100 due to low temperature. In still other embodiments, when the temperature falls below yet another threshold, tablet computer 100 boosts the output voltage of battery 142 to prevent abnormal shutdown due to low temperature.
[0192] The touch sensor 180K is also referred to as a "touch device." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also referred to as a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor 180K can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the tablet computer 100, at a location different from that of the display screen 194.
[0193] The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire vibration signals from the vibrating bones of the human body's vocal cords. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure signals. In some embodiments, the bone conduction sensor 180M can also be set in headphones to form bone conduction headphones. The audio module 170 can parse the voice signal based on the vibration signal of the vibrating bones of the vocal cords acquired by the aforementioned bone conduction sensor 180M to implement voice functions. The application processor can parse heart rate information based on the blood pressure signals acquired by the aforementioned bone conduction sensor 180M to implement heart rate detection functions.
[0194] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The tablet computer 100 may receive key inputs and generate key signal inputs related to user settings and function control of the tablet computer 100.
[0195] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0196] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.
[0197] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and disconnected from the tablet computer 100 by inserting or removing it from the SIM card interface 195. The tablet computer 100 can support one or N SIM card interfaces, where N is a positive integer greater than one. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The types of the aforementioned multiple cards can be the same or different. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The tablet computer 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the tablet computer 100 uses an eSIM, or embedded SIM card. The eSIM card can be embedded in the tablet computer 100 and cannot be separated from the tablet computer 100.
[0198] although Figure 5 Not shown in the figure, the tablet computer 100 may further include a Bluetooth device, a positioning device, a flashlight, a micro-projection device, a near field communication (NFC) device, etc., which are not described in detail here.
[0199] It should be understood that the hardware structure of the tablet computer 100 shown in the embodiments of this application does not constitute a specific limitation on the tablet computer 100. In other embodiments of this application, the tablet computer 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The components shown in the illustrations may be implemented in hardware, software, or a combination of software and hardware.
[0200] The following combination Figure 11 , introduces the hardware structure of the above-mentioned stylus.
[0201] Figure 11 This is a hardware structure diagram of a stylus 200 provided in an embodiment of the present application. Figure 7 As shown, Figure 6 As shown, the stylus 200 may include a processor 201. The processor 201 may include storage and processing circuitry for supporting the operation of the stylus 200. The storage and processing circuitry may include storage devices such as non-volatile memory (e.g., flash memory or other electrically programmable read-only memory configured as a solid-state drive), volatile memory (e.g., static or dynamic random access memory), etc. The processing circuitry in the processor 201 may be used to control the operation of the stylus 200. The processing circuitry may be based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio chips, application-specific integrated circuits, etc.
[0202] In the embodiment of the present application, the processor 201 can be used to search for the uplink synchronization signal and control the electrode 206 to code, that is, to send the pressure signal, position signal, key press and other information of the stylus to the electronic device.
[0203] The stylus 200 may include one or more sensors. For example, the sensor may include a touch sensor 202. The touch sensor 202 may detect whether a hand is holding the stylus and recognize an operation gesture.
[0204] The sensor may also include a posture sensor 203. The posture sensor 203 can be used to detect the angle of the stylus 200 relative to the touch screen. The sensor may also include additional sensors such as a temperature sensor, an ambient light sensor, a light-based proximity sensor, a contact sensor, a magnetic sensor, a pressure sensor, and / or other sensors. The pressure sensor can be used to collect a pressure signal from the tip of the stylus 200 and send the pressure signal to the processor 201.
[0205] The stylus 200 may include a status indicator 204 such as a light emitting diode and a button 205. The status indicator 204 is used to inform the user of the status of the stylus 200. The button 205 may include a mechanical button and a non-mechanical button, and may be used to collect button pressing information from the user.
[0206] In an embodiment of the present application, the stylus 200 may include one or more electrodes 206, wherein the electrode 206 may be located at the writing end of the stylus 200, or may be located inside the pen tip. The electrode 206 may include transmitting electrodes TX1, TX2, TX3 and a receiving electrode RX1. The transmitting electrodes TX1 and TX2 are used to send downlink signals to the electronic device 100, and the downlink signals are electrical signals including parameter values such as frequency and voltage. The transmitting electrode TX1 is used to transmit the tip position information of the stylus, and the transmitting electrode TX2 is used to transmit the inclination information of the stylus 200 and the correction information of the tip position information. The transmitting electrode TX3 is used to transmit the tip pressure information of the stylus 200, and the receiving electrode RX1 is used to receive the uplink synchronization signal sent by the electronic device 100.
[0207] The stylus 200 may include a sensing circuit 207. The sensing circuit 207 can sense the capacitive coupling between the electrode 206 and the drive line of the capacitive touch sensor panel interacting with the stylus 200. The sensing circuit 207 may include an amplifier for receiving capacitance readings from the capacitive touch sensor panel, a clock for generating a demodulation signal, a phase shifter for generating a phase-shifted demodulation signal, a mixer for demodulating the capacitance readings using an in-phase demodulation frequency component, and a mixer for demodulating the capacitance readings using a quadrature demodulation frequency component. The demodulation result of the mixer can be used to determine an amplitude proportional to the capacitance, allowing the stylus 200 to sense contact with the capacitive touch sensor panel.
[0208] It is understood that, depending on actual needs, the stylus 200 may include a microphone, a speaker, an audio generator, a vibrator, a camera, a data port, and other devices. The user can use these devices to provide commands to control the operation of the stylus 200 and the electronic device 100 interacting with the stylus 200, and receive status information and other outputs.
[0209] The processor 201 can be used to run software on the stylus 200 that controls the operation of the stylus 200. During operation of the stylus 200, the software running on the processor 201 can process sensor input, button input, and input from other devices to monitor the movement of the stylus 200 and other user input. The software running on the processor 201 can detect user commands and can communicate with the electronic device 100.
[0210] To support wireless communication between the stylus 200 and the electronic device 100, the stylus 200 may include a wireless communication module 208. The wireless communication module 208 may provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. Bluetooth may include a radio frequency transceiver, such as a transceiver. Bluetooth may also include one or more antennas. The transceiver may use an antenna to transmit and / or receive wireless signals. The wireless signals may be Bluetooth signals, wireless local area network signals, long-range signals such as cellular phone signals, near field communication signals, or other wireless signals based on the type of wireless module.
[0211] In one embodiment, the stylus 200 and the electronic device 100 may be connected to each other by magnetic attraction to achieve wireless signal interaction.
[0212] The stylus pen 200 may further include a charging module 209 . The charging module 209 may support charging of the stylus pen 200 and provide power for the stylus pen 200 .
[0213] It can be understood that the stylus 200 in the embodiment of the present application can be, but is not limited to, an inductive stylus and a capacitive stylus. Capacitive pens can include passive capacitive pens and active capacitive pens. Passive capacitive pens can be called passive capacitive pens, and active capacitive pens can be called active capacitive pens. When the stylus 200 is an active capacitive stylus, an electrode array needs to be integrated on the touch screen 101 that interacts with the stylus 200. After the electronic device 100 and the stylus 200 are wirelessly connected, the electronic device 100 can send an uplink synchronization signal to the stylus 200 through the electrode array. When the tip of the stylus 200 contacts the electronic device 100 with the touch screen 101, the capacitance value at the corresponding position of the touch screen 101 will change, and the electronic device 100 can determine the position of the tip of the stylus 200 on the touch screen 101 based on the capacitance value on the touch screen 101. The shape of the stylus in the embodiment of the present application is not specifically limited.
[0214] Optionally, in some embodiments, the embodiments of the present application further provide a computer-readable storage medium, which stores instructions that, when executed on a computer or processor, enable the computer or processor to execute one or more steps of any of the above methods.
[0215] Optionally, in some embodiments, the present application also provides a computer program product comprising instructions, which, when executed on a computer or processor, enables the computer or processor to execute one or more steps of any of the above methods.
[0216] Optionally, in some embodiments, the present application further provides a chip system, which may include a processor coupled to a memory, and the processor executes a computer program stored in the memory to implement one or more steps in any of the above methods. The chip system may be a single chip or a chip module composed of multiple chips.
[0217] Optionally, in some embodiments, the embodiments of the present application also provide an electronic device, comprising: one or more processors, a memory and a display screen; the memory and the display screen are coupled to the one or more processors, the memory is used to store computer program code, and the computer program code includes computer instructions; when the one or more processors execute the computer instructions, the electronic device performs one or more steps in any of the above methods.
[0218] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0219] It will be apparent to those skilled in the art that some of the specific details presented above regarding the electronic device 100 may not be necessary for practicing a particular embodiment or its equivalent. Similarly, other electronic devices may include a greater number of subsystems, modules, components, etc. Where appropriate, some submodules may be implemented as software or hardware. Therefore, it should be understood that the above description is not intended to be exhaustive or to limit the present disclosure to the precise form described herein. On the contrary, it will be apparent to those skilled in the art that many modifications and variations are possible based on the above teachings.
[0220] The various embodiments disclosed in this application can be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.
[0221] Program code can be applied to input instructions to perform the functions described herein and generate output information. The output information can be applied to one or more output devices in a known manner. For purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
[0222] Program code can be implemented with a high-level programming language or an object-oriented programming language to communicate with the processing system. Where necessary, program code can also be implemented in assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any particular programming language. In either case, the language can be a compiled language or an interpreted language.
[0223] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed over a network or through other computer-readable media. Therefore, a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including but not limited to floppy disks, optical disks, optical discs, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Therefore, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
[0224] In the accompanying drawings, some structural or method features may be shown in a particular arrangement and / or order. However, it should be understood that such a particular arrangement and / or order may not be required. Rather, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of a structural or method feature in a particular figure does not imply that such feature is required in all embodiments, and in some embodiments, such features may not be included or may be combined with other features.
[0225] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems raised by this application. In addition, in order to highlight the innovative part of this application, the above-mentioned device embodiments of this application do not introduce units / modules that are not closely related to solving the technical problems raised by this application. This does not mean that other units / modules do not exist in the above-mentioned device embodiments.
[0226] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "including a" does not exclude the presence of other identical elements in the process, method, article or device that includes the element.
[0227] While the present application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the present application.
Claims
1. A method for preventing accidental touches of a touch screen, characterized in that: include: Acquire first relative position information between the touch screens of the first electronic device and the second electronic device, and determine whether a false touch occurs using a first false touch condition; Acquiring second relative position information between the touch screens of the first electronic device and the second electronic device, and determining whether a false touch occurs using a second false touch condition; The first relative position information and the second relative position information include at least one parameter of a distance and an angle, and the first false touch condition and the second false touch condition are different; The first relative position information includes the distance between the first electronic device and the touch screen, and the determining whether a false touch occurs by using the first false touch condition includes: If the distance belongs to the mth interval, determining whether there is an accidental touch according to a first sub-accidental touch condition corresponding to the mth interval, where the first accidental touch condition includes the first sub-accidental touch condition; The first sub-false touch condition is that the number of nodes in a row or a column of the area where the capacitance value changes greatly is greater than or equal to k m The contact corresponding to the k nodes is judged as a false touch. m The nodes correspond to the mth interval, m and k m is a natural number greater than or equal to 1. The smaller the distance, the smaller the number of nodes in the first sub-false touch condition corresponding to the interval.
2. The method for preventing accidental touch of a touch screen according to claim 1, wherein: The first electronic device includes a stylus, and the second electronic device obtains the first relative position information and the second relative position information through the first electronic device.
3. The method for preventing accidental touches of a touch screen according to claim 1, wherein: The second relative position information includes a distance between the first electronic device and the touch screen, and an angle between the first electronic device and the touch screen. The determining whether a false touch occurs by using the second false touch condition includes: If the distance belongs to the nth interval and the angle belongs to the jth angle range, determining whether there is an accidental touch according to a second sub-accidental touch condition corresponding to the jth angle range, where the second accidental touch condition includes the second sub-accidental touch condition; The second sub-false touch condition is that the number of nodes in a row or a column of the area where the capacitance value changes greatly is greater than or equal to k j The contact corresponding to the k nodes is judged as a false touch. j The node corresponds to the jth angle range of the nth interval, n, j and k j is a natural number greater than or equal to 1. The greater the possibility of mis-touch caused by the pen-holding posture corresponding to the angle range in the nth interval, the fewer the number of nodes in the second sub-mis-touch condition corresponding to the angle range.
4. The method for preventing accidental touch of a touch screen according to claim 1, wherein: The first false touch condition and the second false touch condition correspond to point reporting data, and the point reporting data includes touch coordinates, touch pressure, touch area shape, and capacitance value.
5. The method for preventing accidental touch of a touch screen according to claim 4, wherein: The first relative position information includes the distance between the first electronic device and the touch screen, and the determining whether a false touch occurs by using the first false touch condition includes: If the distance belongs to the ath interval, determining whether there is an accidental touch according to a first sub-accidental touch condition corresponding to the ath interval, where the first accidental touch condition includes the first sub-accidental touch condition; Wherein, a is a natural number greater than or equal to 1, and the smaller the distance of the interval, the stricter the first sub-false touch condition corresponding to the interval.
6. The method for preventing accidental touches of a touch screen according to claim 4, wherein: The second relative position information includes a distance between the first electronic device and the touch screen, and an angle between the first electronic device and the touch screen. The determining whether a false touch occurs by using the second false touch condition includes: If the distance belongs to the bth interval and the angle belongs to the cth angle range, determining whether there is an accidental touch according to a second sub-accidental touch condition corresponding to the cth angle range, where the second accidental touch condition includes the second sub-accidental touch condition; Among them, b and c are natural numbers greater than or equal to 1. The greater the possibility of mis-touch caused by the pen-holding posture corresponding to the angle range in the b-th interval, the stricter the second sub-mis-touch condition corresponding to the angle range.
7. The method for preventing accidental touches of a touch screen according to claim 4, wherein: The point reporting data is data generated by a touch operation.
8. An electronic device, characterized in that: including processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that The readable storage medium stores instructions, which, when executed on an electronic device, enable the electronic device to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Display amplification method, terminal and computer readable storage medium
CN107272962A
Control method of proximity light sensor and electronic equipment
CN109547629A