[go: up one dir, main page]

CN117492584A - Touch screen exception handling method, system and storage medium - Google Patents

Touch screen exception handling method, system and storage medium Download PDF

Info

Publication number
CN117492584A
CN117492584A CN202311412687.5A CN202311412687A CN117492584A CN 117492584 A CN117492584 A CN 117492584A CN 202311412687 A CN202311412687 A CN 202311412687A CN 117492584 A CN117492584 A CN 117492584A
Authority
CN
China
Prior art keywords
touch screen
control chip
screen control
abnormal
firmware
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.)
Pending
Application number
CN202311412687.5A
Other languages
Chinese (zh)
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.)
Guangdong Telepower Communication Co ltd
Original Assignee
Guangdong Telepower 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 Guangdong Telepower Communication Co ltd filed Critical Guangdong Telepower Communication Co ltd
Priority to CN202311412687.5A priority Critical patent/CN117492584A/en
Publication of CN117492584A publication Critical patent/CN117492584A/en
Pending legal-status Critical Current

Links

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
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/24Resetting means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1441Resetting or repowering
    • 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/0412Digitisers structurally integrated in a display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Position Input By Displaying (AREA)

Abstract

The invention discloses a touch screen exception handling method, a touch screen exception handling system and a storage medium, wherein the touch screen exception handling method comprises the following steps: loading a touch screen drive and initializing a timer; starting the timer; when the timer reaches a preset timing time length, detecting an interrupt register of a touch screen control chip and judging whether an abnormality occurs or not; if the interrupt register is abnormal, soft reset is carried out on the touch screen control chip, and then the touch screen control chip is restarted; detecting firmware of the touch screen control chip and judging whether abnormality occurs or not; if the firmware is abnormal, hard reset and soft reset are carried out on the touch screen control chip, and after the complete firmware is downloaded to the touch screen control chip, the touch screen control chip is restarted; returning to the step of starting the timer. The invention provides a specific abnormality recovery mode aiming at a specific abnormality type, and the touch screen is not required to be restarted, so that the experience of a user can be improved.

Description

Touch screen exception handling method, system and storage medium
Technical Field
The invention relates to the technical field of touch screens, in particular to a touch screen exception handling method, a touch screen exception handling system and a storage medium.
Background
The existing touch screen is easy to work abnormally due to different environmental interferences (such as electromagnetic interference, power grid interference and the like), normal work can be recovered by restarting the touch screen usually, but the touch screen after restarting is likely to appear abnormal again after a period of work, and poor experience can be brought to a user if the problem of touch screen abnormality is solved by continuously restarting the touch screen.
Disclosure of Invention
The invention provides a touch screen exception handling method, a touch screen exception handling system and a storage medium, which are used for solving one or more technical problems in the prior art and at least providing a beneficial selection or creation condition.
In a first aspect, a method for processing an abnormality of a touch screen is provided, the method including:
loading a touch screen drive and initializing a timer;
starting the timer and judging whether the timer reaches a preset time length or not;
if the timer reaches the preset timing time length, detecting an interrupt register of the touch screen control chip and judging whether abnormality occurs or not;
if the interrupt register is abnormal, soft reset is carried out on the touch screen control chip, and then the touch screen control chip is restarted;
detecting firmware of the touch screen control chip and judging whether abnormality occurs or not;
if the firmware is abnormal, hard reset and soft reset are carried out on the touch screen control chip, and after the complete firmware is downloaded to the touch screen control chip, the touch screen control chip is restarted;
and returning to start the timer and judging whether the timer reaches the preset timing duration.
Further, after detecting the interrupt register of the touch screen control chip and judging whether an abnormality occurs, the method further comprises:
and if the interrupt register is not abnormal, executing the steps of detecting the firmware of the touch screen control chip and judging whether the abnormality occurs.
Further, the soft reset of the touch screen control chip includes:
resetting a state switching register in the touch screen control chip;
configuring a green mode register in the touch screen control chip and giving an initial value to the green mode register;
and resetting a state register in the touch screen control chip.
Further, the restarting the touch screen control chip includes:
and initializing a state switching register in the touch screen control chip.
Further, the hard reset of the touch screen control chip includes:
setting a reset pin of the touch screen control chip to be low level, and then controlling the touch screen control chip to keep a sleep mode in a preset time period;
and setting the reset pin to be high level, and controlling the touch screen control chip to keep a sleep mode in the preset time period.
Further, the detecting the interrupt register of the touch screen control chip and judging whether an abnormality occurs includes:
reading the value of the interrupt register and judging whether the value is equal to a preset abnormal value or not; if yes, judging that the interrupt register is abnormal; if not, judging that the interrupt register is not abnormal.
Further, the detecting the firmware of the touch screen control chip and judging whether the abnormality occurs includes:
reading the value of a state check register in the touch screen control chip and judging whether the value is equal to a preset normal value or not; if yes, judging that the firmware is not abnormal; if not, judging that the firmware is abnormal.
Further, before returning to start the timer and judging whether the timer reaches the preset timing duration, the method further comprises:
and counting abnormal information and corresponding abnormal recovery information of the touch screen control chip, and uploading the abnormal information and the corresponding abnormal recovery information to a background server for analysis and processing.
In a second aspect, a touch screen exception handling system is provided, the system comprising:
a touch screen control chip;
the main control chip comprises at least one processor and at least one memory, wherein the at least one memory is used for storing at least one program, and when the at least one program is executed by the at least one processor, the at least one processor is enabled to realize the touch screen exception handling method according to the first aspect.
In a third aspect, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the touch screen abnormality processing method according to the first aspect.
The invention has at least the following beneficial effects: in the use process of the touch screen, whether the interrupt register and the firmware of the touch screen control chip are abnormal or not is automatically detected at regular time, and a specific abnormal recovery mode is executed aiming at a specific abnormal type, namely, when the interrupt register is abnormal, the touch screen control chip is restarted after soft reset operation is executed, when the firmware is abnormal, the touch screen control chip is restarted after operations of hard reset, soft reset and complete firmware downloading are sequentially executed, the touch screen can be recovered to normal work without restarting, and the experience of a user is improved.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate and do not limit the invention.
FIG. 1 is a flow chart of a touch screen exception handling method in an embodiment of the invention;
FIG. 2 is a schematic diagram of a touch screen exception handling system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
It should be noted that although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different from that in the flowchart. The terms first, second and the like in the description and in the claims and in the above-described figures, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order, and it should be understood that the data so used may be interchanged, if appropriate, such that the embodiments of the present application described herein may be implemented in other than those illustrated or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the present application.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present application. One skilled in the relevant art will recognize, however, that the aspects of the application can be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the application.
The flow diagrams depicted in the figures are exemplary only, and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
First, partial nouns referred to in the present application are explained as follows:
soft reset is a reset mechanism implemented by software, and when the system needs to be reset, the soft reset can be implemented by running specific reset codes or sending reset instructions, so that the system program can be executed from a designated position. Because no extra hardware circuit is needed, the soft reset can avoid the waste of hardware resources and provide more flexible reset control.
Hard reset is a reset mechanism implemented by hardware, when the system needs to be reset, the whole hardware system is forcedly reset to return to an initial state, and usually, additional hardware circuits (such as a reset gate, a reset pin and the like) are needed to implement the hard reset, and when the reset circuit is triggered, a reset signal is generated and transmitted to the whole system to reset the states of all hardware devices to the initial state. Hard reset, while requiring additional hardware circuitry, has greater reliability and stability.
Firmware (Firmware), which is a program written in EPROM (erasable programmable read only memory) or EEPROM (electrically erasable programmable read only memory), refers to a device "driver" stored inside the device; the operating system can drive and realize the operation of a specific machine according to standard equipment through firmware, for example, the inside of an optical drive, a CD-RW and the like is provided with the firmware, and the firmware is the software which plays the most basic and bottom-layer work in one system. In some hardware devices, no other software is provided, except for firmware, which determines the functions and performance of the hardware device, and the firmware is typically stored in the eeprom EEPROM (Electrically Erasable Programmable ROM) or FLASH chip of the hardware device, and can be updated by a user through a specific refresh program.
bootloader, which runs before the operating system kernel runs, can initialize the hardware device and build the memory space map, thereby bringing the software and hardware environment of the system to a proper state to prepare the correct environment for the final call to the operating system kernel. In an embedded operating system, generally, no firmware program like a BIOS exists, and the loading and starting task of the whole system is completely completed by a BootLoader; for example, in an ARM7TDMI core based embedded system, the system typically starts executing at address 0x00000000 at power-up or reset, and what is arranged at this address is the BootLoader program of the system.
The kernel is generally referred to as a real-time operating system (Real Time Operating System, abbreviated as RTOS), and refers to an operating system that can accept and process external events or data quickly enough, and the processing result can control the production process or make a quick response to the processing system within a specified time, schedule all available resources to complete real-time tasks, and control all real-time tasks to run in coordination and consistency.
Referring to fig. 1, fig. 1 is a flowchart of a touch screen exception handling method according to an embodiment of the present invention, where the method includes the following steps:
step S100, loading a touch screen drive and initializing a timer;
step 200, starting the timer, and judging whether the timer reaches a preset time length; if yes, go to step S300; if not, ending the whole operation;
step S300, detecting an interrupt register of a touch screen control chip and judging whether an abnormality occurs; if yes, go to step S400; if not, executing step S500;
step S400, carrying out soft reset on the touch screen control chip, and restarting the touch screen control chip to recover an abnormal interruption phenomenon in the touch screen control chip;
step S500, detecting firmware of the touch screen control chip and judging whether abnormality occurs; if yes, go to step S600; if not, returning to execute the step S200;
and S600, performing hard reset and soft reset on the touch screen control chip, downloading complete firmware to the touch screen control chip, restarting the touch screen control chip to recover abnormal firmware phenomenon in the touch screen control chip, and returning to execute the step S200.
The touch screen exception handling method is realized by a main control chip, and the main control chip and the touch screen control chip are in communication connection through an I2C bus (namely an integrated circuit bus); and at least an interrupt register, a state switching register, a state register and a state checking register are arranged in the touch screen control chip, wherein the state switching register is used for switching the operation state of the touch screen control chip, and the state checking register is used for checking the operation state of the touch screen control chip.
In the embodiment of the present invention, the specific implementation process of the step S100 includes, but is not limited to, the following:
step S110, when the main control chip is powered on and runs, bootloader is started and kernel is loaded;
step S120, starting a kernel and loading a touch screen driver;
step S130, starting the touch screen drive and calling an initialization function to initialize a timer, wherein the method comprises the steps of setting the timing time length of the timer and triggering and executing an abnormal self-checking recovery program after the timer reaches the timing time length, and the abnormal self-checking recovery program mainly executes the content from the step S300 to the step S600.
In the embodiment of the present invention, the specific implementation manner of the step S300 is as follows: reading the value of the interrupt register, and judging whether the value is equal to a preset abnormal value, wherein the preset abnormal value is determined according to the actual application condition of the interrupt register, and in some embodiments, the preset abnormal value can be set to be 0xff; if the interrupt register is equal to the interrupt register, judging that the interrupt register is abnormal, namely indicating that the interrupt abnormality occurs in the touch screen control chip; if not, judging that the interrupt register is not abnormal, namely indicating that the inside of the touch screen control chip is not abnormal.
In the embodiment of the present invention, the specific implementation process of the step S400 includes, but is not limited to, the following:
step S410, resetting the status switch register, which may be set to 0x88 in some embodiments;
step S420, configuring a green mode register (which may be understood as a low power consumption type register) in the touch screen control chip and giving an initial value thereto, and in some embodiments, setting the value of the green mode register just configured to 0x04;
step S430, resetting the status register, which may be set to 0x0 in some embodiments;
performing the step S410 to the step S430 in sequence to complete the soft reset operation of the touch screen control chip;
step S440, initializing the status switch register, and in some embodiments, setting the value of the status switch register to 0x0, so that the touch screen control chip may be restarted.
In the embodiment of the present invention, the specific implementation manner of the step S500 is as follows: reading the value of the status checking register, and judging whether the value is equal to a preset normal value, wherein the preset normal value is determined according to the actual application condition of the status checking register, and in some embodiments, the preset normal value can be set to be 0x5a5a5a5a; if the firmware of the touch screen control chip is equal to the firmware, judging that the firmware is not abnormal, namely indicating that the integrity of the firmware is not destroyed; if the firmware is not equal to the firmware, judging that the firmware of the touch screen control chip is abnormal, and indicating that the integrity of the firmware is damaged.
It should be noted that, the implementation purpose of the step S500 is as follows: the touch screen control chip is not provided with flash, firmware (namely program codes) is stored in a RAM (Random Access Memory ) to run, and under the interference of complex internal and external environments, such as the touch screen control chip is easily interfered by LCD (Liquid Crystal Display ), static electricity and the like, the firmware is possibly damaged due to the fact that the downloading process is incomplete and the firmware is damaged due to the fact that instantaneous high voltage is generated when the static electricity is released; to ensure that the touch screen control chip can perform its own functions properly, it is necessary to verify the integrity of the firmware.
In the embodiment of the present invention, the specific implementation process of the step S600 includes, but is not limited to, the following:
step S610, setting a reset pin RST of the touch screen control chip to be low level, and controlling the touch screen control chip to keep a sleep mode in a preset time period; wherein the preset time period is preferably set to 20ms;
step S620, converting the reset pin RST from low level to high level, and controlling the touch screen control chip to keep the sleep mode in the preset time period;
performing the step S610 to the step S620 in order to complete the hard reset operation of the touch screen control chip;
step S630, resetting the status switch register, which may be set to 0x88 in some embodiments;
step S640, configuring a green mode register (which may be understood as a low power consumption type register) in the touch screen control chip and giving an initial value thereto, and in some embodiments, setting the value of the green mode register just configured to 0x04;
step S650, resetting the status register, which may be set to 0x0 in some embodiments;
performing the step S630 to the step S650 in order to complete the soft reset operation of the touch screen control chip;
step S660, a DMA (Direct Memory Access ) transmission mode supported by the main control chip is utilized to download complete firmware to the touch screen control chip for operation in a shorter time so as to directly replace the original incomplete firmware;
step S670, initializing the status switch register, and in some embodiments, setting the value of the status switch register to 0x0, so that the touch screen control chip may be restarted.
In the embodiment of the present invention, when an abnormality occurs in the interrupt register and/or firmware of the touch screen control chip, the touch screen abnormality processing method further includes a data statistics and uploading step, which can be specifically divided into the following three cases:
in the first case, when only the interrupt register of the touch screen control chip is abnormal, the data statistics and uploading steps specifically include the following steps:
firstly, after executing the step S300 and judging that the interrupt register is abnormal, the main control chip analyzes the operation state of the Touch screen control chip to generate first abnormal information, wherein the first abnormal information includes a first abnormal device SN (Serial Number) and associated abnormal time and abnormal times, and the first abnormal device includes but is not limited to TP (Touch panel) with Touch dysfunction or hardware abnormality, a damaged interrupt register and the like;
secondly, after the step S400 is executed to respond to the first abnormal information, the main control chip analyzes the interrupt abnormal recovery condition of the touch screen control chip to generate first abnormal recovery information, wherein the first abnormal recovery information comprises an interrupt abnormal recovery result and interrupt abnormal recovery times;
and finally, after executing the step S500 and judging that the firmware is not abnormal, uploading the first abnormal information and the first abnormal recovery information to a background server by the main control chip for analysis and processing, and then starting a new round of abnormal self-checking recovery operation.
In a second case, when only the firmware of the touch screen control chip is abnormal, the data statistics and uploading steps specifically include the following steps:
firstly, after executing the step S300 and judging that no abnormality occurs in the interrupt register and executing the step S500 and judging that an abnormality occurs in the firmware, the main control chip analyzes the firmware state of the touch screen control chip to generate second abnormality information, where the second abnormality information includes a second abnormality device SN (Serial Number) and associated abnormality occurrence time and abnormality occurrence times, and the second abnormality device includes, but is not limited to, a device that causes firmware damage or firmware loss;
and secondly, after the step S600 is executed to respond to the second abnormal information, the main control chip analyzes the firmware abnormal recovery condition of the touch screen control chip to generate second abnormal recovery information, wherein the second abnormal recovery information comprises a firmware abnormal recovery result and firmware abnormal recovery times, and the main control chip uploads the second abnormal information and the second abnormal recovery information to a background server for analysis and processing, and then starts a new round of abnormal self-checking recovery operation.
In a third case, when the interrupt register and the firmware of the touch screen control chip are abnormal, the data statistics and uploading steps specifically include the following steps:
firstly, after executing the step S300 and judging that the interrupt register is abnormal, the main control chip analyzes the operation state of the Touch screen control chip to generate first abnormal information, wherein the first abnormal information includes a first abnormal device SN (Serial Number) and associated abnormal time and abnormal times, and the first abnormal device includes but is not limited to TP (Touch panel) with Touch dysfunction or hardware abnormality, a damaged interrupt register and the like;
secondly, after the step S400 is executed to respond to the first abnormal information, the main control chip analyzes the interrupt abnormal recovery condition of the touch screen control chip to generate first abnormal recovery information, wherein the first abnormal recovery information comprises an interrupt abnormal recovery result and interrupt abnormal recovery times;
then after executing the step S500 and judging that the firmware is abnormal, the main control chip analyzes the firmware state of the touch screen control chip to generate second abnormal information, where the second abnormal information includes a second abnormal device SN (Serial Number) and associated abnormal time and abnormal times, and the second abnormal device includes, but is not limited to, a device that causes firmware damage or firmware loss;
then after executing the step S600 to respond to the second abnormality information, the main control chip analyzes the firmware abnormality recovery condition of the touch screen control chip to generate second abnormality recovery information, where the second abnormality recovery information includes a firmware abnormality recovery result and a firmware abnormality recovery number;
and finally, uploading the first abnormal information, the first abnormal recovery information, the second abnormal information and the second abnormal recovery information to a background server by the main control chip for analysis and processing, and then starting a new round of abnormal self-checking recovery operation.
In the embodiment of the invention, when the touch screen is in a use state, whether the interrupt register and the firmware of the touch screen control chip are abnormal or not is automatically detected by timing, and a specific abnormal recovery mode is executed aiming at a specific abnormal type, namely, the touch screen control chip is restarted after soft reset operation is executed when the interrupt register is abnormal, and the touch screen control chip is restarted after operations of hard reset, soft reset and complete firmware downloading are sequentially executed when the firmware is abnormal, so that the normal work of the touch screen can be recovered without restarting the touch screen, and the experience of a user is improved.
Referring to fig. 2, fig. 2 is a schematic diagram illustrating a touch screen exception handling system according to an embodiment of the present invention, where the system includes a touch screen control chip and a main control chip, and the touch screen control chip and the main control chip are connected by an I2C bus (i.e., an integrated circuit bus) in a communication manner.
The main control chip comprises at least one processor and at least one memory, wherein the at least one memory is used for storing at least one program, and when the at least one program is executed by the at least one processor, the at least one processor is enabled to realize the touch screen exception handling method.
The content in the above method embodiment is applicable to the system embodiment, and functions implemented by the system embodiment are the same as those of the method embodiment, and beneficial effects achieved by the system embodiment are the same as those of the method embodiment, and are not repeated herein.
In addition, an embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, where the computer program is executed by a processor to implement a touch screen exception handling method in the foregoing embodiment. The computer readable storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random Access Memory, random access memories), EPROMs (Erasable Programmable Read-Only memories), EEPROMs (Electrically Erasable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage device includes any medium that stores or transmits information in a readable form by a device (e.g., a computer, a cell phone, etc.), which can be a read-only memory, a magnetic or optical disk, etc.
The terms "comprises" and "comprising," along with any variations thereof, in the description of the present application and in the above-described figures, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
In this application, it should be understood that "at least one" means one or more, and "a plurality" means two or more. "and/or" for describing the association relationship of the association object, the representation may have three relationships, for example, "a and/or B" may represent: only a, only B and both a and B are present, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b or c may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
Although the description of the present application has been described in considerable detail and with particularity with respect to several illustrated embodiments, it is not intended to be limited to any such detail or embodiments or any particular embodiment, but is to be construed as providing broad interpretation of such claims by reference to the appended claims, taking into account the prior art to which such claims are entitled to effectively encompass the intended scope of this application. Furthermore, the foregoing description of the embodiments contemplated by the inventors has been presented for the purpose of providing a useful description, and yet insubstantial changes to the invention that are not presently contemplated may represent equivalents of the invention.

Claims (10)

1. A touch screen exception handling method, the method comprising:
loading a touch screen drive and initializing a timer;
starting the timer and judging whether the timer reaches a preset time length or not;
if the timer reaches the preset timing time length, detecting an interrupt register of the touch screen control chip and judging whether abnormality occurs or not;
if the interrupt register is abnormal, soft reset is carried out on the touch screen control chip, and then the touch screen control chip is restarted;
detecting firmware of the touch screen control chip and judging whether abnormality occurs or not;
if the firmware is abnormal, hard reset and soft reset are carried out on the touch screen control chip, and after the complete firmware is downloaded to the touch screen control chip, the touch screen control chip is restarted;
and returning to start the timer and judging whether the timer reaches the preset timing duration.
2. The touch screen abnormality processing method according to claim 1, further comprising, after detecting an interrupt register of a touch screen control chip and judging whether an abnormality occurs:
and if the interrupt register is not abnormal, executing the steps of detecting the firmware of the touch screen control chip and judging whether the abnormality occurs.
3. The method for processing an anomaly in a touch screen according to claim 1, wherein the soft reset of the touch screen control chip comprises:
resetting a state switching register in the touch screen control chip;
configuring a green mode register in the touch screen control chip and giving an initial value to the green mode register;
and resetting a state register in the touch screen control chip.
4. The touch screen exception handling method of claim 1, wherein restarting the touch screen control chip comprises:
and initializing a state switching register in the touch screen control chip.
5. The method for processing an anomaly in a touch screen according to claim 1, wherein the hard resetting the touch screen control chip comprises:
setting a reset pin of the touch screen control chip to be low level, and then controlling the touch screen control chip to keep a sleep mode in a preset time period;
and setting the reset pin to be high level, and controlling the touch screen control chip to keep a sleep mode in the preset time period.
6. The method for processing an anomaly of a touch screen according to claim 1, wherein detecting an interrupt register of a touch screen control chip and judging whether an anomaly occurs comprises:
reading the value of the interrupt register and judging whether the value is equal to a preset abnormal value or not; if yes, judging that the interrupt register is abnormal; if not, judging that the interrupt register is not abnormal.
7. The method for processing an anomaly of a touch screen according to claim 1, wherein detecting the firmware of the touch screen control chip and judging whether the anomaly occurs comprises:
reading the value of a state check register in the touch screen control chip and judging whether the value is equal to a preset normal value or not; if yes, judging that the firmware is not abnormal; if not, judging that the firmware is abnormal.
8. The touch screen exception handling method according to claim 1, further comprising, before returning to the step of starting the timer and determining whether the timer reaches a preset time duration:
and counting abnormal information and corresponding abnormal recovery information of the touch screen control chip, and uploading the abnormal information and the corresponding abnormal recovery information to a background server for analysis and processing.
9. A touch screen exception handling system, the system comprising:
a touch screen control chip;
a main control chip comprising at least one processor and at least one memory, the at least one memory to store at least one program, which when executed by the at least one processor, causes the at least one processor to implement the touch screen exception handling method of any one of claims 1 to 8.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the touch screen abnormality processing method according to any one of claims 1 to 8.
CN202311412687.5A 2023-10-27 2023-10-27 Touch screen exception handling method, system and storage medium Pending CN117492584A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311412687.5A CN117492584A (en) 2023-10-27 2023-10-27 Touch screen exception handling method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311412687.5A CN117492584A (en) 2023-10-27 2023-10-27 Touch screen exception handling method, system and storage medium

Publications (1)

Publication Number Publication Date
CN117492584A true CN117492584A (en) 2024-02-02

Family

ID=89677413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311412687.5A Pending CN117492584A (en) 2023-10-27 2023-10-27 Touch screen exception handling method, system and storage medium

Country Status (1)

Country Link
CN (1) CN117492584A (en)

Similar Documents

Publication Publication Date Title
KR100430468B1 (en) Initializing and restarting operating systems
EP0664029B1 (en) Computer failure recovery and alert system
US20040158702A1 (en) Redundancy architecture of computer system using a plurality of BIOS programs
KR100233188B1 (en) Computer systems and methods for obtaining status data without interrupting program execution
CN117032813B (en) Switching judging method and device for flash memory of dual basic input/output system
CN117573435A (en) Server restarting method and device, storage medium and electronic equipment
US6725368B1 (en) System for executing a post having primary and secondary subsets, wherein the secondary subset is executed subsequently to the primary subset in the background setting
CN117492584A (en) Touch screen exception handling method, system and storage medium
CN112395121A (en) Drive loading processing method and device, storage medium and computer equipment
CN118113319A (en) Equipment operation control method and device, storage medium and electronic device
KR101100894B1 (en) Error detection and recovery method for embedded devices
CN105068835A (en) Mobile terminal and debugging information display method thereof
CN114879995B (en) Firmware updating method and device
CN117931500A (en) Control method, control device, computer system, computer apparatus, and medium
CN112346786B (en) Debugging information recording method applied to startup stage and operation stage after startup
KR100588199B1 (en) How to recover program download failure in mobile device and mobile device
JP3426645B2 (en) Data processing system
CN117492799A (en) Software upgrading method and device, terminal equipment and storage medium
TW202338609A (en) Bmc rest pressure test method,system and computer-readable storage medium
JP2000020498A (en) Microcomputer and its restoring method
CN115599187A (en) System for realizing DSP (digital Signal processor) reset process based on FPGA (field programmable Gate array) and control method
CN113836035A (en) Battery management system testing method and device and electronic equipment
CN118575167A (en) Computer, control method, and control program
CN119473670A (en) Method of using general timer to simulate watchdog
JPH0962534A (en) Computer self-diagnosis method

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