CN105739767B - Automatic recovery method for touch screen function failure - Google Patents
Automatic recovery method for touch screen function failure Download PDFInfo
- Publication number
- CN105739767B CN105739767B CN201610061413.XA CN201610061413A CN105739767B CN 105739767 B CN105739767 B CN 105739767B CN 201610061413 A CN201610061413 A CN 201610061413A CN 105739767 B CN105739767 B CN 105739767B
- Authority
- CN
- China
- Prior art keywords
- interrupt
- work queue
- touch screen
- pin
- chip
- 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; CALCULATING OR 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/044—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/045—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using resistive elements, e.g. a single continuous surface or two parallel surfaces put in contact
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)
- Position Input By Displaying (AREA)
Abstract
The invention relates to the technical field of touch screens, in particular to an automatic recovery method when a touch screen fails. Step 1, configuring an interruption pin of the touch screen chip into falling edge interruption, wherein the interruption pin is in a high level in an idle state, and step 2: establishing a delayed work queue, wherein the work queue is used for detecting whether the interrupt pin is at a low level or not, and the step 3: if the interrupt pin detects an interrupt signal, closing the work queue, responding to an interrupt processing request, restarting the delay work queue after the completion, returning to execute the step 2, and if the interrupt signal is not detected within the time T, executing the step 4, and executing the step 4: and executing the content of the work queue after the delayed opening time of the work queue is over, delaying to open the work queue again if the interrupt pin is still at a high level, returning to the step 2, and after the time T2, restarting the power-on initialization and the I2C configuration of the touch chip and returning to the step 2 if the interrupt pin is at a low level. The invention can realize automatic recovery.
Description
Technical Field
The invention relates to the technical field of touch screens, in particular to an automatic recovery method when a touch screen fails.
Background
With the continuous development of electronic technology, touch screen technology is also changing day by day, and one of the biggest technical bottlenecks of touch screen technology is the failure of touch screen due to external factors or human factors, such as: the processor responds to the touch event of the touch screen, and is usually completed by calling a corresponding interrupt processing program according to a falling edge interrupt signal sent by an interrupt pin in the touch screen processing chip. However, due to the uneven quality of the touch screen processing chips, some low-cost touch screen processing chips often work abnormally in practical use to cause the failure of the touch screen. The failure of the touch screen inevitably brings inconvenience to users, so that the user experience effect is low, and even other problems can be caused by the failure at a critical moment.
Some existing means for overcoming the technical problems are to apply the theory of a high-speed circuit, so that the resistor can prevent static electricity, but the resistor is only suitable for a resistor screen; the method is characterized in that the method can be used for detecting a threshold value by using a relevant sensor, or can be used for carrying out timing reset operation on a voltage module for controlling the mobile terminal, but is only suitable for a capacitive screen. The above inventions have additional devices or peripheral circuits.
Disclosure of Invention
The invention solves the technical problems and provides an automatic recovery method when the function of the touch screen fails, which is suitable for a capacitive screen and a resistive screen, does not need to additionally add devices and peripheral circuits, and has low cost and good portability.
In order to achieve the purpose, the invention adopts the technical scheme that the method for automatically recovering the touch screen when the function of the touch screen fails comprises the following steps:
step 1, configuring an interruption pin of a touch screen chip into falling edge interruption, wherein the interruption pin is in a high level in an idle state,
step 2: establishing a delayed work queue, which is used to detect whether the interrupt pin is low level,
and step 3: if the interrupt pin detects an interrupt signal, closing the work queue, responding to the interrupt processing request, restarting the delay work queue after the interrupt processing request is executed, returning to execute the step 2, if the interrupt pin does not detect the interrupt signal within the time T, executing the step 4,
and 4, step 4: if no interrupt is generated, the content of the work queue is executed after the delay opening time of the work queue is over, if the interrupt pin is still at a high level, the work queue is opened in a delay mode, the step 2 is returned to be executed, if the interrupt pin is at a low level, after the low level state lasting time T2, the touch chip is electrified and initialized again, the I2C configuration is carried out, after the completion, the delay work queue is opened again, and the step 2 is returned to be executed.
Further, before the step 1, the method further includes a step 10: an initialization step: and finishing the power-on initialization and the configuration initialization of the touch screen chip.
Further, in step 3, the time T ranges from 3 seconds to 8 seconds.
Further, in step 4, the time T2 is 3 to 8 seconds.
By adopting the technical scheme, compared with the prior art, the invention has the following advantages: the invention adds a delayed work queue on the basis of the original touch screen drive, when detecting that the interrupt pin of the touch screen is low level, the work queue is started, if an interrupt signal triggers an interrupt processing program of the touch screen during the delay period of the work queue, the delayed work queue is closed, and the delayed work queue is restarted after the execution of the interrupt processing program of the touch screen is finished; if the delayed work queue is executed and the interrupt pin is still at the low level during the execution, it indicates that the pin is always at the low level and the touch screen processing chip is abnormal, and at this time, operations of reinitializing the touch chip and resetting the i2c bus are performed. Therefore, the normal work of the touch screen chip is recovered, and the problem of touch failure is solved.
Drawings
FIG. 1 is a flow chart of an embodiment of the present invention.
Detailed Description
The invention will now be further described with reference to the accompanying drawings and detailed description.
As a specific embodiment, as shown in fig. 1, a method for automatically recovering when a touch screen fails includes the following steps:
step 10: an initialization step: and finishing the power-on initialization and the configuration initialization of the touch screen chip.
Step 1, configuring an interruption pin of a touch screen chip into falling edge interruption, wherein the interruption pin is in a high level in an idle state,
step 2: establishing a delayed work queue, which is used to detect whether the interrupt pin is low level,
and step 3: if the interrupt pin detects an interrupt signal, closing the work queue, responding to the interrupt processing request, restarting the delay work queue after the interrupt processing request is executed, returning to execute the step 2, and if the interrupt pin does not detect the interrupt signal within the time T, executing the step 4. If the interrupt pin has a falling edge, the interrupt generation (the linux platform has a supply function) is detected on software, otherwise, the software is determined as no interrupt generation. The different platforms are set with differences to the range of time T, which is approximately 3-8 seconds.
And 4, step 4: if no interrupt is generated, the content of the work queue is executed after the delay opening time of the work queue is over, if the interrupt pin is still at a high level, the interrupt pin keeps at the high level all the time in a state that no external trigger touch screen exists, otherwise, the interrupt pin is at a low level, the work queue is opened in a delay mode, the step 2 is executed, if the interrupt pin is at the low level, after the duration time T2 of the low level state, the time T2 is 3-8 seconds, the touch chip is electrified and initialized again, the I2C configuration is carried out, after the completion, the delay work queue is opened again, and the step 2 is executed again.
Further, before the step 1, the method further comprises a step 10: an initialization step: and finishing the power-on initialization and the configuration initialization of the touch screen chip.
The invention provides a method for detecting and timely recovering a touch screen processing chip according to the characteristics of the touch screen processing chip so as to improve the stability of the touch screen in practical application. The method reuses an interrupt pin of a touch screen processing chip, adds real-time detection on a conventional level on the premise of keeping the interrupt function of a touch event, and when the pin is detected to be always at a low level, resets the touch screen chip and an I2C bus through software control, and solves the problem of touch screen failure without human intervention.
The invention adds a delayed work queue on the basis of the original touch screen drive, when detecting that the interrupt pin of the touch screen is low level, the work queue is started, if an interrupt signal triggers an interrupt processing program of the touch screen during the delay period of the work queue, the delayed work queue is closed, and the delayed work queue is restarted after the execution of the interrupt processing program of the touch screen is finished; if the delayed work queue is executed and the interrupt pin is still at the low level during the execution, it indicates that the pin is always at the low level and the touch screen processing chip is abnormal, and at this time, operations of reinitializing the touch chip and resetting the i2c bus are performed. Therefore, the normal work of the touch screen chip is recovered, and the problem of touch failure is solved.
While the invention has been particularly shown and described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (4)
1. A method for automatically recovering when the function of a touch screen is invalid is characterized in that: the method comprises the following steps:
step 1, configuring an interruption pin of a touch screen chip into falling edge interruption, wherein the interruption pin is in a high level in an idle state,
step 2: establishing a delayed work queue, the work queue is used for detecting whether the interrupt pin is low level or not,
and step 3: if the interrupt pin detects an interrupt signal, closing the work queue, responding to the interrupt processing request, restarting the delay work queue after the interrupt processing request is executed, returning to execute the step 2, if the interrupt pin does not detect the interrupt signal within the time T, executing the step 4,
and 4, step 4: if no interrupt is generated, the content of the work queue is executed after the delay opening time of the work queue is over, if the interrupt pin is still at a high level, the work queue is opened in a delay mode, the step 2 is executed again, if the interrupt pin is at a low level, after the duration time T2 of the low level state, the touch chip is electrified and initialized again, the I2C is configured, the configuration comprises the steps of configuring the interrupt pin of the touch screen chip into a falling edge interrupt, restarting the delay work queue after the completion, and the step 2 is executed again.
2. The method for automatically recovering when the function of the touch screen fails according to claim 1, wherein the method comprises the following steps: the method also comprises a step 10 before the step 1: an initialization step: and finishing the power-on initialization and the configuration initialization of the touch screen chip.
3. The method for automatically recovering when the function of the touch screen fails according to claim 1, wherein the method comprises the following steps: in step 3, the time T is in the range of 3-8 seconds.
4. The method for automatically recovering when the function of the touch screen fails according to claim 1, wherein the method comprises the following steps: in the step 4, the time T2 is 3-8 seconds.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610061413.XA CN105739767B (en) | 2016-01-28 | 2016-01-28 | Automatic recovery method for touch screen function failure |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610061413.XA CN105739767B (en) | 2016-01-28 | 2016-01-28 | Automatic recovery method for touch screen function failure |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105739767A CN105739767A (en) | 2016-07-06 |
CN105739767B true CN105739767B (en) | 2021-05-18 |
Family
ID=56247950
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610061413.XA Active CN105739767B (en) | 2016-01-28 | 2016-01-28 | Automatic recovery method for touch screen function failure |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105739767B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108334328B (en) * | 2017-01-20 | 2021-10-22 | 北京小米移动软件有限公司 | Intelligent terminal and flashing method thereof |
CN107608521B (en) * | 2017-09-27 | 2020-07-14 | 惠州Tcl移动通信有限公司 | Touch screen failure processing method, storage medium and mobile terminal |
CN109002207A (en) * | 2018-07-04 | 2018-12-14 | 深圳市文鼎创数据科技有限公司 | A kind of touch chip calibration method, electronic equipment and storage medium |
CN109815041B (en) * | 2019-01-14 | 2022-04-22 | Oppo广东移动通信有限公司 | Display screen control method and related product |
CN113110758B (en) * | 2021-04-19 | 2023-01-20 | 惠州Tcl云创科技有限公司 | Method and system for processing touch failure of touch screen during startup and intelligent terminal |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003167545A (en) * | 2001-11-30 | 2003-06-13 | Sharp Corp | Method for detecting abnormality of image display signal, and image display device |
CN102479169A (en) * | 2010-11-24 | 2012-05-30 | 上海三旗通信科技股份有限公司 | SD (Secure Digital Memory) card hot plug function realized under MTK6223D platform |
CN103543344B (en) * | 2012-07-10 | 2016-07-20 | 上海斐讯数据通信技术有限公司 | A kind of method solving capacitance plate inefficacy and capacitance plate abnormity detecting circuit |
CN203561972U (en) * | 2013-11-01 | 2014-04-23 | 上海全一通讯技术有限公司 | Gesture sensing system of handheld electronic equipment |
CN104679347A (en) * | 2013-11-28 | 2015-06-03 | 上海斐讯数据通信技术有限公司 | Method for solving failure of touch screen of mobile terminal and mobile terminal |
-
2016
- 2016-01-28 CN CN201610061413.XA patent/CN105739767B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN105739767A (en) | 2016-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105739767B (en) | Automatic recovery method for touch screen function failure | |
KR101782246B1 (en) | Methods and apparatus for controlled recovery of error information between independently operable processors | |
CN101354677B (en) | Method for detecting and restoring application program running state and restoring device thereof | |
US8874886B2 (en) | Executing soft reset for intelligent terminal in abnormal instruction state and hard reset for intelligent terminal in dead halt state | |
US9152205B2 (en) | Mechanism for facilitating faster suspend/resume operations in computing systems | |
KR20170134745A (en) | A terminal control method and apparatus, and a terminal | |
US20200310933A1 (en) | Device fault processing method, apparatus, and system | |
US20110225410A1 (en) | Electronic device and booting up method | |
WO2017107330A1 (en) | Temperature control method and mobile terminal | |
US20180203568A1 (en) | Method for Enabling Function Module of Terminal, and Terminal Device | |
US8578182B2 (en) | Power lock-up setting method performed by baseboard management controller and electronic apparatus using the same | |
CN104679347A (en) | Method for solving failure of touch screen of mobile terminal and mobile terminal | |
CN103543344B (en) | A kind of method solving capacitance plate inefficacy and capacitance plate abnormity detecting circuit | |
CN104461762A (en) | Automatic restart method for a halted device | |
WO2016184058A1 (en) | Terminal exception recovery method and terminal | |
CN109582506B (en) | Touch screen failure recovery method and device, host equipment and touch system | |
US11054947B2 (en) | Key reference updating method and module, and terminal device | |
CN106249832B (en) | Touch control all-in-one machine and power supply control method thereof | |
WO2018123230A1 (en) | Electronic device, tablet terminal, input control method, and program | |
WO2013075461A1 (en) | Touch screen signal processing method and device | |
US10866676B2 (en) | Touch sensitive electronic device, touch sensitive processing apparatus and method thereof | |
WO2023092919A1 (en) | Bmc time management method, system, and apparatus, and computer medium | |
KR20110051957A (en) | Error detection and recovery method of embedded system | |
US10666789B2 (en) | Control method and device for sensors of mobile terminal, storage medium and mobile terminal | |
CN109451355A (en) | A kind of method of the fast quick-recovery of intelligent television system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |