Touch device scanning method and electronic equipment
By dividing the touch area of the touch device and adjusting the scanning frequency according to the frequency of use, the problem of high power consumption of capacitive touch screens is solved, and the sensitivity and low power consumption are balanced, and the battery life is improved.
Patent Information
- Application Number
- CN202411257484.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2024-12-27
AI Technical Summary
While ensuring touch sensitivity, capacitive touch screens consume high power, making it difficult to meet the needs of low power consumption and high battery life.
The touch area of the touch device is divided into multiple areas, and the touch event is detected in real time. The area where the touch event is occurring is scanned at the first scanning frequency. The area where the touch event is not occurred is scanned at a lower than the first scanning frequency, and according to the use Frequency information updates the scan frequency configuration information.
While ensuring touch sensitivity, it reduces the power consumption of the overall touch screen, improves the battery life of touch devices, and responds to the market's demand for low-energy touch devices.
Smart Images

Figure CN119200880A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of touch control technology, and in particular to a touch control device scanning method and an electronic device. Background Art
[0002] As an important interactive interface in modern electronic devices, the performance of touch screens directly affects the user experience. The working principle of touch screens is based on a variety of technologies, such as resistive, capacitive, and infrared technologies. Among them, capacitive touch screens are widely used in smart phones, tablet computers, laptops and other devices due to their multi-touch characteristics and high sensitivity.
[0003] Capacitive touch screens determine the touch position by sensing the change in capacitance between the human body and the electrode. In order to improve the sensitivity and accuracy of touch, the touch screen uses a fixed period scanning frequency to scan the entire screen, but this process consumes a lot of power, which is inconsistent with the current market's goal of developing low-power and high-endurance energy-saving devices. Therefore, how to reduce the power consumption of the device while ensuring touch sensitivity has become an important direction for the development of touch technology. Summary of the invention
[0004] The purpose of the present application is to provide a touch device scanning method and an electronic device, which can reduce the power consumption of the entire touch screen in the working mode while ensuring the touch sensitivity.
[0005] In order to achieve the above object, the present application provides a touch device scanning method, comprising:
[0006] Dividing a touch area of the touch device into a plurality of touch areas;
[0007] Detecting in real time whether a touch event occurs in each of the touch control areas;
[0008] When it is detected that there are both the touch area where a touch event is occurring and the touch area where no touch event has occurred, the touch area where a touch event is occurring is scanned at a first scanning frequency, and the touch area where no touch event has occurred is scanned at a scanning frequency lower than the first scanning frequency.
[0009] Optionally, the first scanning frequency is a scanning frequency in a normal working mode.
[0010] Optionally, scanning the touch control area where no touch event occurs at a scanning frequency lower than the first scanning frequency includes:
[0011] When there are multiple touch control areas where no touch event occurs, the corresponding scanning frequencies are determined according to the distances from the touch control areas where touch events are occurring.
[0012] Optionally, the scanning frequency of the touch control area where no touch event occurs is gradually reduced as the distance from the touch control area where a touch event is occurring increases.
[0013] Optionally, scanning the touch control area where no touch event occurs at a scanning frequency lower than the first scanning frequency includes:
[0014] Acquiring usage frequency information of each of the touch control areas;
[0015] Based on the usage frequency information, update the scanning frequency configuration information when no touch event occurs in each of the touch control areas;
[0016] When it is detected that the touch area where a touch event is occurring and the touch area where no touch event occurs exist at the same time, the touch area where no touch event occurs is scanned with the corresponding scanning frequency configuration information.
[0017] Optionally, the usage frequency information is updated after each group of touch events in the touch area occurs.
[0018] In order to achieve the above object, the present application also provides an electronic device, including:
[0019] Processor; and
[0020] A memory, configured to store executable instructions of the processor;
[0021] The processor is configured to perform the above method by executing the executable instructions.
[0022] Optionally, the electronic device further comprises a plurality of registers corresponding to the plurality of touch control areas respectively, and the registers store scanning frequency configuration information of the corresponding touch control areas;
[0023] The memory stores usage frequency information of each of the touch control areas;
[0024] The processor is configured to perform:
[0025] Based on the usage frequency information, update the scanning frequency configuration information when no touch event occurs in each of the touch control areas;
[0026] When it is detected that the touch area where a touch event is occurring and the touch area where no touch event occurs exist at the same time, the touch area where no touch event occurs is scanned with the corresponding scanning frequency configuration information.
[0027] Optionally, the memory includes a static random access memory, and the static random access memory is used to store each use information of each touch area;
[0028] The processor includes a micro control unit and a neural network processor, the micro control unit is connected to each of the registers and the static random access memory, and the neural network processor is connected to each of the registers and the static random access memory;
[0029] The neural network processor is used to process the data in the static random access memory to obtain the usage frequency information of each touch area, and determine the corresponding scanning frequency configuration information based on the usage frequency information and write it into the corresponding register;
[0030] The micro control unit is used to control each of the touch control areas to perform scanning, wherein the scanning of the touch control areas where no touch event occurs is controlled according to the scanning frequency configuration information stored in each of the registers.
[0031] In order to achieve the above-mentioned purpose, the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method as described above is implemented.
[0032] In the embodiment of the present application, the touch device scanning method divides the touch device into multiple touch areas, detects in real time whether a touch event occurs, scans the touch area where the touch event is occurring at a first scanning frequency, and scans other touch areas where no touch event occurs at a scanning frequency lower than the first scanning frequency. The method of the embodiment of the present application scans by area, while ensuring touch sensitivity, reducing the power consumption of the overall touch screen in the working mode, which is beneficial to improving the endurance of the touch device and responds to the market demand for low-energy touch devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 Flow chart of the touch device scanning method in the embodiment of the present application.
[0034] Figure 2 Schematic diagram of the partitions of the touch screen in the embodiment of the present application.
[0035] Figure 3 Schematic diagram of the sensing channels and driving channels corresponding to the touch area in the embodiment of the present application.
[0036] Figure 4 This is a schematic diagram of a finger sliding on a touch area in an embodiment of the present application.
[0037] Figure 5 Schematic diagram of a scanning process of an example of a touch device scanning method in an embodiment of the present application.
[0038] Figure 6This is a detailed flow chart of step S3 of another example of the touch device scanning method in the embodiment of the present application.
[0039] Figure 7 FIG. 4 is a schematic diagram of a scanning process for implementing another example of touch area scanning in an embodiment of the present application.
[0040] Figure 8 It is a schematic block diagram of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0041] In order to explain the technical content, structural features and achieved effects of the present application in detail, the following is a detailed description in combination with the implementation methods and the accompanying drawings.
[0042] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present application, so the present application is not limited by the specific embodiments disclosed below.
[0043] Embodiment 1
[0044] See also Figures 1 to 7 , the present application discloses a touch device scanning method, comprising:
[0045] S1, dividing a touch area of a touch device into a plurality of touch areas.
[0046] See also Figure 2 , when analyzed in combination with this specific example, the touch screen can be divided into four areas, namely touch area A, touch area B, touch area C and touch area D.
[0047] It should be noted that the touch screen is a possible implementation form of the touch area of the touch device. The touch device may include multiple touch screens or touch panels, and each touch screen or touch panel can be divided into multiple areas. This example is only a specific embodiment of the touch area division of the touch device.
[0048] See also Figure 3 Specifically, each touch area corresponds to a number of sensing channels (RX) and a number of driving channels (TX), and the sensing channels and the driving channels jointly determine the coordinate information of the touch area.
[0049] The touch screen includes sensing channels RX1-RX8 and driving channels TX1-TX13.
[0050] The touch area A corresponds to the rectangular area surrounded by the sensing channels RX7-RX8 and the driving channels TX1-TX5, the touch area B corresponds to the area surrounded by the sensing channels RX5-RX6 and the driving channels TX1-TX8, and the area surrounded by the sensing channels RX7-RX8 and the driving channels TX6-TX8, the touch area C corresponds to the area surrounded by the sensing channels RX3-RX4 and the driving channels TX1-TX10, and the area surrounded by the sensing channels RX5-RX8 and the driving channels TX9-TX10, and the touch area D corresponds to the area surrounded by the sensing channels RX1-RX2 and the driving channels TX1-TX13, and the area surrounded by the sensing channels RX3-RX8 and the driving channels TX11-TX13.
[0051] Of course, this example is only one solution for dividing the touch area. The solution of this embodiment can also be divided into various other forms, such as being divided into multiple rectangles, and the number is not limited.
[0052] S2, detecting in real time whether a touch event occurs in each touch control area.
[0053] The sensing channel is the channel in the touch screen used to receive and sense touch signals, while the driving channel is the channel in the touch screen used to send driving signals. The driving channel activates the sensing channel on the touch screen by sending alternating current or voltage signals. In a capacitive touch screen, the sensing channel is equivalent to one pole of the capacitor, and the driving channel is equivalent to the other pole of the capacitor. The sensing channel and the driving channel together form a stable capacitor network. When a finger or other conductor approaches the touch screen, a new capacitor is formed between the sensing channel and the driving channel. The change in this capacitance is captured by the touch screen control chip and converted into a touch signal. By measuring the changes in these capacitances, the system can determine the specific location of the touch event.
[0054] S3, when it is detected that there are both a touch area where a touch event is occurring and a touch area where a touch event has not occurred (is not occurring), the touch area where the touch event is occurring is scanned at a first scanning frequency, and the touch area where the touch event has not occurred is scanned at a scanning frequency lower than the first scanning frequency.
[0055] Specifically, the first scanning frequency is a scanning frequency in a normal working mode.
[0056] In some embodiments, scanning a touch area where no touch event occurs at a scanning frequency lower than the first scanning frequency includes:
[0057] When there are multiple touch areas where no touch event occurs, the corresponding scanning frequencies are determined according to the distances from the touch areas where touch events are occurring.
[0058] Specifically, the scanning frequency of the touch control area where no touch event occurs decreases gradually as the distance from the touch control area where a touch event is occurring increases.
[0059] See also Figure 4 and Figure 5 , when analyzed in combination with a specific example, when the user's finger slides from touch area A to touch area D, corresponding touch events A, touch event B, touch event C and touch event D are triggered respectively.
[0060] During this touch process, when the finger is in touch area A, touch area A executes the first scanning frequency eHz, touch area B executes the scanning frequency b1Hz, touch area C executes the scanning frequency c1Hz, and touch area D executes the scanning frequency d1Hz, where e>b1>c1>d1, and eHz is the frequency of the normal working mode.
[0061] Specifically, b1 = 1 / 2*e, c1 = 1 / 4*e, d1 = 1 / 8*e, but the present invention is not limited thereto.
[0062] When the finger slides to touch area B, touch area B executes the first scanning frequency eHz, touch area A executes the scanning frequency a2Hz, touch area C executes the scanning frequency c2Hz, and touch area D executes the scanning frequency d2Hz, where e>a2=c2>d2, and eHz is the frequency of the normal operating mode.
[0063] Specifically, a2=c2=1 / 2*e, d2=1 / 4*e, but the present invention is not limited thereto.
[0064] When the finger slides to touch area C, touch area C executes the first scanning frequency eHz, touch area A executes the scanning frequency a3Hz, touch area B executes the scanning frequency b3Hz, and touch area D executes the scanning frequency d3Hz, where e>b3=d3>a3, and eHz is the frequency of the normal operating mode.
[0065] Specifically, b3=d3=1 / 2*e, a3=1 / 4*e, but the present invention is not limited thereto.
[0066] When the finger slides to touch area D, touch area D executes the first scanning frequency eHz, touch area A executes the scanning frequency a4Hz, touch area B executes the scanning frequency b4Hz, and touch area C executes the scanning frequency c4Hz, where e>c4>b4>a4, and eHz is the frequency of the normal operating mode.
[0067] Specifically, c4=1 / 2*e, b4=1 / 4*e, a4=1 / 8*e, but the present invention is not limited thereto.
[0068] See also Figure 6In some embodiments, scanning a touch area where no touch event occurs at a scanning frequency lower than the first scanning frequency includes:
[0069] S31, obtaining usage frequency information of each touch area.
[0070] Specifically, the touch device obtains touch signals through the sensing channel and the driving channel, and transmits these touch signals to the driver controller (Driver Controller). The driver controller converts these touch signals into digital signals, extracts information such as touch position and pressure, and then transmits them to the microcontroller (MCU) for processing. The microcontroller then stores this information in the data storage (Data SRAM).
[0071] The data storage system systematically stores and accumulates the user's interaction data on each touch area, including but not limited to key information such as the user's usage frequency and touch coordinates. Through the recorded interaction data, a big data system about usage frequency information is constructed.
[0072] The method of the embodiment of the present application is to configure the scanning frequency information of each touch area according to the user's usage habits to ensure timely response while saving energy consumption. Generally speaking, the higher the user's usage frequency of a touch area, the higher the possibility that the touch area will be used before the next touch operation begins. Therefore, the method of the present application needs to establish big data information based on the usage frequency information.
[0073] S32, updating scanning frequency configuration information when no touch event occurs in each touch control area based on the usage frequency information.
[0074] Specifically, the scanning frequency configuration information includes scanning frequency, clock frequency, number of scanning lines and scanning time, and the scanning frequency is lower than the first scanning frequency.
[0075] In the embodiment of the present application, by setting up an MCU-NPU module (neural network processor) to parse and logically summarize the data in the data storage, the computing power and computing efficiency can be greatly enhanced. Specifically, the touch device includes a number of registers, each register corresponds to a touch area, and the neural network processor logically summarizes and calculates the big data information to obtain the scanning frequency information of each touch area, and writes these scanning frequency configuration information into the corresponding register.
[0076] Specifically, the higher the historical usage frequency of the touch area, the higher the corresponding scanning frequency. Generally speaking, a touch area with a high usage frequency is regarded as a high-usage frequency touch area, and a touch area with a low usage frequency is regarded as a low-usage frequency touch area. Configuring the scanning frequency of the high-usage frequency touch area to a relatively high frequency and the low-usage frequency touch area to a relatively low frequency can improve the response speed of the high-usage frequency touch area and save power consumption in the low-usage frequency area.
[0077] S33, when it is detected that there are both a touch area where a touch event is occurring and a touch area where no touch event has occurred, scanning the touch area where no touch event has occurred with corresponding scanning frequency configuration information.
[0078] Specifically, the MCU accesses a register corresponding to the touch area, and calls the scanning frequency information in the register to scan the corresponding touch area.
[0079] See also Figure 7 The following is an exemplary description of the scanning process of the touch device in the embodiment of the present application, which should not be regarded as a limitation to the present application.
[0080] If the touch control device detects that touch event A occurs in touch area A, touch area A executes the first scanning frequency, and the remaining touch areas B, C and D are scanned according to the scanning frequency information configured in their registers B, C and D.
[0081] When the finger slides from touch area A to touch area B, the touch device detects that touch event B occurs in touch area B, then touch area B executes the first scanning frequency, and the remaining touch areas A, C and D are scanned according to the scanning frequency information configured in their registers A, C and D.
[0082] When the finger slides from touch area B to touch area C, the touch device detects that touch event C occurs in touch area C, then touch area C executes the first scanning frequency, and the remaining touch areas A, B and D are scanned according to the scanning frequency information configured in their registers A, B and D.
[0083] When the finger slides from touch area C to touch area D, the touch device detects that touch event D occurs in touch area D, then touch area D executes the first scanning frequency, and the remaining touch areas A, B and C are scanned according to the scanning frequency information configured in their registers A, B and C.
[0084] Specifically, the usage frequency information is updated after each group of touch events in the touch area occurs.
[0085] It is understandable that when the user's finger touches the touch screen to the finger leaves, multiple touch events will be triggered. This application regards these touch events as a group of touch events (it is understandable that the touch events here are different from the touch events of the aforementioned touch areas). When a touch operation occurs, the touchstart event, touchmove event, and touchend event will be triggered, corresponding to the touch operations of the finger starting to contact the touch screen, the finger sliding on the screen, and the finger leaving the screen. Touch events are the key to handling user touch interactions in web pages and applications. Each event carries touches, targetTouches, and changedTouches attributes for tracking touch status. The Touch object contains coordinate information, which makes it easy for developers to build operations that respond to touch. These events play an important role in interactive design on mobile devices.
[0086] Generally speaking, the neural network processor will recalculate and update after the touchend event, that is to say, in the process from the touchstart event to the touchend event, the scanning frequency of each area has not changed. When the finger leaves the screen, the data storage device will update the usage frequency information of each area, and the neural network processor will recalculate the usage frequency information to update the scanning frequency information in the register. Of course, it can also be set so that the neural network processor recalculates once every preset time period, and the preset time period can be set as needed. Generally speaking, the state when the user is in use is the active state, and the state when no touch event occurs is the idle state. The update of the scanning frequency occurs in the idle state. Since the user's usage habits will change over time, and the data storage device can update the big data information in time, the neural network processor can calculate in time and adjust the scanning frequency information in the register to ensure the smooth response of the touch screen when the user performs touch operations, which is conducive to improving the user experience.
[0087] In the embodiment of the present application, the touch device scanning method divides the touch device into multiple touch areas, detects in real time whether a touch event occurs, scans the touch area where the touch event is occurring at a first scanning frequency, and scans other touch areas where no touch event occurs at a scanning frequency lower than the first scanning frequency. The method of the embodiment of the present application scans by area, while ensuring touch sensitivity, reducing the power consumption of the overall touch screen in the working mode, which is beneficial to improving the endurance of the touch device and responds to the market demand for low-energy touch devices.
[0088] Embodiment 2
[0089] See also Figure 8, the present application also discloses an electronic device, comprising:
[0090] Processor 40; and
[0091] The memory 50 is used to store executable instructions of the processor 40 .
[0092] The processor 40 is configured to perform the above method by executing executable instructions.
[0093] Specifically, the electronic device further includes a plurality of registers corresponding to the plurality of touch control areas respectively, and the registers store scanning frequency configuration information of the corresponding touch control areas.
[0094] The memory 50 stores usage frequency information of each touch area.
[0095] The processor 40 is configured to execute:
[0096] The scanning frequency configuration information when no touch event occurs in each touch control area is updated based on the use frequency information.
[0097] When it is detected that there are both a touch area where a touch event is occurring and a touch area where no touch event has occurred, the touch area where no touch event has occurred is scanned with corresponding scanning frequency configuration information.
[0098] Specifically, the memory 50 includes a static random access memory (Data SRAM), and the static random access memory is used to store each use information of each touch area.
[0099] The processor 40 includes a microcontroller unit (MCU) and a neural network processor (MCU-NPU), the microcontroller unit is connected to each register and a static random access memory, and the neural network processor is connected to each register and a static random access memory.
[0100] The neural network processor is used to process the data in the static random access memory to obtain the usage frequency information of each touch area, and determine the corresponding scanning frequency configuration information based on the usage frequency information and write it into the corresponding register.
[0101] The micro control unit is used to control each touch area to scan, wherein the scanning of the touch area where no touch event occurs is controlled according to the scanning frequency configuration information stored in each register.
[0102] Embodiment 3
[0103] The present application embodiment discloses a computer-readable storage medium, which includes a computer program, and the computer program can be executed by a processor to complete the above detection method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium can be a read-only memory (ROM), or a random access memory (RAM), or a magnetic medium, such as a floppy disk, a hard disk, a tape, a magnetic disk, or an optical medium, such as a digital versatile disc (DVD), or a semiconductor medium, such as a solid state drive (SSD).
[0104] The above disclosure is only a preferred example of the present application, and its role is to facilitate the technical personnel in this field to understand and implement it. Of course, it cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the scope of the patent application of the present application still fall within the scope covered by the present application.
Claims
1. A touch device scanning method, characterized in that: include: Dividing a touch area of the touch device into a plurality of touch areas; Detecting in real time whether a touch event occurs in each of the touch control areas; When it is detected that there are both the touch area where a touch event is occurring and the touch area where no touch event has occurred, the touch area where a touch event is occurring is scanned at a first scanning frequency, and the touch area where no touch event has occurred is scanned at a scanning frequency lower than the first scanning frequency.
2. The touch device scanning method according to claim 1, characterized in that: The first scanning frequency is a scanning frequency in a normal working mode.
3. The touch device scanning method according to claim 1, characterized in that: Scanning the touch control area where no touch event occurs at a scanning frequency lower than the first scanning frequency includes: When there are multiple touch control areas where no touch event occurs, the corresponding scanning frequencies are determined according to the distances from the touch control areas where touch events are occurring.
4. The touch device scanning method according to claim 3, characterized in that: The scanning frequency of the touch control area where no touch event occurs is gradually reduced as the distance from the touch control area where a touch event is occurring increases.
5. The touch device scanning method according to claim 1, characterized in that: Scanning the touch control area where no touch event occurs at a scanning frequency lower than the first scanning frequency includes: Acquiring usage frequency information of each of the touch control areas; Based on the usage frequency information, update the scanning frequency configuration information when no touch event occurs in each of the touch control areas; When it is detected that the touch area where a touch event is occurring and the touch area where no touch event occurs exist at the same time, the touch area where no touch event occurs is scanned with the corresponding scanning frequency configuration information.
6. The touch device scanning method according to claim 5, characterized in that: The usage frequency information is updated after each group of touch events in the touch control area occurs.
7. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method according to any one of claims 1 to 6 by executing the executable instructions.
8. The electronic device according to claim 7, characterized in that: The electronic device further comprises a plurality of registers corresponding to the plurality of touch control areas respectively, wherein the registers store scanning frequency configuration information of the corresponding touch control areas; The memory stores usage frequency information of each of the touch control areas; The processor is configured to perform: Based on the usage frequency information, update the scanning frequency configuration information when no touch event occurs in each of the touch control areas; When it is detected that the touch area where a touch event is occurring and the touch area where no touch event occurs exist at the same time, the touch area where no touch event occurs is scanned with the corresponding scanning frequency configuration information.
9. The electronic device according to claim 8, characterized in that: The memory includes a static random access memory, and the static random access memory is used to store each use information of each touch control area; The processor includes a micro control unit and a neural network processor, the micro control unit is connected to each of the registers and the static random access memory, and the neural network processor is connected to each of the registers and the static random access memory; The neural network processor is used to process the data in the static random access memory to obtain the usage frequency information of each touch area, and determine the corresponding scanning frequency configuration information based on the usage frequency information and write it into the corresponding register; The micro control unit is used to control each of the touch control areas to perform scanning, wherein the scanning of the touch control areas where no touch event occurs is controlled according to the scanning frequency configuration information stored in each of the registers.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.