Disclosure of Invention
The invention aims to provide a scanning method, a storage medium and equipment of a low-power-consumption touch pad, which are used for solving the technical problem that the real-time touch requirement is difficult to meet in the prior art of the existing method for reducing the power consumption of the touch pad. The preferred technical solutions of the technical solutions provided by the present invention can produce a plurality of technical effects described below.
In order to achieve the above purpose, the present invention provides the following technical solutions:
The invention provides a scanning method of a low-power consumption touch pad, which comprises the following steps: in a full-screen scanning mode, performing self-contained code coding sampling and noise sampling on the full screen of the touch panel to obtain self-contained change data and noise data; judging whether to enter a low-power-consumption scanning mode according to the noise data; if the low-power-consumption scanning mode is entered, acquiring an effective touch area of the touch panel according to the self-capacity change data, and scanning the effective touch area; if the low-power-consumption scanning mode is not entered, scanning the full screen of the touch pad; 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: a scanning channel meeting a touch condition when acquiring self-contained code sampling, wherein the touch condition is met if the self-contained change data on the scanning channel is greater than an initial threshold value; taking the area where the scanning channel meeting the touch condition is located as an effective touch area; and performing mutual capacity coding sampling on the scanning channels of the effective touch area to finish the scanning of the effective touch area.
Optionally, the determining whether to enter the low power consumption scanning mode according to the noise data includes the following steps: judging whether the maximum noise data in the noise data is smaller than a first noise threshold value in m continuous frames, if so, entering the low-power-consumption scanning mode; otherwise, the low power consumption scanning mode is not entered.
Optionally, the scanning method of the low-power consumption touch pad further includes: and after entering the low-power-consumption scanning mode, if the maximum noise data continuous m frames in the noise data are all larger than a second noise threshold value, entering a full-screen scanning mode.
Optionally, the first noise threshold is smaller than the second noise threshold.
Optionally, counting the maximum noise data of each frame and the judgment results of the first noise threshold and the second noise threshold by using a first continuous frame counter and a second continuous frame counter; when in the full-screen scanning mode, the first continuous frame counter counts up by one whenever the maximum noise data under the current frame is less than the first noise threshold; otherwise, the first continuous frame counter is cleared; when in the low power consumption scanning mode, the second continuous frame counter counts up by one every time the maximum noise data under the current frame is greater than the second noise threshold; otherwise, the second continuous frame counter is cleared.
Optionally, in the full-screen scanning mode, performing mutual capacity code coding sampling on all the scanning channels on the touch pad to complete the full-screen scanning of the touch pad.
Optionally, the noise data is obtained by subtracting data acquired by all sensing channels of the touch panel from a noise reference value when all driving channels of the touch panel are not coded.
A computer-readable storage medium having stored thereon a computer program which, when executed by a scanning device of a low power consumption touch panel, implements a scanning method of a low power consumption touch panel as claimed in any one of the preceding claims.
A scanning device of a low power consumption touch panel, comprising:
one or more processors;
a memory for storing one or more computer programs, one or more of the processors for executing the one or more computer programs stored by the memory, to cause the one or more processors to execute a method of scanning a low power consumption touch pad as described in any of the preceding claims.
By implementing one of the technical schemes, the invention has the following advantages or beneficial effects:
According to the acquired noise data, the invention selects whether to enter a low-power consumption mode or a full-screen scanning mode; if the scanning mode is in the full-screen scanning mode, normal scanning of the full screen is carried out; if the touch pad is in the low-power-consumption scanning mode, an effective touch area on the touch pad is found according to self-contained change data acquired by self-contained coding, only the effective touch area is scanned, and other areas are not scanned, so that the power consumption of the touch pad is saved in the low-power-consumption mode; in the low power consumption mode, when fingers perform some touch operations on the touch panel, the touch panel can be reflected on self-capacity change data, so that an effective touch area of the touch panel is found, even if the fingers perform some touch operations on the touch panel, the touch panel can be sensed in real time, the power consumption is reduced, the real-time requirement of touch is met, and the user experience is improved.
Detailed Description
For a better understanding of the objects, technical solutions and advantages of the present invention, reference should be made to the various exemplary embodiments described hereinafter with reference to the accompanying drawings, which form a part hereof, and in which are described various exemplary embodiments which may be employed in practicing the present invention. The same reference numbers in different drawings identify the same or similar elements unless expressly stated otherwise. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. It is to be understood that they are merely examples of processes, methods, apparatuses, etc. that are consistent with certain aspects of the present disclosure as detailed in the appended claims, other embodiments may be utilized, or structural and functional modifications may be made to the embodiments set forth herein without departing from the scope and spirit of the present disclosure.
In the description of the present invention, it should be understood that the terms "center," "longitudinal," "transverse," and the like are used in an orientation or positional relationship based on that shown in the drawings, and are merely for convenience in describing the present invention and to simplify the description, rather than to indicate or imply that the elements referred to must have a particular orientation, be constructed and operate in a particular orientation. The terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. The term "plurality" means two or more. The terms "connected," "coupled" and "connected" are to be construed broadly and may be, for example, fixedly connected, detachably connected, integrally connected, mechanically connected, electrically connected, communicatively connected, directly connected, indirectly connected via intermediaries, or may be in communication with each other between two elements or in an interaction relationship between the two elements. The term "and/or" includes any and all combinations of one or more of the associated listed items. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
In order to illustrate the technical solutions of the present invention, the following description is made by specific embodiments, only the portions related to the embodiments of the present invention are shown.
Embodiment one:
As shown in fig. 1, the invention provides a scanning method of a low-power consumption touch panel, which comprises the following steps: s1, in a full-screen scanning mode, performing self-contained code coding sampling and noise sampling on a full screen of a touch panel to obtain self-contained change data and noise data; s2, judging whether to enter a low-power-consumption scanning mode according to the noise data; s3, if the low-power-consumption scanning mode is entered, acquiring an effective touch area of the touch panel according to the self-capacity change data, and scanning the effective touch area; and S4, if the low-power-consumption scanning mode is not entered, scanning the full screen of the touch pad.
According to the acquired noise data, the embodiment selects whether to enter a low-power consumption mode or a full-screen scanning mode; if the scanning mode is in the full-screen scanning mode, normal scanning of the full screen is carried out; if the touch pad is in the low-power-consumption scanning mode, an effective touch area on the touch pad is found according to self-contained change data acquired by self-contained coding, only the effective touch area is scanned, and other areas are not scanned, so that the power consumption of the touch pad is saved in the low-power-consumption mode; in the low power consumption mode, when fingers perform some touch operations on the touch panel, the touch panel can be reflected on self-capacity change data, so that an effective touch area of the touch panel is found, even if the fingers perform some touch operations on the touch panel, the touch panel can be sensed in real time, the power consumption is reduced, the real-time requirement of touch is met, and the user experience is improved.
The following describes in detail the scanning method of the low power consumption touch pad provided in this embodiment with reference to fig. 1 to 2:
Firstly, executing step S1, and carrying out self-contained code coding sampling and noise sampling on the full screen of the touch panel in a full screen scanning mode to obtain self-contained change data and noise data. Generally, when the touch control device is normally used, the touch control device scans in a full-screen scanning mode, so that various operations of a user on the touch panel can be responded in time. The self-capacity change data is obtained by sampling full-screen self-capacity coding, and then obtaining matrix data, and subtracting a reference value without touch from the matrix data; specifically, when a finger touches, the capacitance value of the touch panel sensor changes, so that matrix data changes, and the reference value when no touch is subtracted, so that the self-capacitance value change amount caused by the finger touching is obtained, and the change amount is self-capacitance change data. The noise data is obtained by subtracting the data acquired by all sensing channels of the touch panel from the noise reference value when all driving channels of the touch panel are not coded. Specifically, the noise data is obtained by subtracting the data acquired by scanning the sensing channel from the noise reference value without coding all driving channels on the touch pad and scanning the sensing channel.
Then, step S2 is executed to determine whether to enter the low power scan mode according to the noise data. Specifically, the method comprises the following steps: judging whether the maximum noise data in the noise data are smaller than a first noise threshold value in m continuous frames, if so, entering a low-power-consumption scanning mode; otherwise, the low power scan mode is not entered. And if the maximum noise data continuous m frames in the noise data are larger than the second noise threshold value after entering the low-power-consumption scanning mode, entering a full-screen scanning mode. Thus, an appropriate scanning mode can be selected for scanning based on the noise data.
One frame comprises one full-screen self-capacity scanning, full-screen noise scanning and mutual-capacity scanning (can be mutual-capacity scanning in a low-power-consumption scanning mode or mutual-capacity scanning in a full-screen scanning mode), if the maximum noise data are smaller than a first noise threshold value in m continuous frames, the noise interference of the current environment is smaller (the condition that the touch control equipment is in a standby state or the touch control board is not frequently touched by a user), in the mode, the touch board screen body is basically free of interference, self-capacity change data and mutual-capacity change data cannot be influenced, and therefore, the low-power-consumption mode is entered to reduce the scanning power consumption. If the maximum noise continuous m frames are all larger than the second noise threshold, the current environment noise interference is larger, and the low-power scanning mode is not suitable, so that the full-screen scanning mode is entered, and stable processing such as mutual capacity change data filtering, coordinate filtering and the like is needed in the mode to ensure that stable mutual capacity change data are acquired, and the touch pad can respond to user operation in time in noisy environments although the power consumption is relatively larger. The method and the device have the advantages that whether the low-power-consumption scanning mode is entered or not is judged by collecting the noise data, and the condition that a user uses the touch pad can be more accurately obtained, so that the user can choose to enter the corresponding scanning mode, the power consumption of equipment is reduced, and meanwhile, the user operation can be responded timely.
Alternatively, the first noise threshold is less than the second noise threshold. The second noise threshold is slightly larger than the first noise threshold, so that on one hand, the touch panel can be prevented from frequently advancing and retreating to cause the possible abnormality of the operation of the touch panel, and on the other hand, the stable reduction of power consumption can be ensured.
As an alternative embodiment, the first continuous frame counter and the second continuous frame counter count the maximum noise data of each frame and the judgment results of the first noise threshold and the second noise threshold; when in the full-screen scanning mode, the first continuous frame counter counts up by one every time the maximum noise data under the current frame is smaller than the first noise threshold; otherwise, the first continuous frame counter is cleared; entering a low-power scanning mode until the count of the first continuous frame counter is m; when in the low power consumption scanning mode, the second continuous frame counter counts by one every time the maximum noise data under the current frame is larger than the second noise threshold value; otherwise, the second continuous frame counter is cleared; and entering a full-screen scanning mode until the count of the second continuous frame counter is m.
And then, executing step S3, if the low-power-consumption scanning mode is entered, acquiring an effective touch area of the touch panel according to the self-capacity change data, and scanning the effective touch area. Specifically, the method comprises the following steps: s31, acquiring a scanning channel meeting a touch condition when self-contained code printing sampling is carried out, wherein if self-contained change data on the scanning channel is larger than an initial threshold value, the touch condition is met; s32, taking the area where the scanning channel meeting the touch condition is located as an effective touch area; s33, performing mutual capacity coding sampling on the scanning channels of the effective touch area to finish scanning of the effective touch area. The scanning channels comprise sensing channels and driving channels, when self-contained coding and sampling are carried out, self-contained change data on each driving channel are mainly obtained, when the self-contained change data on a certain driving channel is larger than an initial threshold value, the fact that a finger touches the driving channel is indicated, therefore, the driving channels with the self-contained change data larger than the initial threshold value are selected as effective touch areas, and only the effective touch areas are scanned. Namely, coding the driving channel on the effective touch area to generate a coding signal, receiving the coding signal by the corresponding sensing channel, and scanning the sensing channel to obtain touch data. Therefore, the code printing of all driving channels is changed into the code printing of the area driving channels, so that the power consumption can be reduced, the endurance time of the equipment is increased, the point reporting rate can be improved due to the reduction of the mutual capacitance sampling time, and the method is suitable for electronic equipment such as notebook computers, leather sheath keyboards, wireless touch mice, game handles and the like in time for corresponding user operations.
And finally, executing step S4, and if the low-power-consumption scanning mode is not entered, scanning the full screen of the touch pad. Specifically, in a full-screen scanning mode, all scanning channels on the touch panel are subjected to mutual capacity coding sampling, and the full-screen scanning of the touch panel is completed. The principle is the same as described above, except that in this mode all drive channels of the touch pad are coded.
The embodiment is a specific example only and does not suggest one such implementation of the invention.
Embodiment two:
Those of ordinary skill in the art will appreciate that all or part of the features/steps of the method embodiments described above may be implemented by a method, a data processing system, or a computer program, and that the features may be implemented in a manner that is not hardware, in a manner that is software, or in a combination of hardware and software. The foregoing computer program may be stored in one or more computer readable storage media having stored thereon a computer program that, when executed by a scanning device of a low power consumption touch pad, performs steps comprising one of the scanning method embodiments of a low power consumption touch pad described above.
The aforementioned storage medium that can store the program code includes: static disk, solid state disk, random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), optical storage, magnetic storage, flash memory, magnetic or optical disk, and/or combinations thereof, may be implemented by any type of volatile or nonvolatile storage device or combination thereof.
Embodiment III:
The invention also provides a scanning device embodiment of the low-power-consumption touch pad, which comprises one or more processors and a memory; the memory is configured to store one or more computer programs, and the one or more processors are configured to execute the one or more computer programs stored in the memory, so that the processor performs the features/steps of the scanning method embodiment of the low power consumption touch pad.
The foregoing is only illustrative of the preferred embodiments of the application, and it will be appreciated by those skilled in the art that various changes in the features and embodiments may be made and equivalents may be substituted without departing from the spirit and scope of the application. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the application without departing from the essential scope thereof. Therefore, it is intended that the application not be limited to the particular embodiment disclosed, but that the application will include all embodiments falling within the scope of the appended claims.