CN107506073B - Touch screen detection method and device, mobile terminal and computer readable storage medium - Google Patents

Touch screen detection method and device, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN107506073B
CN107506073B CN201710672332.8A CN201710672332A CN107506073B CN 107506073 B CN107506073 B CN 107506073B CN 201710672332 A CN201710672332 A CN 201710672332A CN 107506073 B CN107506073 B CN 107506073B
Authority
CN
China
Prior art keywords
touch screen
click
channel
coordinates
click coordinates
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710672332.8A
Other languages
Chinese (zh)
Other versions
CN107506073A (en
Inventor
刘康飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710672332.8A priority Critical patent/CN107506073B/en
Publication of CN107506073A publication Critical patent/CN107506073A/en
Application granted granted Critical
Publication of CN107506073B publication Critical patent/CN107506073B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

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 invention discloses a touch screen detection method, a device, a mobile terminal and a computer readable storage medium, wherein the method comprises the following steps: counting click data of a user on the touch screen, wherein the click data comprises click times and a plurality of click coordinates, judging whether the click times are greater than a first preset time, and detecting whether an abnormal channel exists in the touch screen according to the click coordinates when the click times are greater than the first preset time. According to the embodiment of the invention, the accuracy of the touch screen detection can be improved, and the user experience is improved.

Description

Touch screen detection method and device, mobile terminal and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a touch screen detection method and apparatus, a mobile terminal, and a computer-readable storage medium.
Background
With the continuous development of mobile terminals, touch screens are increasingly widely used. Among them, the capacitive touch screen has a higher sensitivity, and thus has an absolute advantage in the touch screen. The capacitive touch screen is used as the most common input device of the mobile terminal, and the reliability and performance of the capacitive touch screen affect the normal use of the intelligent terminal and the operation experience of a user all the time. Therefore, it is important to ensure the reliability of the capacitive screen.
The existing capacitive touch screen detection mechanism is mainly realized through regular automatic detection, namely, the touch screen is detected through a touch screen automatic detection program, and in the process of detection through the touch screen automatic detection program, a user is usually difficult to perform other operations on a mobile terminal provided with the touch screen, so that the detection accuracy is low, and the user experience is also reduced.
Disclosure of Invention
The invention provides a touch screen detection method, a touch screen detection device, a mobile terminal and a computer readable storage medium, and aims to solve the technical problems of low accuracy of touch screen detection and poor user experience in the prior art.
In a first aspect, an embodiment of the present invention provides a touch screen detection method applied to a mobile terminal, including:
counting click data of a user on the touch screen, wherein the click data comprises click times and a plurality of click coordinates;
judging whether the click times are greater than a first preset time or not;
and when the number of clicks is greater than the first preset number, detecting whether an abnormal channel exists in the touch screen or not according to the click coordinates.
In a second aspect, an embodiment of the present invention further provides a touch screen detection apparatus, applied to a mobile terminal, including:
the counting module is used for counting click data of a user on the touch screen, and the click data comprises click times and a plurality of click coordinates;
the judging module is used for judging whether the click times are greater than a first preset time;
and the detection module is used for detecting whether an abnormal channel exists in the touch screen or not according to the plurality of click coordinates when the click times are greater than the first preset times.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the touch screen detection method provided in the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the touch screen detection method as provided in the first aspect.
According to the embodiment of the invention, click data such as click times and click coordinates can be counted, whether the touch screen is detected or not is determined according to the click times, whether an abnormal channel exists in the touch screen or not is detected according to the click coordinates, the accuracy of the detection of the touch screen can be improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flow chart of a touch screen detection method provided by an embodiment of the invention;
FIG. 2 is a schematic diagram of a channel of a touch screen in an embodiment of the invention;
fig. 3 is a schematic structural diagram of a first mobile terminal according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a second mobile terminal according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a third mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a touch screen detection method, which is applied to a mobile terminal, and as shown in fig. 1, the method includes the following steps:
s100, counting click data of a user on the touch screen, wherein the click data comprises click times and a plurality of click coordinates.
Generally, a touch screen automatic detection program is arranged inside a mobile terminal, and a self-detection mechanism is periodically started according to preset time to judge whether a touch screen is normally used, however, the periodically started self-detection mechanism has many disadvantages, for example, the accumulated use time of the touch screen is very short, detection is not necessary at all, or a self-detection interval is unreasonable, and frequent starting affects the operation experience of a user. Therefore, in order to avoid the problems of low use cost and poor user experience caused by frequent starting of the automatic detection program of the touch screen, the click data of the user on the touch screen can be counted, and then the touch screen is detected according to the click data in the base that the normal use of the mobile terminal by the user is not influenced.
The click data is data generated by the touch screen according to the operation of the user on the touch screen, and can be obtained by statistics of the mobile terminal in the process of using the mobile terminal by the user.
The number of clicks can reflect the usage amount of the touch screen by the user, and the click coordinates can indicate the position of the operation in the touch screen.
S200, judging whether the click times are larger than a first preset time.
The number of clicks can reflect the usage amount of the touch screen by the user, and when the usage amount is large, the touch screen may be abnormal due to the working life, the operation damage of the user and the like, so that whether the abnormal channel exists in the touch screen is detected or not can be determined when the number of clicks is greater than a first preset value.
The first preset number of times may be set by the mobile terminal in advance, for example, according to the size of the touch screen, the number of channels, the channel density, and the like.
For example, the first preset number of times may be 50000.
The channel is a conductive circuit arranged in the touch screen and used for determining a click coordinate aiming at the operation according to the operation of a user on the touch screen.
The touch screen is typically provided with channels in both the lateral and longitudinal directions. When a user operates the touch screen, the capacitance value signal of the channel at the corresponding position in the touch screen is increased, the mobile terminal selects at least one transverse channel and at least one longitudinal channel from the transverse channels and the longitudinal channels according to the capacitance value signal of each channel, calculates the ordinate of the operation according to the capacitance value signal of the at least one transverse channel, and calculates the abscissa of the operation according to the capacitance value signal of the at least one longitudinal channel. And determining the calculated abscissa and ordinate as click coordinates for the operation.
For example, a schematic of the channel is shown in FIG. 2. When a user clicks a certain position (namely, one-click event) on the touch screen, the touch screen selects a channel A with the largest capacitance value signal from the transverse channels according to the capacitance value signals of the channels caused by the operation, and determines a corresponding ordinate according to the capacitance value signal of the channel A. And selecting a channel B with the largest capacitance value signal in the longitudinal channels, and determining the abscissa according to the capacitance value signal of the channel B. And determining the determined abscissa and ordinate as click coordinates for the operation.
S300, when the number of clicks is larger than the first preset number of times, detecting whether an abnormal channel exists in the touch screen or not according to the click coordinates.
When the number of clicks is greater than the first preset number, the usage amount of the touch screen by the user is large, and the probability that the abnormal channel exists in the touch screen is high, so that whether the abnormal channel exists can be detected according to a plurality of click coordinates.
If an abnormal channel exists in the touch screen, the click coordinates for each operation of the user are calculated to possibly have larger errors or abnormal conditions, so that the mobile terminal can compare the click coordinates, judge whether the click coordinates possibly have abnormal click coordinates or not, and further determine that the abnormal channel exists in the touch screen. For example, the mobile terminal may determine that the same click coordinates exist in the plurality of click coordinates, and if the same click coordinates are greater than a fourth preset number of times, it is determined that an abnormal channel exists in the touch screen.
Wherein the fourth preset number of times may be determined in advance by the mobile terminal.
For example, the plurality of click coordinates include 50000 click coordinates, the 50000 click coordinates include 10000 click coordinates (36, 63), the fourth preset number of times is 5000, and since 10000 is greater than 5000, it is determined that an abnormal channel exists in the touch screen.
Of course, when the number of clicks is not greater than the first preset number, it may be determined whether an abnormal channel exists in the touch screen, but the click data may be counted again.
In the embodiment of the invention, click data such as click times, click coordinates and the like can be counted, whether the touch screen is detected or not is determined according to the click times, and whether an abnormal channel exists in the touch screen or not is detected according to the click coordinates. The operation of counting the click data can be performed in the process that a user normally uses the mobile terminal provided with the touch screen, so that the touch screen does not need to be detected regularly through a self-checking mechanism, the problems of use cost and poor user experience caused by frequent starting of an automatic detection program of the touch screen are further solved, namely, the accuracy of detection of the touch screen can be improved, and the user experience is improved.
Preferably, the step S300 of detecting whether an abnormal channel exists in the touch screen according to the plurality of click coordinates includes: judging whether the number of the click coordinates corresponding to each channel in the touch screen is smaller than a second preset number of times, and determining that the channel is open-circuited when the channel with the number of the click coordinates smaller than the second preset number of times exists in the touch screen.
The abnormal condition of the channel usually includes open circuit or short circuit, so in order to accurately detect whether an abnormal channel exists in the touch screen and the type of the abnormal channel, that is, to improve the accuracy of the detection of the touch screen, whether the open circuit channel exists can be judged according to the number of the click coordinates corresponding to each channel.
If a certain channel is broken, the capacitance value signal of the channel may be abnormal, so that it is difficult to determine the ordinate or abscissa, and thus it is difficult to determine the click coordinate for the user operation, and therefore, in the multiple click coordinates, the click coordinate corresponding to the channel may not be included or may be rarely included, and therefore, for any channel, if the number of click coordinates corresponding to the channel is less than the second preset number, it may be determined that the channel is broken.
The mobile terminal can determine a click coordinate set corresponding to each channel in advance according to the distribution of each channel in the touch screen, wherein each click coordinate in the click coordinate set is in a preset range corresponding to the channel. And then classifying the plurality of click coordinates according to the set of click coordinates corresponding to each channel, thereby obtaining the click coordinates corresponding to each channel.
The preset range may be determined in advance according to the distribution mode of each channel, for example, the number of pixels in how many pixels a certain coordinate point on the channel is as a circle center may be included, the number of pixels is related to the screen body design of the touch screen, and for different screen body designs, different numbers of pixel points may be defined.
For example, taking channel B as an example, the click coordinate set corresponding to the channel may include any click coordinate with an abscissa of 36. Therefore, in 50000 click coordinates, 5000 click coordinates with an abscissa of 36 are included, and the 5000 click coordinates are click coordinates corresponding to the channel.
Of course, in practical applications, the mobile terminal may also classify each click coordinate according to the corresponding channel when counting the click data, so as to directly judge whether there is an open channel according to the click coordinate corresponding to each channel when judging whether there is an abnormal channel in the touch screen.
The second preset number of times may be predetermined by the mobile terminal. For example, the second predetermined number may be 0.
Preferably, in S300, the multiple click coordinates include at least one coordinate group, the multiple click coordinates in the same coordinate group are triggered at the same time, and abscissa or ordinate of different click coordinates in the same coordinate group are the same, and the detecting whether there is an abnormal channel in the touch screen according to the multiple click coordinates includes: determining the number of target coordinate groups for any non-intersected channels, wherein the target coordinate groups comprise click coordinates respectively corresponding to the channels, judging whether the determined number is larger than a third preset number of times, and determining that a short-circuited abnormal channel exists in the touch screen when the determined number is larger than the third preset number of times.
The abnormity of the channel usually comprises open circuit or short circuit, so that whether the abnormal channel exists in the touch screen and the type of the abnormal channel is accurately detected, namely, the detection accuracy of the touch screen is improved, and whether the short-circuited channel exists in the touch screen can be judged according to a plurality of click coordinates.
If there are any non-intersecting channels (e.g., more than two transverse channels, or more than two longitudinal channels) in the touch screen that are shorted, the capacitance signals of these channels caused by the user's operation may be the same, which may result in more than one click coordinate being calculated for one operation, and the abscissa or ordinate of the more than one click coordinate determined by the shorted channels is the same. For example, as shown in fig. 2, there is a short circuit between the channel C and the channel a in the horizontal direction, after the user operates the touch screen, because the capacitance signals of the channel a and the channel C are the same, a click coordinate can be calculated according to the channel a and the channel B, and a click coordinate is also calculated according to the channel C and the channel B, and the ordinate of the two coordinates is the same, and the abscissa is different, where the channel for determining different abscissas is the short-circuited channel. Therefore, whether a short-circuited channel exists can be determined according to the click coordinates with the same abscissa or ordinate in the coordinate set.
The mobile terminal can store click coordinates which are triggered at the same time and have the same abscissa or ordinate as a coordinate group when counting the click data.
For each click coordinate in the same coordinate, if the ordinate of each click coordinate is the same, the channel corresponding to the abscissa of each click coordinate may be a short-circuited channel, or if the abscissa of each click coordinate is the same, the channel corresponding to the ordinate of each click coordinate may be a short-circuited channel. Therefore, for any disjoint channels, the number of target coordinates that can account for the short of these channels may be determined, and the target coordinate set includes the click coordinates that respectively correspond to each of the channels in any disjoint channels. And if the determined number is larger than the third preset number, determining that any non-intersected channel is short-circuited, namely a short-circuited channel exists in the touch screen.
The third preset number of times may be determined in advance by the mobile terminal.
For example, for channel a and channel C, 10000 coordinate sets are included in 50000 click coordinates, and 5000 target coordinate sets for channel a and channel C are included in the 10000 coordinate sets, that is, each of the 5000 coordinate sets includes click coordinates for channel a and channel C. If the third preset number is 4000, it may be determined that the channel a and the channel C are short-circuited since 5000 is greater than 4000.
Preferably, after detecting whether an abnormal channel exists in the touch screen according to the plurality of click coordinates in S300, the method further includes: when the abnormal channel exists in the touch screen and the operation on the touch screen is detected, shielding the capacitance value signal of the abnormal channel so as to calculate the click coordinate aiming at the operation through the channel which does not generate the abnormality in the touch screen.
In calculating the click coordinate, the more channels are selected, the more accurate the click coordinate is calculated, and if the number of channels is small, the click coordinate can be calculated, but the click coordinate calculated by the small number of channels may have an error. When an abnormal channel exists in the touch screen, the error of the click coordinate caused by the abnormal channel is usually much larger than the error of the click coordinate caused by one channel, so that in order to improve the accuracy of determining the click coordinate according to the operation of a user, the click coordinate can be calculated according to the normal channel by shielding the capacitance value signal of the abnormal channel.
The mobile terminal can store the channel identification of the abnormal channel after detecting the abnormal channel, collect the capacitance value signal of each channel when detecting the operation of the user for the touch screen, delete the capacitance value signal of the abnormal channel according to the channel identification of each channel, and then select at least one channel from the rest channels according to the capacitance value signals of the rest channels to calculate the click coordinate for the operation.
The channel identifier is used to uniquely identify a channel in the mobile terminal, and may be determined in advance by the mobile terminal, such as numbering by numbers or letters.
Preferably, after the detecting whether an abnormal channel exists in the touch screen according to the plurality of click coordinates, S300 further includes: and when the abnormal channel exists in the touch screen, starting an automatic touch screen detection program to detect the touch screen.
In order to increase the detection dimensionality of the detection of the touch screen and further improve the accuracy of the detection of the touch screen on the basis of reducing the detection cost, an automatic detection program of the touch screen in the mobile terminal can be started to further detect the touch screen when an abnormal channel exists in the touch screen.
The touch screen automatic detection program is used for detecting the touch screen, and can be acquired by the mobile terminal from other devices or servers, for example, downloaded by an application market.
Of course, when it is determined that an abnormal channel exists in the touch screen, the detection result may be displayed to the user in the form of an image, sound, vibration, or the like, and the user may be prompted to replace the touch screen or perform other remedial measures when the abnormal channel is detected.
An embodiment of the present invention further provides a touch screen detection apparatus, which is applied to a mobile terminal, and as shown in fig. 3, the touch screen detection apparatus includes:
the counting module 301 is configured to count click data of a user on the touch screen, where the click data includes click times and a plurality of click coordinates;
a determining module 302, configured to determine whether the number of clicks is greater than a first preset number;
the detecting module 303 is configured to detect whether an abnormal channel exists in the touch screen according to the multiple click coordinates when the click times are greater than the first preset times.
In the embodiment of the invention, click data such as click times, click coordinates and the like can be counted, whether the touch screen is detected or not is determined according to the click times, and whether an abnormal channel exists in the touch screen or not is detected according to the click coordinates. The operation of counting the click data can be performed in the process that the user normally uses the mobile terminal provided with the touch screen, so that the touch screen does not need to be detected regularly through a self-checking mechanism, the problems of use cost and poor user experience caused by frequent starting of an automatic detection program of the touch screen are further solved, namely, the cost for detecting the touch screen can be reduced, and the user experience is improved.
Preferably, the detection module includes:
the first judgment submodule is used for judging whether the number of the click coordinates corresponding to each channel in the touch screen is less than a second preset number of times;
and the first determining submodule is used for determining that the channel is broken when the channel with the number of the click coordinates smaller than the second preset times exists in the touch screen.
Preferably, the plurality of click coordinates comprise at least one coordinate group, the plurality of click coordinates in the same coordinate group are triggered at the same time, and the abscissa or ordinate of different click coordinates in the same coordinate group is the same;
the detection module comprises:
the second determining submodule is used for determining the number of target coordinate groups for any non-intersected channels, and each target coordinate group comprises click coordinates corresponding to each channel;
the second judgment submodule is used for judging whether the determined number is greater than a third preset number of times;
and the third determining submodule is used for determining that the short-circuited abnormal channel exists in the touch screen when the determined number is greater than the third preset number.
Preferably, the touch screen detection device further includes:
and the shielding module is used for shielding the capacitance value signal of the abnormal channel when the abnormal channel exists in the touch screen and the operation on the touch screen is detected, so as to calculate the click coordinate aiming at the operation through the channel which does not generate the abnormality in the touch screen.
Preferably, the touch screen detection device further includes:
and the starting module is used for starting an automatic touch screen detection program to detect the touch screen when the abnormal channel exists in the touch screen.
According to the embodiment of the invention, click data such as click times and click coordinates can be counted, whether the touch screen is detected or not is determined according to the click times, whether an abnormal channel exists in the touch screen or not is detected according to the click coordinates, the accuracy of the detection of the touch screen can be improved, and the user experience is improved.
Fig. 4 is a block diagram of a mobile terminal according to another embodiment of the present invention. The mobile terminal 400 shown in fig. 4 includes: at least one processor 401, memory 402, at least one network interface 404, and other user interfaces 403. The various components in the mobile terminal 400 are coupled together by a bus system 405. It is understood that the bus system 405 is used to enable connection communication between these components. The bus system 405 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 405 in fig. 4.
The user interface 403 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It will be appreciated that memory 402 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration, and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous SDRAM (ESDRAM), Sync Link DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 402 of the systems and methods described in this embodiment of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 402 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof: an operating system 4021 and application programs 4022.
The operating system 4021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is configured to implement various basic services and process hardware-based tasks. The application programs 4022 include various application programs, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. A program for implementing the method according to the embodiment of the present invention may be included in the application 4022.
In this embodiment of the present invention, by calling a program or an instruction stored in the memory 702, specifically, a program or an instruction stored in the application 4022, the processor 401 is configured to:
counting click data of a user on the touch screen, wherein the click data comprises click times and a plurality of click coordinates;
judging whether the click times are greater than a first preset time or not;
and when the number of clicks is greater than the first preset number, detecting whether an abnormal channel exists in the touch screen or not according to the click coordinates.
The method disclosed in the above embodiments of the present invention may be applied to the processor 401, or implemented by the processor 401. The processor 401 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 401. The Processor 401 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable Gate Array (FPGA) or other programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 702, and the processor 401 reads the information in the memory 402, and completes the steps of the method in combination with the hardware.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described in this disclosure may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described in this disclosure. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Preferably, the processor 401 is further configured to:
judging whether the number of click coordinates corresponding to each channel in the touch screen is less than a second preset number of times or not;
and when the channels with the number of the click coordinates smaller than the second preset times exist in the touch screen, determining that the channels are broken.
Preferably, the plurality of click coordinates comprise at least one coordinate group, the plurality of click coordinates in the same coordinate group are triggered at the same time, and the abscissa or ordinate of different click coordinates in the same coordinate group is the same;
the processor 401 is further configured to:
determining the number of target coordinate groups for any non-intersected channels, wherein the target coordinate groups comprise click coordinates respectively corresponding to the channels;
judging whether the determined number is greater than a third preset number;
and when the determined number is greater than the third preset number, determining that a short-circuited abnormal channel exists in the touch screen.
Preferably, the processor 401 is further configured to:
when the abnormal channel exists in the touch screen and the operation on the touch screen is detected, shielding the capacitance value signal of the abnormal channel so as to calculate the click coordinate aiming at the operation through the channel which does not generate the abnormality in the touch screen.
Preferably, the processor 401 is further configured to:
and when the abnormal channel exists in the touch screen, starting an automatic touch screen detection program to detect the touch screen.
The mobile terminal 400 can implement the processes implemented by the mobile terminal in the foregoing embodiments, and in order to avoid repetition, the detailed description is omitted here.
According to the embodiment of the invention, click data such as click times and click coordinates can be counted, whether the touch screen is detected or not is determined according to the click times, whether an abnormal channel exists in the touch screen or not is detected according to the click coordinates, the accuracy of the detection of the touch screen can be improved, and the user experience is improved.
Fig. 5 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention. Specifically, the mobile terminal 500 in fig. 5 may be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
The mobile terminal 500 of fig. 5 includes a Radio Frequency (RF) circuit 510, a memory 520, an input unit 530, a display unit 540, a processor 560, an audio circuit 570, a Wi-fi (wireless fidelity) module 580, and a power supply 590.
The input unit 530 may be used to receive numeric or character information input by a user and generate signal inputs related to user settings and function control of the mobile terminal 500, among other things. Specifically, in the embodiment of the present invention, the input unit 530 may include a touch panel 531. The touch panel 531, also called a touch screen, can collect touch operations of a user (for example, operations of the user on the touch panel 531 by using a finger, a stylus pen, or any other suitable object or accessory) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 531 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, sends it to the processor 560, and can receive and execute commands from the processor 560. In addition, the touch panel 531 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 531, the input unit 530 may further include other input devices 532, and the other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Among other things, the display unit 540 may be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal 500. The display unit 540 may include a display panel 541, and optionally, the display panel 541 may be configured in the form of an LCD or an Organic Light-Emitting Diode (OLED), or the like.
It should be noted that the touch panel 531 may cover the display panel 541 to form a touch display screen, and when the touch display screen detects a touch operation thereon or nearby, the touch display screen is transmitted to the processor 560 to determine the type of the touch event, and then the processor 560 provides a corresponding visual output on the touch display screen according to the type of the touch event.
The touch display screen comprises an application program interface display area and a common control display area. The arrangement modes of the application program interface display area and the common control display area are not limited, and can be an arrangement mode which can distinguish two display areas, such as vertical arrangement, left-right arrangement and the like. The application interface display area may be used to display an interface of an application. Each interface may contain at least one interface element such as an icon and/or widget desktop control for an application. The application interface display area may also be an empty interface that does not contain any content. The common control display area is used for displaying controls with high utilization rate, such as application icons like setting buttons, interface numbers, scroll bars, phone book icons and the like.
The processor 560 is a control center of the mobile terminal 500, connects various parts of the entire cellular phone using various interfaces and lines, and performs various functions of the mobile terminal 500 and processes data by operating or executing software programs and/or modules stored in the first memory 521 and calling data stored in the second memory 522, thereby integrally monitoring the mobile terminal 500. Optionally, processor 560 may include one or more processing units.
In an embodiment of the present invention, the processor 560 is configured to, by calling a software program and/or module stored in the first memory 521 and/or data stored in the second memory 522:
counting click data of a user on the touch screen, wherein the click data comprises click times and a plurality of click coordinates;
judging whether the click times are greater than a first preset time or not;
and when the number of clicks is greater than the first preset number, detecting whether an abnormal channel exists in the touch screen or not according to the click coordinates.
Judging whether the number of click coordinates corresponding to each channel in the touch screen is less than a second preset number of times or not;
and when the channels with the number of the click coordinates smaller than the second preset times exist in the touch screen, determining that the channels are broken.
Preferably, the plurality of click coordinates comprise at least one coordinate group, the plurality of click coordinates in the same coordinate group are triggered at the same time, and the abscissa or ordinate of different click coordinates in the same coordinate group is the same;
processor 560 is also configured to:
determining the number of target coordinate groups for any non-intersected channels, wherein the target coordinate groups comprise click coordinates respectively corresponding to the channels;
judging whether the determined number is greater than a third preset number;
and when the determined number is greater than the third preset number, determining that a short-circuited abnormal channel exists in the touch screen.
Preferably, the processor 560 is further configured to:
when the abnormal channel exists in the touch screen and the operation on the touch screen is detected, shielding the capacitance value signal of the abnormal channel so as to calculate the click coordinate aiming at the operation through the channel which does not generate the abnormality in the touch screen.
Preferably, the processor 560 is further configured to:
and when the abnormal channel exists in the touch screen, starting an automatic touch screen detection program to detect the touch screen.
The mobile terminal 560 can implement the processes implemented by the mobile terminal in the foregoing embodiments, and therefore, for avoiding repetition, the detailed description is omitted here.
According to the embodiment of the invention, click data such as click times and click coordinates can be counted, whether the touch screen is detected or not is determined according to the click times, whether an abnormal channel exists in the touch screen or not is detected according to the click coordinates, the accuracy of the detection of the touch screen can be improved, and the user experience is improved.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention 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 functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A touch screen detection method is applied to a mobile terminal and is characterized by comprising the following steps:
counting click data of a user on the touch screen, wherein the click data comprises click times and a plurality of click coordinates;
judging whether the click times are greater than a first preset time or not;
when the number of clicks is larger than the first preset number, detecting whether an abnormal channel exists in the touch screen or not according to the click coordinates;
the multiple click coordinates comprise at least one coordinate group, the multiple click coordinates in the same coordinate group are triggered at the same time, and the abscissa or ordinate of different click coordinates in the same coordinate group is the same;
the detecting whether an abnormal channel exists in the touch screen according to the plurality of click coordinates comprises:
determining the number of target coordinate groups for any non-intersected channels, wherein the target coordinate groups comprise click coordinates respectively corresponding to the channels;
judging whether the determined number is greater than a third preset number;
and when the determined number is greater than the third preset number, determining that a short-circuited abnormal channel exists in the touch screen.
2. The method for detecting the touch screen according to claim 1, wherein the detecting whether an abnormal channel exists in the touch screen according to the plurality of click coordinates comprises:
judging whether the number of click coordinates corresponding to each channel in the touch screen is less than a second preset number of times or not;
and when the channels with the number of the click coordinates smaller than the second preset times exist in the touch screen, determining that the channels are broken.
3. The method for detecting the touch screen according to claim 1, wherein after detecting whether an abnormal channel exists in the touch screen according to the plurality of click coordinates, the method further comprises:
when the abnormal channel exists in the touch screen and the operation on the touch screen is detected, shielding the capacitance value signal of the abnormal channel so as to calculate the click coordinate aiming at the operation through the channel which does not generate the abnormality in the touch screen.
4. The method for detecting the touch screen according to claim 1, wherein after detecting whether an abnormal channel exists in the touch screen according to the plurality of click coordinates, the method further comprises:
and when the abnormal channel exists in the touch screen, starting an automatic touch screen detection program to detect the touch screen.
5. The utility model provides a touch-sensitive screen detection device, is applied to mobile terminal, its characterized in that includes:
the counting module is used for counting click data of a user on the touch screen, and the click data comprises click times and a plurality of click coordinates;
the judging module is used for judging whether the click times are greater than a first preset time;
the detection module is used for detecting whether an abnormal channel exists in the touch screen or not according to the plurality of click coordinates when the click times are larger than the first preset times;
the multiple click coordinates comprise at least one coordinate group, the multiple click coordinates in the same coordinate group are triggered at the same time, and the abscissa or ordinate of different click coordinates in the same coordinate group is the same;
the detection module comprises:
the second determining submodule is used for determining the number of target coordinate groups for any non-intersected channels, and each target coordinate group comprises click coordinates corresponding to each channel;
the second judgment submodule is used for judging whether the determined number is greater than a third preset number of times;
and the third determining submodule is used for determining that the short-circuited abnormal channel exists in the touch screen when the determined number is greater than the third preset number.
6. The touch screen detection device of claim 5, wherein the detection module comprises:
the first judgment submodule is used for judging whether the number of the click coordinates corresponding to each channel in the touch screen is less than a second preset number of times;
and the first determining submodule is used for determining that the channel is broken when the channel with the number of the click coordinates smaller than the second preset times exists in the touch screen.
7. The touch screen detection device of claim 5, further comprising:
and the shielding module is used for shielding the capacitance value signal of the abnormal channel when the abnormal channel exists in the touch screen and the operation on the touch screen is detected, so as to calculate the click coordinate aiming at the operation through the channel which does not generate the abnormality in the touch screen.
8. The touch screen detection device of claim 5, further comprising:
and the starting module is used for starting an automatic touch screen detection program to detect the touch screen when the abnormal channel exists in the touch screen.
9. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the touch screen detection method according to any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the touch screen detection method according to any one of claims 1 to 4.
CN201710672332.8A 2017-08-08 2017-08-08 Touch screen detection method and device, mobile terminal and computer readable storage medium Active CN107506073B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710672332.8A CN107506073B (en) 2017-08-08 2017-08-08 Touch screen detection method and device, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710672332.8A CN107506073B (en) 2017-08-08 2017-08-08 Touch screen detection method and device, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107506073A CN107506073A (en) 2017-12-22
CN107506073B true CN107506073B (en) 2020-05-05

Family

ID=60690455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710672332.8A Active CN107506073B (en) 2017-08-08 2017-08-08 Touch screen detection method and device, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107506073B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019169585A1 (en) * 2018-03-07 2019-09-12 广东品胜电子股份有限公司 Detection method and apparatus for touch area of touch screen, and touch-screen device and computer storage medium
CN109409427A (en) * 2018-10-25 2019-03-01 珠海市君天电子科技有限公司 A kind of key detecting method and device
CN109739707B (en) * 2018-12-29 2023-08-11 Tcl移动通信科技(宁波)有限公司 Test processing method, mobile terminal and storage medium
CN109839558A (en) * 2019-01-24 2019-06-04 嘉兴行适安车联网信息科技有限公司 A kind of touch screen Auto-Test System and its test method
CN109918247B (en) * 2019-03-05 2022-08-09 广州视源电子科技股份有限公司 Method and device for detecting abnormal jumping points of touch screen and electronic equipment
CN110362225B (en) * 2019-06-18 2024-01-30 腾讯科技(成都)有限公司 Touch screen sampling frequency control method and device, medium and electronic equipment
CN112485031B (en) * 2020-11-13 2023-07-14 上海伟世通汽车电子系统有限公司 System and method for detecting functions of central control screen of automobile
CN112711495A (en) * 2020-12-28 2021-04-27 深圳创维汽车智能有限公司 Display screen fault diagnosis method and device and computer readable storage medium
CN112860104B (en) * 2021-01-27 2024-01-30 北京小米移动软件有限公司 Calibration method and device for touch screen coordinate deviation, mobile terminal and storage medium
CN113157504A (en) * 2021-03-26 2021-07-23 歌尔股份有限公司 Touch screen equipment testing method and touch screen equipment testing system
CN113360327B (en) * 2021-05-27 2022-11-04 维沃移动通信有限公司 Touch screen fault detection method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5491706A (en) * 1993-04-07 1996-02-13 Sharp Kabushiki Kaisha Display-integrated type tablet device capable of detecting correct coordinates at a tip end of a detection pen by detecting external noise
CN103744558A (en) * 2013-11-28 2014-04-23 苏州长风航空电子有限公司 Intelligent dead point recognition and self-adaptation compensation method for infrared touch screen
CN105630232A (en) * 2014-11-26 2016-06-01 阿尔卑斯电气株式会社 Input device, and control method and program therefor
CN106020548A (en) * 2016-05-27 2016-10-12 京东方科技集团股份有限公司 Touch detection device, touch display device and touch detection method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5491706A (en) * 1993-04-07 1996-02-13 Sharp Kabushiki Kaisha Display-integrated type tablet device capable of detecting correct coordinates at a tip end of a detection pen by detecting external noise
CN103744558A (en) * 2013-11-28 2014-04-23 苏州长风航空电子有限公司 Intelligent dead point recognition and self-adaptation compensation method for infrared touch screen
CN105630232A (en) * 2014-11-26 2016-06-01 阿尔卑斯电气株式会社 Input device, and control method and program therefor
CN106020548A (en) * 2016-05-27 2016-10-12 京东方科技集团股份有限公司 Touch detection device, touch display device and touch detection method

Also Published As

Publication number Publication date
CN107506073A (en) 2017-12-22

Similar Documents

Publication Publication Date Title
CN107506073B (en) Touch screen detection method and device, mobile terminal and computer readable storage medium
CN105824559B (en) False touch recognition and processing method and electronic equipment
EP2821897B1 (en) Finger detection on touch screens for mobile devices
US9965158B2 (en) Touch screen hover input handling
US20150268789A1 (en) Method for preventing accidentally triggering edge swipe gesture and gesture triggering
CN106250257B (en) Static recovery method and mobile terminal
US8925072B2 (en) Unlocking schemes
CN107562473B (en) Application program display method and mobile terminal
CN107203313B (en) Method for adjusting desktop display object, mobile terminal and computer readable storage medium
CN107102809B (en) Fingerprint identification method and mobile terminal
CN108027692B (en) Method for improving fault tolerance of touch screen and touch screen terminal
EP3605305B1 (en) Character input method of mobile terminal and mobile terminal
CN107172287B (en) Multi-card communication method and mobile terminal
CN105243345A (en) Accidental touch preventing method for electronic equipment and electronic equipment
CN106408289B (en) Payment page switching method and mobile terminal
CN104049786A (en) Electronic device, system and correcting method capable of automatically correcting touch position
CN106873891B (en) Touch operation method and mobile terminal
CN104881174A (en) Method and device for dynamically adjusting sensitivity of touch screen
CN106599246B (en) Display content interception method, mobile terminal and control server
CN107632761B (en) Display content viewing method, mobile terminal and computer readable storage medium
CN107368249B (en) Touch operation identification method and device and mobile terminal
US20120068958A1 (en) Portable electronic device and control method thereof
US20110316887A1 (en) Electronic device with a touch screen and touch operation control method utilized thereby
US20120127120A1 (en) Touch device and touch position locating method thereof
CN107273238B (en) Control method for operation of radio frequency device and mobile terminal

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