CN108920026B - Touch screen scanning method, computer device and storage medium - Google Patents

Touch screen scanning method, computer device and storage medium Download PDF

Info

Publication number
CN108920026B
CN108920026B CN201810414561.4A CN201810414561A CN108920026B CN 108920026 B CN108920026 B CN 108920026B CN 201810414561 A CN201810414561 A CN 201810414561A CN 108920026 B CN108920026 B CN 108920026B
Authority
CN
China
Prior art keywords
touch screen
scanning
scanning frequency
axis direction
touch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810414561.4A
Other languages
Chinese (zh)
Other versions
CN108920026A (en
Inventor
周宜宗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Interface Optoelectronics Shenzhen Co Ltd
Interface Technology Chengdu Co Ltd
General Interface Solution Ltd
Original Assignee
Interface Optoelectronics Shenzhen Co Ltd
Interface Technology Chengdu Co Ltd
General Interface Solution Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Interface Optoelectronics Shenzhen Co Ltd, Interface Technology Chengdu Co Ltd, General Interface Solution Ltd filed Critical Interface Optoelectronics Shenzhen Co Ltd
Priority to CN201810414561.4A priority Critical patent/CN108920026B/en
Publication of CN108920026A publication Critical patent/CN108920026A/en
Application granted granted Critical
Publication of CN108920026B publication Critical patent/CN108920026B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means

Abstract

The application relates to a touch screen scanning method, a computer device and a storage medium, wherein the method comprises the following steps: step A: scanning the touch screen at a preset scanning frequency to detect whether a touch point exists on the touch screen; and B: if no touch point is detected, reducing the scanning frequency; and C: scanning the touch screen according to the reduced scanning frequency; step D: and repeating the step B and the step C until the scanning frequency is reduced to the minimum scanning frequency for normal work of the touch screen, and scanning the touch screen at the minimum scanning frequency. By adopting the method, the power consumption of the touch screen can be reduced, and the service life of the touch screen can be prolonged.

Description

Touch screen scanning method, computer device and storage medium
Technical Field
The present application relates to the field of touch screen scanning, and in particular, to a touch screen scanning method, a computer device, and a storage medium.
Background
The capacitive Touch screen ctp (capacitive Touch panel) operates by using current induction of a human body. The capacitive touch screen is a four-layer composite glass screen, the inner surface and the interlayer of the glass screen are respectively coated with a layer of ITO (nanometer indium tin oxide), the outermost layer is a silica glass protective layer with the thickness of only 0.0015mm, the interlayer ITO coating is used as a working surface, four electrodes are led out from four corners, and the inner layer ITO is used as a screen layer to ensure the working environment.
When a finger touches the capacitive touch screen, the coupling between the two electrodes near the touch point is affected, thereby changing the capacitance between the two electrodes. When the capacitance is detected, the transverse electrodes sequentially send out driving signals, and the longitudinal electrodes simultaneously receive signals, so that the capacitance value of the intersection point of the transverse electrodes and the longitudinal electrodes, namely the capacitance of the two-dimensional plane of the whole capacitive touch screen, can be obtained. According to the two-dimensional capacitance variation data of the capacitive touch screen, the coordinates of each touch point can be calculated.
However, when there is no touch point on the capacitive touch screen, the horizontal electrodes of the capacitive touch screen are also always sending out driving signals, and all the vertical electrodes are also always detecting the driving signals, so that the consumed electric quantity is increased, and the service time of the capacitive touch screen is affected.
Disclosure of Invention
In view of the above, it is desirable to provide a touch screen scanning method, a computer device and a storage medium capable of reducing power consumption.
The invention provides a touch screen scanning method, which comprises the following steps:
step A: scanning the touch screen at a preset scanning frequency to detect whether a touch point exists on the touch screen;
and B: if no touch point is detected, reducing the scanning frequency;
and C: scanning the touch screen according to the reduced scanning frequency;
step D: and repeating the step B and the step C until the scanning frequency is reduced to the minimum scanning frequency for normal work of the touch screen, and scanning the touch screen at the minimum scanning frequency.
In one embodiment, the touch screen comprises a plurality of first axis direction traces and a plurality of second axis direction traces; the step of scanning the touch screen at a preset scanning frequency includes:
and sequentially sending out driving signals to the plurality of traces in the first axial direction at the preset scanning frequency, and sequentially detecting the driving signals by the plurality of traces in the second axial direction.
In one embodiment, after the step of scanning the touch screen at the minimum scanning frequency, the method further includes:
step E: and sequentially sending driving signals to the plurality of traces in the first axis direction at the minimum scanning frequency according to a preset interval so as to scan the touch screen and detect whether a touch point exists on the touch screen.
In one embodiment, after the step E, the method further includes:
step F: if no touch point is detected, increasing the interval;
step G: and sequentially sending out driving signals to the plurality of traces in the first axis direction at the minimum scanning frequency according to the increased intervals so as to scan the touch screen.
In one embodiment, after the step G, the method further includes:
step H: and repeating the steps F and G until the interval is increased to the maximum interval of normal work of the touch screen, and sequentially sending driving signals to the plurality of tracks in the first axis direction at the minimum scanning frequency according to the maximum interval so as to scan the touch screen.
In one embodiment, the method further comprises the following steps:
and if the touch point is detected, returning to the step E or the step A.
In one embodiment, the method further comprises the following steps:
and if the touch point is detected, returning to the step A.
In one embodiment, the scanning frequency is reduced by half at a time from a preset scanning frequency.
The invention also provides a computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of any of the above methods when executing the computer program.
The invention also relates to a computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method according to any of the above.
According to the touch screen scanning method, the computer equipment and the storage medium, when the touch point is not scanned all the time, the scanning frequency of the touch screen is gradually reduced, so that the power consumption of the touch screen is reduced, and the service life of the touch screen is prolonged.
Drawings
FIG. 1 is a flow diagram of a touch screen scanning method in one embodiment;
FIG. 2 is a schematic structural diagram of an embodiment of a mutual capacitance touch screen;
FIG. 3 is a flow diagram of a method for touch screen scanning in another embodiment;
FIG. 4 is a flow chart of a touch screen scanning method in yet another embodiment;
FIG. 5 is a flowchart of step 70 of FIG. 4;
fig. 6 is a flowchart of step 80 in fig. 4.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The scanning method of the touch screen can be applied to the process of scanning the touch points by the touch screen. The touch screen may be, but is not limited to, a display screen with a touch function, such as a mobile phone and a tablet computer.
In one embodiment, as shown in fig. 1, there is provided a scanning method of a touch screen, including the steps of:
step A: and scanning the touch screen at a preset scanning frequency to detect whether a touch point exists on the touch screen.
And B, the preset scanning frequency in the step A is a preset frequency for scanning the touch screen, and the preset scanning frequency can be set according to the size of the touch screen. The scanning may be scanning the entire screen of the touch screen.
Step B, judging whether a touch point is scanned;
specifically, the processor of the touch screen scans the whole screen range of the touch screen at a preset scanning frequency. If the touch point is not scanned, the subsequent steps are carried out; if the touch point is scanned, the step A is continued.
And C: and if the touch point is not scanned, reducing the scanning frequency, and scanning the touch screen according to the reduced scanning frequency.
Specifically, when no touch point is scanned in step a, the processor reduces the scanning frequency, continues to scan the entire screen of the touch screen, and repeats step B and step C. If the touch point is scanned, returning to the step A; if there is no touch point, the subsequent steps are continued.
Step D: and scanning the touch screen at the minimum scanning frequency until the scanning frequency is reduced to the minimum scanning frequency at which the touch screen normally works.
The minimum scanning frequency is a set minimum frequency capable of normally scanning the touch screen, and can be specifically set according to actual conditions.
Specifically, the processor continuously reduces the scanning frequency, and the screen of the touch screen is scanned once every time the scanning frequency is reduced. And if the touch point is scanned in any scanning, returning to the step A. And if the touch point is not scanned all the time, reducing the scanning frequency after scanning once, and then continuing to scan the touch screen at the reduced scanning frequency.
And the processor reduces the scanning frequency to the minimum scanning frequency and then scans the touch screen. If the touch point is not scanned, the touch screen is always scanned at the minimum scanning frequency, and if the touch point is scanned, the step A can be returned.
According to the scanning method of the touch screen, the scanning frequency of the touch screen is gradually reduced when the touch point is not scanned all the time, so that the electric quantity consumption of the touch screen is reduced, and the service life of the touch screen is prolonged.
In one embodiment, taking a mutual capacitance touch screen as an example, as shown in fig. 2, the touch screen includes a plurality of first-axis-direction traces (X1, X2 … … Xn) and a plurality of second-axis-direction traces (Y1, Y2 … … Ym). The traces may also be referred to as scan lines. The trace in the first axis direction is connected with a driving unit of the processor, and the driving unit is used for sending out a driving signal along the trace in the first axis direction. The second axial trace is connected to a receiving unit of the processor, and the receiving unit is used for detecting the driving signal along the second axial trace.
When the touch screen scans, the driving unit sends out driving signals along each trace in the first axis direction, and the receiving unit sequentially receives the driving signals along a plurality of traces in the second axis direction. Specifically, the driving unit sends out the driving signal along the trace X1 in the first axis direction, and the receiving unit sequentially detects the driving signal along the trace Y1 → Y2 → … → Ym in the second axis direction. The driving unit sends out the driving signal along a trace X2 in the first axis direction, and the receiving unit sequentially detects the driving signal along a trace Y1 → Y2 → … → Ym in the second axis direction. And so on, the driving signal is emitted along the trace Xn-1 of the first axis direction by the driving unit, and the driving signal is detected sequentially along the traces Y1 → Y2 → … → Ym by the receiving unit along the second axis direction. The driving unit sends out the driving signal along the trace Xn of the first axis direction, and the receiving unit sequentially detects the driving signal along the trace Y1 → Y2 → … → Ym of the second axis direction. At this point, one scan is completed. The time interval between the driving signal emitted by the driving unit along trace X1 in the first axis direction and the driving signal emitted by the driving unit along trace X2 in the first axis direction is the scanning frequency.
As shown in fig. 3, after the step of scanning the touch screen at the minimum scanning frequency, the method further comprises the following steps:
step E: and judging whether the touch point is scanned.
Specifically, when the touch screen is scanned at the minimum scanning frequency, if no touch point is scanned, the subsequent steps are performed; and if the touch point is scanned, returning to the previous step.
Step F: and sequentially sending driving signals to the plurality of traces in the first axis direction at the minimum scanning frequency according to a preset interval so as to scan the touch screen and detect whether a touch point exists on the touch screen.
Specifically, assuming that the preset number of intervals in this embodiment is 1, or taking fig. 2 as an example for description, the sequence of sequentially sending out the driving signals to the plurality of traces in the first axis direction at the preset intervals may be: x1 → X3 → X5 … → Xn-1; x2 → X4 → X6 … → Xn. If the touch point is not scanned, increasing the interval;
step G: and sequentially sending out driving signals to the plurality of traces in the first axis direction at the minimum scanning frequency according to the increased intervals so as to scan the touch screen.
Specifically, the number of the increase may be increased according to a preset number of intervals, in this embodiment, the preset number of intervals is 1, the number of the increased intervals may be 2, and the sequence of sequentially sending the driving signals to the plurality of traces in the first axis direction according to the preset intervals may be: x1 → X4 → X7 … → Xn-2; x2 → X5 → X8 … → Xn-1; x3 → X6 → X9 … → Xn.
Step H: and repeating the steps F and G until the interval is increased to the maximum interval capable of normally scanning the touch screen, and sequentially sending driving signals to the plurality of tracks in the first axis direction at the maximum interval at the minimum scanning frequency so as to scan the touch screen.
In one embodiment, as shown in fig. 4, the specific process of the touch screen scanning method is as follows:
step 10: the driving unit sequentially emits driving signals along a trace line X1 → X2 → … → Xn of the first axis direction at a preset scan frequency (F), and the receiving unit sequentially detects the driving signals along a trace line Y1 → Y2 → … → Ym of the second axis direction.
Step 20: if a touch point is not scanned, a scanning frequency is changed to a half of a preset scanning frequency (1/2F), the driving unit sequentially emits driving signals along a trace X1 → X2 → … → Xn of the first axis direction, and the receiving unit sequentially detects the driving signals along a trace Y1 → Y2 → … → Ym of the second axis direction.
Step 30: if the touch point is not scanned yet, the scanning frequency is halved again (1/4F), the driving unit sequentially sends out driving signals along the trace X1 → X2 → … → Xn of the first axis direction, and the receiving unit sequentially detects the driving signals along the trace Y1 → Y2 → … → Ym of the second axis direction.
Step 40: if the touch point is not yet scanned, the scanning frequency is halved again (1/8F), the driving unit sequentially sends out driving signals along the trace X1 → X2 → … → Xn of the first axis direction, and the receiving unit sequentially detects the driving signals along the trace Y1 → Y2 → … → Ym of the second axis direction.
Step 50: and so on, halving the scanning frequency and then sending out the driving signal.
Step 60: if a touch point is not yet scanned, a scanning frequency is changed to a minimum scanning frequency (min.f), the driving unit sequentially emits driving signals along the trace X1 → X2 → … → Xn in the first axis direction, and the receiving unit sequentially detects the driving signals along the trace Y1 → Y2 → … → Ym in the second axis direction.
If a touch point is scanned at any of the steps 10-60 described above, a new round of scanning can be started, returning to step 10. It will be understood by those skilled in the art that the subsequent steps after the touch point is scanned may be set according to actual requirements, and the step 10 is not necessarily required, and the step may be returned to any step before the current step.
Step 70: a half-local scan is performed at the minimum scan frequency, as shown in fig. 5, and the specific scanning process is as follows:
701: the driving unit sends out a driving signal along the trace X1 of the first axis direction at a minimum scanning frequency, and the receiving unit sequentially detects the driving signal along the trace Y1 → Y2 → … → Ym of the second axis direction.
702: idle (skip X2, i.e. not send a drive signal to X2).
703: the driving unit sends out a driving signal along the trace X3 of the first axis direction at a minimum scanning frequency, and the receiving unit sequentially detects the driving signal along the trace Y1 → Y2 → … → Ym of the second axis direction.
704: idle (skip X4).
705: the driving unit sends out a driving signal along the trace X5 of the first axis direction at a minimum scanning frequency, and the receiving unit sequentially detects the driving signal along the trace Y1 → Y2 → … → Ym of the second axis direction.
706: and so on, the driving unit sends out a driving signal along the trace Xn-1 of the first axis direction with the minimum scanning frequency, and the receiving unit sequentially detects the driving signal along the traces Y1 → Y2 → … → Ym of the second axis direction.
707: the driving unit sends out a driving signal along the trace X2 of the first axis direction at a minimum scanning frequency, and the receiving unit sequentially detects the driving signal along the trace Y1 → Y2 → … → Ym of the second axis direction.
708: idle (skip X3, i.e. not send a drive signal to X2).
709: the driving unit sends out a driving signal along the trace X4 of the first axis direction at a minimum scanning frequency, and the receiving unit sequentially detects the driving signal along the trace Y1 → Y2 → … → Ym of the second axis direction.
710: idle (skip X5).
711: and so on, the driving unit sends out a driving signal along the trace Xn of the first axis direction with the minimum scanning frequency, and the receiving unit detects the driving signal along the trace Y1 → Y2 → … → Ym in sequence along the second axis direction.
Step 80: if the touch point is not scanned yet, one-third local scanning is performed, as shown in fig. 6, the specific scanning process is as follows:
801: the driving unit sends out a driving signal along the trace X1 of the first axis direction at a minimum scanning frequency, and the receiving unit sequentially detects the driving signal along the trace Y1 → Y2 → … → Ym of the second axis direction.
802: idle X2 (skip X2 and X3).
803: the driving unit sends out a driving signal along the trace X4 of the first axis direction at a minimum scanning frequency, and the receiving unit sequentially detects the driving signal along the trace Y1 → Y2 → … → Ym of the second axis direction.
804: idle X2 (skip X5 and X6).
805: the driving unit sends out a driving signal along the trace X7 of the first axis direction at a minimum scanning frequency, and the receiving unit sequentially detects the driving signal along the trace Y1 → Y2 → … → Ym of the second axis direction.
806: and so on, the driving unit sends out a driving signal along the trace Xn-2 of the first axis direction with the minimum scanning frequency, and the receiving unit sequentially detects the driving signal along the traces Y1 → Y2 → … → Ym of the second axis direction.
807: the driving unit sends out a driving signal along the trace X2 of the first axis direction at a minimum scanning frequency, and the receiving unit sequentially detects the driving signal along the trace Y1 → Y2 → … → Ym of the second axis direction.
808: idle X2 (skip X3 and X4).
809: the driving unit sends out a driving signal along the trace X5 of the first axis direction at a minimum scanning frequency, and the receiving unit sequentially detects the driving signal along the trace Y1 → Y2 → … → Ym of the second axis direction.
810: idle X2 (skip X6 and X7).
811: and so on, the driving unit sends out a driving signal along the trace Xn-1 of the first axis direction with the minimum scanning frequency, and the receiving unit sequentially detects the driving signal along the traces Y1 → Y2 → … → Ym of the second axis direction.
812: the driving unit sends out a driving signal along the trace X3 of the first axis direction at a minimum scanning frequency, and the receiving unit sequentially detects the driving signal along the trace Y1 → Y2 → … → Ym of the second axis direction.
813: idle X2 (skip X4 and X5).
814: the driving unit sends out a driving signal along the trace X6 of the first axis direction at a minimum scanning frequency, and the receiving unit sequentially detects the driving signal along the trace Y1 → Y2 → … → Ym of the second axis direction.
815: idle X2 (skip X7 and X8).
816: and so on, the driving unit sends out a driving signal along the trace Xn of the first axis direction with the minimum scanning frequency, and the receiving unit detects the driving signal along the trace Y1 → Y2 → … → Ym in sequence along the second axis direction.
Step 90: and so on, gradually increasing the scanning interval.
Step 100: if the touch point has not been scanned, the scan is done at the maximum interval. Assuming that the maximum interval is one-third of a whole, the process of step 100 is identical to step 80. It will be appreciated by those skilled in the art that the maximum interval may be set according to practical circumstances.
If a touch point is scanned at any of the steps 70-100 above, a new round of scanning may be started before returning to step 70. It will be understood by those skilled in the art that the subsequent steps after the touch point is scanned may be set according to actual requirements, and do not necessarily need to return to any step before the step 70 and before the current step.
When the touch screen is actually scanned, the electric quantity consumption during scanning can be further reduced and the time for using the electric quantity is prolonged by increasing the interval of sending the driving signal during scanning.
The above steps 10-100 are all exemplified by mutual capacitance touch screens, and those skilled in the art will understand that other types of touch screens, such as self-capacitance touch screens, are also applicable.
It should be understood that, although the steps in the flowchart of fig. 1 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 1 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
step A: and scanning the touch screen at a preset scanning frequency to detect whether a touch point exists on the touch screen.
And B: and if the touch point is not scanned, reducing the scanning frequency.
And C: and scanning the touch screen according to the reduced scanning frequency.
Step D: and repeating the step B and the step C until the scanning frequency is reduced to the minimum scanning frequency for normal work of the touch screen, and scanning the touch screen at the minimum scanning frequency.
In one embodiment, taking a mutual capacitance touch screen as an example, as shown in fig. 2, the touch screen includes a plurality of first-axis-direction traces (X1, X2 … … Xn) and a plurality of second-axis-direction traces (Y1, Y2 … … Ym). The traces may also be referred to as scan lines. The trace in the first axis direction is connected with a driving unit of the processor, and the driving unit is used for sending out a driving signal along the trace in the first axis direction. The second axial trace is connected to a receiving unit of the processor, and the receiving unit is used for detecting the driving signal along the second axial trace.
When the touch screen scans, the driving unit sends out driving signals along each trace in the first axis direction, and the receiving unit sequentially receives the driving signals along a plurality of traces in the second axis direction. Specifically, the driving unit sends out the driving signal along the trace X1 in the first axis direction, and the receiving unit sequentially detects the driving signal along the trace Y1 → Y2 → … → Ym in the second axis direction. The driving unit sends out the driving signal along a trace X2 in the first axis direction, and the receiving unit sequentially detects the driving signal along a trace Y1 → Y2 → … → Ym in the second axis direction. And so on, the driving signal is emitted along the trace Xn-1 of the first axis direction by the driving unit, and the driving signal is detected sequentially along the traces Y1 → Y2 → … → Ym by the receiving unit along the second axis direction. The driving unit sends out the driving signal along the trace Xn of the first axis direction, and the receiving unit sequentially detects the driving signal along the trace Y1 → Y2 → … → Ym of the second axis direction. At this point, one scan is completed. The time interval between the driving signal emitted by the driving unit along trace X1 in the first axis direction and the driving signal emitted by the driving unit along trace X2 in the first axis direction is the scanning frequency.
After the step of scanning the touch screen at the minimum scanning frequency, if no touch point has been scanned yet, performing the steps of:
step E: and sequentially sending driving signals to the plurality of traces in the first axis direction at the minimum scanning frequency according to a preset interval so as to scan the touch screen and detect whether a touch point exists on the touch screen.
Specifically, assuming that the preset number of intervals in this embodiment is 1, or taking fig. 2 as an example for description, the sequence of sequentially sending out the driving signals to the plurality of traces in the first axis direction at the preset intervals may be: x1 → X3 → X5 … → Xn-1; x2 → X4 → X6 … → Xn.
Step F: if the touch point is not scanned, increasing the interval;
step G: and sequentially sending out driving signals to the plurality of traces in the first axis direction at the minimum scanning frequency according to the increased intervals so as to scan the touch screen.
Specifically, the number of the increase may be increased according to a preset number of intervals, in this embodiment, the preset number of intervals is 1, the number of the increased intervals may be 2, and the sequence of sequentially sending the driving signals to the plurality of traces in the first axis direction according to the preset intervals may be: x1 → X4 → X7 … → Xn-2; x2 → X5 → X8 … → Xn-1; x3 → X6 → X9 … → Xn.
Step H: and repeating the steps F and G until the interval is increased to the maximum interval capable of normally scanning the touch screen, and sequentially sending driving signals to the plurality of tracks in the first axis direction at the maximum interval at the minimum scanning frequency so as to scan the touch screen.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
step A: and scanning the touch screen at a preset scanning frequency to detect whether a touch point exists on the touch screen.
And B: and if the touch point is not scanned, reducing the scanning frequency.
And C: and scanning the touch screen according to the reduced scanning frequency.
Step D: and repeating the step B and the step C until the scanning frequency is reduced to the minimum scanning frequency for normal work of the touch screen, and scanning the touch screen at the minimum scanning frequency.
In one embodiment, taking a mutual capacitance touch screen as an example, as shown in fig. 2, the touch screen includes a plurality of first-axis-direction traces (X1, X2 … … Xn) and a plurality of second-axis-direction traces (Y1, Y2 … … Ym). The traces may also be referred to as scan lines. The trace in the first axis direction is connected with a driving unit of the processor, and the driving unit is used for sending out a driving signal along the trace in the first axis direction. The second axial trace is connected to a receiving unit of the processor, and the receiving unit is used for detecting the driving signal along the second axial trace.
When the touch screen scans, the driving unit sends out driving signals along each trace in the first axis direction, and the receiving unit sequentially receives the driving signals along a plurality of traces in the second axis direction. Specifically, the driving unit sends out the driving signal along the trace X1 in the first axis direction, and the receiving unit sequentially detects the driving signal along the trace Y1 → Y2 → … → Ym in the second axis direction. The driving unit sends out the driving signal along a trace X2 in the first axis direction, and the receiving unit sequentially detects the driving signal along a trace Y1 → Y2 → … → Ym in the second axis direction. And so on, the driving signal is emitted along the trace Xn-1 of the first axis direction by the driving unit, and the driving signal is detected sequentially along the traces Y1 → Y2 → … → Ym by the receiving unit along the second axis direction. The driving unit sends out the driving signal along the trace Xn of the first axis direction, and the receiving unit sequentially detects the driving signal along the trace Y1 → Y2 → … → Ym of the second axis direction. At this point, one scan is completed. The time interval between the driving signal emitted by the driving unit along trace X1 in the first axis direction and the driving signal emitted by the driving unit along trace X2 in the first axis direction is the scanning frequency.
After the step of scanning the touch screen at the minimum scanning frequency, if no touch point has been scanned yet, performing the steps of:
step E: and sequentially sending driving signals to the plurality of traces in the first axis direction at the minimum scanning frequency according to a preset interval so as to scan the touch screen and detect whether a touch point exists on the touch screen.
Specifically, assuming that the preset number of intervals in this embodiment is 1, or taking fig. 2 as an example for description, the sequence of sequentially sending out the driving signals to the plurality of traces in the first axis direction at the preset intervals may be: x1 → X3 → X5 … → Xn-1; x2 → X4 → X6 … → Xn.
Step F: if the touch point is not scanned, increasing the interval;
step G: and sequentially sending out driving signals to the plurality of traces in the first axis direction at the minimum scanning frequency according to the increased intervals so as to scan the touch screen.
Specifically, the number of the increase may be increased according to a preset number of intervals, in this embodiment, the preset number of intervals is 1, the number of the increased intervals may be 2, and the sequence of sequentially sending the driving signals to the plurality of traces in the first axis direction according to the preset intervals may be: x1 → X4 → X7 … → Xn-2; x2 → X5 → X8 … → Xn-1; x3 → X6 → X9 … → Xn.
Step H: and repeating the steps F and G until the interval is increased to the maximum interval capable of normally scanning the touch screen, and sequentially sending driving signals to the plurality of tracks in the first axis direction at the maximum interval at the minimum scanning frequency so as to scan the touch screen.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A touch screen scanning method, comprising:
step A: scanning the whole screen of the touch screen at a preset scanning frequency to detect whether a touch point exists on the touch screen, wherein the touch screen comprises a plurality of traces in a first axis direction and a plurality of traces in a second axis direction;
and B: if no touch point is detected, reducing the scanning frequency;
and C: scanning the touch screen according to the reduced scanning frequency;
step D: repeating the step B and the step C until the scanning frequency is reduced to the minimum scanning frequency for normal work of the touch screen, and scanning the touch screen at the minimum scanning frequency;
step E: detecting whether a touch point exists on the touch screen scanned at the minimum scanning frequency, if no touch point is detected, sequentially sending driving signals to the plurality of traces in the first axis direction at the minimum scanning frequency according to a preset interval, and sequentially receiving the driving signals along the plurality of traces in the second axis direction so as to scan the touch screen;
step F: detecting whether a touch point exists on the touch screen or not, and if the touch point is not detected, increasing the interval;
step G: and sequentially sending out driving signals to the plurality of traces in the first axis direction at the minimum scanning frequency according to the increased intervals, and sequentially receiving the driving signals along the plurality of traces in the second axis direction so as to scan the touch screen.
2. The touch screen scanning method of claim 1, wherein the step of scanning the entire screen of the touch screen at a preset scanning frequency comprises:
and sequentially sending out driving signals to the plurality of traces in the first axial direction at the preset scanning frequency, and sequentially detecting the driving signals by the plurality of traces in the second axial direction.
3. The touch screen scanning method of claim 1, wherein the preset scanning frequency is set according to the size of the touch screen.
4. The touch screen scanning method of claim 1, wherein said increasing the spacing comprises: increasing the interval by a multiple of a preset interval.
5. The touch screen scanning method of claim 1, further comprising, after step G:
step H: and repeating the step F and the step G until the interval is increased to the maximum interval of normal work of the touch screen, and sequentially sending driving signals to the plurality of tracks in the first axis direction at the minimum scanning frequency according to the maximum interval so as to scan the touch screen.
6. The touch screen scanning method of claim 1, further comprising:
and if the touch point is detected, returning to the step E or the step A.
7. The touch screen scanning method of claim 1, further comprising:
and if the touch point is detected, returning to any step of scanning the touch screen before the step of detecting the touch point.
8. The touch screen scanning method of claim 1, wherein the scanning frequency is reduced by half at a time from a preset scanning frequency.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 8 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
CN201810414561.4A 2018-05-03 2018-05-03 Touch screen scanning method, computer device and storage medium Active CN108920026B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810414561.4A CN108920026B (en) 2018-05-03 2018-05-03 Touch screen scanning method, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810414561.4A CN108920026B (en) 2018-05-03 2018-05-03 Touch screen scanning method, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN108920026A CN108920026A (en) 2018-11-30
CN108920026B true CN108920026B (en) 2021-06-22

Family

ID=64403343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810414561.4A Active CN108920026B (en) 2018-05-03 2018-05-03 Touch screen scanning method, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN108920026B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110174964B (en) * 2019-05-06 2022-07-29 Oppo广东移动通信有限公司 Scanning method, scanning device, electronic device and computer-readable storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0487049A1 (en) * 1990-11-20 1992-05-27 Canon Kabushiki Kaisha Electronic input device
CN101324822A (en) * 2007-06-13 2008-12-17 苹果公司 Multiple simultaneous frequency detection
CN101477429A (en) * 2009-01-20 2009-07-08 贺伟 Infrared touch screen scanning method
CN101561730A (en) * 2008-04-16 2009-10-21 义隆电子股份有限公司 Power-saving capacitance touch control device and method thereof
CN101639750A (en) * 2008-08-01 2010-02-03 索尼株式会社 Touch panel and method for operating the same, and electronic apparatus and method for operating the same
CN101714041A (en) * 2009-11-04 2010-05-26 深圳市山鹰科技有限公司 Method for prolonging service life of infrared touch screen
CN102081451A (en) * 2010-12-29 2011-06-01 鸿富锦精密工业(深圳)有限公司 Electronic device and power supply control method thereof
CN102402353A (en) * 2010-09-14 2012-04-04 上海天马微电子有限公司 Touch scanning method of touch screen
CN103761013A (en) * 2014-02-17 2014-04-30 广州市泰奇克光电科技有限公司 Random skipping type local area detecting locating method for infrared screen
CN104898908A (en) * 2014-03-07 2015-09-09 辛纳普蒂克斯显像装置合同会社 Semiconductor device
CN105807996A (en) * 2016-03-08 2016-07-27 武汉华星光电技术有限公司 Touch scanning driving method capable of lowering power consumption
CN107102776A (en) * 2017-05-24 2017-08-29 努比亚技术有限公司 A kind of touch-screen control method, device, mobile terminal and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2562627B1 (en) * 2011-08-26 2016-11-09 LG Display Co., Ltd. Touch sensing device
CN103176638A (en) * 2011-12-23 2013-06-26 瀚宇彩晶股份有限公司 Touch panel device and scan method thereof
JP5912727B2 (en) * 2012-03-23 2016-04-27 株式会社ワコム Position detection device
CN103970337B (en) * 2013-10-21 2017-07-25 上海中航光电子有限公司 The touch scan method and its touch scan control circuit, display device of touch-screen
JP2017009654A (en) * 2015-06-17 2017-01-12 株式会社ジャパンディスプレイ Display device
CN106951114A (en) * 2016-01-07 2017-07-14 北京小米移动软件有限公司 Scan control method and device, electronic equipment
JP6535618B2 (en) * 2016-02-16 2019-06-26 株式会社ジャパンディスプレイ Display device
WO2018058340A1 (en) * 2016-09-28 2018-04-05 深圳市汇顶科技股份有限公司 Touch chip and method for touch chip in detecting touched point on touchscreen

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0487049A1 (en) * 1990-11-20 1992-05-27 Canon Kabushiki Kaisha Electronic input device
CN101324822A (en) * 2007-06-13 2008-12-17 苹果公司 Multiple simultaneous frequency detection
CN101561730A (en) * 2008-04-16 2009-10-21 义隆电子股份有限公司 Power-saving capacitance touch control device and method thereof
CN101639750A (en) * 2008-08-01 2010-02-03 索尼株式会社 Touch panel and method for operating the same, and electronic apparatus and method for operating the same
CN101477429A (en) * 2009-01-20 2009-07-08 贺伟 Infrared touch screen scanning method
CN101714041A (en) * 2009-11-04 2010-05-26 深圳市山鹰科技有限公司 Method for prolonging service life of infrared touch screen
CN102402353A (en) * 2010-09-14 2012-04-04 上海天马微电子有限公司 Touch scanning method of touch screen
CN102081451A (en) * 2010-12-29 2011-06-01 鸿富锦精密工业(深圳)有限公司 Electronic device and power supply control method thereof
CN103761013A (en) * 2014-02-17 2014-04-30 广州市泰奇克光电科技有限公司 Random skipping type local area detecting locating method for infrared screen
CN104898908A (en) * 2014-03-07 2015-09-09 辛纳普蒂克斯显像装置合同会社 Semiconductor device
CN105807996A (en) * 2016-03-08 2016-07-27 武汉华星光电技术有限公司 Touch scanning driving method capable of lowering power consumption
CN107102776A (en) * 2017-05-24 2017-08-29 努比亚技术有限公司 A kind of touch-screen control method, device, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN108920026A (en) 2018-11-30

Similar Documents

Publication Publication Date Title
CN103995626B (en) A kind of touch independent positioning method and device for touch-screen
US20180356935A1 (en) Touch point positioning method and apparatus, and terminal device
US9563294B2 (en) Method of operating a touch panel, touch panel and display device
US20100053095A1 (en) Method Capable of Preventing Mistakenly Triggering a Touch panel
US8405630B1 (en) Touchscreen text input
CN108595063B (en) Touch screen scanning method, computer device and storage medium
CN105204763B (en) A kind of terminal unlock method and terminal
CN108920026B (en) Touch screen scanning method, computer device and storage medium
JP4944998B1 (en) Touch panel device and plasma display device having the same
CN105094329A (en) Data entry method and device and electronic equipment applying same
CN109542278A (en) Processing method, device and the touch apparatus of touch data
US9904419B2 (en) Capacitive sensor action in response to proximity sensor data
WO2018058340A1 (en) Touch chip and method for touch chip in detecting touched point on touchscreen
CN104571914A (en) Terminal equipment and control method and system thereof
CN105159552B (en) A kind of flipping-over control method and user terminal browsing webpage
CN102768594B (en) The management of touch-control device and application process and system
CN105404433B (en) A kind of touch control identification method and display device based on infrared touch panel
CN107329689A (en) The backing method and mobile terminal of a kind of hand-writing input method
CN103870172A (en) Information input method and device
US9256313B2 (en) Touch point detecting device and the touch point detecting method thereof
TWI469021B (en) Projection method of projection capacitive touch panel
US11249606B2 (en) Method for controlling a flexible capacitive touch display panel and touch display apparatus
CN105824541A (en) Treatment method for prompt message and mobile terminal
US11334202B2 (en) Touch panel, control method and control device thereof, and display device
TW201935197A (en) Processing method for touch control signal and stylus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant