A scanning method, storage medium and device for a low-power touch panel
By acquiring self-contained change data and noise data on the touchpad and judging the scanning mode, the contradiction between power consumption and real-time performance in the prior art is solved, real-time sensing touch operation at low power consumption is achieved, and user experience is improved Equipment battery life.
Patent Information
- Application Number
- CN202410987927.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2044-07-23
AI Technical Summary
The existing methods of reducing touchpad power consumption are difficult to meet the real-time requirements of touch, especially in the quick stroke operation and long-term touch operation, which may lead to unresponsive finger operation or increased click delay.
By obtaining self-contained change data and noise data in full screen scanning mode, we can determine whether to enter low-power scanning mode. If we enter, we will find the effective touch area based on the self-contained change data to scan. If we do not enter, we will perform full screen scanning and use noise data Switch modes to ensure real-time and balanced power consumption.
Real-time touch sensing operation in low-power mode is realized, reducing power consumption, and improving user experience, meeting the real-time requirements of touch, and extending the battery life of the device.
Smart Images

Figure CN118519548B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of touch panel scanning technology, and in particular to a scanning method, storage medium and device for a low-power touch panel. Background Art
[0002] With the development of technology today, touchpads are widely used in various electronic products, especially some portable mobile terminals, such as laptops, smart phones, tablet computers, leather keyboards and other touch devices, which use the movement of user fingers to perform some human-computer interaction operations.
[0003] At present, the size of mobile terminals is getting smaller and smaller, the thickness is getting thinner and thinner, and the functions are getting more and more. Therefore, the problem of battery life also arises. Usually, the scanning power consumption of the touch panel of the mobile terminal is reduced to achieve the purpose of extending the battery life. There is an existing Chinese invention application with publication number CN105807996A, which proposes a touch scanning drive method with reduced power consumption. For the touch display panel, when the panel is in standby state or normal display but no touch state, sparse touch scanning is enabled; when the panel is in touch state, a complete touch scan is implemented. Sparse scanning is a method in which the entire screen drive channel is scanned according to certain rules, such as scanning the even channels in the previous cycle, and not scanning the odd channels, and scanning the odd channels in the next cycle, and not scanning the even channels. However, this method has some problems: when the user performs a quick swipe operation, if the finger happens to swipe on a channel that is not scanned in the current cycle, the finger operation will not respond; in addition, when the user performs an operation that requires a long time to touch the screen, it is very likely that the channel that is not scanned in the current cycle will be touched. At this time, the current frame will not detect the finger information, and the touch will be misjudged as an invalid touch, which will cause the click delay to increase or no response. The above problems make it difficult to meet the real-time requirements of touch.
[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:
[0005] The existing methods for reducing the power consumption of touch panels are difficult to meet the real-time requirements of touch. Summary of the invention
[0006] The purpose of the present invention is to provide a scanning method, storage medium and device for a low-power touch panel, so as to solve the technical problem that the existing methods for reducing the power consumption of touch panels in the prior art are difficult to meet the real-time requirements of touch. The preferred technical solutions among the many technical solutions provided by the present invention can produce many technical effects as described below.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] A scanning method for a low-power touch panel provided by the present invention comprises the following steps: in a full-screen scanning mode, performing self-capacitance coding sampling and noise sampling on the full screen of the touch panel to obtain self-capacitance change data and noise data; judging whether to enter a low-power scanning mode according to the noise data; if entering the low-power scanning mode, obtaining an effective touch area of the touch panel according to the self-capacitance change data, and scanning the effective touch area; if not entering the low-power scanning mode, scanning the full screen of the touch panel; obtaining the effective touch area of the touch panel according to the self-capacitance change data, and scanning the effective touch area, comprises the following steps: obtaining a scanning channel that meets a touch condition when sampling self-capacitance coding, wherein if the self-capacitance change data on the scanning channel is greater than a starting threshold value, the touch condition is met; taking the area where the scanning channel that meets the touch condition is located as an effective touch area; performing mutual capacitance coding sampling on the scanning channel of the effective touch area, and completing the scanning of the effective touch area.
[0009] Optionally, determining whether to enter a low power consumption scanning mode based on the noise data comprises the following steps: determining whether the maximum noise data in the noise data is less than a first noise threshold for m consecutive frames; if so, entering the low power consumption scanning mode; otherwise, not entering the low power consumption scanning mode.
[0010] Optionally, the scanning method of the low-power touch panel further includes: after entering the low-power scanning mode, if the maximum noise data in the noise data is greater than the second noise threshold for m consecutive frames, entering the full-screen scanning mode.
[0011] Optionally, the first noise threshold is smaller than the second noise threshold.
[0012] Optionally, the maximum noise data of each frame and the judgment results of the first noise threshold and the second noise threshold are counted by a first continuous frame counter and a second continuous frame counter; when in the full-screen scanning mode, each time the maximum noise data in the current frame is less than the first noise threshold, the first continuous frame counter is incremented by one; otherwise, the first continuous frame counter is cleared; when in the low-power scanning mode, each time the maximum noise data in the current frame is greater than the second noise threshold, the second continuous frame counter is incremented by one; otherwise, the second continuous frame counter is cleared.
[0013] Optionally, in the full-screen scanning mode, mutual capacitance coding sampling is performed on all the scanning channels on the touch panel to complete the scanning of the full screen of the touch panel.
[0014] Optionally, the noise data is data obtained by subtracting data collected by all sensing channels of the touch panel from a noise baseline value when all driving channels of the touch panel are not coded.
[0015] A computer-readable storage medium stores a computer program, and when the computer program is executed by a scanning device of a low-power touch panel, the scanning method of the low-power touch panel described in any one of the above items is implemented.
[0016] A scanning device for a low-power touch panel, characterized by comprising:
[0017] one or more processors;
[0018] The memory is used to store one or more computer programs, and the one or more processors are used to execute the one or more computer programs stored in the memory, so that the one or more processors execute any of the above-mentioned scanning methods for a low-power touch panel.
[0019] Implementing one of the above technical solutions of the present invention has the following advantages or beneficial effects:
[0020] The present invention selects to enter a low power consumption mode or a full screen scanning mode according to the collected noise data; if in the full screen scanning mode, a normal full screen scan is performed; if in the low power consumption scanning mode, an effective touch area on the touch panel is found according to the self-capacitance change data collected by the self-capacitance coding, and only the effective touch area is scanned, while other areas are not scanned, thereby saving the power consumption of the touch panel in the low power consumption mode; and in the low power consumption mode, when a finger performs some touch operations on the touch panel, it will be reflected in the self-capacitance change data, thereby finding the effective touch area of the touch panel, and even if a finger performs some touch operations on the touch panel, it can be sensed in real time, which not only reduces the power consumption, but also meets the real-time requirement of the touch, and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. It is obvious that the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0022] Figure 1 is a flow chart of a scanning method of a low-power touch panel according to a first embodiment of the present invention;
[0023] Figure 2 This is a flow chart of step S3 of the scanning method for a low-power touch panel according to the first embodiment of the present invention. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solutions and advantages of the present invention clearer, the various exemplary embodiments to be described below will refer to the corresponding drawings, which constitute a part of the exemplary embodiments, wherein various exemplary embodiments that may be used to implement the present invention are described. Unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation methods described in the following exemplary embodiments do not represent all implementation methods consistent with the present disclosure. It should be understood that they are only examples of processes, methods, devices, etc. that are consistent with some aspects of the present disclosure as detailed in the attached claims, and other embodiments may also be used, or the embodiments listed herein may be modified in structure and function without departing from the scope and essence of the present invention.
[0025] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", etc. indicate the orientation or positional relationship based on the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the elements referred to must have a specific orientation, be constructed and operated in a specific orientation. The terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. The term "multiple" means two or more. The terms "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, an integral connection, a mechanical connection, an electrical connection, a communication connection, a direct connection, an indirect connection through an intermediate medium, and can be the internal connection of two elements or the interaction relationship between two elements. The term "and / or" includes any and all combinations of one or more related listed items. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances.
[0026] In order to illustrate the technical solution of the present invention, a specific embodiment is used below for description, and only the parts related to the embodiment of the present invention are shown.
[0027] Embodiment 1:
[0028] like Figure 1 As shown, the present invention provides a scanning method for a low-power touch panel, comprising the following steps: S1, in full-screen scanning mode, performing self-capacitance coding sampling and noise sampling on the full screen of the touch panel to obtain self-capacitance change data and noise data; S2, judging whether to enter the low-power scanning mode according to the noise data; S3, if entering the low-power scanning mode, obtaining the effective touch area of the touch panel according to the self-capacitance change data, and scanning the effective touch area; S4, if not entering the low-power scanning mode, scanning the full screen of the touch panel.
[0029] This embodiment selects to enter low power consumption mode or full screen scanning mode according to the collected noise data; if in full screen scanning mode, normal full screen scanning is performed; if in low power consumption scanning mode, the effective touch area on the touch pad is found according to the self-capacitance change data collected by self-capacitance coding, and only the effective touch area is scanned, while other areas are not scanned, thereby saving the power consumption of the touch pad in low power consumption mode; and in this low power consumption mode, when a finger performs some touch operation on the touch pad, it will be reflected in the self-capacitance change data, thereby finding the effective touch area of the touch pad, and even if a finger performs some touch operation on the touch pad, it can be sensed in real time, which not only reduces power consumption, but also meets the real-time requirement of touch, and improves the user experience.
[0030] Next, combine Figure 1-Figure 2 , the scanning method of the low-power touch panel provided in this embodiment is described in detail:
[0031] First, execute step S1, in full-screen scanning mode, perform self-capacitance coding sampling and noise sampling on the full screen of the touch panel, and obtain self-capacitance change data and noise data. Generally speaking, when the touch device is used normally, it is scanned in full-screen scanning mode, so that various operations of the user on the touch panel can be responded to in a timely manner. The self-capacitance change data is obtained after sampling the full-screen self-capacitance coding, and the self-capacitance change data can be obtained by subtracting the reference value when there is no touch from this matrix data; specifically, when the finger touches, the capacitance value of the touch panel sensor changes, thereby causing the change of the matrix data, and the reference value when there is no touch is subtracted, and the change is the change of the self-capacitance value caused by the finger touch, which is the self-capacitance change data. The noise data is the data obtained by subtracting the data collected by all the sensing channels of the touch panel from the noise reference value when all the driving channels of the touch panel are not coded. Specifically, the noise data is the data obtained by subtracting the data collected by the sensing channel scanning from the noise reference value when all the driving channels of the touch panel are not coded.
[0032] Then, step S2 is executed to determine whether to enter the low-power scanning mode according to the noise data. Specifically, the following steps are included: determining whether the maximum noise data in the noise data is less than the first noise threshold for m consecutive frames, if so, entering the low-power scanning mode; otherwise, not entering the low-power scanning mode. If after entering the low-power scanning mode, when the maximum noise data in the noise data is greater than the second noise threshold for m consecutive frames, entering the full-screen scanning mode. Thus, a suitable scanning mode can be selected for scanning according to the noise data.
[0033] One frame includes a full-screen self-capacitance scan, full-screen noise scan, and mutual-capacitance scan (which can be mutual-capacitance scan in low-power scan mode or mutual-capacitance scan in full-screen scan mode). If the maximum noise data is less than the first noise threshold for m consecutive frames, it means that the noise interference in the current environment is small (the touch device is in standby state or the user does not touch the touchpad frequently). In this mode, the touchpad screen is basically free of interference and will not affect the self-capacitance change data and mutual-capacitance change data. Therefore, it enters the low-power mode to reduce the scanning power consumption. If the maximum noise is greater than the second noise threshold for m consecutive frames, it means that the current environmental noise interference is large and the low-power scan mode will no longer be applicable. Therefore, it enters the full-screen scan mode. In this mode, stabilization processing is required, such as mutual-capacitance change data filtering, coordinate filtering, etc., to ensure the acquisition of stable mutual-capacitance change data. Although the power consumption is relatively large, it can ensure that the touchpad can respond to user operations in a noisy environment in a timely manner. By collecting noise data to determine whether to enter the low-power scan mode, the user's use of the touchpad can be more accurately obtained, so as to choose to enter the corresponding scan mode, so as to reduce the power consumption of the device while being able to respond to user operations in a timely manner.
[0034] As an optional implementation, the first noise threshold is smaller than the second noise threshold. Setting the second noise threshold slightly larger than the first noise threshold can prevent frequent switching between the two modes, which may cause abnormal operation of the touch panel, and can also ensure stable power consumption.
[0035] As an optional implementation, the maximum noise data of each frame and the judgment results of the first noise threshold and the second noise threshold are counted by a first continuous frame counter and a second continuous frame counter; when in full-screen scanning mode, whenever the maximum noise data of the current frame is less than the first noise threshold, the first continuous frame counter counts one; otherwise, the first continuous frame counter is cleared; until the count of the first continuous frame counter is m, the low-power scanning mode is entered; when in low-power scanning mode, whenever the maximum noise data of the current frame is greater than the second noise threshold, the second continuous frame counter counts one; otherwise, the second continuous frame counter is cleared; until the count of the second continuous frame counter is m, the full-screen scanning mode is entered.
[0036] Next, execute step S3. If the low-power scanning mode is entered, the effective touch area of the touch panel is obtained according to the self-capacitance change data, and the effective touch area is scanned. Specifically, the following steps are included: S31. When obtaining the scanning channel that meets the touch condition during the self-capacitance coding sampling, if the self-capacitance change data on the scanning channel is greater than the starting threshold, the touch condition is met; S32. The area where the scanning channel that meets the touch condition is located is taken as the effective touch area; S33. The scanning channel of the effective touch area is subjected to mutual capacitance coding sampling to complete the scanning of the effective touch area. The scanning channel includes the sensing channel and the driving channel. When the self-capacitance coding sampling is performed, the self-capacitance change data on each driving channel is mainly obtained. When the self-capacitance change data on a driving channel is greater than the starting threshold, it means that a finger touches the driving channel. Therefore, the driving channels whose self-capacitance change data is greater than the starting threshold are selected as the effective touch area, and only the effective touch area is scanned. That is, the driving channel on the effective touch area is coded to generate a coding signal, and the corresponding sensing channel receives the coding signal, and then the sensing channel is scanned to obtain the touch data. In this way, coding of all drive channels becomes coding of regional drive channels, which can not only reduce power consumption and increase the battery life of the equipment, but also improve the reporting rate due to the reduction of mutual capacitance sampling time, and respond to user operations in a timely manner. It is more suitable for electronic devices such as laptops, leather keyboards, wireless touch mice, game controllers, etc.
[0037] Finally, step S4 is executed. If the low-power scanning mode is not entered, the full screen of the touch panel is scanned. Specifically, in the full-screen scanning mode, all scanning channels on the touch panel are sampled for mutual capacitance coding to complete the scanning of the full screen of the touch panel. The principle is the same as above, except that in this mode, all driving channels of the touch panel are coded.
[0038] The embodiment is only a specific example and does not represent only one implementation mode of the present invention.
[0039] Embodiment 2:
[0040] Those skilled in the art can understand that all or part of the features / steps of the above-mentioned method embodiments can be implemented by methods, data processing systems or computer programs, and these features can be implemented without hardware, entirely by software, or by a combination of hardware and software. The aforementioned computer program can be stored in one or more computer-readable storage media, and the storage medium stores a computer program. When the computer program is executed by a scanning device of a low-power touch panel, the steps of the above-mentioned scanning method embodiment of a low-power touch panel are executed.
[0041] The aforementioned storage media that can store program codes include: static hard disks, solid-state hard disks, random access memories (SRAM), electrically erasable programmable read-only memories (EEPROM), erasable programmable read-only memories (EPROM), programmable read-only memories (PROM), read-only memories (ROM), optical storage devices, magnetic storage devices, flash memories, magnetic disks or optical disks and / or combinations of the above devices, that is, they can be implemented by any type of volatile or non-volatile storage devices or combinations thereof.
[0042] Embodiment three:
[0043] The present invention also provides an embodiment of a scanning device for a low-power touch panel, comprising one or more processors and a memory; wherein the memory is used to store one or more computer programs, and the one or more processors are used to execute one or more computer programs stored in the memory, so that the processor executes the features / steps of the above-mentioned embodiment of a scanning method for a low-power touch panel.
[0044] The above description is only the preferred embodiment of the present invention. It is known to those skilled in the art that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present invention. In addition, under the teachings of the present invention, these features and embodiments may be modified to adapt to specific circumstances and materials without departing from the spirit and scope of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application belong to the protection scope of the present invention.
Claims
1. A scanning method for a low-power touch panel, characterized in that: The following steps are involved: In full-screen scanning mode, self-capacitance coding sampling and noise sampling are performed on the full screen of the touch panel to obtain self-capacitance change data and noise data; Determining whether to enter a low power consumption scanning mode according to the noise data; If the low power consumption scanning mode is entered, obtaining the effective touch area of the touch panel according to the self-capacitance change data, and scanning the effective touch area; If the low power consumption scanning mode is not entered, scanning the entire screen of the touch panel; The step of acquiring the effective touch area of the touch panel according to the self-capacitance change data and scanning the effective touch area comprises the following steps: When obtaining the self-capacitance coding sampling, the scanning channel that meets the touch condition; wherein, if the self-capacitance change data on the scanning channel is greater than the starting threshold, the touch condition is met; The area where the scanning channel that meets the touch condition is located is taken as a valid touch area; The scanning channel of the effective touch area is subjected to mutual capacitance coding sampling to complete the scanning of the effective touch area.
2. The scanning method of a low-power touch panel according to claim 1, characterized in that: The determining whether to enter a low power consumption scanning mode based on the noise data comprises the following steps: determining whether the maximum noise data in the noise data is less than a first noise threshold for m consecutive frames, and if so, entering the low power consumption scanning mode; otherwise, not entering the low power consumption scanning mode.
3. The scanning method of a low-power touch panel according to claim 2, characterized in that: The scanning method of the low-power touch panel further includes: after entering the low-power scanning mode, if the maximum noise data in the noise data is greater than the second noise threshold for m consecutive frames, entering the full-screen scanning mode.
4. The scanning method of a low-power touch panel according to claim 3, characterized in that: The first noise threshold is smaller than the second noise threshold.
5. The scanning method of a low-power touch panel according to claim 3, characterized in that: The maximum noise data of each frame and the judgment results of the first noise threshold and the second noise threshold are counted by a first continuous frame counter and a second continuous frame counter; when in the full-screen scanning mode, whenever the maximum noise data of the current frame is less than the first noise threshold, the first continuous frame counter counts one more; Otherwise, the first continuous frame counter is cleared; when in the low power consumption scanning mode, whenever the maximum noise data in the current frame is greater than the second noise threshold, the second continuous frame counter is incremented by one; Otherwise, the second continuous frame counter is cleared.
6. The scanning method of a low-power touch panel according to claim 1, characterized in that: In the full-screen scanning mode, mutual capacitance coding sampling is performed on all the scanning channels on the touch panel to complete the scanning of the full screen of the touch panel.
7. The scanning method of a low-power touch panel according to claim 1, characterized in that: The noise data is data obtained by subtracting the data collected by all the sensing channels of the touch panel from the noise reference value when all the driving channels of the touch panel are not coded.
8. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a scanning device of a low-power touch panel, the scanning method of a low-power touch panel according to any one of claims 1 to 7 is implemented.
9. A scanning device for a low-power touch panel, characterized in that: include: one or more processors; A memory for storing one or more computer programs, and one or more of the processors for executing the one or more computer programs stored in the memory, so that the one or more processors execute a scanning method for a low-power touch panel as described in any one of claims 1-7.
