Electrostatic discharge detection and processing method and device, and terminal equipment
The DSI is triggered by the display processor to perform electrostatic discharge detection and ESD recovery is performed when an abnormality is detected, which solves the problems of detection compatibility and power consumption in the prior art, and realizes efficient detection and recovery of various display screens.
Patent Information
- Application Number
- CN202111416995.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-25
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2041-11-25
AI Technical Summary
The existing electrostatic discharge detection methods require high compatibility of the display screen when reading the screen register, and require a timed wake-up thread for detection, which increases system power consumption.
The display processor triggers the display serial interface DSI for electrostatic discharge detection, receives the detection result returned by the DSI, and triggers an interrupt for ESD recovery when an abnormal screen state is detected.
This method can effectively detect electrostatic discharges on various display screens without increasing system power consumption, avoiding display abnormalities such as screen deviation.
Smart Images

Figure CN114113855B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electrostatic discharge detection, and specifically to an electrostatic discharge detection and processing method and device, and terminal equipment. Background Art
[0002] With the development of modern technology, the functions of mobile phones and other smart devices with screens have gradually become diversified and diversified, becoming an indispensable part of people's lives. During the use of electronic products, static electricity may cause abnormal screen display, touch screen failure, and even serious freezes. Therefore, eliminating static electricity on the device is a very important task.
[0003] There are usually two methods for detecting static electricity: hardware and software. The software processing is ESD (Electro-Static discharge) detection. The existing more mature ESD detection solutions include the external TE (Tearing Effect) signal method and the screen register reading method. Among them, the register reading method means that the screen status register will be read every time the ESD process is running. When the screen ESD is abnormal, the value of the screen status register will be abnormal. Therefore, by reading the screen status register, it can be determined whether the screen ESD abnormality occurs. However, after the register reading operation, some screens cannot return the register value within one line of time, which may cause display abnormalities such as screen deviation. It can be seen that the screen register reading method has high requirements for the compatibility of the display screen; moreover, when the screen is in the normal display state, it is necessary to wake up the corresponding thread regularly to perform ESD detection, which increases the system power consumption. Summary of the invention
[0004] The embodiments of the present application provide an electrostatic discharge detection and processing method and apparatus, and a terminal device, which can effectively perform ESD detection on various display screens without increasing system power consumption.
[0005] In order to solve the above technical problems, the embodiments of the present application provide the following technical solutions:
[0006] On the one hand, an embodiment of the present application provides an electrostatic discharge detection and processing method, the method comprising:
[0007] The display processor triggers the display serial interface DSI to perform ESD detection;
[0008] Receive the ESD test results returned by DSI;
[0009] If the ESD detection result indicates that the screen state is abnormal, the display processor triggers an interrupt and performs ESD recovery.
[0010] Optionally, the display processor triggering the DSI to perform ESD detection includes: the display processor triggering the DSI to perform ESD detection at a set time interval.
[0011] Optionally, the display processor triggering the DSI to perform ESD detection includes: when the display processor sends a vertical synchronization signal to the DSI, the display processor synchronously sends an ESD enable signal to the DSI.
[0012] Optionally, the display processor triggering the DSI to perform ESD detection also includes: when ESD detection is required, the display processor enables an ESD enable register set in the display processor; accordingly, the display processor synchronously sends an ESD enable signal to the DSI, including: the display processor synchronously sends an ESD enable signal to the DSI according to the state of the ESD enable register.
[0013] Optionally, the method further includes: the DSI performing ESD detection according to the ESD enable signal.
[0014] Optionally, the DSI performs ESD detection according to the ESD enable signal, including: the DSI checks whether the ESD enable signal is valid at the rising edge of the vertical synchronization signal; if valid, after the current data frame processing is completed, reads the screen status register, and compares the read result with the ESD detection standard value; and returns the ESD detection result to the display processor according to the comparison result.
[0015] On the other hand, an embodiment of the present application also provides an electrostatic discharge detection and processing device, which includes: a display processor; the display processor is used to trigger a display serial interface DSI to perform ESD detection, receive the ESD detection result returned by the DSI, and trigger an interrupt when the ESD detection result indicates that the screen status is abnormal, and perform ESD recovery.
[0016] Optionally, the display processor triggers the DSI to perform ESD detection at a set time interval.
[0017] Optionally, the display processor is specifically configured to synchronously send an ESD enable signal to the DSI when sending a vertical synchronization signal to the DSI; the display processor triggers the DSI to perform ESD detection through the ESD enable register.
[0018] Optionally, the display processor includes: an ESD enable register; the display processor is specifically configured to enable the ESD enable register when ESD detection is required; and synchronously send an ESD enable signal to the DSI according to a state of the ESD enable register.
[0019] Optionally, the device further includes: a DSI; the DSI is configured to perform ESD detection according to the ESD enable signal.
[0020] Optionally, the DSI is specifically used to check whether the ESD enable signal is valid at the rising edge of the vertical synchronization signal; when the ESD enable signal is valid, after the current data frame processing is completed, the screen status register is read, and the read result is compared with the ESD detection standard value, and the ESD detection result is returned to the display processor based on the comparison result.
[0021] On the other hand, an embodiment of the present application further provides a terminal device, comprising the above-mentioned electrostatic discharge detection and processing device.
[0022] The electrostatic discharge detection processing method, device, and terminal device provided in the embodiments of the present application are triggered by the DPU (Display Process Unit) to perform ESD detection on the DSI (Display Serial Interface). Accordingly, after the DSI performs ESD detection, it returns the ESD detection result to the DPU. After the DPU receives the ESD detection result returned by the DSI, if the ESD detection result indicates that the screen status is abnormal, the DPU triggers an interrupt and performs ESD recovery. In the scheme of the embodiments of the present application, the triggering of the ESD detection is not dominated by the DSI, but by the DPU. Because the DPU controls the sending of data frames, it can avoid display abnormalities such as screen deviation caused by the screen’s inability to return register values within one line of time; moreover, since the DSI is triggered to perform ESD detection during the interaction between the DPU and the DSI, the system power consumption can be greatly reduced compared to the prior art scheme. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 is a flow chart of an electrostatic discharge detection method according to an embodiment of the present application;
[0024] Figure 2 Schematic diagram of the interaction process between DPU and DSI in the electrostatic discharge detection method of the embodiment of the present application;
[0025] Figure 3 It is a structural schematic diagram of an electrostatic discharge detection device according to an embodiment of the present application;
[0026] Figure 4 It is a schematic diagram of the hardware structure of the electronic device according to the embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to make the above-mentioned purposes, features and beneficial effects of the present application more obvious and easy to understand, the specific embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0028] In view of the compatibility and system power consumption problems of the existing method of performing ESD detection through screen register reading, the embodiment of the present application provides an electrostatic discharge detection processing method and device, in which the DPU triggers the DSI to perform ESD detection. The main function of the ESD detection is to detect whether the screen is interfered with by static electricity, and to restore it to normal through ESD recovery (such as resetting the display) when it is interfered. Accordingly, the DPU receives the ESD detection result returned by the DSI. When the ESD detection result indicates an abnormality, the DPU triggers an interrupt and performs ESD recovery.
[0029] like Figure 1 FIG. 1 is a flow chart of an electrostatic discharge detection and processing method according to an embodiment of the present application, comprising the following steps:
[0030] Step 101: DPU triggers DSI to perform ESD detection.
[0031] In a specific application, DPU triggering DSI to perform ESD detection may be that DPU triggers DSI to perform ESD detection at a set time interval, that is, periodically triggering DSI to perform ESD detection; of course, other methods may also be used to trigger DSI to perform ESD detection, which is not limited to the embodiments of the present application.
[0032] Step 102: Receive the ESD detection result returned by the DSI.
[0033] It should be noted that DSI can specifically perform ESD detection results by reading the screen status register. The screen status register saves the current status of the screen, which can be a numerical value indicating the current status of the screen. DSI compares the read numerical value with the normal status value of the screen (or the ESD detection standard value) to determine whether the screen status is abnormal and return the ESD detection result to the DPU.
[0034] Step 103, determine whether the screen state is abnormal according to the ESD detection result. If yes, execute step 104; otherwise, execute step 105.
[0035] Step 104: The DPU triggers an interrupt and performs ESD recovery.
[0036] Step 105, ending this ESD detection.
[0037] In a specific implementation, DPU triggering DSI to perform ESD detection may be implemented through software or hardware, which is not limited in the embodiments of the present application.
[0038] For example, in Figure 2In a non-limiting embodiment shown, the DPU enables the DSI to perform ESD detection through hardware triggering. In this embodiment, when the DPU sends a vertical synchronization signal to the DSI, it synchronously sends an ESD enable signal to the DSI. Accordingly, the DSI performs ESD detection according to the ESD enable signal. Furthermore, in order to facilitate the adaptability of the solution in different environments, an ESD enable register can also be set in the DPU, and when ESD detection is required, the DPU enables the ESD enable register. The specific process is as follows:
[0039] like Figure 2 As shown, first, in step 201, when ESD detection is required, the DPU enables the ESD enable register.
[0040] In step 202, the DPU sends a VSYNC (vertical synchronization) signal to the DSI, and synchronously sends an ESD enable signal to the DSI according to the state of the ESD enable register. For example, if the value of the ESD enable register is 1, the ESD enable signal is synchronously sent to the DSI; if the value of the ESD enable register is 0, the ESD enable signal is not sent.
[0041] Accordingly, in step 203, the DSI performs ESD detection according to the ESD enable signal. For example, the DSI checks whether the ESD enable signal is valid at the rising edge of the VSYNC signal.
[0042] If the ESD enable signal is valid, step 204 is executed to read the screen status register after the current data frame is processed.
[0043] The screen status register is a register used to store the screen status in the prior art, and the ESD detection standard value refers to the state value when the screen is in a normal display state. The ESD detection standard value can be pre-configured.
[0044] In step 205, the read result is compared with the ESD detection standard value. Then, in step 206, the DSI returns the ESD detection result to the DPU according to the comparison result.
[0045] If the value in the screen status register read is different from the ESD detection standard value, it means that the screen status is abnormal, otherwise it means that the screen status is the same. Accordingly, the ESD detection result is used to indicate whether the screen status is abnormal.
[0046] It should be noted that, in specific applications, the DSI may return the ESD detection result to the DPU in a hardware or software manner, which is not limited in the present embodiment. For example, when implemented in hardware, the corresponding signal line level may be triggered to be high or low.
[0047] Of course, if the ESD enable signal is invalid, the DSI continues with normal data frame processing.
[0048] Accordingly, in step 207, after receiving the ESD detection result returned by the DSI, the DPU determines whether the screen status is abnormal according to the ESD detection result.
[0049] If yes, step 208 is executed, and the DPU triggers an interrupt to perform ESD recovery.
[0050] Otherwise, the DPU performs normal data processing.
[0051] When the DPU sends a VSYNC signal to the DSI next time, the ESD enable signal is synchronously sent to the DSI. That is, each time the DPU sends a VSYNC signal to the DSI, the ESD enable signal is synchronously sent to the DSI.
[0052] By using the ESD enable register, the application of the solution of the present invention in different environments can be facilitated. For example, in an application environment where ESD detection is not required, or in an environment where ESD detection is performed using software, the DPU does not enable the ESD enable register, so that the DPU can perform normal data processing.
[0053] The electrostatic discharge detection and processing method provided in the embodiment of the present application is that the DPU triggers the DSI to perform ESD detection, and when an abnormal screen state is detected, the DPU triggers an interrupt and performs ESD recovery, thereby avoiding display abnormalities such as screen deviation caused by the screen being unable to return the register value within one line of time; and, since the DSI is triggered to perform ESD detection during the interaction between the DPU and DSI, the system power consumption can be greatly reduced compared to the existing technical solutions.
[0054] Accordingly, the present application also provides an electrostatic discharge detection and processing device, such as Figure 3 Shown is a structural schematic diagram of the device.
[0055] The electrostatic discharge detection processing device of this embodiment includes: a DPU, which is used to trigger a DSI to perform ESD detection, receive an ESD detection result returned by the DSI, and trigger an interrupt when the ESD detection result indicates that the screen state is abnormal, and perform ESD recovery.
[0056] In specific applications, the DPU can trigger the DSI to perform ESD detection at a set time interval. For example, when sending a vertical synchronization signal to the DSI, an ESD enable signal is synchronously sent to the DSI; or the DPU uses other methods to trigger the DSI to perform ESD detection, which is not limited to this embodiment of the present application.
[0057] like Figure 3As shown, in one non-limiting embodiment, DPU 300 includes an ESD enable register 301 .
[0058] In this embodiment, when ESD detection is required, the DPU 300 enables the ESD enable register 301 , and when sending a VSYNC signal to the DSI, it synchronously sends the ESD enable signal to the DSI according to the state of the ESD enable register 301 .
[0059] It should be noted that, in a specific application, the DSI may be a part of the electrostatic discharge detection and processing device, or may be independent of the device, which is not limited in the embodiments of the present application.
[0060] The DSI is used to perform ESD detection according to the ESD enable signal and return the ESD detection result to the DPU 300. The DSI may return the ESD detection result in software or hardware, which is not limited in the embodiment of the present application.
[0061] In addition, the embodiment of the present application does not limit the specific method of DSI for ESD detection. For example, in a non-limiting embodiment, DSI may include: a screen status register. Accordingly, DSI checks whether the ESD enable signal is valid at the rising edge of the VSYNC signal; when the ESD enable signal is valid, after the current data frame is processed, the screen status register is read, and the read result is compared with the ESD detection standard value, and the ESD detection result is returned to the DPU based on the comparison result.
[0062] For more details about the working principles and working methods of the above-mentioned devices, please refer to the relevant descriptions in the previous corresponding method embodiments, which will not be repeated here.
[0063] Correspondingly, an embodiment of the present application also provides a terminal device, including the above-mentioned electrostatic discharge detection and processing device.
[0064] The electrostatic discharge detection processing device and terminal equipment provided in the embodiments of the present application trigger DSI to perform ESD detection by DPU, and when an abnormal screen state is detected, DPU triggers an interrupt and performs ESD recovery, thereby avoiding display abnormalities such as screen deviation caused by the screen being unable to return the register value within one line of time; and, since DSI is triggered to perform ESD detection during the interaction between DPU and DSI, the system power consumption can be greatly reduced compared to the prior art solutions.
[0065] In a specific implementation, the above-mentioned electrostatic discharge detection and processing device can correspond to chips with corresponding functions in network equipment and / or terminal equipment, such as SOC (System-On-a-Chip), baseband chip, chip module, etc.
[0066] In a specific implementation, each module / unit included in each device or product described in the above embodiments may be a software module / unit or a hardware module / unit, or may be partly a software module / unit and partly a hardware module / unit.
[0067] For example, for each device or product applied to or integrated in a chip, each module / unit contained therein may be implemented in the form of hardware such as circuits, or at least some of the modules / units may be implemented in the form of software programs, which run on a processor integrated inside the chip, and the remaining (if any) modules / units may be implemented in the form of hardware such as circuits; for each device or product applied to or integrated in a chip module, each module / unit contained therein may be implemented in the form of hardware such as circuits, and different modules / units may be located in the same component (such as a chip, circuit module, etc.) or different components of the chip module, or at least some of the modules / units may be implemented in the form of software programs. The element can be implemented in the form of a software program, which runs on a processor integrated inside the chip module, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in the terminal, the various modules / units contained therein can be implemented in the form of hardware such as circuits, and different modules / units can be located in the same component (for example, chip, circuit module, etc.) or in different components in the terminal, or, at least some modules / units can be implemented in the form of a software program, which runs on a processor integrated inside the terminal, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits.
[0068] An embodiment of the present application further provides a computer-readable storage medium, which is a non-volatile storage medium or a non-transient storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned method embodiments are executed.
[0069] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor executes the steps in the above-mentioned method embodiments when running the computer program.
[0070] Please refer to Figure 4 , is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. The electronic device includes a processor 801, a memory 802 and a transceiver 803.
[0071] Processor 801 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application. Processor 801 may also include multiple CPUs, and processor 801 may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. The processor here may refer to one or more devices, circuits, or processing cores for processing data (such as computer program instructions).
[0072] The memory 802 may be a ROM or other types of static storage devices that can store static information and instructions, a RAM or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer, and the embodiments of the present application do not impose any restrictions on this. The memory 802 may exist independently (in this case, the memory 802 may be located outside the device or inside the device), or it may be integrated with the processor 801. Among them, the memory 802 may contain a computer program code. The processor 801 is used to execute the computer program code stored in the memory 802, thereby realizing the method provided in the embodiments of the present application.
[0073] The processor 801, the memory 802 and the transceiver 803 are connected via a bus. The transceiver 803 is used to communicate with other devices or communication networks. Optionally, the transceiver 803 may include a transmitter and a receiver. The device used to implement the receiving function in the transceiver 803 can be regarded as a receiver, and the receiver is used to perform the receiving step in the embodiment of the present application. The device used to implement the sending function in the transceiver 803 can be regarded as a transmitter, and the transmitter is used to perform the sending step in the embodiment of the present application.
[0074] when Figure 4 The schematic diagram of the structure shown in FIG. 1 is used to illustrate the structure of the terminal device involved in the above embodiment. The processor 801 is used to control and manage the actions of the terminal device. For example, the processor 801 is used to support the terminal device to execute Figure 1 or Figure 2 The processor 801 may communicate with other network entities, for example, the above-mentioned network devices, through the transceiver 803. The memory 802 is used to store program codes and data of the terminal device. When the processor runs the computer program, it may control the transceiver 803 to receive downlink signaling or downlink data.
[0075] It should be understood that the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article indicates that the associated objects before and after are in an "or" relationship.
[0076] The "plurality" appearing in the embodiments of the present application refers to two or more.
[0077] The first, second, etc. descriptions appearing in the embodiments of the present application are only used for illustration and distinction of the description objects. There is no order, nor do they indicate any special limitation on the number of devices in the embodiments of the present application, and cannot constitute any limitation on the embodiments of the present application.
[0078] The various embodiments provided in this application can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired or wireless means. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
[0079] In the several embodiments provided in the present application, it should be understood that the disclosed methods, devices and systems can be implemented in other ways. For example, the device embodiments described above are merely schematic; for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0080] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0081] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can be physically arranged separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
[0082] Although the present application is disclosed as above, the present application is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application. Therefore, the protection scope of the present application shall be subject to the scope defined by the claims.
Claims
1. A method for detecting and processing electrostatic discharge, characterized in that: The method comprises: When the display processor sends a vertical synchronization signal to the display serial interface DSI, the DSI is triggered to perform ESD detection; Receive the ESD detection result returned by DSI by reading the screen status register; If the ESD detection result indicates that the screen state is abnormal, the display processor triggers an interrupt and performs ESD recovery.
2. The method according to claim 1, characterized in that When the display processor sends a vertical synchronization signal to the DSI, triggering the DSI to perform ESD detection includes: When the display processor sends a vertical synchronization signal to the DSI, it synchronously sends an ESD enable signal to the DSI to trigger the DSI to perform ESD detection.
3. The method according to claim 2, characterized in that The display processor triggering the DSI to perform ESD detection further includes: In case that ESD detection is required, the display processor enables an ESD enable register set in the display processor; The display processor synchronously sending the ESD enable signal to the DSI includes: the display processor synchronously sending the ESD enable signal to the DSI according to a state of the ESD enable register.
4. The method according to claim 3, characterized in that The method further comprises: The DSI performs ESD detection according to the ESD enable signal.
5. The method according to claim 4, characterized in that The DSI performs ESD detection according to the ESD enable signal, including: The DSI checks whether the ESD enable signal is valid at the rising edge of the vertical synchronization signal; If valid, after the current data frame is processed, the screen status register is read and the read result is compared with the ESD detection standard value; The ESD detection result is returned to the display processor according to the comparison result.
6. An electrostatic discharge detection and processing device, characterized in that: The device includes: a display processor; The display processor is used to trigger the display serial interface DSI to perform ESD detection when sending a vertical synchronization signal to the DSI, receive the ESD detection result returned by the DSI by reading the screen status register, and trigger an interrupt when the ESD detection result indicates that the screen status is abnormal, and perform ESD recovery.
7. The device according to claim 6, characterized in that The display processor is specifically configured to send an ESD enable signal to the DSI synchronously when sending a vertical synchronization signal to the DSI, so as to trigger the DSI to perform ESD detection.
8. The device according to claim 7, characterized in that The display processor includes: an ESD enable register; The display processor is specifically configured to enable the ESD enable register when ESD detection is required; and synchronously send an ESD enable signal to the DSI according to the state of the ESD enable register.
9. The device according to claim 8, characterized in that The device further comprises: a DSI; The DSI is used to perform ESD detection according to the ESD enable signal.
10. The device according to claim 9, characterized in that The DSI is specifically used to check whether the ESD enable signal is valid at the rising edge of the vertical synchronization signal; when the ESD enable signal is valid, after the current data frame processing is completed, the screen status register is read, and the read result is compared with the ESD detection standard value, and the ESD detection result is returned to the display processor based on the comparison result.
11. A terminal device, characterized in that: It comprises an electrostatic discharge detection and processing device as described in any one of claims 6-10.
Citation Information
Patent Citations
Implementation method for solving electrostatic display abnormity of display screen
CN102693704A