CN110737359B - Point reporting method, touch screen and storage medium - Google Patents
Point reporting method, touch screen and storage medium Download PDFInfo
- Publication number
- CN110737359B CN110737359B CN201910839205.1A CN201910839205A CN110737359B CN 110737359 B CN110737359 B CN 110737359B CN 201910839205 A CN201910839205 A CN 201910839205A CN 110737359 B CN110737359 B CN 110737359B
- Authority
- CN
- China
- Prior art keywords
- coordinate data
- touch screen
- touch signal
- time
- reporting mode
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the application discloses a point reporting method, a touch screen and a storage medium, wherein the point reporting method comprises the following steps: acquiring first coordinate data corresponding to a current touch signal; the first coordinate data represent the position of a touch point corresponding to the current touch signal; when the first coordinate data is the same as second coordinate data corresponding to at least one historical touch signal with continuous current touch signals, acquiring a timing identifier and recording first time corresponding to the current touch signal; determining a touch screen reporting mode according to the first time and the timing identifier; and performing touch screen point reporting processing on the current touch signal according to a touch screen reporting mode.
Description
Technical Field
The invention relates to the technical field of touch screens, in particular to a point reporting method, a touch screen and a storage medium.
Background
The touch screen has become the most important input component, and most input operations of the mobile terminal are performed through the touch screen. The touch screen is provided with a single processor and a memory, the processor can acquire corresponding coordinate information according to user operation and report the coordinate information to the terminal, so that corresponding operation is triggered. At present, continuous same coordinates exist in corresponding coordinate information acquired by a touch screen according to user operation, the touch screen has two processing modes aiming at the continuous same coordinates, one mode is to adopt a non-reporting mode for the continuous same coordinates until the coordinate information changes and report the current coordinates to a terminal; in another way, the touch screen reports the coordinate information to the terminal as long as the user performs a corresponding operation on the touch screen.
However, in some special cases, especially when a user performs a long-time pressing operation on the touch screen, in the prior art, a problem that a screen-off misoperation occurs because a reporting period is longer than a screen-off time in a processing mode in which continuous same coordinates are not reported all the time is easily caused by the touch screen, and on the other hand, the processing mode in which continuous same coordinates are reported causes a defect that power consumption is increased.
Disclosure of Invention
The embodiment of the application provides a point reporting method, a touch screen and a storage medium, solves the problem of screen-off misoperation caused by the fact that the touch screen does not report continuous same coordinates all the time, overcomes the defect of power consumption increase caused by the fact that the same coordinates are reported continuously, further reduces power consumption, and improves the intelligence of the touch screen.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides a point reporting method, which comprises the following steps:
acquiring first coordinate data corresponding to a current touch signal; the first coordinate data represent the position of a touch point corresponding to the current touch signal;
when the first coordinate data is the same as second coordinate data corresponding to at least one continuous historical touch signal of the current touch signal, acquiring a timing identifier and recording first time corresponding to the current touch signal;
determining a touch screen reporting mode according to the first time and the timing identifier;
and performing touch screen point reporting processing on the current touch signal according to the touch screen reporting mode.
The embodiment of the application provides a touch screen, touch screen includes: an acquisition unit, a recording unit, a determination unit and a processing unit,
the acquisition unit is used for acquiring first coordinate data corresponding to the current touch signal; the first coordinate data represent the position of a touch point corresponding to the current touch signal;
the acquisition unit is further configured to acquire a timing identifier when the first coordinate data is the same as second coordinate data corresponding to at least one historical touch signal in which the current touch signal is continuous;
the recording unit is used for recording a first time corresponding to the current touch signal;
the determining unit is used for determining a touch screen reporting mode according to the first time and the timing identifier;
and the processing unit is used for performing touch screen point reporting processing on the current touch signal according to the touch screen reporting mode.
An embodiment of the present application provides a touch screen, where the touch screen includes a processor and a memory storing instructions executable by the processor, and when the instructions are executed by the processor, the touch screen implements the reporting method as described above.
The embodiment of the application provides a computer-readable storage medium, on which a program is stored, and the program is applied to a touch screen, and when the program is executed by a processor, the method for reporting points is implemented.
The embodiment of the application provides a point reporting method, a touch screen and a storage medium, wherein the touch screen acquires first coordinate data corresponding to a current touch signal; the first coordinate data represent the position of a touch point corresponding to the current touch signal; when the first coordinate data is the same as second coordinate data corresponding to at least one continuous historical touch signal of the current touch signal, acquiring a timing identifier and recording first time corresponding to the current touch signal; determining a touch screen reporting mode according to the first time and the timing identifier; and performing touch screen point reporting processing on the current touch signal according to a touch screen reporting mode. That is to say, in the embodiment of the application, when the first coordinate data is the same as second coordinate data corresponding to at least one historical touch signal in which a current touch signal is continuous, if a time difference between a first time corresponding to the current touch signal and a second time corresponding to the at least one historical touch signal is equal to or greater than a preset time threshold, the touch screen reports the first coordinate data to the terminal, otherwise, the first coordinate data is not reported, so that the problem of screen-off misoperation caused by that the touch screen does not report continuously for the same continuous coordinate is solved, the defect of power consumption increase caused by continuously reporting the same continuous coordinate is overcome, power consumption is reduced, and intelligence of the touch screen is improved.
Drawings
Fig. 1 is a schematic flow chart of a first implementation of a touch screen point reporting method provided in the present application;
FIG. 2 is a schematic diagram of acquiring a touch signal according to the present application;
fig. 3 is a schematic flow chart illustrating an implementation process of the touch screen point reporting method according to the present application;
fig. 4 is a schematic flow chart illustrating an implementation of a touch screen point reporting method provided in the present application;
fig. 5 is a first schematic structural diagram of a touch screen according to the present application;
fig. 6 is a schematic structural diagram of a touch screen according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are illustrative of the relevant application and are not limiting of the application. It should be noted that, for the convenience of description, only the parts related to the related applications are shown in the drawings.
Touch screens are widely used in the field of electronic devices, especially mobile terminals, and have become the main input component of mobile terminals, and most input operations of mobile terminals are completed through touch screens.
The touch screen is provided with an independent processor and a memory, when a user contacts the touch screen by using objects such as a finger, a touch pen and the like, capacitance change can be caused, corresponding coordinate information is calculated by detecting capacitance difference when the user contacts the touch screen and does not contact the touch screen, the position coordinate of the finger touch point of the user is reported, the operation of the user on the touch screen is judged based on the capacitance sensing principle of the touch screen, and the user operation is mainly divided into three states of pressing, lifting and moving.
In a touch screen point reporting mechanism in the prior art, continuous same coordinates exist in corresponding coordinate information obtained by a touch screen according to user operation, the touch screen has two processing modes aiming at the continuous same coordinates, wherein one mode is to adopt a non-reporting mode for the continuous same coordinates until the coordinate information changes and report the current coordinates to a terminal; in another way, the touch screen reports the coordinate information to the terminal as long as the user performs a corresponding operation on the touch screen. However, in some special cases, especially when a user performs a long-time pressing operation on the touch screen, in the prior art, a problem that a screen-off misoperation occurs because a reporting period is longer than a screen-off time in a processing mode in which continuous same coordinates are not reported all the time is easily caused by the touch screen, and on the other hand, the processing mode in which continuous same coordinates are reported causes a defect that power consumption is increased.
In order to solve the problems of the existing touch screen point reporting mechanism, the embodiment of the application provides a point reporting method, a touch screen and a storage medium, wherein if first coordinate data are the same as second coordinate data corresponding to at least one continuous historical touch signal of a current touch signal, when a time difference value between the current touch signal and a touch signal corresponding to a starting time when a timing identifier is set to be 1 in the at least one continuous historical touch signal with the same coordinate data is equal to or greater than a preset time threshold value, the touch screen reports the first coordinate data to a terminal, otherwise, the first coordinate data are not reported, so that the problem that screen-off misoperation occurs due to the fact that the touch screen does not report continuously for the same continuous coordinates is solved, the defect that power consumption is increased due to the fact that the same coordinates are reported continuously is overcome, power consumption is reduced, and intelligence of the touch screen is improved.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
An embodiment of the present application provides a point reporting method, fig. 1 is a schematic view illustrating an implementation flow of the point reporting method provided by the present application, and as shown in fig. 1, in an embodiment of the present application, a method for reporting a point by a touch screen may include the following steps:
101, acquiring first coordinate data corresponding to a current touch signal; the first coordinate data represent the position of a touch point corresponding to the current touch signal.
In the embodiment of the application, the touch screen may obtain first coordinate data corresponding to the current touch signal, where the first coordinate data represents a position of a touch point corresponding to the current touch signal. The touch screen may be a display screen disposed in the terminal and used for receiving a touch operation.
In the embodiment of the present application, the terminal may be any device which has communication and storage functions and is provided with a touch screen. For example: tablet computers, mobile phones, electronic readers, remote controllers, personal Computers (PCs), notebook computers, vehicle-mounted devices, network televisions, wearable devices, and the like.
Further, in the embodiments of the present application, the touch screen may be a resistive touch screen or a capacitive touch screen. The working principle of the resistive touch screen is mainly that whether objects such as fingers and touch pens contact and press the touch screen is judged according to the pressure sensing principle, and information corresponding to touch operation is reported after the touch screen receives the touch operation, so that the screen content of the touch screen is operated and controlled; the capacitive touch screen judges whether objects such as fingers and touch pens contact the touch screen by using a capacitive sensing principle of the touch screen, and reports touch operation after the touch screen receives the touch operation.
It should be noted that, in the embodiment of the present application, when the touch screen reports the touch operation, the coordinate data of the touch point corresponding to the touch operation and the event state of the touch operation may be specifically reported, where the event state of the touch operation mainly includes pressing, lifting, moving, and the like.
Specifically, when a user performs a touch screen operation, the touch screen finds a peak difference value of a region by calculating a capacitance difference between a touch screen and a non-touch screen of a current object and then calculating the region of the capacitance difference, if the peak difference value is within a certain preset reporting threshold value, it indicates that the user performs the touch operation on the touch screen, and the touch screen acquires first coordinate data corresponding to a current touch signal.
Further, after the first coordinate data corresponding to the current touch signal is acquired, the second coordinate data corresponding to at least one continuous historical touch signal of the current touch signal may be continuously acquired, so that the first coordinate data and the second coordinate data may be further compared to determine whether the current touch signal and the continuous at least one historical touch signal have the same touch point.
Fig. 2 is a schematic diagram of obtaining a touch signal according to the present application, and as shown in fig. 2, a touch screen may receive a touch operation of a user, so as to obtain a corresponding touch signal, where a corresponding coordinate of the touch point of the touch signal is (x, y), that is, coordinate data (x, y) may represent a position of the touch point when the user performs the touch screen operation.
102, when the first coordinate data is the same as second coordinate data corresponding to at least one continuous historical touch signal of the current touch signal, acquiring a timing identifier, and recording first time corresponding to the current touch signal.
In an embodiment of the application, after the touch screen acquires the first coordinate data, when the first coordinate data is the same as second coordinate data corresponding to at least one historical touch signal of which the current touch signal is continuous, a timing identifier may be acquired, and a first time corresponding to the current touch signal may be recorded. The timing mark can be obtained by a time detection device arranged in the touch screen.
It should be noted that, in the embodiment of the present application, after the first coordinate data corresponding to the current touch signal is acquired, second coordinate data corresponding to at least one historical touch signal that is continuous with the current touch signal may be continuously acquired, so that the first coordinate data and the second coordinate data may be further compared.
It should be noted that, in the embodiment of the present application, when second coordinate data corresponding to at least one continuous historical touch signal of a current touch signal that is continuously acquired is the same as the first coordinate data, a timing identifier may be acquired, and the timing identifier acquired by the touch screen may be acquired by using the time detection device. Specifically, the time detection device may be a timer disposed in the touch screen, and accordingly, the timing identifier acquired by the touch screen through the time detection device may be a flag bit corresponding to the timer. For example, if the time detection device is a timer disposed in the touch screen, the timing flag may be a timing count flag.
Further, in the embodiment of the application, after it is known that the first coordinate data is the same as the second coordinate data, the timing identifier acquired by the touch screen and the recorded first time corresponding to the current touch signal may be used to determine a reporting mode of the touch screen.
And 103, determining a touch screen reporting mode according to the first time and the timing identifier.
In the embodiment of the application, it is known that the first coordinate data is the same as the second coordinate data, and after the touch screen acquires the timing identifier and records the first time corresponding to the current touch signal, the reporting mode of the touch screen can be determined according to the timing identifier and the first time.
It should be noted that, in the embodiment of the present application, the touch screen determines, according to the recorded first time corresponding to the current touch signal and the acquired timing identifier, a touch screen reporting mode, where the touch screen reporting mode may include a first reporting mode and a second reporting mode. Specifically, the first reporting mode indicates that coordinate data corresponding to the current touch signal is not reported; and the second reporting mode represents reporting of coordinate data corresponding to the current touch signal.
Specifically, when the timing identifier is 1, comparing a preset time threshold with a time difference value between a first time and a second time corresponding to at least one historical touch signal, and if the time difference value is smaller than the preset time threshold, setting the touch screen reporting mode as a first reporting mode; and if the time difference value is equal to or larger than the preset time threshold value, the touch screen reporting mode is a second reporting mode. When the timing mark is 0, the touch screen does not report coordinate data corresponding to the current touch signal, the timing mark is set to 1 from 0, and timing is started.
Further, in the embodiment of the application, after the touch screen reporting mode is determined according to the timing identifier and the first time, the corresponding touch screen reporting point processing may be performed on the current touch signal according to the determined touch screen reporting mode.
And step 104, performing touch screen point reporting processing on the current touch signal according to a touch screen reporting mode.
In the embodiment of the application, after the touch screen determines the touch screen reporting mode according to the timing identifier and the first time, the touch screen can perform touch screen point reporting processing on the current touch signal according to the determined touch screen reporting mode.
It should be noted that, in the embodiment of the present application, a point reporting process corresponding to a current touch signal is performed on a current touch signal according to different touch screen reporting modes, specifically, if the touch screen reporting mode is the first reporting mode, the touch screen does not report first coordinate data corresponding to the current touch signal and continues to acquire coordinate data corresponding to a next touch signal, and when the coordinate data corresponding to the next touch signal and the first coordinate data are continuously the same coordinate, the touch screen reporting mode is determined again according to a timing identifier and time corresponding to the next touch signal; when the coordinate data corresponding to the next touch signal is different from the first coordinate data, directly reporting the coordinate data corresponding to the next touch signal and setting the timing identifier to be 0; and if the touch screen reporting mode is the second reporting mode, directly reporting the first coordinate data corresponding to the current touch signal, and setting the timing identifier to be 0.
Fig. 3 is a schematic view of an implementation flow chart of the point reporting method provided by the present application, and as shown in fig. 3, after first coordinate data corresponding to the current touch signal is obtained, that is, after step 101, the method for reporting the point by the touch screen may further include the following steps:
and 105, acquiring second coordinate data corresponding to at least one historical touch signal continuous with the current touch signal.
In the embodiment of the application, after the touch screen acquires the first coordinate data corresponding to the current touch signal, the touch screen continues to acquire the second coordinate data corresponding to at least one historical touch signal which is continuous with the current touch signal.
It should be noted that, in the embodiment of the present application, at least one of the historical touch signals may be a previous touch signal consecutive to the current touch signal, or may be a plurality of touch signals consecutive to the current touch signal. Since, in the present application, the touch screen performs detection periodically according to the period of detection of the touch screen, so as to obtain a current touch signal, that is, a touch signal is detected once when the touch screen reaches the detection time each time, when at least one historical touch signal is a previous touch signal that is continuous with the current touch signal, the previous touch signal is a touch signal detected at the last detection time of the touch screen corresponding to the current touch signal, and at this time, the second coordinate data is coordinate data corresponding to the previous touch signal; when the at least one historical touch signal is a plurality of touch signals which are continuous with the current touch signal, the continuous touch signals may be touch signals detected by the touch screen according to the cycle timing detected by the touch screen, and the second coordinate data at this time is the same coordinate data of the continuous touch signals.
Further, after the first coordinate data corresponding to the current touch signal is acquired, the second coordinate data corresponding to at least one continuous historical touch signal of the current touch signal may be continuously acquired, so that the first coordinate data and the second coordinate data may be further compared to determine whether the current touch signal and the continuous at least one historical touch signal have the same touch point.
And 106, directly reporting the first coordinate data when the first coordinate data is different from the second coordinate data, and setting the timing identifier to be 0.
In the embodiment of the application, after reading the second coordinate data corresponding to at least one historical touch signal continuous with the current touch signal, if the first coordinate data is different from the second coordinate data, the touch screen directly reports the first coordinate data, and the timing identifier is set to be 0.
It should be noted that, in the embodiment of the present application, when the first coordinate data is different from the second coordinate data, the touch screen may directly report the first coordinate data corresponding to the current touch signal different from the continuous at least one historical touch signal directly.
The embodiment of the application provides a point reporting method, a touch screen and a storage medium, wherein the touch screen acquires first coordinate data corresponding to a current touch signal; the first coordinate data represent the position of a touch point corresponding to the current touch signal; when the first coordinate data is the same as second coordinate data corresponding to at least one continuous historical touch signal of the current touch signal, acquiring a timing identifier and recording first time corresponding to the current touch signal; determining a touch screen reporting mode according to the first time and the timing identifier; and performing touch screen point reporting processing on the current touch signal according to a touch screen reporting mode. That is to say, in the embodiment of the application, when the first coordinate data is the same as second coordinate data corresponding to at least one historical touch signal obtained by continuously reporting a current touch signal, if a time difference between a first time corresponding to the current touch signal and a second time corresponding to the at least one historical touch signal is equal to or greater than a preset time threshold, the touch screen reports the first coordinate data to the terminal, otherwise, the first coordinate data is not reported, so that a problem that a screen-off misoperation occurs due to the fact that the touch screen does not report continuously for the same continuous coordinate is solved, a defect that power consumption is increased due to the fact that the same continuous coordinate is continuously reported is overcome, power consumption is reduced, and intelligence of the touch screen is improved.
Based on the foregoing embodiment, in another embodiment of the present application, a method for determining a reporting mode of a touch screen according to a first time and a timing identifier by a touch screen may include the following steps:
step 201, when the timing mark is 1, acquiring a second time corresponding to at least one historical touch signal; wherein the second time represents a start time when the timing flag is set to 1.
In the embodiment of the application, after the touch screen acquires the timing identifier and records the first time corresponding to the current touch signal, if the acquired timing identifier is 1, the touch screen may continue to acquire the second time corresponding to at least one historical touch signal, where the second time represents the start time when the timing identifier is set to 1.
It should be noted that, in the embodiment of the present application, at least one of the historical touch signals may be a previous touch signal consecutive to the current touch signal, or may be a plurality of touch signals consecutive to the current touch signal. However, if at least one historical touch signal is only a continuous previous touch signal, when the coordinate data corresponding to the continuous previous touch signal is different from the coordinate data corresponding to the continuous multiple touch signals, the coordinate data corresponding to the continuous previous touch signal is reported by the touch screen in an interrupted manner, and the timing identifier is set to 0, so that when at least one historical touch signal is only a previous touch signal continuous with the current touch signal, the acquired timing identifier still maintains the state of the timing identifier 0, thereby indicating that in the present application, when the timing identifier is 1, a second time corresponding to at least one historical touch signal is acquired, and at least one historical touch signal at this time is multiple touch signals continuous with the current touch signal, where the second time is the start time when the timing identifier is set to 1. For example, the touch screen receives the touch signals a1, a2, a3, a4, and a5 in sequence according to a time sequence, if the coordinate data n corresponding to the current touch signal a5 is the same as the coordinate data n corresponding to a2, a3, and a4, and the coordinate data m corresponding to a1 is different from n, the touch screen sets the timing identifier from 0 to 1 after receiving the touch signal a3, and records the time corresponding to the touch signal a3 as the second time. Specifically, after the touch screen acquires the touch signal a2, because the coordinate data n corresponding to the a2 is different from the coordinate data m corresponding to the a1, the touch screen reports the coordinate data a2 and still maintains the state that the timing identifier is 0, and then the touch screen acquires the touch signal a3 at the next moment, and the coordinate data n corresponding to the a3 is the same as the coordinate data n corresponding to the a2, so that the touch screen can set the timing identifier from 0 to 1 and record the time corresponding to the touch signal a3 as the second time.
Further, in the embodiment of the present application, after the second time corresponding to the at least one historical touch signal is acquired, a subtraction process may be further performed on the second time and the first time, so as to acquire a time difference value between the second time and the first time.
Step 202, a first difference between the first time and the second time is calculated.
In an embodiment of the application, when the timing identifier is 1, after the touch screen acquires the second time corresponding to the at least one historical touch signal, a time difference between the first time corresponding to the current touch signal and the second time corresponding to the at least one historical touch signal, that is, a first difference, is calculated.
It should be noted that, in the embodiment of the present application, when at least one historical touch signal is a plurality of touch signals that are continuous with a current touch signal, the first difference is a time difference between a second time that is a starting time when the timing indicator is set to 1 and a first time corresponding to the current touch signal. For example, among the touch signals a1, a2, a3, a4, and a5 sequentially received by the touch screen in time sequence, if the time corresponding to the current touch signal a5 is T1, a difference between the times T2 corresponding to the touch signal a3 is a time difference between a first time corresponding to the current touch signal and a second time corresponding to at least one historical touch signal, that is, a first difference.
Further, in the embodiment of the present application, after the touch screen calculates the first difference between the first time and the second time, the first difference may be used as one of the determination conditions for determining the reporting mode of the touch screen.
And 203, determining a touch screen reporting mode according to the first difference value and a preset time threshold.
In the embodiment of the application, after the time difference between the first time and the second time, that is, the first difference, is calculated by the touch screen, a method for performing point reporting processing on the current touch signal by the touch screen, that is, a touch screen reporting method, can be determined according to the first difference and a preset time threshold.
Further, in the embodiment of the application, the touch screen may compare the first difference with a preset time threshold, so that the touch screen reporting mode may be determined according to the comparison result. Specifically, if the first difference is greater than or equal to the preset time threshold, the touch screen may report the first coordinate, that is, determine the reporting mode of the touch screen as the first reporting mode, and if the first difference is less than the preset time threshold, the touch screen may not report the first coordinate, that is, determine the reporting mode of the touch screen as the second reporting mode. For example, in the touch signals a1, a2, a3, a4, and a5 sequentially received by the touch screen according to the time sequence, when the coordinate data corresponding to a4 and a3 are both n, the time corresponding to a4 is recorded and obtained by the touch screen as T3, and since the time difference T1 between T3 and T2 is smaller than the preset time threshold T, the touch screen still does not report the touch signal a4 until the time corresponding to the touch signal a5 is determined to be T1 by the touch screen and the difference T2 between T1 and the time T2 corresponding to the touch signal a3 is equal to or greater than the preset time threshold T, the touch screen will not report the touch signal a5, and simultaneously, the coordinate data corresponding to a5 is reported to the terminal.
It should be noted that, in the embodiment of the present application, the preset time threshold may be determined according to preset screen-off time, and the preset screen-off time may be default screen-locking time of the terminal. For example, if the default screen locking time of the terminal is 15S, the preset screen off time is 15S.
It should be noted that, in the embodiment of the present application, since the touch screen determines the reporting mode of the touch screen according to the first difference and the preset time threshold, specifically, if the first difference is equal to or greater than the preset time threshold, the touch screen reports the coordinate data corresponding to the current touch signal. Based on the above conditions, if the preset time threshold is greater than or equal to the preset screen-off time, the problem that the screen is turned off already before the terminal receives the interrupt report of the touch screen is caused, and therefore, if the preset time threshold is set to be smaller than the preset screen-off time of the terminal, the preset interrupt report time of the touch screen can be ensured to be before the screen is turned off, and the defect of screen-off misoperation is overcome.
It should be noted that, in the embodiment of the present application, in the prior art, the touch screen adopts a non-reporting mode for the consecutive identical coordinates, and the coordinate data corresponding to the current touch signal is not reported until the coordinate data corresponding to the current touch signal is different from the at least one historical touch signal, that is, the touch screen reporting mode in which the consecutive identical coordinates are not reported all the time causes a problem of screen-off misoperation. According to the method and the device, when the coordinate data acquired by the touch screen are continuous same coordinates, a touch screen reporting mode that the continuous same coordinates are not reported all the time is not adopted, and the touch screen is enabled to report the continuous same coordinates in an interruption mode before screen extinguishment is carried out according to interruption reporting time preset by the touch screen, so that the terminal receives the coordinate data reported by the touch screen within preset screen extinguishment time, and the condition of screen extinguishment misoperation is avoided. For example, if the default screen locking time of the terminal is 15S, that is, the preset screen-off time is 15S, when the user presses the touch screen for a long time, if the terminal does not receive the interrupt report of the touch screen to the touch signal within the preset screen-off time 15S, the problem of screen-off misoperation is caused, and if the terminal receives the interrupt report of the touch screen to the touch signal within the preset screen-off time 15S, that is, the preset interrupt report time of the touch screen is before the screen-off occurs, the situation of screen-off misoperation is avoided.
It should be noted that, in the embodiment of the present application, because the touch screen reports coordinate data to the terminal for consecutive identical coordinates in the prior art, that is, a touch screen reporting manner in which consecutive identical coordinates are reported causes a problem of power consumption increase, in the present application, when the coordinate data acquired by the touch screen is consecutive identical coordinates, the touch screen reporting manner in which consecutive identical coordinates are reported is not adopted, but a time difference between consecutive identical coordinates is calculated, and when the time difference satisfies a reporting interruption time preset by the touch screen, the touch screen performs reporting interruption on a current touch signal, so that the number of receiving interruptions of the terminal is reduced, and power consumption is reduced.
In an embodiment of the present application, further, the method for determining, by the touch screen, the touch screen reporting mode according to the first difference and the preset time threshold may include the following steps:
step 203a, when the first difference is smaller than the preset time threshold, determining the touch screen reporting mode as a first reporting mode.
In the embodiment of the application, after the time difference between the first time and the second time is calculated, the touch screen reporting mode can be determined according to the first difference and the preset time threshold, and when the first difference is smaller than the preset time threshold, the touch screen reporting mode can be determined as the first reporting mode.
It should be noted that, in an embodiment of the present application, when a time difference between a first time and a second time is smaller than a preset time threshold, that is, a time difference between the first time corresponding to a current touch signal and the second time corresponding to at least one current continuous historical touch signal acquired by a touch screen is smaller than the preset time threshold, at this time, it indicates that the time difference between the first time and the second time does not satisfy a preset interrupt reporting timing of the touch screen when coordinate data acquired by the touch screen is a continuous same coordinate, at this time, a touch screen reporting mode is determined as a first reporting mode, for example, when a user performs a long press touch screen operation, the coordinate data acquired by the touch screen is a continuous same coordinate, at this time, the touch screen records a time of the current touch signal corresponding to the long press operation, and calculates a difference between the time and at least one historical touch signal corresponding to the long press operation, and if the difference is smaller than the preset time threshold, the touch screen reporting mode is a first reporting mode, where the first reporting mode indicates that the coordinate data corresponding to the current touch signal is not reported.
Further, in the embodiment of the present application, after determining that the touch screen reporting mode is the first reporting mode, a report point processing mode corresponding to the first reporting mode needs to be executed.
And 203b, when the first difference is greater than or equal to the preset time threshold, determining the touch screen reporting mode as a second reporting mode.
In the embodiment of the application, after the time difference between the first time and the second time is calculated, the touch screen reporting mode can be determined according to the first difference and the preset time threshold, and when the first difference is equal to or greater than the preset time threshold, the touch screen reporting mode can be determined as the second reporting mode.
It should be noted that, in the embodiment of the present application, when a time difference between a first time and a second time is equal to or greater than a preset time threshold, that is, when a time difference between the first time corresponding to a current touch signal and the second time corresponding to at least one current continuous historical touch signal acquired by a touch screen is equal to or greater than the time threshold, it indicates that the time difference between the first time and the second time satisfies a preset interrupt reporting timing of the touch screen when coordinate data acquired by the touch screen is a continuous same coordinate, and at this time, a touch screen reporting mode is determined as a second reporting mode.
Further, in the embodiment of the present application, after the touch screen is determined to be in the second reporting mode, a report processing mode corresponding to the second reporting mode needs to be executed.
In an embodiment of the present application, further, when the touch screen reporting mode is the first reporting mode, performing touch screen point reporting processing according to the touch screen reporting mode may include the following steps:
and step 104a, not reporting the first coordinate data, and continuously acquiring third coordinate data corresponding to the next touch signal.
And step 104b, when the third coordinate data is the same as the first coordinate data, continuing to acquire the timing mark and recording a third time corresponding to a next touch signal, determining a touch screen reporting mode again according to the timing mark and the third time, and performing touch screen reporting point processing based on the touch screen reporting mode.
In the embodiment of the application, if the touch screen reporting mode determined by the touch screen is the first reporting mode, the corresponding reporting mode is that the first coordinate data is not reported, the third coordinate data corresponding to the next touch signal is continuously obtained, when the third coordinate data is the same as the first coordinate data, the timing identifier is continuously obtained, the third time corresponding to the next touch signal is recorded, then the touch screen determines the touch screen reporting mode again according to the timing identifier and the third time, and the touch screen can perform touch screen reporting according to the determined touch screen reporting mode.
It should be noted that, in the embodiment of the present application, if the touch screen reporting mode determined by the touch screen is the first reporting mode, it indicates that the difference between the first time and the second time does not satisfy the preset interrupt reporting time of the touch screen, and the preset interrupt reporting time of the touch screen is not reached, at this time, the touch screen does not report the first coordinate data, and continues to acquire the third coordinate data corresponding to the next touch signal, and if the coordinate data corresponding to the next touch signal is the same as the first coordinate data corresponding to the current touch signal, it indicates that the next touch signal and the current touch signal are still the same continuous coordinates, so that the time and the timing identifier corresponding to the next touch signal are continuously acquired, and the time corresponding to the next touch signal is the third time, and then it is determined whether the time difference between the third time and the second time corresponding to the next touch signal satisfies the preset interrupt reporting time of the touch screen again according to the acquired third time and the timing identifier, thereby determining the touch screen reporting mode.
It should be noted that, in the embodiment of the present application, the third coordinate data corresponding to the next touch signal is continuously obtained, and if the third coordinate data corresponding to the next touch signal is different from the first coordinate data corresponding to the current touch signal, the touch screen directly reports the third coordinate data, and the timing identifier is set to 0.
In an embodiment of the present application, further, when the touch screen reporting mode is the second reporting mode, performing touch screen point reporting processing according to the touch screen reporting mode may further include the following steps:
and step 104c, reporting the first coordinate data, and setting the timing identifier to be 0.
In the embodiment of the application, after the touch screen reporting mode is determined, if the touch screen reporting mode determined by the touch screen is the second reporting mode, the corresponding reporting point processing mode is to report the first coordinate data, and the timing identifier is set to 0 from 1.
It should be noted that, in the embodiment of the present application, if the touch screen determined that the touch screen reporting mode is the second reporting mode, it indicates that the difference between the first time and the second time meets the preset interrupt reporting time of the touch screen, and the preset interrupt reporting time of the touch screen is reached, at this time, the touch screen performs interrupt reporting on the first coordinate data corresponding to the current touch signal, and sets the timing identifier in the touch screen from 1 to 0.
In the embodiment of the present application, further, the method for determining, by the touch screen, the reporting mode of the touch screen according to the first time and the timing identifier may further include the following steps:
step 204, when the timing mark is 0, not reporting the first coordinate data, and setting the timing mark as 1; and continuously acquiring fourth coordinate data corresponding to the next touch signal.
And step 205, when the fourth coordinate data is the same as the first coordinate data, continuing to acquire the timing identifier and recording a fourth time corresponding to the next touch signal, determining a touch screen reporting mode again according to the timing identifier and the fourth time, and performing touch screen point reporting processing based on the touch screen reporting mode.
In the embodiment of the application, when the first coordinate data is the same as the second coordinate data, after the touch screen acquires the timing identifier and records the first time corresponding to the current touch signal, when the acquired timing identifier is 0, the first coordinate data corresponding to the current touch signal is not reported, the timing identifier is set to be 1, and then the touch screen continues to acquire the fourth coordinate data corresponding to the next touch signal; when the fourth coordinate data is the same as the first coordinate data, the timing identifier continues to be acquired, the fourth time corresponding to the next touch signal is recorded, the touch screen reporting mode is determined again according to the timing identifier and the fourth time, and the touch screen can perform touch screen point reporting processing according to the determined touch screen reporting mode.
It should be noted that, in the embodiment of the present application, when the obtained timing identifier is 0, the touch screen may first set the timing identifier from 0 to 1, and then continue to obtain fourth coordinate data corresponding to a next touch signal, if the fourth coordinate data corresponding to the next touch signal is the same as the first coordinate data corresponding to the current touch signal, it indicates that the next touch signal and the current touch signal are still continuous and the same coordinates, so that the time and the timing identifier corresponding to the next touch signal are continuously obtained, and the time corresponding to the next touch signal is a fourth time, and then determine whether a time difference between the fourth time and the first time meets a preset interrupt report time of the touch screen according to the obtained fourth time and the timing identifier, so as to determine a report mode of the touch screen.
It should be noted that, in the embodiment of the present application, fourth coordinate data corresponding to a next touch signal is continuously obtained, and if the fourth coordinate data corresponding to the next touch signal is different from the first coordinate data corresponding to the current touch signal, the touch screen directly reports the fourth coordinate data, and sets the timing identifier to 0.
The embodiment of the application provides a point reporting method, a touch screen and a storage medium, wherein the touch screen acquires first coordinate data corresponding to a current touch signal; the first coordinate data represent the position of a touch point corresponding to the current touch signal; when the first coordinate data is the same as second coordinate data corresponding to at least one continuous historical touch signal of the current touch signal, acquiring a timing identifier and recording first time corresponding to the current touch signal; determining a touch screen reporting mode according to the first time and the timing identifier; and performing touch screen point reporting processing on the current touch signal according to a touch screen reporting mode. That is to say, in the embodiment of the application, when the first coordinate data is the same as second coordinate data corresponding to at least one historical touch signal obtained by continuously reporting a current touch signal, if a time difference between a first time corresponding to the current touch signal and a second time corresponding to the at least one historical touch signal is equal to or greater than a preset time threshold, the touch screen reports the first coordinate data to the terminal, otherwise, the first coordinate data is not reported, so that a problem that a screen-off misoperation occurs due to the fact that the touch screen does not report continuously for the same continuous coordinate is solved, a defect that power consumption is increased due to the fact that the same continuous coordinate is continuously reported is overcome, power consumption is reduced, and intelligence of the touch screen is improved.
Based on the point reporting method proposed in steps 101 to 106 in the foregoing embodiments, for example, an embodiment of the present application provides a specific implementation process of the point reporting method, and as shown in fig. 4, fig. 4 is a schematic view of an implementation flow of the point reporting method proposed in the present application, in an embodiment of the present application, the method for reporting points by using a touch screen may further include the following steps:
step 301, obtaining first coordinate data corresponding to the current touch signal, where the first coordinate data represents a position of a touch point corresponding to the current touch signal.
When a user touches the touch screen, the touch screen periodically detects according to the period detected by the touch screen, so as to obtain first coordinate data corresponding to the current touch signal, that is, the first coordinate data represents the position of a touch point when the user touches the touch screen.
After the first coordinate data corresponding to the current touch signal is acquired, second coordinate data corresponding to at least one historical touch signal continuous with the current touch signal may be continuously acquired, and the first coordinate data and the second coordinate data are compared.
When the first coordinate data is the same as the second coordinate data, step 303 is executed because it is necessary to further determine whether to report the first coordinate data;
when the first coordinate data is different from the second coordinate data, the first coordinate data can be directly reported, and therefore, the step 309 is skipped.
And 303, acquiring a timing identifier, and recording the time N1 corresponding to the current touch signal.
And when the first coordinate data is the same as the second coordinate data, the touch screen acquires a timing identifier and records the time N1 corresponding to the current touch signal.
If the timing identifier is 0, it indicates that at least one historical touch signal that is the same as the first coordinate data corresponding to the current touch signal is only a previous touch signal that is continuous with the current touch signal, and meanwhile, in the present application, since the period of detection by the touch screen is less than the preset interrupt reporting period of the touch screen, when the coordinate data corresponding to the current touch signal is the same as the coordinate data corresponding to the continuous previous touch signal, the touch screen does not report the first coordinate data corresponding to the current touch signal, and sets the timing identifier from 0 to 1, and starts timing, that is, step 305 is executed;
if the timing identifier is 1, it indicates that the first coordinate data corresponding to the current touch signal is the same as the coordinate data corresponding to the consecutive touch signals, and the touch screen reporting mode needs to be further determined, so that the process goes to step 307.
And 305, setting the timing mark to be 1.
If the timing identifier is not 1, setting the timing identifier of the time corresponding to the current touch signal to 1, and starting timing, that is, the time corresponding to the current touch signal is the starting time of which the timing identifier is set to 1.
And step 306, not reporting the first coordinate data.
Because the time corresponding to the current touch signal is the starting time when the timing identifier is set to 1, and the period detected by the touch screen is less than the interrupt reporting period preset by the touch screen, the touch screen does not report the first coordinate data corresponding to the current touch signal, and the process skips to step 301.
And 307, acquiring time N2 corresponding to at least one continuous historical touch signal.
The touch screen acquires time N2 corresponding to at least one historical touch signal, wherein N2 represents the starting time when the timing identifier is set to 1 in a plurality of touch signals continuous with the current touch signal.
And 308, judging whether the difference value of the N1 and the N2 is smaller than a preset time threshold value.
If the difference value between the N1 and the N2 is smaller than the preset time threshold, it indicates that the time difference value (N1-N2) between the touch signal corresponding to the start time when the timing identifier is set to 1 and the current touch signal does not meet the preset interrupt reporting time of the touch screen, so that the touch screen continues to acquire the coordinate data corresponding to the next touch signal, and the process skips to step 301;
if the difference between N1 and N2 is greater than or equal to the preset time threshold, it indicates that the difference between N2 and N1 meets the preset interrupt reporting time of the touch screen, and step 309 is executed.
And 309, reporting the first coordinate data, and setting the timing identifier to be 0.
If the difference value between the N2 and the N1 meets the preset interruption reporting time of the touch screen, the touch screen reports the coordinate data corresponding to the current touch signal, and the timing identifier needs to be set to 0 after the touch screen completes one interruption reporting.
Based on the point reporting method provided in steps 301 to 309, after the touch screen acquires the first coordinate data corresponding to the current touch signal, the touch screen may further determine a reporting mode, that is, determine whether to report the point on the first coordinate data, according to the first coordinate data, the second coordinate data corresponding to the at least one historical touch signal, and the timing identifier.
The embodiment of the application provides a point reporting method, a touch screen and a storage medium, wherein the touch screen acquires first coordinate data corresponding to a current touch signal; the first coordinate data represent the position of a touch point corresponding to the current touch signal; when the first coordinate data is the same as second coordinate data corresponding to at least one continuous historical touch signal of the current touch signal, acquiring a timing identifier and recording first time corresponding to the current touch signal; determining a touch screen reporting mode according to the first time and the timing identifier; and performing touch screen point reporting processing on the current touch signal according to a touch screen reporting mode. That is to say, in the embodiment of the application, when the first coordinate data is the same as second coordinate data corresponding to at least one historical touch signal in which a current touch signal is continuous, if a time difference between a first time corresponding to the current touch signal and a second time corresponding to the at least one historical touch signal is equal to or greater than a preset time threshold, the touch screen reports the first coordinate data to the terminal, otherwise, the first coordinate data is not reported, so that the problem of screen-off misoperation caused by that the touch screen does not report continuously for the same continuous coordinate is solved, the defect of power consumption increase caused by continuously reporting the same continuous coordinate is overcome, power consumption is reduced, and intelligence of the touch screen is improved.
Based on the foregoing embodiment, in another embodiment of the present application, fig. 5 is a schematic view of a composition structure of a touch screen provided in the present application, and as shown in fig. 5, the touch screen 1 provided in the embodiment of the present application may include an obtaining unit 11, a recording unit 12, a determining unit 13, and a processing unit 14.
The acquiring unit 11 is configured to acquire first coordinate data corresponding to a current touch signal; the first coordinate data represent the position of a touch point corresponding to the current touch signal; the touch control module is also used for acquiring a timing identifier when the first coordinate data is the same as second coordinate data corresponding to at least one continuous historical touch signal of the current touch signal;
the recording unit 12 is configured to record a first time corresponding to the current touch signal;
the determining unit 13 is configured to determine a touch screen reporting mode according to the first time and the timing identifier;
and the processing unit 14 is configured to perform touch screen point reporting processing on the current touch signal according to the touch screen reporting mode.
Further, in an embodiment of the present application, the determining unit 13 is specifically configured to, when the timing identifier is 1, obtain a second time corresponding to the at least one historical touch signal; wherein the second time represents a start time when the timing flag is set to 1; and calculating a first difference between the first time and the second time; and determining the touch screen reporting mode according to the first difference value and a preset time threshold.
Further, in an embodiment of the present application, the determining unit 13 is further specifically configured to determine, when the first difference is smaller than the preset time threshold, the touch screen reporting mode as a first reporting mode; and when the first difference is larger than or equal to the preset time threshold, determining the touch screen reporting mode as a second reporting mode.
Further, in an embodiment of the present application, the processing unit 14 is specifically configured to not report the first coordinate data when the touch screen reporting mode is the first reporting mode; continuously acquiring third coordinate data corresponding to the next touch signal; and when the third coordinate data is the same as the first coordinate data, continuing to acquire the timing identifier and recording a third time corresponding to the next touch signal, determining the touch screen reporting mode again according to the timing identifier and the third time, and performing touch screen point reporting processing based on the touch screen reporting mode.
Further, in an embodiment of the present application, the processing unit 14 is further specifically configured to, when the touch screen reporting mode is the second reporting mode, report the first coordinate data, and set the timing identifier to 0.
Further, in an embodiment of the present application, the determining unit 13 is further specifically configured to, when the timing identifier is 0, set the timing identifier to 1 without reporting the first coordinate data; continuously acquiring fourth coordinate data corresponding to the next touch signal; and when the fourth coordinate data is the same as the first coordinate data, continuing to acquire the timing identifier and recording a fourth time corresponding to the next touch signal, determining the touch screen reporting mode again according to the timing identifier and the fourth time, and performing touch screen point reporting processing based on the touch screen reporting mode.
Further, in an embodiment of the present application, the processing unit 14 is further specifically configured to, after continuously obtaining third coordinate data corresponding to a next touch signal, report the third coordinate data when the third coordinate data is different from the first coordinate data, and set the timing identifier to be 0.
Further, in an embodiment of the present application, the processing unit 14 is further specifically configured to, after continuously obtaining fourth coordinate data corresponding to a next touch signal, report the fourth coordinate data when the fourth coordinate data is different from the first coordinate data, and set the timing identifier to 0.
Further, in an embodiment of the present application, the obtaining unit 11 is further configured to obtain, after obtaining first coordinate data corresponding to a current touch signal, second coordinate data corresponding to the at least one historical touch signal that is continuous with the current touch signal; and when the first coordinate data is different from the second coordinate data, directly reporting the first coordinate data and setting the timing identifier to be 0.
Further, in an embodiment of the present application, the preset time threshold is smaller than a preset screen-off time.
In an embodiment of the present application, further, fig. 6 is a schematic diagram of a composition structure of the touch screen provided in the present application, as shown in fig. 6, the touch screen 1 provided in the embodiment of the present application may further include a processor 15 and a memory 16 storing executable instructions of the processor 15, and further, the touch screen 1 may further include a communication interface 17 and a bus 18 for connecting the processor 15, the memory 16 and the communication interface 17.
In an embodiment of the present Application, the Processor 15 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a ProgRAMmable Logic Device (PLD), a Field ProgRAMmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It is understood that the electronic device for implementing the above processor function may be other electronic devices, and the embodiments of the present application are not limited in particular. The touch screen 1 may further comprise a memory 16, which memory 16 may be connected to the processor 15, wherein the memory 16 is configured to store executable program code comprising computer operating instructions, and the memory 16 may comprise a high speed RAM memory and may further comprise a non-volatile memory, such as at least two disk memories.
In the embodiment of the present application, the bus 18 is used to connect the communication interface 17, the processor 15, and the memory 16 and to communicate among these devices.
In an embodiment of the present application, the memory 16 is used for storing instructions and data.
Further, in an embodiment of the present application, the processor 15 is configured to obtain first coordinate data corresponding to a current touch signal; the first coordinate data represent the position of a touch point corresponding to the current touch signal; when the first coordinate data is the same as second coordinate data corresponding to at least one continuous historical touch signal of the current touch signal, acquiring a timing identifier and recording first time corresponding to the current touch signal; determining a touch screen reporting mode according to the first time and the timing identifier; and performing touch screen point reporting processing on the current touch signal according to the touch screen reporting mode.
In practical applications, the Memory 16 may be a volatile Memory (volatile Memory), such as a Random-Access Memory (RAM); or a non-volatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk (Hard Disk Drive, HDD) or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor 15.
In addition, each functional module in this embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of a software functional module.
Based on the understanding that the technical solutions of the present embodiment substantially or partially contribute to the prior art, or all or part of the technical solutions may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
The embodiment of the application provides a touch screen, which acquires first coordinate data corresponding to a current touch signal; the first coordinate data represent the position of a touch point corresponding to the current touch signal; when the first coordinate data is the same as second coordinate data corresponding to at least one continuous historical touch signal of the current touch signal, acquiring a timing identifier and recording first time corresponding to the current touch signal; determining a touch screen reporting mode according to the first time and the timing identifier; and performing touch screen point reporting processing on the current touch signal according to a touch screen reporting mode. That is to say, in the embodiment of the application, when the first coordinate data is the same as second coordinate data corresponding to at least one historical touch signal in which a current touch signal is continuous, if a time difference between a first time corresponding to the current touch signal and a second time corresponding to the at least one historical touch signal is equal to or greater than a preset time threshold, the touch screen reports the first coordinate data to the terminal, otherwise, the first coordinate data is not reported, so that the problem of screen-off misoperation caused by that the touch screen does not report continuously for the same continuous coordinate is solved, the defect of power consumption increase caused by continuously reporting the same continuous coordinate is overcome, power consumption is reduced, and intelligence of the touch screen is improved.
An embodiment of the present application provides a computer-readable storage medium, on which a program is stored, where the program is executed by a processor to implement the point reporting method as described above.
Specifically, the program instructions corresponding to the point reporting method in this embodiment may be stored in a storage medium such as an optical disc, a hard disc, a usb flash disk, or the like, and when the program instructions corresponding to the point reporting method in the storage medium are read or executed by an electronic device, the method includes the following steps:
acquiring first coordinate data corresponding to a current touch signal; the first coordinate data represent the position of a touch point corresponding to the current touch signal;
when the first coordinate data is the same as second coordinate data corresponding to at least one continuous historical touch signal of the current touch signal, acquiring a timing identifier and recording first time corresponding to the current touch signal;
determining a touch screen reporting mode according to the first time and the timing identifier;
and performing touch screen point reporting processing on the current touch signal according to the touch screen reporting mode.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of implementations of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.
Claims (17)
1. A point reporting method, the method comprising:
acquiring first coordinate data corresponding to a current touch signal; the first coordinate data represent the position of a touch point corresponding to the current touch signal;
when the first coordinate data is the same as second coordinate data corresponding to at least one continuous historical touch signal of the current touch signal, acquiring a timing identifier and recording first time corresponding to the current touch signal;
determining a touch screen reporting mode according to the first time and the timing identifier;
performing touch screen point reporting processing on the current touch signal according to the touch screen reporting mode;
determining a touch screen reporting mode according to the first time and the timing identifier, including:
when the timing mark is 1, acquiring second time corresponding to the at least one historical touch signal; wherein the second time represents a start time when the timing flag is set to 1;
calculating a first difference between the first time and the second time;
determining the reporting mode of the touch screen according to the first difference value and a preset time threshold value;
the determining the touch screen reporting mode according to the first difference and a preset time threshold includes:
when the first difference is smaller than the preset time threshold, determining the touch screen reporting mode as a first reporting mode; the first reporting mode is that the first coordinate data is not reported;
when the first difference value is larger than or equal to the preset time threshold value, determining the touch screen reporting mode as a second reporting mode; the second reporting mode is to report the first coordinate data.
2. The method of claim 1, wherein when the touch screen reporting mode is the first reporting mode, the performing touch screen reporting processing on the current touch signal according to the touch screen reporting mode comprises:
the first coordinate data are not reported, and third coordinate data corresponding to the next touch signal are continuously obtained;
when the third coordinate data is the same as the first coordinate data, continuing to acquire the timing identifier and recording a third time corresponding to the next touch signal, determining the touch screen reporting mode again according to the timing identifier and the third time, and performing touch screen point reporting processing based on the touch screen reporting mode.
3. The method of claim 1, wherein when the touch screen reporting mode is the second reporting mode, the performing touch screen reporting processing on the current touch signal according to the touch screen reporting mode comprises:
and reporting the first coordinate data, and setting the timing identifier to be 0.
4. The method of claim 1, wherein the determining a touch screen reporting mode according to the first time and the timing identifier comprises:
when the timing identifier is 0, the first coordinate data is not reported, and the timing identifier is set to be 1;
continuously acquiring fourth coordinate data corresponding to the next touch signal;
when the fourth coordinate data is the same as the first coordinate data, continuing to acquire the timing identifier and recording a fourth time corresponding to the next touch signal, and determining the touch screen reporting mode again according to the timing identifier and the fourth time so as to perform touch screen point reporting processing based on the touch screen reporting mode.
5. The method of claim 2, wherein after continuing to acquire the third coordinate data corresponding to the next touch signal, the method further comprises:
and when the third coordinate data is different from the first coordinate data, reporting the third coordinate data, and setting the timing identifier to be 0.
6. The method of claim 4, wherein after continuing to acquire the fourth coordinate data corresponding to the next touch signal, the method further comprises:
and when the fourth coordinate data is different from the first coordinate data, reporting the fourth coordinate data, and setting the timing identifier to be 0.
7. The method of claim 1, wherein after acquiring the first coordinate data corresponding to the current touch signal, the method further comprises:
acquiring second coordinate data corresponding to the at least one historical touch signal continuous with the current touch signal;
and when the first coordinate data is different from the second coordinate data, directly reporting the first coordinate data, and setting the timing identifier to be 0.
8. The method of claim 1, wherein the preset time threshold is less than a preset screen-off time.
9. A touch screen, comprising: an acquisition unit, a recording unit, a determination unit and a processing unit,
the acquisition unit is used for acquiring first coordinate data corresponding to the current touch signal; the first coordinate data represent the position of a touch point corresponding to the current touch signal;
the acquisition unit is further configured to acquire a timing identifier when the first coordinate data is the same as second coordinate data corresponding to at least one historical touch signal in which the current touch signal is continuous;
the recording unit is used for recording a first time corresponding to the current touch signal;
the determining unit is used for determining a touch screen reporting mode according to the first time and the timing identifier;
the processing unit is used for performing touch screen point reporting processing on the current touch signal according to the touch screen reporting mode;
the determining unit is specifically configured to obtain a second time corresponding to the at least one historical touch signal when the timing identifier is 1; wherein the second time represents a start time when the timing flag is set to 1; and calculating a first difference between the first time and the second time; determining the reporting mode of the touch screen according to the first difference value and a preset time threshold value;
the determining unit is specifically configured to determine the touch screen reporting mode as a first reporting mode when the first difference is smaller than the preset time threshold; the first reporting mode is that the first coordinate data is not reported; when the first difference value is larger than or equal to the preset time threshold value, determining the touch screen reporting mode as a second reporting mode; the second reporting mode is to report the first coordinate data.
10. The touch screen of claim 9,
the processing unit is specifically configured to not report the first coordinate data when the touch screen reporting mode is the first reporting mode; continuously acquiring third coordinate data corresponding to the next touch signal; when the third coordinate data is the same as the first coordinate data, continuing to acquire the timing identifier and recording a third time corresponding to the next touch signal, determining the touch screen reporting mode again according to the timing identifier and the third time, and performing touch screen point reporting processing based on the touch screen reporting mode;
the processing unit is further specifically configured to report the first coordinate data and set the timing identifier to be 0 when the touch screen reporting mode is the second reporting mode.
11. The touch screen of claim 9,
the determining unit is further specifically configured to set the timing identifier to 1 without reporting the first coordinate data when the timing identifier is 0; continuously acquiring fourth coordinate data corresponding to the next touch signal; and when the fourth coordinate data is the same as the first coordinate data, continuing to acquire the timing identifier and recording a fourth time corresponding to the next touch signal, determining the touch screen reporting mode again according to the timing identifier and the fourth time, and performing touch screen point reporting processing based on the touch screen reporting mode.
12. The touch screen of claim 10,
the processing unit is further specifically configured to report third coordinate data and set the timing identifier to 0 when the third coordinate data is different from the first coordinate data after continuously obtaining third coordinate data corresponding to a next touch signal.
13. The touch screen of claim 11,
the processing unit is further specifically configured to report fourth coordinate data and set the timing identifier to 0 when the fourth coordinate data is different from the first coordinate data after continuously obtaining fourth coordinate data corresponding to a next touch signal.
14. The touch screen of claim 9,
the acquiring unit is further configured to acquire second coordinate data corresponding to the at least one historical touch signal that is continuous with the current touch signal after acquiring first coordinate data corresponding to the current touch signal;
the processing unit is further configured to directly report the first coordinate data and set the timing identifier to be 0 when the first coordinate data is different from the second coordinate data.
15. The touch screen of claim 9, wherein the preset time threshold is less than a preset screen-off time.
16. A touch screen comprising a processor, a memory storing instructions executable by the processor, the instructions when executed by the processor implementing the method of any one of claims 1-8.
17. A computer-readable storage medium, on which a program is stored, for use in a touch screen, wherein the program, when executed by a processor, implements the method of any one of claims 1-8.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910839205.1A CN110737359B (en) | 2019-09-05 | 2019-09-05 | Point reporting method, touch screen and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910839205.1A CN110737359B (en) | 2019-09-05 | 2019-09-05 | Point reporting method, touch screen and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110737359A CN110737359A (en) | 2020-01-31 |
| CN110737359B true CN110737359B (en) | 2022-10-25 |
Family
ID=69267723
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910839205.1A Active CN110737359B (en) | 2019-09-05 | 2019-09-05 | Point reporting method, touch screen and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110737359B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113031824A (en) * | 2021-03-31 | 2021-06-25 | 深圳市爱协生科技有限公司 | Method and system for dynamically reporting touch screen data and mobile terminal |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101408823A (en) * | 2008-11-18 | 2009-04-15 | 广东威创视讯科技股份有限公司 | Method for judging double clicks of touch screen |
| CN105068688A (en) * | 2015-08-12 | 2015-11-18 | Tcl移动通信科技(宁波)有限公司 | Touchscreen position reporting method and apparatus |
| CN105302440A (en) * | 2015-10-27 | 2016-02-03 | 上海救要救信息科技有限公司 | Method and system for preventing or reducing misoperations of touch screen according to time |
| WO2016161986A1 (en) * | 2015-04-09 | 2016-10-13 | 努比亚技术有限公司 | Operation recognition method and apparatus, mobile terminal and computer storage medium |
| WO2016169480A1 (en) * | 2015-04-23 | 2016-10-27 | 努比亚技术有限公司 | Mobile terminal control method and device and computer storage medium |
| CN106775389A (en) * | 2016-11-30 | 2017-05-31 | 努比亚技术有限公司 | A kind for the treatment of method and apparatus of touch-control interaction |
| CN107340910A (en) * | 2017-06-26 | 2017-11-10 | 广东欧珀移动通信有限公司 | Response method, device, storage medium and electronic equipment for a touch button |
| CN109074216A (en) * | 2017-04-21 | 2018-12-21 | 华为技术有限公司 | A touch control method and device |
| CN109582195A (en) * | 2017-09-29 | 2019-04-05 | 北京小米移动软件有限公司 | Report the method and device of key-press event |
| CN110007803A (en) * | 2019-04-15 | 2019-07-12 | 深圳市万普拉斯科技有限公司 | Touch screen reporting method, device, touch screen and electronic device |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI475462B (en) * | 2013-03-06 | 2015-03-01 | Pixart Imaging Inc | Capacitive touch device |
-
2019
- 2019-09-05 CN CN201910839205.1A patent/CN110737359B/en active Active
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101408823A (en) * | 2008-11-18 | 2009-04-15 | 广东威创视讯科技股份有限公司 | Method for judging double clicks of touch screen |
| WO2016161986A1 (en) * | 2015-04-09 | 2016-10-13 | 努比亚技术有限公司 | Operation recognition method and apparatus, mobile terminal and computer storage medium |
| WO2016169480A1 (en) * | 2015-04-23 | 2016-10-27 | 努比亚技术有限公司 | Mobile terminal control method and device and computer storage medium |
| CN105068688A (en) * | 2015-08-12 | 2015-11-18 | Tcl移动通信科技(宁波)有限公司 | Touchscreen position reporting method and apparatus |
| CN105302440A (en) * | 2015-10-27 | 2016-02-03 | 上海救要救信息科技有限公司 | Method and system for preventing or reducing misoperations of touch screen according to time |
| CN106775389A (en) * | 2016-11-30 | 2017-05-31 | 努比亚技术有限公司 | A kind for the treatment of method and apparatus of touch-control interaction |
| CN109074216A (en) * | 2017-04-21 | 2018-12-21 | 华为技术有限公司 | A touch control method and device |
| CN107340910A (en) * | 2017-06-26 | 2017-11-10 | 广东欧珀移动通信有限公司 | Response method, device, storage medium and electronic equipment for a touch button |
| CN109582195A (en) * | 2017-09-29 | 2019-04-05 | 北京小米移动软件有限公司 | Report the method and device of key-press event |
| CN110007803A (en) * | 2019-04-15 | 2019-07-12 | 深圳市万普拉斯科技有限公司 | Touch screen reporting method, device, touch screen and electronic device |
Non-Patent Citations (1)
| Title |
|---|
| 基于BU21023的电阻式触摸屏两点触控功能设计;宓颖;《单片机与嵌入式系统应用》;20120601(第06期);30-32,43 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110737359A (en) | 2020-01-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105573538B (en) | Sliding broken line compensation method and electronic equipment | |
| CN105204730B (en) | A kind of screen control method and user terminal | |
| EP3336679B1 (en) | Method and terminal for preventing unintentional triggering of a touch key and storage medium | |
| CN107466077A (en) | A kind of method for switching network and mobile terminal | |
| WO2018107903A1 (en) | Control method and device for touch screen of mobile terminal, mobile terminal, and storage medium | |
| US20150268789A1 (en) | Method for preventing accidentally triggering edge swipe gesture and gesture triggering | |
| CN111459346B (en) | Capacitive touch device and gesture recognition method, chip and storage medium thereof | |
| CN112740152A (en) | Stylus detection method, system and related device | |
| CN111274039A (en) | Memory recovery method and device, storage medium and electronic equipment | |
| CN107203313A (en) | Adjust desktop and show object method, mobile terminal and computer-readable recording medium | |
| CN105824465A (en) | Touch determination method and device, and display device | |
| US11537238B2 (en) | Touch control identification method, device and system | |
| CN110737359B (en) | Point reporting method, touch screen and storage medium | |
| CN106980447A (en) | An information processing method, device and terminal | |
| CN104077050A (en) | Terminal operating method | |
| CN107025024A (en) | It is a kind of to prevent the method and mobile terminal of mobile terminal maloperation | |
| CN110275639B (en) | Touch data processing method and device, terminal and storage medium | |
| CN106681640B (en) | Screen display control method of a mobile terminal and mobile terminal | |
| US9904402B2 (en) | Mobile terminal and method for input control | |
| CN106201549A (en) | Control method and device for information in application program and terminal equipment | |
| CN111273809B (en) | Data acquisition method and device, electronic equipment and storage medium | |
| CN105549894A (en) | Touch information processing method and apparatus, touch information acquisition method and apparatus and touch information processing system | |
| CN105353970A (en) | Video recording control method in black screen standby state and mobile terminal | |
| US11175821B2 (en) | Pressure touch method and terminal | |
| CN111475057A (en) | Touch identification method and device |
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 |