Electrostatic recovery method, device, electronic equipment and storage medium
By conducting static electricity detection and reset status judgment on the touch screen of electronic equipment, the malfunction problem caused by electrostatic discharge is solved, the electrostatic recovery capability and equipment performance are improved, and CPU resource consumption is reduced.
Patent Information
- Application Number
- CN202110569935.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-25
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-05-25
AI Technical Summary
Touch screens of electronic devices may suffer from glitches, frozen screens, or black screens due to electrostatic discharge. In the existing technology, electrostatic reset is not timely or successful, affecting touch operations, and system software needs to monitor static electricity abnormalities in real time, consuming CPU resources.
By conducting static electricity detection on the touch screen, the reset status of the touch program is determined. If the reset is abnormal, the electrostatic reset operation is performed. The interrupt service is used to read the register value to determine the electrostatic reset status, thereby reducing the phenomenon of frozen or black screens and improving the static electricity recovery capability.
It improves the static electricity recovery capability of electronic equipment, reduces screen blur, frozen screen or black screen failures caused by static electricity, reduces CPU energy consumption, and avoids the need for real-time software monitoring.
Smart Images

Figure CN113342150B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of electronic equipment, and in particular to an electrostatic recovery method, device, electronic equipment and storage medium. Background Art
[0002] The touch screen of an electronic device may cause failure or malfunction of the electronic device due to electrostatic discharge (ESD), such as causing a flowery screen, frozen screen, or black screen of the electronic device. Therefore, in the related art, when an ESD phenomenon occurs in an electronic device, it is necessary to perform an ESD-related reset operation on the electronic device. However, sometimes, due to the untimely reset of the static electricity of the touch screen, it may cause failures such as a flowery screen or a black screen of the touch screen, and it may also affect the touch operation on the touch screen, causing the phenomenon of a frozen screen. Based on this, how to improve the electrostatic recovery of electronic devices and reduce failures such as flowery screens, frozen screens, or black screens of electronic devices due to ESD has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a static electricity recovery method, device, electronic device and storage medium, and the technical solution is as follows:
[0004] According to a first aspect of an embodiment of the present disclosure, there is provided a static electricity recovery method for an electronic device, comprising:
[0005] Perform electrostatic detection on the touch screen and obtain the detection result;
[0006] If the detection result indicates that the touch screen has static electricity abnormality, determining the reset state of the touch program, wherein, in the case that the touch screen has static electricity abnormality, the touch program is interrupted when the static electricity of the touch screen is reset, and the touch program is reset when the static electricity reset of the touch screen is completed;
[0007] If the reset state of the touch program is reset abnormality, an electrostatic reset operation is performed on the touch screen.
[0008] In some embodiments, if the detection result indicates that the touch screen has static abnormality, determining the reset state of the touch program includes:
[0009] If the detection result indicates that the touch screen has static electricity abnormality, determining the static electricity reset state of the touch screen;
[0010] If the electrostatic reset state of the touch screen is normal electrostatic reset, the reset state of the touch program is determined to be normal reset; and / or, if the electrostatic reset state of the touch screen is abnormal electrostatic reset, the reset state of the touch program is determined to be abnormal reset.
[0011] In some embodiments, if the detection result indicates that the touch screen has static electricity abnormality, determining the static electricity reset state of the touch screen includes:
[0012] If the detection result indicates that the touch screen has static abnormality, the register value of the touch screen is read through the first interrupt service of the touch screen; wherein the first interrupt service is used to reset the register value of the touch screen after the touch screen is interrupted and reset;
[0013] If the register value of the touch screen is not the first preset value, the electrostatic reset state of the touch screen is determined to be electrostatic reset abnormal; and / or, if the register value of the touch screen is not the first preset value, the electrostatic reset state of the touch screen is determined to be electrostatic reset normal.
[0014] In some embodiments, if the detection result indicates that the touch screen has static abnormality, determining the reset state of the touch program includes:
[0015] If the detection result indicates that the touch screen has abnormal static electricity, determining the running state of the touch program;
[0016] If the touch control program runs normally, the reset state of the touch control program is determined to be normal reset; and / or if the touch control program runs abnormally, the reset state of the touch control program is determined to be abnormal reset.
[0017] In some embodiments, if the detection result indicates that the touch screen has static abnormality, determining the running state of the touch program includes:
[0018] If the detection result indicates that the touch screen has static abnormality, loading the firmware of the touch program;
[0019] If the loading fails, it is determined that the running state of the touch control program is abnormal; and / or if the loading succeeds, it is determined that the running state of the touch control program is normal.
[0020] In some embodiments, the method further comprises:
[0021] If the reset state of the touch control program is normal, it is determined that the reset of the touch control program is completed.
[0022] According to a second method of an embodiment of the present disclosure, a static electricity recovery device is provided, which is applied to an electronic device, including:
[0023] A detection module is used to perform static detection on the touch screen and obtain the detection result;
[0024] A first determination module is configured to determine a reset state of a touch program if the detection result indicates that the touch screen has static electricity abnormality, wherein, when the touch screen has static electricity abnormality, the touch function program is interrupted when the static electricity reset of the touch screen is executed, and the touch program is reset when the static electricity reset of the touch screen is completed;
[0025] The execution module is used for executing an electrostatic reset operation on the touch screen if the reset state of the touch program is reset abnormality.
[0026] In some embodiments, the first determining module includes:
[0027] A first determination submodule, configured to determine an electrostatic reset state of the touch screen if the detection result indicates that the touch screen has electrostatic abnormality;
[0028] The second determination submodule is used to determine that the reset state of the touch program is normal if the electrostatic reset of the touch screen is normal; and / or determine that the reset state of the touch program is abnormal if the electrostatic reset of the touch screen is abnormal.
[0029] In some embodiments, the first determining submodule is further configured to:
[0030] If the detection result indicates that the touch screen has static abnormality, the register value of the touch screen is read through the first interrupt service of the touch screen; wherein the first interrupt service is used to reset the register value of the touch screen after the touch screen is interrupted and reset;
[0031] If the register value of the touch screen is not the first preset value, the electrostatic reset state of the touch screen is determined to be electrostatic reset abnormal; and / or, if the register value of the touch screen is the first preset value, the electrostatic reset state of the touch screen is determined to be electrostatic reset normal.
[0032] In some embodiments, the first determining module further includes:
[0033] a third determination submodule, configured to determine the running state of the touch control program if the detection result indicates that the touch screen has static electricity abnormality;
[0034] The fourth determining submodule is used to determine that the reset state of the touch control program is normal reset if the touch control program runs normally; and / or determine that the reset state of the touch control program is abnormal reset if the touch control program runs abnormally.
[0035] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0036] processor;
[0037] a memory for storing processor-executable instructions;
[0038] Wherein, the processor is configured to: implement any of the electrostatic recovery methods described above during execution.
[0039] In a fourth aspect of the embodiments of the present disclosure, a non-temporary computer-readable storage medium is provided. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the steps of implementing any of the electrostatic recovery methods described above.
[0040] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0041] In the disclosed embodiment, the touch screen is subjected to electrostatic detection to obtain the detection result; if the detection result indicates that the touch screen has electrostatic abnormality, the reset state of the touch program is determined, wherein, in the case of electrostatic abnormality on the touch screen, the touch program is interrupted when the electrostatic reset of the touch screen is triggered, and the touch program is reset when the electrostatic reset of the touch screen is completed; if the reset state of the touch program is reset abnormality, the electrostatic reset operation is performed on the touch screen. Based on this, when the touch screen has electrostatic abnormality, even if the ESD reset is not timely, it can be determined by determining the reset state of the touch program to determine whether to re-execute the electrostatic reset operation of the touch screen. If the reset state of the touch program is reset abnormality, the electrostatic reset operation of the touch screen is re-executed to achieve ESD reset. In this way, the phenomenon of the touch screen being distorted, black screen or frozen screen caused by the unsuccessful electrostatic reset of the touch screen or the unsuccessful reset of the touch program when the touch screen has electrostatic abnormality can be reduced, and the ESD reset rate of the electronic device can be improved. Therefore, the embodiments of the present disclosure can improve the electrostatic recovery capability of electronic devices and reduce faults such as screen distortion, frozen screen or black screen caused by ESD in electronic devices.
[0042] In addition, by determining the reset state of the touch program to determine whether to re-execute the electrostatic reset operation on the touch screen, there is no need for the system software to monitor the electrostatic abnormality of the touch screen in real time, reducing the CPU energy consumption resources of the electronic device and improving the performance of the electronic device.
[0043] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0045] Figure 1is a flow chart of an electrostatic recovery method according to an exemplary embodiment;
[0046] Figure 2 is another flow chart of a static electricity recovery method according to an exemplary embodiment;
[0047] Figure 3 is another flow chart of a static electricity recovery method according to an exemplary embodiment;
[0048] Figure 4 is a schematic flow chart of a static electricity recovery method according to a specific embodiment;
[0049] Figure 5 is a block diagram of an electrostatic recovery device according to an exemplary embodiment;
[0050] Figure 6 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0051] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0052] Static electricity is a static charge, usually generated by friction or induction between objects. When an object with static electricity contacts an object with zero potential or an object with a potential difference, charge transfer occurs, generating a strong current instantly, which is called electrostatic discharge (ESD).
[0053] For electronic devices, if the electronic device's anti-ESD ability is weak, the current generated by the static electricity released in the ESD may cause the electronic device to work abnormally, freeze, or even be damaged and cause other safety problems. Therefore, ESD and other surge current tests must be performed on electronic devices during network access testing before they are put on the market. When electronic devices accumulate too much static electricity, it is required to be able to detect ESD and reset the touch screen through software and hardware to discharge static electricity and protect the components of the electronic device from damage caused by static electricity. For example, the touch screen of an electronic device may cause screen distortion, frozen screen, or black screen due to untimely or unsuccessful ESD reset.
[0054] In the related art, for ESD recovery of a touch screen, it is usually necessary not only to perform an electrostatic reset on the touch screen, but also to reset the touch program on the touch screen to ensure the normal use of various functions of the touch screen.
[0055] The present disclosure aims to improve the electrostatic recovery capability of electronic devices and reduce the occurrence of screen distortion, frozen screen or black screen failures in electronic devices due to ESD of the touch screen.
[0056] The electronic device here can specifically be a mobile terminal, a desktop computer, a smart home device or a vehicle-mounted device, etc.; the mobile terminal can be a mobile phone, a tablet computer, a laptop computer; the smart home device can be a smart TV or a smart refrigerator, etc.; the vehicle-mounted device can be a vehicle-mounted audio system, etc. It can be understood that the method can be applied to any electronic device having a touch screen and the touch screen has a touch function.
[0057] Figure 1 is a flow chart of a static recovery method according to an exemplary embodiment. Figure 1 As shown, the method is applied to an electronic device and may include the following steps:
[0058] Step 11: Perform static electricity detection on the touch screen to obtain the detection result;
[0059] Step 12: If the detection result indicates that the touch screen has static electricity abnormality, determining the reset state of the touch program, wherein, when the touch screen has static electricity abnormality, the touch program is interrupted when the static electricity of the touch screen is reset, and the touch program is reset when the static electricity reset of the touch screen is completed;
[0060] Step 13: If the reset state of the touch program is reset abnormality, an electrostatic reset operation is performed on the touch screen.
[0061] Here, electrostatic detection can be implemented through hardware, software, or a combination of hardware and software.
[0062] In some embodiments, the electrostatic detection of the touch screen may include: determining whether the register value of the touch screen is within a preset touch screen register value range by reading the register value of the touch screen; if it is within the preset touch screen register value range, determining that the detection result is that the electrostatic of the touch screen is normal, and / or, if it is outside the preset touch screen register value range, determining that the detection result is that the electrostatic of the touch screen is abnormal.
[0063] Different register values of touch screens correspond to different ranges of electrostatic charge. It can be understood that when the electrostatic charge on the touch screen increases by a certain amount, the register value of the touch screen increases by a preset value. For example, when the electrostatic charge on the touch screen increases by 500, the register value of the touch screen increases by 1. Since the register value of the touch screen has a corresponding relationship with the electrostatic charge on the touch screen, it can be understood that the above-mentioned preset touch screen register value range also corresponds to an electrostatic charge range. For example, still taking the electrostatic charge on the touch screen increase by 500 and the register value of the touch screen increase by 1 as an example, when the register value range of the touch screen is less than or equal to 2, the corresponding electrostatic charge on the touch screen is less than or equal to 1000. In this way, within the above-mentioned preset touch screen register value range, the electrostatic charge of the corresponding touch screen is less than or equal to the preset charge; on the contrary, outside the above-mentioned preset touch screen register value range, the electrostatic charge of the corresponding touch screen is greater than the preset charge. In this way, when the register value of the touch screen read is outside the preset touch screen register value range, it indicates that the corresponding electrostatic charge is greater than the preset charge. It should be added that when the electrostatic charge on the touch screen reaches the preset charge, the touch screen will have ESD failures, such as black screen or flowery screen failures, and the touch screen needs to be electrostatically reset.
[0064] In some embodiments, in order to release the static electricity accumulated on the touch screen in time before the touch screen has an ESD fault, the preset charge amount can also be set to be smaller than the static charge amount corresponding to the ESD fault in the past. In this way, the occurrence of screen distortion, frozen screen or black screen on the touch screen can be effectively reduced.
[0065] In some other embodiments, the electrostatic detection of the touch screen may further include: when the system program detects that the touch screen is abnormal, determining that the touch screen has electrostatic abnormality. In this way, there is no need to set up additional registers for the touch screen, saving hardware costs. In the embodiments of the present disclosure, the method of detecting the amount of electrostatic charge is not limited.
[0066] It should be noted that when the static electricity of the touch screen is abnormal, it is easy to cause problems such as a flowery screen, a frozen screen or a black screen. In order to avoid these problems, the static electricity of the touch screen can be eliminated by performing an electrostatic reset on the touch screen. Exemplarily, the electrostatic reset of the touch screen may include: releasing the static electricity of the touch screen by grounding the panel of the touch screen. Specifically, when the touch screen needs to be electrostatically reset, the positive voltage of the power management chip of the touch screen can be set to 0, and the static electricity can be released through the ground terminal. Exemplarily, when the static electricity of the touch screen is abnormal, the power of the touch screen can be turned off, or the power can be turned off. After the power is turned off, the power of the touch screen can be turned on, that is, powered on, after the static electricity is released. After the power is turned on and the initialization is completed, the electrostatic reset of the touch screen is completed.
[0067] It is understandable that since the touch function of the touch screen is realized by the touch screen and the touch program in the electronic device in cooperation with the touch capacitor, when the touch screen needs to be electrostatically reset, the corresponding touch program needs to be interrupted when the electrostatic reset of the touch screen begins to execute, and restarted when the electrostatic reset of the touch screen is completed. In this way, the reset of the touch program depends on the reset state of the touch screen.
[0068] It should be noted that, if the reset state of the touch program is normal reset, the touch function of the touch screen returns to normal; on the contrary, if the reset state of the touch program is abnormal reset, the touch function of the touch screen is abnormal.
[0069] In some embodiments, when the static electricity abnormality occurs on the touch screen, triggering the touch program interruption when the static electricity of the touch screen is reset and triggering the touch program reset when the static electricity reset of the touch screen is completed may include:
[0070] In the event that the touch screen has the electrostatic anomaly, the touch program is notified to interrupt when the electrostatic reset of the touch screen occurs, thereby disabling the touch function, so as to avoid delayed or confused touch operation response caused by the user using the touch function when the touch screen has the electrostatic anomaly; and when the electrostatic reset of the touch screen is completed, the touch program is notified to reset, thereby restoring the touch function, so as to ensure the normal use of the touch function of the touch screen.
[0071] In order to make the detected reset state of the touch program more accurate, in some embodiments, if the detection result indicates that the touch screen has static electricity abnormality, determining the reset state of the touch program may also include:
[0072] If the detection result indicates that the touch screen has abnormal static electricity, the touch program is reset after a preset time period, where the preset time period includes: the time required for the touch screen to reset static electricity.
[0073] It can be understood that since the preset time is short, it is almost equal to the processing time for the CPU to instruct the touch program to suspend or interrupt when determining that the touch screen has static electricity abnormalities. Therefore, in some embodiments, there is no need to emphasize determining the reset state of the touch program after the preset time, which can improve the processing efficiency of static electricity recovery and reduce the occurrence of touch screen failure accidents.
[0074] In the related art, whether the electrostatic reset of the touch screen is performed is determined only by the detection result of the electrostatic detection of the touch screen. Therefore, if the detection result of the electrostatic detection is inaccurate, or the detection result of the electrostatic detection is not reported to the CPU of the electronic device in time, or the interrupt information sent by the CPU based on the detection result of the electrostatic detection fails, etc., it will affect the electrostatic reset of the touch screen, and thus, it will also affect the reset of the touch program.
[0075] It should be noted that the electrostatic reset of the touch screen can be achieved through hardware. For example, a separate thread is created for the electrostatic reset process of the touch screen. During the normal use of the electronic device, the thread is dormant and does not occupy CPU resources. Only when the touch screen accumulates enough electrostatic charge, that is, when the electrostatic charge accumulated by the touch screen causes the touch screen to have an ESD failure, the driver chip of the touch screen will send an interrupt signal to the CPU for interrupting the power supply of the touch screen, that is, triggering the electrostatic reset thread of the touch screen to start, and at the same time triggering the touch program to suspend or interrupt. After the touch screen completes the electrostatic reset, the thread is dormant. In these ways, although CPU resources can be saved. However, if there is a problem when the driver chip of the touch screen sends an interrupt signal to the CPU to interrupt the power supply of the touch screen, the touch screen will not be able to reset the contacts, causing the electrostatic charge of the touch screen to exceed the standard, and the touch screen will appear flowery, frozen or black.
[0076] In this way, the embodiment of the present disclosure determines the reset state of the touch program, and performs an electrostatic reset operation on the touch screen when the reset state of the touch program is a reset abnormality. That is, the embodiment of the present disclosure will feed back the reset state of the touch program, that is, the reset result, to the thread of the electrostatic reset of the touch screen. If the reset state of the touch program is a reset abnormality, the entire electrostatic reset process of the touch screen will be re-executed, so that the touch screen can enable the electrostatic reset of the touch program through the electrostatic reset of the touch screen, thereby achieving normal reset of the touch program. Of course, if it is due to the electrostatic reset abnormality of the touch screen at this time, the electrostatic reset of the touch screen can also be performed again to reduce the phenomenon of the touch screen being distorted, frozen or black screen caused by the electrostatic reset abnormality. In this way, even if there is a problem when the driver chip of the touch screen sends an interrupt signal to the CPU to interrupt the power supply of the touch screen, it can still be relieved by the feedback of the reset state of the subsequent touch program, reducing the phenomenon of the touch screen being distorted, frozen or black screen caused by the electrostatic reset abnormality.
[0077] In addition, the electrostatic reset of the touch screen can also be achieved by combining software and hardware. For example, during the normal use of the electronic device, the touch screen is electrostatically detected in each preset period, for example, once every 2 to 5 seconds, and the method of alternating detection of software and hardware can be used. Exemplary, the method of detecting by software can be: reading the register value on the driver chip of the touch screen through the software process to determine whether the electrostatic charge of the touch screen exceeds the preset charge amount. The method of detecting by hardware can be: enabling the touch screen interrupt, after waiting for a period of time in sleep mode, determining whether the interrupt wakes up the electrostatic reset thread of the touch screen, if it is not awakened by timeout, the electrostatic reset of the touch screen is not triggered, and if the thread is awakened before the timeout, the electrostatic reset of the touch screen is triggered. In this way, although this method can reduce the phenomenon of flower screen, frozen screen or black screen of the touch screen to a certain extent, it requires continuous monitoring by software, which is obviously not conducive to the resource energy consumption of the CPU, resulting in high energy consumption of the electronic device.
[0078] In this way, the embodiment of the present disclosure determines the reset state of the touch program, and performs an electrostatic reset operation on the touch screen when the reset state of the touch program is a reset exception. That is, the embodiment of the present disclosure will feed back the reset state of the touch program, that is, the reset result, to the thread of the electrostatic reset of the touch screen. If the reset state of the touch program is a reset exception, the entire electrostatic reset process of the touch screen will be re-executed, so that the touch screen can enable the electrostatic reset of the touch program through the electrostatic reset of the touch screen, thereby achieving normal reset of the touch program. Of course, if this is due to an abnormal electrostatic reset of the touch screen, the electrostatic reset of the touch screen can also be performed again to reduce the phenomenon of the touch screen being distorted, frozen or black due to the abnormal electrostatic reset of the touch screen. In this way, even if the software does not need to perform continuous detection, CPU resource energy consumption is saved, and the performance of the electronic device is improved.
[0079] Compared with the related art, the accuracy of electrostatic recovery achieved by hardware is not high, or the energy consumption of electrostatic recovery achieved by combining software and hardware is high. The embodiments of the present disclosure add a method of feeding back the reset state of the touch program, that is, the reset result, to the electrostatic reset thread of the touch screen, thereby reducing the phenomenon of touch screen flowery, frozen or black screen caused by inaccurate electrostatic recovery achieved by hardware, and improving the timeliness and accuracy of electrostatic reset of the touch screen; at the same time, it also does not need to perform real-time monitoring on the software, thereby reducing the energy consumption of electronic equipment.
[0080] In some other embodiments, see Figure 2 , Figure 2 is another flow chart of a static recovery method according to an exemplary embodiment. Figure 2 As shown, the step 12, i.e., if the detection result indicates that the touch screen has static abnormality, determining the reset state of the touch program, may include:
[0081] Step 121: if the detection result indicates that the touch screen has static electricity abnormality, determining the static electricity reset state of the touch screen;
[0082] Step 122: if the electrostatic reset state of the touch screen is normal electrostatic reset, determine that the reset state of the touch program is normal reset; and / or, if the electrostatic reset state of the display screen is abnormal electrostatic reset, determine that the reset state of the touch program is abnormal reset.
[0083] It is understandable that the reset of the touch program is based on the reset state of the touch screen. In this way, if the reset abnormality of the touch program is caused by the electrostatic reset abnormality of the touch screen, it can also be caused by the reset abnormality of the touch program itself. In this embodiment, when the detection result indicates that the touch screen is electrostatically abnormal, the electrostatic reset state of the touch screen is determined, and the reset state of the touch program is determined by the electrostatic reset state of the touch screen. In this way, the reset state of the touch program can be determined quickly and conveniently, and the electrostatic reset thread of the touch screen is started in time when the reset state of the touch program is reset abnormal, thereby reducing the phenomenon of flowery screen, frozen screen or black screen of the touch screen.
[0084] In some embodiments, if the detection result indicates that the touch screen has static electricity abnormality, determining the static electricity reset state of the touch screen includes:
[0085] If the detection result indicates that the touch screen has static abnormality, the register value of the touch screen is read through the first interrupt service of the touch screen; wherein the first interrupt service is used to reset the register value of the touch screen after the touch screen is interrupted and reset;
[0086] If the register value of the touch screen is not the first preset value, the electrostatic reset state of the touch screen is determined to be electrostatic reset abnormal; and / or, if the register value of the touch screen is the first preset value, the electrostatic reset state of the touch screen is determined to be electrostatic reset normal.
[0087] Here, the first interrupt service may be a system service, which runs in a system program and can be used to record the interrupt event of the touch screen and related information of the interrupt event, such as the occurrence time of the interrupt event, the duration of the interrupt event, and the triggering information of the interrupt event. Of course, in some embodiments, the first interrupt service may also be an application service. The first interrupt service described in the present disclosure can be used to reset the register value of the touch screen after the touch screen is interrupted and reset, and the register value of the touch screen may be any default value.
[0088] It is understood that the first preset value here can be any value within the preset touch screen register value range described in the above embodiment. It is understood that the first preset value refers to the register value corresponding to the electrostatic charge range on the touch screen after the electrostatic reset of the touch screen is completed. In some embodiments, the first preset value can be zero.
[0089] In this way, by determining the register value of the touch screen only when the detection result indicates that the touch screen has abnormal static electricity, there is no need to read the register value of the touch screen at periodic intervals, thereby reducing the power consumption of the electronic device.
[0090] As described above, the reset of the touch program is performed based on the reset state of the touch screen. If the reset of the touch program is abnormal, it may also be caused by the reset abnormality of the touch program itself.
[0091] In some other embodiments, please refer to Figure 3 , Figure 3 is another flow chart of a static recovery method according to an exemplary embodiment. Figure 3 As shown, the step 12, i.e., if the detection result indicates that the touch screen has static abnormality, determining the reset state of the touch program, may also include:
[0092] Step 123: If the detection result indicates that the touch screen has static abnormality, determine the running state of the touch program;
[0093] Step 124: if the touch control program runs normally, determining the reset state of the touch control program is reset normally; and / or if the touch control program runs abnormally, determining the reset state of the touch control program is reset abnormally.
[0094] It is understandable that if the touch program is reset normally, the running state of the touch program is normal, and conversely, if the touch program is reset abnormally, the running state of the touch program is abnormal. Based on this, this embodiment can quickly and easily determine whether the reset state of the touch program is normal by the running state of the touch program after reset.
[0095] In some embodiments, if the detection result indicates that the touch screen has static abnormality, determining the running state of the touch program may also include:
[0096] If the detection result indicates that the touch screen has static abnormality, the register of the touch program is read through the second interrupt service of the touch program; wherein the second interrupt service is used to reset the register value of the touch program after the touch program is interrupted and restarted;
[0097] If the register value of the touch program is not the second preset value, it is determined that the running state of the touch program is abnormal; or if the register value of the touch program is the second preset value, it is determined that the running state of the touch program is normal.
[0098] It is understandable that the touch program will not only be interrupted due to the electrostatic reset of the touch screen, but also when the specific functions of other applications are turned on, it is also necessary to enable the interruption of the touch program. For example, when watching a video, if the touch function of the video is locked, then the instruction can also enable the touch program interruption. After the touch program is interrupted by any event, a corresponding register value of the touch program will be reset. It is understandable that different interrupt events reset the register values of the touch program differently. For example, the register value of the touch program reset corresponding to the video interruption can be 00, while the register value of the touch program reset corresponding to the interruption caused by the touch screen reset is 01.
[0099] Here, the second preset value can be dynamically adjusted according to different interruption events.
[0100] Obviously, if the register value of the touch screen served by the second interrupt service when the interrupt event occurs is not the second preset value corresponding to the interrupt event, it indicates that the operation of the touch program is abnormal. On the contrary, if the register value of the touch screen served by the second interrupt service when the interrupt event occurs is the second preset value corresponding to the interrupt event, it indicates that the operation of the touch program is normal. In this way, whether the reset of the touch program is normal can be detected through the second interrupt service of the touch program, thereby laying a foundation for determining whether it is necessary to re-execute the reset of the touch screen through the reset state of the touch program.
[0101] It should be noted that the second interrupt service here can be the same as the first interrupt service, both of which are system services. In some embodiments, the first interrupt service and the second interrupt service can also be different, and the first interrupt service and the second interrupt service can be application services, corresponding to different application service objects. Among them, the first interrupt service is used to serve the touch screen, and the second interrupt service is used to serve the touch program.
[0102] In other embodiments, if the detection result indicates that the touch screen has static electricity abnormality, determining the running state of the touch program may also include:
[0103] If the detection result indicates that the touch static electricity is abnormal, loading the firmware of the touch program;
[0104] If the loading fails, it is determined that the running state of the touch control program is abnormal; or, if the loading succeeds, it is determined that the running state of the touch control program is normal.
[0105] Here, the firmware of the touch program may actually be some registers in the IC (Integrated Circuit) of the touch screen, and the touch operation of the touch screen is realized by calling or controlling the registers of the IC of the touch screen. Here, the register configuration of the touch program is stored in the register of the IC of the touch screen. Exemplarily, the register configuration of the touch program may include: the register identifier of the touch program configured for different touch events or interrupt events of the touch program. By loading the firmware of the touch program, the register configuration of the touch program can be loaded into the touch program, and the touch program can be run.
[0106] It is understandable that if the touch program runs abnormally, the firmware may not be loaded. In this way, by loading the firmware of the touch program and judging whether the loading is successful, it is determined whether the running state of the touch program is running normally. The judgment method is simple and feasible, and lays the foundation for determining whether the touch program is reset normally based on the running state of the touch program.
[0107] In order to more accurately determine the running state of the touch program, in some embodiments, if the loading fails, determining that the running state of the touch program is abnormal may also include:
[0108] If the Nth loading fails, it is determined that the running state of the touch program is abnormal, wherein N-1 is greater than or equal to zero and is a preset number of reloading times.
[0109] Here, by determining that the running state of the touch control program is abnormal only after the Nth loading failure, the accuracy of determining the running state of the touch control program can be ensured.
[0110] In some other embodiments, the method further comprises:
[0111] If the reset state of the touch control program is normal, it is determined that the reset of the touch control program is completed.
[0112] In this way, if the reset state of the touch control program is normal reset, it can be determined that the reset of the touch control program is completed.
[0113] In this embodiment, by verifying the reset state of the touch program, only when it is verified that the reset of the touch program is normal can the touch program reset be deemed complete, thereby completing the ESD reset of the touch screen and enhancing the recovery capability of the touch screen.
[0114] Furthermore, the present disclosure also provides a specific embodiment to further understand the information processing method provided by the embodiment of the present disclosure.
[0115] The method described in this embodiment is specifically applied to a mobile phone.
[0116] In the related art, the touch screen ESD reset process will notify the touch program to interrupt, and after the touch screen ESD reset is completed, the touch program will be notified to restart. It can be seen from this that the related art center, the touch screen ESD reset is one-way, once the touch screen ESD reset has a problem, the touch program ESD reset will also fail.
[0117] Based on this, see Figure 4 ,like Figure 4 As shown, in the ESD reset process of the touch program, after the touch program is restarted, it is determined whether the ESD reset of the touch program is normal. By determining whether the ESD reset of the touch program is normal, it is determined whether it is necessary to wake up and reset the ESD of the touch screen.
[0118] Exemplarily, during the ESD reset process of the touch screen, when the touch screen starts to power off, the touch program is notified to start an interrupt in order to start a temporary touch function and complete the temporary touch function; and after the touch screen completes powering off and starts to power on and initialize the touch screen, and after powering on and initializing the touch screen, the touch program is notified to restore the touch function, and after the touch function is restored, it is determined whether the touch program is running normally. If it runs normally, the ESD reset of the entire touch program is completed. If it runs abnormally, the ESD of the touch screen is awakened to perform the above-mentioned ESD reset process again.
[0119] In the above embodiment, by determining whether the touch program is running normally, the reset state of the touch program as described in the above embodiment is determined, and the reset state is fed back to the electrostatic reset thread of the touch screen, which is the ESD reset process fed back to the touch screen, so that when the ESD reset of the touch program is abnormal, the ESD of the touch screen can be reset again by resetting the ESD of the touch screen; at the same time, the ESD of the touch screen can also be reset when the ESD reset of the touch program is abnormal. In this way, no matter what the cause of the ESD abnormality of the touch program is, it can be repaired by resetting the ESD of the touch screen, reducing the phenomenon of the touch screen being flowery, frozen or black due to the abnormal electrostatic reset of the touch screen. At the same time, there is no need for the software to monitor the electrostatic abnormality of the touch screen in real time, saving CPU resource energy consumption and improving the performance of the mobile phone.
[0120] Figure 5 is a static recovery processing device according to an exemplary embodiment, referring to Figure 5 , the device comprises:
[0121] The detection module 51 is used to perform static detection on the touch screen and obtain the detection result;
[0122] A first determination module 52 is configured to determine a reset state of a touch program if the detection result indicates that the touch screen has static electricity abnormality, wherein, in the case that the touch screen has static electricity abnormality, the touch program is interrupted when the static electricity of the touch screen is reset, and the touch program is reset when the static electricity reset of the touch screen is completed;
[0123] The execution module 53 is configured to execute an electrostatic reset operation on the touch screen if the reset state of the touch program is reset abnormality.
[0124] In some optional embodiments, the first determining module 62 includes:
[0125] A first determination submodule, configured to determine an electrostatic reset state of the touch screen if the detection result indicates that the touch screen has electrostatic abnormality;
[0126] The second determination submodule is used to determine that the reset state of the touch program is normal reset if the electrostatic reset state of the touch screen is normal electrostatic reset; and / or, if the electrostatic reset state of the touch screen is abnormal electrostatic reset, determine that the reset state of the touch program is abnormal reset.
[0127] In some optional embodiments, the first determining submodule is further configured to:
[0128] If the detection result indicates that the touch screen has static abnormality, the register value of the touch screen is read through the first interrupt service of the touch screen; wherein the first interrupt service is used to reset the register value of the touch screen after the touch screen is interrupted and reset;
[0129] If the register value of the touch screen is not the first preset value, the electrostatic reset state of the touch screen is determined to be electrostatic reset abnormal; and / or, if the register value of the touch screen is the first preset value, the electrostatic reset state of the touch screen is determined to be electrostatic reset normal.
[0130] In some optional embodiments, the first determining module 52 further includes:
[0131] a third determination submodule, configured to determine the running state of the touch control program if the detection result indicates that the touch screen has static electricity abnormality;
[0132] The fourth determining submodule is used to determine that the reset state of the touch control program is normal reset if the touch control program runs normally; and / or determine that the reset state of the touch control program is abnormal reset if the touch control program runs abnormally.
[0133] In some optional embodiments, the third determining submodule is further used to:
[0134] If the detection result indicates that the touch screen has static abnormality, the register of the touch program is read through the second interrupt service of the touch program; wherein the second interrupt service is used to reset the register value of the touch program after the touch program is interrupted and restarted;
[0135] If the register value of the touch program is not the second preset value, it is determined that the running state of the touch program is abnormal; and / or if the register value of the touch program is the second preset value, it is determined that the running state of the touch program is normal.
[0136] In some optional embodiments, the third determining submodule is further used to:
[0137] If the detection result indicates that the touch screen has static abnormality, loading the firmware of the touch program;
[0138] If the loading fails, it is determined that the running state of the touch control program is abnormal; and / or if the loading succeeds, it is determined that the running state of the touch control program is normal.
[0139] In some optional embodiments, the third determining submodule is further used to:
[0140] If the Nth loading fails, it is determined that the running state of the touch program is abnormal, wherein N-1 is greater than or equal to zero and is a preset number of reloading times.
[0141] In some optional embodiments, the device further comprises:
[0142] The second determining module is used to determine that the resetting of the touch control program is completed if the resetting state of the touch control program is normal.
[0143] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0144] Figure 6 is a block diagram of an electronic device 600 according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast electronic device, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0145] Reference Figure 6 , the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .
[0146] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
[0147] The memory 604 is configured to store various types of data to support operations on the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0148] The power component 606 provides power to the various components of the electronic device 600. The power component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.
[0149] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0150] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0151] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0152] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the electronic device 600, the relative positioning of the components, such as the display and keypad of the electronic device 600, and the sensor assembly 614 can also detect the position change of the electronic device 600 or a component of the electronic device 600, the presence or absence of contact between the user and the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0153] The communication component 616 is configured to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0154] In an exemplary embodiment, the electronic device 600 may be implemented by 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), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0155] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of an electronic device 600 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0156] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute the electrostatic recovery processing method described in the above embodiments.
[0157] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0158] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A method for recovering static electricity, It is characterized in that For use in electronic equipment, including: Perform electrostatic detection on the touch screen and obtain the detection result; If the detection result indicates that the touch screen has static electricity abnormality, determining the reset state of the touch program, wherein, in the case that the touch screen has static electricity abnormality, the touch program is interrupted when the static electricity of the touch screen is reset, and the touch program is reset when the static electricity reset of the touch screen is completed; If the reset state of the touch program is reset abnormality, performing an electrostatic reset operation on the touch screen; Wherein, when the electrostatic reset state of the touch screen is electrostatic reset abnormality, the reset state of the touch program is reset abnormality; and / or when the touch program runs abnormally, the reset state of the touch program is reset abnormality.
2. The method according to claim 1, It is characterized in that If the detection result indicates that the touch screen has static abnormality, determining the reset state of the touch program includes: If the detection result indicates that the touch screen has static electricity abnormality, determining the static electricity reset state of the touch screen; If the electrostatic reset state of the touch screen is normal electrostatic reset, the reset state of the touch program is determined to be normal reset; and / or, if the electrostatic reset state of the touch screen is abnormal electrostatic reset, the reset state of the touch program is determined to be abnormal reset.
3. The method according to claim 2, It is characterized in that If the detection result indicates that the touch screen has static abnormality, determining the static reset state of the touch screen includes: If the detection result indicates that the touch screen has static abnormality, the register value of the touch screen is read through the first interrupt service of the touch screen; wherein the first interrupt service is used to reset the register value of the touch screen after the touch screen is interrupted and reset; If the register value of the touch screen is not the first preset value, the electrostatic reset state of the touch screen is determined to be electrostatic reset abnormal; and / or, if the register value of the touch screen is the first preset value, the electrostatic reset state of the touch screen is determined to be electrostatic reset normal.
4. The method according to claim 1, It is characterized in that If the detection result indicates that the touch screen has static abnormality, determining the reset state of the touch program includes: If the detection result indicates that the touch screen has abnormal static electricity, determining the running state of the touch program; If the touch control program runs normally, the reset state of the touch control program is determined to be normal reset; and / or if the touch control program runs abnormally, the reset state of the touch control program is determined to be abnormal reset.
5. The method according to claim 4, It is characterized in that If the detection result indicates that the touch screen has static abnormality, determining the running state of the touch program includes: If the detection result indicates that the touch screen has static abnormality, loading the firmware of the touch program; If the loading fails, it is determined that the running state of the touch control program is abnormal; and / or if the loading succeeds, it is determined that the running state of the touch control program is normal.
6. The method according to any one of claims 1 to 5, It is characterized in that The method further comprises: If the reset state of the touch control program is normal, it is determined that the reset of the touch control program is completed.
7. An electrostatic recovery device, It is characterized in that For use in electronic equipment, including: A detection module is used to perform static detection on the touch screen and obtain the detection result; A first determination module is configured to determine a reset state of a touch program if the detection result indicates that the touch screen has static electricity abnormality, wherein, in the case that the touch screen has static electricity abnormality, the touch program is interrupted when the static electricity of the touch screen is reset, and the touch program is reset when the static electricity reset of the touch screen is completed; An execution module, configured to execute an electrostatic reset operation on the touch screen if the reset state of the touch program is reset abnormal; Wherein, when the static reset state of the touch screen is an electrostatic reset abnormality, the reset state of the touch program is a reset abnormality; and / or when the touch program runs abnormally, the reset state of the touch program is a reset abnormality.
8. The device according to claim 7, It is characterized in that The first determining module includes: A first determination submodule, configured to determine an electrostatic reset state of the touch screen if the detection result indicates that the touch screen has electrostatic abnormality; The second determination submodule is used to determine that the reset state of the touch program is normal reset if the electrostatic reset state of the touch screen is normal electrostatic reset; and / or, if the electrostatic reset state of the touch screen is abnormal electrostatic reset, determine that the reset state of the touch program is abnormal reset.
9. The device according to claim 8, It is characterized in that The first determining submodule is further used for: If the detection result indicates that the touch screen has static abnormality, the register value of the touch screen is read through the first interrupt service of the touch screen; wherein the first interrupt service is used to reset the register value of the touch screen after the touch screen is interrupted and reset; If the register value of the touch screen is not the first preset value, the electrostatic reset state of the touch screen is determined to be electrostatic reset abnormal; and / or, if the register value of the touch screen is the first preset value, the electrostatic reset state of the touch screen is determined to be electrostatic reset normal.
10. The device according to claim 8, It is characterized in that The first determining module further includes: a third determination submodule, configured to determine the running state of the touch control program if the detection result indicates that the touch screen has static electricity abnormality; The fourth determining submodule is used to determine that the reset state of the touch control program is normal reset if the touch control program runs normally; and / or determine that the reset state of the touch control program is abnormal reset if the touch control program runs abnormally.
11. An electronic device, It is characterized in that include: processor; a memory for storing processor-executable instructions; The processor is configured to: execute the method according to any one of claims 1 to 6 when implemented.
12. A non-transitory computer-readable storage medium having stored thereon a computer program, It is characterized in that When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to implement the method according to any one of claims 1 to 6.
